"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3509],{65030:function(A,e,n){n.d(e,{Z:function(){return K}});var t=n(33885),f=n(42978),r=n(75931),v=n(43403),g=n(92310),P=n.n(g),B=n(29301),s=n(76846),l=n(96452),d=n(6089),c=n(80402),b=n(34280),z=n(49658),D=n(59301),a=n(54476),u=n(77900),y=n(8654);function H(A){var e=A.prefixCls,n=A.align,t=A.arrow,f=A.arrowPos,r=t||{},v=r.className,g=r.content,B=f.x,s=void 0===B?0:B,l=f.y,d=void 0===l?0:l,c=D.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(!1!==n.autoArrow){var z=n.points[0],a=n.points[1],u=z[0],y=z[1],H=a[0],p=a[1];u!==H&&["t","b"].includes(u)?"t"===u?b.top=0:b.bottom=0:b.top=d,y!==p&&["l","r"].includes(y)?"l"===y?b.left=0:b.right=0:b.left=s}return D.createElement("div",{ref:c,className:P()("".concat(e,"-arrow"),v),style:b},g)}function p(A){var e=A.prefixCls,n=A.open,t=A.zIndex,f=A.mask,r=A.motion;return f?D.createElement(u.default,(0,a.Z)({},r,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(A){var n=A.className;return D.createElement("div",{style:{zIndex:t},className:P()("".concat(e,"-mask"),n)})})):null}var X=D.memo((function(A){return A.children}),(function(A,e){return e.cache}));var Z=D.forwardRef((function(A,e){var n=A.popup,r=A.className,v=A.prefixCls,g=A.style,s=A.target,l=A.onVisibleChanged,d=A.open,c=A.keepDom,z=A.fresh,Z=A.onClick,o=A.mask,w=A.arrow,O=A.arrowPos,j=A.align,m=A.motion,N=A.maskMotion,M=A.forceRender,x=A.getPopupContainer,L=A.autoDestroy,T=A.portal,Q=A.zIndex,i=A.onMouseEnter,k=A.onMouseLeave,C=A.onPointerEnter,G=A.onPointerDownCapture,W=A.ready,I=A.offsetX,J=A.offsetY,S=A.offsetR,E=A.offsetB,V=A.onAlign,Y=A.onPrepare,R=A.stretch,K=A.targetWidth,h=A.targetHeight,U="function"==typeof n?n():n,F=d||c,q=(null==x?void 0:x.length)>0,_=D.useState(!x||!q),$=(0,f.Z)(_,2),AA=$[0],eA=$[1];if((0,b.Z)((function(){!AA&&q&&s&&eA(!0)}),[AA,q,s]),!AA)return null;var nA="auto",tA={left:"-1000vw",top:"-1000vh",right:nA,bottom:nA};if(W||!d){var fA,rA=j.points,vA=j.dynamicInset||(null===(fA=j._experimental)||void 0===fA?void 0:fA.dynamicInset),gA=vA&&"r"===rA[0][1],PA=vA&&"b"===rA[0][0];gA?(tA.right=S,tA.left=nA):(tA.left=I,tA.right=nA),PA?(tA.bottom=E,tA.top=nA):(tA.top=J,tA.bottom=nA)}var BA={};return R&&(R.includes("height")&&h?BA.height=h:R.includes("minHeight")&&h&&(BA.minHeight=h),R.includes("width")&&K?BA.width=K:R.includes("minWidth")&&K&&(BA.minWidth=K)),d||(BA.pointerEvents="none"),D.createElement(T,{open:M||F,getContainer:x&&function(){return x(s)},autoDestroy:L},D.createElement(p,{prefixCls:v,open:d,zIndex:Q,mask:o,motion:N}),D.createElement(B.Z,{onResize:V,disabled:!d},(function(A){return D.createElement(u.default,(0,a.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(v,"-hidden")},m,{onAppearPrepare:Y,onEnterPrepare:Y,visible:d,onVisibleChanged:function(A){var e;null==m||null===(e=m.onVisibleChanged)||void 0===e||e.call(m,A),l(A)}}),(function(n,f){var B=n.className,s=n.style,l=P()(v,B,r);return D.createElement("div",{ref:(0,y.sQ)(A,e,f),className:l,style:(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({"--arrow-x":"".concat(O.x||0,"px"),"--arrow-y":"".concat(O.y||0,"px")},tA),BA),s),{},{boxSizing:"border-box",zIndex:Q},g),onMouseEnter:i,onMouseLeave:k,onPointerEnter:C,onClick:Z,onPointerDownCapture:G},w&&D.createElement(H,{prefixCls:v,arrow:w,arrowPos:O,align:j}),D.createElement(X,{cache:!d&&!z},U))}))})))}));var o=D.forwardRef((function(A,e){var n=A.children,t=A.getTriggerDOMNode,f=(0,y.Yr)(n),r=D.useCallback((function(A){(0,y.mH)(e,t?t(A):A)}),[t]),v=(0,y.x1)(r,(0,y.C4)(n));return f?D.cloneElement(n,{ref:v}):n})),w=D.createContext(null);function O(A){return A?Array.isArray(A)?A:[A]:[]}function j(A,e,n,t){return D.useMemo((function(){var f=O(null!=n?n:e),r=O(null!=t?t:e),v=new Set(f),g=new Set(r);return A&&(v.has("hover")&&(v.delete("hover"),v.add("click")),g.has("hover")&&(g.delete("hover"),g.add("click"))),[v,g]}),[A,e,n,t])}var m=n(29194);function N(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?A[0]===e[0]:A[0]===e[0]&&A[1]===e[1]}function M(A,e,n,t){for(var f=n.points,r=Object.keys(A),v=0;v1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(A)?e:A}function i(A){return Q(parseFloat(A),0)}function k(A,e){var n=(0,t.Z)({},A);return(e||[]).forEach((function(A){if(!(A instanceof HTMLBodyElement||A instanceof HTMLHtmlElement)){var e=L(A).getComputedStyle(A),t=e.overflow,f=e.overflowClipMargin,r=e.borderTopWidth,v=e.borderBottomWidth,g=e.borderLeftWidth,P=e.borderRightWidth,B=A.getBoundingClientRect(),s=A.offsetHeight,l=A.clientHeight,d=A.offsetWidth,c=A.clientWidth,b=i(r),z=i(v),D=i(g),a=i(P),u=Q(Math.round(B.width/d*1e3)/1e3),y=Q(Math.round(B.height/s*1e3)/1e3),H=(d-c-D-a)*u,p=(s-l-b-z)*y,X=b*y,Z=z*y,o=D*u,w=a*u,O=0,j=0;if("clip"===t){var m=i(f);O=m*u,j=m*y}var N=B.x+o-O,M=B.y+X-j,x=N+B.width+2*O-o-w-H,T=M+B.height+2*j-X-Z-p;n.left=Math.max(n.left,N),n.top=Math.max(n.top,M),n.right=Math.min(n.right,x),n.bottom=Math.min(n.bottom,T)}})),n}function C(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),t=n.match(/^(.*)\%$/);return t?A*(parseFloat(t[1])/100):parseFloat(n)}function G(A,e){var n=e||[],t=(0,f.Z)(n,2),r=t[0],v=t[1];return[C(A.width,r),C(A.height,v)]}function W(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[A[0],A[1]]}function I(A,e){var n,t=e[0],f=e[1];return n="t"===t?A.y:"b"===t?A.y+A.height:A.y+A.height/2,{x:"l"===f?A.x:"r"===f?A.x+A.width:A.x+A.width/2,y:n}}function J(A,e){var n={t:"b",b:"t",l:"r",r:"l"};return A.map((function(A,t){return t===e?n[A]||"c":A})).join("")}function S(A,e,n,r,v,g,P){var B=D.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:v[r]||{}}),l=(0,f.Z)(B,2),c=l[0],z=l[1],a=D.useRef(0),u=D.useMemo((function(){return e?T(e):[]}),[e]),y=D.useRef({});A||(y.current={});var H=(0,d.Z)((function(){if(e&&n&&A){var B,l,d,c,b,D=e,a=D.ownerDocument,H=L(D),p=H.getComputedStyle(D).position,X=D.style.left,Z=D.style.top,o=D.style.right,w=D.style.bottom,O=D.style.overflow,j=(0,t.Z)((0,t.Z)({},v[r]),g),N=a.createElement("div");if(null===(B=D.parentElement)||void 0===B||B.appendChild(N),N.style.left="".concat(D.offsetLeft,"px"),N.style.top="".concat(D.offsetTop,"px"),N.style.position=p,N.style.height="".concat(D.offsetHeight,"px"),N.style.width="".concat(D.offsetWidth,"px"),D.style.left="0",D.style.top="0",D.style.right="auto",D.style.bottom="auto",D.style.overflow="hidden",Array.isArray(n))b={x:n[0],y:n[1],width:0,height:0};else{var M,x,T=n.getBoundingClientRect();T.x=null!==(M=T.x)&&void 0!==M?M:T.left,T.y=null!==(x=T.y)&&void 0!==x?x:T.top,b={x:T.x,y:T.y,width:T.width,height:T.height}}var i=D.getBoundingClientRect(),C=H.getComputedStyle(D),S=C.height,E=C.width;i.x=null!==(l=i.x)&&void 0!==l?l:i.left,i.y=null!==(d=i.y)&&void 0!==d?d:i.top;var V=a.documentElement,Y=V.clientWidth,R=V.clientHeight,K=V.scrollWidth,h=V.scrollHeight,U=V.scrollTop,F=V.scrollLeft,q=i.height,_=i.width,$=b.height,AA=b.width,eA={left:0,top:0,right:Y,bottom:R},nA={left:-F,top:-U,right:K-F,bottom:h-U},tA=j.htmlRegion,fA="visible",rA="visibleFirst";"scroll"!==tA&&tA!==rA&&(tA=fA);var vA=tA===rA,gA=k(nA,u),PA=k(eA,u),BA=tA===fA?PA:gA,sA=vA?PA:BA;D.style.left="auto",D.style.top="auto",D.style.right="0",D.style.bottom="0";var lA=D.getBoundingClientRect();D.style.left=X,D.style.top=Z,D.style.right=o,D.style.bottom=w,D.style.overflow=O,null===(c=D.parentElement)||void 0===c||c.removeChild(N);var dA=Q(Math.round(_/parseFloat(E)*1e3)/1e3),cA=Q(Math.round(q/parseFloat(S)*1e3)/1e3);if(0===dA||0===cA||(0,s.Sh)(n)&&!(0,m.Z)(n))return;var bA=j.offset,zA=j.targetOffset,DA=G(i,bA),aA=(0,f.Z)(DA,2),uA=aA[0],yA=aA[1],HA=G(b,zA),pA=(0,f.Z)(HA,2),XA=pA[0],ZA=pA[1];b.x-=XA,b.y-=ZA;var oA=j.points||[],wA=(0,f.Z)(oA,2),OA=wA[0],jA=W(wA[1]),mA=W(OA),NA=I(b,jA),MA=I(i,mA),xA=(0,t.Z)({},j),LA=NA.x-MA.x+uA,TA=NA.y-MA.y+yA;function Oe(A,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:BA,t=i.x+A,f=i.y+e,r=t+_,v=f+q,g=Math.max(t,n.left),P=Math.max(f,n.top),B=Math.min(r,n.right),s=Math.min(v,n.bottom);return Math.max(0,(B-g)*(s-P))}var QA,iA,kA,CA,GA=Oe(LA,TA),WA=Oe(LA,TA,PA),IA=I(b,["t","l"]),JA=I(i,["t","l"]),SA=I(b,["b","r"]),EA=I(i,["b","r"]),VA=j.overflow||{},YA=VA.adjustX,RA=VA.adjustY,KA=VA.shiftX,hA=VA.shiftY,UA=function(A){return"boolean"==typeof A?A:A>=0};function je(){QA=i.y+TA,iA=QA+q,kA=i.x+LA,CA=kA+_}je();var FA=UA(RA),qA=mA[0]===jA[0];if(FA&&"t"===mA[0]&&(iA>sA.bottom||y.current.bt)){var _A=TA;qA?_A-=q-$:_A=IA.y-EA.y-yA;var $A=Oe(LA,_A),Ae=Oe(LA,_A,PA);$A>GA||$A===GA&&(!vA||Ae>=WA)?(y.current.bt=!0,TA=_A,yA=-yA,xA.points=[J(mA,0),J(jA,0)]):y.current.bt=!1}if(FA&&"b"===mA[0]&&(QAGA||ne===GA&&(!vA||te>=WA)?(y.current.tb=!0,TA=ee,yA=-yA,xA.points=[J(mA,0),J(jA,0)]):y.current.tb=!1}var fe=UA(YA),re=mA[1]===jA[1];if(fe&&"l"===mA[1]&&(CA>sA.right||y.current.rl)){var ve=LA;re?ve-=_-AA:ve=IA.x-EA.x-uA;var ge=Oe(ve,TA),Pe=Oe(ve,TA,PA);ge>GA||ge===GA&&(!vA||Pe>=WA)?(y.current.rl=!0,LA=ve,uA=-uA,xA.points=[J(mA,1),J(jA,1)]):y.current.rl=!1}if(fe&&"r"===mA[1]&&(kAGA||se===GA&&(!vA||le>=WA)?(y.current.lr=!0,LA=Be,uA=-uA,xA.points=[J(mA,1),J(jA,1)]):y.current.lr=!1}je();var de=!0===KA?0:KA;"number"==typeof de&&(kAPA.right&&(LA-=CA-PA.right-uA,b.x>PA.right-de&&(LA+=b.x-PA.right+de)));var ce=!0===hA?0:hA;"number"==typeof ce&&(QAPA.bottom&&(TA-=iA-PA.bottom-yA,b.y>PA.bottom-ce&&(TA+=b.y-PA.bottom+ce)));var be=i.x+LA,ze=be+_,De=i.y+TA,ae=De+q,ue=b.x,ye=ue+AA,He=b.y,pe=He+$,Xe=(Math.max(be,ue)+Math.min(ze,ye))/2-be,Ze=(Math.max(De,He)+Math.min(ae,pe))/2-De;null==P||P(e,xA);var oe=lA.right-i.x-(LA+i.width),we=lA.bottom-i.y-(TA+i.height);1===dA&&(LA=Math.round(LA),oe=Math.round(oe)),1===cA&&(TA=Math.round(TA),we=Math.round(we)),z({ready:!0,offsetX:LA/dA,offsetY:TA/cA,offsetR:oe/dA,offsetB:we/cA,arrowX:Xe/dA,arrowY:Ze/cA,scaleX:dA,scaleY:cA,align:xA})}})),p=function(){z((function(A){return(0,t.Z)((0,t.Z)({},A),{},{ready:!1})}))};return(0,b.Z)(p,[r]),(0,b.Z)((function(){A||p()}),[A]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){a.current+=1;var A=a.current;Promise.resolve().then((function(){a.current===A&&H()}))}]}var E=n(94480);function V(A,e,n,t,f){(0,b.Z)((function(){if(A&&e&&n){var r=n,v=T(e),g=T(r),P=L(r),B=new Set([P].concat((0,E.Z)(v),(0,E.Z)(g)));function s(){t(),f()}return B.forEach((function(A){A.addEventListener("scroll",s,{passive:!0})})),P.addEventListener("resize",s,{passive:!0}),t(),function(){B.forEach((function(A){A.removeEventListener("scroll",s),P.removeEventListener("resize",s)}))}}}),[A,e,n])}n(48736);function Y(A,e,n,t,f,r,v,g){var P=D.useRef(A);P.current=A;var B=D.useRef(!1);return D.useEffect((function(){if(e&&t&&(!f||r)){var A=function(){B.current=!1},s=function(A){var e;!P.current||v((null===(e=A.composedPath)||void 0===e||null===(e=e.call(A))||void 0===e?void 0:e[0])||A.target)||B.current||g(!1)},d=L(t);d.addEventListener("pointerdown",A,!0),d.addEventListener("mousedown",s,!0),d.addEventListener("contextmenu",s,!0);var c=(0,l.A)(n);return c&&(c.addEventListener("mousedown",s,!0),c.addEventListener("contextmenu",s,!0)),function(){d.removeEventListener("pointerdown",A,!0),d.removeEventListener("mousedown",s,!0),d.removeEventListener("contextmenu",s,!0),c&&(c.removeEventListener("mousedown",s,!0),c.removeEventListener("contextmenu",s,!0))}}}),[e,n,t,f,r]),function(){B.current=!0}}var R=["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"];var K=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.Z,e=D.forwardRef((function(e,n){var v=e.prefixCls,g=void 0===v?"rc-trigger-popup":v,a=e.children,u=e.action,y=void 0===u?"hover":u,H=e.showAction,p=e.hideAction,X=e.popupVisible,O=e.defaultPopupVisible,m=e.onPopupVisibleChange,N=e.afterPopupVisibleChange,L=e.mouseEnterDelay,T=e.mouseLeaveDelay,Q=void 0===T?.1:T,i=e.focusDelay,k=e.blurDelay,C=e.mask,G=e.maskClosable,W=void 0===G||G,I=e.getPopupContainer,J=e.forceRender,E=e.autoDestroy,K=e.destroyPopupOnHide,h=e.popup,U=e.popupClassName,F=e.popupStyle,q=e.popupPlacement,_=e.builtinPlacements,$=void 0===_?{}:_,AA=e.popupAlign,eA=e.zIndex,nA=e.stretch,tA=e.getPopupClassNameFromAlign,fA=e.fresh,rA=e.alignPoint,vA=e.onPopupClick,gA=e.onPopupAlign,PA=e.arrow,BA=e.popupMotion,sA=e.maskMotion,lA=e.popupTransitionName,dA=e.popupAnimation,cA=e.maskTransitionName,bA=e.maskAnimation,zA=e.className,DA=e.getTriggerDOMNode,aA=(0,r.Z)(e,R),uA=E||K||!1,yA=D.useState(!1),HA=(0,f.Z)(yA,2),pA=HA[0],XA=HA[1];(0,b.Z)((function(){XA((0,z.Z)())}),[]);var ZA=D.useRef({}),oA=D.useContext(w),wA=D.useMemo((function(){return{registerSubPopup:function(A,e){ZA.current[A]=e,null==oA||oA.registerSubPopup(A,e)}}}),[oA]),OA=(0,c.Z)(),jA=D.useState(null),mA=(0,f.Z)(jA,2),NA=mA[0],MA=mA[1],xA=D.useRef(null),LA=(0,d.Z)((function(A){xA.current=A,(0,s.Sh)(A)&&NA!==A&&MA(A),null==oA||oA.registerSubPopup(OA,A)})),TA=D.useState(null),QA=(0,f.Z)(TA,2),iA=QA[0],kA=QA[1],CA=D.useRef(null),GA=(0,d.Z)((function(A){(0,s.Sh)(A)&&iA!==A&&(kA(A),CA.current=A)})),WA=D.Children.only(a),IA=(null==WA?void 0:WA.props)||{},JA={},SA=(0,d.Z)((function(A){var e,n,t=iA;return(null==t?void 0:t.contains(A))||(null===(e=(0,l.A)(t))||void 0===e?void 0:e.host)===A||A===t||(null==NA?void 0:NA.contains(A))||(null===(n=(0,l.A)(NA))||void 0===n?void 0:n.host)===A||A===NA||Object.values(ZA.current).some((function(e){return(null==e?void 0:e.contains(A))||A===e}))})),EA=x(g,BA,dA,lA),VA=x(g,sA,bA,cA),YA=D.useState(O||!1),RA=(0,f.Z)(YA,2),KA=RA[0],hA=RA[1],UA=null!=X?X:KA,FA=(0,d.Z)((function(A){void 0===X&&hA(A)}));(0,b.Z)((function(){hA(X||!1)}),[X]);var qA=D.useRef(UA);qA.current=UA;var _A=D.useRef([]);_A.current=[];var $A=(0,d.Z)((function(A){var e;FA(A),(null!==(e=_A.current[_A.current.length-1])&&void 0!==e?e:UA)!==A&&(_A.current.push(A),null==m||m(A))})),Ae=D.useRef(),ee=function(){clearTimeout(Ae.current)},ne=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ee(),0===e?$A(A):Ae.current=setTimeout((function(){$A(A)}),1e3*e)};D.useEffect((function(){return ee}),[]);var te=D.useState(!1),fe=(0,f.Z)(te,2),re=fe[0],ve=fe[1];(0,b.Z)((function(A){A&&!UA||ve(!0)}),[UA]);var ge=D.useState(null),Pe=(0,f.Z)(ge,2),Be=Pe[0],se=Pe[1],le=D.useState(null),de=(0,f.Z)(le,2),ce=de[0],be=de[1],ze=function(A){be([A.clientX,A.clientY])},De=S(UA,NA,rA&&null!==ce?ce:iA,q,$,AA,gA),ae=(0,f.Z)(De,11),ue=ae[0],ye=ae[1],He=ae[2],pe=ae[3],Xe=ae[4],Ze=ae[5],oe=ae[6],we=ae[7],Oe=ae[8],je=ae[9],me=ae[10],Ne=j(pA,y,H,p),Me=(0,f.Z)(Ne,2),xe=Me[0],Le=Me[1],Te=xe.has("click"),Qe=Le.has("click")||Le.has("contextMenu"),ie=(0,d.Z)((function(){re||me()}));V(UA,iA,NA,ie,(function(){qA.current&&rA&&Qe&&ne(!1)})),(0,b.Z)((function(){ie()}),[ce,q]),(0,b.Z)((function(){!UA||null!=$&&$[q]||ie()}),[JSON.stringify(AA)]);var ke=D.useMemo((function(){var A=M($,g,je,rA);return P()(A,null==tA?void 0:tA(je))}),[je,tA,$,g,rA]);D.useImperativeHandle(n,(function(){return{nativeElement:CA.current,popupElement:xA.current,forceAlign:ie}}));var Ce=D.useState(0),Ge=(0,f.Z)(Ce,2),We=Ge[0],Ie=Ge[1],Je=D.useState(0),Se=(0,f.Z)(Je,2),Ee=Se[0],Ve=Se[1],Ye=function(){if(nA&&iA){var A=iA.getBoundingClientRect();Ie(A.width),Ve(A.height)}};function Re(A,e,n,t){JA[A]=function(f){var r;null==t||t(f),ne(e,n);for(var v=arguments.length,g=new Array(v>1?v-1:0),P=1;P1?n-1:0),f=1;f1?n-1:0),f=1;f{const{href:e,title:n,prefixCls:t,children:r,className:g,target:P,replace:B}=A,s=f.useContext(b),{registerLink:l,unregisterLink:c,scrollTo:z,onClick:D,activeLink:a,direction:u}=s||{};f.useEffect((()=>(null==l||l(e),()=>{null==c||c(e)})),[e]);const{getPrefixCls:y}=f.useContext(d.E_),H=y("anchor",t),p=a===e,X=v()(`${H}-link`,g,{[`${H}-link-active`]:p}),Z=v()(`${H}-link-title`,{[`${H}-link-title-active`]:p});return f.createElement("div",{className:X},f.createElement("a",{className:Z,href:e,title:"string"==typeof n?n:"",target:P,onClick:A=>{null==D||D(A,{title:n,href:e}),null==z||z(e),B&&(A.preventDefault(),window.location.replace(e))}},n),"horizontal"!==u?r:null)},D=n(36237),a=n(63356),u=n(16931),y=n(51636);const H=A=>{const{componentCls:e,holderOffsetBlock:n,motionDurationSlow:t,lineWidthBold:f,colorPrimary:r,lineType:v,colorSplit:g,calc:P}=A;return{[`${e}-wrapper`]:{marginBlockStart:P(n).mul(-1).equal(),paddingBlockStart:n,[e]:Object.assign(Object.assign({},(0,a.Wf)(A)),{position:"relative",paddingInlineStart:f,[`${e}-link`]:{paddingBlock:A.linkPaddingBlock,paddingInline:`${(0,D.unit)(A.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},a.vS),{position:"relative",display:"block",marginBlockEnd:A.anchorTitleBlock,color:A.colorText,transition:`all ${A.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${e}-link-title`]:{color:A.colorPrimary},[`${e}-link`]:{paddingBlock:A.anchorPaddingBlockSecondary}}}),[`&:not(${e}-wrapper-horizontal)`]:{[e]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${(0,D.unit)(f)} ${v} ${g}`,content:'" "'},[`${e}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${t} ease-in-out`,width:f,backgroundColor:r,[`&${e}-ink-visible`]:{display:"inline-block"}}}},[`${e}-fixed ${e}-ink ${e}-ink`]:{display:"none"}}}},p=A=>{const{componentCls:e,motionDurationSlow:n,lineWidthBold:t,colorPrimary:f}=A;return{[`${e}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,D.unit)(A.lineWidth)} ${A.lineType} ${A.colorSplit}`,content:'" "'},[e]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${e}-link:first-of-type`]:{paddingInline:0},[`${e}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:t,backgroundColor:f}}}}};var X=(0,u.I$)("Anchor",(A=>{const{fontSize:e,fontSizeLG:n,paddingXXS:t,calc:f}=A,r=(0,y.mergeToken)(A,{holderOffsetBlock:t,anchorPaddingBlockSecondary:f(t).div(2).equal(),anchorTitleBlock:f(e).div(14).mul(3).equal(),anchorBallSize:f(n).div(2).equal()});return[H(r),p(r)]}),(A=>({linkPaddingBlock:A.paddingXXS,linkPaddingInlineStart:A.padding})));function Z(){return window}function o(A,e){if(!A.getClientRects().length)return 0;const n=A.getBoundingClientRect();return n.width||n.height?e===window?n.top-A.ownerDocument.documentElement.clientTop:n.top-e.getBoundingClientRect().top:n.top}const w=/#([\S ]+)$/;var O=A=>{var e;const{rootClassName:n,prefixCls:r,className:D,style:a,offsetTop:u,affix:y=!0,showInkInFixed:H=!1,children:p,items:O,direction:j="vertical",bounds:m,targetOffset:N,onClick:M,onChange:x,getContainer:L,getCurrentAnchor:T,replace:Q}=A;const[i,k]=f.useState([]),[C,G]=f.useState(null),W=f.useRef(C),I=f.useRef(null),J=f.useRef(null),S=f.useRef(!1),{direction:E,getPrefixCls:V,className:Y,style:R}=(0,d.dj)("anchor"),{getTargetContainer:K}=f.useContext(d.E_),h=V("anchor",r),U=(0,c.Z)(h),[F,q,_]=X(h,U),$=null!==(e=null!=L?L:K)&&void 0!==e?e:Z,AA=JSON.stringify(i),eA=(0,g.Z)((A=>{i.includes(A)||k((e=>[].concat((0,t.Z)(e),[A])))})),nA=(0,g.Z)((A=>{i.includes(A)&&k((e=>e.filter((e=>e!==A))))})),tA=(0,g.Z)((A=>{if(W.current===A)return;const e="function"==typeof T?T(A):A;G(e),W.current=e,null==x||x(A)})),fA=f.useCallback((()=>{if(S.current)return;const A=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const t=[],f=$();if(A.forEach((A=>{const r=w.exec(null==A?void 0:A.toString());if(!r)return;const v=document.getElementById(r[1]);if(v){const r=o(v,f);r<=e+n&&t.push({link:A,top:r})}})),t.length)return t.reduce(((A,e)=>e.top>A.top?e:A)).link;return""}(i,void 0!==N?N:u||0,m);tA(A)}),[AA,N,u]),rA=f.useCallback((A=>{tA(A);const e=w.exec(A);if(!e)return;const n=document.getElementById(e[1]);if(!n)return;const t=$();let f=(0,B.Z)(t)+o(n,t);f-=void 0!==N?N:u||0,S.current=!0,(0,s.Z)(f,{getContainer:$,callback(){S.current=!1}})}),[N,u]),vA=v()(q,_,U,n,`${h}-wrapper`,{[`${h}-wrapper-horizontal`]:"horizontal"===j,[`${h}-rtl`]:"rtl"===E},D,Y),gA=v()(h,{[`${h}-fixed`]:!y&&!H}),PA=v()(`${h}-ink`,{[`${h}-ink-visible`]:C}),BA=Object.assign(Object.assign({maxHeight:u?`calc(100vh - ${u}px)`:"100vh"},R),a),sA=A=>Array.isArray(A)?A.map((A=>f.createElement(z,Object.assign({replace:Q},A,{key:A.key}),"vertical"===j&&sA(A.children)))):null,lA=f.createElement("div",{ref:I,className:vA,style:BA},f.createElement("div",{className:gA},f.createElement("span",{className:PA,ref:J}),"items"in A?sA(O):p));f.useEffect((()=>{const A=$();return fA(),null==A||A.addEventListener("scroll",fA),()=>{null==A||A.removeEventListener("scroll",fA)}}),[AA]),f.useEffect((()=>{"function"==typeof T&&tA(T(W.current||""))}),[T]),f.useEffect((()=>{(()=>{var A;const e=null===(A=I.current)||void 0===A?void 0:A.querySelector(`.${h}-link-title-active`);if(e&&J.current){const{style:A}=J.current,n="horizontal"===j;A.top=n?"":`${e.offsetTop+e.clientHeight/2}px`,A.height=n?"":`${e.clientHeight}px`,A.left=n?`${e.offsetLeft}px`:"",A.width=n?`${e.clientWidth}px`:"",n&&(0,P.Z)(e,{scrollMode:"if-needed",block:"nearest"})}})()}),[j,T,AA,C]);const dA=f.useMemo((()=>({registerLink:eA,unregisterLink:nA,scrollTo:rA,activeLink:C,onClick:M,direction:j})),[C,M,rA,j]),cA=y&&"object"==typeof y?y:void 0;return F(f.createElement(b.Provider,{value:dA},y?f.createElement(l.Z,Object.assign({offsetTop:u,target:$},cA),lA):lA))};const j=O;j.Link=z;var m=j},24283:function(A,e,n){n.d(e,{Z:function(){return w}});var t=n(59301),f=n(54476),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},v=n(7657),g=function(A,e){return t.createElement(v.Z,(0,f.Z)({},A,{ref:e,icon:r}))};var P=t.forwardRef(g),B=n(92310),s=n.n(B),l=n(77900),d=n(2738),c=n(97224),b=n(22703),z=n(83010),D=n(41780),a=n(48755),u=n(36237),y=n(63356),H=n(16931),p=n(51636);const X=A=>{const{componentCls:e,backTopFontSize:n,backTopSize:t,zIndexPopup:f}=A;return{[e]:Object.assign(Object.assign({},(0,y.Wf)(A)),{position:"fixed",insetInlineEnd:A.backTopInlineEnd,insetBlockEnd:A.backTopBlockEnd,zIndex:f,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${e}-content`]:{width:t,height:t,overflow:"hidden",color:A.backTopColor,textAlign:"center",backgroundColor:A.backTopBackground,borderRadius:t,transition:`all ${A.motionDurationMid}`,"&:hover":{backgroundColor:A.backTopHoverBackground,transition:`all ${A.motionDurationMid}`}},[`${e}-icon`]:{fontSize:n,lineHeight:(0,u.unit)(t)}})}},Z=A=>{const{componentCls:e,screenMD:n,screenXS:t,backTopInlineEndMD:f,backTopInlineEndXS:r}=A;return{[`@media (max-width: ${(0,u.unit)(n)})`]:{[e]:{insetInlineEnd:f}},[`@media (max-width: ${(0,u.unit)(t)})`]:{[e]:{insetInlineEnd:r}}}};var o=(0,H.I$)("BackTop",(A=>{const{fontSizeHeading3:e,colorTextDescription:n,colorTextLightSolid:t,colorText:f,controlHeightLG:r,calc:v}=A,g=(0,p.mergeToken)(A,{backTopBackground:n,backTopColor:t,backTopHoverBackground:f,backTopFontSize:e,backTopSize:r,backTopBlockEnd:v(r).mul(1.25).equal(),backTopInlineEnd:v(r).mul(2.5).equal(),backTopInlineEndMD:v(r).mul(1.5).equal(),backTopInlineEndXS:v(r).mul(.5).equal()});return[X(g),Z(g)]}),(A=>({zIndexPopup:A.zIndexBase+10})));var w=A=>{const{prefixCls:e,className:n,rootClassName:f,visibilityHeight:r=400,target:v,onClick:g,duration:B=450}=A,[u,y]=t.useState(0===r),H=t.useRef(null),p=()=>{var A;return(null===(A=H.current)||void 0===A?void 0:A.ownerDocument)||window},X=(0,D.Z)((A=>{const e=(0,c.Z)(A.target);y(e>=r)}));t.useEffect((()=>{const A=(v||p)();return X({target:A}),null==A||A.addEventListener("scroll",X),()=>{X.cancel(),null==A||A.removeEventListener("scroll",X)}}),[v]);const{getPrefixCls:Z,direction:w}=t.useContext(a.E_),O=Z("back-top",e),j=Z(),[m,N,M]=o(O),x=s()(N,M,O,{[`${O}-rtl`]:"rtl"===w},n,f),L=(0,d.Z)(A,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),T=t.createElement("div",{className:`${O}-content`},t.createElement("div",{className:`${O}-icon`},t.createElement(P,null)));return m(t.createElement("div",Object.assign({},L,{className:x,onClick:A=>{(0,z.Z)(0,{getContainer:v||p,duration:B}),null==g||g(A)},ref:H}),t.createElement(l.default,{visible:u,motionName:`${j}-fade`},(e=>{let{className:n}=e;return(0,b.Tm)(A.children||T,(A=>{let{className:e}=A;return{className:s()(n,e)}}))}))))}},28321:function(A,e,n){n.d(e,{iz:function(){return IA},ck:function(){return yA},BW:function(){return EA},sN:function(){return yA},Wd:function(){return GA},ZP:function(){return qA},Xl:function(){return m}});var t=n(54476),f=n(20068),r=n(33885),v=n(94480),g=n(42978),P=n(75931),B=n(92310),s=n.n(B),l=n(11780),d=n(18929),c=n(13697),b=n(48736),z=n(59301),D=n(4676),a=z.createContext(null);function u(A,e){return void 0===A?null:"".concat(A,"-").concat(e)}function y(A){return u(z.useContext(a),A)}var H=n(80547),p=["children","locked"],X=z.createContext(null);function Z(A){var e=A.children,n=A.locked,t=(0,P.Z)(A,p),f=z.useContext(X),v=(0,H.Z)((function(){return A=f,e=t,n=(0,r.Z)({},A),Object.keys(e).forEach((function(A){var t=e[A];void 0!==t&&(n[A]=t)})),n;var A,e,n}),[f,t],(function(A,e){return!(n||A[0]===e[0]&&(0,c.Z)(A[1],e[1],!0))}));return z.createElement(X.Provider,{value:v},e)}var o=[],w=z.createContext(null);function O(){return z.useContext(w)}var j=z.createContext(o);function m(A){var e=z.useContext(j);return z.useMemo((function(){return void 0!==A?[].concat((0,v.Z)(e),[A]):e}),[e,A])}var N=z.createContext(null),M=z.createContext({}),x=n(29194);function L(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,x.Z)(A)){var n=A.nodeName.toLowerCase(),t=["input","select","textarea","button"].includes(n)||A.isContentEditable||"a"===n&&!!A.getAttribute("href"),f=A.getAttribute("tabindex"),r=Number(f),v=null;return f&&!Number.isNaN(r)?v=r:t&&null===v&&(v=0),t&&A.disabled&&(v=null),null!==v&&(v>=0||e&&v<0)}return!1}function T(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,v.Z)(A.querySelectorAll("*")).filter((function(A){return L(A,e)}));return L(A,e)&&n.unshift(A),n}var Q=n(10228),i=n(16089),k=Q.Z.LEFT,C=Q.Z.RIGHT,G=Q.Z.UP,W=Q.Z.DOWN,I=Q.Z.ENTER,J=Q.Z.ESC,S=Q.Z.HOME,E=Q.Z.END,V=[G,W,k,C];function Y(A,e){return T(A,!0).filter((function(A){return e.has(A)}))}function R(A,e,n){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!A)return null;var f=Y(A,e),r=f.length,v=f.findIndex((function(A){return n===A}));return t<0?-1===v?v=r-1:v-=1:t>0&&(v+=1),f[v=(v+r)%r]}var K=function(A,e){var n=new Set,t=new Map,f=new Map;return A.forEach((function(A){var r=document.querySelector("[data-menu-id='".concat(u(e,A),"']"));r&&(n.add(r),f.set(r,A),t.set(A,r))})),{elements:n,key2element:t,element2key:f}};function h(A,e,n,t,r,v,g,P,B,s){var l=z.useRef(),d=z.useRef();d.current=e;var c=function(){i.Z.cancel(l.current)};return z.useEffect((function(){return function(){c()}}),[]),function(b){var z=b.which;if([].concat(V,[I,J,S,E]).includes(z)){var D=v(),a=K(D,t),u=a,y=u.elements,H=u.key2element,p=u.element2key,X=function(A,e){for(var n=A||document.activeElement;n;){if(e.has(n))return n;n=n.parentElement}return null}(H.get(e),y),Z=p.get(X),o=function(A,e,n,t){var r,v="prev",g="next",P="children",B="parent";if("inline"===A&&t===I)return{inlineTrigger:!0};var s=(0,f.Z)((0,f.Z)({},G,v),W,g),l=(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},k,n?g:v),C,n?v:g),W,P),I,P),d=(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},G,v),W,g),I,P),J,B),k,n?P:B),C,n?B:P);switch(null===(r={inline:s,horizontal:l,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(A).concat(e?"":"Sub")])||void 0===r?void 0:r[t]){case v:return{offset:-1,sibling:!0};case g:return{offset:1,sibling:!0};case B:return{offset:-1,sibling:!1};case P:return{offset:1,sibling:!1};default:return null}}(A,1===g(Z,!0).length,n,z);if(!o&&z!==S&&z!==E)return;(V.includes(z)||[S,E].includes(z))&&b.preventDefault();var w=function(A){if(A){var e=A,n=A.querySelector("a");null!=n&&n.getAttribute("href")&&(e=n);var t=p.get(A);P(t),c(),l.current=(0,i.Z)((function(){d.current===t&&e.focus()}))}};if([S,E].includes(z)||o.sibling||!X){var O,j,m=Y(O=X&&"inline"!==A?function(A){for(var e=A;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}(X):r.current,y);j=z===S?m[0]:z===E?m[m.length-1]:R(O,y,X,o.offset),w(j)}else if(o.inlineTrigger)B(Z);else if(o.offset>0)B(Z,!0),c(),l.current=(0,i.Z)((function(){a=K(D,t);var A=X.getAttribute("aria-controls"),e=R(document.getElementById(A),a.elements);w(e)}),5);else if(o.offset<0){var N=g(Z,!0),M=N[N.length-2],x=H.get(M);B(M,!1),w(x)}}null==s||s(b)}}var U="__RC_UTIL_PATH_SPLIT__",F=function(A){return A.join(U)},q="rc-menu-more";function _(){var A=z.useState({}),e=(0,g.Z)(A,2)[1],n=(0,z.useRef)(new Map),t=(0,z.useRef)(new Map),f=z.useState([]),r=(0,g.Z)(f,2),P=r[0],B=r[1],s=(0,z.useRef)(0),l=(0,z.useRef)(!1),d=(0,z.useCallback)((function(A,f){var r=F(f);t.current.set(r,A),n.current.set(A,r),s.current+=1;var v,g=s.current;v=function(){g===s.current&&(l.current||e({}))},Promise.resolve().then(v)}),[]),c=(0,z.useCallback)((function(A,e){var f=F(e);t.current.delete(f),n.current.delete(A)}),[]),b=(0,z.useCallback)((function(A){B(A)}),[]),D=(0,z.useCallback)((function(A,e){var t=n.current.get(A)||"",f=t.split(U);return e&&P.includes(f[0])&&f.unshift(q),f}),[P]),a=(0,z.useCallback)((function(A,e){return A.filter((function(A){return void 0!==A})).some((function(A){return D(A,!0).includes(e)}))}),[D]),u=(0,z.useCallback)((function(A){var e="".concat(n.current.get(A)).concat(U),f=new Set;return(0,v.Z)(t.current.keys()).forEach((function(A){A.startsWith(e)&&f.add(t.current.get(A))})),f}),[]);return z.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:d,unregisterPath:c,refreshOverflowKeys:b,isSubPathKey:a,getKeyPath:D,getKeys:function(){var A=(0,v.Z)(n.current.keys());return P.length&&A.push(q),A},getSubPathKeys:u}}function $(A){var e=z.useRef(A);e.current=A;var n=z.useCallback((function(){for(var A,n=arguments.length,t=new Array(n),f=0;f1&&(o.motionAppear=!1);var w=o.onVisibleChanged;return o.onVisibleChanged=function(A){return D.current||A||H(!0),null==w?void 0:w(A)},y?null:z.createElement(Z,{mode:P,locked:!D.current},z.createElement(TA.default,(0,t.Z)({visible:p},o,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(A){var n=A.className,t=A.style;return z.createElement(ZA,{id:e,className:n,style:t},v)})))}var iA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kA=["active"],CA=z.forwardRef((function(A,e){var n=A.style,v=A.className,B=A.title,d=A.eventKey,c=(A.warnKey,A.disabled),b=A.internalPopupClose,D=A.children,a=A.itemIcon,u=A.expandIcon,H=A.popupClassName,p=A.popupOffset,o=A.popupStyle,w=A.onClick,O=A.onMouseEnter,j=A.onMouseLeave,x=A.onTitleClick,L=A.onTitleMouseEnter,T=A.onTitleMouseLeave,Q=(0,P.Z)(A,iA),i=y(d),k=z.useContext(X),C=k.prefixCls,G=k.mode,W=k.openKeys,I=k.disabled,J=k.overflowDisabled,S=k.activeKey,E=k.selectedKeys,V=k.itemIcon,Y=k.expandIcon,R=k.onItemClick,K=k.onOpenChange,h=k.onActive,U=z.useContext(M)._internalRenderSubMenuItem,F=z.useContext(N).isSubPathKey,q=m(),_="".concat(C,"-submenu"),AA=I||c,eA=z.useRef(),nA=z.useRef();var tA=null!=a?a:V,fA=null!=u?u:Y,rA=W.includes(d),vA=!J&&rA,gA=F(E,d),lA=PA(d,AA,L,T),cA=lA.active,bA=(0,P.Z)(lA,kA),zA=z.useState(!1),DA=(0,g.Z)(zA,2),aA=DA[0],uA=DA[1],yA=function(A){AA||uA(A)},HA=z.useMemo((function(){return cA||"inline"!==G&&(aA||F([S],d))}),[G,cA,S,aA,d,F]),pA=BA(q.length),XA=$((function(A){null==w||w(dA(A)),R(A)})),oA=i&&"".concat(i,"-popup"),wA=z.useMemo((function(){return z.createElement(sA,{icon:"horizontal"!==G?fA:void 0,props:(0,r.Z)((0,r.Z)({},A),{},{isOpen:vA,isSubMenu:!0})},z.createElement("i",{className:"".concat(_,"-arrow")}))}),[G,fA,A,vA,_]),OA=z.createElement("div",(0,t.Z)({role:"menuitem",style:pA,className:"".concat(_,"-title"),tabIndex:AA?null:-1,ref:eA,title:"string"==typeof B?B:null,"data-menu-id":J&&i?null:i,"aria-expanded":vA,"aria-haspopup":!0,"aria-controls":oA,"aria-disabled":AA,onClick:function(A){AA||(null==x||x({key:d,domEvent:A}),"inline"===G&&K(d,!rA))},onFocus:function(){h(d)}},bA),B,wA),jA=z.useRef(G);if("inline"!==G&&q.length>1?jA.current="vertical":jA.current=G,!J){var mA=jA.current;OA=z.createElement(LA,{mode:mA,prefixCls:_,visible:!b&&vA&&"inline"!==G,popupClassName:H,popupOffset:p,popupStyle:o,popup:z.createElement(Z,{mode:"horizontal"===mA?"vertical":mA},z.createElement(ZA,{id:oA,ref:nA},D)),disabled:AA,onVisibleChange:function(A){"inline"!==G&&K(d,A)}},OA)}var NA=z.createElement(l.Z.Item,(0,t.Z)({ref:e,role:"none"},Q,{component:"li",style:n,className:s()(_,"".concat(_,"-").concat(G),v,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(_,"-open"),vA),"".concat(_,"-active"),HA),"".concat(_,"-selected"),gA),"".concat(_,"-disabled"),AA)),onMouseEnter:function(A){yA(!0),null==O||O({key:d,domEvent:A})},onMouseLeave:function(A){yA(!1),null==j||j({key:d,domEvent:A})}}),OA,!J&&z.createElement(QA,{id:oA,open:vA,keyPath:q},D));return U&&(NA=U(NA,A,{selected:gA,active:HA,open:vA,disabled:AA})),z.createElement(Z,{onItemClick:XA,mode:"horizontal"===G?"vertical":G,itemIcon:tA,expandIcon:fA},NA)}));var GA=z.forwardRef((function(A,e){var n,f=A.eventKey,r=A.children,v=m(f),g=wA(r,v),P=O();return z.useEffect((function(){if(P)return P.registerPath(f,v),function(){P.unregisterPath(f,v)}}),[v]),n=P?g:z.createElement(CA,(0,t.Z)({ref:e},A),g),z.createElement(j.Provider,{value:v},n)})),WA=n(76190);function IA(A){var e=A.className,n=A.style,t=z.useContext(X).prefixCls;return O()?null:z.createElement("li",{role:"separator",className:s()("".concat(t,"-item-divider"),e),style:n})}var JA=["className","title","eventKey","children"],SA=z.forwardRef((function(A,e){var n=A.className,f=A.title,r=(A.eventKey,A.children),v=(0,P.Z)(A,JA),g=z.useContext(X).prefixCls,B="".concat(g,"-item-group");return z.createElement("li",(0,t.Z)({ref:e,role:"presentation"},v,{onClick:function(A){return A.stopPropagation()},className:s()(B,n)}),z.createElement("div",{role:"presentation",className:"".concat(B,"-title"),title:"string"==typeof f?f:void 0},f),z.createElement("ul",{role:"group",className:"".concat(B,"-list")},r))}));var EA=z.forwardRef((function(A,e){var n=A.eventKey,f=wA(A.children,m(n));return O()?f:z.createElement(SA,(0,t.Z)({ref:e},(0,vA.Z)(A,["warnKey"])),f)})),VA=["label","children","key","type","extra"];function YA(A,e,n){var f=e.item,r=e.group,v=e.submenu,g=e.divider;return(A||[]).map((function(A,B){if(A&&"object"===(0,WA.Z)(A)){var s=A,l=s.label,d=s.children,c=s.key,b=s.type,D=s.extra,a=(0,P.Z)(s,VA),u=null!=c?c:"tmp-".concat(B);return d||"group"===b?"group"===b?z.createElement(r,(0,t.Z)({key:u},a,{title:l}),YA(d,e,n)):z.createElement(v,(0,t.Z)({key:u},a,{title:l}),YA(d,e,n)):"divider"===b?z.createElement(g,(0,t.Z)({key:u},a)):z.createElement(f,(0,t.Z)({key:u},a,{extra:D}),l,(!!D||0===D)&&z.createElement("span",{className:"".concat(n,"-item-extra")},D))}return null})).filter((function(A){return A}))}function RA(A,e,n,t,f){var v=A,g=(0,r.Z)({divider:IA,item:yA,group:EA,submenu:GA},t);return e&&(v=YA(e,g,f)),wA(v,n)}var KA=["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"],hA=[],UA=z.forwardRef((function(A,e){var n,B=A,b=B.prefixCls,u=void 0===b?"rc-menu":b,y=B.rootClassName,H=B.style,p=B.className,X=B.tabIndex,o=void 0===X?0:X,O=B.items,j=B.children,m=B.direction,x=B.id,L=B.mode,T=void 0===L?"vertical":L,Q=B.inlineCollapsed,i=B.disabled,k=B.disabledOverflow,C=B.subMenuOpenDelay,G=void 0===C?.1:C,W=B.subMenuCloseDelay,I=void 0===W?.1:W,J=B.forceSubMenuRender,S=B.defaultOpenKeys,E=B.openKeys,V=B.activeKey,R=B.defaultActiveFirst,U=B.selectable,F=void 0===U||U,nA=B.multiple,tA=void 0!==nA&&nA,fA=B.defaultSelectedKeys,rA=B.selectedKeys,vA=B.onSelect,gA=B.onDeselect,PA=B.inlineIndent,BA=void 0===PA?24:PA,sA=B.motion,lA=B.defaultMotions,cA=B.triggerSubMenuAction,bA=void 0===cA?"hover":cA,zA=B.builtinPlacements,DA=B.itemIcon,aA=B.expandIcon,uA=B.overflowedIndicator,HA=void 0===uA?"...":uA,pA=B.overflowedIndicatorPopupClassName,XA=B.getPopupContainer,ZA=B.onClick,oA=B.onOpenChange,wA=B.onKeyDown,OA=(B.openAnimation,B.openTransitionName,B._internalRenderMenuItem),jA=B._internalRenderSubMenuItem,mA=B._internalComponents,NA=(0,P.Z)(B,KA),MA=z.useMemo((function(){return[RA(j,O,hA,mA,u),RA(j,O,hA,{},u)]}),[j,O,mA]),xA=(0,g.Z)(MA,2),LA=xA[0],TA=xA[1],QA=z.useState(!1),iA=(0,g.Z)(QA,2),kA=iA[0],CA=iA[1],WA=z.useRef(),IA=function(A){var e=(0,d.Z)(A,{value:A}),n=(0,g.Z)(e,2),t=n[0],f=n[1];return z.useEffect((function(){eA+=1;var A="".concat(AA,"-").concat(eA);f("rc-menu-uuid-".concat(A))}),[]),t}(x),JA="rtl"===m;var SA=(0,d.Z)(S,{value:E,postState:function(A){return A||hA}}),EA=(0,g.Z)(SA,2),VA=EA[0],YA=EA[1],UA=function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){YA(A),null==oA||oA(A)}e?(0,D.flushSync)(n):n()},FA=z.useState(VA),qA=(0,g.Z)(FA,2),_A=qA[0],$A=qA[1],Ae=z.useRef(!1),ee=z.useMemo((function(){return"inline"!==T&&"vertical"!==T||!Q?[T,!1]:["vertical",Q]}),[T,Q]),ne=(0,g.Z)(ee,2),te=ne[0],fe=ne[1],re="inline"===te,ve=z.useState(te),ge=(0,g.Z)(ve,2),Pe=ge[0],Be=ge[1],se=z.useState(fe),le=(0,g.Z)(se,2),de=le[0],ce=le[1];z.useEffect((function(){Be(te),ce(fe),Ae.current&&(re?YA(_A):UA(hA))}),[te,fe]);var be=z.useState(0),ze=(0,g.Z)(be,2),De=ze[0],ae=ze[1],ue=De>=LA.length-1||"horizontal"!==Pe||k;z.useEffect((function(){re&&$A(VA)}),[VA]),z.useEffect((function(){return Ae.current=!0,function(){Ae.current=!1}}),[]);var ye=_(),He=ye.registerPath,pe=ye.unregisterPath,Xe=ye.refreshOverflowKeys,Ze=ye.isSubPathKey,oe=ye.getKeyPath,we=ye.getKeys,Oe=ye.getSubPathKeys,je=z.useMemo((function(){return{registerPath:He,unregisterPath:pe}}),[He,pe]),me=z.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);z.useEffect((function(){Xe(ue?hA:LA.slice(De+1).map((function(A){return A.key})))}),[De,ue]);var Ne=(0,d.Z)(V||R&&(null===(n=LA[0])||void 0===n?void 0:n.key),{value:V}),Me=(0,g.Z)(Ne,2),xe=Me[0],Le=Me[1],Te=$((function(A){Le(A)})),Qe=$((function(){Le(void 0)}));(0,z.useImperativeHandle)(e,(function(){return{list:WA.current,focus:function(A){var e,n,t=we(),f=K(t,IA),r=f.elements,v=f.key2element,g=f.element2key,P=Y(WA.current,r),B=null!=xe?xe:P[0]?g.get(P[0]):null===(e=LA.find((function(A){return!A.props.disabled})))||void 0===e?void 0:e.key,s=v.get(B);B&&s&&(null==s||null===(n=s.focus)||void 0===n||n.call(s,A))}}}));var ie=(0,d.Z)(fA||[],{value:rA,postState:function(A){return Array.isArray(A)?A:null==A?hA:[A]}}),ke=(0,g.Z)(ie,2),Ce=ke[0],Ge=ke[1],We=$((function(A){null==ZA||ZA(dA(A)),function(A){if(F){var e,n=A.key,t=Ce.includes(n);e=tA?t?Ce.filter((function(A){return A!==n})):[].concat((0,v.Z)(Ce),[n]):[n],Ge(e);var f=(0,r.Z)((0,r.Z)({},A),{},{selectedKeys:e});t?null==gA||gA(f):null==vA||vA(f)}!tA&&VA.length&&"inline"!==Pe&&UA(hA)}(A)})),Ie=$((function(A,e){var n=VA.filter((function(e){return e!==A}));if(e)n.push(A);else if("inline"!==Pe){var t=Oe(A);n=n.filter((function(A){return!t.has(A)}))}(0,c.Z)(VA,n,!0)||UA(n,!0)})),Je=h(Pe,xe,JA,IA,WA,we,oe,Le,(function(A,e){var n=null!=e?e:!VA.includes(A);Ie(A,n)}),wA);z.useEffect((function(){CA(!0)}),[]);var Se=z.useMemo((function(){return{_internalRenderMenuItem:OA,_internalRenderSubMenuItem:jA}}),[OA,jA]),Ee="horizontal"!==Pe||k?LA:LA.map((function(A,e){return z.createElement(Z,{key:A.key,overflowDisabled:e>De},A)})),Ve=z.createElement(l.Z,(0,t.Z)({id:x,ref:WA,prefixCls:"".concat(u,"-overflow"),component:"ul",itemComponent:yA,className:s()(u,"".concat(u,"-root"),"".concat(u,"-").concat(Pe),p,(0,f.Z)((0,f.Z)({},"".concat(u,"-inline-collapsed"),de),"".concat(u,"-rtl"),JA),y),dir:m,style:H,role:"menu",tabIndex:o,data:Ee,renderRawItem:function(A){return A},renderRawRest:function(A){var e=A.length,n=e?LA.slice(-e):null;return z.createElement(GA,{eventKey:q,title:HA,disabled:ue,internalPopupClose:0===e,popupClassName:pA},n)},maxCount:"horizontal"!==Pe||k?l.Z.INVALIDATE:l.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(A){ae(A)},onKeyDown:Je},NA));return z.createElement(M.Provider,{value:Se},z.createElement(a.Provider,{value:IA},z.createElement(Z,{prefixCls:u,rootClassName:y,mode:Pe,openKeys:VA,rtl:JA,disabled:i,motion:kA?sA:null,defaultMotions:kA?lA:null,activeKey:xe,onActive:Te,onInactive:Qe,selectedKeys:Ce,inlineIndent:BA,subMenuOpenDelay:G,subMenuCloseDelay:I,forceSubMenuRender:J,builtinPlacements:zA,triggerSubMenuAction:bA,getPopupContainer:XA,itemIcon:DA,expandIcon:aA,onItemClick:We,onOpenChange:Ie},z.createElement(N.Provider,{value:me},Ve),z.createElement("div",{style:{display:"none"},"aria-hidden":!0},z.createElement(w.Provider,{value:je},TA)))))})),FA=UA;FA.Item=yA,FA.SubMenu=GA,FA.ItemGroup=EA,FA.Divider=IA;var qA=FA},11780:function(A,e,n){n.d(e,{Z:function(){return i}});var t=n(54476),f=n(33885),r=n(42978),v=n(75931),g=n(59301),P=n(92310),B=n.n(P),s=n(29301),l=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],c=void 0;function b(A,e){var n=A.prefixCls,r=A.invalidate,P=A.item,l=A.renderItem,b=A.responsive,z=A.responsiveDisabled,D=A.registerSize,a=A.itemKey,u=A.className,y=A.style,H=A.children,p=A.display,X=A.order,Z=A.component,o=void 0===Z?"div":Z,w=(0,v.Z)(A,d),O=b&&!p;function j(A){D(a,A)}g.useEffect((function(){return function(){j(null)}}),[]);var m,N=l&&P!==c?l(P,{index:X}):H;r||(m={opacity:O?0:1,height:O?0:c,overflowY:O?"hidden":c,order:b?X:c,pointerEvents:O?"none":c,position:O?"absolute":c});var M={};O&&(M["aria-hidden"]=!0);var x=g.createElement(o,(0,t.Z)({className:B()(!r&&n,u),style:(0,f.Z)((0,f.Z)({},m),y)},M,w,{ref:e}),N);return b&&(x=g.createElement(s.Z,{onResize:function(A){j(A.offsetWidth)},disabled:z},x)),x}var z=g.forwardRef(b);z.displayName="Item";var D=z,a=n(6089),u=n(4676),y=n(16089);function H(){var A=g.useRef(null);return function(e){A.current||(A.current=[],function(A){if("undefined"==typeof MessageChannel)(0,y.Z)(A);else{var e=new MessageChannel;e.port1.onmessage=function(){return A()},e.port2.postMessage(void 0)}}((function(){(0,u.unstable_batchedUpdates)((function(){A.current.forEach((function(A){A()})),A.current=null}))}))),A.current.push(e)}}function p(A,e){var n=g.useState(e),t=(0,r.Z)(n,2),f=t[0],v=t[1];return[f,(0,a.Z)((function(e){A((function(){v(e)}))}))]}var X=g.createContext(null),Z=["component"],o=["className"],w=["className"],O=function(A,e){var n=g.useContext(X);if(!n){var f=A.component,r=void 0===f?"div":f,P=(0,v.Z)(A,Z);return g.createElement(r,(0,t.Z)({},P,{ref:e}))}var s=n.className,l=(0,v.Z)(n,o),d=A.className,c=(0,v.Z)(A,w);return g.createElement(X.Provider,{value:null},g.createElement(D,(0,t.Z)({ref:e,className:B()(s,d)},l,c)))},j=g.forwardRef(O);j.displayName="RawItem";var m=j,N=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],M="responsive",x="invalidate";function L(A){return"+ ".concat(A.length," ...")}function T(A,e){var n=A.prefixCls,P=void 0===n?"rc-overflow":n,d=A.data,c=void 0===d?[]:d,b=A.renderItem,z=A.renderRawItem,a=A.itemKey,u=A.itemWidth,y=void 0===u?10:u,Z=A.ssr,o=A.style,w=A.className,O=A.maxCount,j=A.renderRest,m=A.renderRawRest,T=A.suffix,Q=A.component,i=void 0===Q?"div":Q,k=A.itemComponent,C=A.onVisibleChange,G=(0,v.Z)(A,N),W="full"===Z,I=H(),J=p(I,null),S=(0,r.Z)(J,2),E=S[0],V=S[1],Y=E||0,R=p(I,new Map),K=(0,r.Z)(R,2),h=K[0],U=K[1],F=p(I,0),q=(0,r.Z)(F,2),_=q[0],$=q[1],AA=p(I,0),eA=(0,r.Z)(AA,2),nA=eA[0],tA=eA[1],fA=p(I,0),rA=(0,r.Z)(fA,2),vA=rA[0],gA=rA[1],PA=(0,g.useState)(null),BA=(0,r.Z)(PA,2),sA=BA[0],lA=BA[1],dA=(0,g.useState)(null),cA=(0,r.Z)(dA,2),bA=cA[0],zA=cA[1],DA=g.useMemo((function(){return null===bA&&W?Number.MAX_SAFE_INTEGER:bA||0}),[bA,E]),aA=(0,g.useState)(!1),uA=(0,r.Z)(aA,2),yA=uA[0],HA=uA[1],pA="".concat(P,"-item"),XA=Math.max(_,nA),ZA=O===M,oA=c.length&&ZA,wA=O===x,OA=oA||"number"==typeof O&&c.length>O,jA=(0,g.useMemo)((function(){var A=c;return oA?A=null===E&&W?c:c.slice(0,Math.min(c.length,Y/y)):"number"==typeof O&&(A=c.slice(0,O)),A}),[c,y,E,O,oA]),mA=(0,g.useMemo)((function(){return oA?c.slice(DA+1):c.slice(jA.length)}),[c,jA,oA,DA]),NA=(0,g.useCallback)((function(A,e){var n;return"function"==typeof a?a(A):null!==(n=a&&(null==A?void 0:A[a]))&&void 0!==n?n:e}),[a]),MA=(0,g.useCallback)(b||function(A){return A},[b]);function xA(A,e,n){(bA!==A||void 0!==e&&e!==sA)&&(zA(A),n||(HA(AY){xA(t-1,A-f-vA+nA);break}}T&&TA(0)+vA>Y&&lA(null)}}),[Y,h,nA,vA,NA,jA]);var QA=yA&&!!mA.length,iA={};null!==sA&&oA&&(iA={position:"absolute",left:sA,top:0});var kA={prefixCls:pA,responsive:oA,component:k,invalidate:wA},CA=z?function(A,e){var n=NA(A,e);return g.createElement(X.Provider,{key:n,value:(0,f.Z)((0,f.Z)({},kA),{},{order:e,item:A,itemKey:n,registerSize:LA,display:e<=DA})},z(A,e))}:function(A,e){var n=NA(A,e);return g.createElement(D,(0,t.Z)({},kA,{order:e,key:n,item:A,renderItem:MA,itemKey:n,registerSize:LA,display:e<=DA}))},GA={order:QA?DA:Number.MAX_SAFE_INTEGER,className:"".concat(pA,"-rest"),registerSize:function(A,e){tA(e),$(nA)},display:QA},WA=j||L,IA=m?g.createElement(X.Provider,{value:(0,f.Z)((0,f.Z)({},kA),GA)},m(mA)):g.createElement(D,(0,t.Z)({},kA,GA),"function"==typeof WA?WA(mA):WA),JA=g.createElement(i,(0,t.Z)({className:B()(!wA&&P,w),style:o,ref:e},G),jA.map(CA),OA?IA:null,T&&g.createElement(D,(0,t.Z)({},kA,{responsive:ZA,responsiveDisabled:!oA,order:DA,className:"".concat(pA,"-suffix"),registerSize:function(A,e){gA(e)},display:!0,style:iA}),T));return ZA?g.createElement(s.Z,{onResize:function(A,e){V(e.clientWidth)},disabled:!oA},JA):JA}var Q=g.forwardRef(T);Q.displayName="Overflow",Q.Item=m,Q.RESPONSIVE=M,Q.INVALIDATE=x;var i=Q},29301:function(A,e,n){n.d(e,{Z:function(){return Z}});var t=n(54476),f=n(59301),r=n(11592),v=(n(48736),n(33885)),g=n(76190),P=n(76846),B=n(8654),s=f.createContext(null);var l=n(76374),d=new Map;var c=new l.Z((function(A){A.forEach((function(A){var e,n=A.target;null===(e=d.get(n))||void 0===e||e.forEach((function(A){return A(n)}))}))}));var b=n(67732),z=n(83652),D=n(42403),a=n(158),u=function(A){(0,D.Z)(n,A);var e=(0,a.Z)(n);function n(){return(0,b.Z)(this,n),e.apply(this,arguments)}return(0,z.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function y(A,e){var n=A.children,t=A.disabled,r=f.useRef(null),l=f.useRef(null),b=f.useContext(s),z="function"==typeof n,D=z?n(r):n,a=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!z&&f.isValidElement(D)&&(0,B.Yr)(D),H=y?(0,B.C4)(D):null,p=(0,B.x1)(H,r),X=function(){var A;return(0,P.ZP)(r.current)||(r.current&&"object"===(0,g.Z)(r.current)?(0,P.ZP)(null===(A=r.current)||void 0===A?void 0:A.nativeElement):null)||(0,P.ZP)(l.current)};f.useImperativeHandle(e,(function(){return X()}));var Z=f.useRef(A);Z.current=A;var o=f.useCallback((function(A){var e=Z.current,n=e.onResize,t=e.data,f=A.getBoundingClientRect(),r=f.width,g=f.height,P=A.offsetWidth,B=A.offsetHeight,s=Math.floor(r),l=Math.floor(g);if(a.current.width!==s||a.current.height!==l||a.current.offsetWidth!==P||a.current.offsetHeight!==B){var d={width:s,height:l,offsetWidth:P,offsetHeight:B};a.current=d;var c=P===Math.round(r)?r:P,z=B===Math.round(g)?g:B,D=(0,v.Z)((0,v.Z)({},d),{},{offsetWidth:c,offsetHeight:z});null==b||b(D,A,t),n&&Promise.resolve().then((function(){n(D,A)}))}}),[]);return f.useEffect((function(){var A,e,n=X();return n&&!t&&(A=n,e=o,d.has(A)||(d.set(A,new Set),c.observe(A)),d.get(A).add(e)),function(){return function(A,e){d.has(A)&&(d.get(A).delete(e),d.get(A).size||(c.unobserve(A),d.delete(A)))}(n,o)}}),[r.current,t]),f.createElement(u,{ref:l},y?f.cloneElement(D,{ref:p}):D)}var H=f.forwardRef(y);function p(A,e){var n=A.children;return("function"==typeof n?[n]:(0,r.Z)(n)).map((function(n,r){var v=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return f.createElement(H,(0,t.Z)({},A,{key:v,ref:0===r?e:void 0}),n)}))}var X=f.forwardRef(p);X.Collection=function(A){var e=A.children,n=A.onBatchResize,t=f.useRef(0),r=f.useRef([]),v=f.useContext(s),g=f.useCallback((function(A,e,f){t.current+=1;var g=t.current;r.current.push({size:A,element:e,data:f}),Promise.resolve().then((function(){g===t.current&&(null==n||n(r.current),r.current=[])})),null==v||v(A,e,f)}),[n,v]);return f.createElement(s.Provider,{value:g},e)};var Z=X},29125:function(A,e,n){n.d(e,{G:function(){return v},Z:function(){return u}});var t=n(92310),f=n.n(t),r=n(59301);function v(A){var e=A.children,n=A.prefixCls,t=A.id,v=A.overlayInnerStyle,g=A.bodyClassName,P=A.className,B=A.style;return r.createElement("div",{className:f()("".concat(n,"-content"),P),style:B},r.createElement("div",{className:f()("".concat(n,"-inner"),g),id:t,role:"tooltip",style:v},"function"==typeof e?e():e))}var g=n(54476),P=n(33885),B=n(75931),s=n(65030),l={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},c=[0,0],b={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:c},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:c},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:c},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:c},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:c},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:c},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:c},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:c},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:c},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:c},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:c},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:c}},z=n(80402),D=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],a=function(A,e){var n=A.overlayClassName,t=A.trigger,l=void 0===t?["hover"]:t,d=A.mouseEnterDelay,c=void 0===d?0:d,a=A.mouseLeaveDelay,u=void 0===a?.1:a,y=A.overlayStyle,H=A.prefixCls,p=void 0===H?"rc-tooltip":H,X=A.children,Z=A.onVisibleChange,o=A.afterVisibleChange,w=A.transitionName,O=A.animation,j=A.motion,m=A.placement,N=void 0===m?"right":m,M=A.align,x=void 0===M?{}:M,L=A.destroyTooltipOnHide,T=void 0!==L&&L,Q=A.defaultVisible,i=A.getTooltipContainer,k=A.overlayInnerStyle,C=(A.arrowContent,A.overlay),G=A.id,W=A.showArrow,I=void 0===W||W,J=A.classNames,S=A.styles,E=(0,B.Z)(A,D),V=(0,z.Z)(G),Y=(0,r.useRef)(null);(0,r.useImperativeHandle)(e,(function(){return Y.current}));var R=(0,P.Z)({},E);"visible"in A&&(R.popupVisible=A.visible);var K,h,U;return r.createElement(s.Z,(0,g.Z)({popupClassName:f()(n,null==J?void 0:J.root),prefixCls:p,popup:function(){return r.createElement(v,{key:"content",prefixCls:p,id:V,bodyClassName:null==J?void 0:J.body,overlayInnerStyle:(0,P.Z)((0,P.Z)({},k),null==S?void 0:S.body)},C)},action:l,builtinPlacements:b,popupPlacement:N,ref:Y,popupAlign:x,getPopupContainer:i,onPopupVisibleChange:Z,afterPopupVisibleChange:o,popupTransitionName:w,popupAnimation:O,popupMotion:j,defaultPopupVisible:Q,autoDestroy:T,mouseLeaveDelay:u,popupStyle:(0,P.Z)((0,P.Z)({},y),null==S?void 0:S.root),mouseEnterDelay:c,arrow:I},R),(K=r.Children.only(X),h=(null==K?void 0:K.props)||{},U=(0,P.Z)((0,P.Z)({},h),{},{"aria-describedby":C?V:null}),r.cloneElement(X,U)))},u=(0,r.forwardRef)(a)},49658:function(A,e){e.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var A=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(A)||/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(null==A?void 0:A.substr(0,4))}},76374:function(A,e,n){var t=function(){if("undefined"!=typeof Map)return Map;function A(A,e){var n=-1;return A.some((function(A,t){return A[0]===e&&(n=t,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=A(this.__entries__,e),t=this.__entries__[n];return t&&t[1]},e.prototype.set=function(e,n){var t=A(this.__entries__,e);~t?this.__entries__[t][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,t=A(n,e);~t&&n.splice(t,1)},e.prototype.has=function(e){return!!~A(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(A,e){void 0===e&&(e=null);for(var n=0,t=this.__entries__;n0},A.prototype.connect_=function(){f&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),P?(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)},A.prototype.disconnect_=function(){f&&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)},A.prototype.onTransitionEnd_=function(A){var e=A.propertyName,n=void 0===e?"":e;g.some((function(A){return!!~n.indexOf(A)}))&&this.refresh()},A.getInstance=function(){return this.instance_||(this.instance_=new A),this.instance_},A.instance_=null,A}(),s=function(A,e){for(var n=0,t=Object.keys(e);n0},A}(),X="undefined"!=typeof WeakMap?new WeakMap:new t,Z=function A(e){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=B.getInstance(),t=new p(e,n,this);X.set(this,t)};["observe","unobserve","disconnect"].forEach((function(A){Z.prototype[A]=function(){var e;return(e=X.get(this))[A].apply(e,arguments)}}));var o=void 0!==r.ResizeObserver?r.ResizeObserver:Z;e.Z=o},16722:function(A,e,n){n.d(e,{Z:function(){return B}});const t=A=>"object"==typeof A&&null!=A&&1===A.nodeType,f=(A,e)=>(!e||"hidden"!==A)&&"visible"!==A&&"clip"!==A,r=(A,e)=>{if(A.clientHeight{const e=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(A){return null}})(A);return!!e&&(e.clientHeightre||r>A&&v=e&&g>=n?r-A-t:v>e&&gn?v-e+f:0,g=A=>{const e=A.parentElement;return null==e?A.getRootNode().host||null:e},P=(A,e)=>{var n,f,P,B;if("undefined"==typeof document)return[];const{scrollMode:s,block:l,inline:d,boundary:c,skipOverflowHiddenElements:b}=e,z="function"==typeof c?c:A=>A!==c;if(!t(A))throw new TypeError("Invalid target");const D=document.scrollingElement||document.documentElement,a=[];let u=A;for(;t(u)&&z(u);){if(u=g(u),u===D){a.push(u);break}null!=u&&u===document.body&&r(u)&&!r(document.documentElement)||null!=u&&r(u,b)&&a.push(u)}const y=null!=(f=null==(n=window.visualViewport)?void 0:n.width)?f:innerWidth,H=null!=(B=null==(P=window.visualViewport)?void 0:P.height)?B:innerHeight,{scrollX:p,scrollY:X}=window,{height:Z,width:o,top:w,right:O,bottom:j,left:m}=A.getBoundingClientRect(),{top:N,right:M,bottom:x,left:L}=(A=>{const e=window.getComputedStyle(A);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(A);let T="start"===l||"nearest"===l?w-N:"end"===l?j+x:w+Z/2-N+x,Q="center"===d?m+o/2-L+M:"end"===d?O+M:m-L;const i=[];for(let A=0;A=0&&m>=0&&j<=H&&O<=y&&(e===D&&!r(e)||w>=f&&j<=P&&m>=B&&O<=g))return i;const c=getComputedStyle(e),b=parseInt(c.borderLeftWidth,10),z=parseInt(c.borderTopWidth,10),u=parseInt(c.borderRightWidth,10),N=parseInt(c.borderBottomWidth,10);let M=0,x=0;const L="offsetWidth"in e?e.offsetWidth-e.clientWidth-b-u:0,k="offsetHeight"in e?e.offsetHeight-e.clientHeight-z-N:0,C="offsetWidth"in e?0===e.offsetWidth?0:t/e.offsetWidth:0,G="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(D===e)M="start"===l?T:"end"===l?T-H:"nearest"===l?v(X,X+H,H,z,N,X+T,X+T+Z,Z):T-H/2,x="start"===d?Q:"center"===d?Q-y/2:"end"===d?Q-y:v(p,p+y,y,b,u,p+Q,p+Q+o,o),M=Math.max(0,M+X),x=Math.max(0,x+p);else{M="start"===l?T-f-z:"end"===l?T-P+N+k:"nearest"===l?v(f,P,n,z,N+k,T,T+Z,Z):T-(f+n/2)+k/2,x="start"===d?Q-B-b:"center"===d?Q-(B+t/2)+L/2:"end"===d?Q-g+u+L:v(B,g,t,b,u+L,Q,Q+o,o);const{scrollLeft:A,scrollTop:r}=e;M=0===G?0:Math.max(0,Math.min(r+M/G,e.scrollHeight-n/G+k)),x=0===C?0:Math.max(0,Math.min(A+x/C,e.scrollWidth-t/C+L)),T+=r-M,Q+=A-x}i.push({el:e,top:M,left:x})}return i};function B(A,e){if(!A.isConnected||!(A=>{let e=A;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(A))return;const n=(A=>{const e=window.getComputedStyle(A);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(A);if((A=>"object"==typeof A&&"function"==typeof A.behavior)(e))return e.behavior(P(A,e));const t="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:f,top:r,left:v}of P(A,(A=>!1===A?{block:"end",inline:"nearest"}:(A=>A===Object(A)&&0!==Object.keys(A).length)(A)?A:{block:"start",inline:"nearest"})(e))){const A=r-n.top+n.bottom,e=v-n.left+n.right;f.scroll({top:A,left:e,behavior:t})}}}}]);