(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4177],{25414:function(){},60561:function(gt,Oe,b){"use strict";b.d(Oe,{Z:function(){return la}});var L=b(96156),H=b(22122),Re=b(54549),We=b(44545),Et=b(49101),St=b(94184),z=b.n(St),U=b(28991),x=b(28481),pe=b(90484),he=b(81253),t=b(67294),Ct=b(31131),De=b(21770),xt=b(63441),ye=(0,t.createContext)(null),Zt=t.forwardRef(function(e,r){var o=e.prefixCls,n=e.className,a=e.style,i=e.id,l=e.active,s=e.tabKey,u=e.children;return t.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:a,className:z()(o,l&&"".concat(o,"-active"),n),ref:r},u)}),Ke=Zt,Tt=["key","forceRender","style","className"];function Pt(e){var r=e.id,o=e.activeKey,n=e.animated,a=e.tabPosition,i=e.destroyInactiveTabPane,l=t.useContext(ye),s=l.prefixCls,u=l.tabs,f=n.tabPane,E="".concat(s,"-tabpane");return t.createElement("div",{className:z()("".concat(s,"-content-holder"))},t.createElement("div",{className:z()("".concat(s,"-content"),"".concat(s,"-content-").concat(a),(0,L.Z)({},"".concat(s,"-content-animated"),f))},u.map(function(d){var P=d.key,O=d.forceRender,S=d.style,R=d.className,M=(0,he.Z)(d,Tt),B=P===o;return t.createElement(xt.Z,(0,H.Z)({key:P,visible:B,forceRender:O,removeOnLeave:!!i,leavedClassName:"".concat(E,"-hidden")},n.tabPaneMotion),function(N,Z){var C=N.style,A=N.className;return t.createElement(Ke,(0,H.Z)({},M,{prefixCls:E,id:r,tabKey:P,animated:f,active:B,style:(0,U.Z)((0,U.Z)({},S),C),className:z()(R,A),ref:Z}))})})))}var $e=b(85061),ue=b(75164),je=b(48717);function He(e){var r=(0,t.useRef)(),o=(0,t.useRef)(!1);function n(){for(var a=arguments.length,i=new Array(a),l=0;ld&&PE+S){M=B-1;break}}for(var Z=0,C=R-1;C>=0;C-=1){var A=e.get(i[C].key)||Ve;if(A[f]K?(p=T,j.current="x"):(p=I,j.current="y"),r(-p,-p)&&c.preventDefault()}var m=(0,t.useRef)(null);m.current={onTouchStart:Z,onTouchMove:C,onTouchEnd:A,onWheel:$},t.useEffect(function(){function c(h){m.current.onTouchStart(h)}function T(h){m.current.onTouchMove(h)}function I(h){m.current.onTouchEnd(h)}function p(h){m.current.onWheel(h)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",I,{passive:!1}),e.current.addEventListener("touchstart",c,{passive:!1}),e.current.addEventListener("wheel",p),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",I)}},[])}function Dt(){var e=(0,t.useRef)(new Map);function r(n){return e.current.has(n)||e.current.set(n,t.createRef()),e.current.get(n)}function o(n){e.current.delete(n)}return[r,o]}function Ye(e,r){var o=t.useRef(e),n=t.useState({}),a=(0,x.Z)(n,2),i=a[1];function l(s){var u=typeof s=="function"?s(o.current):s;u!==o.current&&r(u,o.current),o.current=u,i({})}return[o.current,l]}var Je=function(r){var o=r.position,n=r.prefixCls,a=r.extra;if(!a)return null;var i,l={};return a&&(0,pe.Z)(a)==="object"&&!t.isValidElement(a)?l=a:l.right=a,o==="right"&&(i=l.right),o==="left"&&(i=l.left),i?t.createElement("div",{className:"".concat(n,"-extra-content")},i):null};function Kt(e,r){var o,n=t.useContext(ye),a=n.prefixCls,i=n.tabs,l=e.className,s=e.style,u=e.id,f=e.animated,E=e.activeKey,d=e.rtl,P=e.extra,O=e.editable,S=e.locale,R=e.tabPosition,M=e.tabBarGutter,B=e.children,N=e.onTabClick,Z=e.onTabScroll,C=(0,t.useRef)(),A=(0,t.useRef)(),j=(0,t.useRef)(),$=(0,t.useRef)(),m=Dt(),c=(0,x.Z)(m,2),T=c[0],I=c[1],p=R==="top"||R==="bottom",h=Ye(0,function(g,y){p&&Z&&Z({direction:g>y?"left":"right"})}),K=(0,x.Z)(h,2),W=K[0],te=K[1],ae=Ye(0,function(g,y){!p&&Z&&Z({direction:g>y?"top":"bottom"})}),ne=(0,x.Z)(ae,2),V=ne[0],re=ne[1],se=(0,t.useState)(0),v=(0,x.Z)(se,2),k=v[0],J=v[1],F=(0,t.useState)(0),q=(0,x.Z)(F,2),Q=q[0],oe=q[1],Ee=(0,t.useState)(null),Se=(0,x.Z)(Ee,2),G=Se[0],Ne=Se[1],Ce=(0,t.useState)(null),xe=(0,x.Z)(Ce,2),_=xe[0],w=xe[1],ie=(0,t.useState)(0),ce=(0,x.Z)(ie,2),sa=ce[0],ca=ce[1],ua=(0,t.useState)(0),et=(0,x.Z)(ua,2),da=et[0],va=et[1],fa=Rt(new Map),tt=(0,x.Z)(fa,2),ma=tt[0],ba=tt[1],Ze=kt(i,ma,k),pa="".concat(a,"-nav-operations-hidden"),de=0,ve=0;p?d?(de=0,ve=Math.max(0,k-G)):(de=Math.min(0,G-k),ve=0):(de=Math.min(0,_-Q),ve=0);function Ie(g){return gve?ve:g}var at=(0,t.useRef)(),ha=(0,t.useState)(),nt=(0,x.Z)(ha,2),Te=nt[0],rt=nt[1];function ke(){rt(Date.now())}function Ae(){window.clearTimeout(at.current)}Wt(C,function(g,y){function D(X,le){X(function(me){var Be=Ie(me+le);return Be})}if(p){if(G>=k)return!1;D(te,g)}else{if(_>=Q)return!1;D(re,y)}return Ae(),ke(),!0}),(0,t.useEffect)(function(){return Ae(),Te&&(at.current=window.setTimeout(function(){rt(0)},100)),Ae},[Te]);function ot(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,y=Ze.get(g)||{width:0,height:0,left:0,right:0,top:0};if(p){var D=W;d?y.rightW+G&&(D=y.right+y.width-G):y.left<-W?D=-y.left:y.left+y.width>-W+G&&(D=-(y.left+y.width-G)),re(0),te(Ie(D))}else{var X=V;y.top<-V?X=-y.top:y.top+y.height>-V+_&&(X=-(y.top+y.height-_)),te(0),re(Ie(X))}}var ya=At(Ze,{width:G,height:_,left:W,top:V},{width:k,height:Q},{width:sa,height:da},(0,U.Z)((0,U.Z)({},e),{},{tabs:i})),it=(0,x.Z)(ya,2),ga=it[0],Ea=it[1],Pe={};R==="top"||R==="bottom"?Pe[d?"marginRight":"marginLeft"]=M:Pe.marginTop=M;var lt=i.map(function(g,y){var D=g.key;return t.createElement(It,{id:u,prefixCls:a,key:D,tab:g,style:y===0?void 0:Pe,closable:g.closable,editable:O,active:D===E,renderWrapper:B,removeAriaLabel:S==null?void 0:S.removeAriaLabel,ref:T(D),onClick:function(le){N(D,le)},onRemove:function(){I(D)},onFocus:function(){ot(D),ke(),!!C.current&&(d||(C.current.scrollLeft=0),C.current.scrollTop=0)}})}),we=He(function(){var g,y,D,X,le,me,Be=((g=C.current)===null||g===void 0?void 0:g.offsetWidth)||0,Pa=((y=C.current)===null||y===void 0?void 0:y.offsetHeight)||0,bt=((D=$.current)===null||D===void 0?void 0:D.offsetWidth)||0,pt=((X=$.current)===null||X===void 0?void 0:X.offsetHeight)||0;Ne(Be),w(Pa),ca(bt),va(pt);var Ra=(((le=A.current)===null||le===void 0?void 0:le.offsetWidth)||0)-bt,Na=(((me=A.current)===null||me===void 0?void 0:me.offsetHeight)||0)-pt;J(Ra),oe(Na),ba(function(){var ht=new Map;return i.forEach(function(Ia){var yt=Ia.key,be=T(yt).current;be&&ht.set(yt,{width:be.offsetWidth,height:be.offsetHeight,left:be.offsetLeft,top:be.offsetTop})}),ht})}),Sa=i.slice(0,ga),Ca=i.slice(Ea+1),st=[].concat((0,$e.Z)(Sa),(0,$e.Z)(Ca)),xa=(0,t.useState)(),ct=(0,x.Z)(xa,2),Za=ct[0],Ta=ct[1],ee=Ze.get(E),ut=(0,t.useRef)();function dt(){ue.Z.cancel(ut.current)}(0,t.useEffect)(function(){var g={};return ee&&(p?(d?g.right=ee.right:g.left=ee.left,g.width=ee.width):(g.top=ee.top,g.height=ee.height)),dt(),ut.current=(0,ue.Z)(function(){Ta(g)}),dt},[ee,p,d]),(0,t.useEffect)(function(){ot()},[E,ee,Ze,p]),(0,t.useEffect)(function(){we()},[d,M,E,i.map(function(g){return g.key}).join("_")]);var vt=!!st.length,fe="".concat(a,"-nav-wrap"),Me,Le,ft,mt;return p?d?(Le=W>0,Me=W+G0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},r;return e===!1?r={inkBar:!1,tabPane:!1}:e===!0?r={inkBar:!0,tabPane:!1}:r=(0,U.Z)({inkBar:!0},(0,pe.Z)(e)==="object"?e:{}),r.tabPaneMotion&&r.tabPane===void 0&&(r.tabPane=!0),!r.tabPaneMotion&&r.tabPane&&(r.tabPane=!1),r}var Vt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],qe=0;function Ft(e,r){var o,n=e.id,a=e.prefixCls,i=a===void 0?"rc-tabs":a,l=e.className,s=e.items,u=e.direction,f=e.activeKey,E=e.defaultActiveKey,d=e.editable,P=e.animated,O=e.tabPosition,S=O===void 0?"top":O,R=e.tabBarGutter,M=e.tabBarStyle,B=e.tabBarExtraContent,N=e.locale,Z=e.moreIcon,C=e.moreTransitionName,A=e.destroyInactiveTabPane,j=e.renderTabBar,$=e.onChange,m=e.onTabClick,c=e.onTabScroll,T=e.getPopupContainer,I=e.popupClassName,p=(0,he.Z)(e,Vt),h=t.useMemo(function(){return(s||[]).filter(function(w){return w&&(0,pe.Z)(w)==="object"&&"key"in w})},[s]),K=u==="rtl",W=zt(P),te=(0,t.useState)(!1),ae=(0,x.Z)(te,2),ne=ae[0],V=ae[1];(0,t.useEffect)(function(){V((0,Ct.Z)())},[]);var re=(0,De.Z)(function(){var w;return(w=h[0])===null||w===void 0?void 0:w.key},{value:f,defaultValue:E}),se=(0,x.Z)(re,2),v=se[0],k=se[1],J=(0,t.useState)(function(){return h.findIndex(function(w){return w.key===v})}),F=(0,x.Z)(J,2),q=F[0],Q=F[1];(0,t.useEffect)(function(){var w=h.findIndex(function(ce){return ce.key===v});if(w===-1){var ie;w=Math.max(0,Math.min(q,h.length-1)),k((ie=h[w])===null||ie===void 0?void 0:ie.key)}Q(w)},[h.map(function(w){return w.key}).join("_"),v,q]);var oe=(0,De.Z)(null,{value:n}),Ee=(0,x.Z)(oe,2),Se=Ee[0],G=Ee[1];(0,t.useEffect)(function(){n||(G("rc-tabs-".concat(qe)),qe+=1)},[]);function Ne(w,ie){m==null||m(w,ie);var ce=w!==v;k(w),ce&&($==null||$(w))}var Ce={id:Se,activeKey:v,animated:W,tabPosition:S,rtl:K,mobile:ne},xe,_=(0,U.Z)((0,U.Z)({},Ce),{},{editable:d,locale:N,moreIcon:Z,moreTransitionName:C,tabBarGutter:R,onTabClick:Ne,onTabScroll:c,extra:B,style:M,panes:null,getPopupContainer:T,popupClassName:I});return t.createElement(ye.Provider,{value:{tabs:h,prefixCls:i}},t.createElement("div",(0,H.Z)({ref:r,id:n,className:z()(i,"".concat(i,"-").concat(S),(o={},(0,L.Z)(o,"".concat(i,"-mobile"),ne),(0,L.Z)(o,"".concat(i,"-editable"),d),(0,L.Z)(o,"".concat(i,"-rtl"),K),o),l)},p),xe,t.createElement(Ht,(0,H.Z)({},_,{renderTabBar:j})),t.createElement(Pt,(0,H.Z)({destroyInactiveTabPane:A},Ce,{animated:W}))))}var Ut=t.forwardRef(Ft),Gt=Ut,Xt=Gt,Yt=b(53124),Jt=b(97647),Qt=b(33603),qt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function _t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},o;return r===!1?o={inkBar:!1,tabPane:!1}:r===!0?o={inkBar:!0,tabPane:!1}:o=(0,H.Z)({inkBar:!0},(0,pe.Z)(r)==="object"?r:{}),o.tabPane&&(o.tabPaneMotion=(0,H.Z)((0,H.Z)({},qt),{motionName:(0,Qt.mL)(e,"switch")})),o}var ea=b(50344),ta=function(e,r){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a