1"use strict";(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[9073],{8918:(t,e,n)=>{n.d(e,{A:()=>Rt});var a=n(65043),o=n(53727),c=n(84235),i=n(75337),r=n(98139),l=n.n(r),d=n(58168),s=n(64467),u=n(89379),v=n(5544),b=n(82284),p=n(80045),f=n(28678),m=n(16765);const g=(0,a.createContext)(null);var h=n(60436),y=n(68802),k=n(32375),S=n(13758),x=n(45818);const w=function(t){var e=t.activeTabOffset,n=t.horizontal,o=t.rtl,c=t.indicator,i=void 0===c?{}:c,r=i.size,l=i.align,d=void 0===l?"center":l,s=(0,a.useState)(),u=(0,v.A)(s,2),b=u[0],p=u[1],f=(0,a.useRef)(),m=a.useCallback(function(t){return"function"===typeof r?r(t):"number"===typeof r?r:t},[r]);function g(){x.A.cancel(f.current)}return(0,a.useEffect)(function(){var t={};if(e)if(n){t.width=m(e.width);var a=o?"right":"left";"start"===d&&(t[a]=e[a]),"center"===d&&(t[a]=e[a]+e.width/2,t.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===d&&(t[a]=e[a]+e.width,t.transform="translateX(-100%)")}else t.height=m(e.height),"start"===d&&(t.top=e.top),"center"===d&&(t.top=e.top+e.height/2,t.transform="translateY(-50%)"),"end"===d&&(t.top=e.top+e.height,t.transform="translateY(-100%)");return g(),f.current=(0,x.A)(function(){var e=b&&t&&Object.keys(t).every(function(e){var n=t[e],a=b[e];return"number"===typeof n&&"number"===typeof a?Math.round(n)===Math.round(a):n===a});e||p(t)}),g},[JSON.stringify(e),n,o,d,m]),{style:b}};var C={width:0,height:0,left:0,top:0};function A(t,e){var n=a.useRef(t),o=a.useState({}),c=(0,v.A)(o,2)[1];return[n.current,function(t){var a="function"===typeof t?t(n.current):t;a!==n.current&&e(a,n.current),n.current=a,c({})}]}var E=Math.pow(.995,20);var _=n(52664);function O(t){var e=(0,a.useState)(0),n=(0,v.A)(e,2),o=n[0],c=n[1],i=(0,a.useRef)(0),r=(0,a.useRef)();return r.current=t,(0,_.o)(function(){var t;null===(t=r.current)||void 0===t||t.call(r)},[o]),function(){i.current===o&&(i.current+=1,c(i.current))}}var P={width:0,height:0,left:0,top:0,right:0};function R(t){var e;return t instanceof Map?(e={},t.forEach(function(t,n){e[n]=t})):e=t,JSON.stringify(e)}function T(t){return String(t).replace(/"/g,"TABS_DQ")}function I(t,e,n,a){return!(!n||a||!1===t||void 0===t&&(!1===e||null===e))}var M=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.editable,c=t.locale,i=t.style;return o&&!1!==o.showAdd?a.createElement("button",{ref:e,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===c||void 0===c?void 0:c.addAriaLabel)||"Add tab",onClick:function(t){o.onEdit("add",{event:t})}},o.addIcon||"+"):null});const L=M;const z=a.forwardRef(function(t,e){var n,o=t.position,c=t.prefixCls,i=t.extra;if(!i)return null;var r={};return"object"!==(0,b.A)(i)||a.isValidElement(i)?r.right=i:r=i,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?a.createElement("div",{className:"".concat(c,"-extra-content"),ref:e},n):null});var j=n(75822),B=n(80244),N=n(25001),H=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.id,c=t.tabs,i=t.locale,r=t.mobile,u=t.more,b=void 0===u?{}:u,p=t.style,f=t.className,m=t.editable,g=t.tabBarGutter,h=t.rtl,y=t.removeAriaLabel,k=t.onTabClick,S=t.getPopupContainer,x=t.popupClassName,w=(0,a.useState)(!1),C=(0,v.A)(w,2),A=C[0],E=C[1],_=(0,a.useState)(null),O=(0,v.A)(_,2),P=O[0],R=O[1],T=b.icon,M=void 0===T?"More":T,z="".concat(o,"-more-popup"),H="".concat(n,"-dropdown"),D=null!==P?"".concat(z,"-").concat(P):null,G=null===i||void 0===i?void 0:i.dropdownAriaLabel;var W=a.createElement(B.default,{onClick:function(t){var e=t.key,n=t.domEvent;k(e,n),E(!1)},prefixCls:"".concat(H,"-menu"),id:z,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[P],"aria-label":void 0!==G?G:"expanded dropdown"},c.map(function(t){var e=t.closable,n=t.disabled,c=t.closeIcon,i=t.key,r=t.label,l=I(e,c,m,n);return a.createElement(B.MenuItem,{key:i,id:"".concat(z,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},a.createElement("span",null,r),l&&a.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(H,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),function(t,e){t.preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:e,event:t})}(t,i)}},c||m.removeIcon||"\xd7"))}));function K(t){for(var e=c.filter(function(t){return!t.disabled}),n=e.findIndex(function(t){return t.key===P})||0,a=e.length,o=0;o<a;o+=1){var i=e[n=(n+t+a)%a];if(!i.disabled)return void R(i.key)}}(0,a.useEffect)(function(){var t=document.getElementById(D);t&&t.scrollIntoView&&t.scrollIntoView(!1)},[P]),(0,a.useEffect)(function(){A||R(null)},[A]);var X=(0,s.A)({},h?"marginRight":"marginLeft",g);c.length||(X.visibility="hidden",X.order=1);var F=l()((0,s.A)({},"".concat(H,"-rtl"),h)),q=r?null:a.createElement(j.A,(0,d.A)({prefixCls:H,overlay:W,visible:!!c.length&&A,onVisibleChange:E,overlayClassName:l()(F,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},b),a.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:X,"aria-haspopup":"listbox","aria-controls":z,id:"".concat(o,"-more"),"aria-expanded":A,onKeyDown:function(t){var e=t.which;if(A)switch(e){case N.A.UP:K(-1),t.preventDefault();break;case N.A.DOWN:K(1),t.preventDefault();break;case N.A.ESC:E(!1);break;case N.A.SPACE:case N.A.ENTER:null!==P&&k(P,t)}else[N.A.DOWN,N.A.SPACE,N.A.ENTER].includes(e)&&(E(!0),t.preventDefault())}},M));return a.createElement("div",{className:l()("".concat(n,"-nav-operations"),f),style:p,ref:e},q,a.createElement(L,{prefixCls:n,locale:i,editable:m}))});const D=a.memo(H,function(t,e){return e.tabMoving});const G=function(t){var e=t.prefixCls,n=t.id,o=t.active,c=t.focus,i=t.tab,r=i.key,d=i.label,u=i.disabled,v=i.closeIcon,b=i.icon,p=t.closable,f=t.renderWrapper,m=t.removeAriaLabel,g=t.editable,h=t.onClick,y=t.onFocus,k=t.onBlur,S=t.onKeyDown,x=t.onMouseDown,w=t.onMouseUp,C=t.style,A=t.tabCount,E=t.currentPosition,_="".concat(e,"-tab"),O=I(p,v,g,u);function P(t){u||h(t)}var R=a.useMemo(function(){return b&&"string"===typeof d?a.createElement("span",null,d):d},[d,b]),M=a.useRef(null);a.useEffect(function(){c&&M.current&&M.current.focus()},[c]);var L=a.createElement("div",{key:r,"data-node-key":T(r),className:l()(_,(0,s.A)((0,s.A)((0,s.A)((0,s.A)({},"".concat(_,"-with-remove"),O),"".concat(_,"-active"),o),"".concat(_,"-disabled"),u),"".concat(_,"-focus"),c)),style:C,onClick:P},a.createElement("div",{ref:M,role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(r),className:"".concat(_,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(r),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(t){t.stopPropagation(),P(t)},onKeyDown:S,onMouseDown:x,onMouseUp:w,onFocus:y,onBlur:k},c&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}
1},"Tab ".concat(E," of ").concat(A)),b&&a.createElement("span",{className:"".concat(_,"-icon")},b),d&&R),O&&a.createElement("button",{type:"button",role:"tab","aria-label":m||"remove",tabIndex:o?0:-1,className:"".concat(_,"-remove"),onClick:function(t){var e;t.stopPropagation(),(e=t).preventDefault(),e.stopPropagation(),g.onEdit("remove",{key:r,event:e})}},v||g.removeIcon||"\xd7"));return f?f(L):L};var W=function(t){var e=t.current||{},n=e.offsetWidth,a=void 0===n?0:n,o=e.offsetHeight,c=void 0===o?0:o;if(t.current){var i=t.current.getBoundingClientRect(),r=i.width,l=i.height;if(Math.abs(r-a)<1)return[r,l]}return[a,c]},K=function(t,e){return t[e?0:1]},X=a.forwardRef(function(t,e){var n=t.className,o=t.style,c=t.id,i=t.animated,r=t.activeKey,b=t.rtl,p=t.extra,f=t.editable,m=t.locale,x=t.tabPosition,_=t.tabBarGutter,M=t.children,j=t.onTabClick,B=t.onTabScroll,N=t.indicator,H=a.useContext(g),X=H.prefixCls,F=H.tabs,q=(0,a.useRef)(null),V=(0,a.useRef)(null),Y=(0,a.useRef)(null),Q=(0,a.useRef)(null),U=(0,a.useRef)(null),J=(0,a.useRef)(null),Z=(0,a.useRef)(null),$="top"===x||"bottom"===x,tt=A(0,function(t,e){$&&B&&B({direction:t>
1e?"left":"right"})}),et=(0,v.A)(tt,2),nt=et[0],at=et[1],ot=A(0,function(t,e){!$&&B&&B({direction:t>e?"top":"bottom"})}),ct=(0,v.A)(ot,2),it=ct[0],rt=ct[1],lt=(0,a.useState)([0,0]),dt=(0,v.A)(lt,2),st=dt[0],ut=dt[1],vt=(0,a.useState)([0,0]),bt=(0,v.A)(vt,2),pt=bt[0],ft=bt[1],mt=(0,a.useState)([0,0]),gt=(0,v.A)(mt,2),ht=gt[0],yt=gt[1],kt=(0,a.useState)([0,0]),St=(0,v.A)(kt,2),xt=St[0],wt=St[1],Ct=function(t){var e=(0,a.useRef)([]),n=(0,a.useState)({}),o=(0,v.A)(n,2)[1],c=(0,a.useRef)("function"===typeof t?t():t),i=O(function(){var t=c.current;e.current.forEach(function(e){t=e(t)}),e.current=[],c.current=t,o({})});return[c.current,function(t){e.current.push(t),i()}]}(new Map),At=(0,v.A)(Ct,2),Et=At[0],_t=At[1],Ot=function(t,e,n){return(0,a.useMemo)(function(){for(var n,a=new Map,o=e.get(null===(n=t[0])||void 0===n?void 0:n.key)||C,c=o.left+o.width,i=0;i<t.length;i+=1){var r,l=t[i].key,d=e.get(l);d||(d=e.get(null===(r=t[i-1])||void 0===r?void 0:r.key)||C);var s=a.get(l)||(0,u.A)({},d);s.right=c-s.left-s.width,a.set(l,s)}return a},[t.map(function(t){return t.key}).join("_"),e,n])}(F,Et,pt[0]),Pt=K(st,$),Rt=K(pt,$),Tt=K(ht,$),It=K(xt,$),Mt=Math.floor(Pt)<Math.floor(Rt+Tt),Lt=Mt?Pt-It:Pt-Tt,zt="".concat(X,"-nav-operations-hidden"),jt=0,Bt=0;function Nt(t){return t<jt?jt:t>Bt?Bt:t}$&&b?(jt=0,Bt=Math.max(0,Rt-Lt)):(jt=Math.min(0,Lt-Rt),Bt=0);var Ht=(0,a.useRef)(null),Dt=(0,a.useState)(),Gt=(0,v.A)(Dt,2),Wt=Gt[0],Kt=Gt[1];function Xt(){Kt(Date.now())}function Ft(){Ht.current&&clearTimeout(Ht.current)}!function(t,e){var n=(0,a.useState)(),o=(0,v.A)(n,2),c=o[0],i=o[1],r=(0,a.useState)(0),l=(0,v.A)(r,2),d=l[0],s=l[1],u=(0,a.useState)(0),b=(0,v.A)(u,2),p=b[0],f=b[1],m=(0,a.useState)(),g=(0,v.A)(m,2),h=g[0],y=g[1],k=(0,a.useRef)(),S=(0,a.useRef)(),x=(0,a.useRef)(null);x.current={onTouchStart:function(t){var e=t.touches[0],n=e.screenX,a=e.screenY;i({x:n,y:a}),window.clearInterval(k.current)},onTouchMove:function(t){if(c){var n=t.touches[0],a=n.screenX,o=n.screenY;i({x:a,y:o});var r=a-c.x,l=o-c.y;e(r,l);var u=Date.now();s(u),f(u-d),y({x:r,y:l})}},onTouchEnd:function(){if(c&&(i(null),y(null),h)){var t=h.x/p,n=h.y/p,a=Math.abs(t),o=Math.abs(n);
1if(Math.max(a,o)<.1)return;var r=t,l=n;k.current=window.setInterval(function(){Math.abs(r)<.01&&Math.abs(l)<.01?window.clearInterval(k.current):e(20*(r*=E),20*(l*=E))},20)}},onWheel:function(t){var n=t.deltaX,a=t.deltaY,o=0,c=Math.abs(n),i=Math.abs(a);c===i?o="x"===S.current?n:a:c>i?(o=n,S.current="x"):(o=a,S.current="y"),e(-o,-o)&&t.preventDefault()}},a.useEffect(function(){function e(t){x.current.onTouchMove(t)}function n(t){x.current.onTouchEnd(t)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",function(t){x.current.onTouchStart(t)},{passive:!0}),t.current.addEventListener("wheel",function(t){x.current.onWheel(t)},{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}},[])}(Q,function(t,e){function n(t,e){t(function(t){return Nt(t+e)})}return!!Mt&&($?n(at,t):n(rt,e),Ft(),Xt(),!0)}),(0,a.useEffect)(function(){return Ft(),Wt&&(Ht.current=setTimeout(function(){Kt(0)},100)),Ft},[Wt]);var qt=function(t,e,n,o,c,i,r){var l,d,s,u=r.tabs,v=r.tabPosition,b=r.rtl;return["top","bottom"].includes(v)?(l="width",d=b?"right":"left",s=Math.abs(n)):(l="height",d="top",s=-n),(0,a.useMemo)(function(){if(!u.length)return[0,0];for(var n=u.length,a=n,o=0;o<n;o+=1){var c=t.get(u[o].key)||P;if(Math.floor(c[d]+c[l])>Math.floor(s+e)){a=o-1;break}}for(var i=0,r=n-1;r>=0;r-=1)if((t.get(u[r].key)||P)[d]<s){i=r+1;break}return i>a?[0,-1]:[i,a]},[t,e,o,c,i,s,v,u.map(function(t){return t.key}).join("_"),b])}(Ot,Lt,$?nt:it,Rt,Tt,It,(0,u.A)((0,u.A)({},t),{},{tabs:F})),Vt=(0,v.A)(qt,2),Yt=Vt[0],Qt=Vt[1],Ut=(0,k.A)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=Ot.get(t)||{width:0,height:0,left:0,right:0,top:0};if($){var n=nt;b?e.right<nt?n=e.right:e.right+e.width>nt+Lt&&(n=e.right+e.width-Lt):e.left<-nt?n=-e.left:e.left+e.width>-nt+Lt&&(n=-(e.left+e.width-Lt)),rt(0),at(Nt(n))}else{var a=it;e.top<-it?a=-e.top:e.top+e.height>-it+Lt&&(a=-(e.top+e.height-Lt)),at(0),rt(Nt(a))}}),Jt=(0,a.useState)(),Zt=(0,v.A)(Jt,2),$t=Zt[0],te=Zt[1],ee=(0,a.useState)(!1),ne=(0,v.A)(ee,2),ae=ne[0],oe=ne[1],ce=F.filter(function(t){return!t.disabled}).map(function(t){return t.key}),ie=function(t){var e=ce.indexOf($t||r),n=ce.length,a=ce[(e+t+n)%n];te(a)},re=function(t,e){var n=ce.indexOf(t),a=F.find(function(e){return e.key===t});I(null===a||void 0===a?void 0:a.closable,null===a||void 0===a?void 0:a.closeIcon,f,null===a||void 0===a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e}),n===ce.length-1?ie(-1):ie(1))},le=function(t){var e=t.code,n=b&&$,a=ce[0],o=ce[ce.length-1];switch(e){case"ArrowLeft":$&&ie(n?1:-1);break;case"ArrowRight":$&&ie(n?-1:1);break;case"ArrowUp":t.preventDefault(),$||ie(-1);break;case"ArrowDown":t.preventDefault(),$||ie(1);break;case"Home":t.preventDefault(),te(a);break;case"End":t.preventDefault(),te(o);break;case"Enter":case"Space":t.preventDefault(),j(null!==$t&&void 0!==$t?$t:r,t);break;case"Backspace":case"Delete":re($t,t)}},de={};$?de[b?"marginRight":"marginLeft"]=_:de.marginTop=_;var se=F.map(function(t,e){var n=t.key;return a.createElement(G,{id:c,prefixCls:X,key:n,tab:t,style:0===e?void 0:de,closable:t.closable,editable:f,active:n===r,focus:n===$t,renderWrapper:M,removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,tabCount:ce.length,currentPosition:e+1,onClick:function(t){j(n,t)},onKeyDown:le,onFocus:function(){ae||te(n),Ut(n),Xt(),Q.current&&(b||(Q.current.scrollLeft=0),Q.current.scrollTop=0)},onBlur:function(){te(void 0)},onMouseDown:function(t){return function(t,e){oe(!0),1===e.button&&re(t,e)}(n,t)},onMouseUp:function(){oe(!1)}})}),ue=function(){return _t(function(){var t,e=new Map,n=null===(t=U.current)||void 0===t?void 0:t.getBoundingClientRect();return F.forEach(function(t){var a,o=t.key,c=null===(a=U.current)||void 0===a?void 0:a.querySelector('[data-node-key="'.concat(T(o),'"]'));if(c){var i=function(t,e){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,c=t.offsetLeft,i=t.getBoundingClientRect(),r=i.width,l=i.height,d=i.left,s=i.top;return Math.abs(r-n)<1?[r,l,d-e.left,s-e.top]:[n,a,c,o]}
1(c,n),r=(0,v.A)(i,4),l=r[0],d=r[1],s=r[2],u=r[3];e.set(o,{width:l,height:d,left:s,top:u})}}),e})};(0,a.useEffect)(function(){ue()},[F.map(function(t){return t.key}).join("_")]);var ve=O(function(){var t=W(q),e=W(V),n=W(Y);ut([t[0]-e[0]-n[0],t[1]-e[1]-n[1]]);var a=W(Z);yt(a);var o=W(J);wt(o);var c=W(U);ft([c[0]-a[0],c[1]-a[1]]),ue()}),be=F.slice(0,Yt),pe=F.slice(Qt+1),fe=[].concat((0,h.A)(be),(0,h.A)(pe)),me=Ot.get(r),ge=w({activeTabOffset:me,horizontal:$,indicator:N,rtl:b}).style;(0,a.useEffect)(function(){Ut()},[r,jt,Bt,R(me),R(Ot),$]),(0,a.useEffect)(function(){ve()},[b]);var he,ye,ke,Se,xe=!!fe.length,we="".concat(X,"-nav-wrap");return $?b?(ye=nt>0,he=nt!==Bt):(he=nt<0,ye=nt!==jt):(ke=it<0,Se=it!==jt),a.createElement(y.A,{onResize:ve},a.createElement("div",{ref:(0,S.xK)(e,q),role:"tablist","aria-orientation":$?"horizontal":"vertical",className:l()("".concat(X,"-nav"),n),style:o,onKeyDown:function(){Xt()}},a.createElement(z,{ref:V,position:"left",extra:p,prefixCls:X}),a.createElement(y.A,{onResize:ve},a.createElement("div",{className:l()(we,(0,s.A)((0,s.A)((0,s.A)((0,s.A)({},"".concat(we,"-ping-left"),he),"".concat(we,"-ping-right"),ye),"".concat(we,"-ping-top"),ke),"".concat(we,"-ping-bottom"),Se)),ref:Q},a.createElement(y.A,{onResize:ve},a.createElement("div",{ref:U,className:"".concat(X,"-nav-list"),style:{transform:"translate(".concat(nt,"px, ").concat(it,"px)"),transition:Wt?"none":void 0}},se,a.createElement(L,{ref:Z,prefixCls:X,locale:m,editable:f,style:(0,u.A)((0,u.A)({},0===se.length?void 0:de),{},{visibility:xe?"hidden":null})}),a.createElement("div",{className:l()("".concat(X,"-ink-bar"),(0,s.A)({},"".concat(X,"-ink-bar-animated"),i.inkBar)),style:ge}))))),a.createElement(D,(0,d.A)({},t,{removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,ref:J,prefixCls:X,tabs:fe,className:!xe&&zt,tabMoving:!!Wt})),a.createElement(z,{ref:Y,position:"right",extra:p,prefixCls:X})))});const F=X;var q=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.className,c=t.style,i=t.
1id,r=t.active,d=t.tabKey,s=t.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(d),role:"tabpanel",tabIndex:r?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(d),"aria-hidden":!r,style:c,className:l()(n,r&&"".concat(n,"-active"),o),ref:e},s)});const V=q;var Y=["renderTabBar"],Q=["label","key"];const U=function(t){var e=t.renderTabBar,n=(0,p.A)(t,Y),o=a.useContext(g).tabs;return e?e((0,u.A)((0,u.A)({},n),{},{panes:o.map(function(t){var e=t.label,n=t.key,o=(0,p.A)(t,Q);return a.createElement(V,(0,d.A)({tab:e,key:n,tabKey:n},o))})}),F):a.createElement(F,n)};var J=n(50541),Z=["key","forceRender","style","className","destroyInactiveTabPane"];const $=function(t){var e=t.id,n=t.activeKey,o=t.animated,c=t.tabPosition,i=t.destroyInactiveTabPane,r=a.useContext(g),v=r.prefixCls,b=r.tabs,f=o.tabPane,m="".concat(v,"-tabpane");return a.createElement("div",{className:l()("".concat(v,"-content-holder"))},a.createElement("div",{className:l()("".concat(v,"-content"),"".concat(v,"-content-").concat(c),(0,s.A)({},"".concat(v,"-content-animated"),f))},b.map(function(t){var c=t.key,r=t.forceRender,s=t.style,v=t.className,b=t.destroyInactiveTabPane,g=(0,p.A)(t,Z),h=c===n;return a.createElement(J.default,(0,d.A)({key:c,visible:h,forceRender:r,removeOnLeave:!(!i&&!b),leavedClassName:"".concat(m,"-hidden")},o.tabPaneMotion),function(t,n){var o=t.style,i=t.className;return a.createElement(V,(0,d.A)({},g,{prefixCls:m,id:e,tabKey:c,animated:f,active:h,style:(0,u.A)((0,u.A)({},s),o),className:l()(v,i),ref:n}))})})))};n(97907);var tt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],et=0,nt=a.forwardRef(function(t,e){var n=t.id,o=t.prefixCls,c=void 0===o?"rc-tabs":o,i=t.className,r=t.items,h=t.direction,y=t.activeKey,k=t.defaultActiveKey,S=t.editable,x=t.animated,w=t.tabPosition,C=void 0===w?"top":w,A=t.tabBarGutter,E=t.tabBarStyle,_=t.tabBarExtraContent,O=t.locale,P=t.more,R=t.destroyInactiveTabPane,T=t.renderTabBar,I=t.onChange,M=t.onTabClick,L=t.onTabScroll,z=t.getPopupContainer,j=t.popupClassName,B=t.indicator,N=(0,p.A)(t,tt),H=a.useMemo(function(){return(r||[]).filter(function(t){return t&&"object"===(0,b.A)(t)&&"key"in t})},[r]),D="rtl"===h,G=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:(0,u.A)({inkBar:!0},"object"===(0,b.A)(e)?e:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(x),W=(0,a.useState)(!1),K=(0,v.A)(W,2),X=K[0],F=K[1];(0,a.useEffect)(function(){F((0,m.A)())},[]);var q=(0,f.A)(function(){var t;return null===(t=H[0])||void 0===t?void 0:t.key},{value:y,defaultValue:k}),V=(0,v.A)(q,2),Y=V[0],Q=V[1],J=(0,a.useState)(function(){return H.findIndex(function(t){return t.key===Y})}),Z=(0,v.A)(J,2),nt=Z[0],at=Z[1];(0,a.useEffect)(function(){var t,e=H.findIndex(function(t){return t.key===Y});-1===e&&(e=Math.max(0,Math.min(nt,H.length-1)),Q(null===(t=H[e])||void 0===t?void 0:t.key));at(e)},[H.map(function(t){return t.key}).join("_"),Y,nt]);var ot=(0,f.A)(null,{value:n}),ct=(0,v.A)(ot,2),it=ct[0],rt=ct[1];(0,a.useEffect)(function(){n||(rt("rc-tabs-".concat(et)),et+=1)},[]);var lt={id:it,activeKey:Y,animated:G,tabPosition:C,rtl:D,mobile:X},dt=(0,u.A)((0,u.A)({},lt),{},{editable:S,locale:O,more:P,tabBarGutter:A,onTabClick:function(t,e){null===M||void 0===M||M(t,e);var n=t!==Y;Q(t),n&&(null===I||void 0===I||I(t))},onTabScroll:L,extra:_,style:E,panes:null,getPopupContainer:z,popupClassName:j,indicator:B});return a.createElement(g.Provider,{value:{tabs:H,prefixCls:c}},a.createElement("div",(0,d.A)({ref:e,id:n,className:l()(c,"".concat(c,"-").concat(C),(0,s.A)((0,s.A)((0,s.A)({},"".concat(c,"-mobile"),X),"".concat(c,"-editable"),S),"".concat(c,"-rtl"),D),i)},N),a.createElement(U,(0,d.A)({},dt,{renderTabBar:T})),a.createElement($,(0,d.A)({destroyInactiveTabPane:R},lt,{animated:G}))))});const at=nt;var ot=n(35296),ct=n(78887),it=n(89122),rt=n(83290);const lt={motionAppear:!1,motionEnter:!0,motionLeave:!0};var dt=n(62149),st=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]])}return n};const ut=function(t,e){return t?t.map(t=>{var e;const n=null!==(e=t.destroyOnHidden)&&void 0!==e?e:t.destroyInactiveTabPane;return Object.assign(Object.assign({},t),{destroyInactiveTabPane:n})}):function(t){return t.filter(t=>t)}((0,dt.A)(e).map(t=>{if(a.isValidElement(t)){const{key:e,props:n}=t,a=n||{},{tab:o}
1=a,c=st(a,["tab"]);return Object.assign(Object.assign({key:String(e)},c),{label:o})}return null}))};var vt=n(92902),bt=n(94414),pt=n(78855),ft=n(78446),mt=n(24760);const gt=t=>{const{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{["".concat(e,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity ".concat(n)}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity ".concat(n)}}}}},[(0,mt._j)(t,"slide-up"),(0,mt._j)(t,"slide-down")]]},ht=t=>{const{componentCls:e,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:c,itemSelectedColor:i}=t;return{["".concat(e,"-card")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{margin:0,padding:n,background:a,border:"".concat((0,vt.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(c),transition:"all ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut)},["".concat(e,"-tab-active")]:{color:i,background:t.colorBgContainer},["".concat(e,"-tab-focus:has(").concat(e,"-tab-btn:focus-visible)")]:(0,bt.jk)(t,-3),["& ".concat(e,"-tab").concat(e,"-tab-focus ").concat(e,"-tab-btn:focus-visible")]:{outline:"none"},["".concat(e,"-ink-bar")]:{visibility:"hidden"}},["&".concat(e,"-top, &").concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginLeft:{_skip_check_:!0,value:(0,vt.unit)(o)}}}},["&".concat(e,"-top")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:"".concat((0,vt.unit)(t.borderRadiusLG)," ").concat((0,vt.unit)(t.borderRadiusLG)," 0 0")},["".concat(e,"-tab-active")]:{borderBottomColor:t.colorBgContainer}}},["&".concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:"0 0 ".concat((0,vt.unit)(t.borderRadiusLG)," ").concat((0,vt.unit)(t.borderRadiusLG))},["".concat(e,"-tab-active")]:{borderTopColor:t.colorBgContainer}}},["&".concat(e,"-left, &").concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginTop:(0,vt.unit)(o)}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,vt.unit)(t.borderRadiusLG)," 0 0 ").concat((0,vt.unit)(t.borderRadiusLG))}},["".concat(e,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:t.colorBg
1Container}}}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,vt.unit)(t.borderRadiusLG)," ").concat((0,vt.unit)(t.borderRadiusLG)," 0")}},["".concat(e,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}},yt=t=>{const{componentCls:e,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=t;return{["".concat(e,"-dropdown")]:Object.assign(Object.assign({},(0,bt.dF)(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(e,"-dropdown-menu")]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:"".concat((0,vt.unit)(a)," 0"),overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":Object.assign(Object.assign({},bt.L9),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:"".concat((0,vt.unit)(t.paddingXXS)," ").concat((0,vt.unit)(t.paddingSM)),color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:"all ".concat(t.motionDurationSlow),"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorIcon,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},kt=t=>{const{componentCls:e,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:c,verticalItemMargin:i,calc:r}=t;return{["".concat(e,"-top, ").concat(e,"-bottom")]:{flexDirection:"column",["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat((0,vt.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(a),content:"''"},["".concat(e,"-ink-bar")]:{height:t.lineWidthBold,"&-animated":{transition:"width ".concat(t.motionDurationSlow,", left ").concat(t.motionDurationSlow,",\n right ").concat(t.motionDurationSlow)}},["".concat(e,"-nav-wrap")]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},["&".concat(e,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(e,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(e,"-top")]:{["> ".concat(e,"-nav,\n > div > ").concat(e,"-nav")]:{"&::before":{bottom:0},["".concat(e,"-ink-bar")]:{bottom:0}}},["".concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(e,"-ink-bar")]:{top:0}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{order:0}},["".concat(e,"-left, ").concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{flexDirection:"column",minWidth:r(t.controlHeight).mul(1.25).equal(),["".concat(e,"-tab")]:{padding:c,textAlign:"center"},["".concat(e,"-tab + ").concat(e,"-tab")]:{margin:i},["".concat(e,"-nav-wrap")]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight}
1,"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},["&".concat(e,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(e,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(e,"-ink-bar")]:{width:t.lineWidthBold,"&-animated":{transition:"height ".concat(t.motionDurationSlow,", top ").concat(t.motionDurationSlow)}},["".concat(e,"-nav-list, ").concat(e,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(e,"-left")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:(0,vt.unit)(r(t.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat((0,vt.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorder)},["> ".concat(e,"-content > ").concat(e,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},["".concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{order:1,["".concat(e,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:r(t.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat((0,vt.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorder)},["> ".concat(e,"-content > ").concat(e,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}},St=t=>{const{componentCls:e,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:o,cardHeightLG:c,horizontalItemPaddingSM:i,horizontalItemPaddingLG:r}=t;return{[e]:{"&-small":{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:i,fontSize:t.titleFontSizeSM}}},"&-large":{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:r,fontSize:t.titleFontSizeLG,lineHeight:t.lineHeightLG}}}},["".concat(e,"-card")]:{["&".concat(e,"-small")]:{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:n},["".concat(e,"-nav-add")]:{minWidth:o,minHeight:o}},["&".concat(e,"-bottom")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:"0 0 ".concat((0,vt.unit)(t.borderRadius)," ").concat((0,vt.unit)(t.borderRadius))}},["&".concat(e,"-top")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:"".concat((0,vt.unit)(t.borderRadius)," ").concat((0,vt.unit)(t.borderRadius)," 0 0")}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,vt.unit)(t.borderRadius)," ").concat((0,vt.unit)(t.borderRadius)," 0")}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,vt.unit)(t.borderRadius)," 0 0 ").concat((0,vt.unit)(t.borderRadius))}}}},["&".concat(e,"-large")]:{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:a},["".concat(e,"-nav-add")]:{minWidth:c,minHeight:c}}}}}},xt=t=>{const{componentCls:e,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:c,horizontalItemPadding:i,itemSelectedColor:r,itemColor:l}=t,d="".concat(e,"-tab");return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:t.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:"all ".concat(t.motionDurationSlow),["".concat(d,"-icon:not(:last-child)")]:{marginInlineEnd:t.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:t.calc(t.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorIcon,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all ".concat(t.motionDurationSlow),"&:hover":{color:t.colorTextHeading}},(0,bt.K8)(t)),"&:hover":{color:a},["&".concat(d,"-active ").concat(d,"-btn")]:{color:r,textShadow:t.tabsActiveTextShadow},["&".concat(d,"-focus ").concat(d,"-btn:focus-visible")]:(0,bt.jk)(t),["&".concat(d,"-disabled")]:{color:t.colorTextDisabled,cursor:"not-allowed"},["&".concat(d,"-disabled ").concat(d,"-btn, &").concat(d,"-disabled ").concat(e,"-remove")]:{"&:focus, &:active":{color:t.colorTextDisabled}},["& ".concat(d,"-remove ").concat(o)]:{margin:0,verticalAlign:"middle"},["".concat(o,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},["".concat(d," + ").concat(d)]:{margin:{_skip_check_:!0,value:c}}}},wt=t=>{const{componentCls:e,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o,calc:c}=t,i="".concat(e,"-rtl");return{[i]:{direction:"rtl",["".concat(e,"-nav")]:{["".concat(e,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(e,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,vt.unit)(t.marginSM)}},["".concat(e,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:(0,vt.unit)(t.marginXS)},marginLeft:{_skip_check_:!0,value:(0,vt.unit)(c(t.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav")]:{order:1},["> ".concat(e,"-content-holder")]:{order:0}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav")]:{order:0},["> ".concat(e,"-content-holder")]:{order:1}},["&".concat(e,"-card").concat(e,"-top, &").concat(e,"-card").concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(e,"-dropdown-rtl")]:{direction:"rtl"}
1,["".concat(e,"-menu-item")]:{["".concat(e,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ct=t=>{const{componentCls:e,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:c,itemActiveColor:i,colorBorderSecondary:r}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,bt.dF)(t)),{display:"flex",["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(e,"-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 ".concat(t.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(e,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(t.motionDurationSlow)},["".concat(e,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(e,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(e,"-nav-more")]:{position:"relative",padding:n,background:"transparent",border:0,color:t.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:t.calc(t.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},["".concat(e,"-nav-add")]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:"".concat((0,vt.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(r),borderRadius:"".concat((0,vt.unit)(t.borderRadiusLG)," ").concat((0,vt.unit)(t.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:t.colorText,transition:"all ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut),"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,bt.K8)(t,-3))},["".concat(e,"-extra-content")]:{flex:"none"},["".concat(e,"-ink-bar")]:{position:"absolute",background:t.inkBarColor,pointerEvents:"none"}}),xt(t)),{["".concat(e,"-content")]:{position:"relative",width:"100%"},["".concat(e,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(e,"-tabpane")]:Object.assign(Object.assign({},(0,bt.K8)(t)),{"&-hidden":{display:"none"}})}),["".concat(e,"-centered")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-nav-wrap")]:{["&:not([class*='".concat(e,"-nav-wrap-ping']) > ").concat(e,"-nav-list")]:{margin:"auto"}}}}}},At=(0,pt.OF)("Tabs",t=>{const e=(0,ft.mergeToken)(t,{tabsCardPadding:t.cardPadding,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat((0,vt.unit)(t.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat((0,vt.unit)(t.horizontalItemGutter))});return[St(e),wt(e),kt(e),yt(e),ht(e),Ct(e),gt(e)]},t=>{const{cardHeight:e,cardHeightSM:n,cardHeightLG:a,controlHeight:o,c
1ontrolHeightLG:c}=t,i=e||c,r=n||o,l=a||c+8;return{zIndexPopup:t.zIndexPopupBase+50,cardBg:t.colorFillAlter,cardHeight:i,cardHeightSM:r,cardHeightLG:l,cardPadding:"".concat((i-t.fontHeight)/2-t.lineWidth,"px ").concat(t.padding,"px"),cardPaddingSM:"".concat((r-t.fontHeight)/2-t.lineWidth,"px ").concat(t.paddingXS,"px"),cardPaddingLG:"".concat((l-t.fontHeightLG)/2-t.lineWidth,"px ").concat(t.padding,"px"),titleFontSize:t.fontSize,titleFontSizeLG:t.fontSizeLG,titleFontSizeSM:t.fontSize,inkBarColor:t.colorPrimary,horizontalMargin:"0 0 ".concat(t.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(t.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(t.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(t.padding,"px 0"),verticalItemPadding:"".concat(t.paddingXS,"px ").concat(t.paddingLG,"px"),verticalItemMargin:"".concat(t.margin,"px 0 0 0"),itemColor:t.colorText,itemSelectedColor:t.colorPrimary,itemHoverColor:t.colorPrimaryHover,itemActiveColor:t.colorPrimaryActive,cardGutter:t.marginXXS/2}});const Et=()=>null;var _t=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]])}return n};const Ot=a.forwardRef((t,e)=>{var n,r,d,s,u,v,b,p,f,m,g;const{type:h,className:y,rootClassName:k,size:S,onEdit:x,hideAdd:w,centered:C,addIcon:A,removeIcon:E,moreIcon:_,more:O,popupClassName:P,children:R,items:T,animated:I,style:M,indicatorSize:L,indicator:z,destroyInactiveTabPane:j,destroyOnHidden:B}=t,N=_t(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:H}=N,{direction:D,tabs:G,getPrefixCls:W,getPopupContainer:K}=a.useContext(ot.QO),X=W("tabs",H),F=(0,ct.A)(X),[q,V,Y]=At(X,F),Q=a.useRef(null);let U;a.useImperativeHandle(e,()=>({nativeElement:Q.current})),"editable-card"===h&&(U={onEdit:(t,e)=>{let{key:n,event:a}=e;null===x||void 0===x||x("add"===t?a:n,t)},removeIcon:null!==(n=null!==E&&void 0!==E?E:null===G||void 0===G?void 0:G.removeIcon)&&void 0!==n?n:a.createElement(o.A,null),addIcon:(null!==A&&void 0!==A?A:null===G||void 0===G?void 0:G.addIcon)||a.createElement(i.A,null),showAdd:!0!==w});const J=W();const Z=(0,it.A)(S),$=ut(T,R),tt=function(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return e=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),e.tabPane&&(e.tabPaneMotion=Object.assign(Object.assign({},lt),{motionName:(0,rt.b)(t,"switch")})),e}(X,I),et=Object.assign(Object.assign({},null===G||void 0===G?void 0:G.style),M),nt={align:null!==(r=null===z||void 0===z?void 0:z.align)&&void 0!==r?r:null===(d=null===G||void 0===G?void 0:G.indicator)||void 0===d?void 0:d.align,size:null!==(b=null!==(u=null!==(s=null===z||void 0===z?void 0:z.size)&&void 0!==s?s:L)&&void 0!==u?u:null===(v=null===G||void 0===G?void 0:G.indicator)||void 0===v?void 0:v.size)&&void 0!==b?b:null===G||void 0===G?void 0:G.indicatorSize};return q(a.createElement(at,Object.assign({ref:Q,direction:D,getPopupContainer:K},N,{items:$,className:l()({["".concat(X,"-").concat(Z)]:Z,["".concat(X,"-card")]:["card","editable-card"].includes(h),["".concat(X,"-editable-card")]:"editable-card"===h,["".concat(X,"-centered")]:C},null===G||void 0===G?void 0:G.className,y,k,V,Y,F),popupClassName:l()(P,V,Y,F),style:et,editable:U,more:Object.assign({icon:null!==(g=null!==(m=null!==(f=null===(p=null===G||void 0===G?void 0:G.more)||void 0===p?void 0:p.icon)&&void 0!==f?f:null===G||void 0===G?void 0:G.moreIcon)&&void 0!==m?m:_)&&void 0!==g?g:a.createElement(c.A,null),transitionName:"".concat(J,"-slide-up")},O),prefixCls:X,animated:tt,indicator:nt,destroyInactiveTabPane:null!==B&&void 0!==B?B:j})))}),Pt=Ot;Pt.TabPane=Et;const Rt=Pt},89073:(t,e,n)=>{n.d(e,{A:()=>M});var a=n(65043),o=n(98139),c=n.n(o),i=n(18574),r=n(35296),l=n(89122),d=n(4221),s=n(8918),u=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]])}return n};const v=t=>{var{prefixCls:e,className:n,hoverable:o=!0}=t,i=u(t,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=a.useContext(r.QO),d=l("card",e),s=c()("".concat(d,"-grid"),n,{["".concat(d,"-grid-hoverable")]:o});return a.createElement("div",Object.assign({},i,{className:s}))};var b=n(92902),p=n(94414),f=n(78855),m=n(78446);const g=t=>
1{const{antCls:e,componentCls:n,headerHeight:a,headerPadding:o,tabsMarginBottom:c}=t;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:"0 ".concat((0,b.unit)(o)),color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.headerFontSize,background:t.headerBg,borderBottom:"".concat((0,b.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorderSecondary),borderRadius:"".concat((0,b.unit)(t.borderRadiusLG)," ").concat((0,b.unit)(t.borderRadiusLG)," 0 0")},(0,p.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.L9),{["\n > ".concat(n,"-typography,\n > ").concat(n,"-typography-edit-content\n ")]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),["".concat(e,"-tabs-top")]:{clear:"both",marginBottom:c,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,"&-bar":{borderBottom:"".concat((0,b.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorderSecondary)}}})},h=t=>{const{cardPaddingBase:e,colorBorderSecondary:n,cardShadow:a,lineWidth:o}=t;return{width:"33.33%",padding:e,border:0,borderRadius:0,boxShadow:"\n ".concat((0,b.unit)(o)," 0 0 0 ").concat(n,",\n 0 ").concat((0,b.unit)(o)," 0 0 ").concat(n,",\n ").concat((0,b.unit)(o)," ").concat((0,b.unit)(o)," 0 0 ").concat(n,",\n ").concat((0,b.unit)(o)," 0 0 0 ").concat(n," inset,\n 0 ").concat((0,b.unit)(o)," 0 0 ").concat(n," inset;\n "),transition:"all ".concat(t.motionDurationMid),"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},y=t=>{const{componentCls:e,iconCls:n,actionsLiMargin:a,cardActionsIconSize:o,colorBorderSecondary:c,actionsBg:i}=t;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:"".concat((0,b.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(c),display:"flex",borderRadius:"0 0 ".concat((0,b.unit)(t.borderRadiusLG)," ").concat((0,b.unit)(t.borderRadiusLG))},(0,p.t6)()),{"& > li":{margin:a,color:t.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:t.calc(t.cardActionsIconSize).mul(2).equal(),fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer","&:hover":{color:t.colorPrimary,transition:"color ".concat(t.motionDurationMid)},["a:not(".concat(e,"-btn), > ").concat(n)]:{display:"inline-block",width:"100%",color:t.colorIcon,lineHeight:(0,b.unit)(t.fontHeight),transition:"color ".concat(t.motionDurationMid),"&:hover":{color:t.colorPrimary}},["> ".concat(n)]:{fontSize:o,lineHeight:(0,b.unit)(t.calc(o).mul(t.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:"".concat((0,b.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(c)}}})},k=t=>Object.assign(Object.assign({margin:"".concat((0,b.unit)(t.calc(t.marginXXS).mul(-1).equal())," 0"),display:"flex"},(0,p.t6)()),{"&-avatar":{paddingInlineEnd:t.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:t.marginXS}},"&-title":Object.assign({color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG},p.L9),"&-description":{color:t.colorTextDescription}}),S=t=>{const{componentCls:e,colorFillAlter:n,headerPadding:a,bodyPadding:o}=t;return{["".concat(e,"-head")]:{padding:"0 ".concat((0,b.unit)(a)),background:n,"&-title":{fontSize:t.fontSize}},["".concat(e,"-body")]:{padding:"".concat((0,b.unit)(t.padding)," ").concat((0,b.unit)(o))}}},x=t=>{const{componentCls:e}=t;return{overflow:"hidden",["".concat(e,"-body")]:{userSelect:"none"}}},w=t=>{const{componentCls:e,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:o,boxShadowTertiary:c,bodyPadding:i,extraColor:r}=t;return{[e]:Object.assign(Object.assign({},(0,p.dF)(t)),{position:"relative",background:t.colorBgContainer,borderRadius:t.borderRadiusLG,["&:not(".concat(e,"-bordered)")]:{boxShadow:c},["".concat(e,"-head")]:g(t),["".concat(e,"-extra")]:{marginInlineStart:"auto",color:r,fontWeight:"normal",fontSize:t.fontSize},["".concat(e,"-body")]:Object.assign({padding:i,borderRadius:"0 0 ".concat((0,b.unit)(t.borderRadiusLG)," ").concat((0,b.unit)(t.borderRadiusLG))},(0,p.t6)()),["".concat(e,"-grid")]:h(t),["".concat(e,"-cover")]:{"> *":{display:"block",width:"100%",borderRadius:"".concat((0,b.unit)(t.borderRadiusLG)," ").concat((0,b.unit)(t.borderRadiusLG)," 0 0")}},["".concat(e,"-actions")]:y(t),["".concat(e,"-meta")]:k(t)}),["".concat(e,"-bordered")]:{border:"".concat((0,b.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(o),["".concat(e,"-cover")]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},["".concat(e,"-hoverable")]:{cursor:"pointer",transition:"box-shadow ".concat(t.motionDurationMid,", border-color ").concat(t.motionDurationMid),"&:hover":{borderColor:"transparent",boxShadow:n}},["".concat(e,"-contain-grid")]:{borderRadius:"".concat((0,b.unit)(t.borderRadiusLG)," ").concat((0,b.unit)(t.borderRadiusLG)," 0 0 "),["".concat(e,"-body")]:{dis
1play:"flex",flexWrap:"wrap"},["&:not(".concat(e,"-loading) ").concat(e,"-body")]:{marginBlockStart:t.calc(t.lineWidth).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),padding:0}},["".concat(e,"-contain-tabs")]:{["> div".concat(e,"-head")]:{minHeight:0,["".concat(e,"-head-title, ").concat(e,"-extra")]:{paddingTop:a}}},["".concat(e,"-type-inner")]:S(t),["".concat(e,"-loading")]:x(t),["".concat(e,"-rtl")]:{direction:"rtl"}}},C=t=>{const{componentCls:e,bodyPaddingSM:n,headerPaddingSM:a,headerHeightSM:o,headerFontSizeSM:c}=t;return{["".concat(e,"-small")]:{["> ".concat(e,"-head")]:{minHeight:o,padding:"0 ".concat((0,b.unit)(a)),fontSize:c,["> ".concat(e,"-head-wrapper")]:{["> ".concat(e,"-extra")]:{fontSize:t.fontSize}}},["> ".concat(e,"-body")]:{padding:n}},["".concat(e,"-small").concat(e,"-contain-tabs")]:{["> ".concat(e,"-head")]:{["".concat(e,"-head-title, ").concat(e,"-extra")]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},A=(0,f.OF)("Card",t=>{const e=(0,m.mergeToken)(t,{cardShadow:t.boxShadowCard,cardHeadPadding:t.padding,cardPaddingBase:t.paddingLG,cardActionsIconSize:t.fontSize});return[w(e),C(e)]},t=>{var e,n;return{headerBg:"transparent",headerFontSize:t.fontSizeLG,headerFontSizeSM:t.fontSize,headerHeight:t.fontSizeLG*t.lineHeightLG+2*t.padding,headerHeightSM:t.fontSize*t.lineHeight+2*t.paddingXS,actionsBg:t.colorBgContainer,actionsLiMargin:"".concat(t.paddingSM,"px 0"),tabsMarginBottom:-t.padding-t.lineWidth,extraColor:t.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(e=t.bodyPadding)&&void 0!==e?e:t.paddingLG,headerPadding:null!==(n=t.headerPadding)&&void 0!==n?n:t.paddingLG}});var E=n(82805),_=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]])}return n};const O=t=>{const{actionClasses:e,actions:n=[],actionStyle:o}=t;return a.createElement("ul",{className:e,style:o},n.map((t,e)=>{const o="action-".concat(e);return a.createElement("li",{style:{width:"".concat(100/n.length,"%")},key:o},a.createElement("span",null,t))}))},P=a.forwardRef((t,e)=>{const{prefixCls:n,className:o,rootClassName:u,style:b,extra:p,headStyle:f={},bodyStyle:m={},title:g,loading:h,bordered:y,variant:k,size:S,type:x,cover:w,actions:C,tabList:P,children:R,activeTabKey:T,defaultActiveTabKey:I,tabBarExtraContent:M,hoverable:L,tabProps:z={},classNames:j,styles:B}=t,N=_(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:H,direction:D,card:G}=a.useContext(r.QO),[W]=(0,E.A)("card",k,y);const K=t=>{var e;return c()(null===(e=null===G||void 0===G?void 0:G.classNames)||void 0===e?void 0:e[t],null===j||void 0===j?void 0:j[t])},X=t=>{var e;return Object.assign(Object.assign({},null===(e=null===G||void 0===G?void 0:G.styles)||void 0===e?void 0:e[t]),null===B||void 0===B?void 0:B[t])},F=a.useMemo(()=>{let t=!1;return a.Children.forEach(R,e=>{(null===e||void 0===e?void 0:e.type)===v&&(t=!0)}),t},[R]),q=H("card",n),[V,Y,Q]=A(q),U=a.createElement(d.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),J=void 0!==T,Z=Object.assign(Object.assign({},z),{[J?"activeKey":"defaultActiveKey"]:J?T:I,tabBarExtraContent:M});let $;const tt=(0,l.A)(S),et=tt&&"default"!==tt?tt:"large",nt=P?a.createElement(s.A,Object.assign({size:et},Z,{className:"".concat(q,"-head-tabs"),onChange:e=>{var n;null===(n=t.onTabChange)||void 0===n||n.call(t,e)},items:P.map(t=>{var{tab:e}=t,n=_(t,["tab"]);return Object.assign({label:e},n)})})):null;if(g||p||nt){const t=c()("".concat(q,"-head"),K("header")),e=c()("".concat(q,"-head-title"),K("title")),n=c()("".concat(q,"-extra"),K("extra")),o=Object.assign(Object.assign({},f),X("header"));$=a.createElement("div",{className:t,style:o},a.createElement("div",{className:"".concat(q,"-head-wrapper")},g&&a.createElement("div",{className:e,style:X("title")},g),p&&a.createElement("div",{className:n,style:X("extra")},p)),nt)}const at=c()("".concat(q,"-cover"),K("cover")),ot=w?a.createElement("div",{className:at,style:X("cover")},w):null,ct=c()("".concat(q,"-body"),K("body")),it=Object.assign(Object.assign({},m),X("body")),rt=a.createElement("div",{className:ct,style:it},h?U:R),lt=c()("".concat(q,"-actions"),K("actions")),dt=(null===C||void 0===C?void 0:C.length)?a.createElement(O,{actionClasses:lt,actionStyle:X("actions"),actions:C}
1):null,st=(0,i.A)(N,["onTabChange"]),ut=c()(q,null===G||void 0===G?void 0:G.className,{["".concat(q,"-loading")]:h,["".concat(q,"-bordered")]:"borderless"!==W,["".concat(q,"-hoverable")]:L,["".concat(q,"-contain-grid")]:F,["".concat(q,"-contain-tabs")]:null===P||void 0===P?void 0:P.length,["".concat(q,"-").concat(tt)]:tt,["".concat(q,"-type-").concat(x)]:!!x,["".concat(q,"-rtl")]:"rtl"===D},o,u,Y,Q),vt=Object.assign(Object.assign({},null===G||void 0===G?void 0:G.style),b);return V(a.createElement("div",Object.assign({ref:e},st,{className:ut,style:vt}),$,ot,rt,dt))});var R=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]])}return n};const T=t=>{const{prefixCls:e,className:n,avatar:o,title:i,description:l}=t,d=R(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=a.useContext(r.QO),u=s("card",e),v=c()("".concat(u,"-meta"),n),b=o?a.createElement("div",{className:"".concat(u,"-meta-avatar")},o):null,p=i?a.createElement("div",{className:"".concat(u,"-meta-title")},i):null,f=l?a.createElement("div",{className:"".concat(u,"-meta-description")},l):null,m=p||f?a.createElement("div",{className:"".concat(u,"-meta-detail")},p,f):null;return a.createElement("div",Object.assign({},d,{className:v}),b,m)},I=P;I.Grid=v,I.Meta=T;const M=I}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.