"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[36182],{36182:function(e,t,n){n.d(t,{Z:function(){return bt}});var a=n(85846),o=n(64582),r=n(87462),i=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l=n(44327),s=function(e,t){return i.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:c}))};var u=i.forwardRef(s),d=n(94184),f=n.n(d),p=n(4942),v=n(1413),m=n(97685),b=n(71002),g=n(45987);function h(e){var t=i.useRef();t.current=e;var n=i.useCallback((function(){for(var e,n=arguments.length,a=new Array(n),o=0;o=J.F1&&t<=J.F12)return!1;switch(t){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=J.ZERO&&e<=J.NINE)return!0;if(e>=J.NUM_ZERO&&e<=J.NUM_MULTIPLY)return!0;if(e>=J.A&&e<=J.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ee=J,te=function(e){return+setTimeout(e,16)},ne=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(te=function(e){return window.requestAnimationFrame(e)},ne=function(e){return window.cancelAnimationFrame(e)});var ae=0,oe=new Map;function re(e){oe.delete(e)}var ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=ae+=1;function a(t){if(0===t)re(n),e();else{var o=te((function(){a(t-1)}));oe.set(n,o)}}return a(t),n};ie.cancel=function(e){var t=oe.get(e);return re(t),ne(t)};var ce=ie,le=ee.ESC,se=ee.TAB;var ue=(0,i.forwardRef)((function(e,t){var n=e.overlay,a=e.arrow,o=e.prefixCls,r=(0,i.useMemo)((function(){return"function"==typeof n?n():n}),[n]),c=Y(t,null==r?void 0:r.ref);return i.createElement(i.Fragment,null,a&&i.createElement("div",{className:"".concat(o,"-arrow")}),i.cloneElement(r,{ref:q(r)?c:void 0}))})),de={adjustX:1,adjustY:1},fe=[0,0],pe={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-4],targetOffset:fe},top:{points:["bc","tc"],overflow:de,offset:[0,-4],targetOffset:fe},topRight:{points:["br","tr"],overflow:de,offset:[0,-4],targetOffset:fe},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,4],targetOffset:fe},bottom:{points:["tc","bc"],overflow:de,offset:[0,4],targetOffset:fe},bottomRight:{points:["tr","br"],overflow:de,offset:[0,4],targetOffset:fe}},ve=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function me(e,t){var n,a=e.arrow,o=void 0!==a&&a,c=e.prefixCls,l=void 0===c?"rc-dropdown":c,s=e.transitionName,u=e.animation,d=e.align,v=e.placement,b=void 0===v?"bottomLeft":v,h=e.placements,E=void 0===h?pe:h,y=e.getPopupContainer,$=e.showAction,S=e.hideAction,_=e.overlayClassName,w=e.overlayStyle,k=e.visible,N=e.trigger,C=void 0===N?["hover"]:N,x=e.autoFocus,T=e.overlay,R=e.children,M=e.onVisibleChange,I=(0,g.Z)(e,ve),O=i.useState(),P=(0,m.Z)(O,2),A=P[0],L=P[1],U="visible"in e?k:A,Z=i.useRef(null),D=i.useRef(null),F=i.useRef(null);i.useImperativeHandle(t,(function(){return Z.current}));var H=function(e){L(e),null==M||M(e)};!function(e){var t=e.visible,n=e.triggerRef,a=e.onVisibleChange,o=e.autoFocus,r=e.overlayRef,c=i.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==a||a(!1))},s=function(){var e;return!(null===(e=r.current)||void 0===e||!e.focus||(r.current.focus(),c.current=!0,0))},u=function(e){switch(e.keyCode){case le:l();break;case se:var t=!1;c.current||(t=s()),t?e.preventDefault():l()}};i.useEffect((function(){return t?(window.addEventListener("keydown",u),o&&ce(s,3),function(){window.removeEventListener("keydown",u),c.current=!1}):function(){c.current=!1}}),[t])}({visible:U,triggerRef:F,onVisibleChange:H,autoFocus:x,overlayRef:D});var z,B,K,G=function(){return i.createElement(ue,{ref:D,overlay:T,prefixCls:l,arrow:o})},W=i.cloneElement(R,{className:f()(null===(n=R.props)||void 0===n?void 0:n.className,U&&(z=e.openClassName,void 0!==z?z:"".concat(l,"-open"))),ref:q(R)?Y(F,R.ref):void 0}),j=S;return j||-1===C.indexOf("contextMenu")||(j=["click"]),i.createElement(V.Z,(0,r.Z)({builtinPlacements:E},I,{prefixCls:l,ref:Z,popupClassName:f()(_,(0,p.Z)({},"".concat(l,"-show-arrow"),o)),popupStyle:w,action:C,showAction:$,hideAction:j,popupPlacement:b,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:U,stretch:(B=e.minOverlayWidthMatchTrigger,K=e.alignPoint,("minOverlayWidthMatchTrigger"in e?B:!K)?"minWidth":""),popup:"function"==typeof T?G:G(),onPopupVisibleChange:H,onPopupClick:function(t){var n=e.onOverlayClick;L(!1),n&&n(t)},getPopupContainer:y}),W)}var be=i.forwardRef(me),ge=n(64034),he={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=he.F1&&t<=he.F12)return!1;switch(t){case he.ALT:case he.CAPS_LOCK:case he.CONTEXT_MENU:case he.CTRL:case he.DOWN:case he.END:case he.ESC:case he.HOME:case he.INSERT:case he.LEFT:case he.MAC_FF_META:case he.META:case he.NUMLOCK:case he.NUM_CENTER:case he.PAGE_DOWN:case he.PAGE_UP:case he.PAUSE:case he.PRINT_SCREEN:case he.RIGHT:case he.SHIFT:case he.UP:case he.WIN_KEY:case he.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=he.ZERO&&e<=he.NINE)return!0;if(e>=he.NUM_ZERO&&e<=he.NUM_MULTIPLY)return!0;if(e>=he.A&&e<=he.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case he.SPACE:case he.QUESTION_MARK:case he.NUM_PLUS:case he.NUM_MINUS:case he.NUM_PERIOD:case he.NUM_DIVISION:case he.SEMICOLON:case he.DASH:case he.EQUALS:case he.COMMA:case he.PERIOD:case he.SLASH:case he.APOSTROPHE:case he.SINGLE_QUOTE:case he.OPEN_SQUARE_BRACKET:case he.BACKSLASH:case he.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ee=he;function ye(e,t){var n=e.prefixCls,a=e.id,o=e.tabs,r=e.locale,c=e.mobile,l=e.moreIcon,s=void 0===l?"More":l,u=e.moreTransitionName,d=e.style,v=e.className,b=e.editable,g=e.tabBarGutter,h=e.rtl,E=e.removeAriaLabel,y=e.onTabClick,$=e.getPopupContainer,S=e.popupClassName,_=(0,i.useState)(!1),w=(0,m.Z)(_,2),k=w[0],N=w[1],C=(0,i.useState)(null),x=(0,m.Z)(C,2),T=x[0],R=x[1],M="".concat(a,"-more-popup"),I="".concat(n,"-dropdown"),O=null!==T?"".concat(M,"-").concat(T):null,P=null==r?void 0:r.dropdownAriaLabel;var A=i.createElement(ge.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),N(!1)},prefixCls:"".concat(I,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[T],"aria-label":void 0!==P?P:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,r=e.key,c=e.label,l=G(t,o,b,n);return i.createElement(ge.sN,{key:r,id:"".concat(M,"-").concat(r),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(r),disabled:n},i.createElement("span",null,c),l&&i.createElement("button",{type:"button","aria-label":E||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),b.onEdit("remove",{key:t,event:e})}(e,r)}},o||b.removeIcon||"×"))})));function L(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===T}))||0,a=t.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:1,n=ke+=1;function a(t){if(0===t)Ce(n),e();else{var o=_e((function(){a(t-1)}));Ne.set(n,o)}}return a(t),n};xe.cancel=function(e){var t=Ne.get(e);return Ce(t),we(t)};var Te=xe,Re=function(e){var t=e.activeTabOffset,n=e.horizontal,a=e.rtl,o=e.indicatorSize,r=(0,i.useState)(),c=(0,m.Z)(r,2),l=c[0],s=c[1],u=(0,i.useRef)(),d=function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e};function f(){Te.cancel(u.current)}return(0,i.useEffect)((function(){var e={};return t&&(n?(a?(e.right=t.right+t.width/2,e.transform="translateX(50%)"):(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),e.width=d(t.width)):(e.top=t.top+t.height/2,e.transform="translateY(-50%)",e.height=d(t.height))),f(),u.current=Te((function(){s(e)})),f}),[t,n,a,o]),{style:l}},Me=function(e){var t=e.current||{},n=t.offsetWidth,a=void 0===n?0:n,o=t.offsetHeight;return[a,void 0===o?0:o]},Ie=function(e,t){return e[t?0:1]};function Oe(e,t){var n,a=i.useContext(N),o=a.prefixCls,c=a.tabs,l=e.className,s=e.style,u=e.id,d=e.animated,b=e.activeKey,g=e.rtl,E=e.extra,y=e.editable,$=e.locale,S=e.tabPosition,_=e.tabBarGutter,w=e.children,k=e.onTabClick,C=e.onTabScroll,x=e.indicatorSize,T=(0,i.useRef)(),R=(0,i.useRef)(),O=(0,i.useRef)(),P=(0,i.useRef)(),A=(0,i.useRef)(),L=(0,i.useRef)(),G=(0,i.useRef)(),W="top"===S||"bottom"===S,V=D(0,(function(e,t){W&&C&&C({direction:e>t?"left":"right"})})),Q=(0,m.Z)(V,2),Y=Q[0],q=Q[1],J=D(0,(function(e,t){!W&&C&&C({direction:e>t?"top":"bottom"})})),ee=(0,m.Z)(J,2),te=ee[0],ne=ee[1],ae=(0,i.useState)([0,0]),oe=(0,m.Z)(ae,2),re=oe[0],ie=oe[1],ce=(0,i.useState)([0,0]),le=(0,m.Z)(ce,2),se=le[0],ue=le[1],de=(0,i.useState)([0,0]),fe=(0,m.Z)(de,2),pe=fe[0],ve=fe[1],me=(0,i.useState)([0,0]),be=(0,m.Z)(me,2),ge=be[0],he=be[1],Ee=function(e){var t=(0,i.useRef)([]),n=(0,i.useState)({}),a=(0,m.Z)(n,2)[1],o=(0,i.useRef)("function"==typeof e?e():e),r=H((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,a({})}));return[o.current,function(e){t.current.push(e),r()}]}(new Map),ye=(0,m.Z)(Ee,2),_e=ye[0],we=ye[1],ke=function(e,t,n){return(0,i.useMemo)((function(){for(var n,a=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Z,r=o.left+o.width,i=0;iUe?Ue:e}W&&g?(Le=0,Ue=Math.max(0,Ce-Pe)):(Le=Math.min(0,Pe-Ce),Ue=0);var De=(0,i.useRef)(),Fe=(0,i.useState)(),He=(0,m.Z)(Fe,2),ze=He[0],Be=He[1];function Ke(){Be(Date.now())}function Ge(){window.clearTimeout(De.current)}!function(e,t){var n=(0,i.useState)(),a=(0,m.Z)(n,2),o=a[0],r=a[1],c=(0,i.useState)(0),l=(0,m.Z)(c,2),s=l[0],u=l[1],d=(0,i.useState)(0),f=(0,m.Z)(d,2),p=f[0],v=f[1],b=(0,i.useState)(),g=(0,m.Z)(b,2),h=g[0],E=g[1],y=(0,i.useRef)(),$=(0,i.useRef)(),S=(0,i.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,a=t.screenY;r({x:n,y:a}),window.clearInterval(y.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],a=n.screenX,i=n.screenY;r({x:a,y:i});var c=a-o.x,l=i-o.y;t(c,l);var d=Date.now();u(d),v(d-s),E({x:c,y:l})}},onTouchEnd:function(){if(o&&(r(null),E(null),h)){var e=h.x/p,n=h.y/p,a=Math.abs(e),i=Math.abs(n);if(Math.max(a,i)<.1)return;var c=e,l=n;y.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(l)<.01?window.clearInterval(y.current):t(20*(c*=F),20*(l*=F))}),20)}},onWheel:function(e){var n=e.deltaX,a=e.deltaY,o=0,r=Math.abs(n),i=Math.abs(a);r===i?o="x"===$.current?n:a:r>i?(o=n,$.current="x"):(o=a,$.current="y"),t(-o,-o)&&e.preventDefault()}},i.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(P,(function(e,t){function n(e,t){e((function(e){return Ze(e+t)}))}return!!Oe&&(W?n(q,e):n(ne,t),Ge(),Ke(),!0)})),(0,i.useEffect)((function(){return Ge(),ze&&(De.current=window.setTimeout((function(){Be(0)}),100)),Ge}),[ze]);var We=function(e,t,n,a,o,r,c){var l,s,u,d=c.tabs,f=c.tabPosition,p=c.rtl;return["top","bottom"].includes(f)?(l="width",s=p?"right":"left",u=Math.abs(n)):(l="height",s="top",u=-n),(0,i.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,a=n,o=0;ou+t){a=o-1;break}}for(var i=0,c=n-1;c>=0;c-=1)if((e.get(d[c].key)||z)[s]=a?[0,0]:[i,a]}),[e,t,a,o,r,u,f,d.map((function(e){return e.key})).join("_"),p])}(ke,Pe,W?Y:te,Ce,xe,Te,(0,v.Z)((0,v.Z)({},e),{},{tabs:c})),je=(0,m.Z)(We,2),Xe=je[0],Ve=je[1],Qe=h((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=ke.get(e)||{width:0,height:0,left:0,right:0,top:0};if(W){var n=Y;g?t.rightY+Pe&&(n=t.right+t.width-Pe):t.left<-Y?n=-t.left:t.left+t.width>-Y+Pe&&(n=-(t.left+t.width-Pe)),ne(0),q(Ze(n))}else{var a=te;t.top<-te?a=-t.top:t.top+t.height>-te+Pe&&(a=-(t.top+t.height-Pe)),q(0),ne(Ze(a))}})),Ye={};"top"===S||"bottom"===S?Ye[g?"marginRight":"marginLeft"]=_:Ye.marginTop=_;var qe=c.map((function(e,t){var n=e.key;return i.createElement(Se,{id:u,prefixCls:o,key:n,tab:e,style:0===t?void 0:Ye,closable:e.closable,editable:y,active:n===b,renderWrapper:w,removeAriaLabel:null==$?void 0:$.removeAriaLabel,onClick:function(e){k(n,e)},onFocus:function(){Qe(n),Ke(),P.current&&(g||(P.current.scrollLeft=0),P.current.scrollTop=0)}})})),Je=function(){return we((function(){var e=new Map;return c.forEach((function(t){var n,a=t.key,o=null===(n=A.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(K(a),'"]'));o&&e.set(a,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))};(0,i.useEffect)((function(){Je()}),[c.map((function(e){return e.key})).join("_")]);var et=H((function(){var e=Me(T),t=Me(R),n=Me(O);ie([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var a=Me(G);ve(a);var o=Me(L);he(o);var r=Me(A);ue([r[0]-a[0],r[1]-a[1]]),Je()})),tt=c.slice(0,Xe),nt=c.slice(Ve+1),at=[].concat((0,M.Z)(tt),(0,M.Z)(nt)),ot=ke.get(b),rt=Re({activeTabOffset:ot,horizontal:W,rtl:g,indicatorSize:x}).style;(0,i.useEffect)((function(){Qe()}),[b,Le,Ue,B(ot),B(ke),W]),(0,i.useEffect)((function(){et()}),[g]);var it,ct,lt,st,ut=!!at.length,dt="".concat(o,"-nav-wrap");return W?g?(ct=Y>0,it=Y!==Ue):(it=Y<0,ct=Y!==Le):(lt=te<0,st=te!==Le),i.createElement(I.Z,{onResize:et},i.createElement("div",{ref:U(t,T),role:"tablist",className:f()("".concat(o,"-nav"),l),style:s,onKeyDown:function(){Ke()}},i.createElement(X,{ref:R,position:"left",extra:E,prefixCls:o}),i.createElement(I.Z,{onResize:et},i.createElement("div",{className:f()(dt,(n={},(0,p.Z)(n,"".concat(dt,"-ping-left"),it),(0,p.Z)(n,"".concat(dt,"-ping-right"),ct),(0,p.Z)(n,"".concat(dt,"-ping-top"),lt),(0,p.Z)(n,"".concat(dt,"-ping-bottom"),st),n)),ref:P},i.createElement(I.Z,{onResize:et},i.createElement("div",{ref:A,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(Y,"px, ").concat(te,"px)"),transition:ze?"none":void 0}},qe,i.createElement(j,{ref:G,prefixCls:o,locale:$,editable:y,style:(0,v.Z)((0,v.Z)({},0===qe.length?void 0:Ye),{},{visibility:ut?"hidden":null})}),i.createElement("div",{className:f()("".concat(o,"-ink-bar"),(0,p.Z)({},"".concat(o,"-ink-bar-animated"),d.inkBar)),style:rt}))))),i.createElement($e,(0,r.Z)({},e,{removeAriaLabel:null==$?void 0:$.removeAriaLabel,ref:L,prefixCls:o,tabs:at,className:!ut&&Ae,tabMoving:!!ze})),i.createElement(X,{ref:O,position:"right",extra:E,prefixCls:o})))}var Pe=i.forwardRef(Oe),Ae=["renderTabBar"],Le=["label","key"];function Ue(e){var t=e.renderTabBar,n=(0,g.Z)(e,Ae),a=i.useContext(N).tabs;return t?t((0,v.Z)((0,v.Z)({},n),{},{panes:a.map((function(e){var t=e.label,n=e.key,a=(0,g.Z)(e,Le);return i.createElement(x,(0,r.Z)({tab:t,key:n,tabKey:n},a))}))}),Pe):i.createElement(Pe,n)}var Ze={},De=[];function Fe(e,t){}function He(e,t){}function ze(e,t,n){t||Ze[n]||(e(!1,n),Ze[n]=!0)}function Be(e,t){ze(Fe,e,t)}Be.preMessage=function(e){De.push(e)},Be.resetWarned=function(){Ze={}},Be.noteOnce=function(e,t){ze(He,e,t)};var Ke=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Ge=0;function We(e,t){var n,a=e.id,o=e.prefixCls,c=void 0===o?"rc-tabs":o,l=e.className,s=e.items,u=e.direction,d=e.activeKey,h=e.defaultActiveKey,E=e.editable,y=e.animated,$=e.tabPosition,S=void 0===$?"top":$,_=e.tabBarGutter,k=e.tabBarStyle,C=e.tabBarExtraContent,x=e.locale,T=e.moreIcon,M=e.moreTransitionName,I=e.destroyInactiveTabPane,O=e.renderTabBar,P=e.onChange,A=e.onTabClick,L=e.onTabScroll,U=e.getPopupContainer,Z=e.popupClassName,D=e.indicatorSize,F=(0,g.Z)(e,Ke),H=i.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===(0,b.Z)(e)&&"key"in e}))}),[s]),z="rtl"===u,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,v.Z)({inkBar:!0},"object"===(0,b.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(y),K=(0,i.useState)(!1),G=(0,m.Z)(K,2),W=G[0],j=G[1];(0,i.useEffect)((function(){j(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=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(e)||/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==e?void 0:e.substr(0,4))}())}),[]);var X=w((function(){var e;return null===(e=H[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:h}),V=(0,m.Z)(X,2),Q=V[0],Y=V[1],q=(0,i.useState)((function(){return H.findIndex((function(e){return e.key===Q}))})),J=(0,m.Z)(q,2),ee=J[0],te=J[1];(0,i.useEffect)((function(){var e,t=H.findIndex((function(e){return e.key===Q}));-1===t&&(t=Math.max(0,Math.min(ee,H.length-1)),Y(null===(e=H[t])||void 0===e?void 0:e.key));te(t)}),[H.map((function(e){return e.key})).join("_"),Q,ee]);var ne=w(null,{value:a}),ae=(0,m.Z)(ne,2),oe=ae[0],re=ae[1];(0,i.useEffect)((function(){a||(re("rc-tabs-".concat(Ge)),Ge+=1)}),[]);var ie={id:oe,activeKey:Q,animated:B,tabPosition:S,rtl:z,mobile:W},ce=(0,v.Z)((0,v.Z)({},ie),{},{editable:E,locale:x,moreIcon:T,moreTransitionName:M,tabBarGutter:_,onTabClick:function(e,t){null==A||A(e,t);var n=e!==Q;Y(e),n&&(null==P||P(e))},onTabScroll:L,extra:C,style:k,panes:null,getPopupContainer:U,popupClassName:Z,indicatorSize:D});return i.createElement(N.Provider,{value:{tabs:H,prefixCls:c}},i.createElement("div",(0,r.Z)({ref:t,id:a,className:f()(c,"".concat(c,"-").concat(S),(n={},(0,p.Z)(n,"".concat(c,"-mobile"),W),(0,p.Z)(n,"".concat(c,"-editable"),E),(0,p.Z)(n,"".concat(c,"-rtl"),z),n),l)},F),i.createElement(Ue,(0,r.Z)({},ce,{renderTabBar:O})),i.createElement(R,(0,r.Z)({destroyInactiveTabPane:I},ie,{animated:B}))))}var je=i.forwardRef(We),Xe=n(53124),Ve=n(98675);var Qe=()=>null,Ye=n(33603);const qe={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Je=n(37419),et=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,ot.oN)(e,"slide-up"),(0,ot.oN)(e,"slide-down")]]};const it=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:r,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${e.lineWidth}px ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ct=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,tt.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${a}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},tt.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},lt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:r,verticalItemMargin:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:r,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},st=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:r}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}}}}}},ut=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:r,horizontalItemPadding:i,itemSelectedColor:c,itemColor:l}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,tt.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:a},[`&${s}-active ${s}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:r}}}},dt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ft=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:r,itemActiveColor:i,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:a,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${c}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,tt.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ut(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var pt=(0,nt.Z)("Tabs",(e=>{const t=(0,at.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[st(t),dt(t),lt(t),ct(t),it(t),ft(t),rt(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),vt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o{const{type:t,className:n,rootClassName:r,size:c,onEdit:l,hideAdd:s,centered:d,addIcon:p,popupClassName:v,children:m,items:b,animated:g,style:h,indicatorSize:E}=e,y=vt(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:$,moreIcon:S=i.createElement(o.Z,null)}=y,{direction:_,tabs:w,getPrefixCls:k,getPopupContainer:N}=i.useContext(Xe.E_),C=k("tabs",$),[x,T]=pt(C);let R;"editable-card"===t&&(R={onEdit:(e,t)=>{let{key:n,event:a}=t;null==l||l("add"===e?a:n,e)},removeIcon:i.createElement(a.Z,null),addIcon:p||i.createElement(u,null),showAdd:!0!==s});const M=k(),I=function(e,t){return e||function(e){return e.filter((e=>e))}((0,Je.Z)(t).map((e=>{if(i.isValidElement(e)){const{key:t,props:n}=e,a=n||{},{tab:o}=a,r=et(a,["tab"]);return Object.assign(Object.assign({key:String(t)},r),{label:o})}return null})))}(b,m),O=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},qe),{motionName:(0,Ye.m)(e,"switch")})),t}(C,g),P=(0,Ve.Z)(c),A=Object.assign(Object.assign({},null==w?void 0:w.style),h);return x(i.createElement(je,Object.assign({direction:_,getPopupContainer:N,moreTransitionName:`${M}-slide-up`},y,{items:I,className:f()({[`${C}-${P}`]:P,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:"editable-card"===t,[`${C}-centered`]:d},null==w?void 0:w.className,n,r,T),popupClassName:f()(v,T),style:A,editable:R,moreIcon:S,prefixCls:C,animated:O,indicatorSize:null!=E?E:null==w?void 0:w.indicatorSize})))};mt.TabPane=Qe;var bt=mt}}]);