You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Question__AddOrEdit__Bat...

18 lines
103 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[485],{40001:function(wt,ue,r){r.d(ue,{Z:function(){return S}});var e=r(96663),C=r(59301),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},I=W,Y=r(7657),B=function(V,ge){return C.createElement(Y.Z,(0,e.Z)({},V,{ref:ge,icon:I}))},D=C.forwardRef(B),S=D},26227:function(wt,ue,r){r.d(ue,{Z:function(){return S}});var e=r(96663),C=r(59301),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},I=W,Y=r(7657),B=function(V,ge){return C.createElement(Y.Z,(0,e.Z)({},V,{ref:ge,icon:I}))},D=C.forwardRef(B),S=D},41464:function(wt,ue,r){r.d(ue,{Z:function(){return S}});var e=r(96663),C=r(59301),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},I=W,Y=r(7657),B=function(V,ge){return C.createElement(Y.Z,(0,e.Z)({},V,{ref:ge,icon:I}))},D=C.forwardRef(B),S=D},15277:function(wt,ue,r){r.d(ue,{Z:function(){return S}});var e=r(96663),C=r(59301),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},I=W,Y=r(7657),B=function(V,ge){return C.createElement(Y.Z,(0,e.Z)({},V,{ref:ge,icon:I}))},D=C.forwardRef(B),S=D},35593:function(wt,ue,r){r.d(ue,{Z:function(){return Qt}});var e=r(44127),C=r(72071),W=r(6620),I=r(43403),Y=r(92310),B=r.n(Y),D=r(29301),S=r(76846),de=r(96452),V=r(6089),ge=r(80402),X=r(34280),Te=r(49658),$=r(59301),lt=r(96663),Ae=r(77900),We=r(8654);function ne(d){var P=d.prefixCls,v=d.align,R=d.arrow,L=d.arrowPos,K=R||{},ve=K.className,me=K.content,he=L.x,De=he===void 0?0:he,Ue=L.y,xe=Ue===void 0?0:Ue,ut=$.useRef();if(!v||!v.points)return null;var be={position:"absolute"};if(v.autoArrow!==!1){var _e=v.points[0],dt=v.points[1],Me=_e[0],n=_e[1],i=dt[0],f=dt[1];Me===i||!["t","b"].includes(Me)?be.top=xe:Me==="t"?be.top=0:be.bottom=0,n===f||!["l","r"].includes(n)?be.left=De:n==="l"?be.left=0:be.right=0}return $.createElement("div",{ref:ut,className:B()("".concat(P,"-arrow"),ve),style:be},me)}function Z(d){var P=d.prefixCls,v=d.open,R=d.zIndex,L=d.mask,K=d.motion;return L?$.createElement(Ae.default,(0,lt.Z)({},K,{motionAppear:!0,visible:v,removeOnLeave:!0}),function(ve){var me=ve.className;return $.createElement("div",{style:{zIndex:R},className:B()("".concat(P,"-mask"),me)})}):null}var ht=$.memo(function(d){var P=d.children;return P},function(d,P){return P.cache}),qe=ht,Lt=$.forwardRef(function(d,P){var v=d.popup,R=d.className,L=d.prefixCls,K=d.style,ve=d.target,me=d.onVisibleChanged,he=d.open,De=d.keepDom,Ue=d.fresh,xe=d.onClick,ut=d.mask,be=d.arrow,_e=d.arrowPos,dt=d.align,Me=d.motion,n=d.maskMotion,i=d.forceRender,f=d.getPopupContainer,m=d.autoDestroy,E=d.portal,j=d.zIndex,F=d.onMouseEnter,z=d.onMouseLeave,G=d.onPointerEnter,oe=d.ready,ee=d.offsetX,ae=d.offsetY,Pe=d.offsetR,_=d.offsetB,ce=d.onAlign,H=d.onPrepare,J=d.stretch,te=d.targetWidth,Le=d.targetHeight,se=typeof v=="function"?v():v,$e=he||De,et=(f==null?void 0:f.length)>0,Zt=$.useState(!f||!et),Ot=(0,C.Z)(Zt,2),ot=Ot[0],Wt=Ot[1];if((0,X.Z)(function(){!ot&&et&&ve&&Wt(!0)},[ot,et,ve]),!ot)return null;var at="auto",tt={left:"-1000vw",top:"-1000vh",right:at,bottom:at};if(oe||!he){var it,Ve=dt.points,vt=dt.dynamicInset||((it=dt._experimental)===null||it===void 0?void 0:it.dynamicInset),nr=vt&&Ve[0][1]==="r",Yt=vt&&Ve[0][0]==="b";nr?(tt.right=Pe,tt.left=at):(tt.left=ee,tt.right=at),Yt?(tt.bottom=_,tt.top=at):(tt.top=ae,tt.bottom=at)}var St={};return J&&(J.includes("height")&&Le?St.height=Le:J.includes("minHeight")&&Le&&(St.minHeight=Le),J.includes("width")&&te?St.width=te:J.includes("minWidth")&&te&&(St.minWidth=te)),he||(St.pointerEvents="none"),$.createElement(E,{open:i||$e,getContainer:f&&function(){return f(ve)},autoDestroy:m},$.createElement(Z,{prefixCls:L,open:he,zIndex:j,mask:ut,motion:n}),$.createElement(D.Z,{onResize:ce,disabled:!he},function(Ht){return $.createElement(Ae.default,(0,lt.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:i,leavedClassName:"".concat(L,"-hidden")},Me,{onAppearPrepare:H,onEnterPrepare:H,visible:he,onVisibleChanged:function(kt){var jt;Me==null||(jt=Me.onVisibleChanged)===null||jt===void 0||jt.call(Me,kt),me(kt)}}),function(ir,kt){var jt=ir.className,Re=ir.style,qt=B()(L,jt,R);return $.createElement("div",{ref:(0,We.sQ)(Ht,P,kt),className:qt,style:(0,e.Z)((0,e.Z)((0,e.Z)((0,e.Z)({"--arrow-x":"".concat(_e.x||0,"px"),"--arrow-y":"".concat(_e.y||0,"px")},tt),St),Re),{},{boxSizing:"border-box",zIndex:j},K),onMouseEnter:F,onMouseLeave:z,onPointerEnter:G,onClick:xe},be&&$.createElement(ne,{prefixCls:L,arrow:be,arrowPos:_e,align:dt}),$.createElement(qe,{cache:!he&&!Ue},se))})}))}),fe=Lt,Ce=$.forwardRef(function(d,P){var v=d.children,R=d.getTriggerDOMNode,L=(0,We.Yr)(v),K=$.useCallback(function(me){(0,We.mH)(P,R?R(me):me)},[R]),ve=(0,We.x1)(K,v.ref);return L?$.cloneElement(v,{ref:ve}):v}),Oe=Ce,He=$.createContext(null),$t=He;function At(d){return d?Array.isArray(d)?d:[d]:[]}function x(d,P,v,R){return $.useMemo(function(){var L=At(v!=null?v:P),K=At(R!=null?R:P),ve=new Set(L),me=new Set(K);return d&&(ve.has("hover")&&(ve.delete("hover"),ve.add("click")),me.has("hover")&&(me.delete("hover"),me.add("click"))),[ve,me]},[d,P,v,R])}var l=r(29194);function a(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=arguments.length>2?arguments[2]:void 0;return v?d[0]===P[0]:d[0]===P[0]&&d[1]===P[1]}function c(d,P,v,R){for(var L=v.points,K=Object.keys(d),ve=0;ve<K.length;ve+=1){var me,he=K[ve];if(a((me=d[he])===null||me===void 0?void 0:me.points,L,R))return"".concat(P,"-placement-").concat(he)}return""}function h(d,P,v,R){return P||(v?{motionName:"".concat(d,"-").concat(v)}:R?{motionName:R}:null)}function w(d){return d.ownerDocument.defaultView}function T(d){for(var P=[],v=d==null?void 0:d.parentElement,R=["hidden","scroll","clip","auto"];v;){var L=w(v).getComputedStyle(v),K=L.overflowX,ve=L.overflowY,me=L.overflow;[K,ve,me].some(function(he){return R.includes(he)})&&P.push(v),v=v.parentElement}return P}function k(d){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(d)?P:d}function q(d){return k(parseFloat(d),0)}function we(d,P){var v=(0,e.Z)({},d);return(P||[]).forEach(function(R){if(!(R instanceof HTMLBodyElement||R instanceof HTMLHtmlElement)){var L=w(R).getComputedStyle(R),K=L.overflow,ve=L.overflowClipMargin,me=L.borderTopWidth,he=L.borderBottomWidth,De=L.borderLeftWidth,Ue=L.borderRightWidth,xe=R.getBoundingClientRect(),ut=R.offsetHeight,be=R.clientHeight,_e=R.offsetWidth,dt=R.clientWidth,Me=q(me),n=q(he),i=q(De),f=q(Ue),m=k(Math.round(xe.width/_e*1e3)/1e3),E=k(Math.round(xe.height/ut*1e3)/1e3),j=(_e-dt-i-f)*m,F=(ut-be-Me-n)*E,z=Me*E,G=n*E,oe=i*m,ee=f*m,ae=0,Pe=0;if(K==="clip"){var _=q(ve);ae=_*m,Pe=_*E}var ce=xe.x+oe-ae,H=xe.y+z-Pe,J=ce+xe.width+2*ae-oe-ee-j,te=H+xe.height+2*Pe-z-G-F;v.left=Math.max(v.left,ce),v.top=Math.max(v.top,H),v.right=Math.min(v.right,J),v.bottom=Math.min(v.bottom,te)}}),v}function Ee(d){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v="".concat(P),R=v.match(/^(.*)\%$/);return R?d*(parseFloat(R[1])/100):parseFloat(v)}function Ze(d,P){var v=P||[],R=(0,C.Z)(v,2),L=R[0],K=R[1];return[Ee(d.width,L),Ee(d.height,K)]}function Ge(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[d[0],d[1]]}function Fe(d,P){var v=P[0],R=P[1],L,K;return v==="t"?K=d.y:v==="b"?K=d.y+d.height:K=d.y+d.height/2,R==="l"?L=d.x:R==="r"?L=d.x+d.width:L=d.x+d.width/2,{x:L,y:K}}function Ke(d,P){var v={t:"b",b:"t",l:"r",r:"l"};return d.map(function(R,L){return L===P?v[R]||"c":R}).join("")}function Nt(d,P,v,R,L,K,ve){var me=$.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:L[R]||{}}),he=(0,C.Z)(me,2),De=he[0],Ue=he[1],xe=$.useRef(0),ut=$.useMemo(function(){return P?T(P):[]},[P]),be=$.useRef({}),_e=function(){be.current={}};d||_e();var dt=(0,V.Z)(function(){if(P&&v&&d){let or=function(Sr,Mr){var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt,Lr=se.x+Sr,Nr=se.y+Mr,Fr=Lr+it,Br=Nr+tt,Hr=Math.max(Lr,Zr.left),Ur=Math.max(Nr,Zr.top),Vr=Math.min(Fr,Zr.right),Xr=Math.min(Br,Zr.bottom);return Math.max(0,(Vr-Hr)*(Xr-Ur))},zr=function(){Vt=se.y+O,Xt=Vt+tt,Bt=se.x+ye,Pt=Bt+it};var i,f,m=P,E=m.ownerDocument,j=w(m),F=j.getComputedStyle(m),z=F.width,G=F.height,oe=F.position,ee=m.style.left,ae=m.style.top,Pe=m.style.right,_=m.style.bottom,ce=m.style.overflow,H=(0,e.Z)((0,e.Z)({},L[R]),K),J=E.createElement("div");(i=m.parentElement)===null||i===void 0||i.appendChild(J),J.style.left="".concat(m.offsetLeft,"px"),J.style.top="".concat(m.offsetTop,"px"),J.style.position=oe,J.style.height="".concat(m.offsetHeight,"px"),J.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden";var te;if(Array.isArray(v))te={x:v[0],y:v[1],width:0,height:0};else{var Le=v.getBoundingClientRect();te={x:Le.x,y:Le.y,width:Le.width,height:Le.height}}var se=m.getBoundingClientRect(),$e=E.documentElement,et=$e.clientWidth,Zt=$e.clientHeight,Ot=$e.scrollWidth,ot=$e.scrollHeight,Wt=$e.scrollTop,at=$e.scrollLeft,tt=se.height,it=se.width,Ve=te.height,vt=te.width,nr={left:0,top:0,right:et,bottom:Zt},Yt={left:-at,top:-Wt,right:Ot-at,bottom:ot-Wt},St=H.htmlRegion,Ht="visible",ir="visibleFirst";St!=="scroll"&&St!==ir&&(St=Ht);var kt=St===ir,jt=we(Yt,ut),Re=we(nr,ut),qt=St===Ht?Re:jt,yt=kt?Re:qt;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var sr=m.getBoundingClientRect();m.style.left=ee,m.style.top=ae,m.style.right=Pe,m.style.bottom=_,m.style.overflow=ce,(f=m.parentElement)===null||f===void 0||f.removeChild(J);var Ut=k(Math.round(it/parseFloat(z)*1e3)/1e3),t=k(Math.round(tt/parseFloat(G)*1e3)/1e3);if(Ut===0||t===0||(0,S.Sh)(v)&&!(0,l.Z)(v))return;var s=H.offset,o=H.targetOffset,g=Ze(se,s),b=(0,C.Z)(g,2),y=b[0],p=b[1],u=Ze(te,o),N=(0,C.Z)(u,2),A=N[0],U=N[1];te.x-=A,te.y-=U;var pe=H.points||[],le=(0,C.Z)(pe,2),Ne=le[0],Dt=le[1],ct=Ge(Dt),Xe=Ge(Ne),ft=Fe(te,ct),bt=Fe(se,Xe),st=(0,e.Z)({},H),ye=ft.x-bt.x+y,O=ft.y-bt.y+p,Je=or(ye,O),je=or(ye,O,Re),zt=Fe(te,["t","l"]),_t=Fe(se,["t","l"]),Rt=Fe(te,["b","r"]),lr=Fe(se,["b","r"]),Et=H.overflow||{},wr=Et.adjustX,cr=Et.adjustY,xt=Et.shiftX,Qe=Et.shiftY,ur=function(Mr){return typeof Mr=="boolean"?Mr:Mr>=0},Vt,Xt,Bt,Pt;zr();var dr=ur(cr),Q=Xe[0]===ct[0];if(dr&&Xe[0]==="t"&&(Xt>yt.bottom||be.current.bt)){var ke=O;Q?ke-=tt-Ve:ke=zt.y-lr.y-p;var Ct=or(ye,ke),Mt=or(ye,ke,Re);Ct>Je||Ct===Je&&(!kt||Mt>=je)?(be.current.bt=!0,O=ke,p=-p,st.points=[Ke(Xe,0),Ke(ct,0)]):be.current.bt=!1}if(dr&&Xe[0]==="b"&&(Vt<yt.top||be.current.tb)){var rt=O;Q?rt+=tt-Ve:rt=Rt.y-_t.y-p;var Gt=or(ye,rt),Dr=or(ye,rt,Re);Gt>Je||Gt===Je&&(!kt||Dr>=je)?(be.current.tb=!0,O=rt,p=-p,st.points=[Ke(Xe,0),Ke(ct,0)]):be.current.tb=!1}var yr=ur(wr),Ye=Xe[1]===ct[1];if(yr&&Xe[1]==="l"&&(Pt>yt.right||be.current.rl)){var ze=ye;Ye?ze-=it-vt:ze=zt.x-lr.x-y;var er=or(ze,O),Rr=or(ze,O,Re);er>Je||er===Je&&(!kt||Rr>=je)?(be.current.rl=!0,ye=ze,y=-y,st.points=[Ke(Xe,1),Ke(ct,1)]):be.current.rl=!1}if(yr&&Xe[1]==="r"&&(Bt<yt.left||be.current.lr)){var br=ye;Ye?br+=it-vt:br=Rt.x-_t.x-y;var Ir=or(br,O),Er=or(br,O,Re);Ir>Je||Ir===Je&&(!kt||Er>=je)?(be.current.lr=!0,ye=br,y=-y,st.points=[Ke(Xe,1),Ke(ct,1)]):be.current.lr=!1}zr();var fr=xt===!0?0:xt;typeof fr=="number"&&(Bt<Re.left&&(ye-=Bt-Re.left-y,te.x+vt<Re.left+fr&&(ye+=te.x-Re.left+vt-fr)),Pt>Re.right&&(ye-=Pt-Re.right-y,te.x>Re.right-fr&&(ye+=te.x-Re.right+fr)));var $r=Qe===!0?0:Qe;typeof $r=="number"&&(Vt<Re.top&&(O-=Vt-Re.top-p,te.y+Ve<Re.top+$r&&(O+=te.y-Re.top+Ve-$r)),Xt>Re.bottom&&(O-=Xt-Re.bottom-p,te.y>Re.bottom-$r&&(O+=te.y-Re.bottom+$r)));var xr=se.x+ye,Pr=xr+it,vr=se.y+O,Or=vr+tt,mr=te.x,Cr=mr+vt,Tr=te.y,jr=Tr+Ve,Ar=Math.max(xr,mr),ie=Math.min(Pr,Cr),Ie=(Ar+ie)/2,nt=Ie-xr,Se=Math.max(vr,Tr),Be=Math.min(Or,jr),It=(Se+Be)/2,gr=It-vr;ve==null||ve(P,st);var hr=sr.right-se.x-(ye+se.width),pr=sr.bottom-se.y-(O+se.height);Ue({ready:!0,offsetX:ye/Ut,offsetY:O/t,offsetR:hr/Ut,offsetB:pr/t,arrowX:nt/Ut,arrowY:gr/t,scaleX:Ut,scaleY:t,align:st})}}),Me=function(){xe.current+=1;var f=xe.current;Promise.resolve().then(function(){xe.current===f&&dt()})},n=function(){Ue(function(f){return(0,e.Z)((0,e.Z)({},f),{},{ready:!1})})};return(0,X.Z)(n,[R]),(0,X.Z)(function(){d||n()},[d]),[De.ready,De.offsetX,De.offsetY,De.offsetR,De.offsetB,De.arrowX,De.arrowY,De.scaleX,De.scaleY,De.align,Me]}var Kt=r(19127);function tr(d,P,v,R,L){(0,X.Z)(function(){if(d&&P&&v){let xe=function(){R(),L()};var K=P,ve=v,me=T(K),he=T(ve),De=w(ve),Ue=new Set([De].concat((0,Kt.Z)(me),(0,Kt.Z)(he)));return Ue.forEach(function(ut){ut.addEventListener("scroll",xe,{passive:!0})}),De.addEventListener("resize",xe,{passive:!0}),R(),function(){Ue.forEach(function(ut){ut.removeEventListener("scroll",xe),De.removeEventListener("resize",xe)})}}},[d,P,v])}var pt=r(48736),Ft=r(16089);function Jt(d,P,v,R,L,K,ve,me){var he=$.useRef(d),De=$.useRef(!1);he.current!==d&&(De.current=!0,he.current=d),$.useEffect(function(){var Ue=(0,Ft.Z)(function(){De.current=!1});return function(){Ft.Z.cancel(Ue)}},[d]),$.useEffect(function(){if(P&&R&&(!L||K)){var Ue=function(){var oe=!1,ee=function(_){var ce=_.target;oe=ve(ce)},ae=function(_){var ce=_.target;!De.current&&he.current&&!oe&&!ve(ce)&&me(!1)};return[ee,ae]},xe=Ue(),ut=(0,C.Z)(xe,2),be=ut[0],_e=ut[1],dt=Ue(),Me=(0,C.Z)(dt,2),n=Me[0],i=Me[1],f=w(R);f.addEventListener("mousedown",be,!0),f.addEventListener("click",_e,!0),f.addEventListener("contextmenu",_e,!0);var m=(0,de.A)(v);if(m&&(m.addEventListener("mousedown",n,!0),m.addEventListener("click",i,!0),m.addEventListener("contextmenu",i,!0)),0)var E,j,F,z;return function(){f.removeEventListener("mousedown",be,!0),f.removeEventListener("click",_e,!0),f.removeEventListener("contextmenu",_e,!0),m&&(m.removeEventListener("mousedown",n,!0),m.removeEventListener("click",i,!0),m.removeEventListener("contextmenu",i,!0))}}},[P,v,R,L,K])}var rr=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ar(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I.Z,P=$.forwardRef(function(v,R){var L=v.prefixCls,K=L===void 0?"rc-trigger-popup":L,ve=v.children,me=v.action,he=me===void 0?"hover":me,De=v.showAction,Ue=v.hideAction,xe=v.popupVisible,ut=v.defaultPopupVisible,be=v.onPopupVisibleChange,_e=v.afterPopupVisibleChange,dt=v.mouseEnterDelay,Me=v.mouseLeaveDelay,n=Me===void 0?.1:Me,i=v.focusDelay,f=v.blurDelay,m=v.mask,E=v.maskClosable,j=E===void 0?!0:E,F=v.getPopupContainer,z=v.forceRender,G=v.autoDestroy,oe=v.destroyPopupOnHide,ee=v.popup,ae=v.popupClassName,Pe=v.popupStyle,_=v.popupPlacement,ce=v.builtinPlacements,H=ce===void 0?{}:ce,J=v.popupAlign,te=v.zIndex,Le=v.stretch,se=v.getPopupClassNameFromAlign,$e=v.fresh,et=v.alignPoint,Zt=v.onPopupClick,Ot=v.onPopupAlign,ot=v.arrow,Wt=v.popupMotion,at=v.maskMotion,tt=v.popupTransitionName,it=v.popupAnimation,Ve=v.maskTransitionName,vt=v.maskAnimation,nr=v.className,Yt=v.getTriggerDOMNode,St=(0,W.Z)(v,rr),Ht=G||oe||!1,ir=$.useState(!1),kt=(0,C.Z)(ir,2),jt=kt[0],Re=kt[1];(0,X.Z)(function(){Re((0,Te.Z)())},[]);var qt=$.useRef({}),yt=$.useContext($t),sr=$.useMemo(function(){return{registerSubPopup:function(re,mt){qt.current[re]=mt,yt==null||yt.registerSubPopup(re,mt)}}},[yt]),Ut=(0,ge.Z)(),t=$.useState(null),s=(0,C.Z)(t,2),o=s[0],g=s[1],b=(0,V.Z)(function(M){(0,S.Sh)(M)&&o!==M&&g(M),yt==null||yt.registerSubPopup(Ut,M)}),y=$.useState(null),p=(0,C.Z)(y,2),u=p[0],N=p[1],A=$.useRef(null),U=(0,V.Z)(function(M){(0,S.Sh)(M)&&u!==M&&(N(M),A.current=M)}),pe=$.Children.only(ve),le=(pe==null?void 0:pe.props)||{},Ne={},Dt=(0,V.Z)(function(M){var re,mt,Tt=u;return(Tt==null?void 0:Tt.contains(M))||((re=(0,de.A)(Tt))===null||re===void 0?void 0:re.host)===M||M===Tt||(o==null?void 0:o.contains(M))||((mt=(0,de.A)(o))===null||mt===void 0?void 0:mt.host)===M||M===o||Object.values(qt.current).some(function(gt){return(gt==null?void 0:gt.contains(M))||M===gt})}),ct=h(K,Wt,it,tt),Xe=h(K,at,vt,Ve),ft=$.useState(ut||!1),bt=(0,C.Z)(ft,2),st=bt[0],ye=bt[1],O=xe!=null?xe:st,Je=(0,V.Z)(function(M){xe===void 0&&ye(M)});(0,X.Z)(function(){ye(xe||!1)},[xe]);var je=$.useRef(O);je.current=O;var zt=$.useRef([]);zt.current=[];var _t=(0,V.Z)(function(M){var re;Je(M),((re=zt.current[zt.current.length-1])!==null&&re!==void 0?re:O)!==M&&(zt.current.push(M),be==null||be(M))}),Rt=$.useRef(),lr=function(){clearTimeout(Rt.current)},Et=function(re){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;lr(),mt===0?_t(re):Rt.current=setTimeout(function(){_t(re)},mt*1e3)};$.useEffect(function(){return lr},[]);var wr=$.useState(!1),cr=(0,C.Z)(wr,2),xt=cr[0],Qe=cr[1];(0,X.Z)(function(M){(!M||O)&&Qe(!0)},[O]);var ur=$.useState(null),Vt=(0,C.Z)(ur,2),Xt=Vt[0],Bt=Vt[1],Pt=$.useState([0,0]),dr=(0,C.Z)(Pt,2),Q=dr[0],ke=dr[1],Ct=function(re){ke([re.clientX,re.clientY])},Mt=Nt(O,o,et?Q:u,_,H,J,Ot),rt=(0,C.Z)(Mt,11),Gt=rt[0],Dr=rt[1],yr=rt[2],Ye=rt[3],ze=rt[4],er=rt[5],Rr=rt[6],br=rt[7],Ir=rt[8],Er=rt[9],fr=rt[10],$r=x(jt,he,De,Ue),xr=(0,C.Z)($r,2),Pr=xr[0],vr=xr[1],Or=Pr.has("click"),mr=vr.has("click")||vr.has("contextMenu"),Cr=(0,V.Z)(function(){xt||fr()}),Tr=function(){je.current&&et&&mr&&Et(!1)};tr(O,u,o,Cr,Tr),(0,X.Z)(function(){Cr()},[Q,_]),(0,X.Z)(function(){O&&!(H!=null&&H[_])&&Cr()},[JSON.stringify(J)]);var jr=$.useMemo(function(){var M=c(H,K,Er,et);return B()(M,se==null?void 0:se(Er))},[Er,se,H,K,et]);$.useImperativeHandle(R,function(){return{nativeElement:A.current,forceAlign:Cr}});var Ar=$.useState(0),ie=(0,C.Z)(Ar,2),Ie=ie[0],nt=ie[1],Se=$.useState(0),Be=(0,C.Z)(Se,2),It=Be[0],gr=Be[1],hr=function(){if(Le&&u){var re=u.getBoundingClientRect();nt(re.width),gr(re.height)}},pr=function(){hr(),Cr()},or=function(re){Qe(!1),fr(),_e==null||_e(re)},zr=function(){return new Promise(function(re){hr(),Bt(function(){return re})})};(0,X.Z)(function(){Xt&&(fr(),Xt(),Bt(null))},[Xt]);function Sr(M,re,mt,Tt){Ne[M]=function(gt){var Wr;Tt==null||Tt(gt),Et(re,mt);for(var Gr=arguments.length,Kr=new Array(Gr>1?Gr-1:0),kr=1;kr<Gr;kr++)Kr[kr-1]=arguments[kr];(Wr=le[M])===null||Wr===void 0||Wr.call.apply(Wr,[le,gt].concat(Kr))}}(Or||mr)&&(Ne.onClick=function(M){var re;je.current&&mr?Et(!1):!je.current&&Or&&(Ct(M),Et(!0));for(var mt=arguments.length,Tt=new Array(mt>1?mt-1:0),gt=1;gt<mt;gt++)Tt[gt-1]=arguments[gt];(re=le.onClick)===null||re===void 0||re.call.apply(re,[le,M].concat(Tt))}),Jt(O,mr,u,o,m,j,Dt,Et);var Mr=Pr.has("hover"),Zr=vr.has("hover"),Lr,Nr;Mr&&(Sr("onMouseEnter",!0,dt,function(M){Ct(M)}),Sr("onPointerEnter",!0,dt,function(M){Ct(M)}),Lr=function(re){(O||xt)&&o!==null&&o!==void 0&&o.contains(re.target)&&Et(!0,dt)},et&&(Ne.onMouseMove=function(M){var re;(re=le.onMouseMove)===null||re===void 0||re.call(le,M)})),Zr&&(Sr("onMouseLeave",!1,n),Sr("onPointerLeave",!1,n),Nr=function(){Et(!1,n)}),Pr.has("focus")&&Sr("onFocus",!0,i),vr.has("focus")&&Sr("onBlur",!1,f),Pr.has("contextMenu")&&(Ne.onContextMenu=function(M){var re;je.current&&vr.has("contextMenu")?Et(!1):(Ct(M),Et(!0)),M.preventDefault();for(var mt=arguments.length,Tt=new Array(mt>1?mt-1:0),gt=1;gt<mt;gt++)Tt[gt-1]=arguments[gt];(re=le.onContextMenu)===null||re===void 0||re.call.apply(re,[le,M].concat(Tt))}),nr&&(Ne.className=B()(le.className,nr));var Fr=(0,e.Z)((0,e.Z)({},le),Ne),Br={},Hr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Hr.forEach(function(M){St[M]&&(Br[M]=function(){for(var re,mt=arguments.length,Tt=new Array(mt),gt=0;gt<mt;gt++)Tt[gt]=arguments[gt];(re=Fr[M])===null||re===void 0||re.call.apply(re,[Fr].concat(Tt)),St[M].apply(St,Tt)})});var Ur=$.cloneElement(pe,(0,e.Z)((0,e.Z)({},Fr),Br)),Vr={x:er,y:Rr},Xr=ot?(0,e.Z)({},ot!==!0?ot:{}):null;return $.createElement($.Fragment,null,$.createElement(D.Z,{disabled:!O,ref:U,onResize:pr},$.createElement(Oe,{getTriggerDOMNode:Yt},Ur)),$.createElement($t.Provider,{value:sr},$.createElement(fe,{portal:d,ref:b,prefixCls:K,popup:ee,className:B()(ae,jr),style:Pe,target:u,onMouseEnter:Lr,onMouseLeave:Nr,onPointerEnter:Lr,zIndex:te,open:O,keepDom:xt,fresh:$e,onClick:Zt,mask:m,motion:ct,maskMotion:Xe,onVisibleChanged:or,onPrepare:zr,forceRender:z,autoDestroy:Ht,getPopupContainer:F,align:Er,arrow:Xr,arrowPos:Vr,ready:Gt,offsetX:Dr,offsetY:yr,offsetR:Ye,offsetB:ze,onAlign:Cr,stretch:Le,targetWidth:Ie/br,targetHeight:It/Ir})))});return P}var Qt=ar(I.Z)},47781:function(wt,ue,r){r.r(ue),r.d(ue,{default:function(){return Lt}});var e=r(59301),C=r(89070),W=r(8591),I=r(95237),Y=r(43604),B=r(54580),D=r(3113),S=r(71418),de=r(955),V={flex_box_center:"flex_box_center___Rx_bl",flex_space_between:"flex_space_between___pf3DK",flex_box_vertical_center:"flex_box_vertical_center___C2f9B",flex_box_center_end:"flex_box_center_end___Pmdn_",flex_box_column:"flex_box_column___RduTL",wrap:"wrap___Z5mJ_",head:"head___WiKNg"},ge=r(99064),X=r(3294),Te=Object.defineProperty,$=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,We=(fe,Ce,Oe)=>Ce in fe?Te(fe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):fe[Ce]=Oe,ne=(fe,Ce)=>{for(var Oe in Ce||(Ce={}))lt.call(Ce,Oe)&&We(fe,Oe,Ce[Oe]);if($)for(var Oe of $(Ce))Ae.call(Ce,Oe)&&We(fe,Oe,Ce[Oe]);return fe},Z=(fe,Ce)=>{var Oe={};for(var He in fe)lt.call(fe,He)&&Ce.indexOf(He)<0&&(Oe[He]=fe[He]);if(fe!=null&&$)for(var He of $(fe))Ce.indexOf(He)<0&&Ae.call(fe,He)&&(Oe[He]=fe[He]);return Oe},ht=(fe,Ce,Oe)=>new Promise((He,$t)=>{var At=a=>{try{l(Oe.next(a))}catch(c){$t(c)}},x=a=>{try{l(Oe.throw(a))}catch(c){$t(c)}},l=a=>a.done?He(a.value):Promise.resolve(a.value).then(At,x);l((Oe=Oe.apply(fe,Ce)).next())});const qe=fe=>{var Ce=fe,{globalSetting:Oe,user:He,dispatch:$t}=Ce,At=Z(Ce,["globalSetting","user","dispatch"]),x,l,a;const[c,h]=(0,e.useState)([]),[w,T]=(0,e.useState)(),[k,q]=(0,e.useState)(!1),[we,Ee]=(0,e.useState)(!1),Ze={onRemove:()=>{h([])},beforeUpload:Ge=>{if((Ge==null?void 0:Ge.size)>1024*1024*50)return W.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let Fe=[];return Fe.push(Ge),h([...Fe]),!1},fileList:c,accept:".xls,.xlsx"};return e.createElement("section",{className:V.wrap},e.createElement("div",{className:V.head},e.createElement("span",{onClick:()=>C.history.push("/problems")},e.createElement("i",{className:"iconfont icon-fanhui2"}),e.createElement("span",{className:"mr20"},"\u8FD4\u56DE")),e.createElement("b",null,"\u6279\u91CF\u5BFC\u5165\u8BD5\u9898")),e.createElement("div",{className:"pr40 pl30 mt30"},e.createElement(I.Z,{gutter:[16,16]},e.createElement(Y.Z,{className:"font14",span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.createElement(Y.Z,null,e.createElement(B.default,ne({},Ze),e.createElement(D.ZP,{ghost:!0,type:"primary",style:{width:96,height:40,borderRadius:4}},"\u9009\u62E9\u6587\u4EF6")))),e.createElement(I.Z,{gutter:[16,16]},e.createElement(Y.Z,{span:2,className:"font14",style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.createElement(Y.Z,{span:22},e.createElement("span",null,"1.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",e.createElement("br",null),"2.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",e.createElement("span",{style:{cursor:"pointer",color:"#0152d9"},onClick:()=>{(0,de.FH)("",(0,de.NY)({url:X.Z.API_SERVER+"/api/practices/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"),e.createElement("br",null),"3.\u82E5\u76F4\u63A5\u4E0A\u4F20\u4FEE\u6539\u540E\u7684\u5931\u8D25\u6587\u4EF6\uFF0C\u9700\u8981\u5148\u5C06\u201C\u5931\u8D25\u539F\u56E0\u201D\u5217\u5220\u9664\u3002"))),e.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},e.createElement(D.ZP,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:()=>ht(void 0,null,function*(){if((c==null?void 0:c.length)<=0){W.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}q(!1),Ee(!0);const Ge=new FormData;Ge.append("file",c[0]);const Fe=yield(0,ge.ZP)("/api/practices/file_import.json",{method:"post",body:Ge},!0);Ee(!1),Fe.status!==-1&&(q(!0),T(Fe))})},"\u786E\u8BA4\u4E0A\u4F20")),k&&!we&&e.createElement("div",null,e.createElement("p",{style:{paddingLeft:15,fontSize:14}},"\u4E0A\u4F20\u7ED3\u679C"),e.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},e.createElement("span",{style:{flex:"1",lineHeight:"30px"}}," \u672C\u6B21\u4E0A\u4F20 \u65B0\u589E",e.createElement("span",{style:{color:"#FA6400"}},w==null?void 0:w.success),"\u6761\u8BD5\u9898\uFF0C\u4E0A\u4F20\u6210\u529F",e.createElement("span",{style:{color:"#FA6400"}},w==null?void 0:w.success),"\u6761\u6570\u636E",!!((x=w==null?void 0:w.fail)!=null&&x.length)&&e.createElement("span",null,"\uFF0C\u5931\u8D25",e.createElement("span",{style:{color:"#FA6400"}},(l=w==null?void 0:w.fail)==null?void 0:l.length),"\u6761\u6570\u636E")),!!((a=w==null?void 0:w.fail)!=null&&a.length)&&e.createElement(D.ZP,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:()=>{(0,de.FH)("",(0,de.NY)({url:X.Z.API_SERVER+(w==null?void 0:w.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),e.createElement(S.Z,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:we})))};var Lt=(0,C.connect)(({user:fe,globalSetting:Ce})=>({user:fe,globalSetting:Ce}))(qe)},36785:function(wt,ue,r){r.d(ue,{o2:function(){return Y},yT:function(){return B}});var e=r(19127),C=r(33166);const W=C.i.map(D=>`${D}-inverse`),I=["success","processing","error","default","warning"];function Y(D){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,e.Z)(W),(0,e.Z)(C.i)).includes(D):C.i.includes(D)}function B(D){return I.includes(D)}},56762:function(wt,ue,r){r.d(ue,{Z:function(){return C}});var e=r(59301);function C(){const[,W]=e.useReducer(I=>I+1,0);return W}},79676:function(wt,ue,r){r.d(ue,{Z:function(){return B}});var e=r(19447);function C(D,S,de,V){if(V===!1)return{adjustX:!1,adjustY:!1};const ge=V&&typeof V=="object"?V:{},X={};switch(D){case"top":case"bottom":X.shiftX=S.dropdownArrowOffset*2+de;break;case"left":case"right":X.shiftY=S.dropdownArrowOffsetVertical*2+de;break}const Te=Object.assign(Object.assign({},X),ge);return Te.shiftX||(Te.adjustX=!0),Te.shiftY||(Te.adjustY=!0),Te}const W={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},I={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Y=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function B(D){const{arrowWidth:S,autoAdjustOverflow:de,arrowPointAtCenter:V,offset:ge,borderRadius:X,visibleFirst:Te}=D,$=S/2,lt={};return Object.keys(W).forEach(Ae=>{const We=V&&I[Ae]||W[Ae],ne=Object.assign(Object.assign({},We),{offset:[0,0]});switch(lt[Ae]=ne,Y.has(Ae)&&(ne.autoArrow=!1),Ae){case"top":case"topLeft":case"topRight":ne.offset[1]=-$-ge;break;case"bottom":case"bottomLeft":case"bottomRight":ne.offset[1]=$+ge;break;case"left":case"leftTop":case"leftBottom":ne.offset[0]=-$-ge;break;case"right":case"rightTop":case"rightBottom":ne.offset[0]=$+ge;break}const Z=(0,e.fS)({contentRadius:X,limitVerticalRadius:!0});if(V)switch(Ae){case"topLeft":case"bottomLeft":ne.offset[0]=-Z.dropdownArrowOffset-$;break;case"topRight":case"bottomRight":ne.offset[0]=Z.dropdownArrowOffset+$;break;case"leftTop":case"rightTop":ne.offset[1]=-Z.dropdownArrowOffset-$;break;case"leftBottom":case"rightBottom":ne.offset[1]=Z.dropdownArrowOffset+$;break}ne.overflow=C(Ae,Z,S,de),Te&&(ne.htmlRegion="visibleFirst")}),lt}},93948:function(wt,ue,r){r.d(ue,{Z:function(){return Me}});var e=r(59301),C=r(29679),W=r(40001),I=r(19248),Y=r(99267),B=r(92310),D=r.n(B),S=r(2738),de=r(36355),V=r(96663),ge=r(44127),X=r(6620),Te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$=function(){var i=(0,e.useRef)([]),f=(0,e.useRef)(null);return(0,e.useEffect)(function(){var m=Date.now(),E=!1;i.current.forEach(function(j){if(j){E=!0;var F=j.style;F.transitionDuration=".3s, .3s, .3s, .06s",f.current&&m-f.current<100&&(F.transitionDuration="0s, 0s")}}),E&&(f.current=Date.now())}),i.current},lt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ae=function(i){var f=(0,ge.Z)((0,ge.Z)({},Te),i),m=f.className,E=f.percent,j=f.prefixCls,F=f.strokeColor,z=f.strokeLinecap,G=f.strokeWidth,oe=f.style,ee=f.trailColor,ae=f.trailWidth,Pe=f.transition,_=(0,X.Z)(f,lt);delete _.gapPosition;var ce=Array.isArray(E)?E:[E],H=Array.isArray(F)?F:[F],J=$(),te=G/2,Le=100-G/2,se="M ".concat(z==="round"?te:0,",").concat(te,`
L `).concat(z==="round"?Le:100,",").concat(te),$e="0 0 100 ".concat(G),et=0;return e.createElement("svg",(0,V.Z)({className:D()("".concat(j,"-line"),m),viewBox:$e,preserveAspectRatio:"none",style:oe},_),e.createElement("path",{className:"".concat(j,"-line-trail"),d:se,strokeLinecap:z,stroke:ee,strokeWidth:ae||G,fillOpacity:"0"}),ce.map(function(Zt,Ot){var ot=1;switch(z){case"round":ot=1-G/100;break;case"square":ot=1-G/2/100;break;default:ot=1;break}var Wt={strokeDasharray:"".concat(Zt*ot,"px, 100px"),strokeDashoffset:"-".concat(et,"px"),transition:Pe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},at=H[Ot]||H[H.length-1];return et+=Zt,e.createElement("path",{key:Ot,className:"".concat(j,"-line-path"),d:se,strokeLinecap:z,stroke:at,strokeWidth:G,fillOpacity:"0",ref:function(it){J[Ot]=it},style:Wt})}))},We=Ae,ne=r(20135),Z=r(72071),ht=r(47273),qe=0,Lt=(0,ht.Z)();function fe(){var n;return Lt?(n=qe,qe+=1):n="TEST_OR_SSR",n}var Ce=function(n){var i=e.useState(),f=(0,Z.Z)(i,2),m=f[0],E=f[1];return e.useEffect(function(){E("rc_progress_".concat(fe()))},[]),n||m},Oe=function(i){var f=i.bg,m=i.children;return e.createElement("div",{style:{width:"100%",height:"100%",background:f}},m)};function He(n,i){return Object.keys(n).map(function(f){var m=parseFloat(f),E="".concat(Math.floor(m*i),"%");return"".concat(n[f]," ").concat(E)})}var $t=e.forwardRef(function(n,i){var f=n.prefixCls,m=n.color,E=n.gradientId,j=n.radius,F=n.style,z=n.ptg,G=n.strokeLinecap,oe=n.strokeWidth,ee=n.size,ae=n.gapDegree,Pe=m&&(0,ne.Z)(m)==="object",_=Pe?"#FFF":void 0,ce=ee/2,H=e.createElement("circle",{className:"".concat(f,"-circle-path"),r:j,cx:ce,cy:ce,stroke:_,strokeLinecap:G,strokeWidth:oe,opacity:z===0?0:1,style:F,ref:i});if(!Pe)return H;var J="".concat(E,"-conic"),te=ae?"".concat(180+ae/2,"deg"):"0deg",Le=He(m,(360-ae)/360),se=He(m,1),$e="conic-gradient(from ".concat(te,", ").concat(Le.join(", "),")"),et="linear-gradient(to ".concat(ae?"bottom":"top",", ").concat(se.join(", "),")");return e.createElement(e.Fragment,null,e.createElement("mask",{id:J},H),e.createElement("foreignObject",{x:0,y:0,width:ee,height:ee,mask:"url(#".concat(J,")")},e.createElement(Oe,{bg:et},e.createElement(Oe,{bg:$e}))))}),At=$t,x=100,l=function(i,f,m,E,j,F,z,G,oe,ee){var ae=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Pe=m/100*360*((360-F)/360),_=F===0?0:{bottom:0,top:180,left:90,right:-90}[z],ce=(100-E)/100*f;oe==="round"&&E!==100&&(ce+=ee/2,ce>=f&&(ce=f-.01));var H=x/2;return{stroke:typeof G=="string"?G:void 0,strokeDasharray:"".concat(f,"px ").concat(i),strokeDashoffset:ce+ae,transform:"rotate(".concat(j+Pe+_,"deg)"),transformOrigin:"".concat(H,"px ").concat(H,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},a=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function c(n){var i=n!=null?n:[];return Array.isArray(i)?i:[i]}var h=function(i){var f=(0,ge.Z)((0,ge.Z)({},Te),i),m=f.id,E=f.prefixCls,j=f.steps,F=f.strokeWidth,z=f.trailWidth,G=f.gapDegree,oe=G===void 0?0:G,ee=f.gapPosition,ae=f.trailColor,Pe=f.strokeLinecap,_=f.style,ce=f.className,H=f.strokeColor,J=f.percent,te=(0,X.Z)(f,a),Le=x/2,se=Ce(m),$e="".concat(se,"-gradient"),et=Le-F/2,Zt=Math.PI*2*et,Ot=oe>0?90+oe/2:-90,ot=Zt*((360-oe)/360),Wt=(0,ne.Z)(j)==="object"?j:{count:j,space:2},at=Wt.count,tt=Wt.space,it=c(J),Ve=c(H),vt=Ve.find(function(jt){return jt&&(0,ne.Z)(jt)==="object"}),nr=vt&&(0,ne.Z)(vt)==="object",Yt=nr?"butt":Pe,St=l(Zt,ot,0,100,Ot,oe,ee,ae,Yt,F),Ht=$(),ir=function(){var Re=0;return it.map(function(qt,yt){var sr=Ve[yt]||Ve[Ve.length-1],Ut=l(Zt,ot,Re,qt,Ot,oe,ee,sr,Yt,F);return Re+=qt,e.createElement(At,{key:yt,color:sr,ptg:qt,radius:et,prefixCls:E,gradientId:$e,style:Ut,strokeLinecap:Yt,strokeWidth:F,gapDegree:oe,ref:function(s){Ht[yt]=s},size:x})}).reverse()},kt=function(){var Re=Math.round(at*(it[0]/100)),qt=100/at,yt=0;return new Array(at).fill(null).map(function(sr,Ut){var t=Ut<=Re-1?Ve[0]:ae,s=t&&(0,ne.Z)(t)==="object"?"url(#".concat($e,")"):void 0,o=l(Zt,ot,yt,qt,Ot,oe,ee,t,"butt",F,tt);return yt+=(ot-o.strokeDashoffset+tt)*100/ot,e.createElement("circle",{key:Ut,className:"".concat(E,"-circle-path"),r:et,cx:Le,cy:Le,stroke:s,strokeWidth:F,opacity:1,style:o,ref:function(b){Ht[Ut]=b}})})};return e.createElement("svg",(0,V.Z)({className:D()("".concat(E,"-circle"),ce),viewBox:"0 0 ".concat(x," ").concat(x),style:_,id:m,role:"presentation"},te),!at&&e.createElement("circle",{className:"".concat(E,"-circle-trail"),r:et,cx:Le,cy:Le,stroke:ae,strokeLinecap:Yt,strokeWidth:z||F,style:St}),at?kt():ir())},w=h,T={Line:We,Circle:w},k=r(6848),q=r(93398);function we(n){return!n||n<0?0:n>100?100:n}function Ee(n){let{success:i,successPercent:f}=n,m=f;return i&&"progress"in i&&(m=i.progress),i&&"percent"in i&&(m=i.percent),m}const Ze=n=>{let{percent:i,success:f,successPercent:m}=n;const E=we(Ee({success:f,successPercent:m}));return[E,we(we(i)-E)]},Ge=n=>{let{success:i={},strokeColor:f}=n;const{strokeColor:m}=i;return[m||q.presetPrimaryColors.green,f||null]},Fe=(n,i,f)=>{var m,E,j,F;let z=-1,G=-1;if(i==="step"){const oe=f.steps,ee=f.strokeWidth;typeof n=="string"||typeof n=="undefined"?(z=n==="small"?2:14,G=ee!=null?ee:8):typeof n=="number"?[z,G]=[n,n]:[z=14,G=8]=n,z*=oe}else if(i==="line"){const oe=f==null?void 0:f.strokeWidth;typeof n=="string"||typeof n=="undefined"?G=oe||(n==="small"?6:8):typeof n=="number"?[z,G]=[n,n]:[z=-1,G=8]=n}else(i==="circle"||i==="dashboard")&&(typeof n=="string"||typeof n=="undefined"?[z,G]=n==="small"?[60,60]:[120,120]:typeof n=="number"?[z,G]=[n,n]:(z=(E=(m=n[0])!==null&&m!==void 0?m:n[1])!==null&&E!==void 0?E:120,G=(F=(j=n[0])!==null&&j!==void 0?j:n[1])!==null&&F!==void 0?F:120));return[z,G]},Ke=3,Nt=n=>Ke/n*100;var tr=n=>{const{prefixCls:i,trailColor:f=null,strokeLinecap:m="round",gapPosition:E,gapDegree:j,width:F=120,type:z,children:G,success:oe,size:ee=F}=n,[ae,Pe]=Fe(ee,"circle");let{strokeWidth:_}=n;_===void 0&&(_=Math.max(Nt(ae),6));const ce={width:ae,height:Pe,fontSize:ae*.15+6},H=e.useMemo(()=>{if(j||j===0)return j;if(z==="dashboard")return 75},[j,z]),J=E||z==="dashboard"&&"bottom"||void 0,te=Object.prototype.toString.call(n.strokeColor)==="[object Object]",Le=Ge({success:oe,strokeColor:n.strokeColor}),se=D()(`${i}-inner`,{[`${i}-circle-gradient`]:te}),$e=e.createElement(w,{percent:Ze(n),strokeWidth:_,trailWidth:_,strokeColor:Le,strokeLinecap:m,trailColor:f,prefixCls:i,gapDegree:H,gapPosition:J});return e.createElement("div",{className:se,style:ce},ae<=20?e.createElement(k.Z,{title:G},e.createElement("span",null,$e)):e.createElement(e.Fragment,null,$e,G))},pt=function(n,i){var f={};for(var m in n)Object.prototype.hasOwnProperty.call(n,m)&&i.indexOf(m)<0&&(f[m]=n[m]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,m=Object.getOwnPropertySymbols(n);E<m.length;E++)i.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(n,m[E])&&(f[m[E]]=n[m[E]]);return f};const Ft=n=>{let i=[];return Object.keys(n).forEach(f=>{const m=parseFloat(f.replace(/%/g,""));isNaN(m)||i.push({key:m,value:n[f]})}),i=i.sort((f,m)=>f.key-m.key),i.map(f=>{let{key:m,value:E}=f;return`${E} ${m}%`}).join(", ")},Jt=(n,i)=>{const{from:f=q.presetPrimaryColors.blue,to:m=q.presetPrimaryColors.blue,direction:E=i==="rtl"?"to left":"to right"}=n,j=pt(n,["from","to","direction"]);if(Object.keys(j).length!==0){const F=Ft(j);return{backgroundImage:`linear-gradient(${E}, ${F})`}}return{backgroundImage:`linear-gradient(${E}, ${f}, ${m})`}};var ar=n=>{const{prefixCls:i,direction:f,percent:m,size:E,strokeWidth:j,strokeColor:F,strokeLinecap:z="round",children:G,trailColor:oe=null,success:ee}=n,ae=F&&typeof F!="string"?Jt(F,f):{backgroundColor:F},Pe=z==="square"||z==="butt"?0:void 0,_={backgroundColor:oe||void 0,borderRadius:Pe},ce=E!=null?E:[-1,j||(E==="small"?6:8)],[H,J]=Fe(ce,"line",{strokeWidth:j}),te=Object.assign({width:`${we(m)}%`,height:J,borderRadius:Pe},ae),Le=Ee(n),se={width:`${we(Le)}%`,height:J,borderRadius:Pe,backgroundColor:ee==null?void 0:ee.strokeColor},$e={width:H<0?"100%":H,height:J};return e.createElement(e.Fragment,null,e.createElement("div",{className:`${i}-outer`,style:$e},e.createElement("div",{className:`${i}-inner`,style:_},e.createElement("div",{className:`${i}-bg`,style:te}),Le!==void 0?e.createElement("div",{className:`${i}-success-bg`,style:se}):null)),G)},d=n=>{const{size:i,steps:f,percent:m=0,strokeWidth:E=8,strokeColor:j,trailColor:F=null,prefixCls:z,children:G}=n,oe=Math.round(f*(m/100)),ee=i==="small"?2:14,ae=i!=null?i:[ee,E],[Pe,_]=Fe(ae,"step",{steps:f,strokeWidth:E}),ce=Pe/f,H=new Array(f);for(let J=0;J<f;J++){const te=Array.isArray(j)?j[J]:j;H[J]=e.createElement("div",{key:J,className:D()(`${z}-steps-item`,{[`${z}-steps-item-active`]:J<=oe-1}),style:{backgroundColor:J<=oe-1?te:F,width:ce,height:_}})}return e.createElement("div",{className:`${z}-steps-outer`},H,G)},P=r(93083),v=r(17313),R=r(83116),L=r(37613);const K=n=>{const i=n?"100%":"-100%";return new P.Keyframes(`antProgress${n?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${i}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${i}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ve=n=>{const{componentCls:i,iconCls:f}=n;return{[i]:Object.assign(Object.assign({},(0,v.Wf)(n)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:n.fontSize,marginInlineEnd:n.marginXS,marginBottom:n.marginXS},[`${i}-outer`]:{display:"inline-block",width:"100%"},[`&${i}-show-info`]:{[`${i}-outer`]:{marginInlineEnd:`calc(-2em - ${n.marginXS}px)`,paddingInlineEnd:`calc(2em + ${n.paddingXS}px)`}},[`${i}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:n.remainingColor,borderRadius:n.lineBorderRadius},[`${i}-inner:not(${i}-circle-gradient)`]:{[`${i}-circle-path`]:{stroke:n.defaultColor}},[`${i}-success-bg, ${i}-bg`]:{position:"relative",backgroundColor:n.defaultColor,borderRadius:n.lineBorderRadius,transition:`all ${n.motionDurationSlow} ${n.motionEaseInOutCirc}`},[`${i}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:n.colorSuccess},[`${i}-text`]:{display:"inline-block",width:"2em",marginInlineStart:n.marginXS,color:n.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[f]:{fontSize:n.fontSize}},[`&${i}-status-active`]:{[`${i}-bg::before`]:{position:"absolute",inset:0,backgroundColor:n.colorBgContainer,borderRadius:n.lineBorderRadius,opacity:0,animationName:K(),animationDuration:n.progressActiveMotionDuration,animationTimingFunction:n.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${i}-rtl${i}-status-active`]:{[`${i}-bg::before`]:{animationName:K(!0)}},[`&${i}-status-exception`]:{[`${i}-bg`]:{backgroundColor:n.colorError},[`${i}-text`]:{color:n.colorError}},[`&${i}-status-exception ${i}-inner:not(${i}-circle-gradient)`]:{[`${i}-circle-path`]:{stroke:n.colorError}},[`&${i}-status-success`]:{[`${i}-bg`]:{backgroundColor:n.colorSuccess},[`${i}-text`]:{color:n.colorSuccess}},[`&${i}-status-success ${i}-inner:not(${i}-circle-gradient)`]:{[`${i}-circle-path`]:{stroke:n.colorSuccess}}})}},me=n=>{const{componentCls:i,iconCls:f}=n;return{[i]:{[`${i}-circle-trail`]:{stroke:n.remainingColor},[`&${i}-circle ${i}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${i}-circle ${i}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:n.circleTextColor,fontSize:n.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[f]:{fontSize:`${n.fontSize/n.fontSizeSM}em`}},[`${i}-circle&-status-exception`]:{[`${i}-text`]:{color:n.colorError}},[`${i}-circle&-status-success`]:{[`${i}-text`]:{color:n.colorSuccess}}},[`${i}-inline-circle`]:{lineHeight:1,[`${i}-inner`]:{verticalAlign:"bottom"}}}},he=n=>{const{componentCls:i}=n;return{[i]:{[`${i}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:n.progressStepMinWidth,marginInlineEnd:n.progressStepMarginInlineEnd,backgroundColor:n.remainingColor,transition:`all ${n.motionDurationSlow}`,"&-active":{backgroundColor:n.defaultColor}}}}}},De=n=>{const{componentCls:i,iconCls:f}=n;return{[i]:{[`${i}-small&-line, ${i}-small&-line ${i}-text ${f}`]:{fontSize:n.fontSizeSM}}}};var Ue=(0,R.Z)("Progress",n=>{const i=n.marginXXS/2,f=(0,L.TS)(n,{progressStepMarginInlineEnd:i,progressStepMinWidth:i,progressActiveMotionDuration:"2.4s"});return[ve(f),me(f),he(f),De(f)]},n=>({circleTextColor:n.colorText,defaultColor:n.colorInfo,remainingColor:n.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),xe=function(n,i){var f={};for(var m in n)Object.prototype.hasOwnProperty.call(n,m)&&i.indexOf(m)<0&&(f[m]=n[m]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,m=Object.getOwnPropertySymbols(n);E<m.length;E++)i.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(n,m[E])&&(f[m[E]]=n[m[E]]);return f};const ut=null,be=["normal","exception","active","success"];var dt=e.forwardRef((n,i)=>{const{prefixCls:f,className:m,rootClassName:E,steps:j,strokeColor:F,percent:z=0,size:G="default",showInfo:oe=!0,type:ee="line",status:ae,format:Pe,style:_}=n,ce=xe(n,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),H=e.useMemo(()=>{var it,Ve;const vt=Ee(n);return parseInt(vt!==void 0?(it=vt!=null?vt:0)===null||it===void 0?void 0:it.toString():(Ve=z!=null?z:0)===null||Ve===void 0?void 0:Ve.toString(),10)},[z,n.success,n.successPercent]),J=e.useMemo(()=>!be.includes(ae)&&H>=100?"success":ae||"normal",[ae,H]),{getPrefixCls:te,direction:Le,progress:se}=e.useContext(de.E_),$e=te("progress",f),[et,Zt]=Ue($e),Ot=e.useMemo(()=>{if(!oe)return null;const it=Ee(n);let Ve;const vt=Pe||(Yt=>`${Yt}%`),nr=ee==="line";return Pe||J!=="exception"&&J!=="success"?Ve=vt(we(z),we(it)):J==="exception"?Ve=nr?e.createElement(I.Z,null):e.createElement(Y.Z,null):J==="success"&&(Ve=nr?e.createElement(C.Z,null):e.createElement(W.Z,null)),e.createElement("span",{className:`${$e}-text`,title:typeof Ve=="string"?Ve:void 0},Ve)},[oe,z,H,J,ee,$e,Pe]),ot=Array.isArray(F)?F[0]:F,Wt=typeof F=="string"||Array.isArray(F)?F:void 0;let at;ee==="line"?at=j?e.createElement(d,Object.assign({},n,{strokeColor:Wt,prefixCls:$e,steps:j}),Ot):e.createElement(ar,Object.assign({},n,{strokeColor:ot,prefixCls:$e,direction:Le}),Ot):(ee==="circle"||ee==="dashboard")&&(at=e.createElement(tr,Object.assign({},n,{strokeColor:ot,prefixCls:$e,progressStatus:J}),Ot));const tt=D()($e,`${$e}-status-${J}`,`${$e}-${ee==="dashboard"&&"circle"||j&&"steps"||ee}`,{[`${$e}-inline-circle`]:ee==="circle"&&Fe(G,"circle")[0]<=20,[`${$e}-show-info`]:oe,[`${$e}-${G}`]:typeof G=="string",[`${$e}-rtl`]:Le==="rtl"},se==null?void 0:se.className,m,E,Zt);return et(e.createElement("div",Object.assign({ref:i,style:Object.assign(Object.assign({},se==null?void 0:se.style),_),className:tt,role:"progressbar","aria-valuenow":H},(0,S.Z)(ce,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),at))}),Me=dt},8378:function(wt,ue){const r=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});ue.Z=r},19447:function(wt,ue,r){r.d(ue,{ZP:function(){return Y},fS:function(){return W},qN:function(){return C}});var e=r(47585);const C=8;function W(B){const D=C,{contentRadius:S,limitVerticalRadius:de}=B,V=S>12?S+2:12;return{dropdownArrowOffset:V,dropdownArrowOffsetVertical:de?D:V}}function I(B,D){return B?D:{}}function Y(B,D){const{componentCls:S,sizePopupArrow:de,borderRadiusXS:V,borderRadiusOuter:ge,boxShadowPopoverArrow:X}=B,{colorBg:Te,contentRadius:$=B.borderRadiusLG,limitVerticalRadius:lt,arrowDistance:Ae=0,arrowPlacement:We={left:!0,right:!0,top:!0,bottom:!0}}=D,{dropdownArrowOffsetVertical:ne,dropdownArrowOffset:Z}=W({contentRadius:$,limitVerticalRadius:lt});return{[S]:Object.assign(Object.assign(Object.assign(Object.assign({[`${S}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,e.r)(de,V,ge,Te,X)),{"&:before":{background:Te}})]},I(!!We.top,{[[`&-placement-top ${S}-arrow`,`&-placement-topLeft ${S}-arrow`,`&-placement-topRight ${S}-arrow`].join(",")]:{bottom:Ae,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${S}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${S}-arrow`]:{left:{_skip_check_:!0,value:Z}},[`&-placement-topRight ${S}-arrow`]:{right:{_skip_check_:!0,value:Z}}})),I(!!We.bottom,{[[`&-placement-bottom ${S}-arrow`,`&-placement-bottomLeft ${S}-arrow`,`&-placement-bottomRight ${S}-arrow`].join(",")]:{top:Ae,transform:"translateY(-100%)"},[`&-placement-bottom ${S}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${S}-arrow`]:{left:{_skip_check_:!0,value:Z}},[`&-placement-bottomRight ${S}-arrow`]:{right:{_skip_check_:!0,value:Z}}})),I(!!We.left,{[[`&-placement-left ${S}-arrow`,`&-placement-leftTop ${S}-arrow`,`&-placement-leftBottom ${S}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Ae},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${S}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${S}-arrow`]:{top:ne},[`&-placement-leftBottom ${S}-arrow`]:{bottom:ne}})),I(!!We.right,{[[`&-placement-right ${S}-arrow`,`&-placement-rightTop ${S}-arrow`,`&-placement-rightBottom ${S}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Ae},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${S}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${S}-arrow`]:{top:ne},[`&-placement-rightBottom ${S}-arrow`]:{bottom:ne}}))}}},47585:function(wt,ue,r){r.d(ue,{r:function(){return e}});const e=(C,W,I,Y,B)=>{const D=C/2,S=0,de=D,V=I*1/Math.sqrt(2),ge=D-I*(1-1/Math.sqrt(2)),X=D-W*(1/Math.sqrt(2)),Te=I*(Math.sqrt(2)-1)+W*(1/Math.sqrt(2)),$=2*D-X,lt=Te,Ae=2*D-V,We=ge,ne=2*D-S,Z=de,ht=D*Math.sqrt(2)+I*(Math.sqrt(2)-2),qe=I*(Math.sqrt(2)-1);return{pointerEvents:"none",width:C,height:C,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:C,height:C/2,background:Y,clipPath:{_multi_value_:!0,value:[`polygon(${qe}px 100%, 50% ${qe}px, ${2*D-qe}px 100%, ${qe}px 100%)`,`path('M ${S} ${de} A ${I} ${I} 0 0 0 ${V} ${ge} L ${X} ${Te} A ${W} ${W} 0 0 1 ${$} ${lt} L ${Ae} ${We} A ${I} ${I} 0 0 0 ${ne} ${Z} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:ht,height:ht,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${W}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:B,zIndex:0,background:"transparent"}}}},33166:function(wt,ue,r){r.d(ue,{i:function(){return e}});const e=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(wt,ue,r){r.d(ue,{Z:function(){return C}});var e=r(33166);function C(W,I){return e.i.reduce((Y,B)=>{const D=W[`${B}1`],S=W[`${B}3`],de=W[`${B}6`],V=W[`${B}7`];return Object.assign(Object.assign({},Y),I(B,{lightColor:D,lightBorderColor:S,darkColor:de,textColor:V}))},{})}},6848:function(wt,ue,r){r.d(ue,{Z:function(){return At}});var e=r(59301),C=r(92310),W=r.n(C),I=r(55477),Y=r(18929),B=r(62892),D=r(79676),S=r(92343),de=r(36355),V=r(33234),ge=r(88088),X=r(17313),Te=r(29878),$=r(19447),lt=r(45157),Ae=r(37613),We=r(83116);const ne=x=>{const{componentCls:l,tooltipMaxWidth:a,tooltipColor:c,tooltipBg:h,tooltipBorderRadius:w,zIndexPopup:T,controlHeight:k,boxShadowSecondary:q,paddingSM:we,paddingXS:Ee,tooltipRadiusOuter:Ze}=x;return[{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,X.Wf)(x)),{position:"absolute",zIndex:T,display:"block",width:"max-content",maxWidth:a,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":h,[`${l}-inner`]:{minWidth:k,minHeight:k,padding:`${we/2}px ${Ee}px`,color:c,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:h,borderRadius:w,boxShadow:q,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${l}-inner`]:{borderRadius:Math.min(w,$.qN)}},[`${l}-content`]:{position:"relative"}}),(0,lt.Z)(x,(Ge,Fe)=>{let{darkColor:Ke}=Fe;return{[`&${l}-${Ge}`]:{[`${l}-inner`]:{backgroundColor:Ke},[`${l}-arrow`]:{"--antd-arrow-background-color":Ke}}}})),{"&-rtl":{direction:"rtl"}})},(0,$.ZP)((0,Ae.TS)(x,{borderRadiusOuter:Ze}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:w,limitVerticalRadius:!0}),{[`${l}-pure`]:{position:"relative",maxWidth:"none",margin:x.sizePopupArrow}}]};var Z=(x,l)=>(0,We.Z)("Tooltip",c=>{if(l===!1)return[];const{borderRadius:h,colorTextLightSolid:w,colorBgDefault:T,borderRadiusOuter:k}=c,q=(0,Ae.TS)(c,{tooltipMaxWidth:250,tooltipColor:w,tooltipBorderRadius:h,tooltipBg:T,tooltipRadiusOuter:k>4?4:k});return[ne(q),(0,Te._y)(c,"zoom-big-fast")]},c=>{let{zIndexPopupBase:h,colorBgSpotlight:w}=c;return{zIndexPopup:h+70,colorBgDefault:w}},{resetStyle:!1})(x),ht=r(36785);function qe(x,l){const a=(0,ht.o2)(l),c=W()({[`${x}-${l}`]:l&&a}),h={},w={};return l&&!a&&(h.background=l,w["--antd-arrow-background-color"]=l),{className:c,overlayStyle:h,arrowStyle:w}}var fe=x=>{const{prefixCls:l,className:a,placement:c="top",title:h,color:w,overlayInnerStyle:T}=x,{getPrefixCls:k}=e.useContext(de.E_),q=k("tooltip",l),[we,Ee]=Z(q,!0),Ze=qe(q,w),Ge=Ze.arrowStyle,Fe=Object.assign(Object.assign({},T),Ze.overlayStyle),Ke=W()(Ee,q,`${q}-pure`,`${q}-placement-${c}`,a,Ze.className);return we(e.createElement("div",{className:Ke,style:Ge},e.createElement("div",{className:`${q}-arrow`}),e.createElement(I.G,Object.assign({},x,{className:Ee,prefixCls:q,overlayInnerStyle:Fe}),h)))},Ce=function(x,l){var a={};for(var c in x)Object.prototype.hasOwnProperty.call(x,c)&&l.indexOf(c)<0&&(a[c]=x[c]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(x);h<c.length;h++)l.indexOf(c[h])<0&&Object.prototype.propertyIsEnumerable.call(x,c[h])&&(a[c[h]]=x[c[h]]);return a};const Oe=(x,l)=>{const a={},c=Object.assign({},x);return l.forEach(h=>{x&&h in x&&(a[h]=x[h],delete c[h])}),{picked:a,omitted:c}};function He(x,l){const a=x.type;if((a.__ANT_BUTTON===!0||x.type==="button")&&x.props.disabled||a.__ANT_SWITCH===!0&&(x.props.disabled||x.props.loading)||a.__ANT_RADIO===!0&&x.props.disabled){const{picked:c,omitted:h}=Oe(x.props.style,["position","left","right","top","bottom","float","display","zIndex"]),w=Object.assign(Object.assign({display:"inline-block"},c),{cursor:"not-allowed",width:x.props.block?"100%":void 0}),T=Object.assign(Object.assign({},h),{pointerEvents:"none"}),k=(0,S.Tm)(x,{style:T,className:null});return e.createElement("span",{style:w,className:W()(x.props.className,`${l}-disabled-compatible-wrapper`)},k)}return x}const $t=e.forwardRef((x,l)=>{var a,c;const{prefixCls:h,openClassName:w,getTooltipContainer:T,overlayClassName:k,color:q,overlayInnerStyle:we,children:Ee,afterOpenChange:Ze,afterVisibleChange:Ge,destroyTooltipOnHide:Fe,arrow:Ke=!0,title:Nt,overlay:Kt,builtinPlacements:tr,arrowPointAtCenter:pt=!1,autoAdjustOverflow:Ft=!0}=x,Jt=!!Ke,[,rr]=(0,ge.Z)(),{getPopupContainer:ar,getPrefixCls:Qt,direction:d}=e.useContext(de.E_),P=e.useRef(null),v=()=>{var _;(_=P.current)===null||_===void 0||_.forceAlign()};e.useImperativeHandle(l,()=>({forceAlign:v,forcePopupAlign:()=>{v()}}));const[R,L]=(0,Y.Z)(!1,{value:(a=x.open)!==null&&a!==void 0?a:x.visible,defaultValue:(c=x.defaultOpen)!==null&&c!==void 0?c:x.defaultVisible}),K=!Nt&&!Kt&&Nt!==0,ve=_=>{var ce,H;L(K?!1:_),K||((ce=x.onOpenChange)===null||ce===void 0||ce.call(x,_),(H=x.onVisibleChange)===null||H===void 0||H.call(x,_))},me=e.useMemo(()=>{var _,ce;let H=pt;return typeof Ke=="object"&&(H=(ce=(_=Ke.pointAtCenter)!==null&&_!==void 0?_:Ke.arrowPointAtCenter)!==null&&ce!==void 0?ce:pt),tr||(0,D.Z)({arrowPointAtCenter:H,autoAdjustOverflow:Ft,arrowWidth:Jt?rr.sizePopupArrow:0,borderRadius:rr.borderRadius,offset:rr.marginXXS,visibleFirst:!0})},[pt,Ke,tr,rr]),he=e.useMemo(()=>Nt===0?Nt:Kt||Nt||"",[Kt,Nt]),De=e.createElement(V.BR,null,typeof he=="function"?he():he),{getPopupContainer:Ue,placement:xe="top",mouseEnterDelay:ut=.1,mouseLeaveDelay:be=.1,overlayStyle:_e,rootClassName:dt}=x,Me=Ce(x,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),n=Qt("tooltip",h),i=Qt(),f=x["data-popover-inject"];let m=R;!("open"in x)&&!("visible"in x)&&K&&(m=!1);const E=He((0,S.l$)(Ee)&&!(0,S.M2)(Ee)?Ee:e.createElement("span",null,Ee),n),j=E.props,F=!j.className||typeof j.className=="string"?W()(j.className,w||`${n}-open`):j.className,[z,G]=Z(n,!f),oe=qe(n,q),ee=oe.arrowStyle,ae=Object.assign(Object.assign({},we),oe.overlayStyle),Pe=W()(k,{[`${n}-rtl`]:d==="rtl"},oe.className,dt,G);return z(e.createElement(I.Z,Object.assign({},Me,{showArrow:Jt,placement:xe,mouseEnterDelay:ut,mouseLeaveDelay:be,prefixCls:n,overlayClassName:Pe,overlayStyle:Object.assign(Object.assign({},ee),_e),getTooltipContainer:Ue||T||ar,ref:P,builtinPlacements:me,overlay:De,visible:m,onVisibleChange:ve,afterVisibleChange:Ze!=null?Ze:Ge,overlayInnerStyle:ae,arrowContent:e.createElement("span",{className:`${n}-arrow-content`}),motion:{motionName:(0,B.m)(i,"zoom-big-fast",x.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Fe}),m?(0,S.Tm)(E,{className:F}):E))});$t._InternalPanelDoNotUseOrYouWillBeFired=fe;var At=$t},54580:function(wt,ue,r){r.d(ue,{default:function(){return Ut}});var e=r(59301),C=r(19127),W=r(92310),I=r.n(W),Y=r(96663),B=r(52884),D=r(95727),S=r(65711),de=r(85745),V=r(90493),ge=r(6620),X=r(49581),Te=r(20135),$=r(73324),lt=r(26112);function Ae(t,s){var o="cannot ".concat(t.method," ").concat(t.action," ").concat(s.status,"'"),g=new Error(o);return g.status=s.status,g.method=t.method,g.url=t.action,g}function We(t){var s=t.responseText||t.response;if(!s)return s;try{return JSON.parse(s)}catch(o){return s}}function ne(t){var s=new XMLHttpRequest;t.onProgress&&s.upload&&(s.upload.onprogress=function(y){y.total>0&&(y.percent=y.loaded/y.total*100),t.onProgress(y)});var o=new FormData;t.data&&Object.keys(t.data).forEach(function(b){var y=t.data[b];if(Array.isArray(y)){y.forEach(function(p){o.append("".concat(b,"[]"),p)});return}o.append(b,y)}),t.file instanceof Blob?o.append(t.filename,t.file,t.file.name):o.append(t.filename,t.file),s.onerror=function(y){t.onError(y)},s.onload=function(){return s.status<200||s.status>=300?t.onError(Ae(t,s),We(s)):t.onSuccess(We(s),s)},s.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var g=t.headers||{};return g["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(g).forEach(function(b){g[b]!==null&&s.setRequestHeader(b,g[b])}),s.send(o),{abort:function(){s.abort()}}}var Z=+new Date,ht=0;function qe(){return"rc-upload-".concat(Z,"-").concat(++ht)}var Lt=r(48736),fe=function(t,s){if(t&&s){var o=Array.isArray(s)?s:s.split(","),g=t.name||"",b=t.type||"",y=b.replace(/\/.*$/,"");return o.some(function(p){var u=p.trim();if(/^\*(\/\*)?$/.test(p))return!0;if(u.charAt(0)==="."){var N=g.toLowerCase(),A=u.toLowerCase(),U=[A];return(A===".jpg"||A===".jpeg")&&(U=[".jpg",".jpeg"]),U.some(function(pe){return N.endsWith(pe)})}return/\/\*$/.test(u)?y===u.replace(/\/.*$/,""):b===u?!0:/^\w+$/.test(u)?((0,Lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0};function Ce(t,s){var o=t.createReader(),g=[];function b(){o.readEntries(function(y){var p=Array.prototype.slice.apply(y);g=g.concat(p);var u=!p.length;u?s(g):b()})}b()}var Oe=function(s,o,g){var b=function y(p,u){p&&(p.path=u||"",p.isFile?p.file(function(N){g(N)&&(p.fullPath&&!N.webkitRelativePath&&(Object.defineProperties(N,{webkitRelativePath:{writable:!0}}),N.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(N,{webkitRelativePath:{writable:!1}})),o([N]))}):p.isDirectory&&Ce(p,function(N){N.forEach(function(A){y(A,"".concat(u).concat(p.name,"/"))})}))};s.forEach(function(y){b(y.webkitGetAsEntry())})},He=Oe,$t=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],At=function(t){(0,S.Z)(o,t);var s=(0,de.Z)(o);function o(){var g;(0,B.Z)(this,o);for(var b=arguments.length,y=new Array(b),p=0;p<b;p++)y[p]=arguments[p];return g=s.call.apply(s,[this].concat(y)),g.state={uid:qe()},g.reqs={},g.fileInput=void 0,g._isMounted=void 0,g.onChange=function(u){var N=g.props,A=N.accept,U=N.directory,pe=u.target.files,le=(0,C.Z)(pe).filter(function(Ne){return!U||fe(Ne,A)});g.uploadFiles(le),g.reset()},g.onClick=function(u){var N=g.fileInput;if(N){var A=u.target,U=g.props.onClick;if(A&&A.tagName==="BUTTON"){var pe=N.parentNode;pe.focus(),A.blur()}N.click(),U&&U(u)}},g.onKeyDown=function(u){u.key==="Enter"&&g.onClick(u)},g.onFileDrop=function(u){var N=g.props.multiple;if(u.preventDefault(),u.type!=="dragover")if(g.props.directory)He(Array.prototype.slice.call(u.dataTransfer.items),g.uploadFiles,function(U){return fe(U,g.props.accept)});else{var A=(0,C.Z)(u.dataTransfer.files).filter(function(U){return fe(U,g.props.accept)});N===!1&&(A=A.slice(0,1)),g.uploadFiles(A)}},g.uploadFiles=function(u){var N=(0,C.Z)(u),A=N.map(function(U){return U.uid=qe(),g.processFile(U,N)});Promise.all(A).then(function(U){var pe=g.props.onBatchStart;pe==null||pe(U.map(function(le){var Ne=le.origin,Dt=le.parsedFile;return{file:Ne,parsedFile:Dt}})),U.filter(function(le){return le.parsedFile!==null}).forEach(function(le){g.post(le)})})},g.processFile=function(){var u=(0,$.Z)((0,X.Z)().mark(function N(A,U){var pe,le,Ne,Dt,ct,Xe,ft,bt,st;return(0,X.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(pe=g.props.beforeUpload,le=A,!pe){O.next=14;break}return O.prev=3,O.next=6,pe(A,U);case 6:le=O.sent,O.next=12;break;case 9:O.prev=9,O.t0=O.catch(3),le=!1;case 12:if(le!==!1){O.next=14;break}return O.abrupt("return",{origin:A,parsedFile:null,action:null,data:null});case 14:if(Ne=g.props.action,typeof Ne!="function"){O.next=21;break}return O.next=18,Ne(A);case 18:Dt=O.sent,O.next=22;break;case 21:Dt=Ne;case 22:if(ct=g.props.data,typeof ct!="function"){O.next=29;break}return O.next=26,ct(A);case 26:Xe=O.sent,O.next=30;break;case 29:Xe=ct;case 30:return ft=((0,Te.Z)(le)==="object"||typeof le=="string")&&le?le:A,ft instanceof File?bt=ft:bt=new File([ft],A.name,{type:A.type}),st=bt,st.uid=A.uid,O.abrupt("return",{origin:A,data:Xe,parsedFile:st,action:Dt});case 35:case"end":return O.stop()}},N,null,[[3,9]])}));return function(N,A){return u.apply(this,arguments)}}(),g.saveFileInput=function(u){g.fileInput=u},g}return(0,D.Z)(o,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(b){var y=this,p=b.data,u=b.origin,N=b.action,A=b.parsedFile;if(this._isMounted){var U=this.props,pe=U.onStart,le=U.customRequest,Ne=U.name,Dt=U.headers,ct=U.withCredentials,Xe=U.method,ft=u.uid,bt=le||ne,st={action:N,filename:Ne,data:p,file:A,headers:Dt,withCredentials:ct,method:Xe||"post",onProgress:function(O){var Je=y.props.onProgress;Je==null||Je(O,A)},onSuccess:function(O,Je){var je=y.props.onSuccess;je==null||je(O,A,Je),delete y.reqs[ft]},onError:function(O,Je){var je=y.props.onError;je==null||je(O,Je,A),delete y.reqs[ft]}};pe(u),this.reqs[ft]=bt(st)}}},{key:"reset",value:function(){this.setState({uid:qe()})}},{key:"abort",value:function(b){var y=this.reqs;if(b){var p=b.uid?b.uid:b;y[p]&&y[p].abort&&y[p].abort(),delete y[p]}else Object.keys(y).forEach(function(u){y[u]&&y[u].abort&&y[u].abort(),delete y[u]})}},{key:"render",value:function(){var b=this.props,y=b.component,p=b.prefixCls,u=b.className,N=b.disabled,A=b.id,U=b.style,pe=b.multiple,le=b.accept,Ne=b.capture,Dt=b.children,ct=b.directory,Xe=b.openFileDialogOnClick,ft=b.onMouseEnter,bt=b.onMouseLeave,st=(0,ge.Z)(b,$t),ye=I()((0,V.Z)((0,V.Z)((0,V.Z)({},p,!0),"".concat(p,"-disabled"),N),u,u)),O=ct?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Je=N?{}:{onClick:Xe?this.onClick:function(){},onKeyDown:Xe?this.onKeyDown:function(){},onMouseEnter:ft,onMouseLeave:bt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return e.createElement(y,(0,Y.Z)({},Je,{className:ye,role:"button",style:U}),e.createElement("input",(0,Y.Z)({},(0,lt.Z)(st,{aria:!0,data:!0}),{id:A,disabled:N,type:"file",ref:this.saveFileInput,onClick:function(zt){return zt.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:le},O,{multiple:pe,onChange:this.onChange},Ne!=null?{capture:Ne}:{})),Dt)}}]),o}(e.Component),x=At;function l(){}var a=function(t){(0,S.Z)(o,t);var s=(0,de.Z)(o);function o(){var g;(0,B.Z)(this,o);for(var b=arguments.length,y=new Array(b),p=0;p<b;p++)y[p]=arguments[p];return g=s.call.apply(s,[this].concat(y)),g.uploader=void 0,g.saveUploader=function(u){g.uploader=u},g}return(0,D.Z)(o,[{key:"abort",value:function(b){this.uploader.abort(b)}},{key:"render",value:function(){return e.createElement(x,(0,Y.Z)({},this.props,{ref:this.saveUploader}))}}]),o}(e.Component);a.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:l,onError:l,onSuccess:l,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var c=a,h=c,w=r(18929),T=r(4676),k=r(36355),q=r(1684),we=r(9763),Ee=r(31724),Ze={icon:function(s,o){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:o}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:s}}]}},name:"file",theme:"twotone"},Ge=Ze,Fe=r(7657),Ke=function(s,o){return e.createElement(Fe.Z,(0,Y.Z)({},s,{ref:o,icon:Ge}))},Nt=e.forwardRef(Ke),Kt=Nt,tr=r(58617),pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Ft=pt,Jt=function(s,o){return e.createElement(Fe.Z,(0,Y.Z)({},s,{ref:o,icon:Ft}))},rr=e.forwardRef(Jt),ar=rr,Qt={icon:function(s,o){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:o}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:o}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:o}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:s}}]}},name:"picture",theme:"twotone"},d=Qt,P=function(s,o){return e.createElement(Fe.Z,(0,Y.Z)({},s,{ref:o,icon:d}))},v=e.forwardRef(P),R=v,L=r(77900),K=r(56762),ve=r(62892),me=r(92343),he=r(3113);function De(t){return Object.assign(Object.assign({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function Ue(t,s){const o=(0,C.Z)(s),g=o.findIndex(b=>{let{uid:y}=b;return y===t.uid});return g===-1?o.push(t):o[g]=t,o}function xe(t,s){const o=t.uid!==void 0?"uid":"name";return s.filter(g=>g[o]===t[o])[0]}function ut(t,s){const o=t.uid!==void 0?"uid":"name",g=s.filter(b=>b[o]!==t[o]);return g.length===s.length?null:g}const be=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),g=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(g)||[""])[0]},_e=t=>t.indexOf("image/")===0,dt=t=>{if(t.type&&!t.thumbUrl)return _e(t.type);const s=t.thumbUrl||t.url||"",o=be(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o)?!0:!(/^data:/.test(s)||o)},Me=200;function n(t){return new Promise(s=>{if(!t.type||!_e(t.type)){s("");return}const o=document.createElement("canvas");o.width=Me,o.height=Me,o.style.cssText=`position: fixed; left: 0; top: 0; width: ${Me}px; height: ${Me}px; z-index: 9999; display: none;`,document.body.appendChild(o);const g=o.getContext("2d"),b=new Image;if(b.onload=()=>{const{width:y,height:p}=b;let u=Me,N=Me,A=0,U=0;y>p?(N=p*(Me/y),U=-(N-u)/2):(u=y*(Me/p),A=-(u-N)/2),g.drawImage(b,A,U,u,N);const pe=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(b.src),s(pe)},b.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){const y=new FileReader;y.onload=()=>{y.result&&(b.src=y.result)},y.readAsDataURL(t)}else if(t.type.startsWith("image/gif")){const y=new FileReader;y.onload=()=>{y.result&&s(y.result)},y.readAsDataURL(t)}else b.src=window.URL.createObjectURL(t)})}var i=r(26227),f=r(41464),m=r(15277),E=r(93948),j=r(6848),z=e.forwardRef((t,s)=>{let{prefixCls:o,className:g,style:b,locale:y,listType:p,file:u,items:N,progress:A,iconRender:U,actionIconRender:pe,itemRender:le,isImgUrl:Ne,showPreviewIcon:Dt,showRemoveIcon:ct,showDownloadIcon:Xe,previewIcon:ft,removeIcon:bt,downloadIcon:st,onPreview:ye,onDownload:O,onClose:Je}=t;var je,zt;const{status:_t}=u,[Rt,lr]=e.useState(_t);e.useEffect(()=>{_t!=="removed"&&lr(_t)},[_t]);const[Et,wr]=e.useState(!1);e.useEffect(()=>{const Ye=setTimeout(()=>{wr(!0)},300);return()=>{clearTimeout(Ye)}},[]);const cr=U(u);let xt=e.createElement("div",{className:`${o}-icon`},cr);if(p==="picture"||p==="picture-card"||p==="picture-circle")if(Rt==="uploading"||!u.thumbUrl&&!u.url){const Ye=I()(`${o}-list-item-thumbnail`,{[`${o}-list-item-file`]:Rt!=="uploading"});xt=e.createElement("div",{className:Ye},cr)}else{const Ye=Ne!=null&&Ne(u)?e.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${o}-list-item-image`,crossOrigin:u.crossOrigin}):cr,ze=I()(`${o}-list-item-thumbnail`,{[`${o}-list-item-file`]:Ne&&!Ne(u)});xt=e.createElement("a",{className:ze,onClick:er=>ye(u,er),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ye)}const Qe=I()(`${o}-list-item`,`${o}-list-item-${Rt}`),ur=typeof u.linkProps=="string"?JSON.parse(u.linkProps):u.linkProps,Vt=ct?pe((typeof bt=="function"?bt(u):bt)||e.createElement(i.Z,null),()=>Je(u),o,y.removeFile):null,Xt=Xe&&Rt==="done"?pe((typeof st=="function"?st(u):st)||e.createElement(f.Z,null),()=>O(u),o,y.downloadFile):null,Bt=p!=="picture-card"&&p!=="picture-circle"&&e.createElement("span",{key:"download-delete",className:I()(`${o}-list-item-actions`,{picture:p==="picture"})},Xt,Vt),Pt=I()(`${o}-list-item-name`),dr=u.url?[e.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Pt,title:u.name},ur,{href:u.url,onClick:Ye=>ye(u,Ye)}),u.name),Bt]:[e.createElement("span",{key:"view",className:Pt,onClick:Ye=>ye(u,Ye),title:u.name},u.name),Bt],Q={pointerEvents:"none",opacity:.5},ke=Dt?e.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:Q,onClick:Ye=>ye(u,Ye),title:y.previewFile},typeof ft=="function"?ft(u):ft||e.createElement(m.Z,null)):null,Ct=(p==="picture-card"||p==="picture-circle")&&Rt!=="uploading"&&e.createElement("span",{className:`${o}-list-item-actions`},ke,Rt==="done"&&Xt,Vt),{getPrefixCls:Mt}=e.useContext(k.E_),rt=Mt(),Gt=e.createElement("div",{className:Qe},xt,dr,Ct,Et&&e.createElement(L.default,{motionName:`${rt}-fade`,visible:Rt==="uploading",motionDeadline:2e3},Ye=>{let{className:ze}=Ye;const er="percent"in u?e.createElement(E.Z,Object.assign({},A,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return e.createElement("div",{className:I()(`${o}-list-item-progress`,ze)},er)})),Dr=u.response&&typeof u.response=="string"?u.response:((je=u.error)===null||je===void 0?void 0:je.statusText)||((zt=u.error)===null||zt===void 0?void 0:zt.message)||y.uploadError,yr=Rt==="error"?e.createElement(j.Z,{title:Dr,getPopupContainer:Ye=>Ye.parentNode},Gt):Gt;return e.createElement("div",{className:I()(`${o}-list-item-container`,g),style:b,ref:s},le?le(yr,u,N,{download:O.bind(null,u),preview:ye.bind(null,u),remove:Je.bind(null,u)}):yr)});const G=(t,s)=>{const{listType:o="text",previewFile:g=n,onPreview:b,onDownload:y,onRemove:p,locale:u,iconRender:N,isImageUrl:A=dt,prefixCls:U,items:pe=[],showPreviewIcon:le=!0,showRemoveIcon:Ne=!0,showDownloadIcon:Dt=!1,removeIcon:ct,previewIcon:Xe,downloadIcon:ft,progress:bt={size:[-1,2],showInfo:!1},appendAction:st,appendActionVisible:ye=!0,itemRender:O,disabled:Je}=t,je=(0,K.Z)(),[zt,_t]=e.useState(!1);e.useEffect(()=>{o!=="picture"&&o!=="picture-card"&&o!=="picture-circle"||(pe||[]).forEach(Q=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Q.originFileObj instanceof File||Q.originFileObj instanceof Blob)||Q.thumbUrl!==void 0||(Q.thumbUrl="",g&&g(Q.originFileObj).then(ke=>{Q.thumbUrl=ke||"",je()}))})},[o,pe,g]),e.useEffect(()=>{_t(!0)},[]);const Rt=(Q,ke)=>{if(b)return ke==null||ke.preventDefault(),b(Q)},lr=Q=>{typeof y=="function"?y(Q):Q.url&&window.open(Q.url)},Et=Q=>{p==null||p(Q)},wr=Q=>{if(N)return N(Q,o);const ke=Q.status==="uploading",Ct=A&&A(Q)?e.createElement(R,null):e.createElement(Kt,null);let Mt=ke?e.createElement(tr.Z,null):e.createElement(ar,null);return o==="picture"?Mt=ke?e.createElement(tr.Z,null):Ct:(o==="picture-card"||o==="picture-circle")&&(Mt=ke?u.uploading:Ct),Mt},cr=(Q,ke,Ct,Mt)=>{const rt={type:"text",size:"small",title:Mt,onClick:Gt=>{ke(),(0,me.l$)(Q)&&Q.props.onClick&&Q.props.onClick(Gt)},className:`${Ct}-list-item-action`,disabled:Je};if((0,me.l$)(Q)){const Gt=(0,me.Tm)(Q,Object.assign(Object.assign({},Q.props),{onClick:()=>{}}));return e.createElement(he.ZP,Object.assign({},rt,{icon:Gt}))}return e.createElement(he.ZP,Object.assign({},rt),e.createElement("span",null,Q))};e.useImperativeHandle(s,()=>({handlePreview:Rt,handleDownload:lr}));const{getPrefixCls:xt}=e.useContext(k.E_),Qe=xt("upload",U),ur=xt(),Vt=I()(`${Qe}-list`,`${Qe}-list-${o}`),Xt=(0,C.Z)(pe.map(Q=>({key:Q.uid,file:Q})));let Pt={motionDeadline:2e3,motionName:`${Qe}-${o==="picture-card"||o==="picture-circle"?"animate-inline":"animate"}`,keys:Xt,motionAppear:zt};const dr=e.useMemo(()=>{const Q=Object.assign({},(0,ve.Z)(ur));return delete Q.onAppearEnd,delete Q.onEnterEnd,delete Q.onLeaveEnd,Q},[ur]);return o!=="picture-card"&&o!=="picture-circle"&&(Pt=Object.assign(Object.assign({},dr),Pt)),e.createElement("div",{className:Vt},e.createElement(L.CSSMotionList,Object.assign({},Pt,{component:!1}),Q=>{let{key:ke,file:Ct,className:Mt,style:rt}=Q;return e.createElement(z,{key:ke,locale:u,prefixCls:Qe,className:Mt,style:rt,file:Ct,items:pe,progress:bt,listType:o,isImgUrl:A,showPreviewIcon:le,showRemoveIcon:Ne,showDownloadIcon:Dt,removeIcon:ct,previewIcon:Xe,downloadIcon:ft,iconRender:wr,actionIconRender:cr,itemRender:O,onPreview:Rt,onDownload:lr,onClose:Et})}),st&&e.createElement(L.default,Object.assign({},Pt,{visible:ye,forceRender:!0}),Q=>{let{className:ke,style:Ct}=Q;return(0,me.Tm)(st,Mt=>({className:I()(Mt.className,ke),style:Object.assign(Object.assign(Object.assign({},Ct),{pointerEvents:ke?"none":void 0}),Mt.style)}))}))};var ee=e.forwardRef(G),ae=r(17313),Pe=r(8378),_=r(83116),ce=r(37613),J=t=>{const{componentCls:s,iconCls:o}=t;return{[`${s}-wrapper`]:{[`${s}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[s]:{padding:`${t.padding}px 0`},[`${s}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${s}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${s}-disabled):hover`]:{borderColor:t.colorPrimaryHover},[`p${s}-drag-icon`]:{marginBottom:t.margin,[o]:{color:t.colorPrimary,fontSize:t.uploadThumbnailSize}},[`p${s}-text`]:{margin:`0 0 ${t.marginXXS}px`,color:t.colorTextHeading,fontSize:t.fontSizeLG},[`p${s}-hint`]:{color:t.colorTextDescription,fontSize:t.fontSize},[`&${s}-disabled`]:{cursor:"not-allowed",[`p${s}-drag-icon ${o},
p${s}-text,
p${s}-hint
`]:{color:t.colorTextDisabled}}}}}},Le=t=>{const{componentCls:s,antCls:o,iconCls:g,fontSize:b,lineHeight:y}=t,p=`${s}-list-item`,u=`${p}-actions`,N=`${p}-action`,A=Math.round(b*y);return{[`${s}-wrapper`]:{[`${s}-list`]:Object.assign(Object.assign({},(0,ae.dF)()),{lineHeight:t.lineHeight,[p]:{position:"relative",height:t.lineHeight*b,marginTop:t.marginXS,fontSize:b,display:"flex",alignItems:"center",transition:`background-color ${t.motionDurationSlow}`,"&:hover":{backgroundColor:t.controlItemBgHover},[`${p}-name`]:Object.assign(Object.assign({},ae.vS),{padding:`0 ${t.paddingXS}px`,lineHeight:y,flex:"auto",transition:`all ${t.motionDurationSlow}`}),[u]:{[N]:{opacity:0},[`${N}${o}-btn-sm`]:{height:A,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${N}:focus-visible,
&.picture ${N}
`]:{opacity:1},[g]:{color:t.actionsColor,transition:`all ${t.motionDurationSlow}`},[`&:hover ${g}`]:{color:t.colorText}},[`${s}-icon ${g}`]:{color:t.colorTextDescription,fontSize:b},[`${p}-progress`]:{position:"absolute",bottom:-t.uploadProgressOffset,width:"100%",paddingInlineStart:b+t.paddingXS,fontSize:b,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${p}:hover ${N}`]:{opacity:1,color:t.colorText},[`${p}-error`]:{color:t.colorError,[`${p}-name, ${s}-icon ${g}`]:{color:t.colorError},[u]:{[`${g}, ${g}:hover`]:{color:t.colorError},[N]:{opacity:1}}},[`${s}-list-item-container`]:{transition:`opacity ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},se=r(93083),$e=r(1950);const et=new se.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Zt=new se.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ot=t=>{const{componentCls:s}=t,o=`${s}-animate-inline`;return[{[`${s}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:et},[`${o}-leave`]:{animationName:Zt}}},{[`${s}-wrapper`]:(0,$e.J$)(t)},et,Zt]},Wt=r(93398),at=r(64993);const tt=t=>{const{componentCls:s,iconCls:o,uploadThumbnailSize:g,uploadProgressOffset:b}=t,y=`${s}-list`,p=`${y}-item`;return{[`${s}-wrapper`]:{[`
${y}${y}-picture,
${y}${y}-picture-card,
${y}${y}-picture-circle
`]:{[p]:{position:"relative",height:g+t.lineWidth*2+t.paddingXS*2,padding:t.paddingXS,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusLG,"&:hover":{background:"transparent"},[`${p}-thumbnail`]:Object.assign(Object.assign({},ae.vS),{width:g,height:g,lineHeight:`${g+t.paddingSM}px`,textAlign:"center",flex:"none",[o]:{fontSize:t.fontSizeHeading2,color:t.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${p}-progress`]:{bottom:b,width:`calc(100% - ${t.paddingSM*2}px)`,marginTop:0,paddingInlineStart:g+t.paddingXS}},[`${p}-error`]:{borderColor:t.colorError,[`${p}-thumbnail ${o}`]:{[`svg path[fill='${Wt.blue[0]}']`]:{fill:t.colorErrorBg},[`svg path[fill='${Wt.blue.primary}']`]:{fill:t.colorError}}},[`${p}-uploading`]:{borderStyle:"dashed",[`${p}-name`]:{marginBottom:b}}},[`${y}${y}-picture-circle ${p}`]:{[`&, &::before, ${p}-thumbnail`]:{borderRadius:"50%"}}}}},it=t=>{const{componentCls:s,iconCls:o,fontSizeLG:g,colorTextLightSolid:b}=t,y=`${s}-list`,p=`${y}-item`,u=t.uploadPicCardSize;return{[`
${s}-wrapper${s}-picture-card-wrapper,
${s}-wrapper${s}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,ae.dF)()),{display:"inline-block",width:"100%",[`${s}${s}-select`]:{width:u,height:u,marginInlineEnd:t.marginXS,marginBottom:t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[`> ${s}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${s}-disabled):hover`]:{borderColor:t.colorPrimary}},[`${y}${y}-picture-card, ${y}${y}-picture-circle`]:{[`${y}-item-container`]:{display:"inline-block",width:u,height:u,marginBlock:`0 ${t.marginXS}px`,marginInline:`0 ${t.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[p]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${t.paddingXS*2}px)`,height:`calc(100% - ${t.paddingXS*2}px)`,backgroundColor:t.colorBgMask,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'" "'}},[`${p}:hover`]:{[`&::before, ${p}-actions`]:{opacity:1}},[`${p}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${t.motionDurationSlow}`,[`${o}-eye, ${o}-download, ${o}-delete`]:{zIndex:10,width:g,margin:`0 ${t.marginXXS}px`,fontSize:g,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${p}-actions, ${p}-actions:hover`]:{[`${o}-eye, ${o}-download, ${o}-delete`]:{color:new at.C(b).setAlpha(.65).toRgbString(),"&:hover":{color:b}}},[`${p}-thumbnail, ${p}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${p}-name`]:{display:"none",textAlign:"center"},[`${p}-file + ${p}-name`]:{position:"absolute",bottom:t.margin,display:"block",width:`calc(100% - ${t.paddingXS*2}px)`},[`${p}-uploading`]:{[`&${p}`]:{backgroundColor:t.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${p}-progress`]:{bottom:t.marginXL,width:`calc(100% - ${t.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}};var vt=t=>{const{componentCls:s}=t;return{[`${s}-rtl`]:{direction:"rtl"}}};const nr=t=>{const{componentCls:s,colorTextDisabled:o}=t;return{[`${s}-wrapper`]:Object.assign(Object.assign({},(0,ae.Wf)(t)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-disabled`]:{color:o,cursor:"not-allowed"}})}};var Yt=(0,_.Z)("Upload",t=>{const{fontSizeHeading3:s,fontSize:o,lineHeight:g,lineWidth:b,controlHeightLG:y}=t,p=Math.round(o*g),u=(0,ce.TS)(t,{uploadThumbnailSize:s*2,uploadProgressOffset:p/2+b,uploadPicCardSize:y*2.55});return[nr(u),J(u),tt(u),it(u),Le(u),ot(u),vt(u),(0,Pe.Z)(u)]},t=>({actionsColor:t.colorTextDescription})),St=function(t,s,o,g){function b(y){return y instanceof o?y:new o(function(p){p(y)})}return new(o||(o=Promise))(function(y,p){function u(U){try{A(g.next(U))}catch(pe){p(pe)}}function N(U){try{A(g.throw(U))}catch(pe){p(pe)}}function A(U){U.done?y(U.value):b(U.value).then(u,N)}A((g=g.apply(t,s||[])).next())})};const Ht=`__LIST_IGNORE_${Date.now()}__`,ir=(t,s)=>{const{fileList:o,defaultFileList:g,onRemove:b,showUploadList:y=!0,listType:p="text",onPreview:u,onDownload:N,onChange:A,onDrop:U,previewFile:pe,disabled:le,locale:Ne,iconRender:Dt,isImageUrl:ct,progress:Xe,prefixCls:ft,className:bt,type:st="select",children:ye,style:O,itemRender:Je,maxCount:je,data:zt={},multiple:_t=!1,action:Rt="",accept:lr="",supportServerRender:Et=!0,rootClassName:wr}=t,cr=e.useContext(q.Z),xt=le!=null?le:cr,[Qe,ur]=(0,w.Z)(g||[],{value:o,postState:ie=>ie!=null?ie:[]}),[Vt,Xt]=e.useState("drop"),Bt=e.useRef(null);e.useMemo(()=>{const ie=Date.now();(o||[]).forEach((Ie,nt)=>{!Ie.uid&&!Object.isFrozen(Ie)&&(Ie.uid=`__AUTO__${ie}_${nt}__`)})},[o]);const Pt=(ie,Ie,nt)=>{let Se=(0,C.Z)(Ie),Be=!1;je===1?Se=Se.slice(-1):je&&(Be=Se.length>je,Se=Se.slice(0,je)),(0,T.flushSync)(()=>{ur(Se)});const It={file:ie,fileList:Se};nt&&(It.event=nt),(!Be||Se.some(gr=>gr.uid===ie.uid))&&(0,T.flushSync)(()=>{A==null||A(It)})},dr=(ie,Ie)=>St(void 0,void 0,void 0,function*(){const{beforeUpload:nt,transformFile:Se}=t;let Be=ie;if(nt){const It=yield nt(ie,Ie);if(It===!1)return!1;if(delete ie[Ht],It===Ht)return Object.defineProperty(ie,Ht,{value:!0,configurable:!0}),!1;typeof It=="object"&&It&&(Be=It)}return Se&&(Be=yield Se(Be)),Be}),Q=ie=>{const Ie=ie.filter(Be=>!Be.file[Ht]);if(!Ie.length)return;const nt=Ie.map(Be=>De(Be.file));let Se=(0,C.Z)(Qe);nt.forEach(Be=>{Se=Ue(Be,Se)}),nt.forEach((Be,It)=>{let gr=Be;if(Ie[It].parsedFile)Be.status="uploading";else{const{originFileObj:hr}=Be;let pr;try{pr=new File([hr],hr.name,{type:hr.type})}catch(or){pr=new Blob([hr],{type:hr.type}),pr.name=hr.name,pr.lastModifiedDate=new Date,pr.lastModified=new Date().getTime()}pr.uid=Be.uid,gr=pr}Pt(gr,Se)})},ke=(ie,Ie,nt)=>{try{typeof ie=="string"&&(ie=JSON.parse(ie))}catch(It){}if(!xe(Ie,Qe))return;const Se=De(Ie);Se.status="done",Se.percent=100,Se.response=ie,Se.xhr=nt;const Be=Ue(Se,Qe);Pt(Se,Be)},Ct=(ie,Ie)=>{if(!xe(Ie,Qe))return;const nt=De(Ie);nt.status="uploading",nt.percent=ie.percent;const Se=Ue(nt,Qe);Pt(nt,Se,ie)},Mt=(ie,Ie,nt)=>{if(!xe(nt,Qe))return;const Se=De(nt);Se.error=ie,Se.response=Ie,Se.status="error";const Be=Ue(Se,Qe);Pt(Se,Be)},rt=ie=>{let Ie;Promise.resolve(typeof b=="function"?b(ie):b).then(nt=>{var Se;if(nt===!1)return;const Be=ut(ie,Qe);Be&&(Ie=Object.assign(Object.assign({},ie),{status:"removed"}),Qe==null||Qe.forEach(It=>{const gr=Ie.uid!==void 0?"uid":"name";It[gr]===Ie[gr]&&!Object.isFrozen(It)&&(It.status="removed")}),(Se=Bt.current)===null||Se===void 0||Se.abort(Ie),Pt(Ie,Be))})},Gt=ie=>{Xt(ie.type),ie.type==="drop"&&(U==null||U(ie))};e.useImperativeHandle(s,()=>({onBatchStart:Q,onSuccess:ke,onProgress:Ct,onError:Mt,fileList:Qe,upload:Bt.current}));const{getPrefixCls:Dr,direction:yr,upload:Ye}=e.useContext(k.E_),ze=Dr("upload",ft),er=Object.assign(Object.assign({onBatchStart:Q,onError:Mt,onProgress:Ct,onSuccess:ke},t),{data:zt,multiple:_t,action:Rt,accept:lr,supportServerRender:Et,prefixCls:ze,disabled:xt,beforeUpload:dr,onChange:void 0});delete er.className,delete er.style,(!ye||xt)&&delete er.id;const[Rr,br]=Yt(ze),[Ir]=(0,we.Z)("Upload",Ee.Z.Upload),{showRemoveIcon:Er,showPreviewIcon:fr,showDownloadIcon:$r,removeIcon:xr,previewIcon:Pr,downloadIcon:vr}=typeof y=="boolean"?{}:y,Or=(ie,Ie)=>y?e.createElement(ee,{prefixCls:ze,listType:p,items:Qe,previewFile:pe,onPreview:u,onDownload:N,onRemove:rt,showRemoveIcon:!xt&&Er,showPreviewIcon:fr,showDownloadIcon:$r,removeIcon:xr,previewIcon:Pr,downloadIcon:vr,iconRender:Dt,locale:Object.assign(Object.assign({},Ir),Ne),isImageUrl:ct,progress:Xe,appendAction:ie,appendActionVisible:Ie,itemRender:Je,disabled:xt}):ie,mr=I()(`${ze}-wrapper`,bt,wr,br,Ye==null?void 0:Ye.className,{[`${ze}-rtl`]:yr==="rtl",[`${ze}-picture-card-wrapper`]:p==="picture-card",[`${ze}-picture-circle-wrapper`]:p==="picture-circle"}),Cr=Object.assign(Object.assign({},Ye==null?void 0:Ye.style),O);if(st==="drag"){const ie=I()(br,ze,`${ze}-drag`,{[`${ze}-drag-uploading`]:Qe.some(Ie=>Ie.status==="uploading"),[`${ze}-drag-hover`]:Vt==="dragover",[`${ze}-disabled`]:xt,[`${ze}-rtl`]:yr==="rtl"});return Rr(e.createElement("span",{className:mr},e.createElement("div",{className:ie,style:Cr,onDrop:Gt,onDragOver:Gt,onDragLeave:Gt},e.createElement(h,Object.assign({},er,{ref:Bt,className:`${ze}-btn`}),e.createElement("div",{className:`${ze}-drag-container`},ye))),Or()))}const Tr=I()(ze,`${ze}-select`,{[`${ze}-disabled`]:xt}),Ar=(ie=>e.createElement("div",{className:Tr,style:ie},e.createElement(h,Object.assign({},er,{ref:Bt}))))(ye?void 0:{display:"none"});return Rr(p==="picture-card"||p==="picture-circle"?e.createElement("span",{className:mr},Or(Ar,!!ye)):e.createElement("span",{className:mr},Ar,Or()))};var jt=e.forwardRef(ir),Re=function(t,s){var o={};for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&s.indexOf(g)<0&&(o[g]=t[g]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,g=Object.getOwnPropertySymbols(t);b<g.length;b++)s.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(t,g[b])&&(o[g[b]]=t[g[b]]);return o},yt=e.forwardRef((t,s)=>{var{style:o,height:g}=t,b=Re(t,["style","height"]);return e.createElement(jt,Object.assign({ref:s},b,{type:"drag",style:Object.assign(Object.assign({},o),{height:g})}))});const sr=jt;sr.Dragger=yt,sr.LIST_IGNORE=Ht;var Ut=sr},29301:function(wt,ue,r){r.d(ue,{Z:function(){return l}});var e=r(96663),C=r(59301),W=r(11592),I=r(48736),Y=r(44127),B=r(20135),D=r(76846),S=r(8654),de=C.createContext(null);function V(a){var c=a.children,h=a.onBatchResize,w=C.useRef(0),T=C.useRef([]),k=C.useContext(de),q=C.useCallback(function(we,Ee,Ze){w.current+=1;var Ge=w.current;T.current.push({size:we,element:Ee,data:Ze}),Promise.resolve().then(function(){Ge===w.current&&(h==null||h(T.current),T.current=[])}),k==null||k(we,Ee,Ze)},[h,k]);return C.createElement(de.Provider,{value:q},c)}var ge=r(76374),X=new Map;function Te(a){a.forEach(function(c){var h,w=c.target;(h=X.get(w))===null||h===void 0||h.forEach(function(T){return T(w)})})}var $=new ge.Z(Te),lt=null,Ae=null;function We(a,c){X.has(a)||(X.set(a,new Set),$.observe(a)),X.get(a).add(c)}function ne(a,c){X.has(a)&&(X.get(a).delete(c),X.get(a).size||($.unobserve(a),X.delete(a)))}var Z=r(52884),ht=r(95727),qe=r(65711),Lt=r(85745),fe=function(a){(0,qe.Z)(h,a);var c=(0,Lt.Z)(h);function h(){return(0,Z.Z)(this,h),c.apply(this,arguments)}return(0,ht.Z)(h,[{key:"render",value:function(){return this.props.children}}]),h}(C.Component);function Ce(a,c){var h=a.children,w=a.disabled,T=C.useRef(null),k=C.useRef(null),q=C.useContext(de),we=typeof h=="function",Ee=we?h(T):h,Ze=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ge=!we&&C.isValidElement(Ee)&&(0,S.Yr)(Ee),Fe=Ge?(0,S.C4)(Ee):null,Ke=(0,S.x1)(Fe,T),Nt=function(){var Ft;return(0,D.ZP)(T.current)||(T.current&&(0,B.Z)(T.current)==="object"?(0,D.ZP)((Ft=T.current)===null||Ft===void 0?void 0:Ft.nativeElement):null)||(0,D.ZP)(k.current)};C.useImperativeHandle(c,function(){return Nt()});var Kt=C.useRef(a);Kt.current=a;var tr=C.useCallback(function(pt){var Ft=Kt.current,Jt=Ft.onResize,rr=Ft.data,ar=pt.getBoundingClientRect(),Qt=ar.width,d=ar.height,P=pt.offsetWidth,v=pt.offsetHeight,R=Math.floor(Qt),L=Math.floor(d);if(Ze.current.width!==R||Ze.current.height!==L||Ze.current.offsetWidth!==P||Ze.current.offsetHeight!==v){var K={width:R,height:L,offsetWidth:P,offsetHeight:v};Ze.current=K;var ve=P===Math.round(Qt)?Qt:P,me=v===Math.round(d)?d:v,he=(0,Y.Z)((0,Y.Z)({},K),{},{offsetWidth:ve,offsetHeight:me});q==null||q(he,pt,rr),Jt&&Promise.resolve().then(function(){Jt(he,pt)})}},[]);return C.useEffect(function(){var pt=Nt();return pt&&!w&&We(pt,tr),function(){return ne(pt,tr)}},[T.current,w]),C.createElement(fe,{ref:k},Ge?C.cloneElement(Ee,{ref:Ke}):Ee)}var Oe=C.forwardRef(Ce),He=Oe,$t="rc-observer-key";function At(a,c){var h=a.children,w=typeof h=="function"?[h]:(0,W.Z)(h);return w.map(function(T,k){var q=(T==null?void 0:T.key)||"".concat($t,"-").concat(k);return C.createElement(He,(0,e.Z)({},a,{key:q,ref:k===0?c:void 0}),T)})}var x=C.forwardRef(At);x.Collection=V;var l=x},55477:function(wt,ue,r){r.d(ue,{G:function(){return Te},Z:function(){return We}});var e=r(96663),C=r(44127),W=r(6620),I=r(35593),Y=r(59301),B={shiftX:64,adjustY:1},D={adjustX:1,shiftY:!0},S=[0,0],de={left:{points:["cr","cl"],overflow:D,offset:[-4,0],targetOffset:S},right:{points:["cl","cr"],overflow:D,offset:[4,0],targetOffset:S},top:{points:["bc","tc"],overflow:B,offset:[0,-4],targetOffset:S},bottom:{points:["tc","bc"],overflow:B,offset:[0,4],targetOffset:S},topLeft:{points:["bl","tl"],overflow:B,offset:[0,-4],targetOffset:S},leftTop:{points:["tr","tl"],overflow:D,offset:[-4,0],targetOffset:S},topRight:{points:["br","tr"],overflow:B,offset:[0,-4],targetOffset:S},rightTop:{points:["tl","tr"],overflow:D,offset:[4,0],targetOffset:S},bottomRight:{points:["tr","br"],overflow:B,offset:[0,4],targetOffset:S},rightBottom:{points:["bl","br"],overflow:D,offset:[4,0],targetOffset:S},bottomLeft:{points:["tl","bl"],overflow:B,offset:[0,4],targetOffset:S},leftBottom:{points:["br","bl"],overflow:D,offset:[-4,0],targetOffset:S}},V=null,ge=r(92310),X=r.n(ge);function Te(ne){var Z=ne.children,ht=ne.prefixCls,qe=ne.id,Lt=ne.overlayInnerStyle,fe=ne.className,Ce=ne.style;return Y.createElement("div",{className:X()("".concat(ht,"-content"),fe),style:Ce},Y.createElement("div",{className:"".concat(ht,"-inner"),id:qe,role:"tooltip",style:Lt},typeof Z=="function"?Z():Z))}var $=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],lt=function(Z,ht){var qe=Z.overlayClassName,Lt=Z.trigger,fe=Lt===void 0?["hover"]:Lt,Ce=Z.mouseEnterDelay,Oe=Ce===void 0?0:Ce,He=Z.mouseLeaveDelay,$t=He===void 0?.1:He,At=Z.overlayStyle,x=Z.prefixCls,l=x===void 0?"rc-tooltip":x,a=Z.children,c=Z.onVisibleChange,h=Z.afterVisibleChange,w=Z.transitionName,T=Z.animation,k=Z.motion,q=Z.placement,we=q===void 0?"right":q,Ee=Z.align,Ze=Ee===void 0?{}:Ee,Ge=Z.destroyTooltipOnHide,Fe=Ge===void 0?!1:Ge,Ke=Z.defaultVisible,Nt=Z.getTooltipContainer,Kt=Z.overlayInnerStyle,tr=Z.arrowContent,pt=Z.overlay,Ft=Z.id,Jt=Z.showArrow,rr=Jt===void 0?!0:Jt,ar=(0,W.Z)(Z,$),Qt=(0,Y.useRef)(null);(0,Y.useImperativeHandle)(ht,function(){return Qt.current});var d=(0,C.Z)({},ar);"visible"in Z&&(d.popupVisible=Z.visible);var P=function(){return Y.createElement(Te,{key:"content",prefixCls:l,id:Ft,overlayInnerStyle:Kt},pt)};return Y.createElement(I.Z,(0,e.Z)({popupClassName:qe,prefixCls:l,popup:P,action:fe,builtinPlacements:de,popupPlacement:we,ref:Qt,popupAlign:Ze,getPopupContainer:Nt,onPopupVisibleChange:c,afterPopupVisibleChange:h,popupTransitionName:w,popupAnimation:T,popupMotion:k,defaultPopupVisible:Ke,autoDestroy:Fe,mouseLeaveDelay:$t,popupStyle:At,mouseEnterDelay:Oe,arrow:rr},d),a)},Ae=(0,Y.forwardRef)(lt),We=Ae},49658:function(wt,ue){ue.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var r=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(r==null?void 0:r.substr(0,4))}},76374:function(wt,ue,r){var e=function(){if(typeof Map!="undefined")return Map;function l(a,c){var h=-1;return a.some(function(w,T){return w[0]===c?(h=T,!0):!1}),h}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(c){var h=l(this.__entries__,c),w=this.__entries__[h];return w&&w[1]},a.prototype.set=function(c,h){var w=l(this.__entries__,c);~w?this.__entries__[w][1]=h:this.__entries__.push([c,h])},a.prototype.delete=function(c){var h=this.__entries__,w=l(h,c);~w&&h.splice(w,1)},a.prototype.has=function(c){return!!~l(this.__entries__,c)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(c,h){h===void 0&&(h=null);for(var w=0,T=this.__entries__;w<T.length;w++){var k=T[w];c.call(h,k[1],k[0])}},a}()}(),C=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,W=function(){return typeof r.g!="undefined"&&r.g.Math===Math?r.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),I=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(W):function(l){return setTimeout(function(){return l(Date.now())},1e3/60)}}(),Y=2;function B(l,a){var c=!1,h=!1,w=0;function T(){c&&(c=!1,l()),h&&q()}function k(){I(T)}function q(){var we=Date.now();if(c){if(we-w<Y)return;h=!0}else c=!0,h=!1,setTimeout(k,a);w=we}return q}var D=20,S=["top","right","bottom","left","width","height","size","weight"],de=typeof MutationObserver!="undefined",V=function(){function l(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=B(this.refresh.bind(this),D)}return l.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},l.prototype.removeObserver=function(a){var c=this.observers_,h=c.indexOf(a);~h&&c.splice(h,1),!c.length&&this.connected_&&this.disconnect_()},l.prototype.refresh=function(){var a=this.updateObservers_();a&&this.refresh()},l.prototype.updateObservers_=function(){var a=this.observers_.filter(function(c){return c.gatherActive(),c.hasActive()});return a.forEach(function(c){return c.broadcastActive()}),a.length>0},l.prototype.connect_=function(){!C||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),de?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},l.prototype.disconnect_=function(){!C||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},l.prototype.onTransitionEnd_=function(a){var c=a.propertyName,h=c===void 0?"":c,w=S.some(function(T){return!!~h.indexOf(T)});w&&this.refresh()},l.getInstance=function(){return this.instance_||(this.instance_=new l),this.instance_},l.instance_=null,l}(),ge=function(l,a){for(var c=0,h=Object.keys(a);c<h.length;c++){var w=h[c];Object.defineProperty(l,w,{value:a[w],enumerable:!1,writable:!1,configurable:!0})}return l},X=function(l){var a=l&&l.ownerDocument&&l.ownerDocument.defaultView;return a||W},Te=fe(0,0,0,0);function $(l){return parseFloat(l)||0}function lt(l){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];return a.reduce(function(h,w){var T=l["border-"+w+"-width"];return h+$(T)},0)}function Ae(l){for(var a=["top","right","bottom","left"],c={},h=0,w=a;h<w.length;h++){var T=w[h],k=l["padding-"+T];c[T]=$(k)}return c}function We(l){var a=l.getBBox();return fe(0,0,a.width,a.height)}function ne(l){var a=l.clientWidth,c=l.clientHeight;if(!a&&!c)return Te;var h=X(l).getComputedStyle(l),w=Ae(h),T=w.left+w.right,k=w.top+w.bottom,q=$(h.width),we=$(h.height);if(h.boxSizing==="border-box"&&(Math.round(q+T)!==a&&(q-=lt(h,"left","right")+T),Math.round(we+k)!==c&&(we-=lt(h,"top","bottom")+k)),!ht(l)){var Ee=Math.round(q+T)-a,Ze=Math.round(we+k)-c;Math.abs(Ee)!==1&&(q-=Ee),Math.abs(Ze)!==1&&(we-=Ze)}return fe(w.left,w.top,q,we)}var Z=function(){return typeof SVGGraphicsElement!="undefined"?function(l){return l instanceof X(l).SVGGraphicsElement}:function(l){return l instanceof X(l).SVGElement&&typeof l.getBBox=="function"}}();function ht(l){return l===X(l).document.documentElement}function qe(l){return C?Z(l)?We(l):ne(l):Te}function Lt(l){var a=l.x,c=l.y,h=l.width,w=l.height,T=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,k=Object.create(T.prototype);return ge(k,{x:a,y:c,width:h,height:w,top:c,right:a+h,bottom:w+c,left:a}),k}function fe(l,a,c,h){return{x:l,y:a,width:c,height:h}}var Ce=function(){function l(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fe(0,0,0,0),this.target=a}return l.prototype.isActive=function(){var a=qe(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},l.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},l}(),Oe=function(){function l(a,c){var h=Lt(c);ge(this,{target:a,contentRect:h})}return l}(),He=function(){function l(a,c,h){if(this.activeObservations_=[],this.observations_=new e,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=c,this.callbackCtx_=h}return l.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(a instanceof X(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(a)||(c.set(a,new Ce(a)),this.controller_.addObserver(this),this.controller_.refresh())}},l.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(a instanceof X(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(a)&&(c.delete(a),c.size||this.controller_.removeObserver(this))}},l.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},l.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(c){c.isActive()&&a.activeObservations_.push(c)})},l.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,c=this.activeObservations_.map(function(h){return new Oe(h.target,h.broadcastRect())});this.callback_.call(a,c,a),this.clearActive()}},l.prototype.clearActive=function(){this.activeObservations_.splice(0)},l.prototype.hasActive=function(){return this.activeObservations_.length>0},l}(),$t=typeof WeakMap!="undefined"?new WeakMap:new e,At=function(){function l(a){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=V.getInstance(),h=new He(a,c,this);$t.set(this,h)}return l}();["observe","unobserve","disconnect"].forEach(function(l){At.prototype[l]=function(){var a;return(a=$t.get(this))[l].apply(a,arguments)}});var x=function(){return typeof W.ResizeObserver!="undefined"?W.ResizeObserver:At}();ue.Z=x}}]);