import{r as n,av as Bt,aw as Wt,_ as z,R as Ht,c4 as et,a as Z,dW as jt,h as De,dX as Gt,dY as Xt,g as q,b as Q,dZ as Kt,f as se,K as te,ax as Vt,O as tt,aC as Ae,cO as qt,d as Ee,C as Ft,e as at,ca as Ut,W as Yt,cV as nt,i as Zt,m as Qt,k as p,j as mt,t as Jt,bQ as gt,l as ea,ar as ta,br as aa,n as na,p as rt,d_ as ra,dH as ia}from"./index-e81753a9.js";const oa=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var la={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"};const ca=la;var sa=function(t,a){return n.createElement(Bt,Wt({},t,{ref:a,icon:ca}))},da=n.forwardRef(sa);const ua=da,Pe=n.createContext(null);var va=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,v=n.useState(),f=z(v,2),S=f[0],P=f[1],M=n.useRef(),T=Ht.useCallback(function(b){return typeof o=="function"?o(b):typeof o=="number"?o:b},[o]);function L(){et.cancel(M.current)}return n.useEffect(function(){var b={};if(a)if(r){b.width=T(a.width);var u=i?"right":"left";d==="start"&&(b[u]=a[u]),d==="center"&&(b[u]=a[u]+a.width/2,b.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(b[u]=a[u]+a.width,b.transform="translateX(-100%)")}else b.height=T(a.height),d==="start"&&(b.top=a.top),d==="center"&&(b.top=a.top+a.height/2,b.transform="translateY(-50%)"),d==="end"&&(b.top=a.top+a.height,b.transform="translateY(-100%)");return L(),M.current=et(function(){P(b)}),L},[a,r,i,d,T]),{style:S}},it={width:0,height:0,left:0,top:0};function fa(e,t,a){return n.useMemo(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||it,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,d=t.get(s);if(!d){var v;d=t.get((v=e[o-1])===null||v===void 0?void 0:v.key)||it}var f=i.get(s)||Z({},d);f.right=c-f.left-f.width,i.set(s,f)}return i},[e.map(function(r){return r.key}).join("_"),t,a])}function ot(e,t){var a=n.useRef(e),r=n.useState({}),i=z(r,2),l=i[1];function c(o){var s=typeof o=="function"?o(a.current):o;s!==a.current&&t(s,a.current),a.current=s,l({})}return[a.current,c]}var ba=.1,lt=.01,Te=20,ct=Math.pow(.995,Te);function ma(e,t){var a=n.useState(),r=z(a,2),i=r[0],l=r[1],c=n.useState(0),o=z(c,2),s=o[0],d=o[1],v=n.useState(0),f=z(v,2),S=f[0],P=f[1],M=n.useState(),T=z(M,2),L=T[0],b=T[1],u=n.useRef();function E(h){var R=h.touches[0],$=R.screenX,x=R.screenY;l({x:$,y:x}),window.clearInterval(u.current)}function k(h){if(i){h.preventDefault();var R=h.touches[0],$=R.screenX,x=R.screenY;l({x:$,y:x});var m=$-i.x,C=x-i.y;t(m,C);var F=Date.now();d(F),P(F-s),b({x:m,y:C})}}function A(){if(i&&(l(null),b(null),L)){var h=L.x/S,R=L.y/S,$=Math.abs(h),x=Math.abs(R);if(Math.max($,x)<ba)return;var m=h,C=R;u.current=window.setInterval(function(){if(Math.abs(m)<lt&&Math.abs(C)<lt){window.clearInterval(u.current);return}m*=ct,C*=ct,t(m*Te,C*Te)},Te)}}var W=n.useRef();function D(h){var R=h.deltaX,$=h.deltaY,x=0,m=Math.abs(R),C=Math.abs($);m===C?x=W.current==="x"?R:$:m>C?(x=R,W.current="x"):(x=$,W.current="y"),t(-x,-x)&&h.preventDefault()}var _=n.useRef(null);_.current={onTouchStart:E,onTouchMove:k,onTouchEnd:A,onWheel:D},n.useEffect(function(){function h(m){_.current.onTouchStart(m)}function R(m){_.current.onTouchMove(m)}function $(m){_.current.onTouchEnd(m)}function x(m){_.current.onWheel(m)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",h,{passive:!0}),e.current.addEventListener("wheel",x,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",$)}},[])}function pt(e){var t=n.useState(0),a=z(t,2),r=a[0],i=a[1],l=n.useRef(0),c=n.useRef();return c.current=e,jt(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function ga(e){var t=n.useRef([]),a=n.useState({}),r=z(a,2),i=r[1],l=n.useRef(typeof e=="function"?e():e),c=pt(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var st={width:0,height:0,left:0,top:0,right:0};function pa(e,t,a,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,v,f,S;return["top","bottom"].includes(s)?(v="width",f=d?"right":"left",S=Math.abs(a)):(v="height",f="top",S=-a),n.useMemo(function(){if(!o.length)return[0,0];for(var P=o.length,M=P,T=0;T<P;T+=1){var L=e.get(o[T].key)||st;if(L[f]+L[v]>S+t){M=T-1;break}}for(var b=0,u=P-1;u>=0;u-=1){var E=e.get(o[u].key)||st;if(E[f]<S){b=u+1;break}}return b>=M?[0,0]:[b,M]},[e,t,r,i,l,S,s,o.map(function(P){return P.key}).join("_"),d])}function dt(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var ha="TABS_DQ";function ht(e){return String(e).replace(/"/g,ha)}function $t(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var yt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),ut=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return De(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(l=c.right),a==="left"&&(l=c.left),l?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),$a=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.more,s=o===void 0?{}:o,d=e.style,v=e.className,f=e.editable,S=e.tabBarGutter,P=e.rtl,M=e.removeAriaLabel,T=e.onTabClick,L=e.getPopupContainer,b=e.popupClassName,u=n.useState(!1),E=z(u,2),k=E[0],A=E[1],W=n.useState(null),D=z(W,2),_=D[0],h=D[1],R=s.icon,$=R===void 0?"More":R,x="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),C=_!==null?"".concat(x,"-").concat(_):null,F=l==null?void 0:l.dropdownAriaLabel;function re(w,O){w.preventDefault(),w.stopPropagation(),f.onEdit("remove",{key:O,event:w})}var g=n.createElement(Gt,{onClick:function(O){var j=O.key,X=O.domEvent;T(j,X),A(!1)},prefixCls:"".concat(m,"-menu"),id:x,tabIndex:-1,role:"listbox","aria-activedescendant":C,selectedKeys:[_],"aria-label":F!==void 0?F:"expanded dropdown"},i.map(function(w){var O=w.closable,j=w.disabled,X=w.closeIcon,V=w.key,J=w.label,Y=$t(O,X,f,j);return n.createElement(Xt,{key:V,id:"".concat(x,"-").concat(V),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(V),disabled:j},n.createElement("span",null,J),Y&&n.createElement("button",{type:"button","aria-label":M||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),re(oe,V)}},X||f.removeIcon||"×"))}));function G(w){for(var O=i.filter(function(Y){return!Y.disabled}),j=O.findIndex(function(Y){return Y.key===_})||0,X=O.length,V=0;V<X;V+=1){j=(j+w+X)%X;var J=O[j];if(!J.disabled){h(J.key);return}}}function ae(w){var O=w.which;if(!k){[te.DOWN,te.SPACE,te.ENTER].includes(O)&&(A(!0),w.preventDefault());return}switch(O){case te.UP:G(-1),w.preventDefault();break;case te.DOWN:G(1),w.preventDefault();break;case te.ESC:A(!1);break;case te.SPACE:case te.ENTER:_!==null&&T(_,w);break}}n.useEffect(function(){var w=document.getElementById(C);w&&w.scrollIntoView&&w.scrollIntoView(!1)},[_]),n.useEffect(function(){k||h(null)},[k]);var H=q({},P?"marginRight":"marginLeft",S);i.length||(H.visibility="hidden",H.order=1);var K=Q(q({},"".concat(m,"-rtl"),P)),ie=c?null:n.createElement(Kt,se({prefixCls:m,overlay:g,visible:i.length?k:!1,onVisibleChange:A,overlayClassName:Q(K,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:L},s),n.createElement("button",{type:"button",className:"".concat(a,"-nav-more"),style:H,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":x,id:"".concat(r,"-more"),"aria-expanded":k,onKeyDown:ae},$));return n.createElement("div",{className:Q("".concat(a,"-nav-operations"),v),style:d,ref:t},ie,n.createElement(yt,{prefixCls:a,locale:l,editable:f}))});const ya=n.memo($a,function(e,t){return t.tabMoving});var Sa=function(t){var a=t.prefixCls,r=t.id,i=t.active,l=t.tab,c=l.key,o=l.label,s=l.disabled,d=l.closeIcon,v=l.icon,f=t.closable,S=t.renderWrapper,P=t.removeAriaLabel,M=t.editable,T=t.onClick,L=t.onFocus,b=t.style,u="".concat(a,"-tab"),E=$t(f,d,M,s);function k(_){s||T(_)}function A(_){_.preventDefault(),_.stopPropagation(),M.onEdit("remove",{key:c,event:_})}var W=n.useMemo(function(){return v&&typeof o=="string"?n.createElement("span",null,o):o},[o,v]),D=n.createElement("div",{key:c,"data-node-key":ht(c),className:Q(u,q(q(q({},"".concat(u,"-with-remove"),E),"".concat(u,"-active"),i),"".concat(u,"-disabled"),s)),style:b,onClick:k},n.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(c),className:"".concat(u,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(c),"aria-disabled":s,tabIndex:s?null:0,onClick:function(h){h.stopPropagation(),k(h)},onKeyDown:function(h){[te.SPACE,te.ENTER].includes(h.which)&&(h.preventDefault(),k(h))},onFocus:L},v&&n.createElement("span",{className:"".concat(u,"-icon")},v),o&&W),E&&n.createElement("button",{type:"button","aria-label":P||"remove",tabIndex:0,className:"".concat(u,"-remove"),onClick:function(h){h.stopPropagation(),A(h)}},d||M.removeIcon||"×"));return S?S(D):D},_a=function(t,a){var r=t.offsetWidth,i=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,o=t.getBoundingClientRect(),s=o.width,d=o.height,v=o.x,f=o.y;return Math.abs(s-r)<1?[s,d,v-a.x,f-a.y]:[r,i,c,l]},me=function(t){var a=t.current||{},r=a.offsetWidth,i=r===void 0?0:r,l=a.offsetHeight,c=l===void 0?0:l;if(t.current){var o=t.current.getBoundingClientRect(),s=o.width,d=o.height;if(Math.abs(s-i)<1)return[s,d]}return[i,c]},we=function(t,a){return t[a?0:1]},vt=n.forwardRef(function(e,t){var a=e.className,r=e.style,i=e.id,l=e.animated,c=e.activeKey,o=e.rtl,s=e.extra,d=e.editable,v=e.locale,f=e.tabPosition,S=e.tabBarGutter,P=e.children,M=e.onTabClick,T=e.onTabScroll,L=e.indicator,b=n.useContext(Pe),u=b.prefixCls,E=b.tabs,k=n.useRef(null),A=n.useRef(null),W=n.useRef(null),D=n.useRef(null),_=n.useRef(null),h=n.useRef(null),R=n.useRef(null),$=f==="top"||f==="bottom",x=ot(0,function(N,y){$&&T&&T({direction:N>y?"left":"right"})}),m=z(x,2),C=m[0],F=m[1],re=ot(0,function(N,y){!$&&T&&T({direction:N>y?"top":"bottom"})}),g=z(re,2),G=g[0],ae=g[1],H=n.useState([0,0]),K=z(H,2),ie=K[0],w=K[1],O=n.useState([0,0]),j=z(O,2),X=j[0],V=j[1],J=n.useState([0,0]),Y=z(J,2),fe=Y[0],oe=Y[1],de=n.useState([0,0]),be=z(de,2),I=be[0],ne=be[1],ge=ga(new Map),Be=z(ge,2),xt=Be[0],Ct=Be[1],$e=fa(E,xt,X[0]),Re=we(ie,$),pe=we(X,$),Ie=we(fe,$),We=we(I,$),He=Re<pe+Ie,ee=He?Re-We:Re-Ie,wt="".concat(u,"-nav-operations-hidden"),le=0,ue=0;$&&o?(le=0,ue=Math.max(0,pe-ee)):(le=Math.min(0,ee-pe),ue=0);function ze(N){return N<le?le:N>ue?ue:N}var Le=n.useRef(null),Tt=n.useState(),je=z(Tt,2),ye=je[0],Ge=je[1];function ke(){Ge(Date.now())}function Me(){Le.current&&clearTimeout(Le.current)}ma(D,function(N,y){function B(U,ve){U(function(ce){var xe=ze(ce+ve);return xe})}return He?($?B(F,N):B(ae,y),Me(),ke(),!0):!1}),n.useEffect(function(){return Me(),ye&&(Le.current=setTimeout(function(){Ge(0)},100)),Me},[ye]);var Et=pa($e,ee,$?C:G,pe,Ie,We,Z(Z({},e),{},{tabs:E})),Xe=z(Et,2),Pt=Xe[0],Rt=Xe[1],Ke=Vt(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,y=$e.get(N)||{width:0,height:0,left:0,right:0,top:0};if($){var B=C;o?y.right<C?B=y.right:y.right+y.width>C+ee&&(B=y.right+y.width-ee):y.left<-C?B=-y.left:y.left+y.width>-C+ee&&(B=-(y.left+y.width-ee)),ae(0),F(ze(B))}else{var U=G;y.top<-G?U=-y.top:y.top+y.height>-G+ee&&(U=-(y.top+y.height-ee)),F(0),ae(ze(U))}}),Se={};f==="top"||f==="bottom"?Se[o?"marginRight":"marginLeft"]=S:Se.marginTop=S;var Ve=E.map(function(N,y){var B=N.key;return n.createElement(Sa,{id:i,prefixCls:u,key:B,tab:N,style:y===0?void 0:Se,closable:N.closable,editable:d,active:B===c,renderWrapper:P,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(ve){M(B,ve)},onFocus:function(){Ke(B),ke(),D.current&&(o||(D.current.scrollLeft=0),D.current.scrollTop=0)}})}),qe=function(){return Ct(function(){var y,B=new Map,U=(y=_.current)===null||y===void 0?void 0:y.getBoundingClientRect();return E.forEach(function(ve){var ce,xe=ve.key,Je=(ce=_.current)===null||ce===void 0?void 0:ce.querySelector('[data-node-key="'.concat(ht(xe),'"]'));if(Je){var Mt=_a(Je,U),Ce=z(Mt,4),Nt=Ce[0],Ot=Ce[1],At=Ce[2],Dt=Ce[3];B.set(xe,{width:Nt,height:Ot,left:At,top:Dt})}}),B})};n.useEffect(function(){qe()},[E.map(function(N){return N.key}).join("_")]);var _e=pt(function(){var N=me(k),y=me(A),B=me(W);w([N[0]-y[0]-B[0],N[1]-y[1]-B[1]]);var U=me(R);oe(U);var ve=me(h);ne(ve);var ce=me(_);V([ce[0]-U[0],ce[1]-U[1]]),qe()}),It=E.slice(0,Pt),zt=E.slice(Rt+1),Fe=[].concat(tt(It),tt(zt)),Ue=$e.get(c),Lt=va({activeTabOffset:Ue,horizontal:$,indicator:L,rtl:o}),kt=Lt.style;n.useEffect(function(){Ke()},[c,le,ue,dt(Ue),dt($e),$]),n.useEffect(function(){_e()},[o]);var Ye=!!Fe.length,he="".concat(u,"-nav-wrap"),Ne,Oe,Ze,Qe;return $?o?(Oe=C>0,Ne=C!==ue):(Ne=C<0,Oe=C!==le):(Ze=G<0,Qe=G!==le),n.createElement(Ae,{onResize:_e},n.createElement("div",{ref:qt(t,k),role:"tablist",className:Q("".concat(u,"-nav"),a),style:r,onKeyDown:function(){ke()}},n.createElement(ut,{ref:A,position:"left",extra:s,prefixCls:u}),n.createElement(Ae,{onResize:_e},n.createElement("div",{className:Q(he,q(q(q(q({},"".concat(he,"-ping-left"),Ne),"".concat(he,"-ping-right"),Oe),"".concat(he,"-ping-top"),Ze),"".concat(he,"-ping-bottom"),Qe)),ref:D},n.createElement(Ae,{onResize:_e},n.createElement("div",{ref:_,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(C,"px, ").concat(G,"px)"),transition:ye?"none":void 0}},Ve,n.createElement(yt,{ref:R,prefixCls:u,locale:v,editable:d,style:Z(Z({},Ve.length===0?void 0:Se),{},{visibility:Ye?"hidden":null})}),n.createElement("div",{className:Q("".concat(u,"-ink-bar"),q({},"".concat(u,"-ink-bar-animated"),l.inkBar)),style:kt}))))),n.createElement(ya,se({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:h,prefixCls:u,tabs:Fe,className:!Ye&&wt,tabMoving:!!ye})),n.createElement(ut,{ref:W,position:"right",extra:s,prefixCls:u})))}),St=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return n.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:Q(a,c&&"".concat(a,"-active"),r),ref:t},s)}),xa=["renderTabBar"],Ca=["label","key"],wa=function(t){var a=t.renderTabBar,r=Ee(t,xa),i=n.useContext(Pe),l=i.tabs;if(a){var c=Z(Z({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,v=Ee(o,Ca);return n.createElement(St,se({tab:s,key:d,tabKey:d},v))})});return a(c,vt)}return n.createElement(vt,r)},Ta=["key","forceRender","style","className","destroyInactiveTabPane"],Ea=function(t){var a=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=n.useContext(Pe),s=o.prefixCls,d=o.tabs,v=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:Q("".concat(s,"-content-holder"))},n.createElement("div",{className:Q("".concat(s,"-content"),"".concat(s,"-content-").concat(l),q({},"".concat(s,"-content-animated"),v))},d.map(function(S){var P=S.key,M=S.forceRender,T=S.style,L=S.className,b=S.destroyInactiveTabPane,u=Ee(S,Ta),E=P===r;return n.createElement(Ft,se({key:P,visible:E,forceRender:M,removeOnLeave:!!(c||b),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(k,A){var W=k.style,D=k.className;return n.createElement(St,se({},u,{prefixCls:f,id:a,tabKey:P,animated:v,active:E,style:Z(Z({},T),W),className:Q(L,D),ref:A}))})})))};function Pa(){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=Z({inkBar:!0},De(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Ra=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],ft=0,Ia=n.forwardRef(function(e,t){var a=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,d=e.defaultActiveKey,v=e.editable,f=e.animated,S=e.tabPosition,P=S===void 0?"top":S,M=e.tabBarGutter,T=e.tabBarStyle,L=e.tabBarExtraContent,b=e.locale,u=e.more,E=e.destroyInactiveTabPane,k=e.renderTabBar,A=e.onChange,W=e.onTabClick,D=e.onTabScroll,_=e.getPopupContainer,h=e.popupClassName,R=e.indicator,$=Ee(e,Ra),x=n.useMemo(function(){return(c||[]).filter(function(I){return I&&De(I)==="object"&&"key"in I})},[c]),m=o==="rtl",C=Pa(f),F=n.useState(!1),re=z(F,2),g=re[0],G=re[1];n.useEffect(function(){G(oa())},[]);var ae=at(function(){var I;return(I=x[0])===null||I===void 0?void 0:I.key},{value:s,defaultValue:d}),H=z(ae,2),K=H[0],ie=H[1],w=n.useState(function(){return x.findIndex(function(I){return I.key===K})}),O=z(w,2),j=O[0],X=O[1];n.useEffect(function(){var I=x.findIndex(function(ge){return ge.key===K});if(I===-1){var ne;I=Math.max(0,Math.min(j,x.length-1)),ie((ne=x[I])===null||ne===void 0?void 0:ne.key)}X(I)},[x.map(function(I){return I.key}).join("_"),K,j]);var V=at(null,{value:a}),J=z(V,2),Y=J[0],fe=J[1];n.useEffect(function(){a||(fe("rc-tabs-".concat(ft)),ft+=1)},[]);function oe(I,ne){W==null||W(I,ne);var ge=I!==K;ie(I),ge&&(A==null||A(I))}var de={id:Y,activeKey:K,animated:C,tabPosition:P,rtl:m,mobile:g},be=Z(Z({},de),{},{editable:v,locale:b,more:u,tabBarGutter:M,onTabClick:oe,onTabScroll:D,extra:L,style:T,panes:null,getPopupContainer:_,popupClassName:h,indicator:R});return n.createElement(Pe.Provider,{value:{tabs:x,prefixCls:i}},n.createElement("div",se({ref:t,id:a,className:Q(i,"".concat(i,"-").concat(P),q(q(q({},"".concat(i,"-mobile"),g),"".concat(i,"-editable"),v),"".concat(i,"-rtl"),m),l)},$),n.createElement(wa,se({},be,{renderTabBar:k})),n.createElement(Ea,se({destroyInactiveTabPane:E},de,{animated:C}))))});const za={motionAppear:!1,motionEnter:!0,motionLeave:!0};function La(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},za),{motionName:Ut(e,"switch")})),a}var ka=globalThis&&globalThis.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(a[r[i]]=e[r[i]]);return a};function Ma(e){return e.filter(t=>t)}function Na(e,t){if(e)return e;const a=Yt(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=ka(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Ma(a)}const Oa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[nt(e,"slide-up"),nt(e,"slide-down")]]},Aa=Oa,Da=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${p(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,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:p(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${p(e.borderRadiusLG)} ${p(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${p(e.borderRadiusLG)} ${p(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:p(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${p(e.borderRadiusLG)} 0 0 ${p(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 ${p(e.borderRadiusLG)} ${p(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ba=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},mt(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:`${p(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({},Jt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${p(e.paddingXXS)} ${p(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:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Wa=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${p(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:a,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:o(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${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:p(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${p(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:o(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${p(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ha=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${p(e.borderRadius)} ${p(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${p(e.borderRadius)} ${p(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${p(e.borderRadius)} ${p(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${p(e.borderRadius)} 0 0 ${p(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ja=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:a}},gt(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-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},[`&${d}-active ${d}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:l}}}},Ga=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:p(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:p(e.marginXS)},marginLeft:{_skip_check_:!0,value:p(l(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Xa=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mt(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:a,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:i},padding:`0 ${p(e.paddingXS)}`,background:"transparent",border:`${p(e.lineWidth)} ${e.lineType} ${o}`,borderRadius:`${p(e.borderRadiusLG)} ${p(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},gt(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ja(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Ka=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}},Va=Zt("Tabs",e=>{const t=Qt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${p(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${p(e.horizontalItemGutter)}`});return[Ha(t),Ga(t),Wa(t),Ba(t),Da(t),Xa(t),Aa(t)]},Ka),qa=()=>null,Fa=qa;var Ua=globalThis&&globalThis.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(a[r[i]]=e[r[i]]);return a};const _t=e=>{var t,a,r,i,l,c,o,s,d,v,f;const{type:S,className:P,rootClassName:M,size:T,onEdit:L,hideAdd:b,centered:u,addIcon:E,removeIcon:k,moreIcon:A,more:W,popupClassName:D,children:_,items:h,animated:R,style:$,indicatorSize:x,indicator:m}=e,C=Ua(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:F}=C,{direction:re,tabs:g,getPrefixCls:G,getPopupContainer:ae}=n.useContext(ea),H=G("tabs",F),K=ta(H),[ie,w,O]=Va(H,K);let j;S==="editable-card"&&(j={onEdit:(de,be)=>{let{key:I,event:ne}=be;L==null||L(de==="add"?ne:I,de)},removeIcon:(t=k??(g==null?void 0:g.removeIcon))!==null&&t!==void 0?t:n.createElement(aa,null),addIcon:(E??(g==null?void 0:g.addIcon))||n.createElement(ua,null),showAdd:b!==!0});const X=G(),V=na(T),J=Na(h,_),Y=La(H,R),fe=Object.assign(Object.assign({},g==null?void 0:g.style),$),oe={align:(a=m==null?void 0:m.align)!==null&&a!==void 0?a:(r=g==null?void 0:g.indicator)===null||r===void 0?void 0:r.align,size:(o=(l=(i=m==null?void 0:m.size)!==null&&i!==void 0?i:x)!==null&&l!==void 0?l:(c=g==null?void 0:g.indicator)===null||c===void 0?void 0:c.size)!==null&&o!==void 0?o:g==null?void 0:g.indicatorSize};return ie(n.createElement(Ia,Object.assign({direction:re,getPopupContainer:ae},C,{items:J,className:rt({[`${H}-${V}`]:V,[`${H}-card`]:["card","editable-card"].includes(S),[`${H}-editable-card`]:S==="editable-card",[`${H}-centered`]:u},g==null?void 0:g.className,P,M,w,O,K),popupClassName:rt(D,w,O,K),style:fe,editable:j,more:Object.assign({icon:(f=(v=(d=(s=g==null?void 0:g.more)===null||s===void 0?void 0:s.icon)!==null&&d!==void 0?d:g==null?void 0:g.moreIcon)!==null&&v!==void 0?v:A)!==null&&f!==void 0?f:n.createElement(ra,null),transitionName:`${X}-slide-up`},W),prefixCls:H,animated:Y,indicator:oe})))};_t.TabPane=Fa;const Ja=_t;var bt=1/0,Ya=17976931348623157e292;function Za(e){if(!e)return e===0?e:0;if(e=ia(e),e===bt||e===-bt){var t=e<0?-1:1;return t*Ya}return e===e?e:0}function en(e){var t=Za(e),a=t%1;return t===t?a?t-a:t:0}function tn(e){return function(t){return t==null?void 0:t[e]}}const an=(e,t)=>(t==null?void 0:t.subscription_channel_type)===e,nn=(e,t)=>{const a=new Date(t),r=e.charAt(e.length-4);return a.getTime()<new Date("2024-06-28T00:00:00Z").getTime()?!1:["0","1","2","3","4","5","6","7"].includes(r)},rn=e=>{const t=new Date(e.created_at),a=e.id.charAt(e.id.length-2);return t.getTime()<new Date("2024-07-05T00:00:00Z").getTime()?!0:["0","1","2","3","4","5","6","7","8","9","a","b","c"].includes(a)},on=e=>{if(!e)return!1;if(e.email&&["abc01106@qq.com","abc01102@qq.com"].includes(e.email))return!0;const t=e.id.charAt(e.id.length-6);return["0","1","2","3"].includes(t)},ln=(e,t)=>!!e;export{Ja as T,nn as a,oa as b,tn as c,rn as d,on as e,ln as f,an as i,en as t};