From d63cf340849e77bd7282f3329136823a4b1c9f2e Mon Sep 17 00:00:00 2001 From: caiocampos <20524962+caiocampos@users.noreply.github.com> Date: Wed, 27 Nov 2024 22:37:14 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20caiocamp?= =?UTF-8?q?os/blog-posts@7e9272194b8b2afc4f65e7cd4d8f44fd55ff4402=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 6 +- .../{index-Ba0UPI-0.js => index-CsuSgvFl.js} | 2 +- ...{vendor-Dz7i5YQ6.js => vendor-DbZkq2Jh.js} | 2 +- ...td-Bt62FfhQ.js => vendor_antd-XuRyGCO6.js} | 230 +++++++++--------- index.html | 6 +- 5 files changed, 123 insertions(+), 123 deletions(-) rename assets/{index-Ba0UPI-0.js => index-CsuSgvFl.js} (99%) rename assets/{vendor-Dz7i5YQ6.js => vendor-DbZkq2Jh.js} (99%) rename assets/{vendor_antd-Bt62FfhQ.js => vendor_antd-XuRyGCO6.js} (53%) diff --git a/404.html b/404.html index ec95d40ef..9c11d1b2c 100644 --- a/404.html +++ b/404.html @@ -13,10 +13,10 @@ -->
Qe?"left":"right"})}),D=te(F,2),N=D[0],_=D[1],R=HS(0,function(Je,Qe){!M&&h&&h({direction:Je>Qe?"top":"bottom"})}),T=te(R,2),j=T[0],A=T[1],L=l.useState([0,0]),k=te(L,2),V=k[0],H=k[1],z=l.useState([0,0]),K=te(z,2),q=K[0],W=K[1],G=l.useState([0,0]),ne=te(G,2),Q=ne[0],J=ne[1],Y=l.useState([0,0]),ee=te(Y,2),Z=ee[0],ie=ee[1],ae=pV(new Map),se=te(ae,2),le=se[0],ue=se[1],fe=vV(C,le,q[0]),ce=Yu(V,M),ve=Yu(q,M),de=Yu(Q,M),me=Yu(Z,M),pe=Math.floor(ce)Ee?Ee:Je}var Re=l.useRef(null),Te=l.useState(),be=te(Te,2),ye=be[0],Oe=be[1];function $e(){Oe(Date.now())}function ge(){Re.current&&clearTimeout(Re.current)}gV(E,function(Je,Qe){function dt($t,st){$t(function(at){var bt=we(at+st);return bt})}return pe?(M?dt(_,Je):dt(A,Qe),ge(),$e(),!0):!1}),l.useEffect(function(){return ge(),ye&&(Re.current=setTimeout(function(){Oe(0)},100)),ge},[ye]);var Me=hV(fe,Se,M?N:j,ve,de,me,w(w({},e),{},{tabs:C})),je=te(Me,2),it=je[0],Ue=je[1],ke=Rt(function(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Qe=fe.get(Je)||{width:0,height:0,left:0,right:0,top:0};if(M){var dt=N;s?Qe.right N+Se&&(dt=Qe.right+Qe.width-Se):Qe.left<-N?dt=-Qe.left:Qe.left+Qe.width>-N+Se&&(dt=-(Qe.left+Qe.width-Se)),A(0),_(we(dt))}else{var $t=j;Qe.top<-j?$t=-Qe.top:Qe.top+Qe.height>-j+Se&&($t=-(Qe.top+Qe.height-Se)),_(0),A(we($t))}}),Be={};f==="top"||f==="bottom"?Be[s?"marginRight":"marginLeft"]=v:Be.marginTop=v;var Ge=C.map(function(Je,Qe){var dt=Je.key;return l.createElement(SV,{id:a,prefixCls:y,key:dt,tab:Je,style:Qe===0?void 0:Be,closable:Je.closable,editable:u,active:dt===i,renderWrapper:m,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(st){g(dt,st)},onFocus:function(){ke(dt),$e(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),Xe=function(){return ue(function(){var Qe,dt=new Map,$t=(Qe=P.current)===null||Qe===void 0?void 0:Qe.getBoundingClientRect();return C.forEach(function(st){var at,bt=st.key,Ye=(at=P.current)===null||at===void 0?void 0:at.querySelector('[data-node-key="'.concat(j4(bt),'"]'));if(Ye){var tt=xV(Ye,$t),ot=te(tt,4),nt=ot[0],Ve=ot[1],Ct=ot[2],Et=ot[3];dt.set(bt,{width:nt,height:Ve,left:Ct,top:Et})}}),dt})};l.useEffect(function(){Xe()},[C.map(function(Je){return Je.key}).join("_")]);var qe=D4(function(){var Je=Ki(S),Qe=Ki(x),dt=Ki($);H([Je[0]-Qe[0]-dt[0],Je[1]-Qe[1]-dt[1]]);var $t=Ki(O);J($t);var st=Ki(I);ie(st);var at=Ki(P);W([at[0]-$t[0],at[1]-$t[1]]),Xe()}),He=C.slice(0,it),We=C.slice(Ue+1),Ae=[].concat(Ce(He),Ce(We)),ht=fe.get(i),De=fV({activeTabOffset:ht,horizontal:M,indicator:p,rtl:s}),Pe=De.style;l.useEffect(function(){ke()},[i,xe,Ee,US(ht),US(fe),M]),l.useEffect(function(){qe()},[s]);var _e=!!Ae.length,Ke="".concat(y,"-nav-wrap"),et,ft,yt,vt;return M?s?(ft=N>0,et=N!==Ee):(et=N<0,ft=N!==xe):(yt=j<0,vt=j!==xe),l.createElement(kn,{onResize:qe},l.createElement("div",{ref:Ga(t,S),role:"tablist",className:oe("".concat(y,"-nav"),n),style:r,onKeyDown:function(){$e()}},l.createElement(GS,{ref:x,position:"left",extra:c,prefixCls:y}),l.createElement(kn,{onResize:qe},l.createElement("div",{className:oe(Ke,B(B(B(B({},"".concat(Ke,"-ping-left"),et),"".concat(Ke,"-ping-right"),ft),"".concat(Ke,"-ping-top"),yt),"".concat(Ke,"-ping-bottom"),vt)),ref:E},l.createElement(kn,{onResize:qe},l.createElement("div",{ref:P,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(j,"px)"),transition:ye?"none":void 0}},Ge,l.createElement(L4,{ref:O,prefixCls:y,locale:d,editable:u,style:w(w({},Ge.length===0?void 0:Be),{},{visibility:_e?"hidden":null})}),l.createElement("div",{className:oe("".concat(y,"-ink-bar"),B({},"".concat(y,"-ink-bar-animated"),o.inkBar)),style:Pe}))))),l.createElement(CV,he({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:I,prefixCls:y,tabs:Ae,className:!_e&&Ne,tabMoving:!!ye})),l.createElement(GS,{ref:$,position:"right",extra:c,prefixCls:y})))}),k4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:oe(n,i&&"".concat(n,"-active"),r),ref:t},c)}),$V=["renderTabBar"],wV=["label","key"],EV=function(t){var n=t.renderTabBar,r=Fe(t,$V),a=l.useContext(Wv),o=a.tabs;if(n){var i=w(w({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=Fe(s,wV);return l.createElement(k4,he({tab:c,key:u,tabKey:u},d))})});return n(i,qS)}return l.createElement(qS,r)},PV=["key","forceRender","style","className","destroyInactiveTabPane"],IV=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(Wv),c=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:oe("".concat(c,"-content-holder"))},l.createElement("div",{className:oe("".concat(c,"-content"),"".concat(c,"-content-").concat(o),B({},"".concat(c,"-content-animated"),d))},u.map(function(v){var m=v.key,g=v.forceRender,h=v.style,p=v.className,b=v.destroyInactiveTabPane,y=Fe(v,PV),C=m===r;return l.createElement(ir,he({key:m,visible:C,forceRender:g,removeOnLeave:!!(i||b),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(S,x){var $=S.style,E=S.className;return l.createElement(k4,he({},y,{prefixCls:f,id:n,tabKey:m,animated:d,active:C,style:w(w({},h),$),className:oe(p,E),ref:x}))})})))};function OV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=w({inkBar:!0},Le(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var RV=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],XS=0,MV=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,m=v===void 0?"top":v,g=e.tabBarGutter,h=e.tabBarStyle,p=e.tabBarExtraContent,b=e.locale,y=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,$=e.onTabClick,E=e.onTabScroll,P=e.getPopupContainer,I=e.popupClassName,O=e.indicator,M=Fe(e,RV),F=l.useMemo(function(){return(i||[]).filter(function(Z){return Z&&Le(Z)==="object"&&"key"in Z})},[i]),D=s==="rtl",N=OV(f),_=l.useState(!1),R=te(_,2),T=R[0],j=R[1];l.useEffect(function(){j(Ev())},[]);var A=gt(function(){var Z;return(Z=F[0])===null||Z===void 0?void 0:Z.key},{value:c,defaultValue:u}),L=te(A,2),k=L[0],V=L[1],H=l.useState(function(){return F.findIndex(function(Z){return Z.key===k})}),z=te(H,2),K=z[0],q=z[1];l.useEffect(function(){var Z=F.findIndex(function(ae){return ae.key===k});if(Z===-1){var ie;Z=Math.max(0,Math.min(K,F.length-1)),V((ie=F[Z])===null||ie===void 0?void 0:ie.key)}q(Z)},[F.map(function(Z){return Z.key}).join("_"),k,K]);var W=gt(null,{value:n}),G=te(W,2),ne=G[0],Q=G[1];l.useEffect(function(){n||(Q("rc-tabs-".concat(XS)),XS+=1)},[]);function J(Z,ie){$==null||$(Z,ie);var ae=Z!==k;V(Z),ae&&(x==null||x(Z))}var Y={id:ne,activeKey:k,animated:N,tabPosition:m,rtl:D,mobile:T},ee=w(w({},Y),{},{editable:d,locale:b,more:y,tabBarGutter:g,onTabClick:J,onTabScroll:E,extra:p,style:h,panes:null,getPopupContainer:P,popupClassName:I,indicator:O});return l.createElement(Wv.Provider,{value:{tabs:F,prefixCls:a}},l.createElement("div",he({ref:t,id:n,className:oe(a,"".concat(a,"-").concat(m),B(B(B({},"".concat(a,"-mobile"),T),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),D),o)},M),l.createElement(EV,he({},ee,{renderTabBar:S})),l.createElement(IV,he({destroyInactiveTabPane:C},Y,{animated:N}))))});const TV={motionAppear:!1,motionEnter:!0,motionLeave:!0};function NV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},TV),{motionName:tr(e,"switch")})),n}var _V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a t)}function DV(e,t){if(e)return e;const n=mn(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=_V(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return FV(n)}const jV=e=>{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}`}}}}},[Wa(e,"slide-up"),Wa(e,"slide-down")]]},AV=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${o}`,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:re(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(e.borderRadiusLG)}`}},[`${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 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},LV=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Kt(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:`${re(r)} 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({},Hr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(e.paddingSM)}`,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"}}})}})}},kV=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ov},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Tv},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Rv},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},EO(e,I,T)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:I,borderRadius:O,boxShadow:M,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:p,borderInlineEnd:`${re(o)} ${i} ${D}`,li:Object.assign(Object.assign({},Ur),{borderRadius:_,paddingInline:p,paddingBlock:e.calc(g).sub(j).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:b},"&:hover":{background:N}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${re(e.calc(P).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Xa(e,"slide-up"),Xa(e,"slide-down"),wl(e,"move-up"),wl(e,"move-down")]},r4=Bt("DatePicker",e=>{const t=Nt(nu(e),FV(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[NV(t),LV(t),jV(t),AV(t),RV(t),Ri(e,{focusElCls:`${e.componentCls}-focused`})]},DV);var kV={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"},BV=function(t,n){return l.createElement(Ft,be({},t,{ref:n,icon:kV}))},a4=l.forwardRef(BV);const em=l.createContext(null);var zV=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=ee(d,2),v=f[0],m=f[1],g=l.useRef(),h=X.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function p(){jt.cancel(g.current)}return l.useEffect(function(){var b={};if(n)if(r){b.width=h(n.width);var y=a?"right":"left";u==="start"&&(b[y]=n[y]),u==="center"&&(b[y]=n[y]+n.width/2,b.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)")}else b.height=h(n.height),u==="start"&&(b.top=n.top),u==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return p(),g.current=jt(function(){m(b)}),p},[n,r,a,u,h]),{style:v}},ix={width:0,height:0,left:0,top:0};function HV(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||ix,i=o.left+o.width,s=0;s N?(_=O,$.current="x"):(_=M,$.current="y"),t(-_,-_)&&I.preventDefault()}var P=l.useRef(null);P.current={onTouchStart:C,onTouchMove:S,onTouchEnd:x,onWheel:E},l.useEffect(function(){function I(D){P.current.onTouchStart(D)}function O(D){P.current.onTouchMove(D)}function M(D){P.current.onTouchEnd(D)}function _(D){P.current.onWheel(D)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",I,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",M)}},[])}function o4(e){var t=l.useState(0),n=ee(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,mi(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function KV(e){var t=l.useRef([]),n=l.useState({}),r=ee(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=o4(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var ux={width:0,height:0,left:0,top:0,right:0};function UV(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,g=m,h=0;h Math.floor(v+t)){g=h-1;break}}for(var b=0,y=m-1;y>=0;y-=1){var C=e.get(s[y].key)||ux;if(C[f] =g?[0,0]:[b,g]},[e,t,r,a,o,v,c,s.map(function(m){return m.key}).join("_"),u])}function dx(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var GV="TABS_DQ";function i4(e){return String(e).replace(/"/g,GV)}function l4(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var s4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),fx=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ae(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),qV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,m=e.rtl,g=e.removeAriaLabel,h=e.onTabClick,p=e.getPopupContainer,b=e.popupClassName,y=l.useState(!1),C=ee(y,2),S=C[0],x=C[1],$=l.useState(null),E=ee($,2),P=E[0],I=E[1],O=c.icon,M=O===void 0?"More":O,_="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),N=P!==null?"".concat(_,"-").concat(P):null,F=o==null?void 0:o.dropdownAriaLabel;function R(H,z){H.preventDefault(),H.stopPropagation(),f.onEdit("remove",{key:z,event:H})}var T=l.createElement(es,{onClick:function(z){var K=z.key,q=z.domEvent;h(K,q),x(!1)},prefixCls:"".concat(D,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[P],"aria-label":F!==void 0?F:"expanded dropdown"},a.map(function(H){var z=H.closable,K=H.disabled,q=H.closeIcon,W=H.key,G=H.label,ne=l4(z,q,f,K);return l.createElement(Jc,{key:W,id:"".concat(_,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:K},l.createElement("span",null,G),ne&&l.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(J){J.stopPropagation(),R(J,W)}},q||f.removeIcon||"×"))}));function j(H){for(var z=a.filter(function(ne){return!ne.disabled}),K=z.findIndex(function(ne){return ne.key===P})||0,q=z.length,W=0;W Je?"left":"right"})}),D=ee(_,2),N=D[0],F=D[1],R=lx(0,function(et,Je){!M&&h&&h({direction:et>Je?"top":"bottom"})}),T=ee(R,2),j=T[0],L=T[1],k=l.useState([0,0]),B=ee(k,2),V=B[0],H=B[1],z=l.useState([0,0]),K=ee(z,2),q=K[0],W=K[1],G=l.useState([0,0]),ne=ee(G,2),Q=ne[0],J=ne[1],Y=l.useState([0,0]),te=ee(Y,2),Z=te[0],ie=te[1],ae=KV(new Map),se=ee(ae,2),le=se[0],ue=se[1],fe=HV(C,le,q[0]),ce=od(V,M),ve=od(q,M),de=od(Q,M),me=od(Z,M),he=Math.floor(ce)Ee?Ee:et}var Re=l.useRef(null),Te=l.useState(),ye=ee(Te,2),Ce=ye[0],Oe=ye[1];function $e(){Oe(Date.now())}function pe(){Re.current&&clearTimeout(Re.current)}WV(E,function(et,Je){function dt($t,st){$t(function(at){var bt=we(at+st);return bt})}return he?(M?dt(F,et):dt(L,Je),pe(),$e(),!0):!1}),l.useEffect(function(){return pe(),Ce&&(Re.current=setTimeout(function(){Oe(0)},100)),pe},[Ce]);var Me=UV(fe,Se,M?N:j,ve,de,me,w(w({},e),{},{tabs:C})),Le=ee(Me,2),it=Le[0],Ue=Le[1],Be=Rt(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Je=fe.get(et)||{width:0,height:0,left:0,right:0,top:0};if(M){var dt=N;s?Je.right N+Se&&(dt=Je.right+Je.width-Se):Je.left<-N?dt=-Je.left:Je.left+Je.width>-N+Se&&(dt=-(Je.left+Je.width-Se)),L(0),F(we(dt))}else{var $t=j;Je.top<-j?$t=-Je.top:Je.top+Je.height>-j+Se&&($t=-(Je.top+Je.height-Se)),F(0),L(we($t))}}),ze={};f==="top"||f==="bottom"?ze[s?"marginRight":"marginLeft"]=v:ze.marginTop=v;var Ge=C.map(function(et,Je){var dt=et.key;return l.createElement(YV,{id:a,prefixCls:y,key:dt,tab:et,style:Je===0?void 0:ze,closable:et.closable,editable:u,active:dt===i,renderWrapper:m,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(st){g(dt,st)},onFocus:function(){Be(dt),$e(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),Ye=function(){return ue(function(){var Je,dt=new Map,$t=(Je=P.current)===null||Je===void 0?void 0:Je.getBoundingClientRect();return C.forEach(function(st){var at,bt=st.key,Ze=(at=P.current)===null||at===void 0?void 0:at.querySelector('[data-node-key="'.concat(i4(bt),'"]'));if(Ze){var nt=ZV(Ze,$t),ot=ee(nt,4),rt=ot[0],Ve=ot[1],Ct=ot[2],Et=ot[3];dt.set(bt,{width:rt,height:Ve,left:Ct,top:Et})}}),dt})};l.useEffect(function(){Ye()},[C.map(function(et){return et.key}).join("_")]);var qe=o4(function(){var et=Qi(S),Je=Qi(x),dt=Qi($);H([et[0]-Je[0]-dt[0],et[1]-Je[1]-dt[1]]);var $t=Qi(O);J($t);var st=Qi(I);ie(st);var at=Qi(P);W([at[0]-$t[0],at[1]-$t[1]]),Ye()}),He=C.slice(0,it),We=C.slice(Ue+1),ke=[].concat(ge(He),ge(We)),ht=fe.get(i),je=zV({activeTabOffset:ht,horizontal:M,indicator:p,rtl:s}),Pe=je.style;l.useEffect(function(){Be()},[i,xe,Ee,dx(ht),dx(fe),M]),l.useEffect(function(){qe()},[s]);var De=!!ke.length,Ke="".concat(y,"-nav-wrap"),tt,ft,yt,vt;return M?s?(ft=N>0,tt=N!==Ee):(tt=N<0,ft=N!==xe):(yt=j<0,vt=j!==xe),l.createElement(zn,{onResize:qe},l.createElement("div",{ref:Qa(t,S),role:"tablist",className:oe("".concat(y,"-nav"),n),style:r,onKeyDown:function(){$e()}},l.createElement(fx,{ref:x,position:"left",extra:c,prefixCls:y}),l.createElement(zn,{onResize:qe},l.createElement("div",{className:oe(Ke,A(A(A(A({},"".concat(Ke,"-ping-left"),tt),"".concat(Ke,"-ping-right"),ft),"".concat(Ke,"-ping-top"),yt),"".concat(Ke,"-ping-bottom"),vt)),ref:E},l.createElement(zn,{onResize:qe},l.createElement("div",{ref:P,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(j,"px)"),transition:Ce?"none":void 0}},Ge,l.createElement(s4,{ref:O,prefixCls:y,locale:d,editable:u,style:w(w({},Ge.length===0?void 0:ze),{},{visibility:De?"hidden":null})}),l.createElement("div",{className:oe("".concat(y,"-ink-bar"),A({},"".concat(y,"-ink-bar-animated"),o.inkBar)),style:Pe}))))),l.createElement(XV,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:I,prefixCls:y,tabs:ke,className:!De&&Ne,tabMoving:!!Ce})),l.createElement(fx,{ref:$,position:"right",extra:c,prefixCls:y})))}),c4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:oe(n,i&&"".concat(n,"-active"),r),ref:t},c)}),QV=["renderTabBar"],JV=["label","key"],eW=function(t){var n=t.renderTabBar,r=_e(t,QV),a=l.useContext(em),o=a.tabs;if(n){var i=w(w({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=_e(s,JV);return l.createElement(c4,be({tab:c,key:u,tabKey:u},d))})});return n(i,vx)}return l.createElement(vx,r)},tW=["key","forceRender","style","className","destroyInactiveTabPane"],nW=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(em),c=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:oe("".concat(c,"-content-holder"))},l.createElement("div",{className:oe("".concat(c,"-content"),"".concat(c,"-content-").concat(o),A({},"".concat(c,"-content-animated"),d))},u.map(function(v){var m=v.key,g=v.forceRender,h=v.style,p=v.className,b=v.destroyInactiveTabPane,y=_e(v,tW),C=m===r;return l.createElement(sr,be({key:m,visible:C,forceRender:g,removeOnLeave:!!(i||b),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(S,x){var $=S.style,E=S.className;return l.createElement(c4,be({},y,{prefixCls:f,id:n,tabKey:m,animated:d,active:C,style:w(w({},h),$),className:oe(p,E),ref:x}))})})))};function rW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=w({inkBar:!0},Ae(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var aW=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],mx=0,oW=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,m=v===void 0?"top":v,g=e.tabBarGutter,h=e.tabBarStyle,p=e.tabBarExtraContent,b=e.locale,y=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,$=e.onTabClick,E=e.onTabScroll,P=e.getPopupContainer,I=e.popupClassName,O=e.indicator,M=_e(e,aW),_=l.useMemo(function(){return(i||[]).filter(function(Z){return Z&&Ae(Z)==="object"&&"key"in Z})},[i]),D=s==="rtl",N=rW(f),F=l.useState(!1),R=ee(F,2),T=R[0],j=R[1];l.useEffect(function(){j(Dv())},[]);var L=gt(function(){var Z;return(Z=_[0])===null||Z===void 0?void 0:Z.key},{value:c,defaultValue:u}),k=ee(L,2),B=k[0],V=k[1],H=l.useState(function(){return _.findIndex(function(Z){return Z.key===B})}),z=ee(H,2),K=z[0],q=z[1];l.useEffect(function(){var Z=_.findIndex(function(ae){return ae.key===B});if(Z===-1){var ie;Z=Math.max(0,Math.min(K,_.length-1)),V((ie=_[Z])===null||ie===void 0?void 0:ie.key)}q(Z)},[_.map(function(Z){return Z.key}).join("_"),B,K]);var W=gt(null,{value:n}),G=ee(W,2),ne=G[0],Q=G[1];l.useEffect(function(){n||(Q("rc-tabs-".concat(mx)),mx+=1)},[]);function J(Z,ie){$==null||$(Z,ie);var ae=Z!==B;V(Z),ae&&(x==null||x(Z))}var Y={id:ne,activeKey:B,animated:N,tabPosition:m,rtl:D,mobile:T},te=w(w({},Y),{},{editable:d,locale:b,more:y,tabBarGutter:g,onTabClick:J,onTabScroll:E,extra:p,style:h,panes:null,getPopupContainer:P,popupClassName:I,indicator:O});return l.createElement(em.Provider,{value:{tabs:_,prefixCls:a}},l.createElement("div",be({ref:t,id:n,className:oe(a,"".concat(a,"-").concat(m),A(A(A({},"".concat(a,"-mobile"),T),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),D),o)},M),l.createElement(eW,be({},te,{renderTabBar:S})),l.createElement(nW,be({destroyInactiveTabPane:C},Y,{animated:N}))))});const iW={motionAppear:!1,motionEnter:!0,motionLeave:!0};function lW(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},iW),{motionName:rr(e,"switch")})),n}var sW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a t)}function uW(e,t){if(e)return e;const n=mn(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=sW(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return cW(n)}const dW=e=>{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}`}}}}},[Xa(e,"slide-up"),Xa(e,"slide-down")]]},fW=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${o}`,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:re(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(e.borderRadiusLG)}`}},[`${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 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},vW=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Kt(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:`${re(r)} 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({},Ur),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(e.paddingSM)}`,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"}}})}})}},mW=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, 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, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,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:re(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${re(e.lineWidth)} ${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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},BV=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadius)} ${re(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${re(e.borderRadius)} ${re(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadius)} ${re(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadius)} 0 0 ${re(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},zV=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{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:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Oa(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},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:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},HV=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc: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}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:re(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:re(e.marginXS)},marginLeft:{_skip_check_:!0,value:re(o(e.marginXXS).mul(-1).equal())},[r]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},VV=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kt(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.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${re(e.paddingXS)}`,background:"transparent",border:`${re(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},Oa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),zV(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']) > ${t}-nav-list`]:{margin:"auto"}}}}}},WV=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},KV=Bt("Tabs",e=>{const t=Nt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${re(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${re(e.horizontalItemGutter)}`});return[BV(t),HV(t),kV(t),LV(t),AV(t),VV(t),jV(t)]},WV),UV=()=>null;var GV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a {var t,n,r,a,o,i,s,c,u,d,f;const{type:v,className:m,rootClassName:g,size:h,onEdit:p,hideAdd:b,centered:y,addIcon:C,removeIcon:S,moreIcon:x,more:$,popupClassName:E,children:P,items:I,animated:O,style:M,indicatorSize:F,indicator:D}=e,N=GV(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:_}=N,{direction:R,tabs:T,getPrefixCls:j,getPopupContainer:A}=l.useContext(Ze),L=j("tabs",_),k=ln(L),[V,H,z]=KV(L,k);let K;v==="editable-card"&&(K={onEdit:(Y,ee)=>{let{key:Z,event:ie}=ee;p==null||p(Y==="add"?ie:Z,Y)},removeIcon:(t=S??(T==null?void 0:T.removeIcon))!==null&&t!==void 0?t:l.createElement(fo,null),addIcon:(C??(T==null?void 0:T.addIcon))||l.createElement(F4,null),showAdd:b!==!0});const q=j(),W=$n(h),G=DV(I,P),ne=NV(L,O),Q=Object.assign(Object.assign({},T==null?void 0:T.style),M),J={align:(n=D==null?void 0:D.align)!==null&&n!==void 0?n:(r=T==null?void 0:T.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=D==null?void 0:D.size)!==null&&a!==void 0?a:F)!==null&&o!==void 0?o:(i=T==null?void 0:T.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:T==null?void 0:T.indicatorSize};return V(l.createElement(MV,Object.assign({direction:R,getPopupContainer:A},N,{items:G,className:oe({[`${L}-${W}`]:W,[`${L}-card`]:["card","editable-card"].includes(v),[`${L}-editable-card`]:v==="editable-card",[`${L}-centered`]:y},T==null?void 0:T.className,m,g,H,z,k),popupClassName:oe(E,H,z,k),style:Q,editable:K,more:Object.assign({icon:(f=(d=(u=(c=T==null?void 0:T.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:T==null?void 0:T.moreIcon)!==null&&d!==void 0?d:x)!==null&&f!==void 0?f:l.createElement(Ib,null),transitionName:`${q}-slide-up`},$),prefixCls:L,animated:ne,indicator:J})))};Bo.TabPane=UV;var qV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a