import{r,I as Mn,c as Z,K as rt,d as A,m as On,n as Nn,x as I,p as it,F as gt,A as Xa,g as ye,i as Y,P as tt,_ as L,l as ca,k as ua,R as Le,O as Ya,L as da,b1 as fa,b2 as va,f as G,T as Qa,a5 as ma,h as at,b3 as Ja,w as ga,N as ba,b4 as Za,b5 as er,S as tr,Q as nr,v as pa,b as on,a3 as ar,o as Tn,W as Ln,a0 as ha,y as xn,D as ya,aY as zn}from"./index-BLjtKp_X.js";import{i as rr,h as jt,T as Ca,d as It,t as Sa,f as ir,q as or,u as lr,m as sr}from"./LockOutlined-Cb8Fzp1E.js";import{h as Ht}from"./head-CXYXhTUP.js";var cr={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},ur=function(t,a){return r.createElement(Mn,Z({},t,{ref:a,icon:cr}))},dr=r.forwardRef(ur),$e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};const fr=new rt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),vr=new rt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),mr=new rt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),gr=new rt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),br=new rt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),pr=new rt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),hr=new rt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yr=new rt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Cr={"slide-up":{inKeyframes:fr,outKeyframes:vr},"slide-down":{inKeyframes:mr,outKeyframes:gr},"slide-left":{inKeyframes:br,outKeyframes:pr},"slide-right":{inKeyframes:hr,outKeyframes:yr}},Gn=(e,t)=>{const{antCls:a}=e,n=`${a}-${t}`,{inKeyframes:i,outKeyframes:o}=Cr[t];return[rr(n,i,o,e.motionDurationMid),{[`
      ${n}-enter,
      ${n}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ln=e=>{const{prefixCls:t,className:a,style:n,size:i,shape:o}=e,l=A({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=A({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=r.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return r.createElement("span",{className:A(t,l,s,a),style:Object.assign(Object.assign({},c),n)})},Sr=new rt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),sn=e=>({height:e,lineHeight:I(e)}),_t=e=>Object.assign({width:e},sn(e)),$r=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Sr,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),yn=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},sn(e)),xr=e=>{const{skeletonAvatarCls:t,gradientFromColor:a,controlHeight:n,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:a},_t(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},_t(i)),[`${t}${t}-sm`]:Object.assign({},_t(o))}},wr=e=>{const{controlHeight:t,borderRadiusSM:a,skeletonInputCls:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:l,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:a},yn(t,s)),[`${n}-lg`]:Object.assign({},yn(i,s)),[`${n}-sm`]:Object.assign({},yn(o,s))}},Vn=e=>Object.assign({width:e},sn(e)),Er=e=>{const{skeletonImageCls:t,imageSizeBase:a,gradientFromColor:n,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:i},Vn(o(a).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Vn(a)),{maxWidth:o(a).mul(4).equal(),maxHeight:o(a).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Cn=(e,t,a)=>{const{skeletonButtonCls:n}=e;return{[`${a}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${a}${n}-round`]:{borderRadius:t}}},Sn=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},sn(e)),Rr=e=>{const{borderRadiusSM:t,skeletonButtonCls:a,controlHeight:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[a]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},Sn(n,s))},Cn(e,n,a)),{[`${a}-lg`]:Object.assign({},Sn(i,s))}),Cn(e,i,`${a}-lg`)),{[`${a}-sm`]:Object.assign({},Sn(o,s))}),Cn(e,o,`${a}-sm`))},Ir=e=>{const{componentCls:t,skeletonAvatarCls:a,skeletonTitleCls:n,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:f,gradientFromColor:d,padding:v,marginSM:h,borderRadius:C,titleHeight:x,blockRadius:m,paragraphLiHeight:b,controlHeightXS:g,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[a]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},_t(c)),[`${a}-circle`]:{borderRadius:"50%"},[`${a}-lg`]:Object.assign({},_t(u)),[`${a}-sm`]:Object.assign({},_t(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:x,background:d,borderRadius:m,[`+ ${i}`]:{marginBlockStart:f}},[i]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:g}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${i} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Rr(e)),xr(e)),wr(e)),Er(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${n},
        ${i} > li,
        ${a},
        ${o},
        ${l},
        ${s}
      `]:Object.assign({},$r(e))}}},_r=e=>{const{colorFillContent:t,colorFill:a}=e,n=t,i=a;return{color:n,colorGradientEnd:i,gradientFromColor:n,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Pt=On("Skeleton",e=>{const{componentCls:t,calc:a}=e,n=Nn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:a(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return Ir(n)},_r,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Pr=e=>{const{prefixCls:t,className:a,rootClassName:n,active:i,shape:o="circle",size:l="default"}=e,{getPrefixCls:s}=r.useContext(it),c=s("skeleton",t),[u,f,d]=Pt(c),v=gt(e,["prefixCls","className"]),h=A(c,`${c}-element`,{[`${c}-active`]:i},a,n,f,d);return u(r.createElement("div",{className:h},r.createElement(ln,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:l},v))))},Mr=e=>{const{prefixCls:t,className:a,rootClassName:n,active:i,block:o=!1,size:l="default"}=e,{getPrefixCls:s}=r.useContext(it),c=s("skeleton",t),[u,f,d]=Pt(c),v=gt(e,["prefixCls"]),h=A(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:o},a,n,f,d);return u(r.createElement("div",{className:h},r.createElement(ln,Object.assign({prefixCls:`${c}-button`,size:l},v))))},Or="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Nr=e=>{const{prefixCls:t,className:a,rootClassName:n,style:i,active:o}=e,{getPrefixCls:l}=r.useContext(it),s=l("skeleton",t),[c,u,f]=Pt(s),d=A(s,`${s}-element`,{[`${s}-active`]:o},a,n,u,f);return c(r.createElement("div",{className:d},r.createElement("div",{className:A(`${s}-image`,a),style:i},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:Or,className:`${s}-image-path`})))))},Tr=e=>{const{prefixCls:t,className:a,rootClassName:n,active:i,block:o,size:l="default"}=e,{getPrefixCls:s}=r.useContext(it),c=s("skeleton",t),[u,f,d]=Pt(c),v=gt(e,["prefixCls"]),h=A(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:o},a,n,f,d);return u(r.createElement("div",{className:h},r.createElement(ln,Object.assign({prefixCls:`${c}-input`,size:l},v))))},Lr=e=>{const{prefixCls:t,className:a,rootClassName:n,style:i,active:o,children:l}=e,{getPrefixCls:s}=r.useContext(it),c=s("skeleton",t),[u,f,d]=Pt(c),v=A(c,`${c}-element`,{[`${c}-active`]:o},f,a,n,d);return u(r.createElement("div",{className:v},r.createElement("div",{className:A(`${c}-image`,a),style:i},l)))},zr=(e,t)=>{const{width:a,rows:n=2}=t;if(Array.isArray(a))return a[e];if(n-1===e)return a},Ar=e=>{const{prefixCls:t,className:a,style:n,rows:i=0}=e,o=Array.from({length:i}).map((l,s)=>r.createElement("li",{key:s,style:{width:zr(s,e)}}));return r.createElement("ul",{className:A(t,a),style:n},o)},Dr=({prefixCls:e,className:t,width:a,style:n})=>r.createElement("h3",{className:A(e,t),style:Object.assign({width:a},n)});function $n(e){return e&&typeof e=="object"?e:{}}function Kr(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function kr(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function jr(e,t){const a={};return(!e||!t)&&(a.width="61%"),!e&&t?a.rows=3:a.rows=2,a}const Mt=e=>{const{prefixCls:t,loading:a,className:n,rootClassName:i,style:o,children:l,avatar:s=!1,title:c=!0,paragraph:u=!0,active:f,round:d}=e,{getPrefixCls:v,direction:h,className:C,style:x}=Xa("skeleton"),m=v("skeleton",t),[b,g,y]=Pt(m);if(a||!("loading"in e)){const w=!!s,E=!!c,p=!!u;let D;if(w){const O=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Kr(E,p)),$n(s));D=r.createElement("div",{className:`${m}-header`},r.createElement(ln,Object.assign({},O)))}let $;if(E||p){let O;if(E){const M=Object.assign(Object.assign({prefixCls:`${m}-title`},kr(w,p)),$n(c));O=r.createElement(Dr,Object.assign({},M))}let S;if(p){const M=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},jr(w,E)),$n(u));S=r.createElement(Ar,Object.assign({},M))}$=r.createElement("div",{className:`${m}-content`},O,S)}const _=A(m,{[`${m}-with-avatar`]:w,[`${m}-active`]:f,[`${m}-rtl`]:h==="rtl",[`${m}-round`]:d},C,n,i,g,y);return b(r.createElement("div",{className:_,style:Object.assign(Object.assign({},x),o)},D,$))}return l??null};Mt.Button=Mr;Mt.Avatar=Pr;Mt.Input=Tr;Mt.Image=Nr;Mt.Node=Lr;var Br=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],St=void 0;function Hr(e,t){var a=e.prefixCls,n=e.invalidate,i=e.item,o=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,f=e.className,d=e.style,v=e.children,h=e.display,C=e.order,x=e.component,m=x===void 0?"div":x,b=ye(e,Br),g=l&&!h;function y($){c(u,$)}r.useEffect(function(){return function(){y(null)}},[]);var w=o&&i!==St?o(i,{index:C}):v,E;n||(E={opacity:g?0:1,height:g?0:St,overflowY:g?"hidden":St,order:l?C:St,pointerEvents:g?"none":St,position:g?"absolute":St});var p={};g&&(p["aria-hidden"]=!0);var D=r.createElement(m,Z({className:A(!n&&a,f),style:Y(Y({},E),d)},p,b,{ref:t}),w);return l&&(D=r.createElement(jt,{onResize:function(_){var O=_.offsetWidth;y(O)},disabled:s},D)),D}var Rt=r.forwardRef(Hr);Rt.displayName="Item";function Wr(e){if(typeof MessageChannel>"u")tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Fr(){var e=r.useRef(null),t=function(n){e.current||(e.current=[],Wr(function(){ua.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(n)};return t}function $t(e,t){var a=r.useState(t),n=L(a,2),i=n[0],o=n[1],l=ca(function(s){e(function(){o(s)})});return[i,l]}var an=Le.createContext(null),Gr=["component"],Vr=["className"],Ur=["className"],qr=function(t,a){var n=r.useContext(an);if(!n){var i=t.component,o=i===void 0?"div":i,l=ye(t,Gr);return r.createElement(o,Z({},l,{ref:a}))}var s=n.className,c=ye(n,Vr),u=t.className,f=ye(t,Ur);return r.createElement(an.Provider,{value:null},r.createElement(Rt,Z({ref:a,className:A(s,u)},c,f)))},$a=r.forwardRef(qr);$a.displayName="RawItem";var Xr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],xa="responsive",wa="invalidate";function Yr(e){return"+ ".concat(e.length," ...")}function Qr(e,t){var a=e.prefixCls,n=a===void 0?"rc-overflow":a,i=e.data,o=i===void 0?[]:i,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,f=u===void 0?10:u,d=e.ssr,v=e.style,h=e.className,C=e.maxCount,x=e.renderRest,m=e.renderRawRest,b=e.prefix,g=e.suffix,y=e.component,w=y===void 0?"div":y,E=e.itemComponent,p=e.onVisibleChange,D=ye(e,Xr),$=d==="full",_=Fr(),O=$t(_,null),S=L(O,2),M=S[0],R=S[1],P=M||0,V=$t(_,new Map),H=L(V,2),B=H[0],te=H[1],K=$t(_,0),N=L(K,2),re=N[0],ve=N[1],z=$t(_,0),k=L(z,2),F=k[0],ne=k[1],q=$t(_,0),Q=L(q,2),W=Q[0],me=Q[1],de=$t(_,0),Me=L(de,2),xe=Me[0],U=Me[1],Ce=r.useState(null),Re=L(Ce,2),Oe=Re[0],ze=Re[1],Xe=r.useState(null),ie=L(Xe,2),ae=ie[0],Ne=ie[1],fe=r.useMemo(function(){return ae===null&&$?Number.MAX_SAFE_INTEGER:ae||0},[ae,M]),ot=r.useState(!1),Je=L(ot,2),Ie=Je[0],lt=Je[1],_e="".concat(n,"-item"),Se=Math.max(re,F),Ae=C===xa,ge=o.length&&Ae,Ye=C===wa,Fe=ge||typeof C=="number"&&o.length>C,se=r.useMemo(function(){var j=o;return ge?M===null&&$?j=o:j=o.slice(0,Math.min(o.length,P/f)):typeof C=="number"&&(j=o.slice(0,C)),j},[o,f,M,C,ge]),we=r.useMemo(function(){return ge?o.slice(fe+1):o.slice(se.length)},[o,se,ge,fe]),be=r.useCallback(function(j,ee){var pe;return typeof c=="function"?c(j):(pe=c&&j?.[c])!==null&&pe!==void 0?pe:ee},[c]),ut=r.useCallback(l||function(j){return j},[l]);function Ze(j,ee,pe){ae===j&&(ee===void 0||ee===Oe)||(Ne(j),pe||(lt(j<o.length-1),p?.(j)),ee!==void 0&&ze(ee))}function bt(j,ee){R(ee.clientWidth)}function pt(j,ee){te(function(pe){var Ee=new Map(pe);return ee===null?Ee.delete(j):Ee.set(j,ee),Ee})}function dt(j,ee){ne(ee),ve(F)}function ht(j,ee){me(ee)}function yt(j,ee){U(ee)}function Ge(j){return B.get(be(se[j],j))}Ya(function(){if(P&&typeof Se=="number"&&se){var j=W+xe,ee=se.length,pe=ee-1;if(!ee){Ze(0,null);return}for(var Ee=0;Ee<ee;Ee+=1){var je=Ge(Ee);if($&&(je=je||0),je===void 0){Ze(Ee-1,void 0,!0);break}if(j+=je,pe===0&&j<=P||Ee===pe-1&&j+Ge(pe)<=P){Ze(pe,null);break}else if(j+Se>P){Ze(Ee-1,j-je-xe+F);break}}g&&Ge(0)+xe>P&&ze(null)}},[P,B,F,W,xe,be,se]);var De=Ie&&!!we.length,Ve={};Oe!==null&&ge&&(Ve={position:"absolute",left:Oe,top:0});var Qe={prefixCls:_e,responsive:ge,component:E,invalidate:Ye},ft=s?function(j,ee){var pe=be(j,ee);return r.createElement(an.Provider,{key:pe,value:Y(Y({},Qe),{},{order:ee,item:j,itemKey:pe,registerSize:pt,display:ee<=fe})},s(j,ee))}:function(j,ee){var pe=be(j,ee);return r.createElement(Rt,Z({},Qe,{order:ee,key:pe,item:j,renderItem:ut,itemKey:pe,registerSize:pt,display:ee<=fe}))},Ke={order:De?fe:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:dt,display:De},st=x||Yr,ke=m?r.createElement(an.Provider,{value:Y(Y({},Qe),Ke)},m(we)):r.createElement(Rt,Z({},Qe,Ke),typeof st=="function"?st(we):st),We=r.createElement(w,Z({className:A(!Ye&&n,h),style:v,ref:t},D),b&&r.createElement(Rt,Z({},Qe,{responsive:Ae,responsiveDisabled:!ge,order:-1,className:"".concat(_e,"-prefix"),registerSize:ht,display:!0}),b),se.map(ft),Fe?ke:null,g&&r.createElement(Rt,Z({},Qe,{responsive:Ae,responsiveDisabled:!ge,order:fe,className:"".concat(_e,"-suffix"),registerSize:yt,display:!0,style:Ve}),g));return Ae?r.createElement(jt,{onResize:bt,disabled:!ge},We):We}var nt=r.forwardRef(Qr);nt.displayName="Overflow";nt.Item=$a;nt.RESPONSIVE=xa;nt.INVALIDATE=wa;var Jr=$e.ESC,Zr=$e.TAB;function ei(e){var t=e.visible,a=e.triggerRef,n=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,l=r.useRef(!1),s=function(){if(t){var d,v;(d=a.current)===null||d===void 0||(v=d.focus)===null||v===void 0||v.call(d),n?.(!1)}},c=function(){var d;return(d=o.current)!==null&&d!==void 0&&d.focus?(o.current.focus(),l.current=!0,!0):!1},u=function(d){switch(d.keyCode){case Jr:s();break;case Zr:{var v=!1;l.current||(v=c()),v?d.preventDefault():s();break}}};r.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&tt(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}var ti=r.forwardRef(function(e,t){var a=e.overlay,n=e.arrow,i=e.prefixCls,o=r.useMemo(function(){var s;return typeof a=="function"?s=a():s=a,s},[a]),l=da(t,fa(o));return Le.createElement(Le.Fragment,null,n&&Le.createElement("div",{className:"".concat(i,"-arrow")}),Le.cloneElement(o,{ref:va(o)?l:void 0}))}),xt={adjustX:1,adjustY:1},wt=[0,0],ni={topLeft:{points:["bl","tl"],overflow:xt,offset:[0,-4],targetOffset:wt},top:{points:["bc","tc"],overflow:xt,offset:[0,-4],targetOffset:wt},topRight:{points:["br","tr"],overflow:xt,offset:[0,-4],targetOffset:wt},bottomLeft:{points:["tl","bl"],overflow:xt,offset:[0,4],targetOffset:wt},bottom:{points:["tc","bc"],overflow:xt,offset:[0,4],targetOffset:wt},bottomRight:{points:["tr","br"],overflow:xt,offset:[0,4],targetOffset:wt}},ai=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ri(e,t){var a,n=e.arrow,i=n===void 0?!1:n,o=e.prefixCls,l=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,f=e.placement,d=f===void 0?"bottomLeft":f,v=e.placements,h=v===void 0?ni:v,C=e.getPopupContainer,x=e.showAction,m=e.hideAction,b=e.overlayClassName,g=e.overlayStyle,y=e.visible,w=e.trigger,E=w===void 0?["hover"]:w,p=e.autoFocus,D=e.overlay,$=e.children,_=e.onVisibleChange,O=ye(e,ai),S=Le.useState(),M=L(S,2),R=M[0],P=M[1],V="visible"in e?y:R,H=Le.useRef(null),B=Le.useRef(null),te=Le.useRef(null);Le.useImperativeHandle(t,function(){return H.current});var K=function(Q){P(Q),_?.(Q)};ei({visible:V,triggerRef:te,onVisibleChange:K,autoFocus:p,overlayRef:B});var N=function(Q){var W=e.onOverlayClick;P(!1),W&&W(Q)},re=function(){return Le.createElement(ti,{ref:B,overlay:D,prefixCls:l,arrow:i})},ve=function(){return typeof D=="function"?re:re()},z=function(){var Q=e.minOverlayWidthMatchTrigger,W=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!W},k=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(l,"-open")},F=Le.cloneElement($,{className:A((a=$.props)===null||a===void 0?void 0:a.className,V&&k()),ref:va($)?da(te,fa($)):void 0}),ne=m;return!ne&&E.indexOf("contextMenu")!==-1&&(ne=["click"]),Le.createElement(Ca,Z({builtinPlacements:h},O,{prefixCls:l,ref:H,popupClassName:A(b,G({},"".concat(l,"-show-arrow"),i)),popupStyle:g,action:E,showAction:x,hideAction:ne,popupPlacement:d,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:V,stretch:z()?"minWidth":"",popup:ve(),onPopupVisibleChange:K,onPopupClick:N,getPopupContainer:C}),F)}const ii=Le.forwardRef(ri);var Ea=r.createContext(null);function Ra(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Ia(e){var t=r.useContext(Ea);return Ra(t,e)}var oi=["children","locked"],qe=r.createContext(null);function li(e,t){var a=Y({},e);return Object.keys(t).forEach(function(n){var i=t[n];i!==void 0&&(a[n]=i)}),a}function Bt(e){var t=e.children,a=e.locked,n=ye(e,oi),i=r.useContext(qe),o=Qa(function(){return li(i,n)},[i,n],function(l,s){return!a&&(l[0]!==s[0]||!ma(l[1],s[1],!0))});return r.createElement(qe.Provider,{value:o},t)}var si=[],_a=r.createContext(null);function cn(){return r.useContext(_a)}var Pa=r.createContext(si);function Wt(e){var t=r.useContext(Pa);return r.useMemo(function(){return e!==void 0?[].concat(at(t),[e]):t},[t,e])}var Ma=r.createContext(null),An=r.createContext({});function Un(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ja(e)){var a=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(a)||e.isContentEditable||a==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),l=null;return i&&!Number.isNaN(o)?l=o:n&&l===null&&(l=0),n&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function ci(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=at(e.querySelectorAll("*")).filter(function(n){return Un(n,t)});return Un(e,t)&&a.unshift(e),a}var wn=$e.LEFT,En=$e.RIGHT,Rn=$e.UP,en=$e.DOWN,tn=$e.ENTER,Oa=$e.ESC,Dt=$e.HOME,Kt=$e.END,qn=[Rn,en,wn,En];function ui(e,t,a,n){var i,o="prev",l="next",s="children",c="parent";if(e==="inline"&&n===tn)return{inlineTrigger:!0};var u=G(G({},Rn,o),en,l),f=G(G(G(G({},wn,a?l:o),En,a?o:l),en,s),tn,s),d=G(G(G(G(G(G({},Rn,o),en,l),tn,s),Oa,c),wn,a?s:c),En,a?c:s),v={inline:u,horizontal:f,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d},h=(i=v["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[n];switch(h){case o:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function di(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function fi(e,t){for(var a=e||document.activeElement;a;){if(t.has(a))return a;a=a.parentElement}return null}function Dn(e,t){var a=ci(e,!0);return a.filter(function(n){return t.has(n)})}function Xn(e,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Dn(e,t),o=i.length,l=i.findIndex(function(s){return a===s});return n<0?l===-1?l=o-1:l-=1:n>0&&(l+=1),l=(l+o)%o,i[l]}var In=function(t,a){var n=new Set,i=new Map,o=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(Ra(a,l),"']"));s&&(n.add(s),o.set(s,l),i.set(l,s))}),{elements:n,key2element:i,element2key:o}};function vi(e,t,a,n,i,o,l,s,c,u){var f=r.useRef(),d=r.useRef();d.current=t;var v=function(){tt.cancel(f.current)};return r.useEffect(function(){return function(){v()}},[]),function(h){var C=h.which;if([].concat(qn,[tn,Oa,Dt,Kt]).includes(C)){var x=o(),m=In(x,n),b=m,g=b.elements,y=b.key2element,w=b.element2key,E=y.get(t),p=fi(E,g),D=w.get(p),$=ui(e,l(D,!0).length===1,a,C);if(!$&&C!==Dt&&C!==Kt)return;(qn.includes(C)||[Dt,Kt].includes(C))&&h.preventDefault();var _=function(B){if(B){var te=B,K=B.querySelector("a");K!=null&&K.getAttribute("href")&&(te=K);var N=w.get(B);s(N),v(),f.current=tt(function(){d.current===N&&te.focus()})}};if([Dt,Kt].includes(C)||$.sibling||!p){var O;!p||e==="inline"?O=i.current:O=di(p);var S,M=Dn(O,g);C===Dt?S=M[0]:C===Kt?S=M[M.length-1]:S=Xn(O,g,p,$.offset),_(S)}else if($.inlineTrigger)c(D);else if($.offset>0)c(D,!0),v(),f.current=tt(function(){m=In(x,n);var H=p.getAttribute("aria-controls"),B=document.getElementById(H),te=Xn(B,m.elements);_(te)},5);else if($.offset<0){var R=l(D,!0),P=R[R.length-2],V=y.get(P);c(P,!1),_(V)}}u?.(h)}}function mi(e){Promise.resolve().then(e)}var Kn="__RC_UTIL_PATH_SPLIT__",Yn=function(t){return t.join(Kn)},gi=function(t){return t.split(Kn)},_n="rc-menu-more";function bi(){var e=r.useState({}),t=L(e,2),a=t[1],n=r.useRef(new Map),i=r.useRef(new Map),o=r.useState([]),l=L(o,2),s=l[0],c=l[1],u=r.useRef(0),f=r.useRef(!1),d=function(){f.current||a({})},v=r.useCallback(function(y,w){var E=Yn(w);i.current.set(E,y),n.current.set(y,E),u.current+=1;var p=u.current;mi(function(){p===u.current&&d()})},[]),h=r.useCallback(function(y,w){var E=Yn(w);i.current.delete(E),n.current.delete(y)},[]),C=r.useCallback(function(y){c(y)},[]),x=r.useCallback(function(y,w){var E=n.current.get(y)||"",p=gi(E);return w&&s.includes(p[0])&&p.unshift(_n),p},[s]),m=r.useCallback(function(y,w){return y.filter(function(E){return E!==void 0}).some(function(E){var p=x(E,!0);return p.includes(w)})},[x]),b=function(){var w=at(n.current.keys());return s.length&&w.push(_n),w},g=r.useCallback(function(y){var w="".concat(n.current.get(y)).concat(Kn),E=new Set;return at(i.current.keys()).forEach(function(p){p.startsWith(w)&&E.add(i.current.get(p))}),E},[]);return r.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:v,unregisterPath:h,refreshOverflowKeys:C,isSubPathKey:m,getKeyPath:x,getKeys:b,getSubPathKeys:g}}function kt(e){var t=r.useRef(e);t.current=e;var a=r.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?a:void 0}var pi=Math.random().toFixed(5).toString().slice(2),Qn=0;function hi(e){var t=It(e,{value:e}),a=L(t,2),n=a[0],i=a[1];return r.useEffect(function(){Qn+=1;var o="".concat(pi,"-").concat(Qn);i("rc-menu-uuid-".concat(o))},[]),n}function Na(e,t,a,n){var i=r.useContext(qe),o=i.activeKey,l=i.onActive,s=i.onInactive,c={active:o===e};return t||(c.onMouseEnter=function(u){a?.({key:e,domEvent:u}),l(e)},c.onMouseLeave=function(u){n?.({key:e,domEvent:u}),s(e)}),c}function Ta(e){var t=r.useContext(qe),a=t.mode,n=t.rtl,i=t.inlineIndent;if(a!=="inline")return null;var o=e;return n?{paddingRight:o*i}:{paddingLeft:o*i}}function La(e){var t=e.icon,a=e.props,n=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=r.createElement(t,Y({},a)):typeof t!="boolean"&&(i=t),i||n||null)}var yi=["item"];function rn(e){var t=e.item,a=ye(e,yi);return Object.defineProperty(a,"item",{get:function(){return ga(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),a}var Ci=["title","attribute","elementRef"],Si=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],$i=["active"],xi=(function(e){Za(a,e);var t=er(a);function a(){return tr(this,a),t.apply(this,arguments)}return nr(a,[{key:"render",value:function(){var i=this.props,o=i.title,l=i.attribute,s=i.elementRef,c=ye(i,Ci),u=gt(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ga(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(nt.Item,Z({},l,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),a})(r.Component),wi=r.forwardRef(function(e,t){var a=e.style,n=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,f=e.onMouseLeave,d=e.onClick,v=e.onKeyDown,h=e.onFocus,C=ye(e,Si),x=Ia(i),m=r.useContext(qe),b=m.prefixCls,g=m.onItemClick,y=m.disabled,w=m.overflowDisabled,E=m.itemIcon,p=m.selectedKeys,D=m.onActive,$=r.useContext(An),_=$._internalRenderMenuItem,O="".concat(b,"-item"),S=r.useRef(),M=r.useRef(),R=y||o,P=ba(t,M),V=Wt(i),H=function(W){return{key:i,keyPath:at(V).reverse(),item:S.current,domEvent:W}},B=l||E,te=Na(i,R,u,f),K=te.active,N=ye(te,$i),re=p.includes(i),ve=Ta(V.length),z=function(W){if(!R){var me=H(W);d?.(rn(me)),g(me)}},k=function(W){if(v?.(W),W.which===$e.ENTER){var me=H(W);d?.(rn(me)),g(me)}},F=function(W){D(i),h?.(W)},ne={};e.role==="option"&&(ne["aria-selected"]=re);var q=r.createElement(xi,Z({ref:S,elementRef:P,role:c===null?"none":c||"menuitem",tabIndex:o?null:-1,"data-menu-id":w&&x?null:x},gt(C,["extra"]),N,ne,{component:"li","aria-disabled":o,style:Y(Y({},ve),a),className:A(O,G(G(G({},"".concat(O,"-active"),K),"".concat(O,"-selected"),re),"".concat(O,"-disabled"),R),n),onClick:z,onKeyDown:k,onFocus:F}),s,r.createElement(La,{props:Y(Y({},e),{},{isSelected:re}),icon:B}));return _&&(q=_(q,e,{selected:re})),q});function Ei(e,t){var a=e.eventKey,n=cn(),i=Wt(a);return r.useEffect(function(){if(n)return n.registerPath(a,i),function(){n.unregisterPath(a,i)}},[i]),n?null:r.createElement(wi,Z({},e,{ref:t}))}const un=r.forwardRef(Ei);var Ri=["className","children"],Ii=function(t,a){var n=t.className,i=t.children,o=ye(t,Ri),l=r.useContext(qe),s=l.prefixCls,c=l.mode,u=l.rtl;return r.createElement("ul",Z({className:A(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:a}),i)},kn=r.forwardRef(Ii);kn.displayName="SubMenuList";function jn(e,t){return Sa(e).map(function(a,n){if(r.isValidElement(a)){var i,o,l=a.key,s=(i=(o=a.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:l,c=s==null;c&&(s="tmp_key-".concat([].concat(at(t),[n]).join("-")));var u={key:s,eventKey:s};return r.cloneElement(a,u)}return a})}var Te={adjustX:1,adjustY:1},_i={topLeft:{points:["bl","tl"],overflow:Te},topRight:{points:["br","tr"],overflow:Te},bottomLeft:{points:["tl","bl"],overflow:Te},bottomRight:{points:["tr","br"],overflow:Te},leftTop:{points:["tr","tl"],overflow:Te},leftBottom:{points:["br","bl"],overflow:Te},rightTop:{points:["tl","tr"],overflow:Te},rightBottom:{points:["bl","br"],overflow:Te}},Pi={topLeft:{points:["bl","tl"],overflow:Te},topRight:{points:["br","tr"],overflow:Te},bottomLeft:{points:["tl","bl"],overflow:Te},bottomRight:{points:["tr","br"],overflow:Te},rightTop:{points:["tr","tl"],overflow:Te},rightBottom:{points:["br","bl"],overflow:Te},leftTop:{points:["tl","tr"],overflow:Te},leftBottom:{points:["bl","br"],overflow:Te}};function za(e,t,a){if(t)return t;if(a)return a[e]||a.other}var Mi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Oi(e){var t=e.prefixCls,a=e.visible,n=e.children,i=e.popup,o=e.popupStyle,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,f=e.onVisibleChange,d=r.useContext(qe),v=d.getPopupContainer,h=d.rtl,C=d.subMenuOpenDelay,x=d.subMenuCloseDelay,m=d.builtinPlacements,b=d.triggerSubMenuAction,g=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,E=d.defaultMotions,p=r.useState(!1),D=L(p,2),$=D[0],_=D[1],O=h?Y(Y({},Pi),m):Y(Y({},_i),m),S=Mi[u],M=za(u,w,E),R=r.useRef(M);u!=="inline"&&(R.current=M);var P=Y(Y({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=r.useRef();return r.useEffect(function(){return V.current=tt(function(){_(a)}),function(){tt.cancel(V.current)}},[a]),r.createElement(Ca,{prefixCls:t,popupClassName:A("".concat(t,"-popup"),G({},"".concat(t,"-rtl"),h),l,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:O,popupPlacement:S,popupVisible:$,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:C,mouseLeaveDelay:x,onPopupVisibleChange:f,forceRender:g,popupMotion:P,fresh:!0},n)}function Ni(e){var t=e.id,a=e.open,n=e.keyPath,i=e.children,o="inline",l=r.useContext(qe),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,f=l.defaultMotions,d=l.mode,v=r.useRef(!1);v.current=d===o;var h=r.useState(!v.current),C=L(h,2),x=C[0],m=C[1],b=v.current?a:!1;r.useEffect(function(){v.current&&m(!1)},[d]);var g=Y({},za(o,u,f));n.length>1&&(g.motionAppear=!1);var y=g.onVisibleChanged;return g.onVisibleChanged=function(w){return!v.current&&!w&&m(!0),y?.(w)},x?null:r.createElement(Bt,{mode:o,locked:!v.current},r.createElement(pa,Z({visible:b},g,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var E=w.className,p=w.style;return r.createElement(kn,{id:t,className:E,style:p},i)}))}var Ti=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Li=["active"],zi=r.forwardRef(function(e,t){var a=e.style,n=e.className,i=e.title,o=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,f=e.expandIcon,d=e.popupClassName,v=e.popupOffset,h=e.popupStyle,C=e.onClick,x=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,g=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=ye(e,Ti),E=Ia(o),p=r.useContext(qe),D=p.prefixCls,$=p.mode,_=p.openKeys,O=p.disabled,S=p.overflowDisabled,M=p.activeKey,R=p.selectedKeys,P=p.itemIcon,V=p.expandIcon,H=p.onItemClick,B=p.onOpenChange,te=p.onActive,K=r.useContext(An),N=K._internalRenderSubMenuItem,re=r.useContext(Ma),ve=re.isSubPathKey,z=Wt(),k="".concat(D,"-submenu"),F=O||l,ne=r.useRef(),q=r.useRef(),Q=u??P,W=f??V,me=_.includes(o),de=!S&&me,Me=ve(R,o),xe=Na(o,F,g,y),U=xe.active,Ce=ye(xe,Li),Re=r.useState(!1),Oe=L(Re,2),ze=Oe[0],Xe=Oe[1],ie=function(be){F||Xe(be)},ae=function(be){ie(!0),x?.({key:o,domEvent:be})},Ne=function(be){ie(!1),m?.({key:o,domEvent:be})},fe=r.useMemo(function(){return U||($!=="inline"?ze||ve([M],o):!1)},[$,U,M,ze,o,ve]),ot=Ta(z.length),Je=function(be){F||(b?.({key:o,domEvent:be}),$==="inline"&&B(o,!me))},Ie=kt(function(we){C?.(rn(we)),H(we)}),lt=function(be){$!=="inline"&&B(o,be)},_e=function(){te(o)},Se=E&&"".concat(E,"-popup"),Ae=r.useMemo(function(){return r.createElement(La,{icon:$!=="horizontal"?W:void 0,props:Y(Y({},e),{},{isOpen:de,isSubMenu:!0})},r.createElement("i",{className:"".concat(k,"-arrow")}))},[$,W,e,de,k]),ge=r.createElement("div",Z({role:"menuitem",style:ot,className:"".concat(k,"-title"),tabIndex:F?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":S&&E?null:E,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":F,onClick:Je,onFocus:_e},Ce),i,Ae),Ye=r.useRef($);if($!=="inline"&&z.length>1?Ye.current="vertical":Ye.current=$,!S){var Fe=Ye.current;ge=r.createElement(Oi,{mode:Fe,prefixCls:k,visible:!s&&de&&$!=="inline",popupClassName:d,popupOffset:v,popupStyle:h,popup:r.createElement(Bt,{mode:Fe==="horizontal"?"vertical":Fe},r.createElement(kn,{id:Se,ref:q},c)),disabled:F,onVisibleChange:lt},ge)}var se=r.createElement(nt.Item,Z({ref:t,role:"none"},w,{component:"li",style:a,className:A(k,"".concat(k,"-").concat($),n,G(G(G(G({},"".concat(k,"-open"),de),"".concat(k,"-active"),fe),"".concat(k,"-selected"),Me),"".concat(k,"-disabled"),F)),onMouseEnter:ae,onMouseLeave:Ne}),ge,!S&&r.createElement(Ni,{id:Se,open:de,keyPath:z},c));return N&&(se=N(se,e,{selected:Me,active:fe,open:de,disabled:F})),r.createElement(Bt,{onItemClick:Ie,mode:$==="horizontal"?"vertical":$,itemIcon:Q,expandIcon:W},se)}),Bn=r.forwardRef(function(e,t){var a=e.eventKey,n=e.children,i=Wt(a),o=jn(n,i),l=cn();r.useEffect(function(){if(l)return l.registerPath(a,i),function(){l.unregisterPath(a,i)}},[i]);var s;return l?s=o:s=r.createElement(zi,Z({ref:t},e),o),r.createElement(Pa.Provider,{value:i},s)});function Aa(e){var t=e.className,a=e.style,n=r.useContext(qe),i=n.prefixCls,o=cn();return o?null:r.createElement("li",{role:"separator",className:A("".concat(i,"-item-divider"),t),style:a})}var Ai=["className","title","eventKey","children"],Di=r.forwardRef(function(e,t){var a=e.className,n=e.title;e.eventKey;var i=e.children,o=ye(e,Ai),l=r.useContext(qe),s=l.prefixCls,c="".concat(s,"-item-group");return r.createElement("li",Z({ref:t,role:"presentation"},o,{onClick:function(f){return f.stopPropagation()},className:A(c,a)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof n=="string"?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}),Da=r.forwardRef(function(e,t){var a=e.eventKey,n=e.children,i=Wt(a),o=jn(n,i),l=cn();return l?o:r.createElement(Di,Z({ref:t},gt(e,["warnKey"])),o)}),Ki=["label","children","key","type","extra"];function Pn(e,t,a){var n=t.item,i=t.group,o=t.submenu,l=t.divider;return(e||[]).map(function(s,c){if(s&&on(s)==="object"){var u=s,f=u.label,d=u.children,v=u.key,h=u.type,C=u.extra,x=ye(u,Ki),m=v??"tmp-".concat(c);return d||h==="group"?h==="group"?r.createElement(i,Z({key:m},x,{title:f}),Pn(d,t,a)):r.createElement(o,Z({key:m},x,{title:f}),Pn(d,t,a)):h==="divider"?r.createElement(l,Z({key:m},x)):r.createElement(n,Z({key:m},x,{extra:C}),f,(!!C||C===0)&&r.createElement("span",{className:"".concat(a,"-item-extra")},C))}return null}).filter(function(s){return s})}function Jn(e,t,a,n,i){var o=e,l=Y({divider:Aa,item:un,group:Da,submenu:Bn},n);return t&&(o=Pn(t,l,i)),jn(o,a)}var ki=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],mt=[],ji=r.forwardRef(function(e,t){var a,n=e,i=n.prefixCls,o=i===void 0?"rc-menu":i,l=n.rootClassName,s=n.style,c=n.className,u=n.tabIndex,f=u===void 0?0:u,d=n.items,v=n.children,h=n.direction,C=n.id,x=n.mode,m=x===void 0?"vertical":x,b=n.inlineCollapsed,g=n.disabled,y=n.disabledOverflow,w=n.subMenuOpenDelay,E=w===void 0?.1:w,p=n.subMenuCloseDelay,D=p===void 0?.1:p,$=n.forceSubMenuRender,_=n.defaultOpenKeys,O=n.openKeys,S=n.activeKey,M=n.defaultActiveFirst,R=n.selectable,P=R===void 0?!0:R,V=n.multiple,H=V===void 0?!1:V,B=n.defaultSelectedKeys,te=n.selectedKeys,K=n.onSelect,N=n.onDeselect,re=n.inlineIndent,ve=re===void 0?24:re,z=n.motion,k=n.defaultMotions,F=n.triggerSubMenuAction,ne=F===void 0?"hover":F,q=n.builtinPlacements,Q=n.itemIcon,W=n.expandIcon,me=n.overflowedIndicator,de=me===void 0?"...":me,Me=n.overflowedIndicatorPopupClassName,xe=n.getPopupContainer,U=n.onClick,Ce=n.onOpenChange,Re=n.onKeyDown;n.openAnimation,n.openTransitionName;var Oe=n._internalRenderMenuItem,ze=n._internalRenderSubMenuItem,Xe=n._internalComponents,ie=ye(n,ki),ae=r.useMemo(function(){return[Jn(v,d,mt,Xe,o),Jn(v,d,mt,{},o)]},[v,d,Xe]),Ne=L(ae,2),fe=Ne[0],ot=Ne[1],Je=r.useState(!1),Ie=L(Je,2),lt=Ie[0],_e=Ie[1],Se=r.useRef(),Ae=hi(C),ge=h==="rtl",Ye=It(_,{value:O,postState:function(oe){return oe||mt}}),Fe=L(Ye,2),se=Fe[0],we=Fe[1],be=function(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Be(){we(oe),Ce?.(oe)}ue?ua.flushSync(Be):Be()},ut=r.useState(se),Ze=L(ut,2),bt=Ze[0],pt=Ze[1],dt=r.useRef(!1),ht=r.useMemo(function(){return(m==="inline"||m==="vertical")&&b?["vertical",b]:[m,!1]},[m,b]),yt=L(ht,2),Ge=yt[0],De=yt[1],Ve=Ge==="inline",Qe=r.useState(Ge),ft=L(Qe,2),Ke=ft[0],st=ft[1],ke=r.useState(De),We=L(ke,2),j=We[0],ee=We[1];r.useEffect(function(){st(Ge),ee(De),dt.current&&(Ve?we(bt):be(mt))},[Ge,De]);var pe=r.useState(0),Ee=L(pe,2),je=Ee[0],Gt=Ee[1],ct=je>=fe.length-1||Ke!=="horizontal"||y;r.useEffect(function(){Ve&&pt(se)},[se]),r.useEffect(function(){return dt.current=!0,function(){dt.current=!1}},[]);var et=bi(),Vt=et.registerPath,Ot=et.unregisterPath,Ut=et.refreshOverflowKeys,qt=et.isSubPathKey,fn=et.getKeyPath,Nt=et.getKeys,vt=et.getSubPathKeys,Tt=r.useMemo(function(){return{registerPath:Vt,unregisterPath:Ot}},[Vt,Ot]),Lt=r.useMemo(function(){return{isSubPathKey:qt}},[qt]);r.useEffect(function(){Ut(ct?mt:fe.slice(je+1).map(function(he){return he.key}))},[je,ct]);var Xt=It(S||M&&((a=fe[0])===null||a===void 0?void 0:a.key),{value:S}),zt=L(Xt,2),X=zt[0],T=zt[1],J=kt(function(he){T(he)}),le=kt(function(){T(void 0)});r.useImperativeHandle(t,function(){return{list:Se.current,focus:function(oe){var ue,Be=Nt(),He=In(Be,Ae),Jt=He.elements,pn=He.key2element,Ua=He.element2key,Wn=Dn(Se.current,Jt),Fn=X??(Wn[0]?Ua.get(Wn[0]):(ue=fe.find(function(qa){return!qa.props.disabled}))===null||ue===void 0?void 0:ue.key),At=pn.get(Fn);if(Fn&&At){var hn;At==null||(hn=At.focus)===null||hn===void 0||hn.call(At,oe)}}}});var ce=It(B||[],{value:te,postState:function(oe){return Array.isArray(oe)?oe:oe==null?mt:[oe]}}),Pe=L(ce,2),Ue=Pe[0],Yt=Pe[1],vn=function(oe){if(P){var ue=oe.key,Be=Ue.includes(ue),He;H?Be?He=Ue.filter(function(pn){return pn!==ue}):He=[].concat(at(Ue),[ue]):He=[ue],Yt(He);var Jt=Y(Y({},oe),{},{selectedKeys:He});Be?N?.(Jt):K?.(Jt)}!H&&se.length&&Ke!=="inline"&&be(mt)},Ct=kt(function(he){U?.(rn(he)),vn(he)}),Qt=kt(function(he,oe){var ue=se.filter(function(He){return He!==he});if(oe)ue.push(he);else if(Ke!=="inline"){var Be=vt(he);ue=ue.filter(function(He){return!Be.has(He)})}ma(se,ue,!0)||be(ue,!0)}),mn=function(oe,ue){var Be=ue??!se.includes(oe);Qt(oe,Be)},gn=vi(Ke,X,ge,Ae,Se,Nt,fn,T,mn,Re);r.useEffect(function(){_e(!0)},[]);var bn=r.useMemo(function(){return{_internalRenderMenuItem:Oe,_internalRenderSubMenuItem:ze}},[Oe,ze]),Ga=Ke!=="horizontal"||y?fe:fe.map(function(he,oe){return r.createElement(Bt,{key:he.key,overflowDisabled:oe>je},he)}),Va=r.createElement(nt,Z({id:C,ref:Se,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:un,className:A(o,"".concat(o,"-root"),"".concat(o,"-").concat(Ke),c,G(G({},"".concat(o,"-inline-collapsed"),j),"".concat(o,"-rtl"),ge),l),dir:h,style:s,role:"menu",tabIndex:f,data:Ga,renderRawItem:function(oe){return oe},renderRawRest:function(oe){var ue=oe.length,Be=ue?fe.slice(-ue):null;return r.createElement(Bn,{eventKey:_n,title:de,disabled:ct,internalPopupClose:ue===0,popupClassName:Me},Be)},maxCount:Ke!=="horizontal"||y?nt.INVALIDATE:nt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(oe){Gt(oe)},onKeyDown:gn},ie));return r.createElement(An.Provider,{value:bn},r.createElement(Ea.Provider,{value:Ae},r.createElement(Bt,{prefixCls:o,rootClassName:l,mode:Ke,openKeys:se,rtl:ge,disabled:g,motion:lt?z:null,defaultMotions:lt?k:null,activeKey:X,onActive:J,onInactive:le,selectedKeys:Ue,inlineIndent:ve,subMenuOpenDelay:E,subMenuCloseDelay:D,forceSubMenuRender:$,builtinPlacements:q,triggerSubMenuAction:ne,getPopupContainer:xe,itemIcon:Q,expandIcon:W,onItemClick:Ct,onOpenChange:Qt},r.createElement(Ma.Provider,{value:Lt},Va),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(_a.Provider,{value:Tt},ot)))))}),Ft=ji;Ft.Item=un;Ft.SubMenu=Bn;Ft.ItemGroup=Da;Ft.Divider=Aa;var Bi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Hi=function(t,a){return r.createElement(Mn,Z({},t,{ref:a,icon:Bi}))},Wi=r.forwardRef(Hi),Fi={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"},Gi=function(t,a){return r.createElement(Mn,Z({},t,{ref:a,icon:Fi}))},Vi=r.forwardRef(Gi);const dn=r.createContext(null);var Ui=function(t){var a=t.activeTabOffset,n=t.horizontal,i=t.rtl,o=t.indicator,l=o===void 0?{}:o,s=l.size,c=l.align,u=c===void 0?"center":c,f=r.useState(),d=L(f,2),v=d[0],h=d[1],C=r.useRef(),x=Le.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function m(){tt.cancel(C.current)}return r.useEffect(function(){var b={};if(a)if(n){b.width=x(a.width);var g=i?"right":"left";u==="start"&&(b[g]=a[g]),u==="center"&&(b[g]=a[g]+a.width/2,b.transform=i?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[g]=a[g]+a.width,b.transform="translateX(-100%)")}else b.height=x(a.height),u==="start"&&(b.top=a.top),u==="center"&&(b.top=a.top+a.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=a.top+a.height,b.transform="translateY(-100%)");return m(),C.current=tt(function(){var y=v&&b&&Object.keys(b).every(function(w){var E=b[w],p=v[w];return typeof E=="number"&&typeof p=="number"?Math.round(E)===Math.round(p):E===p});y||h(b)}),m},[JSON.stringify(a),n,i,u,x]),{style:v}},Zn={width:0,height:0,left:0,top:0};function qi(e,t,a){return r.useMemo(function(){for(var n,i=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||Zn,l=o.left+o.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var f;u=t.get((f=e[s-1])===null||f===void 0?void 0:f.key)||Zn}var d=i.get(c)||Y({},u);d.right=l-d.left-d.width,i.set(c,d)}return i},[e.map(function(n){return n.key}).join("_"),t,a])}function ea(e,t){var a=r.useRef(e),n=r.useState({}),i=L(n,2),o=i[1];function l(s){var c=typeof s=="function"?s(a.current):s;c!==a.current&&t(c,a.current),a.current=c,o({})}return[a.current,l]}var Xi=.1,ta=.01,nn=20,na=Math.pow(.995,nn);function Yi(e,t){var a=r.useState(),n=L(a,2),i=n[0],o=n[1],l=r.useState(0),s=L(l,2),c=s[0],u=s[1],f=r.useState(0),d=L(f,2),v=d[0],h=d[1],C=r.useState(),x=L(C,2),m=x[0],b=x[1],g=r.useRef();function y(_){var O=_.touches[0],S=O.screenX,M=O.screenY;o({x:S,y:M}),window.clearInterval(g.current)}function w(_){if(i){var O=_.touches[0],S=O.screenX,M=O.screenY;o({x:S,y:M});var R=S-i.x,P=M-i.y;t(R,P);var V=Date.now();u(V),h(V-c),b({x:R,y:P})}}function E(){if(i&&(o(null),b(null),m)){var _=m.x/v,O=m.y/v,S=Math.abs(_),M=Math.abs(O);if(Math.max(S,M)<Xi)return;var R=_,P=O;g.current=window.setInterval(function(){if(Math.abs(R)<ta&&Math.abs(P)<ta){window.clearInterval(g.current);return}R*=na,P*=na,t(R*nn,P*nn)},nn)}}var p=r.useRef();function D(_){var O=_.deltaX,S=_.deltaY,M=0,R=Math.abs(O),P=Math.abs(S);R===P?M=p.current==="x"?O:S:R>P?(M=O,p.current="x"):(M=S,p.current="y"),t(-M,-M)&&_.preventDefault()}var $=r.useRef(null);$.current={onTouchStart:y,onTouchMove:w,onTouchEnd:E,onWheel:D},r.useEffect(function(){function _(R){$.current.onTouchStart(R)}function O(R){$.current.onTouchMove(R)}function S(R){$.current.onTouchEnd(R)}function M(R){$.current.onWheel(R)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",S,{passive:!0}),e.current.addEventListener("touchstart",_,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",S)}},[])}function Ka(e){var t=r.useState(0),a=L(t,2),n=a[0],i=a[1],o=r.useRef(0),l=r.useRef();return l.current=e,ar(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}function Qi(e){var t=r.useRef([]),a=r.useState({}),n=L(a,2),i=n[1],o=r.useRef(typeof e=="function"?e():e),l=Ka(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,i({})});function s(c){t.current.push(c),l()}return[o.current,s]}var aa={width:0,height:0,left:0,top:0,right:0};function Ji(e,t,a,n,i,o,l){var s=l.tabs,c=l.tabPosition,u=l.rtl,f,d,v;return["top","bottom"].includes(c)?(f="width",d=u?"right":"left",v=Math.abs(a)):(f="height",d="top",v=-a),r.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,C=h,x=0;x<h;x+=1){var m=e.get(s[x].key)||aa;if(Math.floor(m[d]+m[f])>Math.floor(v+t)){C=x-1;break}}for(var b=0,g=h-1;g>=0;g-=1){var y=e.get(s[g].key)||aa;if(y[d]<v){b=g+1;break}}return b>C?[0,-1]:[b,C]},[e,t,n,i,o,v,c,s.map(function(h){return h.key}).join("_"),u])}function ra(e){var t;return e instanceof Map?(t={},e.forEach(function(a,n){t[n]=a})):t=e,JSON.stringify(t)}var Zi="TABS_DQ";function ka(e){return String(e).replace(/"/g,Zi)}function Hn(e,t,a,n){return!(!a||n||e===!1||e===void 0&&(t===!1||t===null))}var ja=r.forwardRef(function(e,t){var a=e.prefixCls,n=e.editable,i=e.locale,o=e.style;return!n||n.showAdd===!1?null:r.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:o,"aria-label":i?.addAriaLabel||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),ia=r.forwardRef(function(e,t){var a=e.position,n=e.prefixCls,i=e.extra;if(!i)return null;var o,l={};return on(i)==="object"&&!r.isValidElement(i)?l=i:l.right=i,a==="right"&&(o=l.right),a==="left"&&(o=l.left),o?r.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null}),eo=r.forwardRef(function(e,t){var a=e.prefixCls,n=e.id,i=e.tabs,o=e.locale,l=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,f=e.className,d=e.editable,v=e.tabBarGutter,h=e.rtl,C=e.removeAriaLabel,x=e.onTabClick,m=e.getPopupContainer,b=e.popupClassName,g=r.useState(!1),y=L(g,2),w=y[0],E=y[1],p=r.useState(null),D=L(p,2),$=D[0],_=D[1],O=c.icon,S=O===void 0?"More":O,M="".concat(n,"-more-popup"),R="".concat(a,"-dropdown"),P=$!==null?"".concat(M,"-").concat($):null,V=o?.dropdownAriaLabel;function H(z,k){z.preventDefault(),z.stopPropagation(),d.onEdit("remove",{key:k,event:z})}var B=r.createElement(Ft,{onClick:function(k){var F=k.key,ne=k.domEvent;x(F,ne),E(!1)},prefixCls:"".concat(R,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[$],"aria-label":V!==void 0?V:"expanded dropdown"},i.map(function(z){var k=z.closable,F=z.disabled,ne=z.closeIcon,q=z.key,Q=z.label,W=Hn(k,ne,d,F);return r.createElement(un,{key:q,id:"".concat(M,"-").concat(q),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(q),disabled:F},r.createElement("span",null,Q),W&&r.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),H(de,q)}},ne||d.removeIcon||"×"))}));function te(z){for(var k=i.filter(function(W){return!W.disabled}),F=k.findIndex(function(W){return W.key===$})||0,ne=k.length,q=0;q<ne;q+=1){F=(F+z+ne)%ne;var Q=k[F];if(!Q.disabled){_(Q.key);return}}}function K(z){var k=z.which;if(!w){[$e.DOWN,$e.SPACE,$e.ENTER].includes(k)&&(E(!0),z.preventDefault());return}switch(k){case $e.UP:te(-1),z.preventDefault();break;case $e.DOWN:te(1),z.preventDefault();break;case $e.ESC:E(!1);break;case $e.SPACE:case $e.ENTER:$!==null&&x($,z);break}}r.useEffect(function(){var z=document.getElementById(P);z&&z.scrollIntoView&&z.scrollIntoView(!1)},[$]),r.useEffect(function(){w||_(null)},[w]);var N=G({},h?"marginRight":"marginLeft",v);i.length||(N.visibility="hidden",N.order=1);var re=A(G({},"".concat(R,"-rtl"),h)),ve=l?null:r.createElement(ii,Z({prefixCls:R,overlay:B,visible:i.length?w:!1,onVisibleChange:E,overlayClassName:A(re,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},c),r.createElement("button",{type:"button",className:"".concat(a,"-nav-more"),style:N,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(n,"-more"),"aria-expanded":w,onKeyDown:K},S));return r.createElement("div",{className:A("".concat(a,"-nav-operations"),f),style:u,ref:t},ve,r.createElement(ja,{prefixCls:a,locale:o,editable:d}))});const to=r.memo(eo,function(e,t){return t.tabMoving});var no=function(t){var a=t.prefixCls,n=t.id,i=t.active,o=t.focus,l=t.tab,s=l.key,c=l.label,u=l.disabled,f=l.closeIcon,d=l.icon,v=t.closable,h=t.renderWrapper,C=t.removeAriaLabel,x=t.editable,m=t.onClick,b=t.onFocus,g=t.onBlur,y=t.onKeyDown,w=t.onMouseDown,E=t.onMouseUp,p=t.style,D=t.tabCount,$=t.currentPosition,_="".concat(a,"-tab"),O=Hn(v,f,x,u);function S(H){u||m(H)}function M(H){H.preventDefault(),H.stopPropagation(),x.onEdit("remove",{key:s,event:H})}var R=r.useMemo(function(){return d&&typeof c=="string"?r.createElement("span",null,c):c},[c,d]),P=r.useRef(null);r.useEffect(function(){o&&P.current&&P.current.focus()},[o]);var V=r.createElement("div",{key:s,"data-node-key":ka(s),className:A(_,G(G(G(G({},"".concat(_,"-with-remove"),O),"".concat(_,"-active"),i),"".concat(_,"-disabled"),u),"".concat(_,"-focus"),o)),style:p,onClick:S},r.createElement("div",{ref:P,role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(s),className:"".concat(_,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:i?0:-1,onClick:function(B){B.stopPropagation(),S(B)},onKeyDown:y,onMouseDown:w,onMouseUp:E,onFocus:b,onBlur:g},o&&r.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat($," of ").concat(D)),d&&r.createElement("span",{className:"".concat(_,"-icon")},d),c&&R),O&&r.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:i?0:-1,className:"".concat(_,"-remove"),onClick:function(B){B.stopPropagation(),M(B)}},f||x.removeIcon||"×"));return h?h(V):V},ao=function(t,a){var n=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,f=s.left,d=s.top;return Math.abs(c-n)<1?[c,u,f-a.left,d-a.top]:[n,i,l,o]},Et=function(t){var a=t.current||{},n=a.offsetWidth,i=n===void 0?0:n,o=a.offsetHeight,l=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-i)<1)return[c,u]}return[i,l]},Zt=function(t,a){return t[a?0:1]},oa=r.forwardRef(function(e,t){var a=e.className,n=e.style,i=e.id,o=e.animated,l=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,f=e.locale,d=e.tabPosition,v=e.tabBarGutter,h=e.children,C=e.onTabClick,x=e.onTabScroll,m=e.indicator,b=r.useContext(dn),g=b.prefixCls,y=b.tabs,w=r.useRef(null),E=r.useRef(null),p=r.useRef(null),D=r.useRef(null),$=r.useRef(null),_=r.useRef(null),O=r.useRef(null),S=d==="top"||d==="bottom",M=ea(0,function(X,T){S&&x&&x({direction:X>T?"left":"right"})}),R=L(M,2),P=R[0],V=R[1],H=ea(0,function(X,T){!S&&x&&x({direction:X>T?"top":"bottom"})}),B=L(H,2),te=B[0],K=B[1],N=r.useState([0,0]),re=L(N,2),ve=re[0],z=re[1],k=r.useState([0,0]),F=L(k,2),ne=F[0],q=F[1],Q=r.useState([0,0]),W=L(Q,2),me=W[0],de=W[1],Me=r.useState([0,0]),xe=L(Me,2),U=xe[0],Ce=xe[1],Re=Qi(new Map),Oe=L(Re,2),ze=Oe[0],Xe=Oe[1],ie=qi(y,ze,ne[0]),ae=Zt(ve,S),Ne=Zt(ne,S),fe=Zt(me,S),ot=Zt(U,S),Je=Math.floor(ae)<Math.floor(Ne+fe),Ie=Je?ae-ot:ae-fe,lt="".concat(g,"-nav-operations-hidden"),_e=0,Se=0;S&&s?(_e=0,Se=Math.max(0,Ne-Ie)):(_e=Math.min(0,Ie-Ne),Se=0);function Ae(X){return X<_e?_e:X>Se?Se:X}var ge=r.useRef(null),Ye=r.useState(),Fe=L(Ye,2),se=Fe[0],we=Fe[1];function be(){we(Date.now())}function ut(){ge.current&&clearTimeout(ge.current)}Yi(D,function(X,T){function J(le,ce){le(function(Pe){var Ue=Ae(Pe+ce);return Ue})}return Je?(S?J(V,X):J(K,T),ut(),be(),!0):!1}),r.useEffect(function(){return ut(),se&&(ge.current=setTimeout(function(){we(0)},100)),ut},[se]);var Ze=Ji(ie,Ie,S?P:te,Ne,fe,ot,Y(Y({},e),{},{tabs:y})),bt=L(Ze,2),pt=bt[0],dt=bt[1],ht=ca(function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,T=ie.get(X)||{width:0,height:0,left:0,right:0,top:0};if(S){var J=P;s?T.right<P?J=T.right:T.right+T.width>P+Ie&&(J=T.right+T.width-Ie):T.left<-P?J=-T.left:T.left+T.width>-P+Ie&&(J=-(T.left+T.width-Ie)),K(0),V(Ae(J))}else{var le=te;T.top<-te?le=-T.top:T.top+T.height>-te+Ie&&(le=-(T.top+T.height-Ie)),V(0),K(Ae(le))}}),yt=r.useState(),Ge=L(yt,2),De=Ge[0],Ve=Ge[1],Qe=r.useState(!1),ft=L(Qe,2),Ke=ft[0],st=ft[1],ke=y.filter(function(X){return!X.disabled}).map(function(X){return X.key}),We=function(T){var J=ke.indexOf(De||l),le=ke.length,ce=(J+T+le)%le,Pe=ke[ce];Ve(Pe)},j=function(T,J){var le=ke.indexOf(T),ce=y.find(function(Ue){return Ue.key===T}),Pe=Hn(ce?.closable,ce?.closeIcon,u,ce?.disabled);Pe&&(J.preventDefault(),J.stopPropagation(),u.onEdit("remove",{key:T,event:J}),le===ke.length-1?We(-1):We(1))},ee=function(T,J){st(!0),J.button===1&&j(T,J)},pe=function(T){var J=T.code,le=s&&S,ce=ke[0],Pe=ke[ke.length-1];switch(J){case"ArrowLeft":{S&&We(le?1:-1);break}case"ArrowRight":{S&&We(le?-1:1);break}case"ArrowUp":{T.preventDefault(),S||We(-1);break}case"ArrowDown":{T.preventDefault(),S||We(1);break}case"Home":{T.preventDefault(),Ve(ce);break}case"End":{T.preventDefault(),Ve(Pe);break}case"Enter":case"Space":{T.preventDefault(),C(De??l,T);break}case"Backspace":case"Delete":{j(De,T);break}}},Ee={};S?Ee[s?"marginRight":"marginLeft"]=v:Ee.marginTop=v;var je=y.map(function(X,T){var J=X.key;return r.createElement(no,{id:i,prefixCls:g,key:J,tab:X,style:T===0?void 0:Ee,closable:X.closable,editable:u,active:J===l,focus:J===De,renderWrapper:h,removeAriaLabel:f?.removeAriaLabel,tabCount:ke.length,currentPosition:T+1,onClick:function(ce){C(J,ce)},onKeyDown:pe,onFocus:function(){Ke||Ve(J),ht(J),be(),D.current&&(s||(D.current.scrollLeft=0),D.current.scrollTop=0)},onBlur:function(){Ve(void 0)},onMouseDown:function(ce){return ee(J,ce)},onMouseUp:function(){st(!1)}})}),Gt=function(){return Xe(function(){var T,J=new Map,le=(T=$.current)===null||T===void 0?void 0:T.getBoundingClientRect();return y.forEach(function(ce){var Pe,Ue=ce.key,Yt=(Pe=$.current)===null||Pe===void 0?void 0:Pe.querySelector('[data-node-key="'.concat(ka(Ue),'"]'));if(Yt){var vn=ao(Yt,le),Ct=L(vn,4),Qt=Ct[0],mn=Ct[1],gn=Ct[2],bn=Ct[3];J.set(Ue,{width:Qt,height:mn,left:gn,top:bn})}}),J})};r.useEffect(function(){Gt()},[y.map(function(X){return X.key}).join("_")]);var ct=Ka(function(){var X=Et(w),T=Et(E),J=Et(p);z([X[0]-T[0]-J[0],X[1]-T[1]-J[1]]);var le=Et(O);de(le);var ce=Et(_);Ce(ce);var Pe=Et($);q([Pe[0]-le[0],Pe[1]-le[1]]),Gt()}),et=y.slice(0,pt),Vt=y.slice(dt+1),Ot=[].concat(at(et),at(Vt)),Ut=ie.get(l),qt=Ui({activeTabOffset:Ut,horizontal:S,indicator:m,rtl:s}),fn=qt.style;r.useEffect(function(){ht()},[l,_e,Se,ra(Ut),ra(ie),S]),r.useEffect(function(){ct()},[s]);var Nt=!!Ot.length,vt="".concat(g,"-nav-wrap"),Tt,Lt,Xt,zt;return S?s?(Lt=P>0,Tt=P!==Se):(Tt=P<0,Lt=P!==_e):(Xt=te<0,zt=te!==_e),r.createElement(jt,{onResize:ct},r.createElement("div",{ref:ba(t,w),role:"tablist","aria-orientation":S?"horizontal":"vertical",className:A("".concat(g,"-nav"),a),style:n,onKeyDown:function(){be()}},r.createElement(ia,{ref:E,position:"left",extra:c,prefixCls:g}),r.createElement(jt,{onResize:ct},r.createElement("div",{className:A(vt,G(G(G(G({},"".concat(vt,"-ping-left"),Tt),"".concat(vt,"-ping-right"),Lt),"".concat(vt,"-ping-top"),Xt),"".concat(vt,"-ping-bottom"),zt)),ref:D},r.createElement(jt,{onResize:ct},r.createElement("div",{ref:$,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(te,"px)"),transition:se?"none":void 0}},je,r.createElement(ja,{ref:O,prefixCls:g,locale:f,editable:u,style:Y(Y({},je.length===0?void 0:Ee),{},{visibility:Nt?"hidden":null})}),r.createElement("div",{className:A("".concat(g,"-ink-bar"),G({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:fn}))))),r.createElement(to,Z({},e,{removeAriaLabel:f?.removeAriaLabel,ref:_,prefixCls:g,tabs:Ot,className:!Nt&&lt,tabMoving:!!se})),r.createElement(ia,{ref:p,position:"right",extra:c,prefixCls:g})))}),Ba=r.forwardRef(function(e,t){var a=e.prefixCls,n=e.className,i=e.style,o=e.id,l=e.active,s=e.tabKey,c=e.children;return r.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!l,style:i,className:A(a,l&&"".concat(a,"-active"),n),ref:t},c)}),ro=["renderTabBar"],io=["label","key"],oo=function(t){var a=t.renderTabBar,n=ye(t,ro),i=r.useContext(dn),o=i.tabs;if(a){var l=Y(Y({},n),{},{panes:o.map(function(s){var c=s.label,u=s.key,f=ye(s,io);return r.createElement(Ba,Z({tab:c,key:u,tabKey:u},f))})});return a(l,oa)}return r.createElement(oa,n)},lo=["key","forceRender","style","className","destroyInactiveTabPane"],so=function(t){var a=t.id,n=t.activeKey,i=t.animated,o=t.tabPosition,l=t.destroyInactiveTabPane,s=r.useContext(dn),c=s.prefixCls,u=s.tabs,f=i.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:A("".concat(c,"-content-holder"))},r.createElement("div",{className:A("".concat(c,"-content"),"".concat(c,"-content-").concat(o),G({},"".concat(c,"-content-animated"),f))},u.map(function(v){var h=v.key,C=v.forceRender,x=v.style,m=v.className,b=v.destroyInactiveTabPane,g=ye(v,lo),y=h===n;return r.createElement(pa,Z({key:h,visible:y,forceRender:C,removeOnLeave:!!(l||b),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(w,E){var p=w.style,D=w.className;return r.createElement(Ba,Z({},g,{prefixCls:d,id:a,tabKey:h,animated:f,active:y,style:Y(Y({},x),p),className:A(m,D),ref:E}))})})))};function co(){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=Y({inkBar:!0},on(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var uo=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],la=0,fo=r.forwardRef(function(e,t){var a=e.id,n=e.prefixCls,i=n===void 0?"rc-tabs":n,o=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,f=e.editable,d=e.animated,v=e.tabPosition,h=v===void 0?"top":v,C=e.tabBarGutter,x=e.tabBarStyle,m=e.tabBarExtraContent,b=e.locale,g=e.more,y=e.destroyInactiveTabPane,w=e.renderTabBar,E=e.onChange,p=e.onTabClick,D=e.onTabScroll,$=e.getPopupContainer,_=e.popupClassName,O=e.indicator,S=ye(e,uo),M=r.useMemo(function(){return(l||[]).filter(function(U){return U&&on(U)==="object"&&"key"in U})},[l]),R=s==="rtl",P=co(d),V=r.useState(!1),H=L(V,2),B=H[0],te=H[1];r.useEffect(function(){te(ir())},[]);var K=It(function(){var U;return(U=M[0])===null||U===void 0?void 0:U.key},{value:c,defaultValue:u}),N=L(K,2),re=N[0],ve=N[1],z=r.useState(function(){return M.findIndex(function(U){return U.key===re})}),k=L(z,2),F=k[0],ne=k[1];r.useEffect(function(){var U=M.findIndex(function(Re){return Re.key===re});if(U===-1){var Ce;U=Math.max(0,Math.min(F,M.length-1)),ve((Ce=M[U])===null||Ce===void 0?void 0:Ce.key)}ne(U)},[M.map(function(U){return U.key}).join("_"),re,F]);var q=It(null,{value:a}),Q=L(q,2),W=Q[0],me=Q[1];r.useEffect(function(){a||(me("rc-tabs-".concat(la)),la+=1)},[]);function de(U,Ce){p?.(U,Ce);var Re=U!==re;ve(U),Re&&E?.(U)}var Me={id:W,activeKey:re,animated:P,tabPosition:h,rtl:R,mobile:B},xe=Y(Y({},Me),{},{editable:f,locale:b,more:g,tabBarGutter:C,onTabClick:de,onTabScroll:D,extra:m,style:x,panes:null,getPopupContainer:$,popupClassName:_,indicator:O});return r.createElement(dn.Provider,{value:{tabs:M,prefixCls:i}},r.createElement("div",Z({ref:t,id:a,className:A(i,"".concat(i,"-").concat(h),G(G(G({},"".concat(i,"-mobile"),B),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),R),o)},S),r.createElement(oo,Z({},xe,{renderTabBar:w})),r.createElement(so,Z({destroyInactiveTabPane:y},Me,{animated:P}))))});const vo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function mo(e,t={inkBar:!0,tabPane:!1}){let 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({},vo),{motionName:or(e,"switch")})),a}var go=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a};function bo(e){return e.filter(t=>t)}function po(e,t){if(e)return e.map(n=>{var i;const o=(i=n.destroyOnHidden)!==null&&i!==void 0?i:n.destroyInactiveTabPane;return Object.assign(Object.assign({},n),{destroyInactiveTabPane:o})});const a=Sa(t).map(n=>{if(r.isValidElement(n)){const{key:i,props:o}=n,l=o||{},{tab:s}=l,c=go(l,["tab"]);return Object.assign(Object.assign({key:String(i)},c),{label:s})}return null});return bo(a)}const ho=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}`}}}}},[Gn(e,"slide-up"),Gn(e,"slide-down")]]},yo=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:n,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:n,border:`${I(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ha(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:I(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:I(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${I(e.borderRadiusLG)} 0 0 ${I(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 ${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Co=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Tn(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:`${I(n)} 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({},Ln),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${I(e.paddingXXS)} ${I(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.colorIcon,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"}}})}})}},So=e=>{const{componentCls:t,margin:a,colorBorderSecondary:n,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:l,calc:s}=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:`${I(e.lineWidth)} ${e.lineType} ${n}`,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${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:I(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${I(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:`${I(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},$o=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:n,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:l,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${I(e.borderRadius)} ${I(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${I(e.borderRadius)} ${I(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${I(e.borderRadius)} ${I(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${I(e.borderRadius)} 0 0 ${I(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},xo=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:n,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:a}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},xn(e)),"&:hover":{color:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:ha(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},wo=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:n,cardGutter:i,calc:o}=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}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:I(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:I(e.marginXS)},marginLeft:{_skip_check_:!0,value:I(o(e.marginXXS).mul(-1).equal())},[n]:{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"}}}}},Eo=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:n,cardGutter:i,itemHoverColor:o,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tn(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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${I(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${I(e.borderRadiusLG)} ${I(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:l}},xn(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xo(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},xn(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Ro=e=>{const{cardHeight:t,cardHeightSM:a,cardHeightLG:n,controlHeight:i,controlHeightLG:o}=e,l=t||o,s=a||i,c=n||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}},Io=On("Tabs",e=>{const t=Nn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${I(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${I(e.horizontalItemGutter)}`});return[$o(t),wo(t),So(t),Co(t),yo(t),Eo(t),ho(t)]},Ro),_o=()=>null;var Po=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a};const Mo=r.forwardRef((e,t)=>{var a,n,i,o,l,s,c,u,f,d,v;const{type:h,className:C,rootClassName:x,size:m,onEdit:b,hideAdd:g,centered:y,addIcon:w,removeIcon:E,moreIcon:p,more:D,popupClassName:$,children:_,items:O,animated:S,style:M,indicatorSize:R,indicator:P,destroyInactiveTabPane:V,destroyOnHidden:H}=e,B=Po(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:te}=B,{direction:K,tabs:N,getPrefixCls:re,getPopupContainer:ve}=r.useContext(it),z=re("tabs",te),k=lr(z),[F,ne,q]=Io(z,k),Q=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:Q.current}));let W;h==="editable-card"&&(W={onEdit:(Re,{key:Oe,event:ze})=>{b?.(Re==="add"?ze:Oe,Re)},removeIcon:(a=E??N?.removeIcon)!==null&&a!==void 0?a:r.createElement(dr,null),addIcon:(w??N?.addIcon)||r.createElement(Vi,null),showAdd:g!==!0});const me=re(),de=ya(m),Me=po(O,_),xe=mo(z,S),U=Object.assign(Object.assign({},N?.style),M),Ce={align:(n=P?.align)!==null&&n!==void 0?n:(i=N?.indicator)===null||i===void 0?void 0:i.align,size:(c=(l=(o=P?.size)!==null&&o!==void 0?o:R)!==null&&l!==void 0?l:(s=N?.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:N?.indicatorSize};return F(r.createElement(fo,Object.assign({ref:Q,direction:K,getPopupContainer:ve},B,{items:Me,className:A({[`${z}-${de}`]:de,[`${z}-card`]:["card","editable-card"].includes(h),[`${z}-editable-card`]:h==="editable-card",[`${z}-centered`]:y},N?.className,C,x,ne,q,k),popupClassName:A($,ne,q,k),style:U,editable:W,more:Object.assign({icon:(v=(d=(f=(u=N?.more)===null||u===void 0?void 0:u.icon)!==null&&f!==void 0?f:N?.moreIcon)!==null&&d!==void 0?d:p)!==null&&v!==void 0?v:r.createElement(Wi,null),transitionName:`${me}-slide-up`},D),prefixCls:z,animated:xe,indicator:Ce,destroyInactiveTabPane:H??V})))}),Ha=Mo;Ha.TabPane=_o;var Oo=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a};const Wa=e=>{var{prefixCls:t,className:a,hoverable:n=!0}=e,i=Oo(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=r.useContext(it),l=o("card",t),s=A(`${l}-grid`,a,{[`${l}-grid-hoverable`]:n});return r.createElement("div",Object.assign({},i,{className:s}))},No=e=>{const{antCls:t,componentCls:a,headerHeight:n,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${I(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${I(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)} 0 0`},zn()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ln),{[`
          > ${a}-typography,
          > ${a}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${I(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},To=e=>{const{cardPaddingBase:t,colorBorderSecondary:a,cardShadow:n,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${I(i)} 0 0 0 ${a},
      0 ${I(i)} 0 0 ${a},
      ${I(i)} ${I(i)} 0 0 ${a},
      ${I(i)} 0 0 0 ${a} inset,
      0 ${I(i)} 0 0 ${a} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},Lo=e=>{const{componentCls:t,iconCls:a,actionsLiMargin:n,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${I(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)}`},zn()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:I(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:i,lineHeight:I(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${I(e.lineWidth)} ${e.lineType} ${o}`}}})},zo=e=>Object.assign(Object.assign({margin:`${I(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},zn()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ln),"&-description":{color:e.colorTextDescription}}),Ao=e=>{const{componentCls:t,colorFillAlter:a,headerPadding:n,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${I(n)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${I(e.padding)} ${I(i)}`}}},Do=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Ko=e=>{const{componentCls:t,cardShadow:a,cardHeadPadding:n,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Tn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:No(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)}`},[`${t}-grid`]:To(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Lo(e),[`${t}-meta`]:zo(e)}),[`${t}-bordered`]:{border:`${I(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${t}-contain-grid`]:{borderRadius:`${I(e.borderRadiusLG)} ${I(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:Ao(e),[`${t}-loading`]:Do(e),[`${t}-rtl`]:{direction:"rtl"}}},ko=e=>{const{componentCls:t,bodyPaddingSM:a,headerPaddingSM:n,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${I(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:a}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},jo=e=>{var t,a;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(a=e.headerPadding)!==null&&a!==void 0?a:e.paddingLG}},Bo=On("Card",e=>{const t=Nn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Ko(t),ko(t)]},jo);var sa=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a};const Ho=e=>{const{actionClasses:t,actions:a=[],actionStyle:n}=e;return r.createElement("ul",{className:t,style:n},a.map((i,o)=>{const l=`action-${o}`;return r.createElement("li",{style:{width:`${100/a.length}%`},key:l},r.createElement("span",null,i))}))},Wo=r.forwardRef((e,t)=>{const{prefixCls:a,className:n,rootClassName:i,style:o,extra:l,headStyle:s={},bodyStyle:c={},title:u,loading:f,bordered:d,variant:v,size:h,type:C,cover:x,actions:m,tabList:b,children:g,activeTabKey:y,defaultActiveTabKey:w,tabBarExtraContent:E,hoverable:p,tabProps:D={},classNames:$,styles:_}=e,O=sa(e,["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:S,direction:M,card:R}=r.useContext(it),[P]=sr("card",v,d),V=ie=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,ie)},H=ie=>{var ae;return A((ae=R?.classNames)===null||ae===void 0?void 0:ae[ie],$?.[ie])},B=ie=>{var ae;return Object.assign(Object.assign({},(ae=R?.styles)===null||ae===void 0?void 0:ae[ie]),_?.[ie])},te=r.useMemo(()=>{let ie=!1;return r.Children.forEach(g,ae=>{ae?.type===Wa&&(ie=!0)}),ie},[g]),K=S("card",a),[N,re,ve]=Bo(K),z=r.createElement(Mt,{loading:!0,active:!0,paragraph:{rows:4},title:!1},g),k=y!==void 0,F=Object.assign(Object.assign({},D),{[k?"activeKey":"defaultActiveKey"]:k?y:w,tabBarExtraContent:E});let ne;const q=ya(h),Q=!q||q==="default"?"large":q,W=b?r.createElement(Ha,Object.assign({size:Q},F,{className:`${K}-head-tabs`,onChange:V,items:b.map(ie=>{var{tab:ae}=ie,Ne=sa(ie,["tab"]);return Object.assign({label:ae},Ne)})})):null;if(u||l||W){const ie=A(`${K}-head`,H("header")),ae=A(`${K}-head-title`,H("title")),Ne=A(`${K}-extra`,H("extra")),fe=Object.assign(Object.assign({},s),B("header"));ne=r.createElement("div",{className:ie,style:fe},r.createElement("div",{className:`${K}-head-wrapper`},u&&r.createElement("div",{className:ae,style:B("title")},u),l&&r.createElement("div",{className:Ne,style:B("extra")},l)),W)}const me=A(`${K}-cover`,H("cover")),de=x?r.createElement("div",{className:me,style:B("cover")},x):null,Me=A(`${K}-body`,H("body")),xe=Object.assign(Object.assign({},c),B("body")),U=r.createElement("div",{className:Me,style:xe},f?z:g),Ce=A(`${K}-actions`,H("actions")),Re=m?.length?r.createElement(Ho,{actionClasses:Ce,actionStyle:B("actions"),actions:m}):null,Oe=gt(O,["onTabChange"]),ze=A(K,R?.className,{[`${K}-loading`]:f,[`${K}-bordered`]:P!=="borderless",[`${K}-hoverable`]:p,[`${K}-contain-grid`]:te,[`${K}-contain-tabs`]:b?.length,[`${K}-${q}`]:q,[`${K}-type-${C}`]:!!C,[`${K}-rtl`]:M==="rtl"},n,i,re,ve),Xe=Object.assign(Object.assign({},R?.style),o);return N(r.createElement("div",Object.assign({ref:t},Oe,{className:ze,style:Xe}),ne,de,U,Re))});var Fo=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a};const Go=e=>{const{prefixCls:t,className:a,avatar:n,title:i,description:o}=e,l=Fo(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=r.useContext(it),c=s("card",t),u=A(`${c}-meta`,a),f=n?r.createElement("div",{className:`${c}-meta-avatar`},n):null,d=i?r.createElement("div",{className:`${c}-meta-title`},i):null,v=o?r.createElement("div",{className:`${c}-meta-description`},o):null,h=d||v?r.createElement("div",{className:`${c}-meta-detail`},d,v):null;return r.createElement("div",Object.assign({},l,{className:u}),f,h)},Fa=Wo;Fa.Grid=Wa;Fa.Meta=Go;function Xo(e,t){const a={username:e,password:t};return Ht.post("/api/auth/login",a)}function Yo(){return Ht.post("/api/auth/logout")}function Qo(){return Ht.get("/api/auth/account")}function Jo(e,t){const a={username:e,password:t};return Ht.post("/api/auth/password",a)}function Zo(){return Ht.get("/api/auth/password")}export{Fa as C,nt as F,$e as K,dr as R,Mt as S,vr as a,mr as b,fr as c,Yo as d,Zo as e,Jo as f,Qo as g,Gn as i,Xo as l,gr as s};
