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__Competitions__Update__in...

14 lines
135 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[5650],{65966:function(hn,st,l){"use strict";l.d(st,{Z:function(){return wt}});var I=l(20439),P=l(50298),g=l(62646),tt=l(43403),Y=l(92310),X=l.n(Y),H=l(29301),ue=l(76846),U=l(96452),ve=l(6089),Be=l(80402),xe=l(34280),u=l(49658),z=l(59301),rt=l(14809),Ct=l(77900),nt=l(8654);function De(h){var N=h.prefixCls,y=h.align,O=h.arrow,V=h.arrowPos,_=O||{},ie=_.className,fe=_.content,me=V.x,ye=me===void 0?0:me,ke=V.y,se=ke===void 0?0:ke,Ge=z.useRef();if(!y||!y.points)return null;var q={position:"absolute"};if(y.autoArrow!==!1){var We=y.points[0],et=y.points[1],G=We[0],Ve=We[1],qe=et[0],ze=et[1];G===qe||!["t","b"].includes(G)?q.top=se:G==="t"?q.top=0:q.bottom=0,Ve===ze||!["l","r"].includes(Ve)?q.left=ye:Ve==="l"?q.left=0:q.right=0}return z.createElement("div",{ref:Ge,className:X()("".concat(N,"-arrow"),ie),style:q},fe)}function He(h){var N=h.prefixCls,y=h.open,O=h.zIndex,V=h.mask,_=h.motion;return V?z.createElement(Ct.default,(0,rt.Z)({},_,{motionAppear:!0,visible:y,removeOnLeave:!0}),function(ie){var fe=ie.className;return z.createElement("div",{style:{zIndex:O},className:X()("".concat(N,"-mask"),fe)})}):null}var K=z.memo(function(h){var N=h.children;return N},function(h,N){return N.cache}),T=K,L=z.forwardRef(function(h,N){var y=h.popup,O=h.className,V=h.prefixCls,_=h.style,ie=h.target,fe=h.onVisibleChanged,me=h.open,ye=h.keepDom,ke=h.fresh,se=h.onClick,Ge=h.mask,q=h.arrow,We=h.arrowPos,et=h.align,G=h.motion,Ve=h.maskMotion,qe=h.forceRender,ze=h.getPopupContainer,at=h.autoDestroy,Fe=h.portal,ae=h.zIndex,ct=h.onMouseEnter,Pt=h.onMouseLeave,_e=h.onPointerEnter,$e=h.onPointerDownCapture,Gt=h.ready,Ee=h.offsetX,Ie=h.offsetY,Ue=h.offsetR,It=h.offsetB,ge=h.onAlign,Je=h.onPrepare,be=h.stretch,Tt=h.targetWidth,Mt=h.targetHeight,Dt=typeof y=="function"?y():y,Te=me||ye,sn=(ze==null?void 0:ze.length)>0,mt=z.useState(!ze||!sn),ln=(0,P.Z)(mt,2),gt=ln[0],Ot=ln[1];if((0,xe.Z)(function(){!gt&&sn&&ie&&Ot(!0)},[gt,sn,ie]),!gt)return null;var At="auto",Wt={left:"-1000vw",top:"-1000vh",right:At,bottom:At};if(Gt||!me){var zt,en=et.points,_t=et.dynamicInset||((zt=et._experimental)===null||zt===void 0?void 0:zt.dynamicInset),Lt=_t&&en[0][1]==="r",Nt=_t&&en[0][0]==="b";Lt?(Wt.right=Ue,Wt.left=At):(Wt.left=Ee,Wt.right=At),Nt?(Wt.bottom=It,Wt.top=At):(Wt.top=Ie,Wt.bottom=At)}var je={};return be&&(be.includes("height")&&Mt?je.height=Mt:be.includes("minHeight")&&Mt&&(je.minHeight=Mt),be.includes("width")&&Tt?je.width=Tt:be.includes("minWidth")&&Tt&&(je.minWidth=Tt)),me||(je.pointerEvents="none"),z.createElement(Fe,{open:qe||Te,getContainer:ze&&function(){return ze(ie)},autoDestroy:at},z.createElement(He,{prefixCls:V,open:me,zIndex:ae,mask:Ge,motion:Ve}),z.createElement(H.Z,{onResize:ge,disabled:!me},function(Le){return z.createElement(Ct.default,(0,rt.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:qe,leavedClassName:"".concat(V,"-hidden")},G,{onAppearPrepare:Je,onEnterPrepare:Je,visible:me,onVisibleChanged:function(Zt){var Ut;G==null||(Ut=G.onVisibleChanged)===null||Ut===void 0||Ut.call(G,Zt),fe(Zt)}}),function(pt,Zt){var Ut=pt.className,wn=pt.style,Qt=X()(V,Ut,O);return z.createElement("div",{ref:(0,nt.sQ)(Le,N,Zt),className:Qt,style:(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({"--arrow-x":"".concat(We.x||0,"px"),"--arrow-y":"".concat(We.y||0,"px")},Wt),je),wn),{},{boxSizing:"border-box",zIndex:ae},_),onMouseEnter:ct,onMouseLeave:Pt,onPointerEnter:_e,onClick:se,onPointerDownCapture:$e},q&&z.createElement(De,{prefixCls:V,arrow:q,arrowPos:We,align:et}),z.createElement(T,{cache:!me&&!ke},Dt))})}))}),k=L,A=z.forwardRef(function(h,N){var y=h.children,O=h.getTriggerDOMNode,V=(0,nt.Yr)(y),_=z.useCallback(function(fe){(0,nt.mH)(N,O?O(fe):fe)},[O]),ie=(0,nt.x1)(_,(0,nt.C4)(y));return V?z.cloneElement(y,{ref:ie}):y}),c=A,ne=z.createContext(null),F=ne;function de(h){return h?Array.isArray(h)?h:[h]:[]}function Ke(h,N,y,O){return z.useMemo(function(){var V=de(y!=null?y:N),_=de(O!=null?O:N),ie=new Set(V),fe=new Set(_);return h&&(ie.has("hover")&&(ie.delete("hover"),ie.add("click")),fe.has("hover")&&(fe.delete("hover"),fe.add("click"))),[ie,fe]},[h,N,y,O])}var E=l(29194);function p(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],y=arguments.length>2?arguments[2]:void 0;return y?h[0]===N[0]:h[0]===N[0]&&h[1]===N[1]}function D(h,N,y,O){for(var V=y.points,_=Object.keys(h),ie=0;ie<_.length;ie+=1){var fe,me=_[ie];if(p((fe=h[me])===null||fe===void 0?void 0:fe.points,V,O))return"".concat(N,"-placement-").concat(me)}return""}function M(h,N,y,O){return N||(y?{motionName:"".concat(h,"-").concat(y)}:O?{motionName:O}:null)}function R(h){return h.ownerDocument.defaultView}function Q(h){for(var N=[],y=h==null?void 0:h.parentElement,O=["hidden","scroll","clip","auto"];y;){var V=R(y).getComputedStyle(y),_=V.overflowX,ie=V.overflowY,fe=V.overflow;[_,ie,fe].some(function(me){return O.includes(me)})&&N.push(y),y=y.parentElement}return N}function b(h){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(h)?N:h}function $(h){return b(parseFloat(h),0)}function he(h,N){var y=(0,I.Z)({},h);return(N||[]).forEach(function(O){if(!(O instanceof HTMLBodyElement||O instanceof HTMLHtmlElement)){var V=R(O).getComputedStyle(O),_=V.overflow,ie=V.overflowClipMargin,fe=V.borderTopWidth,me=V.borderBottomWidth,ye=V.borderLeftWidth,ke=V.borderRightWidth,se=O.getBoundingClientRect(),Ge=O.offsetHeight,q=O.clientHeight,We=O.offsetWidth,et=O.clientWidth,G=$(fe),Ve=$(me),qe=$(ye),ze=$(ke),at=b(Math.round(se.width/We*1e3)/1e3),Fe=b(Math.round(se.height/Ge*1e3)/1e3),ae=(We-et-qe-ze)*at,ct=(Ge-q-G-Ve)*Fe,Pt=G*Fe,_e=Ve*Fe,$e=qe*at,Gt=ze*at,Ee=0,Ie=0;if(_==="clip"){var Ue=$(ie);Ee=Ue*at,Ie=Ue*Fe}var It=se.x+$e-Ee,ge=se.y+Pt-Ie,Je=It+se.width+2*Ee-$e-Gt-ae,be=ge+se.height+2*Ie-Pt-_e-ct;y.left=Math.max(y.left,It),y.top=Math.max(y.top,ge),y.right=Math.min(y.right,Je),y.bottom=Math.min(y.bottom,be)}}),y}function J(h){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y="".concat(N),O=y.match(/^(.*)\%$/);return O?h*(parseFloat(O[1])/100):parseFloat(y)}function re(h,N){var y=N||[],O=(0,P.Z)(y,2),V=O[0],_=O[1];return[J(h.width,V),J(h.height,_)]}function ce(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[h[0],h[1]]}function Se(h,N){var y=N[0],O=N[1],V,_;return y==="t"?_=h.y:y==="b"?_=h.y+h.height:_=h.y+h.height/2,O==="l"?V=h.x:O==="r"?V=h.x+h.width:V=h.x+h.width/2,{x:V,y:_}}function ee(h,N){var y={t:"b",b:"t",l:"r",r:"l"};return h.map(function(O,V){return V===N?y[O]||"c":O}).join("")}function j(h,N,y,O,V,_,ie){var fe=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:V[O]||{}}),me=(0,P.Z)(fe,2),ye=me[0],ke=me[1],se=z.useRef(0),Ge=z.useMemo(function(){return N?Q(N):[]},[N]),q=z.useRef({}),We=function(){q.current={}};h||We();var et=(0,ve.Z)(function(){if(N&&y&&h){let qt=function(on,Sn){var Kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:un,Gn=Te.x+on,Qn=Te.y+Sn,na=Gn+Nt,_n=Qn+Lt,oe=Math.max(Gn,Kn.left),Pe=Math.max(Qn,Kn.top),bt=Math.min(na,Kn.right),Bt=Math.min(_n,Kn.bottom);return Math.max(0,(bt-oe)*(Bt-Pe))},Ht=function(){yt=Te.y+W,Et=yt+Lt,Rt=Te.x+B,ft=Rt+Nt};var qe,ze,at,Fe,ae=N,ct=ae.ownerDocument,Pt=R(ae),_e=Pt.getComputedStyle(ae),$e=_e.position,Gt=ae.style.left,Ee=ae.style.top,Ie=ae.style.right,Ue=ae.style.bottom,It=ae.style.overflow,ge=(0,I.Z)((0,I.Z)({},V[O]),_),Je=ct.createElement("div");(qe=ae.parentElement)===null||qe===void 0||qe.appendChild(Je),Je.style.left="".concat(ae.offsetLeft,"px"),Je.style.top="".concat(ae.offsetTop,"px"),Je.style.position=$e,Je.style.height="".concat(ae.offsetHeight,"px"),Je.style.width="".concat(ae.offsetWidth,"px"),ae.style.left="0",ae.style.top="0",ae.style.right="auto",ae.style.bottom="auto",ae.style.overflow="hidden";var be;if(Array.isArray(y))be={x:y[0],y:y[1],width:0,height:0};else{var Tt,Mt,Dt=y.getBoundingClientRect();Dt.x=(Tt=Dt.x)!==null&&Tt!==void 0?Tt:Dt.left,Dt.y=(Mt=Dt.y)!==null&&Mt!==void 0?Mt:Dt.top,be={x:Dt.x,y:Dt.y,width:Dt.width,height:Dt.height}}var Te=ae.getBoundingClientRect(),sn=Pt.getComputedStyle(ae),mt=sn.height,ln=sn.width;Te.x=(ze=Te.x)!==null&&ze!==void 0?ze:Te.left,Te.y=(at=Te.y)!==null&&at!==void 0?at:Te.top;var gt=ct.documentElement,Ot=gt.clientWidth,At=gt.clientHeight,Wt=gt.scrollWidth,zt=gt.scrollHeight,en=gt.scrollTop,_t=gt.scrollLeft,Lt=Te.height,Nt=Te.width,je=be.height,Le=be.width,pt={left:0,top:0,right:Ot,bottom:At},Zt={left:-_t,top:-en,right:Wt-_t,bottom:zt-en},Ut=ge.htmlRegion,wn="visible",Qt="visibleFirst";Ut!=="scroll"&&Ut!==Qt&&(Ut=wn);var mn=Ut===Qt,Dn=he(Zt,Ge),vt=he(pt,Ge),un=Ut===wn?vt:Dn,Ft=mn?vt:un;ae.style.left="auto",ae.style.top="auto",ae.style.right="0",ae.style.bottom="0";var Zn=ae.getBoundingClientRect();ae.style.left=Gt,ae.style.top=Ee,ae.style.right=Ie,ae.style.bottom=Ue,ae.style.overflow=It,(Fe=ae.parentElement)===null||Fe===void 0||Fe.removeChild(Je);var Kt=b(Math.round(Nt/parseFloat(ln)*1e3)/1e3),bn=b(Math.round(Lt/parseFloat(mt)*1e3)/1e3);if(Kt===0||bn===0||(0,ue.Sh)(y)&&!(0,E.Z)(y))return;var On=ge.offset,Ze=ge.targetOffset,Ye=re(Te,On),s=(0,P.Z)(Ye,2),w=s[0],S=s[1],a=re(be,Ze),e=(0,P.Z)(a,2),n=e[0],t=e[1];be.x-=n,be.y-=t;var i=ge.points||[],r=(0,P.Z)(i,2),o=r[0],d=r[1],C=ce(d),m=ce(o),f=Se(be,C),v=Se(Te,m),x=(0,I.Z)({},ge),B=f.x-v.x+w,W=f.y-v.y+S,Ce=qt(B,W),te=qt(B,W,vt),le=Se(be,["t","l"]),Oe=Se(Te,["t","l"]),pe=Se(be,["b","r"]),Qe=Se(Te,["b","r"]),it=ge.overflow||{},Z=it.adjustX,Ae=it.adjustY,Xe=it.shiftX,ut=it.shiftY,xt=function(Sn){return typeof Sn=="boolean"?Sn:Sn>=0},yt,Et,Rt,ft;Ht();var ht=xt(Ae),ot=m[0]===C[0];if(ht&&m[0]==="t"&&(Et>Ft.bottom||q.current.bt)){var Vt=W;ot?Vt-=Lt-je:Vt=le.y-Qe.y-S;var fn=qt(B,Vt),dn=qt(B,Vt,vt);fn>Ce||fn===Ce&&(!mn||dn>=te)?(q.current.bt=!0,W=Vt,S=-S,x.points=[ee(m,0),ee(C,0)]):q.current.bt=!1}if(ht&&m[0]==="b"&&(yt<Ft.top||q.current.tb)){var tn=W;ot?tn+=Lt-je:tn=pe.y-Oe.y-S;var gn=qt(B,tn),jt=qt(B,tn,vt);gn>Ce||gn===Ce&&(!mn||jt>=te)?(q.current.tb=!0,W=tn,S=-S,x.points=[ee(m,0),ee(C,0)]):q.current.tb=!1}var Jt=xt(Z),xn=m[1]===C[1];if(Jt&&m[1]==="l"&&(ft>Ft.right||q.current.rl)){var cn=B;xn?cn-=Nt-Le:cn=le.x-Qe.x-w;var pn=qt(cn,W),Yt=qt(cn,W,vt);pn>Ce||pn===Ce&&(!mn||Yt>=te)?(q.current.rl=!0,B=cn,w=-w,x.points=[ee(m,1),ee(C,1)]):q.current.rl=!1}if(Jt&&m[1]==="r"&&(Rt<Ft.left||q.current.lr)){var nn=B;xn?nn+=Nt-Le:nn=pe.x-Oe.x-w;var yn=qt(nn,W),Pn=qt(nn,W,vt);yn>Ce||yn===Ce&&(!mn||Pn>=te)?(q.current.lr=!0,B=nn,w=-w,x.points=[ee(m,1),ee(C,1)]):q.current.lr=!1}Ht();var an=Xe===!0?0:Xe;typeof an=="number"&&(Rt<vt.left&&(B-=Rt-vt.left-w,be.x+Le<vt.left+an&&(B+=be.x-vt.left+Le-an)),ft>vt.right&&(B-=ft-vt.right-w,be.x>vt.right-an&&(B+=be.x-vt.right+an)));var vn=ut===!0?0:ut;typeof vn=="number"&&(yt<vt.top&&(W-=yt-vt.top-S,be.y+je<vt.top+vn&&(W+=be.y-vt.top+je-vn)),Et>vt.bottom&&(W-=Et-vt.bottom-S,be.y>vt.bottom-vn&&(W+=be.y-vt.bottom+vn)));var Nn=Te.x+B,In=Nn+Nt,Ln=Te.y+W,Bn=Ln+Lt,kn=be.x,An=kn+Le,Vn=be.y,jn=Vn+je,Wn=Math.max(Nn,kn),Cn=Math.min(In,An),Yn=(Wn+Cn)/2,Xn=Yn-Nn,Fn=Math.max(Ln,Vn),Un=Math.min(Bn,jn),Hn=(Fn+Un)/2,zn=Hn-Ln;ie==null||ie(N,x);var rn=Zn.right-Te.x-(B+Te.width),En=Zn.bottom-Te.y-(W+Te.height);Kt===1&&(B=Math.round(B),rn=Math.round(rn)),bn===1&&(W=Math.round(W),En=Math.round(En));var $n={ready:!0,offsetX:B/Kt,offsetY:W/bn,offsetR:rn/Kt,offsetB:En/bn,arrowX:Xn/Kt,arrowY:zn/bn,scaleX:Kt,scaleY:bn,align:x};ke($n)}}),G=function(){se.current+=1;var ze=se.current;Promise.resolve().then(function(){se.current===ze&&et()})},Ve=function(){ke(function(ze){return(0,I.Z)((0,I.Z)({},ze),{},{ready:!1})})};return(0,xe.Z)(Ve,[O]),(0,xe.Z)(function(){h||Ve()},[h]),[ye.ready,ye.offsetX,ye.offsetY,ye.offsetR,ye.offsetB,ye.arrowX,ye.arrowY,ye.scaleX,ye.scaleY,ye.align,G]}var we=l(95190);function Ne(h,N,y,O,V){(0,xe.Z)(function(){if(h&&N&&y){let se=function(){O(),V()};var _=N,ie=y,fe=Q(_),me=Q(ie),ye=R(ie),ke=new Set([ye].concat((0,we.Z)(fe),(0,we.Z)(me)));return ke.forEach(function(Ge){Ge.addEventListener("scroll",se,{passive:!0})}),ye.addEventListener("resize",se,{passive:!0}),O(),function(){ke.forEach(function(Ge){Ge.removeEventListener("scroll",se),ye.removeEventListener("resize",se)})}}},[h,N,y])}var Re=l(48736);function Me(h,N,y,O,V,_,ie,fe){var me=z.useRef(h);me.current=h;var ye=z.useRef(!1);z.useEffect(function(){if(N&&O&&(!V||_)){var se=function(){ye.current=!1},Ge=function(at){var Fe;me.current&&!ie(((Fe=at.composedPath)===null||Fe===void 0||(Fe=Fe.call(at))===null||Fe===void 0?void 0:Fe[0])||at.target)&&!ye.current&&fe(!1)},q=R(O);q.addEventListener("pointerdown",se,!0),q.addEventListener("mousedown",Ge,!0),q.addEventListener("contextmenu",Ge,!0);var We=(0,U.A)(y);if(We&&(We.addEventListener("mousedown",Ge,!0),We.addEventListener("contextmenu",Ge,!0)),0)var et,G,Ve,qe;return function(){q.removeEventListener("pointerdown",se,!0),q.removeEventListener("mousedown",Ge,!0),q.removeEventListener("contextmenu",Ge,!0),We&&(We.removeEventListener("mousedown",Ge,!0),We.removeEventListener("contextmenu",Ge,!0))}}},[N,y,O,V,_]);function ke(){ye.current=!0}return ke}var dt=["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 lt(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tt.Z,N=z.forwardRef(function(y,O){var V=y.prefixCls,_=V===void 0?"rc-trigger-popup":V,ie=y.children,fe=y.action,me=fe===void 0?"hover":fe,ye=y.showAction,ke=y.hideAction,se=y.popupVisible,Ge=y.defaultPopupVisible,q=y.onPopupVisibleChange,We=y.afterPopupVisibleChange,et=y.mouseEnterDelay,G=y.mouseLeaveDelay,Ve=G===void 0?.1:G,qe=y.focusDelay,ze=y.blurDelay,at=y.mask,Fe=y.maskClosable,ae=Fe===void 0?!0:Fe,ct=y.getPopupContainer,Pt=y.forceRender,_e=y.autoDestroy,$e=y.destroyPopupOnHide,Gt=y.popup,Ee=y.popupClassName,Ie=y.popupStyle,Ue=y.popupPlacement,It=y.builtinPlacements,ge=It===void 0?{}:It,Je=y.popupAlign,be=y.zIndex,Tt=y.stretch,Mt=y.getPopupClassNameFromAlign,Dt=y.fresh,Te=y.alignPoint,sn=y.onPopupClick,mt=y.onPopupAlign,ln=y.arrow,gt=y.popupMotion,Ot=y.maskMotion,At=y.popupTransitionName,Wt=y.popupAnimation,zt=y.maskTransitionName,en=y.maskAnimation,_t=y.className,Lt=y.getTriggerDOMNode,Nt=(0,g.Z)(y,dt),je=_e||$e||!1,Le=z.useState(!1),pt=(0,P.Z)(Le,2),Zt=pt[0],Ut=pt[1];(0,xe.Z)(function(){Ut((0,u.Z)())},[]);var wn=z.useRef({}),Qt=z.useContext(F),mn=z.useMemo(function(){return{registerSubPopup:function(Pe,bt){wn.current[Pe]=bt,Qt==null||Qt.registerSubPopup(Pe,bt)}}},[Qt]),Dn=(0,Be.Z)(),vt=z.useState(null),un=(0,P.Z)(vt,2),Ft=un[0],Zn=un[1],Kt=z.useRef(null),bn=(0,ve.Z)(function(oe){Kt.current=oe,(0,ue.Sh)(oe)&&Ft!==oe&&Zn(oe),Qt==null||Qt.registerSubPopup(Dn,oe)}),On=z.useState(null),Ze=(0,P.Z)(On,2),Ye=Ze[0],s=Ze[1],w=z.useRef(null),S=(0,ve.Z)(function(oe){(0,ue.Sh)(oe)&&Ye!==oe&&(s(oe),w.current=oe)}),a=z.Children.only(ie),e=(a==null?void 0:a.props)||{},n={},t=(0,ve.Z)(function(oe){var Pe,bt,Bt=Ye;return(Bt==null?void 0:Bt.contains(oe))||((Pe=(0,U.A)(Bt))===null||Pe===void 0?void 0:Pe.host)===oe||oe===Bt||(Ft==null?void 0:Ft.contains(oe))||((bt=(0,U.A)(Ft))===null||bt===void 0?void 0:bt.host)===oe||oe===Ft||Object.values(wn.current).some(function(kt){return(kt==null?void 0:kt.contains(oe))||oe===kt})}),i=M(_,gt,Wt,At),r=M(_,Ot,en,zt),o=z.useState(Ge||!1),d=(0,P.Z)(o,2),C=d[0],m=d[1],f=se!=null?se:C,v=(0,ve.Z)(function(oe){se===void 0&&m(oe)});(0,xe.Z)(function(){m(se||!1)},[se]);var x=z.useRef(f);x.current=f;var B=z.useRef([]);B.current=[];var W=(0,ve.Z)(function(oe){var Pe;v(oe),((Pe=B.current[B.current.length-1])!==null&&Pe!==void 0?Pe:f)!==oe&&(B.current.push(oe),q==null||q(oe))}),Ce=z.useRef(),te=function(){clearTimeout(Ce.current)},le=function(Pe){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),bt===0?W(Pe):Ce.current=setTimeout(function(){W(Pe)},bt*1e3)};z.useEffect(function(){return te},[]);var Oe=z.useState(!1),pe=(0,P.Z)(Oe,2),Qe=pe[0],it=pe[1];(0,xe.Z)(function(oe){(!oe||f)&&it(!0)},[f]);var Z=z.useState(null),Ae=(0,P.Z)(Z,2),Xe=Ae[0],ut=Ae[1],xt=z.useState(null),yt=(0,P.Z)(xt,2),Et=yt[0],Rt=yt[1],ft=function(Pe){Rt([Pe.clientX,Pe.clientY])},ht=j(f,Ft,Te&&Et!==null?Et:Ye,Ue,ge,Je,mt),ot=(0,P.Z)(ht,11),Vt=ot[0],fn=ot[1],dn=ot[2],tn=ot[3],gn=ot[4],jt=ot[5],Jt=ot[6],xn=ot[7],cn=ot[8],pn=ot[9],Yt=ot[10],nn=Ke(Zt,me,ye,ke),yn=(0,P.Z)(nn,2),Pn=yn[0],an=yn[1],vn=Pn.has("click"),Nn=an.has("click")||an.has("contextMenu"),In=(0,ve.Z)(function(){Qe||Yt()}),Ln=function(){x.current&&Te&&Nn&&le(!1)};Ne(f,Ye,Ft,In,Ln),(0,xe.Z)(function(){In()},[Et,Ue]),(0,xe.Z)(function(){f&&!(ge!=null&&ge[Ue])&&In()},[JSON.stringify(Je)]);var Bn=z.useMemo(function(){var oe=D(ge,_,pn,Te);return X()(oe,Mt==null?void 0:Mt(pn))},[pn,Mt,ge,_,Te]);z.useImperativeHandle(O,function(){return{nativeElement:w.current,popupElement:Kt.current,forceAlign:In}});var kn=z.useState(0),An=(0,P.Z)(kn,2),Vn=An[0],jn=An[1],Wn=z.useState(0),Cn=(0,P.Z)(Wn,2),Yn=Cn[0],Xn=Cn[1],Fn=function(){if(Tt&&Ye){var Pe=Ye.getBoundingClientRect();jn(Pe.width),Xn(Pe.height)}},Un=function(){Fn(),In()},Hn=function(Pe){it(!1),Yt(),We==null||We(Pe)},zn=function(){return new Promise(function(Pe){Fn(),ut(function(){return Pe})})};(0,xe.Z)(function(){Xe&&(Yt(),Xe(),ut(null))},[Xe]);function rn(oe,Pe,bt,Bt){n[oe]=function(kt){var qn;Bt==null||Bt(kt),le(Pe,bt);for(var ea=arguments.length,Tn=new Array(ea>1?ea-1:0),ta=1;ta<ea;ta++)Tn[ta-1]=arguments[ta];(qn=e[oe])===null||qn===void 0||qn.call.apply(qn,[e,kt].concat(Tn))}}(vn||Nn)&&(n.onClick=function(oe){var Pe;x.current&&Nn?le(!1):!x.current&&vn&&(ft(oe),le(!0));for(var bt=arguments.length,Bt=new Array(bt>1?bt-1:0),kt=1;kt<bt;kt++)Bt[kt-1]=arguments[kt];(Pe=e.onClick)===null||Pe===void 0||Pe.call.apply(Pe,[e,oe].concat(Bt))});var En=Me(f,Nn,Ye,Ft,at,ae,t,le),$n=Pn.has("hover"),qt=an.has("hover"),Ht,on;$n&&(rn("onMouseEnter",!0,et,function(oe){ft(oe)}),rn("onPointerEnter",!0,et,function(oe){ft(oe)}),Ht=function(Pe){(f||Qe)&&Ft!==null&&Ft!==void 0&&Ft.contains(Pe.target)&&le(!0,et)},Te&&(n.onMouseMove=function(oe){var Pe;(Pe=e.onMouseMove)===null||Pe===void 0||Pe.call(e,oe)})),qt&&(rn("onMouseLeave",!1,Ve),rn("onPointerLeave",!1,Ve),on=function(){le(!1,Ve)}),Pn.has("focus")&&rn("onFocus",!0,qe),an.has("focus")&&rn("onBlur",!1,ze),Pn.has("contextMenu")&&(n.onContextMenu=function(oe){var Pe;x.current&&an.has("contextMenu")?le(!1):(ft(oe),le(!0)),oe.preventDefault();for(var bt=arguments.length,Bt=new Array(bt>1?bt-1:0),kt=1;kt<bt;kt++)Bt[kt-1]=arguments[kt];(Pe=e.onContextMenu)===null||Pe===void 0||Pe.call.apply(Pe,[e,oe].concat(Bt))}),_t&&(n.className=X()(e.className,_t));var Sn=(0,I.Z)((0,I.Z)({},e),n),Kn={},Gn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Gn.forEach(function(oe){Nt[oe]&&(Kn[oe]=function(){for(var Pe,bt=arguments.length,Bt=new Array(bt),kt=0;kt<bt;kt++)Bt[kt]=arguments[kt];(Pe=Sn[oe])===null||Pe===void 0||Pe.call.apply(Pe,[Sn].concat(Bt)),Nt[oe].apply(Nt,Bt)})});var Qn=z.cloneElement(a,(0,I.Z)((0,I.Z)({},Sn),Kn)),na={x:jt,y:Jt},_n=ln?(0,I.Z)({},ln!==!0?ln:{}):null;return z.createElement(z.Fragment,null,z.createElement(H.Z,{disabled:!f,ref:S,onResize:Un},z.createElement(c,{getTriggerDOMNode:Lt},Qn)),z.createElement(F.Provider,{value:mn},z.createElement(k,{portal:h,ref:bn,prefixCls:_,popup:Gt,className:X()(Ee,Bn),style:Ie,target:Ye,onMouseEnter:Ht,onMouseLeave:on,onPointerEnter:Ht,zIndex:be,open:f,keepDom:Qe,fresh:Dt,onClick:sn,onPointerDownCapture:En,mask:at,motion:i,maskMotion:r,onVisibleChanged:Hn,onPrepare:zn,forceRender:Pt,autoDestroy:je,getPopupContainer:ct,align:pn,arrow:_n,arrowPos:na,ready:Vt,offsetX:fn,offsetY:dn,offsetR:tn,offsetB:gn,onAlign:In,stretch:Tt,targetWidth:Vn/xn,targetHeight:Yn/cn})))});return N}var wt=lt(tt.Z)},78552:function(){"use strict"},14796:function(hn,st,l){"use strict";l.r(st),l.d(st,{default:function(){return De}});var I=l(59301),P=l(25690),g={flex_box_center:"flex_box_center___DHrsr",flex_space_between:"flex_space_between___VeuX0",flex_box_vertical_center:"flex_box_vertical_center___gw9oR",flex_box_center_end:"flex_box_center_end___DyeB2",flex_box_column:"flex_box_column___b77m0",Selecttext:"Selecttext___F1tf1",Updatecount:"Updatecount___VMhwg",Spanradius:"Spanradius___FVSCg"},tt=l(33555),Y=l(78552),X=l(6767),H=l(91882),ue=l(37568),U=l(99571),ve=l(346),Be=l(51257),xe=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,rt=(He,K)=>{var T={};for(var L in He)u.call(He,L)&&K.indexOf(L)<0&&(T[L]=He[L]);if(He!=null&&xe)for(var L of xe(He))K.indexOf(L)<0&&z.call(He,L)&&(T[L]=He[L]);return T},Ct=(He,K,T)=>new Promise((L,k)=>{var A=F=>{try{ne(T.next(F))}catch(de){k(de)}},c=F=>{try{ne(T.throw(F))}catch(de){k(de)}},ne=F=>F.done?L(F.value):Promise.resolve(F.value).then(A,c);ne((T=T.apply(He,K)).next())});const nt=He=>{var K=He,{globalSetting:T,loading:L,dispatch:k}=K,A=rt(K,["globalSetting","loading","dispatch"]);const[c,ne]=(0,I.useState)(),[F,de]=(0,I.useState)(),[Ke,E]=(0,I.useState)(),[p,D]=(0,I.useState)(""),M=(0,I.useRef)(null),[R,Q]=(0,I.useState)(""),{identifier:b,Teannameid:$}=(0,P.useParams)(),[he,J]=(0,I.useState)("");(0,I.useEffect)(()=>{function ee(){return Ct(this,null,function*(){var j,we,Ne,Re;ne(yield k({type:"competitions/getHeader",payload:{identifier:b}}));let Me=yield k({type:"competitions/getTeamDetail",payload:{identifier:b,Teannameid:$}});Me&&(de((j=Me==null?void 0:Me.data)==null?void 0:j.name),Q(`${(we=ve.Z)==null?void 0:we.IMG_SERVER}/${(Ne=Me==null?void 0:Me.data)==null?void 0:Ne.team_log}`),J((Re=Me==null?void 0:Me.data)==null?void 0:Re.team_log))})}b&&ee()},[b]),(0,I.useEffect)(()=>{(0,Be.Dk)("\u5728\u7EBF\u7ADE\u8D5B")});function re(){E(M.current.getCroppedCanvas().toDataURL())}function ce(){return Ct(this,null,function*(){var ee,j;if(!F){X.ZP.info("\u961F\u4F0D\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}let we=yield k({type:"competitions/UpTeam",payload:{identifier:b,Teannameid:$,name:F,image:((j=(ee=M==null?void 0:M.current)==null?void 0:ee.getCroppedCanvas())==null?void 0:j.toDataURL("image/jpeg"))||""}});(we==null?void 0:we.status)===0&&(X.ZP.info("\u4FEE\u6539\u6210\u529F"),P.history.push(`/competitions/${b}/detail/enroll`))})}function Se(ee){const j=ee.target.files[0];if(j&&j.size>2*1024*1024){X.ZP.info("\u4EC5\u652F\u6301\u6587\u4EF6\u5927\u5C0F\u5C0F\u4E8E2M\u7684\u6587\u4EF6");return}var we=new FileReader;we.readAsBinaryString(j),we.onload=()=>{let Ne=btoa(we.result);Q(`data:${j.type};base64,${Ne}`)},we.onerror=function(){}}return I.createElement("div",{className:"edu-container minH500"},I.createElement(H.Z,{className:"mt10",separator:">"},I.createElement(H.Z.Item,null,I.createElement(P.Link,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),I.createElement(H.Z.Item,null,I.createElement(P.Link,{to:`/competitions/${b}/`},c&&c.name,c&&c.sub_title?"-"+c&&c.sub_title:null)),I.createElement(H.Z.Item,null,I.createElement(P.Link,{to:`/competitions/${b}/detail/enroll`},"\u62A5\u540D")),I.createElement(H.Z.Item,null,"\u7F16\u8F91\u6218\u961F\u4FE1\u606F")),I.createElement("div",{className:g.Selecttext},"\u7F16\u8F91\u6218\u961F"),I.createElement("div",{className:g.Updatecount},I.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961F\u540D\uFF1A",I.createElement("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"}},I.createElement(ue.default,{placeholder:"\u8BF7\u8F93\u5165\u961F\u540D",value:F,maxLength:60,addonAfter:F!=null&&F.length?String(F&&F.length)+"/60":"0/60",onChange:ee=>de(ee.target.value)})),I.createElement("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"}},I.createElement("span",null,"LOGO\uFF1A"),I.createElement("label",{id:"uploadBtn",style:{color:"#4DACFF",cursor:"pointer"}},I.createElement("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",onChange:Se,style:{display:"none"}}),"\u4E0A\u4F20LOGO"),"\xA0",I.createElement("span",null,"(\u652F\u6301jpg\u3001gif\u3001png\u683C\u5F0F\u7684\u56FE\u7247\uFF0C\u5EFA\u8BAE\u6587\u4EF6\u5C0F\u4E8E2M)")),I.createElement("div",{style:{marginTop:"15px",marginLeft:"8px",display:"flex"}},Ke?I.createElement("img",{className:g.Spanradius,src:Ke}):p?I.createElement("img",{className:g.Spanradius}):I.createElement("div",{className:g.Spanradius},F&&F.length>2?F&&F.substring(0,2):F),I.createElement(tt.Z,{style:{width:"320px",height:"320px",marginLeft:"30px",background:"#EEEEEE"},src:R,guides:!1,ref:M,crop:re}))),I.createElement("div",{style:{marginTop:"15px",marginBottom:"15px"}},I.createElement(U.ZP,{type:"primary",onClick:()=>ce()},"\u786E\u5B9A"),I.createElement(U.ZP,{style:{marginLeft:"15px"}},I.createElement(P.Link,{to:`/competitions/${b}/detail/enroll`},"\u53D6\u6D88"))))};var De=(0,P.connect)(({loading:He,globalSetting:K})=>({globalSetting:K,loading:He.models.competitions}))(nt)},21639:function(hn){(function(st,l){hn.exports=l()})(this,function(){"use strict";function st(a,e){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),n.push.apply(n,t)}return n}function l(a){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?st(Object(n),!0).forEach(function(t){H(a,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function I(a,e){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var t=n.call(a,e||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function P(a){var e=I(a,"string");return typeof e=="symbol"?e:e+""}function g(a){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(a)}function tt(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(a,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,P(t.key),t)}}function X(a,e,n){return e&&Y(a.prototype,e),n&&Y(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}function H(a,e,n){return e=P(e),e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n,a}function ue(a){return U(a)||ve(a)||Be(a)||u()}function U(a){if(Array.isArray(a))return xe(a)}function ve(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Be(a,e){if(a){if(typeof a=="string")return xe(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xe(a,e)}}function xe(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=a[n];return t}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=typeof window!="undefined"&&typeof window.document!="undefined",rt=z?window:{},Ct=z&&rt.document.documentElement?"ontouchstart"in rt.document.documentElement:!1,nt=z?"PointerEvent"in rt:!1,De="cropper",He="all",K="crop",T="move",L="zoom",k="e",A="w",c="s",ne="n",F="ne",de="nw",Ke="se",E="sw",p="".concat(De,"-crop"),D="".concat(De,"-disabled"),M="".concat(De,"-hidden"),R="".concat(De,"-hide"),Q="".concat(De,"-invisible"),b="".concat(De,"-modal"),$="".concat(De,"-move"),he="".concat(De,"Action"),J="".concat(De,"Preview"),re="crop",ce="move",Se="none",ee="crop",j="cropend",we="cropmove",Ne="cropstart",Re="dblclick",Me=Ct?"touchstart":"mousedown",dt=Ct?"touchmove":"mousemove",lt=Ct?"touchend touchcancel":"mouseup",wt=nt?"pointerdown":Me,h=nt?"pointermove":dt,N=nt?"pointerup pointercancel":lt,y="ready",O="resize",V="wheel",_="zoom",ie="image/jpeg",fe=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,me=/^data:/,ye=/^data:image\/jpeg;base64,/,ke=/^img|canvas$/i,se=200,Ge=100,q={viewMode:0,dragMode:re,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:se,minContainerHeight:Ge,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},We='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',et=Number.isNaN||rt.isNaN;function G(a){return typeof a=="number"&&!et(a)}var Ve=function(e){return e>0&&e<1/0};function qe(a){return typeof a=="undefined"}function ze(a){return g(a)==="object"&&a!==null}var at=Object.prototype.hasOwnProperty;function Fe(a){if(!ze(a))return!1;try{var e=a.constructor,n=e.prototype;return e&&n&&at.call(n,"isPrototypeOf")}catch(t){return!1}}function ae(a){return typeof a=="function"}var ct=Array.prototype.slice;function Pt(a){return Array.from?Array.from(a):ct.call(a)}function _e(a,e){return a&&ae(e)&&(Array.isArray(a)||G(a.length)?Pt(a).forEach(function(n,t){e.call(a,n,t,a)}):ze(a)&&Object.keys(a).forEach(function(n){e.call(a,a[n],n,a)})),a}var $e=Object.assign||function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return ze(e)&&t.length>0&&t.forEach(function(r){ze(r)&&Object.keys(r).forEach(function(o){e[o]=r[o]})}),e},Gt=/\.\d*(?:0|9){12}\d*$/;function Ee(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Gt.test(a)?Math.round(a*e)/e:a}var Ie=/^width|height|left|top|marginLeft|marginTop$/;function Ue(a,e){var n=a.style;_e(e,function(t,i){Ie.test(i)&&G(t)&&(t="".concat(t,"px")),n[i]=t})}function It(a,e){return a.classList?a.classList.contains(e):a.className.indexOf(e)>-1}function ge(a,e){if(e){if(G(a.length)){_e(a,function(t){ge(t,e)});return}if(a.classList){a.classList.add(e);return}var n=a.className.trim();n?n.indexOf(e)<0&&(a.className="".concat(n," ").concat(e)):a.className=e}}function Je(a,e){if(e){if(G(a.length)){_e(a,function(n){Je(n,e)});return}if(a.classList){a.classList.remove(e);return}a.className.indexOf(e)>=0&&(a.className=a.className.replace(e,""))}}function be(a,e,n){if(e){if(G(a.length)){_e(a,function(t){be(t,e,n)});return}n?ge(a,e):Je(a,e)}}var Tt=/([a-z\d])([A-Z])/g;function Mt(a){return a.replace(Tt,"$1-$2").toLowerCase()}function Dt(a,e){return ze(a[e])?a[e]:a.dataset?a.dataset[e]:a.getAttribute("data-".concat(Mt(e)))}function Te(a,e,n){ze(n)?a[e]=n:a.dataset?a.dataset[e]=n:a.setAttribute("data-".concat(Mt(e)),n)}function sn(a,e){if(ze(a[e]))try{delete a[e]}catch(n){a[e]=void 0}else if(a.dataset)try{delete a.dataset[e]}catch(n){a.dataset[e]=void 0}else a.removeAttribute("data-".concat(Mt(e)))}var mt=/\s\s*/,ln=function(){var a=!1;if(z){var e=!1,n=function(){},t=Object.defineProperty({},"once",{get:function(){return a=!0,e},set:function(r){e=r}});rt.addEventListener("test",n,t),rt.removeEventListener("test",n,t)}return a}();function gt(a,e,n){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;e.trim().split(mt).forEach(function(r){if(!ln){var o=a.listeners;o&&o[r]&&o[r][n]&&(i=o[r][n],delete o[r][n],Object.keys(o[r]).length===0&&delete o[r],Object.keys(o).length===0&&delete a.listeners)}a.removeEventListener(r,i,t)})}function Ot(a,e,n){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;e.trim().split(mt).forEach(function(r){if(t.once&&!ln){var o=a.listeners,d=o===void 0?{}:o;i=function(){delete d[r][n],a.removeEventListener(r,i,t);for(var m=arguments.length,f=new Array(m),v=0;v<m;v++)f[v]=arguments[v];n.apply(a,f)},d[r]||(d[r]={}),d[r][n]&&a.removeEventListener(r,d[r][n],t),d[r][n]=i,a.listeners=d}a.addEventListener(r,i,t)})}function At(a,e,n){var t;return ae(Event)&&ae(CustomEvent)?t=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):(t=document.createEvent("CustomEvent"),t.initCustomEvent(e,!0,!0,n)),a.dispatchEvent(t)}function Wt(a){var e=a.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var zt=rt.location,en=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function _t(a){var e=a.match(en);return e!==null&&(e[1]!==zt.protocol||e[2]!==zt.hostname||e[3]!==zt.port)}function Lt(a){var e="timestamp=".concat(new Date().getTime());return a+(a.indexOf("?")===-1?"?":"&")+e}function Nt(a){var e=a.rotate,n=a.scaleX,t=a.scaleY,i=a.translateX,r=a.translateY,o=[];G(i)&&i!==0&&o.push("translateX(".concat(i,"px)")),G(r)&&r!==0&&o.push("translateY(".concat(r,"px)")),G(e)&&e!==0&&o.push("rotate(".concat(e,"deg)")),G(n)&&n!==1&&o.push("scaleX(".concat(n,")")),G(t)&&t!==1&&o.push("scaleY(".concat(t,")"));var d=o.length?o.join(" "):"none";return{WebkitTransform:d,msTransform:d,transform:d}}function je(a){var e=l({},a),n=0;return _e(a,function(t,i){delete e[i],_e(e,function(r){var o=Math.abs(t.startX-r.startX),d=Math.abs(t.startY-r.startY),C=Math.abs(t.endX-r.endX),m=Math.abs(t.endY-r.endY),f=Math.sqrt(o*o+d*d),v=Math.sqrt(C*C+m*m),x=(v-f)/f;Math.abs(x)>Math.abs(n)&&(n=x)})}),n}function Le(a,e){var n=a.pageX,t=a.pageY,i={endX:n,endY:t};return e?i:l({startX:n,startY:t},i)}function pt(a){var e=0,n=0,t=0;return _e(a,function(i){var r=i.startX,o=i.startY;e+=r,n+=o,t+=1}),e/=t,n/=t,{pageX:e,pageY:n}}function Zt(a){var e=a.aspectRatio,n=a.height,t=a.width,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",r=Ve(t),o=Ve(n);if(r&&o){var d=n*e;i==="contain"&&d>t||i==="cover"&&d<t?n=t/e:t=n*e}else r?n=t/e:o&&(t=n*e);return{width:t,height:n}}function Ut(a){var e=a.width,n=a.height,t=a.degree;if(t=Math.abs(t)%180,t===90)return{width:n,height:e};var i=t%90*Math.PI/180,r=Math.sin(i),o=Math.cos(i),d=e*o+n*r,C=e*r+n*o;return t>90?{width:C,height:d}:{width:d,height:C}}function wn(a,e,n,t){var i=e.aspectRatio,r=e.naturalWidth,o=e.naturalHeight,d=e.rotate,C=d===void 0?0:d,m=e.scaleX,f=m===void 0?1:m,v=e.scaleY,x=v===void 0?1:v,B=n.aspectRatio,W=n.naturalWidth,Ce=n.naturalHeight,te=t.fillColor,le=te===void 0?"transparent":te,Oe=t.imageSmoothingEnabled,pe=Oe===void 0?!0:Oe,Qe=t.imageSmoothingQuality,it=Qe===void 0?"low":Qe,Z=t.maxWidth,Ae=Z===void 0?1/0:Z,Xe=t.maxHeight,ut=Xe===void 0?1/0:Xe,xt=t.minWidth,yt=xt===void 0?0:xt,Et=t.minHeight,Rt=Et===void 0?0:Et,ft=document.createElement("canvas"),ht=ft.getContext("2d"),ot=Zt({aspectRatio:B,width:Ae,height:ut}),Vt=Zt({aspectRatio:B,width:yt,height:Rt},"cover"),fn=Math.min(ot.width,Math.max(Vt.width,W)),dn=Math.min(ot.height,Math.max(Vt.height,Ce)),tn=Zt({aspectRatio:i,width:Ae,height:ut}),gn=Zt({aspectRatio:i,width:yt,height:Rt},"cover"),jt=Math.min(tn.width,Math.max(gn.width,r)),Jt=Math.min(tn.height,Math.max(gn.height,o)),xn=[-jt/2,-Jt/2,jt,Jt];return ft.width=Ee(fn),ft.height=Ee(dn),ht.fillStyle=le,ht.fillRect(0,0,fn,dn),ht.save(),ht.translate(fn/2,dn/2),ht.rotate(C*Math.PI/180),ht.scale(f,x),ht.imageSmoothingEnabled=pe,ht.imageSmoothingQuality=it,ht.drawImage.apply(ht,[a].concat(ue(xn.map(function(cn){return Math.floor(Ee(cn))})))),ht.restore(),ft}var Qt=String.fromCharCode;function mn(a,e,n){var t="";n+=e;for(var i=e;i<n;i+=1)t+=Qt(a.getUint8(i));return t}var Dn=/^data:.*,/;function vt(a){var e=a.replace(Dn,""),n=atob(e),t=new ArrayBuffer(n.length),i=new Uint8Array(t);return _e(i,function(r,o){i[o]=n.charCodeAt(o)}),t}function un(a,e){for(var n=[],t=8192,i=new Uint8Array(a);i.length>0;)n.push(Qt.apply(null,Pt(i.subarray(0,t)))),i=i.subarray(t);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function Ft(a){var e=new DataView(a),n;try{var t,i,r;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var o=e.byteLength,d=2;d+1<o;){if(e.getUint8(d)===255&&e.getUint8(d+1)===225){i=d;break}d+=1}if(i){var C=i+4,m=i+10;if(mn(e,C,4)==="Exif"){var f=e.getUint16(m);if(t=f===18761,(t||f===19789)&&e.getUint16(m+2,t)===42){var v=e.getUint32(m+4,t);v>=8&&(r=m+v)}}}if(r){var x=e.getUint16(r,t),B,W;for(W=0;W<x;W+=1)if(B=r+W*12+2,e.getUint16(B,t)===274){B+=8,n=e.getUint16(B,t),e.setUint16(B,1,t);break}}}catch(Ce){n=1}return n}function Zn(a){var e=0,n=1,t=1;switch(a){case 2:n=-1;break;case 3:e=-180;break;case 4:t=-1;break;case 5:e=90,t=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:n,scaleY:t}}var Kt={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,n=this.options,t=this.container,i=this.cropper,r=Number(n.minContainerWidth),o=Number(n.minContainerHeight);ge(i,M),Je(e,M);var d={width:Math.max(t.offsetWidth,r>=0?r:se),height:Math.max(t.offsetHeight,o>=0?o:Ge)};this.containerData=d,Ue(i,{width:d.width,height:d.height}),ge(e,M),Je(i,M)},initCanvas:function(){var e=this.containerData,n=this.imageData,t=this.options.viewMode,i=Math.abs(n.rotate)%180===90,r=i?n.naturalHeight:n.naturalWidth,o=i?n.naturalWidth:n.naturalHeight,d=r/o,C=e.width,m=e.height;e.height*d>e.width?t===3?C=e.height*d:m=e.width/d:t===3?m=e.width/d:C=e.height*d;var f={aspectRatio:d,naturalWidth:r,naturalHeight:o,width:C,height:m};this.canvasData=f,this.limited=t===1||t===2,this.limitCanvas(!0,!0),f.width=Math.min(Math.max(f.width,f.minWidth),f.maxWidth),f.height=Math.min(Math.max(f.height,f.minHeight),f.maxHeight),f.left=(e.width-f.width)/2,f.top=(e.height-f.height)/2,f.oldLeft=f.left,f.oldTop=f.top,this.initialCanvasData=$e({},f)},limitCanvas:function(e,n){var t=this.options,i=this.containerData,r=this.canvasData,o=this.cropBoxData,d=t.viewMode,C=r.aspectRatio,m=this.cropped&&o;if(e){var f=Number(t.minCanvasWidth)||0,v=Number(t.minCanvasHeight)||0;d>1?(f=Math.max(f,i.width),v=Math.max(v,i.height),d===3&&(v*C>f?f=v*C:v=f/C)):d>0&&(f?f=Math.max(f,m?o.width:0):v?v=Math.max(v,m?o.height:0):m&&(f=o.width,v=o.height,v*C>f?f=v*C:v=f/C));var x=Zt({aspectRatio:C,width:f,height:v});f=x.width,v=x.height,r.minWidth=f,r.minHeight=v,r.maxWidth=1/0,r.maxHeight=1/0}if(n)if(d>(m?0:1)){var B=i.width-r.width,W=i.height-r.height;r.minLeft=Math.min(0,B),r.minTop=Math.min(0,W),r.maxLeft=Math.max(0,B),r.maxTop=Math.max(0,W),m&&this.limited&&(r.minLeft=Math.min(o.left,o.left+(o.width-r.width)),r.minTop=Math.min(o.top,o.top+(o.height-r.height)),r.maxLeft=o.left,r.maxTop=o.top,d===2&&(r.width>=i.width&&(r.minLeft=Math.min(0,B),r.maxLeft=Math.max(0,B)),r.height>=i.height&&(r.minTop=Math.min(0,W),r.maxTop=Math.max(0,W))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(e,n){var t=this.canvasData,i=this.imageData;if(n){var r=Ut({width:i.naturalWidth*Math.abs(i.scaleX||1),height:i.naturalHeight*Math.abs(i.scaleY||1),degree:i.rotate||0}),o=r.width,d=r.height,C=t.width*(o/t.naturalWidth),m=t.height*(d/t.naturalHeight);t.left-=(C-t.width)/2,t.top-=(m-t.height)/2,t.width=C,t.height=m,t.aspectRatio=o/d,t.naturalWidth=o,t.naturalHeight=d,this.limitCanvas(!0,!1)}(t.width>t.maxWidth||t.width<t.minWidth)&&(t.left=t.oldLeft),(t.height>t.maxHeight||t.height<t.minHeight)&&(t.top=t.oldTop),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),this.limitCanvas(!1,!0),t.left=Math.min(Math.max(t.left,t.minLeft),t.maxLeft),t.top=Math.min(Math.max(t.top,t.minTop),t.maxTop),t.oldLeft=t.left,t.oldTop=t.top,Ue(this.canvas,$e({width:t.width,height:t.height},Nt({translateX:t.left,translateY:t.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var n=this.canvasData,t=this.imageData,i=t.naturalWidth*(n.width/n.naturalWidth),r=t.naturalHeight*(n.height/n.naturalHeight);$e(t,{width:i,height:r,left:(n.width-i)/2,top:(n.height-r)/2}),Ue(this.image,$e({width:t.width,height:t.height},Nt($e({translateX:t.left,translateY:t.top},t)))),e&&this.output()},initCropBox:function(){var e=this.options,n=this.canvasData,t=e.aspectRatio||e.initialAspectRatio,i=Number(e.autoCropArea)||.8,r={width:n.width,height:n.height};t&&(n.height*t>n.width?r.height=r.width/t:r.width=r.height*t),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*i),r.height=Math.max(r.minHeight,r.height*i),r.left=n.left+(n.width-r.width)/2,r.top=n.top+(n.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=$e({},r)},limitCropBox:function(e,n){var t=this.options,i=this.containerData,r=this.canvasData,o=this.cropBoxData,d=this.limited,C=t.aspectRatio;if(e){var m=Number(t.minCropBoxWidth)||0,f=Number(t.minCropBoxHeight)||0,v=d?Math.min(i.width,r.width,r.width+r.left,i.width-r.left):i.width,x=d?Math.min(i.height,r.height,r.height+r.top,i.height-r.top):i.height;m=Math.min(m,i.width),f=Math.min(f,i.height),C&&(m&&f?f*C>m?f=m/C:m=f*C:m?f=m/C:f&&(m=f*C),x*C>v?x=v/C:v=x*C),o.minWidth=Math.min(m,v),o.minHeight=Math.min(f,x),o.maxWidth=v,o.maxHeight=x}n&&(d?(o.minLeft=Math.max(0,r.left),o.minTop=Math.max(0,r.top),o.maxLeft=Math.min(i.width,r.left+r.width)-o.width,o.maxTop=Math.min(i.height,r.top+r.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=i.width-o.width,o.maxTop=i.height-o.height))},renderCropBox:function(){var e=this.options,n=this.containerData,t=this.cropBoxData;(t.width>t.maxWidth||t.width<t.minWidth)&&(t.left=t.oldLeft),(t.height>t.maxHeight||t.height<t.minHeight)&&(t.top=t.oldTop),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),this.limitCropBox(!1,!0),t.left=Math.min(Math.max(t.left,t.minLeft),t.maxLeft),t.top=Math.min(Math.max(t.top,t.minTop),t.maxTop),t.oldLeft=t.left,t.oldTop=t.top,e.movable&&e.cropBoxMovable&&Te(this.face,he,t.width>=n.width&&t.height>=n.height?T:He),Ue(this.cropBox,$e({width:t.width,height:t.height},Nt({translateX:t.left,translateY:t.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),At(this.element,ee,this.getData())}},bn={initPreview:function(){var e=this.element,n=this.crossOrigin,t=this.options.preview,i=n?this.crossOriginUrl:this.url,r=e.alt||"The image to preview",o=document.createElement("img");if(n&&(o.crossOrigin=n),o.src=i,o.alt=r,this.viewBox.appendChild(o),this.viewBoxImage=o,!!t){var d=t;typeof t=="string"?d=e.ownerDocument.querySelectorAll(t):t.querySelector&&(d=[t]),this.previews=d,_e(d,function(C){var m=document.createElement("img");Te(C,J,{width:C.offsetWidth,height:C.offsetHeight,html:C.innerHTML}),n&&(m.crossOrigin=n),m.src=i,m.alt=r,m.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',C.innerHTML="",C.appendChild(m)})}},resetPreview:function(){_e(this.previews,function(e){var n=Dt(e,J);Ue(e,{width:n.width,height:n.height}),e.innerHTML=n.html,sn(e,J)})},preview:function(){var e=this.imageData,n=this.canvasData,t=this.cropBoxData,i=t.width,r=t.height,o=e.width,d=e.height,C=t.left-n.left-e.left,m=t.top-n.top-e.top;!this.cropped||this.disabled||(Ue(this.viewBoxImage,$e({width:o,height:d},Nt($e({translateX:-C,translateY:-m},e)))),_e(this.previews,function(f){var v=Dt(f,J),x=v.width,B=v.height,W=x,Ce=B,te=1;i&&(te=x/i,Ce=r*te),r&&Ce>B&&(te=B/r,W=i*te,Ce=B),Ue(f,{width:W,height:Ce}),Ue(f.getElementsByTagName("img")[0],$e({width:o*te,height:d*te},Nt($e({translateX:-C*te,translateY:-m*te},e))))}))}},On={bind:function(){var e=this.element,n=this.options,t=this.cropper;ae(n.cropstart)&&Ot(e,Ne,n.cropstart),ae(n.cropmove)&&Ot(e,we,n.cropmove),ae(n.cropend)&&Ot(e,j,n.cropend),ae(n.crop)&&Ot(e,ee,n.crop),ae(n.zoom)&&Ot(e,_,n.zoom),Ot(t,wt,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&Ot(t,V,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Ot(t,Re,this.onDblclick=this.dblclick.bind(this)),Ot(e.ownerDocument,h,this.onCropMove=this.cropMove.bind(this)),Ot(e.ownerDocument,N,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&Ot(window,O,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,n=this.options,t=this.cropper;ae(n.cropstart)&&gt(e,Ne,n.cropstart),ae(n.cropmove)&&gt(e,we,n.cropmove),ae(n.cropend)&&gt(e,j,n.cropend),ae(n.crop)&&gt(e,ee,n.crop),ae(n.zoom)&&gt(e,_,n.zoom),gt(t,wt,this.onCropStart),n.zoomable&&n.zoomOnWheel&&gt(t,V,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&gt(t,Re,this.onDblclick),gt(e.ownerDocument,h,this.onCropMove),gt(e.ownerDocument,N,this.onCropEnd),n.responsive&&gt(window,O,this.onResize)}},Ze={resize:function(){if(!this.disabled){var e=this.options,n=this.container,t=this.containerData,i=n.offsetWidth/t.width,r=n.offsetHeight/t.height,o=Math.abs(i-1)>Math.abs(r-1)?i:r;if(o!==1){var d,C;e.restore&&(d=this.getCanvasData(),C=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(_e(d,function(m,f){d[f]=m*o})),this.setCropBoxData(_e(C,function(m,f){C[f]=m*o})))}}},dblclick:function(){this.disabled||this.options.dragMode===Se||this.setDragMode(It(this.dragBox,p)?ce:re)},wheel:function(e){var n=this,t=Number(this.options.wheelZoomRatio)||.1,i=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*t,e)))},cropStart:function(e){var n=e.buttons,t=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(G(n)&&n!==1||G(t)&&t!==0||e.ctrlKey))){var i=this.options,r=this.pointers,o;e.changedTouches?_e(e.changedTouches,function(d){r[d.identifier]=Le(d)}):r[e.pointerId||0]=Le(e),Object.keys(r).length>1&&i.zoomable&&i.zoomOnTouch?o=L:o=Dt(e.target,he),fe.test(o)&&At(this.element,Ne,{originalEvent:e,action:o})!==!1&&(e.preventDefault(),this.action=o,this.cropping=!1,o===K&&(this.cropping=!0,ge(this.dragBox,b)))}},cropMove:function(e){var n=this.action;if(!(this.disabled||!n)){var t=this.pointers;e.preventDefault(),At(this.element,we,{originalEvent:e,action:n})!==!1&&(e.changedTouches?_e(e.changedTouches,function(i){$e(t[i.identifier]||{},Le(i,!0))}):$e(t[e.pointerId||0]||{},Le(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var n=this.action,t=this.pointers;e.changedTouches?_e(e.changedTouches,function(i){delete t[i.identifier]}):delete t[e.pointerId||0],n&&(e.preventDefault(),Object.keys(t).length||(this.action=""),this.cropping&&(this.cropping=!1,be(this.dragBox,b,this.cropped&&this.options.modal)),At(this.element,j,{originalEvent:e,action:n}))}}},Ye={change:function(e){var n=this.options,t=this.canvasData,i=this.containerData,r=this.cropBoxData,o=this.pointers,d=this.action,C=n.aspectRatio,m=r.left,f=r.top,v=r.width,x=r.height,B=m+v,W=f+x,Ce=0,te=0,le=i.width,Oe=i.height,pe=!0,Qe;!C&&e.shiftKey&&(C=v&&x?v/x:1),this.limited&&(Ce=r.minLeft,te=r.minTop,le=Ce+Math.min(i.width,t.width,t.left+t.width),Oe=te+Math.min(i.height,t.height,t.top+t.height));var it=o[Object.keys(o)[0]],Z={x:it.endX-it.startX,y:it.endY-it.startY},Ae=function(ut){switch(ut){case k:B+Z.x>le&&(Z.x=le-B);break;case A:m+Z.x<Ce&&(Z.x=Ce-m);break;case ne:f+Z.y<te&&(Z.y=te-f);break;case c:W+Z.y>Oe&&(Z.y=Oe-W);break}};switch(d){case He:m+=Z.x,f+=Z.y;break;case k:if(Z.x>=0&&(B>=le||C&&(f<=te||W>=Oe))){pe=!1;break}Ae(k),v+=Z.x,v<0&&(d=A,v=-v,m-=v),C&&(x=v/C,f+=(r.height-x)/2);break;case ne:if(Z.y<=0&&(f<=te||C&&(m<=Ce||B>=le))){pe=!1;break}Ae(ne),x-=Z.y,f+=Z.y,x<0&&(d=c,x=-x,f-=x),C&&(v=x*C,m+=(r.width-v)/2);break;case A:if(Z.x<=0&&(m<=Ce||C&&(f<=te||W>=Oe))){pe=!1;break}Ae(A),v-=Z.x,m+=Z.x,v<0&&(d=k,v=-v,m-=v),C&&(x=v/C,f+=(r.height-x)/2);break;case c:if(Z.y>=0&&(W>=Oe||C&&(m<=Ce||B>=le))){pe=!1;break}Ae(c),x+=Z.y,x<0&&(d=ne,x=-x,f-=x),C&&(v=x*C,m+=(r.width-v)/2);break;case F:if(C){if(Z.y<=0&&(f<=te||B>=le)){pe=!1;break}Ae(ne),x-=Z.y,f+=Z.y,v=x*C}else Ae(ne),Ae(k),Z.x>=0?B<le?v+=Z.x:Z.y<=0&&f<=te&&(pe=!1):v+=Z.x,Z.y<=0?f>te&&(x-=Z.y,f+=Z.y):(x-=Z.y,f+=Z.y);v<0&&x<0?(d=E,x=-x,v=-v,f-=x,m-=v):v<0?(d=de,v=-v,m-=v):x<0&&(d=Ke,x=-x,f-=x);break;case de:if(C){if(Z.y<=0&&(f<=te||m<=Ce)){pe=!1;break}Ae(ne),x-=Z.y,f+=Z.y,v=x*C,m+=r.width-v}else Ae(ne),Ae(A),Z.x<=0?m>Ce?(v-=Z.x,m+=Z.x):Z.y<=0&&f<=te&&(pe=!1):(v-=Z.x,m+=Z.x),Z.y<=0?f>te&&(x-=Z.y,f+=Z.y):(x-=Z.y,f+=Z.y);v<0&&x<0?(d=Ke,x=-x,v=-v,f-=x,m-=v):v<0?(d=F,v=-v,m-=v):x<0&&(d=E,x=-x,f-=x);break;case E:if(C){if(Z.x<=0&&(m<=Ce||W>=Oe)){pe=!1;break}Ae(A),v-=Z.x,m+=Z.x,x=v/C}else Ae(c),Ae(A),Z.x<=0?m>Ce?(v-=Z.x,m+=Z.x):Z.y>=0&&W>=Oe&&(pe=!1):(v-=Z.x,m+=Z.x),Z.y>=0?W<Oe&&(x+=Z.y):x+=Z.y;v<0&&x<0?(d=F,x=-x,v=-v,f-=x,m-=v):v<0?(d=Ke,v=-v,m-=v):x<0&&(d=de,x=-x,f-=x);break;case Ke:if(C){if(Z.x>=0&&(B>=le||W>=Oe)){pe=!1;break}Ae(k),v+=Z.x,x=v/C}else Ae(c),Ae(k),Z.x>=0?B<le?v+=Z.x:Z.y>=0&&W>=Oe&&(pe=!1):v+=Z.x,Z.y>=0?W<Oe&&(x+=Z.y):x+=Z.y;v<0&&x<0?(d=de,x=-x,v=-v,f-=x,m-=v):v<0?(d=E,v=-v,m-=v):x<0&&(d=F,x=-x,f-=x);break;case T:this.move(Z.x,Z.y),pe=!1;break;case L:this.zoom(je(o),e),pe=!1;break;case K:if(!Z.x||!Z.y){pe=!1;break}Qe=Wt(this.cropper),m=it.startX-Qe.left,f=it.startY-Qe.top,v=r.minWidth,x=r.minHeight,Z.x>0?d=Z.y>0?Ke:F:Z.x<0&&(m-=v,d=Z.y>0?E:de),Z.y<0&&(f-=x),this.cropped||(Je(this.cropBox,M),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}pe&&(r.width=v,r.height=x,r.left=m,r.top=f,this.action=d,this.renderCropBox()),_e(o,function(Xe){Xe.startX=Xe.endX,Xe.startY=Xe.endY})}},s={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&ge(this.dragBox,b),Je(this.cropBox,M),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=$e({},this.initialImageData),this.canvasData=$e({},this.initialCanvasData),this.cropBoxData=$e({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&($e(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Je(this.dragBox,b),ge(this.cropBox,M)),this},replace:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),n?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,_e(this.previews,function(t){t.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Je(this.cropper,D)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,ge(this.cropper,D)),this},destroy:function(){var e=this.element;return e[De]?(e[De]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=this.canvasData,i=t.left,r=t.top;return this.moveTo(qe(e)?e:i+Number(e),qe(n)?n:r+Number(n))},moveTo:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=this.canvasData,i=!1;return e=Number(e),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(G(e)&&(t.left=e,i=!0),G(n)&&(t.top=n,i=!0),i&&this.renderCanvas(!0)),this},zoom:function(e,n){var t=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(t.width*e/t.naturalWidth,null,n)},zoomTo:function(e,n,t){var i=this.options,r=this.canvasData,o=r.width,d=r.height,C=r.naturalWidth,m=r.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&i.zoomable){var f=C*e,v=m*e;if(At(this.element,_,{ratio:e,oldRatio:o/C,originalEvent:t})===!1)return this;if(t){var x=this.pointers,B=Wt(this.cropper),W=x&&Object.keys(x).length?pt(x):{pageX:t.pageX,pageY:t.pageY};r.left-=(f-o)*((W.pageX-B.left-r.left)/o),r.top-=(v-d)*((W.pageY-B.top-r.top)/d)}else Fe(n)&&G(n.x)&&G(n.y)?(r.left-=(f-o)*((n.x-r.left)/o),r.top-=(v-d)*((n.y-r.top)/d)):(r.left-=(f-o)/2,r.top-=(v-d)/2);r.width=f,r.height=v,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),G(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var n=this.imageData.scaleY;return this.scale(e,G(n)?n:1)},scaleY:function(e){var n=this.imageData.scaleX;return this.scale(G(n)?n:1,e)},scale:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=this.imageData,i=!1;return e=Number(e),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(G(e)&&(t.scaleX=e,i=!0),G(n)&&(t.scaleY=n,i=!0),i&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,t=this.imageData,i=this.canvasData,r=this.cropBoxData,o;if(this.ready&&this.cropped){o={x:r.left-i.left,y:r.top-i.top,width:r.width,height:r.height};var d=t.width/t.naturalWidth;if(_e(o,function(f,v){o[v]=f/d}),e){var C=Math.round(o.y+o.height),m=Math.round(o.x+o.width);o.x=Math.round(o.x),o.y=Math.round(o.y),o.width=m-o.x,o.height=C-o.y}}else o={x:0,y:0,width:0,height:0};return n.rotatable&&(o.rotate=t.rotate||0),n.scalable&&(o.scaleX=t.scaleX||1,o.scaleY=t.scaleY||1),o},setData:function(e){var n=this.options,t=this.imageData,i=this.canvasData,r={};if(this.ready&&!this.disabled&&Fe(e)){var o=!1;n.rotatable&&G(e.rotate)&&e.rotate!==t.rotate&&(t.rotate=e.rotate,o=!0),n.scalable&&(G(e.scaleX)&&e.scaleX!==t.scaleX&&(t.scaleX=e.scaleX,o=!0),G(e.scaleY)&&e.scaleY!==t.scaleY&&(t.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var d=t.width/t.naturalWidth;G(e.x)&&(r.left=e.x*d+i.left),G(e.y)&&(r.top=e.y*d+i.top),G(e.width)&&(r.width=e.width*d),G(e.height)&&(r.height=e.height*d),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?$e({},this.containerData):{}},getImageData:function(){return this.sized?$e({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,n={};return this.ready&&_e(["left","top","width","height","naturalWidth","naturalHeight"],function(t){n[t]=e[t]}),n},setCanvasData:function(e){var n=this.canvasData,t=n.aspectRatio;return this.ready&&!this.disabled&&Fe(e)&&(G(e.left)&&(n.left=e.left),G(e.top)&&(n.top=e.top),G(e.width)?(n.width=e.width,n.height=e.width/t):G(e.height)&&(n.height=e.height,n.width=e.height*t),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:e.left,top:e.top,width:e.width,height:e.height}),n||{}},setCropBoxData:function(e){var n=this.cropBoxData,t=this.options.aspectRatio,i,r;return this.ready&&this.cropped&&!this.disabled&&Fe(e)&&(G(e.left)&&(n.left=e.left),G(e.top)&&(n.top=e.top),G(e.width)&&e.width!==n.width&&(i=!0,n.width=e.width),G(e.height)&&e.height!==n.height&&(r=!0,n.height=e.height),t&&(i?n.height=n.width/t:r&&(n.width=n.height*t)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,t=wn(this.image,this.imageData,n,e);if(!this.cropped)return t;var i=this.getData(e.rounded),r=i.x,o=i.y,d=i.width,C=i.height,m=t.width/Math.floor(n.naturalWidth);m!==1&&(r*=m,o*=m,d*=m,C*=m);var f=d/C,v=Zt({aspectRatio:f,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),x=Zt({aspectRatio:f,width:e.minWidth||0,height:e.minHeight||0},"cover"),B=Zt({aspectRatio:f,width:e.width||(m!==1?t.width:d),height:e.height||(m!==1?t.height:C)}),W=B.width,Ce=B.height;W=Math.min(v.width,Math.max(x.width,W)),Ce=Math.min(v.height,Math.max(x.height,Ce));var te=document.createElement("canvas"),le=te.getContext("2d");te.width=Ee(W),te.height=Ee(Ce),le.fillStyle=e.fillColor||"transparent",le.fillRect(0,0,W,Ce);var Oe=e.imageSmoothingEnabled,pe=Oe===void 0?!0:Oe,Qe=e.imageSmoothingQuality;le.imageSmoothingEnabled=pe,Qe&&(le.imageSmoothingQuality=Qe);var it=t.width,Z=t.height,Ae=r,Xe=o,ut,xt,yt,Et,Rt,ft;Ae<=-d||Ae>it?(Ae=0,ut=0,yt=0,Rt=0):Ae<=0?(yt=-Ae,Ae=0,ut=Math.min(it,d+Ae),Rt=ut):Ae<=it&&(yt=0,ut=Math.min(d,it-Ae),Rt=ut),ut<=0||Xe<=-C||Xe>Z?(Xe=0,xt=0,Et=0,ft=0):Xe<=0?(Et=-Xe,Xe=0,xt=Math.min(Z,C+Xe),ft=xt):Xe<=Z&&(Et=0,xt=Math.min(C,Z-Xe),ft=xt);var ht=[Ae,Xe,ut,xt];if(Rt>0&&ft>0){var ot=W/d;ht.push(yt*ot,Et*ot,Rt*ot,ft*ot)}return le.drawImage.apply(le,[t].concat(ue(ht.map(function(Vt){return Math.floor(Ee(Vt))})))),te},setAspectRatio:function(e){var n=this.options;return!this.disabled&&!qe(e)&&(n.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var n=this.options,t=this.dragBox,i=this.face;if(this.ready&&!this.disabled){var r=e===re,o=n.movable&&e===ce;e=r||o?e:Se,n.dragMode=e,Te(t,he,e),be(t,p,r),be(t,$,o),n.cropBoxMovable||(Te(i,he,e),be(i,p,r),be(i,$,o))}return this}},w=rt.Cropper,S=function(){function a(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(tt(this,a),!e||!ke.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=$e({},q,Fe(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return X(a,[{key:"init",value:function(){var n=this.element,t=n.tagName.toLowerCase(),i;if(!n[De]){if(n[De]=this,t==="img"){if(this.isImg=!0,i=n.getAttribute("src")||"",this.originalUrl=i,!i)return;i=n.src}else t==="canvas"&&window.HTMLCanvasElement&&(i=n.toDataURL());this.load(i)}}},{key:"load",value:function(n){var t=this;if(n){this.url=n,this.imageData={};var i=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(me.test(n)){ye.test(n)?this.read(vt(n)):this.clone();return}var o=new XMLHttpRequest,d=this.clone.bind(this);this.reloading=!0,this.xhr=o,o.onabort=d,o.onerror=d,o.ontimeout=d,o.onprogress=function(){o.getResponseHeader("content-type")!==ie&&o.abort()},o.onload=function(){t.read(o.response)},o.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&_t(n)&&i.crossOrigin&&(n=Lt(n)),o.open("GET",n,!0),o.responseType="arraybuffer",o.withCredentials=i.crossOrigin==="use-credentials",o.send()}}},{key:"read",value:function(n){var t=this.options,i=this.imageData,r=Ft(n),o=0,d=1,C=1;if(r>1){this.url=un(n,ie);var m=Zn(r);o=m.rotate,d=m.scaleX,C=m.scaleY}t.rotatable&&(i.rotate=o),t.scalable&&(i.scaleX=d,i.scaleY=C),this.clone()}},{key:"clone",value:function(){var n=this.element,t=this.url,i=n.crossOrigin,r=t;this.options.checkCrossOrigin&&_t(t)&&(i||(i="anonymous"),r=Lt(t)),this.crossOrigin=i,this.crossOriginUrl=r;var o=document.createElement("img");i&&(o.crossOrigin=i),o.src=r||t,o.alt=n.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),ge(o,R),n.parentNode.insertBefore(o,n.nextSibling)}},{key:"start",value:function(){var n=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var i=rt.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(rt.navigator.userAgent),r=function(m,f){$e(n.imageData,{naturalWidth:m,naturalHeight:f,aspectRatio:m/f}),n.initialImageData=$e({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(t.naturalWidth&&!i){r(t.naturalWidth,t.naturalHeight);return}var o=document.createElement("img"),d=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){r(o.width,o.height),i||d.removeChild(o)},o.src=t.src,i||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",d.appendChild(o))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,t=this.options,i=this.image,r=n.parentNode,o=document.createElement("div");o.innerHTML=We;var d=o.querySelector(".".concat(De,"-container")),C=d.querySelector(".".concat(De,"-canvas")),m=d.querySelector(".".concat(De,"-drag-box")),f=d.querySelector(".".concat(De,"-crop-box")),v=f.querySelector(".".concat(De,"-face"));this.container=r,this.cropper=d,this.canvas=C,this.dragBox=m,this.cropBox=f,this.viewBox=d.querySelector(".".concat(De,"-view-box")),this.face=v,C.appendChild(i),ge(n,M),r.insertBefore(d,n.nextSibling),Je(i,R),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,ge(f,M),t.guides||ge(f.getElementsByClassName("".concat(De,"-dashed")),M),t.center||ge(f.getElementsByClassName("".concat(De,"-center")),M),t.background&&ge(d,"".concat(De,"-bg")),t.highlight||ge(v,Q),t.cropBoxMovable&&(ge(v,$),Te(v,he,He)),t.cropBoxResizable||(ge(f.getElementsByClassName("".concat(De,"-line")),M),ge(f.getElementsByClassName("".concat(De,"-point")),M)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ae(t.ready)&&Ot(n,y,t.ready,{once:!0}),At(n,y)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),Je(this.element,M)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=w,a}},{key:"setDefaults",value:function(n){$e(q,Fe(n)&&n)}}])}();return $e(S.prototype,Kt,bn,On,Ze,Ye,s),S})},96478:function(hn,st,l){"use strict";l.d(st,{Z:function(){return A}});var I=l(14809),P=l(4635),g=l(50298),tt=l(62646),Y=l(65966),X=l(92310),H=l.n(X),ue=l(8654),U=l(59301),ve=l(10228),Be=l(16089),xe=ve.Z.ESC,u=ve.Z.TAB;function z(c){var ne=c.visible,F=c.triggerRef,de=c.onVisibleChange,Ke=c.autoFocus,E=c.overlayRef,p=U.useRef(!1),D=function(){if(ne){var b,$;(b=F.current)===null||b===void 0||($=b.focus)===null||$===void 0||$.call(b),de==null||de(!1)}},M=function(){var b;return(b=E.current)!==null&&b!==void 0&&b.focus?(E.current.focus(),p.current=!0,!0):!1},R=function(b){switch(b.keyCode){case xe:D();break;case u:{var $=!1;p.current||($=M()),$?b.preventDefault():D();break}}};U.useEffect(function(){return ne?(window.addEventListener("keydown",R),Ke&&(0,Be.Z)(M,3),function(){window.removeEventListener("keydown",R),p.current=!1}):function(){p.current=!1}},[ne])}var rt=(0,U.forwardRef)(function(c,ne){var F=c.overlay,de=c.arrow,Ke=c.prefixCls,E=(0,U.useMemo)(function(){var D;return typeof F=="function"?D=F():D=F,D},[F]),p=(0,ue.sQ)(ne,(0,ue.C4)(E));return U.createElement(U.Fragment,null,de&&U.createElement("div",{className:"".concat(Ke,"-arrow")}),U.cloneElement(E,{ref:(0,ue.Yr)(E)?p:void 0}))}),Ct=rt,nt={adjustX:1,adjustY:1},De=[0,0],He={topLeft:{points:["bl","tl"],overflow:nt,offset:[0,-4],targetOffset:De},top:{points:["bc","tc"],overflow:nt,offset:[0,-4],targetOffset:De},topRight:{points:["br","tr"],overflow:nt,offset:[0,-4],targetOffset:De},bottomLeft:{points:["tl","bl"],overflow:nt,offset:[0,4],targetOffset:De},bottom:{points:["tc","bc"],overflow:nt,offset:[0,4],targetOffset:De},bottomRight:{points:["tr","br"],overflow:nt,offset:[0,4],targetOffset:De}},K=He,T=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(c,ne){var F,de=c.arrow,Ke=de===void 0?!1:de,E=c.prefixCls,p=E===void 0?"rc-dropdown":E,D=c.transitionName,M=c.animation,R=c.align,Q=c.placement,b=Q===void 0?"bottomLeft":Q,$=c.placements,he=$===void 0?K:$,J=c.getPopupContainer,re=c.showAction,ce=c.hideAction,Se=c.overlayClassName,ee=c.overlayStyle,j=c.visible,we=c.trigger,Ne=we===void 0?["hover"]:we,Re=c.autoFocus,Me=c.overlay,dt=c.children,lt=c.onVisibleChange,wt=(0,tt.Z)(c,T),h=U.useState(),N=(0,g.Z)(h,2),y=N[0],O=N[1],V="visible"in c?j:y,_=U.useRef(null),ie=U.useRef(null),fe=U.useRef(null);U.useImperativeHandle(ne,function(){return _.current});var me=function(Ve){O(Ve),lt==null||lt(Ve)};z({visible:V,triggerRef:fe,onVisibleChange:me,autoFocus:Re,overlayRef:ie});var ye=function(Ve){var qe=c.onOverlayClick;O(!1),qe&&qe(Ve)},ke=function(){return U.createElement(Ct,{ref:ie,overlay:Me,prefixCls:p,arrow:Ke})},se=function(){return typeof Me=="function"?ke:ke()},Ge=function(){var Ve=c.minOverlayWidthMatchTrigger,qe=c.alignPoint;return"minOverlayWidthMatchTrigger"in c?Ve:!qe},q=function(){var Ve=c.openClassName;return Ve!==void 0?Ve:"".concat(p,"-open")},We=U.cloneElement(dt,{className:H()((F=dt.props)===null||F===void 0?void 0:F.className,V&&q()),ref:(0,ue.Yr)(dt)?(0,ue.sQ)(fe,(0,ue.C4)(dt)):void 0}),et=ce;return!et&&Ne.indexOf("contextMenu")!==-1&&(et=["click"]),U.createElement(Y.Z,(0,I.Z)({builtinPlacements:he},wt,{prefixCls:p,ref:_,popupClassName:H()(Se,(0,P.Z)({},"".concat(p,"-show-arrow"),Ke)),popupStyle:ee,action:Ne,showAction:re,hideAction:et,popupPlacement:b,popupAlign:R,popupTransitionName:D,popupAnimation:M,popupVisible:V,stretch:Ge()?"minWidth":"",popup:se(),onPopupVisibleChange:me,onPopupClick:ye,getPopupContainer:J}),We)}var k=U.forwardRef(L),A=k},66003:function(hn,st,l){"use strict";l.d(st,{Z:function(){return H}});var I=l(62646),P=l(20439),g=l(93664),tt=l(59301),Y=["show"];function X(ue,U){if(!U.max)return!0;var ve=U.strategy(ue);return ve<=U.max}function H(ue,U){return tt.useMemo(function(){var ve={};U&&(ve.show=(0,g.Z)(U)==="object"&&U.formatter?U.formatter:!!U),ve=(0,P.Z)((0,P.Z)({},ve),ue);var Be=ve,xe=Be.show,u=(0,I.Z)(Be,Y);return(0,P.Z)((0,P.Z)({},u),{},{show:!!xe,showFormatter:typeof xe=="function"?xe:void 0,strategy:u.strategy||function(z){return z.length}})},[ue,U])}},36901:function(hn,st,l){"use strict";l.r(st),l.d(st,{BaseInput:function(){return ve},default:function(){return K}});var I=l(20439),P=l(14809),g=l(4635),tt=l(93664),Y=l(92310),X=l.n(Y),H=l(59301),ue=l(30292),U=H.forwardRef(function(T,L){var k,A,c,ne=T.inputElement,F=T.children,de=T.prefixCls,Ke=T.prefix,E=T.suffix,p=T.addonBefore,D=T.addonAfter,M=T.className,R=T.style,Q=T.disabled,b=T.readOnly,$=T.focused,he=T.triggerFocus,J=T.allowClear,re=T.value,ce=T.handleReset,Se=T.hidden,ee=T.classes,j=T.classNames,we=T.dataAttrs,Ne=T.styles,Re=T.components,Me=T.onClear,dt=F!=null?F:ne,lt=(Re==null?void 0:Re.affixWrapper)||"span",wt=(Re==null?void 0:Re.groupWrapper)||"span",h=(Re==null?void 0:Re.wrapper)||"span",N=(Re==null?void 0:Re.groupAddon)||"span",y=(0,H.useRef)(null),O=function(at){var Fe;(Fe=y.current)!==null&&Fe!==void 0&&Fe.contains(at.target)&&(he==null||he())},V=(0,ue.X3)(T),_=(0,H.cloneElement)(dt,{value:re,className:X()((k=dt.props)===null||k===void 0?void 0:k.className,!V&&(j==null?void 0:j.variant))||null}),ie=(0,H.useRef)(null);if(H.useImperativeHandle(L,function(){return{nativeElement:ie.current||y.current}}),V){var fe=null;if(J){var me=!Q&&!b&&re,ye="".concat(de,"-clear-icon"),ke=(0,tt.Z)(J)==="object"&&J!==null&&J!==void 0&&J.clearIcon?J.clearIcon:"\u2716";fe=H.createElement("button",{type:"button",tabIndex:-1,onClick:function(at){ce==null||ce(at),Me==null||Me()},onMouseDown:function(at){return at.preventDefault()},className:X()(ye,(0,g.Z)((0,g.Z)({},"".concat(ye,"-hidden"),!me),"".concat(ye,"-has-suffix"),!!E))},ke)}var se="".concat(de,"-affix-wrapper"),Ge=X()(se,(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(de,"-disabled"),Q),"".concat(se,"-disabled"),Q),"".concat(se,"-focused"),$),"".concat(se,"-readonly"),b),"".concat(se,"-input-with-clear-btn"),E&&J&&re),ee==null?void 0:ee.affixWrapper,j==null?void 0:j.affixWrapper,j==null?void 0:j.variant),q=(E||J)&&H.createElement("span",{className:X()("".concat(de,"-suffix"),j==null?void 0:j.suffix),style:Ne==null?void 0:Ne.suffix},fe,E);_=H.createElement(lt,(0,P.Z)({className:Ge,style:Ne==null?void 0:Ne.affixWrapper,onClick:O},we==null?void 0:we.affixWrapper,{ref:y}),Ke&&H.createElement("span",{className:X()("".concat(de,"-prefix"),j==null?void 0:j.prefix),style:Ne==null?void 0:Ne.prefix},Ke),_,q)}if((0,ue.He)(T)){var We="".concat(de,"-group"),et="".concat(We,"-addon"),G="".concat(We,"-wrapper"),Ve=X()("".concat(de,"-wrapper"),We,ee==null?void 0:ee.wrapper,j==null?void 0:j.wrapper),qe=X()(G,(0,g.Z)({},"".concat(G,"-disabled"),Q),ee==null?void 0:ee.group,j==null?void 0:j.groupWrapper);_=H.createElement(wt,{className:qe,ref:ie},H.createElement(h,{className:Ve},p&&H.createElement(N,{className:et},p),_,D&&H.createElement(N,{className:et},D)))}return H.cloneElement(_,{className:X()((A=_.props)===null||A===void 0?void 0:A.className,M)||null,style:(0,I.Z)((0,I.Z)({},(c=_.props)===null||c===void 0?void 0:c.style),R),hidden:Se})}),ve=U,Be=l(95190),xe=l(50298),u=l(62646),z=l(18929),rt=l(2738),Ct=l(66003),nt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],De=(0,H.forwardRef)(function(T,L){var k=T.autoComplete,A=T.onChange,c=T.onFocus,ne=T.onBlur,F=T.onPressEnter,de=T.onKeyDown,Ke=T.onKeyUp,E=T.prefixCls,p=E===void 0?"rc-input":E,D=T.disabled,M=T.htmlSize,R=T.className,Q=T.maxLength,b=T.suffix,$=T.showCount,he=T.count,J=T.type,re=J===void 0?"text":J,ce=T.classes,Se=T.classNames,ee=T.styles,j=T.onCompositionStart,we=T.onCompositionEnd,Ne=(0,u.Z)(T,nt),Re=(0,H.useState)(!1),Me=(0,xe.Z)(Re,2),dt=Me[0],lt=Me[1],wt=(0,H.useRef)(!1),h=(0,H.useRef)(!1),N=(0,H.useRef)(null),y=(0,H.useRef)(null),O=function(Ie){N.current&&(0,ue.nH)(N.current,Ie)},V=(0,z.Z)(T.defaultValue,{value:T.value}),_=(0,xe.Z)(V,2),ie=_[0],fe=_[1],me=ie==null?"":String(ie),ye=(0,H.useState)(null),ke=(0,xe.Z)(ye,2),se=ke[0],Ge=ke[1],q=(0,Ct.Z)(he,$),We=q.max||Q,et=q.strategy(me),G=!!We&&et>We;(0,H.useImperativeHandle)(L,function(){var Ee;return{focus:O,blur:function(){var Ue;(Ue=N.current)===null||Ue===void 0||Ue.blur()},setSelectionRange:function(Ue,It,ge){var Je;(Je=N.current)===null||Je===void 0||Je.setSelectionRange(Ue,It,ge)},select:function(){var Ue;(Ue=N.current)===null||Ue===void 0||Ue.select()},input:N.current,nativeElement:((Ee=y.current)===null||Ee===void 0?void 0:Ee.nativeElement)||N.current}}),(0,H.useEffect)(function(){h.current&&(h.current=!1),lt(function(Ee){return Ee&&D?!1:Ee})},[D]);var Ve=function(Ie,Ue,It){var ge=Ue;if(!wt.current&&q.exceedFormatter&&q.max&&q.strategy(Ue)>q.max){if(ge=q.exceedFormatter(Ue,{max:q.max}),Ue!==ge){var Je,be;Ge([((Je=N.current)===null||Je===void 0?void 0:Je.selectionStart)||0,((be=N.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if(It.source==="compositionEnd")return;fe(ge),N.current&&(0,ue.rJ)(N.current,Ie,A,ge)};(0,H.useEffect)(function(){if(se){var Ee;(Ee=N.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,(0,Be.Z)(se))}},[se]);var qe=function(Ie){Ve(Ie,Ie.target.value,{source:"change"})},ze=function(Ie){wt.current=!1,Ve(Ie,Ie.currentTarget.value,{source:"compositionEnd"}),we==null||we(Ie)},at=function(Ie){F&&Ie.key==="Enter"&&!h.current&&(h.current=!0,F(Ie)),de==null||de(Ie)},Fe=function(Ie){Ie.key==="Enter"&&(h.current=!1),Ke==null||Ke(Ie)},ae=function(Ie){lt(!0),c==null||c(Ie)},ct=function(Ie){h.current&&(h.current=!1),lt(!1),ne==null||ne(Ie)},Pt=function(Ie){fe(""),O(),N.current&&(0,ue.rJ)(N.current,Ie,A)},_e=G&&"".concat(p,"-out-of-range"),$e=function(){var Ie=(0,rt.Z)(T,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return H.createElement("input",(0,P.Z)({autoComplete:k},Ie,{onChange:qe,onFocus:ae,onBlur:ct,onKeyDown:at,onKeyUp:Fe,className:X()(p,(0,g.Z)({},"".concat(p,"-disabled"),D),Se==null?void 0:Se.input),style:ee==null?void 0:ee.input,ref:N,size:M,type:re,onCompositionStart:function(It){wt.current=!0,j==null||j(It)},onCompositionEnd:ze}))},Gt=function(){var Ie=Number(We)>0;if(b||q.show){var Ue=q.showFormatter?q.showFormatter({value:me,count:et,maxLength:We}):"".concat(et).concat(Ie?" / ".concat(We):"");return H.createElement(H.Fragment,null,q.show&&H.createElement("span",{className:X()("".concat(p,"-show-count-suffix"),(0,g.Z)({},"".concat(p,"-show-count-has-suffix"),!!b),Se==null?void 0:Se.count),style:(0,I.Z)({},ee==null?void 0:ee.count)},Ue),b)}return null};return H.createElement(ve,(0,P.Z)({},Ne,{prefixCls:p,className:X()(R,_e),handleReset:Pt,value:me,focused:dt,triggerFocus:O,suffix:Gt(),disabled:D,classes:ce,classNames:Se,styles:ee}),$e())}),He=De,K=He},30292:function(hn,st,l){"use strict";l.d(st,{He:function(){return I},X3:function(){return P},nH:function(){return Y},rJ:function(){return tt}});function I(X){return!!(X.addonBefore||X.addonAfter)}function P(X){return!!(X.prefix||X.suffix||X.allowClear)}function g(X,H,ue){var U=H.cloneNode(!0),ve=Object.create(X,{target:{value:U},currentTarget:{value:U}});return U.value=ue,typeof H.selectionStart=="number"&&typeof H.selectionEnd=="number"&&(U.selectionStart=H.selectionStart,U.selectionEnd=H.selectionEnd),U.setSelectionRange=function(){H.setSelectionRange.apply(H,arguments)},ve}function tt(X,H,ue,U){if(ue){var ve=H;if(H.type==="click"){ve=g(H,X,""),ue(ve);return}if(X.type!=="file"&&U!==void 0){ve=g(H,X,U),ue(ve);return}ue(ve)}}function Y(X,H){if(X){X.focus(H);var ue=H||{},U=ue.cursor;if(U){var ve=X.value.length;switch(U){case"start":X.setSelectionRange(0,0);break;case"end":X.setSelectionRange(ve,ve);break;default:X.setSelectionRange(0,ve)}}}}},28321:function(hn,st,l){"use strict";l.d(st,{iz:function(){return Ut},ck:function(){return ge},BW:function(){return Dn},sN:function(){return ge},Wd:function(){return pt},ZP:function(){return Ye},Xl:function(){return F}});var I=l(14809),P=l(4635),g=l(20439),tt=l(95190),Y=l(50298),X=l(62646),H=l(92310),ue=l.n(H),U=l(11780),ve=l(18929),Be=l(13697),xe=l(48736),u=l(59301),z=l(4676),rt=u.createContext(null);function Ct(s,w){return s===void 0?null:"".concat(s,"-").concat(w)}function nt(s){var w=u.useContext(rt);return Ct(w,s)}var De=l(80547),He=["children","locked"],K=u.createContext(null);function T(s,w){var S=(0,g.Z)({},s);return Object.keys(w).forEach(function(a){var e=w[a];e!==void 0&&(S[a]=e)}),S}function L(s){var w=s.children,S=s.locked,a=(0,X.Z)(s,He),e=u.useContext(K),n=(0,De.Z)(function(){return T(e,a)},[e,a],function(t,i){return!S&&(t[0]!==i[0]||!(0,Be.Z)(t[1],i[1],!0))});return u.createElement(K.Provider,{value:n},w)}var k=[],A=u.createContext(null);function c(){return u.useContext(A)}var ne=u.createContext(k);function F(s){var w=u.useContext(ne);return u.useMemo(function(){return s!==void 0?[].concat((0,tt.Z)(w),[s]):w},[w,s])}var de=u.createContext(null),Ke=u.createContext({}),E=Ke,p=l(29194);function D(s){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,p.Z)(s)){var S=s.nodeName.toLowerCase(),a=["input","select","textarea","button"].includes(S)||s.isContentEditable||S==="a"&&!!s.getAttribute("href"),e=s.getAttribute("tabindex"),n=Number(e),t=null;return e&&!Number.isNaN(n)?t=n:a&&t===null&&(t=0),a&&s.disabled&&(t=null),t!==null&&(t>=0||w&&t<0)}return!1}function M(s){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=(0,tt.Z)(s.querySelectorAll("*")).filter(function(a){return D(a,w)});return D(s,w)&&S.unshift(s),S}var R=null;function Q(){R=document.activeElement}function b(){R=null}function $(){if(R)try{R.focus()}catch(s){}}function he(s,w){if(w.keyCode===9){var S=M(s),a=S[w.shiftKey?0:S.length-1],e=a===document.activeElement||s===document.activeElement;if(e){var n=S[w.shiftKey?S.length-1:0];n.focus(),w.preventDefault()}}}var J=l(10228),re=l(16089),ce=J.Z.LEFT,Se=J.Z.RIGHT,ee=J.Z.UP,j=J.Z.DOWN,we=J.Z.ENTER,Ne=J.Z.ESC,Re=J.Z.HOME,Me=J.Z.END,dt=[ee,j,ce,Se];function lt(s,w,S,a){var e,n="prev",t="next",i="children",r="parent";if(s==="inline"&&a===we)return{inlineTrigger:!0};var o=(0,P.Z)((0,P.Z)({},ee,n),j,t),d=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},ce,S?t:n),Se,S?n:t),j,i),we,i),C=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},ee,n),j,t),we,i),Ne,r),ce,S?i:r),Se,S?r:i),m={inline:o,horizontal:d,vertical:C,inlineSub:o,horizontalSub:C,verticalSub:C},f=(e=m["".concat(s).concat(w?"":"Sub")])===null||e===void 0?void 0:e[a];switch(f){case n:return{offset:-1,sibling:!0};case t:return{offset:1,sibling:!0};case r:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}function wt(s){for(var w=s;w;){if(w.getAttribute("data-menu-list"))return w;w=w.parentElement}return null}function h(s,w){for(var S=s||document.activeElement;S;){if(w.has(S))return S;S=S.parentElement}return null}function N(s,w){var S=M(s,!0);return S.filter(function(a){return w.has(a)})}function y(s,w,S){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!s)return null;var e=N(s,w),n=e.length,t=e.findIndex(function(i){return S===i});return a<0?t===-1?t=n-1:t-=1:a>0&&(t+=1),t=(t+n)%n,e[t]}var O=function(w,S){var a=new Set,e=new Map,n=new Map;return w.forEach(function(t){var i=document.querySelector("[data-menu-id='".concat(Ct(S,t),"']"));i&&(a.add(i),n.set(i,t),e.set(t,i))}),{elements:a,key2element:e,element2key:n}};function V(s,w,S,a,e,n,t,i,r,o){var d=u.useRef(),C=u.useRef();C.current=w;var m=function(){re.Z.cancel(d.current)};return u.useEffect(function(){return function(){m()}},[]),function(f){var v=f.which;if([].concat(dt,[we,Ne,Re,Me]).includes(v)){var x=n(),B=O(x,a),W=B,Ce=W.elements,te=W.key2element,le=W.element2key,Oe=te.get(w),pe=h(Oe,Ce),Qe=le.get(pe),it=lt(s,t(Qe,!0).length===1,S,v);if(!it&&v!==Re&&v!==Me)return;(dt.includes(v)||[Re,Me].includes(v))&&f.preventDefault();var Z=function(ft){if(ft){var ht=ft,ot=ft.querySelector("a");ot!=null&&ot.getAttribute("href")&&(ht=ot);var Vt=le.get(ft);i(Vt),m(),d.current=(0,re.Z)(function(){C.current===Vt&&ht.focus()})}};if([Re,Me].includes(v)||it.sibling||!pe){var Ae;!pe||s==="inline"?Ae=e.current:Ae=wt(pe);var Xe,ut=N(Ae,Ce);v===Re?Xe=ut[0]:v===Me?Xe=ut[ut.length-1]:Xe=y(Ae,Ce,pe,it.offset),Z(Xe)}else if(it.inlineTrigger)r(Qe);else if(it.offset>0)r(Qe,!0),m(),d.current=(0,re.Z)(function(){B=O(x,a);var Rt=pe.getAttribute("aria-controls"),ft=document.getElementById(Rt),ht=y(ft,B.elements);Z(ht)},5);else if(it.offset<0){var xt=t(Qe,!0),yt=xt[xt.length-2],Et=te.get(yt);r(yt,!1),Z(Et)}}o==null||o(f)}}function _(s){Promise.resolve().then(s)}var ie="__RC_UTIL_PATH_SPLIT__",fe=function(w){return w.join(ie)},me=function(w){return w.split(ie)},ye="rc-menu-more";function ke(){var s=u.useState({}),w=(0,Y.Z)(s,2),S=w[1],a=(0,u.useRef)(new Map),e=(0,u.useRef)(new Map),n=u.useState([]),t=(0,Y.Z)(n,2),i=t[0],r=t[1],o=(0,u.useRef)(0),d=(0,u.useRef)(!1),C=function(){d.current||S({})},m=(0,u.useCallback)(function(te,le){var Oe=fe(le);e.current.set(Oe,te),a.current.set(te,Oe),o.current+=1;var pe=o.current;_(function(){pe===o.current&&C()})},[]),f=(0,u.useCallback)(function(te,le){var Oe=fe(le);e.current.delete(Oe),a.current.delete(te)},[]),v=(0,u.useCallback)(function(te){r(te)},[]),x=(0,u.useCallback)(function(te,le){var Oe=a.current.get(te)||"",pe=me(Oe);return le&&i.includes(pe[0])&&pe.unshift(ye),pe},[i]),B=(0,u.useCallback)(function(te,le){return te.filter(function(Oe){return Oe!==void 0}).some(function(Oe){var pe=x(Oe,!0);return pe.includes(le)})},[x]),W=function(){var le=(0,tt.Z)(a.current.keys());return i.length&&le.push(ye),le},Ce=(0,u.useCallback)(function(te){var le="".concat(a.current.get(te)).concat(ie),Oe=new Set;return(0,tt.Z)(e.current.keys()).forEach(function(pe){pe.startsWith(le)&&Oe.add(e.current.get(pe))}),Oe},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:f,refreshOverflowKeys:v,isSubPathKey:B,getKeyPath:x,getKeys:W,getSubPathKeys:Ce}}function se(s){var w=u.useRef(s);w.current=s;var S=u.useCallback(function(){for(var a,e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return(a=w.current)===null||a===void 0?void 0:a.call.apply(a,[w].concat(n))},[]);return s?S:void 0}var Ge=Math.random().toFixed(5).toString().slice(2),q=0;function We(s){var w=(0,ve.Z)(s,{value:s}),S=(0,Y.Z)(w,2),a=S[0],e=S[1];return u.useEffect(function(){q+=1;var n="".concat(Ge,"-").concat(q);e("rc-menu-uuid-".concat(n))},[]),a}var et=l(99153),G=l(84851),Ve=l(19257),qe=l(93046),ze=l(2738),at=l(8654);function Fe(s,w,S,a){var e=u.useContext(K),n=e.activeKey,t=e.onActive,i=e.onInactive,r={active:n===s};return w||(r.onMouseEnter=function(o){S==null||S({key:s,domEvent:o}),t(s)},r.onMouseLeave=function(o){a==null||a({key:s,domEvent:o}),i(s)}),r}function ae(s){var w=u.useContext(K),S=w.mode,a=w.rtl,e=w.inlineIndent;if(S!=="inline")return null;var n=s;return a?{paddingRight:n*e}:{paddingLeft:n*e}}function ct(s){var w=s.icon,S=s.props,a=s.children,e;return w===null||w===!1?null:(typeof w=="function"?e=u.createElement(w,(0,g.Z)({},S)):typeof w!="boolean"&&(e=w),e||a||null)}var Pt=["item"];function _e(s){var w=s.item,S=(0,X.Z)(s,Pt);return Object.defineProperty(S,"item",{get:function(){return(0,xe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),w}}),S}var $e=["title","attribute","elementRef"],Gt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ee=["active"],Ie=function(s){(0,Ve.Z)(S,s);var w=(0,qe.Z)(S);function S(){return(0,et.Z)(this,S),w.apply(this,arguments)}return(0,G.Z)(S,[{key:"render",value:function(){var e=this.props,n=e.title,t=e.attribute,i=e.elementRef,r=(0,X.Z)(e,$e),o=(0,ze.Z)(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,xe.ZP)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(U.Z.Item,(0,I.Z)({},t,{title:typeof n=="string"?n:void 0},o,{ref:i}))}}]),S}(u.Component),Ue=u.forwardRef(function(s,w){var S=s.style,a=s.className,e=s.eventKey,n=s.warnKey,t=s.disabled,i=s.itemIcon,r=s.children,o=s.role,d=s.onMouseEnter,C=s.onMouseLeave,m=s.onClick,f=s.onKeyDown,v=s.onFocus,x=(0,X.Z)(s,Gt),B=nt(e),W=u.useContext(K),Ce=W.prefixCls,te=W.onItemClick,le=W.disabled,Oe=W.overflowDisabled,pe=W.itemIcon,Qe=W.selectedKeys,it=W.onActive,Z=u.useContext(E),Ae=Z._internalRenderMenuItem,Xe="".concat(Ce,"-item"),ut=u.useRef(),xt=u.useRef(),yt=le||t,Et=(0,at.x1)(w,xt),Rt=F(e),ft=function(Yt){return{key:e,keyPath:(0,tt.Z)(Rt).reverse(),item:ut.current,domEvent:Yt}},ht=i||pe,ot=Fe(e,yt,d,C),Vt=ot.active,fn=(0,X.Z)(ot,Ee),dn=Qe.includes(e),tn=ae(Rt.length),gn=function(Yt){if(!yt){var nn=ft(Yt);m==null||m(_e(nn)),te(nn)}},jt=function(Yt){if(f==null||f(Yt),Yt.which===J.Z.ENTER){var nn=ft(Yt);m==null||m(_e(nn)),te(nn)}},Jt=function(Yt){it(e),v==null||v(Yt)},xn={};s.role==="option"&&(xn["aria-selected"]=dn);var cn=u.createElement(Ie,(0,I.Z)({ref:ut,elementRef:Et,role:o===null?"none":o||"menuitem",tabIndex:t?null:-1,"data-menu-id":Oe&&B?null:B},(0,ze.Z)(x,["extra"]),fn,xn,{component:"li","aria-disabled":t,style:(0,g.Z)((0,g.Z)({},tn),S),className:ue()(Xe,(0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(Xe,"-active"),Vt),"".concat(Xe,"-selected"),dn),"".concat(Xe,"-disabled"),yt),a),onClick:gn,onKeyDown:jt,onFocus:Jt}),r,u.createElement(ct,{props:(0,g.Z)((0,g.Z)({},s),{},{isSelected:dn}),icon:ht}));return Ae&&(cn=Ae(cn,s,{selected:dn})),cn});function It(s,w){var S=s.eventKey,a=c(),e=F(S);return u.useEffect(function(){if(a)return a.registerPath(S,e),function(){a.unregisterPath(S,e)}},[e]),a?null:u.createElement(Ue,(0,I.Z)({},s,{ref:w}))}var ge=u.forwardRef(It),Je=["className","children"],be=function(w,S){var a=w.className,e=w.children,n=(0,X.Z)(w,Je),t=u.useContext(K),i=t.prefixCls,r=t.mode,o=t.rtl;return u.createElement("ul",(0,I.Z)({className:ue()(i,o&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat(r==="inline"?"inline":"vertical"),a),role:"menu"},n,{"data-menu-list":!0,ref:S}),e)},Tt=u.forwardRef(be);Tt.displayName="SubMenuList";var Mt=Tt,Dt=l(11592);function Te(s,w){return(0,Dt.Z)(s).map(function(S,a){if(u.isValidElement(S)){var e,n,t=S.key,i=(e=(n=S.props)===null||n===void 0?void 0:n.eventKey)!==null&&e!==void 0?e:t,r=i==null;r&&(i="tmp_key-".concat([].concat((0,tt.Z)(w),[a]).join("-")));var o={key:i,eventKey:i};return u.cloneElement(S,o)}return S})}var sn=l(65966),mt={adjustX:1,adjustY:1},ln={topLeft:{points:["bl","tl"],overflow:mt},topRight:{points:["br","tr"],overflow:mt},bottomLeft:{points:["tl","bl"],overflow:mt},bottomRight:{points:["tr","br"],overflow:mt},leftTop:{points:["tr","tl"],overflow:mt},leftBottom:{points:["br","bl"],overflow:mt},rightTop:{points:["tl","tr"],overflow:mt},rightBottom:{points:["bl","br"],overflow:mt}},gt={topLeft:{points:["bl","tl"],overflow:mt},topRight:{points:["br","tr"],overflow:mt},bottomLeft:{points:["tl","bl"],overflow:mt},bottomRight:{points:["tr","br"],overflow:mt},rightTop:{points:["tr","tl"],overflow:mt},rightBottom:{points:["br","bl"],overflow:mt},leftTop:{points:["tl","tr"],overflow:mt},leftBottom:{points:["bl","br"],overflow:mt}},Ot=null;function At(s,w,S){if(w)return w;if(S)return S[s]||S.other}var Wt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function zt(s){var w=s.prefixCls,S=s.visible,a=s.children,e=s.popup,n=s.popupStyle,t=s.popupClassName,i=s.popupOffset,r=s.disabled,o=s.mode,d=s.onVisibleChange,C=u.useContext(K),m=C.getPopupContainer,f=C.rtl,v=C.subMenuOpenDelay,x=C.subMenuCloseDelay,B=C.builtinPlacements,W=C.triggerSubMenuAction,Ce=C.forceSubMenuRender,te=C.rootClassName,le=C.motion,Oe=C.defaultMotions,pe=u.useState(!1),Qe=(0,Y.Z)(pe,2),it=Qe[0],Z=Qe[1],Ae=f?(0,g.Z)((0,g.Z)({},gt),B):(0,g.Z)((0,g.Z)({},ln),B),Xe=Wt[o],ut=At(o,le,Oe),xt=u.useRef(ut);o!=="inline"&&(xt.current=ut);var yt=(0,g.Z)((0,g.Z)({},xt.current),{},{leavedClassName:"".concat(w,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Et=u.useRef();return u.useEffect(function(){return Et.current=(0,re.Z)(function(){Z(S)}),function(){re.Z.cancel(Et.current)}},[S]),u.createElement(sn.Z,{prefixCls:w,popupClassName:ue()("".concat(w,"-popup"),(0,P.Z)({},"".concat(w,"-rtl"),f),t,te),stretch:o==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:Ae,popupPlacement:Xe,popupVisible:it,popup:e,popupStyle:n,popupAlign:i&&{offset:i},action:r?[]:[W],mouseEnterDelay:v,mouseLeaveDelay:x,onPopupVisibleChange:d,forceRender:Ce,popupMotion:yt,fresh:!0},a)}var en=l(77900);function _t(s){var w=s.id,S=s.open,a=s.keyPath,e=s.children,n="inline",t=u.useContext(K),i=t.prefixCls,r=t.forceSubMenuRender,o=t.motion,d=t.defaultMotions,C=t.mode,m=u.useRef(!1);m.current=C===n;var f=u.useState(!m.current),v=(0,Y.Z)(f,2),x=v[0],B=v[1],W=m.current?S:!1;u.useEffect(function(){m.current&&B(!1)},[C]);var Ce=(0,g.Z)({},At(n,o,d));a.length>1&&(Ce.motionAppear=!1);var te=Ce.onVisibleChanged;return Ce.onVisibleChanged=function(le){return!m.current&&!le&&B(!0),te==null?void 0:te(le)},x?null:u.createElement(L,{mode:n,locked:!m.current},u.createElement(en.default,(0,I.Z)({visible:W},Ce,{forceRender:r,removeOnLeave:!1,leavedClassName:"".concat(i,"-hidden")}),function(le){var Oe=le.className,pe=le.style;return u.createElement(Mt,{id:w,className:Oe,style:pe},e)}))}var Lt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Nt=["active"],je=u.forwardRef(function(s,w){var S=s.style,a=s.className,e=s.title,n=s.eventKey,t=s.warnKey,i=s.disabled,r=s.internalPopupClose,o=s.children,d=s.itemIcon,C=s.expandIcon,m=s.popupClassName,f=s.popupOffset,v=s.popupStyle,x=s.onClick,B=s.onMouseEnter,W=s.onMouseLeave,Ce=s.onTitleClick,te=s.onTitleMouseEnter,le=s.onTitleMouseLeave,Oe=(0,X.Z)(s,Lt),pe=nt(n),Qe=u.useContext(K),it=Qe.prefixCls,Z=Qe.mode,Ae=Qe.openKeys,Xe=Qe.disabled,ut=Qe.overflowDisabled,xt=Qe.activeKey,yt=Qe.selectedKeys,Et=Qe.itemIcon,Rt=Qe.expandIcon,ft=Qe.onItemClick,ht=Qe.onOpenChange,ot=Qe.onActive,Vt=u.useContext(E),fn=Vt._internalRenderSubMenuItem,dn=u.useContext(de),tn=dn.isSubPathKey,gn=F(),jt="".concat(it,"-submenu"),Jt=Xe||i,xn=u.useRef(),cn=u.useRef(),pn=d!=null?d:Et,Yt=C!=null?C:Rt,nn=Ae.includes(n),yn=!ut&&nn,Pn=tn(yt,n),an=Fe(n,Jt,te,le),vn=an.active,Nn=(0,X.Z)(an,Nt),In=u.useState(!1),Ln=(0,Y.Z)(In,2),Bn=Ln[0],kn=Ln[1],An=function(on){Jt||kn(on)},Vn=function(on){An(!0),B==null||B({key:n,domEvent:on})},jn=function(on){An(!1),W==null||W({key:n,domEvent:on})},Wn=u.useMemo(function(){return vn||(Z!=="inline"?Bn||tn([xt],n):!1)},[Z,vn,xt,Bn,n,tn]),Cn=ae(gn.length),Yn=function(on){Jt||(Ce==null||Ce({key:n,domEvent:on}),Z==="inline"&&ht(n,!nn))},Xn=se(function(Ht){x==null||x(_e(Ht)),ft(Ht)}),Fn=function(on){Z!=="inline"&&ht(n,on)},Un=function(){ot(n)},Hn=pe&&"".concat(pe,"-popup"),zn=u.useMemo(function(){return u.createElement(ct,{icon:Z!=="horizontal"?Yt:void 0,props:(0,g.Z)((0,g.Z)({},s),{},{isOpen:yn,isSubMenu:!0})},u.createElement("i",{className:"".concat(jt,"-arrow")}))},[Z,Yt,s,yn,jt]),rn=u.createElement("div",(0,I.Z)({role:"menuitem",style:Cn,className:"".concat(jt,"-title"),tabIndex:Jt?null:-1,ref:xn,title:typeof e=="string"?e:null,"data-menu-id":ut&&pe?null:pe,"aria-expanded":yn,"aria-haspopup":!0,"aria-controls":Hn,"aria-disabled":Jt,onClick:Yn,onFocus:Un},Nn),e,zn),En=u.useRef(Z);if(Z!=="inline"&&gn.length>1?En.current="vertical":En.current=Z,!ut){var $n=En.current;rn=u.createElement(zt,{mode:$n,prefixCls:jt,visible:!r&&yn&&Z!=="inline",popupClassName:m,popupOffset:f,popupStyle:v,popup:u.createElement(L,{mode:$n==="horizontal"?"vertical":$n},u.createElement(Mt,{id:Hn,ref:cn},o)),disabled:Jt,onVisibleChange:Fn},rn)}var qt=u.createElement(U.Z.Item,(0,I.Z)({ref:w,role:"none"},Oe,{component:"li",style:S,className:ue()(jt,"".concat(jt,"-").concat(Z),a,(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(jt,"-open"),yn),"".concat(jt,"-active"),Wn),"".concat(jt,"-selected"),Pn),"".concat(jt,"-disabled"),Jt)),onMouseEnter:Vn,onMouseLeave:jn}),rn,!ut&&u.createElement(_t,{id:Hn,open:yn,keyPath:gn},o));return fn&&(qt=fn(qt,s,{selected:Pn,active:Wn,open:yn,disabled:Jt})),u.createElement(L,{onItemClick:Xn,mode:Z==="horizontal"?"vertical":Z,itemIcon:pn,expandIcon:Yt},qt)}),Le=u.forwardRef(function(s,w){var S=s.eventKey,a=s.children,e=F(S),n=Te(a,e),t=c();u.useEffect(function(){if(t)return t.registerPath(S,e),function(){t.unregisterPath(S,e)}},[e]);var i;return t?i=n:i=u.createElement(je,(0,I.Z)({ref:w},s),n),u.createElement(ne.Provider,{value:e},i)}),pt=Le,Zt=l(93664);function Ut(s){var w=s.className,S=s.style,a=u.useContext(K),e=a.prefixCls,n=c();return n?null:u.createElement("li",{role:"separator",className:ue()("".concat(e,"-item-divider"),w),style:S})}var wn=["className","title","eventKey","children"],Qt=u.forwardRef(function(s,w){var S=s.className,a=s.title,e=s.eventKey,n=s.children,t=(0,X.Z)(s,wn),i=u.useContext(K),r=i.prefixCls,o="".concat(r,"-item-group");return u.createElement("li",(0,I.Z)({ref:w,role:"presentation"},t,{onClick:function(C){return C.stopPropagation()},className:ue()(o,S)}),u.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:typeof a=="string"?a:void 0},a),u.createElement("ul",{role:"group",className:"".concat(o,"-list")},n))}),mn=u.forwardRef(function(s,w){var S=s.eventKey,a=s.children,e=F(S),n=Te(a,e),t=c();return t?n:u.createElement(Qt,(0,I.Z)({ref:w},(0,ze.Z)(s,["warnKey"])),n)}),Dn=mn,vt=["label","children","key","type","extra"];function un(s,w,S){var a=w.item,e=w.group,n=w.submenu,t=w.divider;return(s||[]).map(function(i,r){if(i&&(0,Zt.Z)(i)==="object"){var o=i,d=o.label,C=o.children,m=o.key,f=o.type,v=o.extra,x=(0,X.Z)(o,vt),B=m!=null?m:"tmp-".concat(r);return C||f==="group"?f==="group"?u.createElement(e,(0,I.Z)({key:B},x,{title:d}),un(C,w,S)):u.createElement(n,(0,I.Z)({key:B},x,{title:d}),un(C,w,S)):f==="divider"?u.createElement(t,(0,I.Z)({key:B},x)):u.createElement(a,(0,I.Z)({key:B},x,{extra:v}),d,(!!v||v===0)&&u.createElement("span",{className:"".concat(S,"-item-extra")},v))}return null}).filter(function(i){return i})}function Ft(s,w,S,a,e){var n=s,t=(0,g.Z)({divider:Ut,item:ge,group:Dn,submenu:pt},a);return w&&(n=un(w,t,e)),Te(n,S)}var Zn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Kt=[],bn=u.forwardRef(function(s,w){var S,a=s,e=a.prefixCls,n=e===void 0?"rc-menu":e,t=a.rootClassName,i=a.style,r=a.className,o=a.tabIndex,d=o===void 0?0:o,C=a.items,m=a.children,f=a.direction,v=a.id,x=a.mode,B=x===void 0?"vertical":x,W=a.inlineCollapsed,Ce=a.disabled,te=a.disabledOverflow,le=a.subMenuOpenDelay,Oe=le===void 0?.1:le,pe=a.subMenuCloseDelay,Qe=pe===void 0?.1:pe,it=a.forceSubMenuRender,Z=a.defaultOpenKeys,Ae=a.openKeys,Xe=a.activeKey,ut=a.defaultActiveFirst,xt=a.selectable,yt=xt===void 0?!0:xt,Et=a.multiple,Rt=Et===void 0?!1:Et,ft=a.defaultSelectedKeys,ht=a.selectedKeys,ot=a.onSelect,Vt=a.onDeselect,fn=a.inlineIndent,dn=fn===void 0?24:fn,tn=a.motion,gn=a.defaultMotions,jt=a.triggerSubMenuAction,Jt=jt===void 0?"hover":jt,xn=a.builtinPlacements,cn=a.itemIcon,pn=a.expandIcon,Yt=a.overflowedIndicator,nn=Yt===void 0?"...":Yt,yn=a.overflowedIndicatorPopupClassName,Pn=a.getPopupContainer,an=a.onClick,vn=a.onOpenChange,Nn=a.onKeyDown,In=a.openAnimation,Ln=a.openTransitionName,Bn=a._internalRenderMenuItem,kn=a._internalRenderSubMenuItem,An=a._internalComponents,Vn=(0,X.Z)(a,Zn),jn=u.useMemo(function(){return[Ft(m,C,Kt,An,n),Ft(m,C,Kt,{},n)]},[m,C,An]),Wn=(0,Y.Z)(jn,2),Cn=Wn[0],Yn=Wn[1],Xn=u.useState(!1),Fn=(0,Y.Z)(Xn,2),Un=Fn[0],Hn=Fn[1],zn=u.useRef(),rn=We(v),En=f==="rtl",$n=(0,ve.Z)(Z,{value:Ae,postState:function(St){return St||Kt}}),qt=(0,Y.Z)($n,2),Ht=qt[0],on=qt[1],Sn=function(St){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mn(){on(St),vn==null||vn(St)}$t?(0,z.flushSync)(Mn):Mn()},Kn=u.useState(Ht),Gn=(0,Y.Z)(Kn,2),Qn=Gn[0],na=Gn[1],_n=u.useRef(!1),oe=u.useMemo(function(){return(B==="inline"||B==="vertical")&&W?["vertical",W]:[B,!1]},[B,W]),Pe=(0,Y.Z)(oe,2),bt=Pe[0],Bt=Pe[1],kt=bt==="inline",qn=u.useState(bt),ea=(0,Y.Z)(qn,2),Tn=ea[0],ta=ea[1],Ea=u.useState(Bt),da=(0,Y.Z)(Ea,2),Sa=da[0],Ma=da[1];u.useEffect(function(){ta(bt),Ma(Bt),_n.current&&(kt?on(Qn):Sn(Kt))},[bt,Bt]);var Ra=u.useState(0),va=(0,Y.Z)(Ra,2),ia=va[0],Da=va[1],la=ia>=Cn.length-1||Tn!=="horizontal"||te;u.useEffect(function(){kt&&na(Ht)},[Ht]),u.useEffect(function(){return _n.current=!0,function(){_n.current=!1}},[]);var Jn=ke(),ha=Jn.registerPath,ma=Jn.unregisterPath,Na=Jn.refreshOverflowKeys,ga=Jn.isSubPathKey,Za=Jn.getKeyPath,pa=Jn.getKeys,Pa=Jn.getSubPathKeys,Ia=u.useMemo(function(){return{registerPath:ha,unregisterPath:ma}},[ha,ma]),Ta=u.useMemo(function(){return{isSubPathKey:ga}},[ga]);u.useEffect(function(){Na(la?Kt:Cn.slice(ia+1).map(function(Xt){return Xt.key}))},[ia,la]);var Oa=(0,ve.Z)(Xe||ut&&((S=Cn[0])===null||S===void 0?void 0:S.key),{value:Xe}),ya=(0,Y.Z)(Oa,2),aa=ya[0],ua=ya[1],Aa=se(function(Xt){ua(Xt)}),za=se(function(){ua(void 0)});(0,u.useImperativeHandle)(w,function(){return{list:zn.current,focus:function(St){var $t,Mn=pa(),Rn=O(Mn,rn),sa=Rn.elements,ca=Rn.key2element,Ua=Rn.element2key,wa=N(zn.current,sa),xa=aa!=null?aa:wa[0]?Ua.get(wa[0]):($t=Cn.find(function(ja){return!ja.props.disabled}))===null||$t===void 0?void 0:$t.key,ra=ca.get(xa);if(xa&&ra){var fa;ra==null||(fa=ra.focus)===null||fa===void 0||fa.call(ra,St)}}}});var La=(0,ve.Z)(ft||[],{value:ht,postState:function(St){return Array.isArray(St)?St:St==null?Kt:[St]}}),ba=(0,Y.Z)(La,2),oa=ba[0],Ba=ba[1],ka=function(St){if(yt){var $t=St.key,Mn=oa.includes($t),Rn;Rt?Mn?Rn=oa.filter(function(ca){return ca!==$t}):Rn=[].concat((0,tt.Z)(oa),[$t]):Rn=[$t],Ba(Rn);var sa=(0,g.Z)((0,g.Z)({},St),{},{selectedKeys:Rn});Mn?Vt==null||Vt(sa):ot==null||ot(sa)}!Rt&&Ht.length&&Tn!=="inline"&&Sn(Kt)},Wa=se(function(Xt){an==null||an(_e(Xt)),ka(Xt)}),Ca=se(function(Xt,St){var $t=Ht.filter(function(Rn){return Rn!==Xt});if(St)$t.push(Xt);else if(Tn!=="inline"){var Mn=Pa(Xt);$t=$t.filter(function(Rn){return!Mn.has(Rn)})}(0,Be.Z)(Ht,$t,!0)||Sn($t,!0)}),Fa=function(St,$t){var Mn=$t!=null?$t:!Ht.includes(St);Ca(St,Mn)},Ha=V(Tn,aa,En,rn,zn,pa,Za,ua,Fa,Nn);u.useEffect(function(){Hn(!0)},[]);var $a=u.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:kn}},[Bn,kn]),Ka=Tn!=="horizontal"||te?Cn:Cn.map(function(Xt,St){return u.createElement(L,{key:Xt.key,overflowDisabled:St>ia},Xt)}),Va=u.createElement(U.Z,(0,I.Z)({id:v,ref:zn,prefixCls:"".concat(n,"-overflow"),component:"ul",itemComponent:ge,className:ue()(n,"".concat(n,"-root"),"".concat(n,"-").concat(Tn),r,(0,P.Z)((0,P.Z)({},"".concat(n,"-inline-collapsed"),Sa),"".concat(n,"-rtl"),En),t),dir:f,style:i,role:"menu",tabIndex:d,data:Ka,renderRawItem:function(St){return St},renderRawRest:function(St){var $t=St.length,Mn=$t?Cn.slice(-$t):null;return u.createElement(pt,{eventKey:ye,title:nn,disabled:la,internalPopupClose:$t===0,popupClassName:yn},Mn)},maxCount:Tn!=="horizontal"||te?U.Z.INVALIDATE:U.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(St){Da(St)},onKeyDown:Ha},Vn));return u.createElement(E.Provider,{value:$a},u.createElement(rt.Provider,{value:rn},u.createElement(L,{prefixCls:n,rootClassName:t,mode:Tn,openKeys:Ht,rtl:En,disabled:Ce,motion:Un?tn:null,defaultMotions:Un?gn:null,activeKey:aa,onActive:Aa,onInactive:za,selectedKeys:oa,inlineIndent:dn,subMenuOpenDelay:Oe,subMenuCloseDelay:Qe,forceSubMenuRender:it,builtinPlacements:xn,triggerSubMenuAction:Jt,getPopupContainer:Pn,itemIcon:cn,expandIcon:pn,onItemClick:Wa,onOpenChange:Ca},u.createElement(de.Provider,{value:Ta},Va),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(A.Provider,{value:Ia},Yn)))))}),On=bn,Ze=On;Ze.Item=ge,Ze.SubMenu=pt,Ze.ItemGroup=Dn,Ze.Divider=Ut;var Ye=Ze},11780:function(hn,st,l){"use strict";l.d(st,{Z:function(){return Q}});var I=l(14809),P=l(20439),g=l(50298),tt=l(62646),Y=l(59301),X=l(92310),H=l.n(X),ue=l(29301),U=l(34280),ve=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Be=void 0;function xe(b,$){var he=b.prefixCls,J=b.invalidate,re=b.item,ce=b.renderItem,Se=b.responsive,ee=b.responsiveDisabled,j=b.registerSize,we=b.itemKey,Ne=b.className,Re=b.style,Me=b.children,dt=b.display,lt=b.order,wt=b.component,h=wt===void 0?"div":wt,N=(0,tt.Z)(b,ve),y=Se&&!dt;function O(me){j(we,me)}Y.useEffect(function(){return function(){O(null)}},[]);var V=ce&&re!==Be?ce(re,{index:lt}):Me,_;J||(_={opacity:y?0:1,height:y?0:Be,overflowY:y?"hidden":Be,order:Se?lt:Be,pointerEvents:y?"none":Be,position:y?"absolute":Be});var ie={};y&&(ie["aria-hidden"]=!0);var fe=Y.createElement(h,(0,I.Z)({className:H()(!J&&he,Ne),style:(0,P.Z)((0,P.Z)({},_),Re)},ie,N,{ref:$}),V);return Se&&(fe=Y.createElement(ue.Z,{onResize:function(ye){var ke=ye.offsetWidth;O(ke)},disabled:ee},fe)),fe}var u=Y.forwardRef(xe);u.displayName="Item";var z=u,rt=l(6089),Ct=l(4676),nt=l(16089);function De(b){if(typeof MessageChannel=="undefined")(0,nt.Z)(b);else{var $=new MessageChannel;$.port1.onmessage=function(){return b()},$.port2.postMessage(void 0)}}function He(){var b=Y.useRef(null),$=function(J){b.current||(b.current=[],De(function(){(0,Ct.unstable_batchedUpdates)(function(){b.current.forEach(function(re){re()}),b.current=null})})),b.current.push(J)};return $}function K(b,$){var he=Y.useState($),J=(0,g.Z)(he,2),re=J[0],ce=J[1],Se=(0,rt.Z)(function(ee){b(function(){ce(ee)})});return[re,Se]}var T=Y.createContext(null),L=["component"],k=["className"],A=["className"],c=function($,he){var J=Y.useContext(T);if(!J){var re=$.component,ce=re===void 0?"div":re,Se=(0,tt.Z)($,L);return Y.createElement(ce,(0,I.Z)({},Se,{ref:he}))}var ee=J.className,j=(0,tt.Z)(J,k),we=$.className,Ne=(0,tt.Z)($,A);return Y.createElement(T.Provider,{value:null},Y.createElement(z,(0,I.Z)({ref:he,className:H()(ee,we)},j,Ne)))},ne=Y.forwardRef(c);ne.displayName="RawItem";var F=ne,de=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ke="responsive",E="invalidate";function p(b){return"+ ".concat(b.length," ...")}function D(b,$){var he=b.prefixCls,J=he===void 0?"rc-overflow":he,re=b.data,ce=re===void 0?[]:re,Se=b.renderItem,ee=b.renderRawItem,j=b.itemKey,we=b.itemWidth,Ne=we===void 0?10:we,Re=b.ssr,Me=b.style,dt=b.className,lt=b.maxCount,wt=b.renderRest,h=b.renderRawRest,N=b.suffix,y=b.component,O=y===void 0?"div":y,V=b.itemComponent,_=b.onVisibleChange,ie=(0,tt.Z)(b,de),fe=Re==="full",me=He(),ye=K(me,null),ke=(0,g.Z)(ye,2),se=ke[0],Ge=ke[1],q=se||0,We=K(me,new Map),et=(0,g.Z)(We,2),G=et[0],Ve=et[1],qe=K(me,0),ze=(0,g.Z)(qe,2),at=ze[0],Fe=ze[1],ae=K(me,0),ct=(0,g.Z)(ae,2),Pt=ct[0],_e=ct[1],$e=K(me,0),Gt=(0,g.Z)($e,2),Ee=Gt[0],Ie=Gt[1],Ue=(0,Y.useState)(null),It=(0,g.Z)(Ue,2),ge=It[0],Je=It[1],be=(0,Y.useState)(null),Tt=(0,g.Z)(be,2),Mt=Tt[0],Dt=Tt[1],Te=Y.useMemo(function(){return Mt===null&&fe?Number.MAX_SAFE_INTEGER:Mt||0},[Mt,se]),sn=(0,Y.useState)(!1),mt=(0,g.Z)(sn,2),ln=mt[0],gt=mt[1],Ot="".concat(J,"-item"),At=Math.max(at,Pt),Wt=lt===Ke,zt=ce.length&&Wt,en=lt===E,_t=zt||typeof lt=="number"&&ce.length>lt,Lt=(0,Y.useMemo)(function(){var Ze=ce;return zt?se===null&&fe?Ze=ce:Ze=ce.slice(0,Math.min(ce.length,q/Ne)):typeof lt=="number"&&(Ze=ce.slice(0,lt)),Ze},[ce,Ne,se,lt,zt]),Nt=(0,Y.useMemo)(function(){return zt?ce.slice(Te+1):ce.slice(Lt.length)},[ce,Lt,zt,Te]),je=(0,Y.useCallback)(function(Ze,Ye){var s;return typeof j=="function"?j(Ze):(s=j&&(Ze==null?void 0:Ze[j]))!==null&&s!==void 0?s:Ye},[j]),Le=(0,Y.useCallback)(Se||function(Ze){return Ze},[Se]);function pt(Ze,Ye,s){Mt===Ze&&(Ye===void 0||Ye===ge)||(Dt(Ze),s||(gt(Ze<ce.length-1),_==null||_(Ze)),Ye!==void 0&&Je(Ye))}function Zt(Ze,Ye){Ge(Ye.clientWidth)}function Ut(Ze,Ye){Ve(function(s){var w=new Map(s);return Ye===null?w.delete(Ze):w.set(Ze,Ye),w})}function wn(Ze,Ye){_e(Ye),Fe(Pt)}function Qt(Ze,Ye){Ie(Ye)}function mn(Ze){return G.get(je(Lt[Ze],Ze))}(0,U.Z)(function(){if(q&&typeof At=="number"&&Lt){var Ze=Ee,Ye=Lt.length,s=Ye-1;if(!Ye){pt(0,null);return}for(var w=0;w<Ye;w+=1){var S=mn(w);if(fe&&(S=S||0),S===void 0){pt(w-1,void 0,!0);break}if(Ze+=S,s===0&&Ze<=q||w===s-1&&Ze+mn(s)<=q){pt(s,null);break}else if(Ze+At>q){pt(w-1,Ze-S-Ee+Pt);break}}N&&mn(0)+Ee>q&&Je(null)}},[q,G,Pt,Ee,je,Lt]);var Dn=ln&&!!Nt.length,vt={};ge!==null&&zt&&(vt={position:"absolute",left:ge,top:0});var un={prefixCls:Ot,responsive:zt,component:V,invalidate:en},Ft=ee?function(Ze,Ye){var s=je(Ze,Ye);return Y.createElement(T.Provider,{key:s,value:(0,P.Z)((0,P.Z)({},un),{},{order:Ye,item:Ze,itemKey:s,registerSize:Ut,display:Ye<=Te})},ee(Ze,Ye))}:function(Ze,Ye){var s=je(Ze,Ye);return Y.createElement(z,(0,I.Z)({},un,{order:Ye,key:s,item:Ze,renderItem:Le,itemKey:s,registerSize:Ut,display:Ye<=Te}))},Zn={order:Dn?Te:Number.MAX_SAFE_INTEGER,className:"".concat(Ot,"-rest"),registerSize:wn,display:Dn},Kt=wt||p,bn=h?Y.createElement(T.Provider,{value:(0,P.Z)((0,P.Z)({},un),Zn)},h(Nt)):Y.createElement(z,(0,I.Z)({},un,Zn),typeof Kt=="function"?Kt(Nt):Kt),On=Y.createElement(O,(0,I.Z)({className:H()(!en&&J,dt),style:Me,ref:$},ie),Lt.map(Ft),_t?bn:null,N&&Y.createElement(z,(0,I.Z)({},un,{responsive:Wt,responsiveDisabled:!zt,order:Te,className:"".concat(Ot,"-suffix"),registerSize:Qt,display:!0,style:vt}),N));return Wt?Y.createElement(ue.Z,{onResize:Zt,disabled:!zt},On):On}var M=Y.forwardRef(D);M.displayName="Overflow",M.Item=F,M.RESPONSIVE=Ke,M.INVALIDATE=E;var R=M,Q=R},29301:function(hn,st,l){"use strict";l.d(st,{Z:function(){return E}});var I=l(14809),P=l(59301),g=l(11592),tt=l(48736),Y=l(20439),X=l(93664),H=l(76846),ue=l(8654),U=P.createContext(null);function ve(p){var D=p.children,M=p.onBatchResize,R=P.useRef(0),Q=P.useRef([]),b=P.useContext(U),$=P.useCallback(function(he,J,re){R.current+=1;var ce=R.current;Q.current.push({size:he,element:J,data:re}),Promise.resolve().then(function(){ce===R.current&&(M==null||M(Q.current),Q.current=[])}),b==null||b(he,J,re)},[M,b]);return P.createElement(U.Provider,{value:$},D)}var Be=l(76374),xe=new Map;function u(p){p.forEach(function(D){var M,R=D.target;(M=xe.get(R))===null||M===void 0||M.forEach(function(Q){return Q(R)})})}var z=new Be.Z(u),rt=null,Ct=null;function nt(p,D){xe.has(p)||(xe.set(p,new Set),z.observe(p)),xe.get(p).add(D)}function De(p,D){xe.has(p)&&(xe.get(p).delete(D),xe.get(p).size||(z.unobserve(p),xe.delete(p)))}var He=l(99153),K=l(84851),T=l(19257),L=l(93046),k=function(p){(0,T.Z)(M,p);var D=(0,L.Z)(M);function M(){return(0,He.Z)(this,M),D.apply(this,arguments)}return(0,K.Z)(M,[{key:"render",value:function(){return this.props.children}}]),M}(P.Component);function A(p,D){var M=p.children,R=p.disabled,Q=P.useRef(null),b=P.useRef(null),$=P.useContext(U),he=typeof M=="function",J=he?M(Q):M,re=P.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ce=!he&&P.isValidElement(J)&&(0,ue.Yr)(J),Se=ce?(0,ue.C4)(J):null,ee=(0,ue.x1)(Se,Q),j=function(){var Me;return(0,H.ZP)(Q.current)||(Q.current&&(0,X.Z)(Q.current)==="object"?(0,H.ZP)((Me=Q.current)===null||Me===void 0?void 0:Me.nativeElement):null)||(0,H.ZP)(b.current)};P.useImperativeHandle(D,function(){return j()});var we=P.useRef(p);we.current=p;var Ne=P.useCallback(function(Re){var Me=we.current,dt=Me.onResize,lt=Me.data,wt=Re.getBoundingClientRect(),h=wt.width,N=wt.height,y=Re.offsetWidth,O=Re.offsetHeight,V=Math.floor(h),_=Math.floor(N);if(re.current.width!==V||re.current.height!==_||re.current.offsetWidth!==y||re.current.offsetHeight!==O){var ie={width:V,height:_,offsetWidth:y,offsetHeight:O};re.current=ie;var fe=y===Math.round(h)?h:y,me=O===Math.round(N)?N:O,ye=(0,Y.Z)((0,Y.Z)({},ie),{},{offsetWidth:fe,offsetHeight:me});$==null||$(ye,Re,lt),dt&&Promise.resolve().then(function(){dt(ye,Re)})}},[]);return P.useEffect(function(){var Re=j();return Re&&!R&&nt(Re,Ne),function(){return De(Re,Ne)}},[Q.current,R]),P.createElement(k,{ref:b},ce?P.cloneElement(J,{ref:ee}):J)}var c=P.forwardRef(A),ne=c,F="rc-observer-key";function de(p,D){var M=p.children,R=typeof M=="function"?[M]:(0,g.Z)(M);return R.map(function(Q,b){var $=(Q==null?void 0:Q.key)||"".concat(F,"-").concat(b);return P.createElement(ne,(0,I.Z)({},p,{key:$,ref:b===0?D:void 0}),Q)})}var Ke=P.forwardRef(de);Ke.Collection=ve;var E=Ke},22711:function(hn,st,l){"use strict";l.r(st),l.d(st,{ResizableTextArea:function(){return Ke},default:function(){return M}});var I=l(14809),P=l(4635),g=l(20439),tt=l(95190),Y=l(50298),X=l(62646),H=l(92310),ue=l.n(H),U=l(36901),ve=l(66003),Be=l(30292),xe=l(18929),u=l(59301),z=l(93664),rt=l(29301),Ct=l(34280),nt=l(16089),De=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,He=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],K={},T;function L(R){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=R.getAttribute("id")||R.getAttribute("data-reactid")||R.getAttribute("name");if(Q&&K[b])return K[b];var $=window.getComputedStyle(R),he=$.getPropertyValue("box-sizing")||$.getPropertyValue("-moz-box-sizing")||$.getPropertyValue("-webkit-box-sizing"),J=parseFloat($.getPropertyValue("padding-bottom"))+parseFloat($.getPropertyValue("padding-top")),re=parseFloat($.getPropertyValue("border-bottom-width"))+parseFloat($.getPropertyValue("border-top-width")),ce=He.map(function(ee){return"".concat(ee,":").concat($.getPropertyValue(ee))}).join(";"),Se={sizingStyle:ce,paddingSize:J,borderSize:re,boxSizing:he};return Q&&b&&(K[b]=Se),Se}function k(R){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,$=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;T||(T=document.createElement("textarea"),T.setAttribute("tab-index","-1"),T.setAttribute("aria-hidden","true"),T.setAttribute("name","hiddenTextarea"),document.body.appendChild(T)),R.getAttribute("wrap")?T.setAttribute("wrap",R.getAttribute("wrap")):T.removeAttribute("wrap");var he=L(R,Q),J=he.paddingSize,re=he.borderSize,ce=he.boxSizing,Se=he.sizingStyle;T.setAttribute("style","".concat(Se,";").concat(De)),T.value=R.value||R.placeholder||"";var ee=void 0,j=void 0,we,Ne=T.scrollHeight;if(ce==="border-box"?Ne+=re:ce==="content-box"&&(Ne-=J),b!==null||$!==null){T.value=" ";var Re=T.scrollHeight-J;b!==null&&(ee=Re*b,ce==="border-box"&&(ee=ee+J+re),Ne=Math.max(ee,Ne)),$!==null&&(j=Re*$,ce==="border-box"&&(j=j+J+re),we=Ne>j?"":"hidden",Ne=Math.min(j,Ne))}var Me={height:Ne,overflowY:we,resize:"none"};return ee&&(Me.minHeight=ee),j&&(Me.maxHeight=j),Me}var A=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],c=0,ne=1,F=2,de=u.forwardRef(function(R,Q){var b=R,$=b.prefixCls,he=b.defaultValue,J=b.value,re=b.autoSize,ce=b.onResize,Se=b.className,ee=b.style,j=b.disabled,we=b.onChange,Ne=b.onInternalAutoSize,Re=(0,X.Z)(b,A),Me=(0,xe.Z)(he,{value:J,postState:function(ct){return ct!=null?ct:""}}),dt=(0,Y.Z)(Me,2),lt=dt[0],wt=dt[1],h=function(ct){wt(ct.target.value),we==null||we(ct)},N=u.useRef();u.useImperativeHandle(Q,function(){return{textArea:N.current}});var y=u.useMemo(function(){return re&&(0,z.Z)(re)==="object"?[re.minRows,re.maxRows]:[]},[re]),O=(0,Y.Z)(y,2),V=O[0],_=O[1],ie=!!re,fe=function(){try{if(document.activeElement===N.current){var ct=N.current,Pt=ct.selectionStart,_e=ct.selectionEnd,$e=ct.scrollTop;N.current.setSelectionRange(Pt,_e),N.current.scrollTop=$e}}catch(Gt){}},me=u.useState(F),ye=(0,Y.Z)(me,2),ke=ye[0],se=ye[1],Ge=u.useState(),q=(0,Y.Z)(Ge,2),We=q[0],et=q[1],G=function(){se(c)};(0,Ct.Z)(function(){ie&&G()},[J,V,_,ie]),(0,Ct.Z)(function(){if(ke===c)se(ne);else if(ke===ne){var ae=k(N.current,!1,V,_);se(F),et(ae)}else fe()},[ke]);var Ve=u.useRef(),qe=function(){nt.Z.cancel(Ve.current)},ze=function(ct){ke===F&&(ce==null||ce(ct),re&&(qe(),Ve.current=(0,nt.Z)(function(){G()})))};u.useEffect(function(){return qe},[]);var at=ie?We:null,Fe=(0,g.Z)((0,g.Z)({},ee),at);return(ke===c||ke===ne)&&(Fe.overflowY="hidden",Fe.overflowX="hidden"),u.createElement(rt.Z,{onResize:ze,disabled:!(re||ce)},u.createElement("textarea",(0,I.Z)({},Re,{ref:N,style:Fe,className:ue()($,Se,(0,P.Z)({},"".concat($,"-disabled"),j)),disabled:j,value:lt,onChange:h})))}),Ke=de,E=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],p=u.forwardRef(function(R,Q){var b,$=R.defaultValue,he=R.value,J=R.onFocus,re=R.onBlur,ce=R.onChange,Se=R.allowClear,ee=R.maxLength,j=R.onCompositionStart,we=R.onCompositionEnd,Ne=R.suffix,Re=R.prefixCls,Me=Re===void 0?"rc-textarea":Re,dt=R.showCount,lt=R.count,wt=R.className,h=R.style,N=R.disabled,y=R.hidden,O=R.classNames,V=R.styles,_=R.onResize,ie=R.onClear,fe=R.onPressEnter,me=R.readOnly,ye=R.autoSize,ke=R.onKeyDown,se=(0,X.Z)(R,E),Ge=(0,xe.Z)($,{value:he,defaultValue:$}),q=(0,Y.Z)(Ge,2),We=q[0],et=q[1],G=We==null?"":String(We),Ve=u.useState(!1),qe=(0,Y.Z)(Ve,2),ze=qe[0],at=qe[1],Fe=u.useRef(!1),ae=u.useState(null),ct=(0,Y.Z)(ae,2),Pt=ct[0],_e=ct[1],$e=(0,u.useRef)(null),Gt=(0,u.useRef)(null),Ee=function(){var Le;return(Le=Gt.current)===null||Le===void 0?void 0:Le.textArea},Ie=function(){Ee().focus()};(0,u.useImperativeHandle)(Q,function(){var je;return{resizableTextArea:Gt.current,focus:Ie,blur:function(){Ee().blur()},nativeElement:((je=$e.current)===null||je===void 0?void 0:je.nativeElement)||Ee()}}),(0,u.useEffect)(function(){at(function(je){return!N&&je})},[N]);var Ue=u.useState(null),It=(0,Y.Z)(Ue,2),ge=It[0],Je=It[1];u.useEffect(function(){if(ge){var je;(je=Ee()).setSelectionRange.apply(je,(0,tt.Z)(ge))}},[ge]);var be=(0,ve.Z)(lt,dt),Tt=(b=be.max)!==null&&b!==void 0?b:ee,Mt=Number(Tt)>0,Dt=be.strategy(G),Te=!!Tt&&Dt>Tt,sn=function(Le,pt){var Zt=pt;!Fe.current&&be.exceedFormatter&&be.max&&be.strategy(pt)>be.max&&(Zt=be.exceedFormatter(pt,{max:be.max}),pt!==Zt&&Je([Ee().selectionStart||0,Ee().selectionEnd||0])),et(Zt),(0,Be.rJ)(Le.currentTarget,Le,ce,Zt)},mt=function(Le){Fe.current=!0,j==null||j(Le)},ln=function(Le){Fe.current=!1,sn(Le,Le.currentTarget.value),we==null||we(Le)},gt=function(Le){sn(Le,Le.target.value)},Ot=function(Le){Le.key==="Enter"&&fe&&fe(Le),ke==null||ke(Le)},At=function(Le){at(!0),J==null||J(Le)},Wt=function(Le){at(!1),re==null||re(Le)},zt=function(Le){et(""),Ie(),(0,Be.rJ)(Ee(),Le,ce)},en=Ne,_t;be.show&&(be.showFormatter?_t=be.showFormatter({value:G,count:Dt,maxLength:Tt}):_t="".concat(Dt).concat(Mt?" / ".concat(Tt):""),en=u.createElement(u.Fragment,null,en,u.createElement("span",{className:ue()("".concat(Me,"-data-count"),O==null?void 0:O.count),style:V==null?void 0:V.count},_t)));var Lt=function(Le){var pt;_==null||_(Le),(pt=Ee())!==null&&pt!==void 0&&pt.style.height&&_e(!0)},Nt=!ye&&!dt&&!Se;return u.createElement(U.BaseInput,{ref:$e,value:G,allowClear:Se,handleReset:zt,suffix:en,prefixCls:Me,classNames:(0,g.Z)((0,g.Z)({},O),{},{affixWrapper:ue()(O==null?void 0:O.affixWrapper,(0,P.Z)((0,P.Z)({},"".concat(Me,"-show-count"),dt),"".concat(Me,"-textarea-allow-clear"),Se))}),disabled:N,focused:ze,className:ue()(wt,Te&&"".concat(Me,"-out-of-range")),style:(0,g.Z)((0,g.Z)({},h),Pt&&!Nt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _t=="string"?_t:void 0}},hidden:y,readOnly:me,onClear:ie},u.createElement(Ke,(0,I.Z)({},se,{autoSize:ye,maxLength:ee,onKeyDown:Ot,onChange:gt,onFocus:At,onBlur:Wt,onCompositionStart:mt,onCompositionEnd:ln,className:ue()(O==null?void 0:O.textarea),style:(0,g.Z)((0,g.Z)({},V==null?void 0:V.textarea),{},{resize:h==null?void 0:h.resize}),disabled:N,prefixCls:Me,onResize:Lt,ref:Gt,readOnly:me})))}),D=p,M=D},29125:function(hn,st,l){"use strict";l.d(st,{G:function(){return tt},Z:function(){return De}});var I=l(92310),P=l.n(I),g=l(59301);function tt(He){var K=He.children,T=He.prefixCls,L=He.id,k=He.overlayInnerStyle,A=He.bodyClassName,c=He.className,ne=He.style;return g.createElement("div",{className:P()("".concat(T,"-content"),c),style:ne},g.createElement("div",{className:P()("".concat(T,"-inner"),A),id:L,role:"tooltip",style:k},typeof K=="function"?K():K))}var Y=l(14809),X=l(20439),H=l(62646),ue=l(65966),U={shiftX:64,adjustY:1},ve={adjustX:1,shiftY:!0},Be=[0,0],xe={left:{points:["cr","cl"],overflow:ve,offset:[-4,0],targetOffset:Be},right:{points:["cl","cr"],overflow:ve,offset:[4,0],targetOffset:Be},top:{points:["bc","tc"],overflow:U,offset:[0,-4],targetOffset:Be},bottom:{points:["tc","bc"],overflow:U,offset:[0,4],targetOffset:Be},topLeft:{points:["bl","tl"],overflow:U,offset:[0,-4],targetOffset:Be},leftTop:{points:["tr","tl"],overflow:ve,offset:[-4,0],targetOffset:Be},topRight:{points:["br","tr"],overflow:U,offset:[0,-4],targetOffset:Be},rightTop:{points:["tl","tr"],overflow:ve,offset:[4,0],targetOffset:Be},bottomRight:{points:["tr","br"],overflow:U,offset:[0,4],targetOffset:Be},rightBottom:{points:["bl","br"],overflow:ve,offset:[4,0],targetOffset:Be},bottomLeft:{points:["tl","bl"],overflow:U,offset:[0,4],targetOffset:Be},leftBottom:{points:["br","bl"],overflow:ve,offset:[-4,0],targetOffset:Be}},u=null,z=l(80402),rt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Ct=function(K,T){var L=K.overlayClassName,k=K.trigger,A=k===void 0?["hover"]:k,c=K.mouseEnterDelay,ne=c===void 0?0:c,F=K.mouseLeaveDelay,de=F===void 0?.1:F,Ke=K.overlayStyle,E=K.prefixCls,p=E===void 0?"rc-tooltip":E,D=K.children,M=K.onVisibleChange,R=K.afterVisibleChange,Q=K.transitionName,b=K.animation,$=K.motion,he=K.placement,J=he===void 0?"right":he,re=K.align,ce=re===void 0?{}:re,Se=K.destroyTooltipOnHide,ee=Se===void 0?!1:Se,j=K.defaultVisible,we=K.getTooltipContainer,Ne=K.overlayInnerStyle,Re=K.arrowContent,Me=K.overlay,dt=K.id,lt=K.showArrow,wt=lt===void 0?!0:lt,h=K.classNames,N=K.styles,y=(0,H.Z)(K,rt),O=(0,z.Z)(dt),V=(0,g.useRef)(null);(0,g.useImperativeHandle)(T,function(){return V.current});var _=(0,X.Z)({},y);"visible"in K&&(_.popupVisible=K.visible);var ie=function(){return g.createElement(tt,{key:"content",prefixCls:p,id:O,bodyClassName:h==null?void 0:h.body,overlayInnerStyle:(0,X.Z)((0,X.Z)({},Ne),N==null?void 0:N.body)},Me)},fe=function(){var ye=g.Children.only(D),ke=(ye==null?void 0:ye.props)||{},se=(0,X.Z)((0,X.Z)({},ke),{},{"aria-describedby":Me?O:null});return g.cloneElement(D,se)};return g.createElement(ue.Z,(0,Y.Z)({popupClassName:P()(L,h==null?void 0:h.root),prefixCls:p,popup:ie,action:A,builtinPlacements:xe,popupPlacement:J,ref:V,popupAlign:ce,getPopupContainer:we,onPopupVisibleChange:M,afterPopupVisibleChange:R,popupTransitionName:Q,popupAnimation:b,popupMotion:$,defaultPopupVisible:j,autoDestroy:ee,mouseLeaveDelay:de,popupStyle:(0,X.Z)((0,X.Z)({},Ke),N==null?void 0:N.root),mouseEnterDelay:ne,arrow:wt},_),fe())},nt=(0,g.forwardRef)(Ct),De=nt},49658:function(hn,st){"use strict";st.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var l=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(l)||/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(l==null?void 0:l.substr(0,4))}},33555:function(hn,st,l){"use strict";var I;I={value:!0},st.Z=void 0;var P=X(l(59301)),g=Y(l(12708)),tt=Y(l(21639));function Y(L){return L&&L.__esModule?L:{default:L}}function X(L){if(L&&L.__esModule)return L;var k={};if(L!=null){for(var A in L)if(Object.prototype.hasOwnProperty.call(L,A)){var c=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(L,A):{};c.get||c.set?Object.defineProperty(k,A,c):k[A]=L[A]}}return k.default=L,k}function H(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(A){return typeof A}:H=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},H(L)}function ue(L,k,A){return k in L?Object.defineProperty(L,k,{value:A,enumerable:!0,configurable:!0,writable:!0}):L[k]=A,L}function U(){return U=Object.assign||function(L){for(var k=1;k<arguments.length;k++){var A=arguments[k];for(var c in A)Object.prototype.hasOwnProperty.call(A,c)&&(L[c]=A[c])}return L},U.apply(this,arguments)}function ve(L,k){if(!(L instanceof k))throw new TypeError("Cannot call a class as a function")}function Be(L,k){for(var A=0;A<k.length;A++){var c=k[A];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(L,c.key,c)}}function xe(L,k,A){return k&&Be(L.prototype,k),A&&Be(L,A),L}function u(L,k){return k&&(H(k)==="object"||typeof k=="function")?k:z(L)}function z(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function rt(L){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},rt(L)}function Ct(L,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(k&&k.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),k&&nt(L,k)}function nt(L,k){return nt=Object.setPrototypeOf||function(c,ne){return c.__proto__=ne,c},nt(L,k)}var De=["dragMode","aspectRatio","data","crop","viewMode","preview","responsive","restore","checkCrossOrigin","checkOrientation","modal","guides","center","highlight","background","autoCrop","autoCropArea","movable","rotatable","scalable","zoomable","zoomOnTouch","zoomOnWheel","wheelZoomRatio","cropBoxMovable","cropBoxResizable","toggleDragModeOnDblclick","minContainerWidth","minContainerHeight","minCanvasWidth","minCanvasHeight","minCropBoxWidth","minCropBoxHeight","ready","cropstart","cropmove","cropend","zoom"],He=De.slice(4),K=function(L){Ct(k,L);function k(){return ve(this,k),u(this,rt(k).apply(this,arguments))}return xe(k,[{key:"componentDidMount",value:function(){var c=this,ne=Object.keys(this.props).filter(function(F){return De.indexOf(F)!==-1}).reduce(function(F,de){return U({},F,ue({},de,c.props[de]))},{});this.cropper=new tt.default(this.img,ne)}},{key:"UNSAFE_componentWillReceiveProps",value:function(c){var ne=this;c.src!==this.props.src&&this.cropper.reset().clear().replace(c.src),c.aspectRatio!==this.props.aspectRatio&&this.setAspectRatio(c.aspectRatio),c.data!==this.props.data&&this.setData(c.data),c.dragMode!==this.props.dragMode&&this.setDragMode(c.dragMode),c.cropBoxData!==this.props.cropBoxData&&this.setCropBoxData(c.cropBoxData),c.canvasData!==this.props.canvasData&&this.setCanvasData(c.canvasData),c.moveTo!==this.props.moveTo&&(c.moveTo.length>1?this.moveTo(c.moveTo[0],c.moveTo[1]):this.moveTo(c.moveTo[0])),c.zoomTo!==this.props.zoomTo&&this.zoomTo(c.zoomTo),c.rotateTo!==this.props.rotateTo&&this.rotateTo(c.rotateTo),c.scaleX!==this.props.scaleX&&this.scaleX(c.scaleX),c.scaleY!==this.props.scaleY&&this.scaleY(c.scaleY),c.enable!==this.props.enable&&(c.enable?this.enable():this.disable()),Object.keys(c).forEach(function(F){var de=c[F]!==ne.props[F],Ke=He.indexOf(F)!==-1;if(typeof c[F]=="function"&&typeof ne.props[F]=="function"&&(de=c[F].toString()!==ne.props[F].toString()),de&&Ke)throw new Error("prop: ".concat(F," can't be change after componentDidMount"))})}},{key:"componentWillUnmount",value:function(){this.img&&(this.cropper.destroy(),delete this.img,delete this.cropper)}},{key:"setDragMode",value:function(c){return this.cropper.setDragMode(c)}},{key:"setAspectRatio",value:function(c){return this.cropper.setAspectRatio(c)}},{key:"getCroppedCanvas",value:function(c){return this.cropper.getCroppedCanvas(c)}},{key:"setCropBoxData",value:function(c){return this.cropper.setCropBoxData(c)}},{key:"getCropBoxData",value:function(){return this.cropper.getCropBoxData()}},{key:"setCanvasData",value:function(c){return this.cropper.setCanvasData(c)}},{key:"getCanvasData",value:function(){return this.cropper.getCanvasData()}},{key:"getImageData",value:function(){return this.cropper.getImageData()}},{key:"getContainerData",value:function(){return this.cropper.getContainerData()}},{key:"setData",value:function(c){return this.cropper.setData(c)}},{key:"getData",value:function(c){return this.cropper.getData(c)}},{key:"crop",value:function(){return this.cropper.crop()}},{key:"move",value:function(c,ne){return this.cropper.move(c,ne)}},{key:"moveTo",value:function(c,ne){return this.cropper.moveTo(c,ne)}},{key:"zoom",value:function(c){return this.cropper.zoom(c)}},{key:"zoomTo",value:function(c){return this.cropper.zoomTo(c)}},{key:"rotate",value:function(c){return this.cropper.rotate(c)}},{key:"rotateTo",value:function(c){return this.cropper.rotateTo(c)}},{key:"enable",value:function(){return this.cropper.enable()}},{key:"disable",value:function(){return this.cropper.disable()}},{key:"reset",value:function(){return this.cropper.reset()}},{key:"clear",value:function(){return this.cropper.clear()}},{key:"replace",value:function(c,ne){return this.cropper.replace(c,ne)}},{key:"scale",value:function(c,ne){return this.cropper.scale(c,ne)}},{key:"scaleX",value:function(c){return this.cropper.scaleX(c)}},{key:"scaleY",value:function(c){return this.cropper.scaleY(c)}},{key:"render",value:function(){var c=this,ne=this.props,F=ne.src,de=ne.alt,Ke=ne.crossOrigin,E=ne.style,p=ne.className;return P.default.createElement("div",{style:E,className:p},P.default.createElement("img",{crossOrigin:Ke,ref:function(M){c.img=M},src:F,alt:de===void 0?"picture":de,style:{opacity:0}}))}}]),k}(P.Component);K.propTypes={style:g.default.object,className:g.default.string,crossOrigin:g.default.string,src:g.default.string,alt:g.default.string,aspectRatio:g.default.number,dragMode:g.default.oneOf(["crop","move","none"]),data:g.default.shape({x:g.default.number,y:g.default.number,width:g.default.number,height:g.default.number,rotate:g.default.number,scaleX:g.default.number,scaleY:g.default.number}),scaleX:g.default.number,scaleY:g.default.number,enable:g.default.bool,cropBoxData:g.default.shape({left:g.default.number,top:g.default.number,width:g.default.number,height:g.default.number}),canvasData:g.default.shape({left:g.default.number,top:g.default.number,width:g.default.number,height:g.default.number}),zoomTo:g.default.number,moveTo:g.default.arrayOf(g.default.number),rotateTo:g.default.number,viewMode:g.default.oneOf([0,1,2,3]),preview:g.default.string,responsive:g.default.bool,restore:g.default.bool,checkCrossOrigin:g.default.bool,checkOrientation:g.default.bool,modal:g.default.bool,guides:g.default.bool,center:g.default.bool,highlight:g.default.bool,background:g.default.bool,autoCrop:g.default.bool,autoCropArea:g.default.number,movable:g.default.bool,rotatable:g.default.bool,scalable:g.default.bool,zoomable:g.default.bool,zoomOnTouch:g.default.bool,zoomOnWheel:g.default.bool,wheelZoomRatio:g.default.number,cropBoxMovable:g.default.bool,cropBoxResizable:g.default.bool,toggleDragModeOnDblclick:g.default.bool,minContainerWidth:g.default.number,minContainerHeight:g.default.number,minCanvasWidth:g.default.number,minCanvasHeight:g.default.number,minCropBoxWidth:g.default.number,minCropBoxHeight:g.default.number,ready:g.default.func,cropstart:g.default.func,cropmove:g.default.func,cropend:g.default.func,crop:g.default.func,zoom:g.default.func},K.defaultProps={src:null,dragMode:"crop",data:null,scaleX:1,scaleY:1,enable:!0,zoomTo:1,rotateTo:0};var T=K;st.Z=T},76374:function(hn,st,l){"use strict";var I=function(){if(typeof Map!="undefined")return Map;function E(p,D){var M=-1;return p.some(function(R,Q){return R[0]===D?(M=Q,!0):!1}),M}return function(){function p(){this.__entries__=[]}return Object.defineProperty(p.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),p.prototype.get=function(D){var M=E(this.__entries__,D),R=this.__entries__[M];return R&&R[1]},p.prototype.set=function(D,M){var R=E(this.__entries__,D);~R?this.__entries__[R][1]=M:this.__entries__.push([D,M])},p.prototype.delete=function(D){var M=this.__entries__,R=E(M,D);~R&&M.splice(R,1)},p.prototype.has=function(D){return!!~E(this.__entries__,D)},p.prototype.clear=function(){this.__entries__.splice(0)},p.prototype.forEach=function(D,M){M===void 0&&(M=null);for(var R=0,Q=this.__entries__;R<Q.length;R++){var b=Q[R];D.call(M,b[1],b[0])}},p}()}(),P=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,g=function(){return typeof l.g!="undefined"&&l.g.Math===Math?l.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),tt=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(g):function(E){return setTimeout(function(){return E(Date.now())},1e3/60)}}(),Y=2;function X(E,p){var D=!1,M=!1,R=0;function Q(){D&&(D=!1,E()),M&&$()}function b(){tt(Q)}function $(){var he=Date.now();if(D){if(he-R<Y)return;M=!0}else D=!0,M=!1,setTimeout(b,p);R=he}return $}var H=20,ue=["top","right","bottom","left","width","height","size","weight"],U=typeof MutationObserver!="undefined",ve=function(){function E(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=X(this.refresh.bind(this),H)}return E.prototype.addObserver=function(p){~this.observers_.indexOf(p)||this.observers_.push(p),this.connected_||this.connect_()},E.prototype.removeObserver=function(p){var D=this.observers_,M=D.indexOf(p);~M&&D.splice(M,1),!D.length&&this.connected_&&this.disconnect_()},E.prototype.refresh=function(){var p=this.updateObservers_();p&&this.refresh()},E.prototype.updateObservers_=function(){var p=this.observers_.filter(function(D){return D.gatherActive(),D.hasActive()});return p.forEach(function(D){return D.broadcastActive()}),p.length>0},E.prototype.connect_=function(){!P||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),U?(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)},E.prototype.disconnect_=function(){!P||!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)},E.prototype.onTransitionEnd_=function(p){var D=p.propertyName,M=D===void 0?"":D,R=ue.some(function(Q){return!!~M.indexOf(Q)});R&&this.refresh()},E.getInstance=function(){return this.instance_||(this.instance_=new E),this.instance_},E.instance_=null,E}(),Be=function(E,p){for(var D=0,M=Object.keys(p);D<M.length;D++){var R=M[D];Object.defineProperty(E,R,{value:p[R],enumerable:!1,writable:!1,configurable:!0})}return E},xe=function(E){var p=E&&E.ownerDocument&&E.ownerDocument.defaultView;return p||g},u=k(0,0,0,0);function z(E){return parseFloat(E)||0}function rt(E){for(var p=[],D=1;D<arguments.length;D++)p[D-1]=arguments[D];return p.reduce(function(M,R){var Q=E["border-"+R+"-width"];return M+z(Q)},0)}function Ct(E){for(var p=["top","right","bottom","left"],D={},M=0,R=p;M<R.length;M++){var Q=R[M],b=E["padding-"+Q];D[Q]=z(b)}return D}function nt(E){var p=E.getBBox();return k(0,0,p.width,p.height)}function De(E){var p=E.clientWidth,D=E.clientHeight;if(!p&&!D)return u;var M=xe(E).getComputedStyle(E),R=Ct(M),Q=R.left+R.right,b=R.top+R.bottom,$=z(M.width),he=z(M.height);if(M.boxSizing==="border-box"&&(Math.round($+Q)!==p&&($-=rt(M,"left","right")+Q),Math.round(he+b)!==D&&(he-=rt(M,"top","bottom")+b)),!K(E)){var J=Math.round($+Q)-p,re=Math.round(he+b)-D;Math.abs(J)!==1&&($-=J),Math.abs(re)!==1&&(he-=re)}return k(R.left,R.top,$,he)}var He=function(){return typeof SVGGraphicsElement!="undefined"?function(E){return E instanceof xe(E).SVGGraphicsElement}:function(E){return E instanceof xe(E).SVGElement&&typeof E.getBBox=="function"}}();function K(E){return E===xe(E).document.documentElement}function T(E){return P?He(E)?nt(E):De(E):u}function L(E){var p=E.x,D=E.y,M=E.width,R=E.height,Q=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,b=Object.create(Q.prototype);return Be(b,{x:p,y:D,width:M,height:R,top:D,right:p+M,bottom:R+D,left:p}),b}function k(E,p,D,M){return{x:E,y:p,width:D,height:M}}var A=function(){function E(p){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=p}return E.prototype.isActive=function(){var p=T(this.target);return this.contentRect_=p,p.width!==this.broadcastWidth||p.height!==this.broadcastHeight},E.prototype.broadcastRect=function(){var p=this.contentRect_;return this.broadcastWidth=p.width,this.broadcastHeight=p.height,p},E}(),c=function(){function E(p,D){var M=L(D);Be(this,{target:p,contentRect:M})}return E}(),ne=function(){function E(p,D,M){if(this.activeObservations_=[],this.observations_=new I,typeof p!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=p,this.controller_=D,this.callbackCtx_=M}return E.prototype.observe=function(p){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(p instanceof xe(p).Element))throw new TypeError('parameter 1 is not of type "Element".');var D=this.observations_;D.has(p)||(D.set(p,new A(p)),this.controller_.addObserver(this),this.controller_.refresh())}},E.prototype.unobserve=function(p){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(p instanceof xe(p).Element))throw new TypeError('parameter 1 is not of type "Element".');var D=this.observations_;D.has(p)&&(D.delete(p),D.size||this.controller_.removeObserver(this))}},E.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},E.prototype.gatherActive=function(){var p=this;this.clearActive(),this.observations_.forEach(function(D){D.isActive()&&p.activeObservations_.push(D)})},E.prototype.broadcastActive=function(){if(this.hasActive()){var p=this.callbackCtx_,D=this.activeObservations_.map(function(M){return new c(M.target,M.broadcastRect())});this.callback_.call(p,D,p),this.clearActive()}},E.prototype.clearActive=function(){this.activeObservations_.splice(0)},E.prototype.hasActive=function(){return this.activeObservations_.length>0},E}(),F=typeof WeakMap!="undefined"?new WeakMap:new I,de=function(){function E(p){if(!(this instanceof E))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var D=ve.getInstance(),M=new ne(p,D,this);F.set(this,M)}return E}();["observe","unobserve","disconnect"].forEach(function(E){de.prototype[E]=function(){var p;return(p=F.get(this))[E].apply(p,arguments)}});var Ke=function(){return typeof g.ResizeObserver!="undefined"?g.ResizeObserver:de}();st.Z=Ke}}]);