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.
14 lines
136 KiB
14 lines
136 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5650],{65030:function(hn,st,l){"use strict";l.d(st,{Z:function(){return Ct}});var I=l(33885),P=l(42978),g=l(75931),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(54476),bt=l(77900),nt=l(8654);function Ne(h){var N=h.prefixCls,y=h.align,O=h.arrow,V=h.arrowPos,_=O||{},oe=_.className,fe=_.content,me=V.x,ye=me===void 0?0:me,ke=V.y,se=ke===void 0?0:ke,_e=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:_e,className:X()("".concat(N,"-arrow"),oe),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(bt.default,(0,rt.Z)({},_,{motionAppear:!0,visible:y,removeOnLeave:!0}),function(oe){var fe=oe.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,oe=h.target,fe=h.onVisibleChanged,me=h.open,ye=h.keepDom,ke=h.fresh,se=h.onClick,_e=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,Dt=h.onMouseLeave,Je=h.onPointerEnter,$e=h.onPointerDownCapture,Gt=h.ready,Ee=h.offsetX,Ie=h.offsetY,Ue=h.offsetR,It=h.offsetB,ge=h.onAlign,Qe=h.onPrepare,be=h.stretch,Tt=h.targetWidth,Mt=h.targetHeight,Nt=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&&oe&&Ot(!0)},[gt,sn,oe]),!gt)return null;var At="auto",Bt={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",Zt=_t&&en[0][0]==="b";Lt?(Bt.right=Ue,Bt.left=At):(Bt.left=Ee,Bt.right=At),Zt?(Bt.bottom=It,Bt.top=At):(Bt.top=Ie,Bt.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(oe)},autoDestroy:at},z.createElement(He,{prefixCls:V,open:me,zIndex:ae,mask:_e,motion:Ve}),z.createElement(H.Z,{onResize:ge,disabled:!me},function(Le){return z.createElement(bt.default,(0,rt.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:qe,leavedClassName:"".concat(V,"-hidden")},G,{onAppearPrepare:Qe,onEnterPrepare:Qe,visible:me,onVisibleChanged:function(Pt){var Vt;G==null||(Vt=G.onVisibleChanged)===null||Vt===void 0||Vt.call(G,Pt),fe(Pt)}}),function(pt,Pt){var Vt=pt.className,wn=pt.style,Qt=X()(V,Vt,O);return z.createElement("div",{ref:(0,nt.sQ)(Le,N,Pt),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")},Bt),je),wn),{},{boxSizing:"border-box",zIndex:ae},_),onMouseEnter:ct,onMouseLeave:Dt,onPointerEnter:Je,onClick:se,onPointerDownCapture:$e},q&&z.createElement(Ne,{prefixCls:V,arrow:q,arrowPos:We,align:et}),z.createElement(T,{cache:!me&&!ke},Nt))})}))}),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]),oe=(0,nt.x1)(_,(0,nt.C4)(y));return V?z.cloneElement(y,{ref:oe}):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),oe=new Set(V),fe=new Set(_);return h&&(oe.has("hover")&&(oe.delete("hover"),oe.add("click")),fe.has("hover")&&(fe.delete("hover"),fe.add("click"))),[oe,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),oe=0;oe<_.length;oe+=1){var fe,me=_[oe];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,oe=V.overflowY,fe=V.overflow;[_,oe,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,oe=V.overflowClipMargin,fe=V.borderTopWidth,me=V.borderBottomWidth,ye=V.borderLeftWidth,ke=V.borderRightWidth,se=O.getBoundingClientRect(),_e=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/_e*1e3)/1e3),ae=(We-et-qe-ze)*at,ct=(_e-q-G-Ve)*Fe,Dt=G*Fe,Je=Ve*Fe,$e=qe*at,Gt=ze*at,Ee=0,Ie=0;if(_==="clip"){var Ue=$(oe);Ee=Ue*at,Ie=Ue*Fe}var It=se.x+$e-Ee,ge=se.y+Dt-Ie,Qe=It+se.width+2*Ee-$e-Gt-ae,be=ge+se.height+2*Ie-Dt-Je-ct;y.left=Math.max(y.left,It),y.top=Math.max(y.top,ge),y.right=Math.min(y.right,Qe),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,_,oe){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),_e=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 Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:un,jn=Te.x+on,qn=Te.y+Sn,ta=jn+Zt,_n=qn+Lt,na=Math.max(jn,Ln.left),ie=Math.max(qn,Ln.top),De=Math.min(ta,Ln.right),Et=Math.min(_n,Ln.bottom);return Math.max(0,(De-na)*(Et-ie))},Wt=function(){yt=Te.y+W,xt=yt+Lt,Rt=Te.x+B,ft=Rt+Zt};var qe,ze,at,Fe,ae=N,ct=ae.ownerDocument,Dt=R(ae),Je=Dt.getComputedStyle(ae),$e=Je.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]),_),Qe=ct.createElement("div");(qe=ae.parentElement)===null||qe===void 0||qe.appendChild(Qe),Qe.style.left="".concat(ae.offsetLeft,"px"),Qe.style.top="".concat(ae.offsetTop,"px"),Qe.style.position=$e,Qe.style.height="".concat(ae.offsetHeight,"px"),Qe.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,Nt=y.getBoundingClientRect();Nt.x=(Tt=Nt.x)!==null&&Tt!==void 0?Tt:Nt.left,Nt.y=(Mt=Nt.y)!==null&&Mt!==void 0?Mt:Nt.top,be={x:Nt.x,y:Nt.y,width:Nt.width,height:Nt.height}}var Te=ae.getBoundingClientRect(),sn=Dt.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,Bt=gt.scrollWidth,zt=gt.scrollHeight,en=gt.scrollTop,_t=gt.scrollLeft,Lt=Te.height,Zt=Te.width,je=be.height,Le=be.width,pt={left:0,top:0,right:Ot,bottom:At},Pt={left:-_t,top:-en,right:Bt-_t,bottom:zt-en},Vt=ge.htmlRegion,wn="visible",Qt="visibleFirst";Vt!=="scroll"&&Vt!==Qt&&(Vt=wn);var mn=Vt===Qt,Dn=he(Pt,_e),vt=he(pt,_e),un=Vt===wn?vt:Dn,kt=mn?vt:un;ae.style.left="auto",ae.style.top="auto",ae.style.right="0",ae.style.bottom="0";var Pn=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(Qe);var $t=b(Math.round(Zt/parseFloat(ln)*1e3)/1e3),bn=b(Math.round(Lt/parseFloat(mt)*1e3)/1e3);if($t===0||bn===0||(0,ue.Sh)(y)&&!(0,E.Z)(y))return;var On=ge.offset,Pe=ge.targetOffset,Ye=re(Te,On),s=(0,P.Z)(Ye,2),w=s[0],S=s[1],a=re(be,Pe),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"]),Ge=Se(Te,["b","r"]),it=ge.overflow||{},Z=it.adjustX,Ae=it.adjustY,Xe=it.shiftX,ut=it.shiftY,wt=function(Sn){return typeof Sn=="boolean"?Sn:Sn>=0},yt,xt,Rt,ft;Wt();var ht=wt(Ae),ot=m[0]===C[0];if(ht&&m[0]==="t"&&(xt>kt.bottom||q.current.bt)){var Kt=W;ot?Kt-=Lt-je:Kt=le.y-Ge.y-S;var fn=qt(B,Kt),dn=qt(B,Kt,vt);fn>Ce||fn===Ce&&(!mn||dn>=te)?(q.current.bt=!0,W=Kt,S=-S,x.points=[ee(m,0),ee(C,0)]):q.current.bt=!1}if(ht&&m[0]==="b"&&(yt<kt.top||q.current.tb)){var tn=W;ot?tn+=Lt-je:tn=pe.y-Oe.y-S;var gn=qt(B,tn),Ut=qt(B,tn,vt);gn>Ce||gn===Ce&&(!mn||Ut>=te)?(q.current.tb=!0,W=tn,S=-S,x.points=[ee(m,0),ee(C,0)]):q.current.tb=!1}var Jt=wt(Z),xn=m[1]===C[1];if(Jt&&m[1]==="l"&&(ft>kt.right||q.current.rl)){var cn=B;xn?cn-=Zt-Le:cn=le.x-Ge.x-w;var pn=qt(cn,W),jt=qt(cn,W,vt);pn>Ce||pn===Ce&&(!mn||jt>=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<kt.left||q.current.lr)){var nn=B;xn?nn+=Zt-Le:nn=pe.x-Oe.x-w;var yn=qt(nn,W),In=qt(nn,W,vt);yn>Ce||yn===Ce&&(!mn||In>=te)?(q.current.lr=!0,B=nn,w=-w,x.points=[ee(m,1),ee(C,1)]):q.current.lr=!1}Wt();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)),xt>vt.bottom&&(W-=xt-vt.bottom-S,be.y>vt.bottom-vn&&(W+=be.y-vt.bottom+vn)));var Nn=Te.x+B,Tn=Nn+Zt,Bn=Te.y+W,kn=Bn+Lt,Wn=be.x,An=Wn+Le,Vn=be.y,Yn=Vn+je,Fn=Math.max(Nn,Wn),Cn=Math.min(Tn,An),Xn=(Fn+Cn)/2,Gn=Xn-Nn,Hn=Math.max(Bn,Vn),Un=Math.min(kn,Yn),$n=(Hn+Un)/2,zn=$n-Bn;oe==null||oe(N,x);var rn=Pn.right-Te.x-(B+Te.width),En=Pn.bottom-Te.y-(W+Te.height);$t===1&&(B=Math.round(B),rn=Math.round(rn)),bn===1&&(W=Math.round(W),En=Math.round(En));var Kn={ready:!0,offsetX:B/$t,offsetY:W/bn,offsetR:rn/$t,offsetB:En/bn,arrowX:Gn/$t,arrowY:zn/bn,scaleX:$t,scaleY:bn,align:x};ke(Kn)}}),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(94480);function Ze(h,N,y,O,V){(0,xe.Z)(function(){if(h&&N&&y){let se=function(){O(),V()};var _=N,oe=y,fe=Q(_),me=Q(oe),ye=R(oe),ke=new Set([ye].concat((0,we.Z)(fe),(0,we.Z)(me)));return ke.forEach(function(_e){_e.addEventListener("scroll",se,{passive:!0})}),ye.addEventListener("resize",se,{passive:!0}),O(),function(){ke.forEach(function(_e){_e.removeEventListener("scroll",se),ye.removeEventListener("resize",se)})}}},[h,N,y])}var Re=l(48736);function Me(h,N,y,O,V,_,oe,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},_e=function(at){var Fe;me.current&&!oe(((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",_e,!0),q.addEventListener("contextmenu",_e,!0);var We=(0,U.A)(y);if(We&&(We.addEventListener("mousedown",_e,!0),We.addEventListener("contextmenu",_e,!0)),0)var et,G,Ve,qe;return function(){q.removeEventListener("pointerdown",se,!0),q.removeEventListener("mousedown",_e,!0),q.removeEventListener("contextmenu",_e,!0),We&&(We.removeEventListener("mousedown",_e,!0),We.removeEventListener("contextmenu",_e,!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,oe=y.children,fe=y.action,me=fe===void 0?"hover":fe,ye=y.showAction,ke=y.hideAction,se=y.popupVisible,_e=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,Dt=y.forceRender,Je=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,Qe=y.popupAlign,be=y.zIndex,Tt=y.stretch,Mt=y.getPopupClassNameFromAlign,Nt=y.fresh,Te=y.alignPoint,sn=y.onPopupClick,mt=y.onPopupAlign,ln=y.arrow,gt=y.popupMotion,Ot=y.maskMotion,At=y.popupTransitionName,Bt=y.popupAnimation,zt=y.maskTransitionName,en=y.maskAnimation,_t=y.className,Lt=y.getTriggerDOMNode,Zt=(0,g.Z)(y,dt),je=Je||$e||!1,Le=z.useState(!1),pt=(0,P.Z)(Le,2),Pt=pt[0],Vt=pt[1];(0,xe.Z)(function(){Vt((0,u.Z)())},[]);var wn=z.useRef({}),Qt=z.useContext(F),mn=z.useMemo(function(){return{registerSubPopup:function(De,Et){wn.current[De]=Et,Qt==null||Qt.registerSubPopup(De,Et)}}},[Qt]),Dn=(0,Be.Z)(),vt=z.useState(null),un=(0,P.Z)(vt,2),kt=un[0],Pn=un[1],$t=z.useRef(null),bn=(0,ve.Z)(function(ie){$t.current=ie,(0,ue.Sh)(ie)&&kt!==ie&&Pn(ie),Qt==null||Qt.registerSubPopup(Dn,ie)}),On=z.useState(null),Pe=(0,P.Z)(On,2),Ye=Pe[0],s=Pe[1],w=z.useRef(null),S=(0,ve.Z)(function(ie){(0,ue.Sh)(ie)&&Ye!==ie&&(s(ie),w.current=ie)}),a=z.Children.only(oe),e=(a==null?void 0:a.props)||{},n={},t=(0,ve.Z)(function(ie){var De,Et,Yt=Ye;return(Yt==null?void 0:Yt.contains(ie))||((De=(0,U.A)(Yt))===null||De===void 0?void 0:De.host)===ie||ie===Yt||(kt==null?void 0:kt.contains(ie))||((Et=(0,U.A)(kt))===null||Et===void 0?void 0:Et.host)===ie||ie===kt||Object.values(wn.current).some(function(Ft){return(Ft==null?void 0:Ft.contains(ie))||ie===Ft})}),i=M(_,gt,Bt,At),r=M(_,Ot,en,zt),o=z.useState(_e||!1),d=(0,P.Z)(o,2),C=d[0],m=d[1],f=se!=null?se:C,v=(0,ve.Z)(function(ie){se===void 0&&m(ie)});(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(ie){var De;v(ie),((De=B.current[B.current.length-1])!==null&&De!==void 0?De:f)!==ie&&(B.current.push(ie),q==null||q(ie))}),Ce=z.useRef(),te=function(){clearTimeout(Ce.current)},le=function(De){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),Et===0?W(De):Ce.current=setTimeout(function(){W(De)},Et*1e3)};z.useEffect(function(){return te},[]);var Oe=z.useState(!1),pe=(0,P.Z)(Oe,2),Ge=pe[0],it=pe[1];(0,xe.Z)(function(ie){(!ie||f)&&it(!0)},[f]);var Z=z.useState(null),Ae=(0,P.Z)(Z,2),Xe=Ae[0],ut=Ae[1],wt=z.useState(null),yt=(0,P.Z)(wt,2),xt=yt[0],Rt=yt[1],ft=function(De){Rt([De.clientX,De.clientY])},ht=j(f,kt,Te&&xt!==null?xt:Ye,Ue,ge,Qe,mt),ot=(0,P.Z)(ht,11),Kt=ot[0],fn=ot[1],dn=ot[2],tn=ot[3],gn=ot[4],Ut=ot[5],Jt=ot[6],xn=ot[7],cn=ot[8],pn=ot[9],jt=ot[10],nn=Ke(Pt,me,ye,ke),yn=(0,P.Z)(nn,2),In=yn[0],an=yn[1],vn=In.has("click"),Nn=an.has("click")||an.has("contextMenu"),Tn=(0,ve.Z)(function(){Ge||jt()}),Bn=function(){x.current&&Te&&Nn&&le(!1)};Ze(f,Ye,kt,Tn,Bn),(0,xe.Z)(function(){Tn()},[xt,Ue]),(0,xe.Z)(function(){f&&!(ge!=null&&ge[Ue])&&Tn()},[JSON.stringify(Qe)]);var kn=z.useMemo(function(){var ie=D(ge,_,pn,Te);return X()(ie,Mt==null?void 0:Mt(pn))},[pn,Mt,ge,_,Te]);z.useImperativeHandle(O,function(){return{nativeElement:w.current,popupElement:$t.current,forceAlign:Tn}});var Wn=z.useState(0),An=(0,P.Z)(Wn,2),Vn=An[0],Yn=An[1],Fn=z.useState(0),Cn=(0,P.Z)(Fn,2),Xn=Cn[0],Gn=Cn[1],Hn=function(){if(Tt&&Ye){var De=Ye.getBoundingClientRect();Yn(De.width),Gn(De.height)}},Un=function(){Hn(),Tn()},$n=function(De){it(!1),jt(),We==null||We(De)},zn=function(){return new Promise(function(De){Hn(),ut(function(){return De})})};(0,xe.Z)(function(){Xe&&(jt(),Xe(),ut(null))},[Xe]);function rn(ie,De,Et,Yt){n[ie]=function(Ft){var Jn;Yt==null||Yt(Ft),le(De,Et);for(var Zn=arguments.length,ia=new Array(Zn>1?Zn-1:0),ea=1;ea<Zn;ea++)ia[ea-1]=arguments[ea];(Jn=e[ie])===null||Jn===void 0||Jn.call.apply(Jn,[e,Ft].concat(ia))}}(vn||Nn)&&(n.onClick=function(ie){var De;x.current&&Nn?le(!1):!x.current&&vn&&(ft(ie),le(!0));for(var Et=arguments.length,Yt=new Array(Et>1?Et-1:0),Ft=1;Ft<Et;Ft++)Yt[Ft-1]=arguments[Ft];(De=e.onClick)===null||De===void 0||De.call.apply(De,[e,ie].concat(Yt))});var En=Me(f,Nn,Ye,kt,at,ae,t,le),Kn=In.has("hover"),qt=an.has("hover"),Wt,on;Kn&&(rn("onMouseEnter",!0,et,function(ie){ft(ie)}),rn("onPointerEnter",!0,et,function(ie){ft(ie)}),Wt=function(De){(f||Ge)&&kt!==null&&kt!==void 0&&kt.contains(De.target)&&le(!0,et)},Te&&(n.onMouseMove=function(ie){var De;(De=e.onMouseMove)===null||De===void 0||De.call(e,ie)})),qt&&(rn("onMouseLeave",!1,Ve),rn("onPointerLeave",!1,Ve),on=function(){le(!1,Ve)}),In.has("focus")&&rn("onFocus",!0,qe),an.has("focus")&&rn("onBlur",!1,ze),In.has("contextMenu")&&(n.onContextMenu=function(ie){var De;x.current&&an.has("contextMenu")?le(!1):(ft(ie),le(!0)),ie.preventDefault();for(var Et=arguments.length,Yt=new Array(Et>1?Et-1:0),Ft=1;Ft<Et;Ft++)Yt[Ft-1]=arguments[Ft];(De=e.onContextMenu)===null||De===void 0||De.call.apply(De,[e,ie].concat(Yt))}),_t&&(n.className=X()(e.className,_t));var Sn=z.useRef(!1);Sn.current||(Sn.current=Dt||f||Ge);var Ln=(0,I.Z)((0,I.Z)({},e),n),jn={},qn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];qn.forEach(function(ie){Zt[ie]&&(jn[ie]=function(){for(var De,Et=arguments.length,Yt=new Array(Et),Ft=0;Ft<Et;Ft++)Yt[Ft]=arguments[Ft];(De=Ln[ie])===null||De===void 0||De.call.apply(De,[Ln].concat(Yt)),Zt[ie].apply(Zt,Yt)})});var ta=z.cloneElement(a,(0,I.Z)((0,I.Z)({},Ln),jn)),_n={x:Ut,y:Jt},na=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},ta)),Sn.current&&z.createElement(F.Provider,{value:mn},z.createElement(k,{portal:h,ref:bn,prefixCls:_,popup:Gt,className:X()(Ee,kn),style:Ie,target:Ye,onMouseEnter:Wt,onMouseLeave:on,onPointerEnter:Wt,zIndex:be,open:f,keepDom:Ge,fresh:Nt,onClick:sn,onPointerDownCapture:En,mask:at,motion:i,maskMotion:r,onVisibleChanged:$n,onPrepare:zn,forceRender:Dt,autoDestroy:je,getPopupContainer:ct,align:pn,arrow:na,arrowPos:_n,ready:Kt,offsetX:fn,offsetY:dn,offsetR:tn,offsetB:gn,onAlign:Tn,stretch:Tt,targetWidth:Vn/xn,targetHeight:Xn/cn})))});return N}var Ct=lt(tt.Z)},80073:function(){"use strict"},91135:function(hn,st,l){"use strict";l.r(st),l.d(st,{default:function(){return Ne}});var I=l(59301),P=l(58106),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(80073),X=l(6767),H=l(91882),ue=l(37568),U=l(7939),ve=l(26869),Be=l(31735),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},bt=(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 bt(this,null,function*(){var j,we,Ze,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}/${(Ze=Me==null?void 0:Me.data)==null?void 0:Ze.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 bt(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 Ze=btoa(we.result);Q(`data:${j.type};base64,${Ze}`)},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 Ne=(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:{},bt=z&&rt.document.documentElement?"ontouchstart"in rt.document.documentElement:!1,nt=z?"PointerEvent"in rt:!1,Ne="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(Ne,"-crop"),D="".concat(Ne,"-disabled"),M="".concat(Ne,"-hidden"),R="".concat(Ne,"-hide"),Q="".concat(Ne,"-invisible"),b="".concat(Ne,"-modal"),$="".concat(Ne,"-move"),he="".concat(Ne,"Action"),J="".concat(Ne,"Preview"),re="crop",ce="move",Se="none",ee="crop",j="cropend",we="cropmove",Ze="cropstart",Re="dblclick",Me=bt?"touchstart":"mousedown",dt=bt?"touchmove":"mousemove",lt=bt?"touchend touchcancel":"mouseup",Ct=nt?"pointerdown":Me,h=nt?"pointermove":dt,N=nt?"pointerup pointercancel":lt,y="ready",O="resize",V="wheel",_="zoom",oe="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,_e=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:_e,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 Dt(a){return Array.from?Array.from(a):ct.call(a)}function Je(a,e){return a&&ae(e)&&(Array.isArray(a)||G(a.length)?Dt(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;Je(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)){Je(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 Qe(a,e){if(e){if(G(a.length)){Je(a,function(n){Qe(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)){Je(a,function(t){be(t,e,n)});return}n?ge(a,e):Qe(a,e)}}var Tt=/([a-z\d])([A-Z])/g;function Mt(a){return a.replace(Tt,"$1-$2").toLowerCase()}function Nt(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 Bt(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 Zt(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 Je(a,function(t,i){delete e[i],Je(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 Je(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 Pt(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 Vt(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,Ge=t.imageSmoothingQuality,it=Ge===void 0?"low":Ge,Z=t.maxWidth,Ae=Z===void 0?1/0:Z,Xe=t.maxHeight,ut=Xe===void 0?1/0:Xe,wt=t.minWidth,yt=wt===void 0?0:wt,xt=t.minHeight,Rt=xt===void 0?0:xt,ft=document.createElement("canvas"),ht=ft.getContext("2d"),ot=Pt({aspectRatio:B,width:Ae,height:ut}),Kt=Pt({aspectRatio:B,width:yt,height:Rt},"cover"),fn=Math.min(ot.width,Math.max(Kt.width,W)),dn=Math.min(ot.height,Math.max(Kt.height,Ce)),tn=Pt({aspectRatio:i,width:Ae,height:ut}),gn=Pt({aspectRatio:i,width:yt,height:Rt},"cover"),Ut=Math.min(tn.width,Math.max(gn.width,r)),Jt=Math.min(tn.height,Math.max(gn.height,o)),xn=[-Ut/2,-Jt/2,Ut,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 Je(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,Dt(i.subarray(0,t)))),i=i.subarray(t);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function kt(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 Pn(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 $t={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),Qe(e,M);var d={width:Math.max(t.offsetWidth,r>=0?r:se),height:Math.max(t.offsetHeight,o>=0?o:_e)};this.containerData=d,Ue(i,{width:d.width,height:d.height}),ge(e,M),Qe(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=Pt({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=Vt({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},Zt({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},Zt($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},Zt({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,Je(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(){Je(this.previews,function(e){var n=Nt(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},Zt($e({translateX:-C,translateY:-m},e)))),Je(this.previews,function(f){var v=Nt(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},Zt($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,Ze,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,Ct,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)&>(e,Ze,n.cropstart),ae(n.cropmove)&>(e,we,n.cropmove),ae(n.cropend)&>(e,j,n.cropend),ae(n.crop)&>(e,ee,n.crop),ae(n.zoom)&>(e,_,n.zoom),gt(t,Ct,this.onCropStart),n.zoomable&&n.zoomOnWheel&>(t,V,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&>(t,Re,this.onDblclick),gt(e.ownerDocument,h,this.onCropMove),gt(e.ownerDocument,N,this.onCropEnd),n.responsive&>(window,O,this.onResize)}},Pe={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(Je(d,function(m,f){d[f]=m*o})),this.setCropBoxData(Je(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?Je(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=Nt(e.target,he),fe.test(o)&&At(this.element,Ze,{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?Je(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?Je(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,Ge;!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}Ge=Bt(this.cropper),m=it.startX-Ge.left,f=it.startY-Ge.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||(Qe(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()),Je(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),Qe(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(),Qe(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,Je(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,Qe(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[Ne]?(e[Ne]=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=Bt(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(Je(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&&Je(["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=Pt({aspectRatio:f,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),x=Pt({aspectRatio:f,width:e.minWidth||0,height:e.minHeight||0},"cover"),B=Pt({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,Ge=e.imageSmoothingQuality;le.imageSmoothingEnabled=pe,Ge&&(le.imageSmoothingQuality=Ge);var it=t.width,Z=t.height,Ae=r,Xe=o,ut,wt,yt,xt,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,wt=0,xt=0,ft=0):Xe<=0?(xt=-Xe,Xe=0,wt=Math.min(Z,C+Xe),ft=wt):Xe<=Z&&(xt=0,wt=Math.min(C,Z-Xe),ft=wt);var ht=[Ae,Xe,ut,wt];if(Rt>0&&ft>0){var ot=W/d;ht.push(yt*ot,xt*ot,Rt*ot,ft*ot)}return le.drawImage.apply(le,[t].concat(ue(ht.map(function(Kt){return Math.floor(Ee(Kt))})))),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[Ne]){if(n[Ne]=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")!==oe&&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=kt(n),o=0,d=1,C=1;if(r>1){this.url=un(n,oe);var m=Pn(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(Ne,"-container")),C=d.querySelector(".".concat(Ne,"-canvas")),m=d.querySelector(".".concat(Ne,"-drag-box")),f=d.querySelector(".".concat(Ne,"-crop-box")),v=f.querySelector(".".concat(Ne,"-face"));this.container=r,this.cropper=d,this.canvas=C,this.dragBox=m,this.cropBox=f,this.viewBox=d.querySelector(".".concat(Ne,"-view-box")),this.face=v,C.appendChild(i),ge(n,M),r.insertBefore(d,n.nextSibling),Qe(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(Ne,"-dashed")),M),t.center||ge(f.getElementsByClassName("".concat(Ne,"-center")),M),t.background&&ge(d,"".concat(Ne,"-bg")),t.highlight||ge(v,Q),t.cropBoxMovable&&(ge(v,$),Te(v,he,He)),t.cropBoxResizable||(ge(f.getElementsByClassName("".concat(Ne,"-line")),M),ge(f.getElementsByClassName("".concat(Ne,"-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),Qe(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,$t,bn,On,Pe,Ye,s),S})},96478:function(hn,st,l){"use strict";l.d(st,{Z:function(){return A}});var I=l(54476),P=l(20068),g=l(42978),tt=l(75931),Y=l(65030),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}))}),bt=rt,nt={adjustX:1,adjustY:1},Ne=[0,0],He={topLeft:{points:["bl","tl"],overflow:nt,offset:[0,-4],targetOffset:Ne},top:{points:["bc","tc"],overflow:nt,offset:[0,-4],targetOffset:Ne},topRight:{points:["br","tr"],overflow:nt,offset:[0,-4],targetOffset:Ne},bottomLeft:{points:["tl","bl"],overflow:nt,offset:[0,4],targetOffset:Ne},bottom:{points:["tc","bc"],overflow:nt,offset:[0,4],targetOffset:Ne},bottomRight:{points:["tr","br"],overflow:nt,offset:[0,4],targetOffset:Ne}},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,Ze=we===void 0?["hover"]:we,Re=c.autoFocus,Me=c.overlay,dt=c.children,lt=c.onVisibleChange,Ct=(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),oe=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:oe});var ye=function(Ve){var qe=c.onOverlayClick;O(!1),qe&&qe(Ve)},ke=function(){return U.createElement(bt,{ref:oe,overlay:Me,prefixCls:p,arrow:Ke})},se=function(){return typeof Me=="function"?ke:ke()},_e=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&&Ze.indexOf("contextMenu")!==-1&&(et=["click"]),U.createElement(Y.Z,(0,I.Z)({builtinPlacements:he},Ct,{prefixCls:p,ref:_,popupClassName:H()(Se,(0,P.Z)({},"".concat(p,"-show-arrow"),Ke)),popupStyle:ee,action:Ze,showAction:re,hideAction:et,popupPlacement:b,popupAlign:R,popupTransitionName:D,popupAnimation:M,popupVisible:V,stretch:_e()?"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(75931),P=l(33885),g=l(76190),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(33885),P=l(54476),g=l(20068),tt=l(76190),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,Ze=T.styles,Re=T.components,Me=T.onClear,dt=F!=null?F:ne,lt=(Re==null?void 0:Re.affixWrapper)||"span",Ct=(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}),oe=(0,H.useRef)(null);if(H.useImperativeHandle(L,function(){return{nativeElement:oe.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"),_e=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:Ze==null?void 0:Ze.suffix},fe,E);_=H.createElement(lt,(0,P.Z)({className:_e,style:Ze==null?void 0:Ze.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:Ze==null?void 0:Ze.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(Ct,{className:qe,ref:oe},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(94480),xe=l(42978),u=l(75931),z=l(18929),rt=l(2738),bt=l(66003),nt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Ne=(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,Ze=(0,u.Z)(T,nt),Re=(0,H.useState)(!1),Me=(0,xe.Z)(Re,2),dt=Me[0],lt=Me[1],Ct=(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),oe=_[0],fe=_[1],me=oe==null?"":String(oe),ye=(0,H.useState)(null),ke=(0,xe.Z)(ye,2),se=ke[0],_e=ke[1],q=(0,bt.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 Qe;(Qe=N.current)===null||Qe===void 0||Qe.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(!Ct.current&&q.exceedFormatter&&q.max&&q.strategy(Ue)>q.max){if(ge=q.exceedFormatter(Ue,{max:q.max}),Ue!==ge){var Qe,be;_e([((Qe=N.current)===null||Qe===void 0?void 0:Qe.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){Ct.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)},Dt=function(Ie){fe(""),O(),N.current&&(0,ue.rJ)(N.current,Ie,A)},Je=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){Ct.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)({},Ze,{prefixCls:p,className:X()(R,Je),handleReset:Dt,value:me,focused:dt,triggerFocus:O,suffix:Gt(),disabled:D,classes:ce,classNames:Se,styles:ee}),$e())}),He=Ne,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 Vt},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(54476),P=l(20068),g=l(33885),tt=l(94480),Y=l(42978),X=l(75931),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 bt(s,w){return s===void 0?null:"".concat(s,"-").concat(w)}function nt(s){var w=u.useContext(rt);return bt(w,s)}var Ne=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,Ne.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,Ze=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),Ze,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 Ct(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(bt(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,Ze,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),Ge=le.get(pe),it=lt(s,t(Ge,!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 Kt=le.get(ft);i(Kt),m(),d.current=(0,re.Z)(function(){C.current===Kt&&ht.focus()})}};if([Re,Me].includes(v)||it.sibling||!pe){var Ae;!pe||s==="inline"?Ae=e.current:Ae=Ct(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(Ge);else if(it.offset>0)r(Ge,!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 wt=t(Ge,!0),yt=wt[wt.length-2],xt=te.get(yt);r(yt,!1),Z(xt)}}o==null||o(f)}}function _(s){Promise.resolve().then(s)}var oe="__RC_UTIL_PATH_SPLIT__",fe=function(w){return w.join(oe)},me=function(w){return w.split(oe)},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(oe),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 _e=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(_e,"-").concat(q);e("rc-menu-uuid-".concat(n))},[]),a}var et=l(67732),G=l(83652),Ve=l(42403),qe=l(158),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 Dt=["item"];function Je(s){var w=s.item,S=(0,X.Z)(s,Dt);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,Ge=W.selectedKeys,it=W.onActive,Z=u.useContext(E),Ae=Z._internalRenderMenuItem,Xe="".concat(Ce,"-item"),ut=u.useRef(),wt=u.useRef(),yt=le||t,xt=(0,at.x1)(w,wt),Rt=F(e),ft=function(jt){return{key:e,keyPath:(0,tt.Z)(Rt).reverse(),item:ut.current,domEvent:jt}},ht=i||pe,ot=Fe(e,yt,d,C),Kt=ot.active,fn=(0,X.Z)(ot,Ee),dn=Ge.includes(e),tn=ae(Rt.length),gn=function(jt){if(!yt){var nn=ft(jt);m==null||m(Je(nn)),te(nn)}},Ut=function(jt){if(f==null||f(jt),jt.which===J.Z.ENTER){var nn=ft(jt);m==null||m(Je(nn)),te(nn)}},Jt=function(jt){it(e),v==null||v(jt)},xn={};s.role==="option"&&(xn["aria-selected"]=dn);var cn=u.createElement(Ie,(0,I.Z)({ref:ut,elementRef:xt,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"),Kt),"".concat(Xe,"-selected"),dn),"".concat(Xe,"-disabled"),yt),a),onClick:gn,onKeyDown:Ut,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),Qe=["className","children"],be=function(w,S){var a=w.className,e=w.children,n=(0,X.Z)(w,Qe),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,Nt=l(11592);function Te(s,w){return(0,Nt.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(65030),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 Bt={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),Ge=(0,Y.Z)(pe,2),it=Ge[0],Z=Ge[1],Ae=f?(0,g.Z)((0,g.Z)({},gt),B):(0,g.Z)((0,g.Z)({},ln),B),Xe=Bt[o],ut=At(o,le,Oe),wt=u.useRef(ut);o!=="inline"&&(wt.current=ut);var yt=(0,g.Z)((0,g.Z)({},wt.current),{},{leavedClassName:"".concat(w,"-hidden"),removeOnLeave:!1,motionAppear:!0}),xt=u.useRef();return u.useEffect(function(){return xt.current=(0,re.Z)(function(){Z(S)}),function(){re.Z.cancel(xt.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"],Zt=["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),Ge=u.useContext(K),it=Ge.prefixCls,Z=Ge.mode,Ae=Ge.openKeys,Xe=Ge.disabled,ut=Ge.overflowDisabled,wt=Ge.activeKey,yt=Ge.selectedKeys,xt=Ge.itemIcon,Rt=Ge.expandIcon,ft=Ge.onItemClick,ht=Ge.onOpenChange,ot=Ge.onActive,Kt=u.useContext(E),fn=Kt._internalRenderSubMenuItem,dn=u.useContext(de),tn=dn.isSubPathKey,gn=F(),Ut="".concat(it,"-submenu"),Jt=Xe||i,xn=u.useRef(),cn=u.useRef(),pn=d!=null?d:xt,jt=C!=null?C:Rt,nn=Ae.includes(n),yn=!ut&&nn,In=tn(yt,n),an=Fe(n,Jt,te,le),vn=an.active,Nn=(0,X.Z)(an,Zt),Tn=u.useState(!1),Bn=(0,Y.Z)(Tn,2),kn=Bn[0],Wn=Bn[1],An=function(on){Jt||Wn(on)},Vn=function(on){An(!0),B==null||B({key:n,domEvent:on})},Yn=function(on){An(!1),W==null||W({key:n,domEvent:on})},Fn=u.useMemo(function(){return vn||(Z!=="inline"?kn||tn([wt],n):!1)},[Z,vn,wt,kn,n,tn]),Cn=ae(gn.length),Xn=function(on){Jt||(Ce==null||Ce({key:n,domEvent:on}),Z==="inline"&&ht(n,!nn))},Gn=se(function(Wt){x==null||x(Je(Wt)),ft(Wt)}),Hn=function(on){Z!=="inline"&&ht(n,on)},Un=function(){ot(n)},$n=pe&&"".concat(pe,"-popup"),zn=u.useMemo(function(){return u.createElement(ct,{icon:Z!=="horizontal"?jt:void 0,props:(0,g.Z)((0,g.Z)({},s),{},{isOpen:yn,isSubMenu:!0})},u.createElement("i",{className:"".concat(Ut,"-arrow")}))},[Z,jt,s,yn,Ut]),rn=u.createElement("div",(0,I.Z)({role:"menuitem",style:Cn,className:"".concat(Ut,"-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":$n,"aria-disabled":Jt,onClick:Xn,onFocus:Un},Nn),e,zn),En=u.useRef(Z);if(Z!=="inline"&&gn.length>1?En.current="vertical":En.current=Z,!ut){var Kn=En.current;rn=u.createElement(zt,{mode:Kn,prefixCls:Ut,visible:!r&&yn&&Z!=="inline",popupClassName:m,popupOffset:f,popupStyle:v,popup:u.createElement(L,{mode:Kn==="horizontal"?"vertical":Kn},u.createElement(Mt,{id:$n,ref:cn},o)),disabled:Jt,onVisibleChange:Hn},rn)}var qt=u.createElement(U.Z.Item,(0,I.Z)({ref:w,role:"none"},Oe,{component:"li",style:S,className:ue()(Ut,"".concat(Ut,"-").concat(Z),a,(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(Ut,"-open"),yn),"".concat(Ut,"-active"),Fn),"".concat(Ut,"-selected"),In),"".concat(Ut,"-disabled"),Jt)),onMouseEnter:Vn,onMouseLeave:Yn}),rn,!ut&&u.createElement(_t,{id:$n,open:yn,keyPath:gn},o));return fn&&(qt=fn(qt,s,{selected:In,active:Fn,open:yn,disabled:Jt})),u.createElement(L,{onItemClick:Gn,mode:Z==="horizontal"?"vertical":Z,itemIcon:pn,expandIcon:jt},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,Pt=l(76190);function Vt(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,Pt.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 kt(s,w,S,a,e){var n=s,t=(0,g.Z)({divider:Vt,item:ge,group:Dn,submenu:pt},a);return w&&(n=un(w,t,e)),Te(n,S)}var Pn=["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"],$t=[],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,Ge=pe===void 0?.1:pe,it=a.forceSubMenuRender,Z=a.defaultOpenKeys,Ae=a.openKeys,Xe=a.activeKey,ut=a.defaultActiveFirst,wt=a.selectable,yt=wt===void 0?!0:wt,xt=a.multiple,Rt=xt===void 0?!1:xt,ft=a.defaultSelectedKeys,ht=a.selectedKeys,ot=a.onSelect,Kt=a.onDeselect,fn=a.inlineIndent,dn=fn===void 0?24:fn,tn=a.motion,gn=a.defaultMotions,Ut=a.triggerSubMenuAction,Jt=Ut===void 0?"hover":Ut,xn=a.builtinPlacements,cn=a.itemIcon,pn=a.expandIcon,jt=a.overflowedIndicator,nn=jt===void 0?"...":jt,yn=a.overflowedIndicatorPopupClassName,In=a.getPopupContainer,an=a.onClick,vn=a.onOpenChange,Nn=a.onKeyDown,Tn=a.openAnimation,Bn=a.openTransitionName,kn=a._internalRenderMenuItem,Wn=a._internalRenderSubMenuItem,An=a._internalComponents,Vn=(0,X.Z)(a,Pn),Yn=u.useMemo(function(){return[kt(m,C,$t,An,n),kt(m,C,$t,{},n)]},[m,C,An]),Fn=(0,Y.Z)(Yn,2),Cn=Fn[0],Xn=Fn[1],Gn=u.useState(!1),Hn=(0,Y.Z)(Gn,2),Un=Hn[0],$n=Hn[1],zn=u.useRef(),rn=We(v),En=f==="rtl",Kn=(0,ve.Z)(Z,{value:Ae,postState:function(St){return St||$t}}),qt=(0,Y.Z)(Kn,2),Wt=qt[0],on=qt[1],Sn=function(St){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mn(){on(St),vn==null||vn(St)}Ht?(0,z.flushSync)(Mn):Mn()},Ln=u.useState(Wt),jn=(0,Y.Z)(Ln,2),qn=jn[0],ta=jn[1],_n=u.useRef(!1),na=u.useMemo(function(){return(B==="inline"||B==="vertical")&&W?["vertical",W]:[B,!1]},[B,W]),ie=(0,Y.Z)(na,2),De=ie[0],Et=ie[1],Yt=De==="inline",Ft=u.useState(De),Jn=(0,Y.Z)(Ft,2),Zn=Jn[0],ia=Jn[1],ea=u.useState(Et),va=(0,Y.Z)(ea,2),Sa=va[0],Ma=va[1];u.useEffect(function(){ia(De),Ma(Et),_n.current&&(Yt?on(qn):Sn($t))},[De,Et]);var Ra=u.useState(0),ha=(0,Y.Z)(Ra,2),oa=ha[0],Da=ha[1],ua=oa>=Cn.length-1||Zn!=="horizontal"||te;u.useEffect(function(){Yt&&ta(Wt)},[Wt]),u.useEffect(function(){return _n.current=!0,function(){_n.current=!1}},[]);var Qn=ke(),ma=Qn.registerPath,ga=Qn.unregisterPath,Na=Qn.refreshOverflowKeys,pa=Qn.isSubPathKey,Za=Qn.getKeyPath,ya=Qn.getKeys,Pa=Qn.getSubPathKeys,Ia=u.useMemo(function(){return{registerPath:ma,unregisterPath:ga}},[ma,ga]),Ta=u.useMemo(function(){return{isSubPathKey:pa}},[pa]);u.useEffect(function(){Na(ua?$t:Cn.slice(oa+1).map(function(Xt){return Xt.key}))},[oa,ua]);var Oa=(0,ve.Z)(Xe||ut&&((S=Cn[0])===null||S===void 0?void 0:S.key),{value:Xe}),ba=(0,Y.Z)(Oa,2),aa=ba[0],ca=ba[1],Aa=se(function(Xt){ca(Xt)}),za=se(function(){ca(void 0)});(0,u.useImperativeHandle)(w,function(){return{list:zn.current,focus:function(St){var Ht,Mn=ya(),Rn=O(Mn,rn),la=Rn.elements,fa=Rn.key2element,Ua=Rn.element2key,xa=N(zn.current,la),Ea=aa!=null?aa:xa[0]?Ua.get(xa[0]):(Ht=Cn.find(function(ja){return!ja.props.disabled}))===null||Ht===void 0?void 0:Ht.key,ra=fa.get(Ea);if(Ea&&ra){var da;ra==null||(da=ra.focus)===null||da===void 0||da.call(ra,St)}}}});var La=(0,ve.Z)(ft||[],{value:ht,postState:function(St){return Array.isArray(St)?St:St==null?$t:[St]}}),Ca=(0,Y.Z)(La,2),sa=Ca[0],Ba=Ca[1],ka=function(St){if(yt){var Ht=St.key,Mn=sa.includes(Ht),Rn;Rt?Mn?Rn=sa.filter(function(fa){return fa!==Ht}):Rn=[].concat((0,tt.Z)(sa),[Ht]):Rn=[Ht],Ba(Rn);var la=(0,g.Z)((0,g.Z)({},St),{},{selectedKeys:Rn});Mn?Kt==null||Kt(la):ot==null||ot(la)}!Rt&&Wt.length&&Zn!=="inline"&&Sn($t)},Wa=se(function(Xt){an==null||an(Je(Xt)),ka(Xt)}),wa=se(function(Xt,St){var Ht=Wt.filter(function(Rn){return Rn!==Xt});if(St)Ht.push(Xt);else if(Zn!=="inline"){var Mn=Pa(Xt);Ht=Ht.filter(function(Rn){return!Mn.has(Rn)})}(0,Be.Z)(Wt,Ht,!0)||Sn(Ht,!0)}),Fa=function(St,Ht){var Mn=Ht!=null?Ht:!Wt.includes(St);wa(St,Mn)},Ha=V(Zn,aa,En,rn,zn,ya,Za,ca,Fa,Nn);u.useEffect(function(){$n(!0)},[]);var $a=u.useMemo(function(){return{_internalRenderMenuItem:kn,_internalRenderSubMenuItem:Wn}},[kn,Wn]),Ka=Zn!=="horizontal"||te?Cn:Cn.map(function(Xt,St){return u.createElement(L,{key:Xt.key,overflowDisabled:St>oa},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(Zn),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 Ht=St.length,Mn=Ht?Cn.slice(-Ht):null;return u.createElement(pt,{eventKey:ye,title:nn,disabled:ua,internalPopupClose:Ht===0,popupClassName:yn},Mn)},maxCount:Zn!=="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:Zn,openKeys:Wt,rtl:En,disabled:Ce,motion:Un?tn:null,defaultMotions:Un?gn:null,activeKey:aa,onActive:Aa,onInactive:za,selectedKeys:sa,inlineIndent:dn,subMenuOpenDelay:Oe,subMenuCloseDelay:Ge,forceSubMenuRender:it,builtinPlacements:xn,triggerSubMenuAction:Jt,getPopupContainer:In,itemIcon:cn,expandIcon:pn,onItemClick:Wa,onOpenChange:wa},u.createElement(de.Provider,{value:Ta},Va),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(A.Provider,{value:Ia},Xn)))))}),On=bn,Pe=On;Pe.Item=ge,Pe.SubMenu=pt,Pe.ItemGroup=Dn,Pe.Divider=Vt;var Ye=Pe},11780:function(hn,st,l){"use strict";l.d(st,{Z:function(){return Q}});var I=l(54476),P=l(33885),g=l(42978),tt=l(75931),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,Ze=b.className,Re=b.style,Me=b.children,dt=b.display,lt=b.order,Ct=b.component,h=Ct===void 0?"div":Ct,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 oe={};y&&(oe["aria-hidden"]=!0);var fe=Y.createElement(h,(0,I.Z)({className:H()(!J&&he,Ze),style:(0,P.Z)((0,P.Z)({},_),Re)},oe,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),bt=l(4676),nt=l(16089);function Ne(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=[],Ne(function(){(0,bt.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,Ze=(0,tt.Z)($,A);return Y.createElement(T.Provider,{value:null},Y.createElement(z,(0,I.Z)({ref:he,className:H()(ee,we)},j,Ze)))},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,Ze=we===void 0?10:we,Re=b.ssr,Me=b.style,dt=b.className,lt=b.maxCount,Ct=b.renderRest,h=b.renderRawRest,N=b.suffix,y=b.component,O=y===void 0?"div":y,V=b.itemComponent,_=b.onVisibleChange,oe=(0,tt.Z)(b,de),fe=Re==="full",me=He(),ye=K(me,null),ke=(0,g.Z)(ye,2),se=ke[0],_e=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),Dt=ct[0],Je=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],Qe=It[1],be=(0,Y.useState)(null),Tt=(0,g.Z)(be,2),Mt=Tt[0],Nt=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,Dt),Bt=lt===Ke,zt=ce.length&&Bt,en=lt===E,_t=zt||typeof lt=="number"&&ce.length>lt,Lt=(0,Y.useMemo)(function(){var Pe=ce;return zt?se===null&&fe?Pe=ce:Pe=ce.slice(0,Math.min(ce.length,q/Ze)):typeof lt=="number"&&(Pe=ce.slice(0,lt)),Pe},[ce,Ze,se,lt,zt]),Zt=(0,Y.useMemo)(function(){return zt?ce.slice(Te+1):ce.slice(Lt.length)},[ce,Lt,zt,Te]),je=(0,Y.useCallback)(function(Pe,Ye){var s;return typeof j=="function"?j(Pe):(s=j&&(Pe==null?void 0:Pe[j]))!==null&&s!==void 0?s:Ye},[j]),Le=(0,Y.useCallback)(Se||function(Pe){return Pe},[Se]);function pt(Pe,Ye,s){Mt===Pe&&(Ye===void 0||Ye===ge)||(Nt(Pe),s||(gt(Pe<ce.length-1),_==null||_(Pe)),Ye!==void 0&&Qe(Ye))}function Pt(Pe,Ye){_e(Ye.clientWidth)}function Vt(Pe,Ye){Ve(function(s){var w=new Map(s);return Ye===null?w.delete(Pe):w.set(Pe,Ye),w})}function wn(Pe,Ye){Je(Ye),Fe(Dt)}function Qt(Pe,Ye){Ie(Ye)}function mn(Pe){return G.get(je(Lt[Pe],Pe))}(0,U.Z)(function(){if(q&&typeof At=="number"&&Lt){var Pe=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(Pe+=S,s===0&&Pe<=q||w===s-1&&Pe+mn(s)<=q){pt(s,null);break}else if(Pe+At>q){pt(w-1,Pe-S-Ee+Dt);break}}N&&mn(0)+Ee>q&&Qe(null)}},[q,G,Dt,Ee,je,Lt]);var Dn=ln&&!!Zt.length,vt={};ge!==null&&zt&&(vt={position:"absolute",left:ge,top:0});var un={prefixCls:Ot,responsive:zt,component:V,invalidate:en},kt=ee?function(Pe,Ye){var s=je(Pe,Ye);return Y.createElement(T.Provider,{key:s,value:(0,P.Z)((0,P.Z)({},un),{},{order:Ye,item:Pe,itemKey:s,registerSize:Vt,display:Ye<=Te})},ee(Pe,Ye))}:function(Pe,Ye){var s=je(Pe,Ye);return Y.createElement(z,(0,I.Z)({},un,{order:Ye,key:s,item:Pe,renderItem:Le,itemKey:s,registerSize:Vt,display:Ye<=Te}))},Pn={order:Dn?Te:Number.MAX_SAFE_INTEGER,className:"".concat(Ot,"-rest"),registerSize:wn,display:Dn},$t=Ct||p,bn=h?Y.createElement(T.Provider,{value:(0,P.Z)((0,P.Z)({},un),Pn)},h(Zt)):Y.createElement(z,(0,I.Z)({},un,Pn),typeof $t=="function"?$t(Zt):$t),On=Y.createElement(O,(0,I.Z)({className:H()(!en&&J,dt),style:Me,ref:$},oe),Lt.map(kt),_t?bn:null,N&&Y.createElement(z,(0,I.Z)({},un,{responsive:Bt,responsiveDisabled:!zt,order:Te,className:"".concat(Ot,"-suffix"),registerSize:Qt,display:!0,style:vt}),N));return Bt?Y.createElement(ue.Z,{onResize:Pt,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(54476),P=l(59301),g=l(11592),tt=l(48736),Y=l(33885),X=l(76190),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,bt=null;function nt(p,D){xe.has(p)||(xe.set(p,new Set),z.observe(p)),xe.get(p).add(D)}function Ne(p,D){xe.has(p)&&(xe.get(p).delete(D),xe.get(p).size||(z.unobserve(p),xe.delete(p)))}var He=l(67732),K=l(83652),T=l(42403),L=l(158),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 Ze=P.useCallback(function(Re){var Me=we.current,dt=Me.onResize,lt=Me.data,Ct=Re.getBoundingClientRect(),h=Ct.width,N=Ct.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 oe={width:V,height:_,offsetWidth:y,offsetHeight:O};re.current=oe;var fe=y===Math.round(h)?h:y,me=O===Math.round(N)?N:O,ye=(0,Y.Z)((0,Y.Z)({},oe),{},{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,Ze),function(){return Ne(Re,Ze)}},[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(54476),P=l(20068),g=l(33885),tt=l(94480),Y=l(42978),X=l(75931),H=l(92310),ue=l.n(H),U=l(36901),ve=l(66003),Be=l(30292),xe=l(18929),u=l(59301),z=l(76190),rt=l(29301),bt=l(34280),nt=l(16089),Ne=`
|
|
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(Ne)),T.value=R.value||R.placeholder||"";var ee=void 0,j=void 0,we,Ze=T.scrollHeight;if(ce==="border-box"?Ze+=re:ce==="content-box"&&(Ze-=J),b!==null||$!==null){T.value=" ";var Re=T.scrollHeight-J;b!==null&&(ee=Re*b,ce==="border-box"&&(ee=ee+J+re),Ze=Math.max(ee,Ze)),$!==null&&(j=Re*$,ce==="border-box"&&(j=j+J+re),we=Ze>j?"":"hidden",Ze=Math.min(j,Ze))}var Me={height:Ze,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,Ze=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],Ct=dt[1],h=function(ct){Ct(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],oe=!!re,fe=function(){try{if(document.activeElement===N.current){var ct=N.current,Dt=ct.selectionStart,Je=ct.selectionEnd,$e=ct.scrollTop;N.current.setSelectionRange(Dt,Je),N.current.scrollTop=$e}}catch(Gt){}},me=u.useState(F),ye=(0,Y.Z)(me,2),ke=ye[0],se=ye[1],_e=u.useState(),q=(0,Y.Z)(_e,2),We=q[0],et=q[1],G=function(){se(c)};(0,bt.Z)(function(){oe&&G()},[J,V,_,oe]),(0,bt.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=oe?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,Ze=R.suffix,Re=R.prefixCls,Me=Re===void 0?"rc-textarea":Re,dt=R.showCount,lt=R.count,Ct=R.className,h=R.style,N=R.disabled,y=R.hidden,O=R.classNames,V=R.styles,_=R.onResize,oe=R.onClear,fe=R.onPressEnter,me=R.readOnly,ye=R.autoSize,ke=R.onKeyDown,se=(0,X.Z)(R,E),_e=(0,xe.Z)($,{value:he,defaultValue:$}),q=(0,Y.Z)(_e,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),Dt=ct[0],Je=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],Qe=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,Nt=be.strategy(G),Te=!!Tt&&Nt>Tt,sn=function(Le,pt){var Pt=pt;!Fe.current&&be.exceedFormatter&&be.max&&be.strategy(pt)>be.max&&(Pt=be.exceedFormatter(pt,{max:be.max}),pt!==Pt&&Qe([Ee().selectionStart||0,Ee().selectionEnd||0])),et(Pt),(0,Be.rJ)(Le.currentTarget,Le,ce,Pt)},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)},Bt=function(Le){at(!1),re==null||re(Le)},zt=function(Le){et(""),Ie(),(0,Be.rJ)(Ee(),Le,ce)},en=Ze,_t;be.show&&(be.showFormatter?_t=be.showFormatter({value:G,count:Nt,maxLength:Tt}):_t="".concat(Nt).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&&Je(!0)},Zt=!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()(Ct,Te&&"".concat(Me,"-out-of-range")),style:(0,g.Z)((0,g.Z)({},h),Dt&&!Zt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _t=="string"?_t:void 0}},hidden:y,readOnly:me,onClear:oe},u.createElement(Ke,(0,I.Z)({},se,{autoSize:ye,maxLength:ee,onKeyDown:Ot,onChange:gt,onFocus:At,onBlur:Bt,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 Ne}});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(54476),X=l(33885),H=l(75931),ue=l(65030),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"],bt=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,Ze=K.overlayInnerStyle,Re=K.arrowContent,Me=K.overlay,dt=K.id,lt=K.showArrow,Ct=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 oe=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)({},Ze),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:oe,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:Ct},_),fe())},nt=(0,g.forwardRef)(bt),Ne=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 bt(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 Ne=["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=Ne.slice(4),K=function(L){bt(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 Ne.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 bt(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 Ne(E){var p=E.clientWidth,D=E.clientHeight;if(!p&&!D)return u;var M=xe(E).getComputedStyle(E),R=bt(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):Ne(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}}]);
|