1import{eC as io,r as o,bR as Oe,Q as we,o as xn,c2 as wn,aJ as pe,eD as En,v as D,dk as Rn,d$ as lo,bO as Pn,eE as co,bP as In,c1 as Mn,b_ as Rt,B as Vt,L as Nn,cn as uo,P as nt,bL as fo,a1 as po,dz as mo,dn as go,bN as bo,y as Nt,t as ho,e0 as vo,k as Tn,m as _n,l as C,c5 as Xt,n as kt,c4 as Ln,S as _t,p as Ut,z as On,e6 as $o,q as zn,H as ke,I as qt,w as yo,c8 as Yt,dH as Co,bs as So,eB as xo,eF as wo,s as lt}from"./ErrorPage-D3usKVpd.js";import{S as Eo}from"./FileDialog-BkWzF61Z.js";import{F as ot,i as ln,d as Ro,e as Po,f as Io,g as Mo,R as No}from"./PlusOutlined-BFWpKE6U.js";let Tt;const To=()=>(typeof Tt>"u"&&(Tt=io()),Tt),{ESC:_o,TAB:Lo}=we;function Oo({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:a}){const i=o.useRef(!1),s=()=>{e&&(t.current?.focus?.(),n?.(!1))},l=()=>a.current?.focus?(a.current.focus(),i.current=!0,!0):!1,d=c=>{switch(c.keyCode){case _o:s();break;case Lo:{let u=!1;i.current||(u=l()),u?c.preventDefault():s();break}}};o.useEffect(()=>e?(window.addEventListener("keydown",d),r&&Oe(l,3),()=>{window.removeEventListener("keydown",d),i.current=!1}):()=>{i.current=!1},[e])}const zo=o.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:a}=e,i=o.useMemo(()=>{let l;return typeof n=="function"?l=n():l=n,l},[n]),s=xn(t,wn(i));return pe.createElement(pe.Fragment,null,r&&pe.createElement("div",{className:`${a}-arrow`}),pe.cloneElement(i,{ref:En(i)?s:void 0}))}),We={adjustX:1,adjustY:1},Fe=[0,0],Do={topLeft:{points:["bl","tl"],overflow:We,offset:[0,-4],targetOffset:Fe},top:{points:["bc","tc"],overflow:We,offset:[0,-4],targetOffset:Fe},topRight:{points:["br","tr"],overflow:We,offset:[0,-4],targetOffset:Fe},bottomLeft:{points:["tl","bl"],overflow:We,offset:[0,4],targetOffset:Fe},bottom:{points:["tc","bc"],overflow:We,offset:[0,4],targetOffset:Fe},bottomRight:{points:["tr","br"],overflow:We,offset:[0,4],targetOffset:Fe}};function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lt.apply(this,arguments)}const Ao=pe.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:a,animation:i,align:s,placement:l="bottomLeft",placements:d=Do,getPopupContainer:c,showAction:u,hideAction:S,overlayClassName:p,overlayStyle:v,visible:b,trigger:f=["hover"],autoFocus:h,overlay:g,children:$,onVisibleChange:w,disabled:x,...y}=e,[M,K]=pe.useState(),_="visible"in e?b:M,E=i?`${r}-${i}`:a,N=pe.useRef(null),P=pe.useRef(null),R=pe.useRef(null);pe.useImperativeHandle(t,()=>N.current);const z=G=>{K(G),w?.(G)};Oo({visible:_,triggerRef:R,onVisibleChange:z,autoFocus:h,overlayRef:P});const X=G=>{const{onOverlayClick:j}=e;K(!1),j&&j(G)},L=()=>pe.createElement(zo,{ref:P,overlay:g,prefixCls:r,arrow:n}),Q=()=>typeof g=="function"?L:L(),J=()=>{const{minOverlayWidthMatchTrigger:G,alignPoint:j}=e;return"minOverlayWidthMatchTrigger"in e?G:!j},Z=()=>{const{openClassName:G}=e;return G!==void 0?G:`${r}-open`},F=$,V=D(F.props?.className,_&&Z()),oe={className:V,ref:xn(R,wn(F))},O=En(F)?pe.cloneElement(F,oe):pe.createElement("span",{className:V,ref:R},pe.cloneElement(F,{className:V}));let A=S;return!A&&f.indexOf("contextMenu")!==-1&&(A=["click"]),pe.createElement(Rn,Lt({builtinPlacements:d},y,{prefixCls:r,ref:N,popupClassName:D(p,{[`${r}-show-arrow`]:n}),popupStyle:v,action:f,showAction:u,hideAction:A,popupPlacement:l,popupAlign:s,popupMotion:{motionName:E},popupVisible:_,stretch:J()?"minWidth":"",popup:Q(),onOpenChange:z,onPopupClick:X,getPopupContainer:c}),O)}),Dn=o.createContext(null);function An(e,t){return`${e}-${t}`}function Kn(e){const t=o.useContext(Dn);return An(t,e)}const Ee=o.createContext(null);function Ko(e,t){const n={...e};return Object.keys(t).forEach(r=>{const a=t[r];a!==void 0&&(n[r]=a)}),n}function at({children:e,locked:t,...n}){const r=o.useContext(Ee),a=lo(()=>Ko(r,n),[r,n],(i,s)=>!t&&(i[0]!==s[0]||!Pn(i[1],s[1],!0)));return o.createElement(Ee.Provider,{value:a},e)}const Ho=[],Hn=o.createContext(null);function Pt(){return o.useContext(Hn)}const Bn=o.createContext(Ho);function ct(e){const t=o.useContext(Bn);return o.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const Gn=o.createContext(null),Qt=o.createContext({}),{LEFT:Ot,RIGHT:zt,UP:Dt,DOWN:$t,ENTER:yt,ESC:jn,HOME:Ze,END:et}=we,cn=[Dt,$t,Ot,zt];function Bo(e,t,n,r){const a="prev",i="next",s="children",l="parent";if(e==="inline"&&r===yt)return{inlineTrigger:!0};const d={[Dt]:a,[$t]:i},c={[Ot]:n?i:a,[zt]:n?a:i,[$t]:s,[yt]:s},u={[Dt]:a,[$t]:i,[yt]:s,[jn]:l,[Ot]:n?s:l,[zt]:n?l:s};switch({inline:d,horizontal:c,vertical:u,inlineSub:d,horizontalSub:u,verticalSub:u}[`${e}${t?"":"Sub"}`]?.[r]){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Go(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function jo(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Jt(e,t){return co(e,!0).filter(r=>t.has(r))}function dn(e,t,n,r=1){if(!e)return null;const a=Jt(e,t),i=a.length;let s=a.findIndex(l=>n===l);return r<0?s===-1?s=i-1:s-=1:r>0&&(s+=1),s=(s+i)%i,a[s]}const St=(e,t)=>
1{const n=new Set,r=new Map,a=new Map;return e.forEach(i=>{const s=document.querySelector(`[data-menu-id='${An(t,i)}']`);s&&(n.add(s),a.set(s,i),r.set(i,s))}),{elements:n,key2element:r,element2key:a}};function Wo(e,t,n,r,a,i,s,l,d,c){const u=o.useRef(),S=o.useRef();S.current=t;const p=()=>{Oe.cancel(u.current)};return o.useEffect(()=>()=>{p()},[]),v=>{const{which:b}=v;if([...cn,yt,jn,Ze,et].includes(b)){const f=i();let h=St(f,r);const{elements:g,key2element:$,element2key:w}=h,x=$.get(t),y=jo(x,g),M=w.get(y),K=Bo(e,s(M,!0).length===1,n,b);if(!K&&b!==Ze&&b!==et)return;(cn.includes(b)||[Ze,et].includes(b))&&v.preventDefault();const _=E=>{if(E){let N=E;const P=E.querySelector("a");P?.getAttribute("href")&&(N=P);const R=w.get(E);l(R),p(),u.current=Oe(()=>{S.current===R&&N.focus()})}};if([Ze,et].includes(b)||K.sibling||!y){let E;!y||e==="inline"?E=a.current:E=Go(y);let N;const P=Jt(E,g);b===Ze?N=P[0]:b===et?N=P[P.length-1]:N=dn(E,g,y,K.offset),_(N)}else if(K.inlineTrigger)d(M);else if(K.offset>0)d(M,!0),p(),u.current=Oe(()=>{h=St(f,r);const E=y.getAttribute("aria-controls"),N=document.getElementById(E),P=dn(N,h.elements);_(P)},5);else if(K.offset<0){const E=s(M,!0),N=E[E.length-2],P=$.get(N);d(N,!1),_(P)}}c?.(v)}}function Fo(e){Promise.resolve().then(e)}const Zt="__RC_UTIL_PATH_SPLIT__",un=e=>e.join(Zt),Vo=e=>e.split(Zt),At="rc-menu-more";function Xo(){const[,e]=o.useState({}),t=o.useRef(new Map),n=o.useRef(new Map),[r,a]=o.useState([]),i=o.useRef(0),s=o.useRef(!1),l=()=>{s.current||e({})},d=o.useCallback((f,h)=>{const g=un(h);n.current.set(g,f),t.current.set(f,g),i.current+=1;const $=i.current;Fo(()=>{$===i.current&&l()})},[]),c=o.useCallback((f,h)=>{const g=un(h);n.current.delete(g),t.current.delete(f)},[]),u=o.useCallback(f=>{a(f)},[]),S=o.useCallback((f,h)=>{const g=t.current.get(f)||"",$=Vo(g);return h&&r.includes($[0])&&$.unshift(At),$},[r]),p=o.useCallback((f,h)=>f.filter(g=>g!==void 0).some(g=>S(g,!0).includes(h)),[S]),v=()=>{const f=[...t.current.keys()];return r.length&&f.push(At),f},b=o.useCallback(f=>{const h=`${t.current.get(f)}${Zt}`,g=new Set;return[...n.current.keys()].forEach($=>{$.startsWith(h)&&g.add(n.current.get($))}),g},[]);return o.useEffect(()=>()=>{s.current=!0},[]),{registerPath:d,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:S,getKeys:v,getSubPathKeys:b}}function tt(e){const t=o.useRef(e);t.current=e;const n=o.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function Wn(e,t,n,r){const{activeKey:a,onActive:i,onInactive:s}=o.useContext(Ee),l={active:a===e};return t||(l.onMouseEnter=d=>{n?.({key:e,domEvent:d}),i(e)},l.onMouseLeave=d=>{r?.({key:e,domEvent:d}),s(e)}),l}function Fn(e){const{mode:t,rtl:n,inlineIndent:r}=o.useContext(Ee);if(t!=="inline")return null;const a=e;return n?{paddingRight:a*r}:{paddingLeft:a*r}}function Vn({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=o.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function xt({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(In(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}class ko extends o.Component{render(){const{title:t,attribute:n,elementRef:r,...a}=this.props,i=Rt(a,["eventKey","popupClassName","popupOffset","onTitleClick"]);return In(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(ot.Item,st({},n,{title:typeof t=="string"?t:void 0},i,{ref:r}))}}const Uo=o.forwardRef((e,t)=>{const{style:n,className:r,eventKey:a,warnKey:i,disabled:s,itemIcon:l,children:d,itemData:c,role:u,onMouseEnter:S,onMouseLeave:p,onClick:v,onKeyDown:b,onFocus:f,...h}=e,g=Kn(a),{prefixCls:$,onItemClick:w,disabled:x,overflowDisabled:y,itemIcon:M,selectedKeys:K,onActive:_}=o.useContext(Ee),{_internalRenderMenuItem:E}=o.useContext(Qt),N=`${$}-item`,P=o.useRef(),R=o.useRef(),z=x||s,X=Mn(t,R),L=ct(a),Q=m=>{const U=c||{key:a||"",label:d,itemIcon:l,extra:e.extra,title:e.title};return{key:a,keyPath:[...L].reverse(),item:P.current,domEvent:m,itemData:c||U}},J=l||M,{active:Z,...F}=Wn(a,z,S,p),V=K.includes(a),oe=Fn(L.length),O=m=>{if(z)return;const U=Q(m);v?.(xt(U)),w(U)},A=m=>{if(b?.(m),m.which===we.ENTER){const U=Q(m);v?.(xt(U)),w(U)}},G=m=>{_(a),f?.(m)},j={};e.role==="option"&&(j["aria-selected"]=V);let H=o.createElement(ko,st({ref:P,elementRef:X,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":y&&g?null:g},Rt(h,["extra"]),F,j,{component:"li","aria-disabled":s,style:{...oe,...n},className:D(N,{[`${N}-active`]:Z,[`${N}-selected`]:V,[`${N}-disabled`]:z},r),onClick:O,onKeyDown:A,onFocus:G}),d,o.createElement(Vn,{props:{...e,isSelected:V},icon:J}));return E&&(H=E(H,e,{selected:V})),H});function qo(e,t){const{eventKey:n}=e,r=Pt(),a=ct(n);return o.useEffect(()=>{if(r)return r.registerPath(n,a),()=>{r.unregisterPath(n,a)}},[a]),r?null:o.createElement(Uo,st({},e,{ref:t}))}const It=o.forwardRef(qo);function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kt.apply(this,arguments)}const Yo=({className:e,children:t,...n},r)=>{const{prefixCls:a,mode:i,rtl:s}=o.useContext(Ee);return o.createElement("ul",Kt({className:D(a,s&&`${a}-rtl`,`${a}-sub`,`${a}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},Xn=o.forwardRef(Yo);function en(e,t){return Vt(e).map((n,r)=>{if(o.isValidElement(n)){const{key:a}=n;
1let i=n.props?.eventKey??a;i==null&&(i=`tmp_key-${[...t,r].join("-")}`);const l={key:i,eventKey:i};return o.cloneElement(n,l)}return n})}const me={adjustX:1,adjustY:1},Qo={topLeft:{points:["bl","tl"],overflow:me},topRight:{points:["br","tr"],overflow:me},bottomLeft:{points:["tl","bl"],overflow:me},bottomRight:{points:["tr","br"],overflow:me},leftTop:{points:["tr","tl"],overflow:me},leftBottom:{points:["br","bl"],overflow:me},rightTop:{points:["tl","tr"],overflow:me},rightBottom:{points:["bl","br"],overflow:me}},Jo={topLeft:{points:["bl","tl"],overflow:me},topRight:{points:["br","tr"],overflow:me},bottomLeft:{points:["tl","bl"],overflow:me},bottomRight:{points:["tr","br"],overflow:me},rightTop:{points:["tr","tl"],overflow:me},rightBottom:{points:["br","bl"],overflow:me},leftTop:{points:["tl","tr"],overflow:me},leftBottom:{points:["bl","br"],overflow:me}};function kn(e,t,n){if(t)return t;if(n)return n[e]||n.other}const Zo={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function er({prefixCls:e,visible:t,children:n,popup:r,popupStyle:a,popupClassName:i,popupOffset:s,disabled:l,mode:d,onVisibleChange:c}){const{getPopupContainer:u,rtl:S,subMenuOpenDelay:p,subMenuCloseDelay:v,builtinPlacements:b,triggerSubMenuAction:f,forceSubMenuRender:h,rootClassName:g,motion:$,defaultMotions:w}=o.useContext(Ee),[x,y]=o.useState(!1),M=S?{...Jo,...b}:{...Qo,...b},K=Zo[d],_=kn(d,$,w),E=o.useRef(_);d!=="inline"&&(E.current=_);const N={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},P=o.useRef();return o.useEffect(()=>(P.current=Oe(()=>{y(t)}),()=>{Oe.cancel(P.current)}),[t]),o.createElement(Rn,{prefixCls:e,popupClassName:D(`${e}-popup`,{[`${e}-rtl`]:S},i,g),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:u,builtinPlacements:M,popupPlacement:K,popupVisible:x,popup:r,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[f],mouseEnterDelay:p,mouseLeaveDelay:v,onPopupVisibleChange:c,forceRender:h,popupMotion:N,fresh:!0},n)}function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}function tr({id:e,open:t,keyPath:n,children:r}){const a="inline",{prefixCls:i,forceSubMenuRender:s,motion:l,defaultMotions:d,mode:c}=o.useContext(Ee),u=o.useRef(!1);u.current=c===a;const[S,p]=o.useState(!u.current),v=u.current?t:!1;o.useEffect(()=>{u.current&&p(!1)},[c]);const b={...kn(a,l,d)};n.length>1&&(b.motionAppear=!1);const f=b.onVisibleChanged;return b.onVisibleChanged=h=>(!u.current&&!h&&p(!0),f?.(h)),S?null:o.createElement(at,{mode:a,locked:!u.current},o.createElement(Nn,Ht({visible:v},b,{forceRender:s,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:h,style:g})=>o.createElement(Xn,{id:e,className:h,style:g},r)))}function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(this,arguments)}const nr=o.forwardRef((e,t)=>{const{style:n,className:r,styles:a,classNames:i,title:s,eventKey:l,warnKey:d,disabled:c,internalPopupClose:u,children:S,itemIcon:p,expandIcon:v,popupClassName:b,popupOffset:f,popupStyle:h,onClick:g,onMouseEnter:$,onMouseLeave:w,onTitleClick:x,onTitleMouseEnter:y,onTitleMouseLeave:M,popupRender:K,..._}=e,E=Kn(l),{prefixCls:N,mode:P,openKeys:R,disabled:z,overflowDisabled:X,activeKey:L,selectedKeys:Q,itemIcon:J,expandIcon:Z,onItemClick:F,onOpenChange:V,onActive:oe,popupRender:O}=o.useContext(Ee),{_internalRenderSubMenuItem:A}=o.useContext(Qt),{isSubPathKey:G}=o.useContext(Gn),j=ct(),H=`${N}-submenu`,m=z||c,U=o.useRef(),re=o.useRef(),$e=p??J,ge=v??Z,Ce=R.includes(l),q=!X&&Ce,ce=G(Q,l),{active:ee,...se}=Wn(l,m,y,M),[de,ie]=o.useState(!1),ue=k=>{m||ie(k)},Re=k=>{ue(!0),$?.({key:l,domEvent:k})},Me=k=>{ue(!1),w?.({key:l,domEvent:k})},Se=o.useMemo(()=>ee||(P!=="inline"?de||G([L],l):!1),[P,ee,L,de,l,G]),he=Fn(j.length),Ne=k=>{m||(x?.({key:l,domEvent:k}),P==="inline"&&V(l,!Ce))},_e=tt(k=>
1{g?.(xt(k)),F(k)}),le=k=>{P!=="inline"&&V(l,k)},be=()=>{oe(l)},ve=E&&`${E}-popup`,Pe=o.useMemo(()=>o.createElement(Vn,{icon:P!=="horizontal"?ge:void 0,props:{...e,isOpen:q,isSubMenu:!0}},o.createElement("i",{className:`${H}-arrow`})),[P,ge,e,q,H]);let fe=o.createElement("div",it({role:"menuitem",style:he,className:`${H}-title`,tabIndex:m?null:-1,ref:U,title:typeof s=="string"?s:null,"data-menu-id":X&&E?null:E,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ve,"aria-disabled":m,onClick:Ne,onFocus:be},se),s,Pe);const ne=o.useRef(P);P!=="inline"&&j.length>1?ne.current="vertical":ne.current=P;const Le=ne.current,Ue=o.useMemo(()=>{const k=o.createElement(at,{classNames:i,styles:a,mode:Le==="horizontal"?"vertical":Le},o.createElement(Xn,{id:ve,ref:re},S)),De=K||O;return De?De(k,{item:e,keys:j}):k},[K,O,j,ve,S,e,Le]);if(!X){const k=ne.current;fe=o.createElement(er,{mode:k,prefixCls:H,visible:!u&&q&&P!=="inline",popupClassName:b,popupOffset:f,popupStyle:h,popup:Ue,disabled:m,onVisibleChange:le},fe)}let ze=o.createElement(ot.Item,it({ref:t,role:"none"},_,{component:"li",style:n,className:D(H,`${H}-${P}`,r,{[`${H}-open`]:q,[`${H}-active`]:Se,[`${H}-selected`]:ce,[`${H}-disabled`]:m}),onMouseEnter:Re,onMouseLeave:Me}),fe,!X&&o.createElement(tr,{id:ve,open:q,keyPath:j},S));return A&&(ze=A(ze,e,{selected:ce,active:Se,open:q,disabled:m})),o.createElement(at,{classNames:i,styles:a,onItemClick:_e,mode:P==="horizontal"?"vertical":P,itemIcon:$e,expandIcon:ge},ze)}),tn=o.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=ct(n),i=en(r,a),s=Pt();o.useEffect(()=>{if(s)return s.registerPath(n,a),()=>{s.unregisterPath(n,a)}},[a]);let l;return s?l=i:l=o.createElement(nr,it({ref:t},e),i),o.createElement(Bn.Provider,{value:a},l)});function Un({className:e,style:t}){const{prefixCls:n}=o.useContext(Ee);return Pt()?null:o.createElement("li",{role:"separator",className:D(`${n}-item-divider`,e),style:t})}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(this,arguments)}const or=o.forwardRef((e,t)=>{const{className:n,title:r,eventKey:a,children:i,...s}=e,{prefixCls:l,classNames:d,styles:c}=o.useContext(Ee),u=`${l}-item-group`;return o.createElement("li",wt({ref:t,role:"presentation"},s,{onClick:S=>S.stopPropagation(),className:D(u,n)}),o.createElement("div",{role:"presentation",className:D(`${u}-title`,d?.listTitle),style:c?.listTitle,title:typeof r=="string"?r:void 0},r),o.createElement("ul",{role:"group",className:D(`${u}-list`,d?.list),style:c?.list},i))}),qn=o.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=ct(n),i=en(r,a);return Pt()?i:o.createElement(or,wt({ref:t},Rt(e,["warnKey"])),i)});function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe.apply(this,arguments)}function Bt(e,t,n){const{item:r,group:a,submenu:i,divider:s}=t;return(e||[]).map((l,d)=>{if(l&&typeof l=="object"){const{label:c,children:u,key:S,type:p,extra:v,...b}=l,f=S??`tmp-${d}`;if(u||p==="group")return p==="group"?o.createElement(a,Xe({key:f},b,{title:c}),Bt(u,t,n)):o.createElement(i,Xe({key:f},b,{title:c}),Bt(u,t,n));if(p==="divider")return o.createElement(s,Xe({key:f},b));const h=!!v||v===0;return o.createElement(r,Xe({key:f},b,{extra:v,itemData:{...l,key:f}}),h?o.createElement(o.Fragment,null,o.createElement("span",{className:`${n}-item-label`},c),o.createElement("span",{className:`${n}-item-extra`},v)):c)}return null}).filter(l=>l)}function fn(e,t,n,r,a){let i=e;const s={divider:Un,item:It,group:qn,submenu:tn,...r};return t&&(i=Bt(t,s,a)),en(i,n)}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gt.apply(this,arguments)}const Be=[],rr=o.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:a,className:i,styles:s,classNames:l,tabIndex:d=0,items:c,children:u,direction:S,id:p,mode:v="vertical",inlineCollapsed:b,disabled:f,disabledOverflow:h,subMenuOpenDelay:g=.1,subMenuCloseDelay:$=.1,forceSubMenuRender:w,defaultOpenKeys:x,openKeys:y,activeKey:M,defaultActiveFirst:K,selectable:_=!0,multiple:E=!1,defaultSelectedKeys:N,selectedKeys:P,onSelect:R,onDeselect:z,inlineIndent:X=24,motion:L,defaultMotions:Q,triggerSubMenuAction:J="hover",builtinPlacements:Z,itemIcon:F,expandIcon:V,overflowedIndicator:oe="...",overflowedIndicatorPopupClassName:O,getPopupContainer:A,onClick:G,onOpenChange:j,onKeyDown:H,openAnimation:m,openTransitionName:U,_internalRenderMenuItem:re,_internalRenderSubMenuItem:$e,_internalComponents:ge,popupRender:Ce,...q}=e,[ce,ee]=o.useMemo(()=>[fn(u,c,Be,ge,n),fn(u,c,Be,{},n)],[u,c,ge]),[se,de]=o.useState(!1),ie=o.useRef(),ue=uo(p?`rc-menu-uuid-${p}`:"rc-menu-uuid"),Re=S==="rtl",[Me,Se]=nt(x,y),he=Me||Be,Ne=(W,te=!1)=>{function ae(){Se(W),j?.(W)}te?fo.flushSync(ae):ae()},[_e,le]=o.useState(he),be=o.useRef(!1),[ve,Pe]=o.useMemo(()=>(v==="inline"||v==="vertical")&&b?["vertical",b]:[v,!1],[v,b]),fe=ve==="inline",[
1ne,Le]=o.useState(ve),[Ue,ze]=o.useState(Pe);o.useEffect(()=>{Le(ve),ze(Pe),be.current&&(fe?Se(_e):Ne(Be))},[ve,Pe]);const[k,De]=o.useState(0),Ae=k>=ce.length-1||ne!=="horizontal"||h;o.useEffect(()=>{fe&&le(he)},[he]),o.useEffect(()=>(be.current=!0,()=>{be.current=!1}),[]);const{registerPath:Ke,unregisterPath:ut,refreshOverflowKeys:Mt,isSubPathKey:qe,getKeyPath:ft,getKeys:Ye,getSubPathKeys:pt}=Xo(),He=o.useMemo(()=>({registerPath:Ke,unregisterPath:ut}),[Ke,ut]),Qe=o.useMemo(()=>({isSubPathKey:qe}),[qe]);o.useEffect(()=>{Mt(Ae?Be:ce.slice(k+1).map(W=>W.key))},[k,Ae]);const[Te,Ge]=nt(M||K&&ce[0]?.key,M),mt=tt(W=>{Ge(W)}),T=tt(()=>{Ge(void 0)});o.useImperativeHandle(t,()=>({list:ie.current,focus:W=>{const te=Ye(),{elements:ae,key2element:xe,element2key:je}=St(te,ue),gt=Jt(ie.current,ae);let bt;Te&&te.includes(Te)?bt=Te:bt=gt[0]?je.get(gt[0]):ce.find(so=>!so.props.disabled)?.key;const sn=xe.get(bt);bt&&sn&&sn?.focus?.(W)},findItem:({key:W})=>{const te=Ye(),{key2element:ae}=St(te,ue);return ae.get(W)||null}}));const[I,B]=nt(N||[],P),Y=o.useMemo(()=>Array.isArray(I)?I:I==null?Be:[I],[I]),ye=W=>{if(_){const{key:te}=W,ae=Y.includes(te);let xe;E?ae?xe=Y.filter(gt=>gt!==te):xe=[...Y,te]:xe=[te],B(xe);const je={...W,selectedKeys:xe};ae?z?.(je):R?.(je)}!E&&he.length&&ne!=="inline"&&Ne(Be)},Ie=tt(W=>{G?.(xt(W)),ye(W)}),Je=tt((W,te)=>{let ae=he.filter(xe=>xe!==W);if(te)ae.push(W);else if(ne!=="inline"){const xe=pt(W);ae=ae.filter(je=>!xe.has(je))}Pn(he,ae,!0)||Ne(ae,!0)}),no=Wo(ne,Te,Re,ue,ie,Ye,ft,Ge,(W,te)=>{const ae=te??!he.includes(W);Je(W,ae)},H);o.useEffect(()=>{de(!0)},[]);const oo=o.useMemo(()=>({_internalRenderMenuItem:re,_internalRenderSubMenuItem:$e}),[re,$e]),ro=ne!=="horizontal"||h?ce:ce.map((W,te)=>o.createElement(at,{key:W.key,overflowDisabled:te>k,classNames:l,styles:s},W)),ao=o.createElement(ot,Gt({id:p,ref:ie,prefixCls:`${n}-overflow`,component:"ul",itemComponent:It,className:D(n,`${n}-root`,`${n}-${ne}`,i,{[`${n}-inline-collapsed`]:Ue,[`${n}-rtl`]:Re},r),dir:S,style:a,role:"menu",tabIndex:d,data:ro,renderRawItem:W=>W,renderRawRest:W=>{const te=W.length,ae=te?ce.slice(-te):null;return o.createElement(tn,{eventKey:At,title:oe,disabled:Ae,internalPopupClose:te===0,popupClassName:O},ae)},maxCount:ne!=="horizontal"||h?ot.INVALIDATE:ot.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:W=>{De(W)},onKeyDown:no},q));return o.createElement(Qt.Provider,{value:oo},o.createElement(Dn.Provider,{value:ue},o.createElement(at,{prefixCls:n,rootClassName:r,classNames:l,styles:s,mode:ne,openKeys:he,rtl:Re,disabled:f,motion:se?L:null,defaultMotions:se?Q:null,activeKey:Te,onActive:mt,onInactive:T,selectedKeys:Y,inlineIndent:X,subMenuOpenDelay:g,subMenuCloseDelay:$,forceSubMenuRender:w,builtinPlacements:Z,triggerSubMenuAction:J,getPopupContainer:A,itemIcon:F,expandIcon:V,onItemClick:Ie,onOpenChange:Je,popupRender:Ce},o.createElement(Gn.Provider,{value:Qe},ao),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Hn.Provider,{value:He},ee)))))}),dt=rr;dt.Item=It;dt.SubMenu=tn;dt.ItemGroup=qn;dt.Divider=Un;var ht={},pn;function ar(){if(pn)return ht;pn=1,Object.defineProperty(ht,"__esModule",{value:!0});var e={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"};return ht.default=e,ht}var sr=ar();const ir=po(sr);function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jt.apply(this,arguments)}const lr=(e,t)=>o.createElement(mo,jt({},e,{ref:t,icon:ir})),cr=o.forwardRef(lr),nn=o.createContext(null),dr=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:a={}}=e,{size:i,align:s="center"}=a,[l,d]=o.useState(),c=o.useRef(void 0),u=pe.useCallback(p=>typeof i=="function"?i(p):typeof i=="number"?i:p,[i]);function S(){Oe.cancel(c.current)}return o.useEffect(()=>{const p={};if(t)if(n){p.width=u(t.width);const v=r?"right":"left";s==="start"&&(p[v]=t[v]),s==="center"&&(p[v]=t[v]+t.width/2,p.transform=r?"translateX(50%)":"translateX(-50%)"),s==="end"&&(p[v]=t[v]+t.width,p.transform="translateX(-100%)")}else p.height=u(t.height),s==="start"&&(p.top=t.top),s==="center"&&(p.top=t.top+t.height/2,p.transform="translateY(-50%)"),s==="end"&&(p.top=t.top+t.height,p.transform="translateY(-100%)");return S(),c.current=Oe(()=>{l&&p&&Object.keys(p).every(b=>{const f=p[b],h=l[b];return typeof f=="number"&&typeof h=="number"?Math.round(f)===Math.round(h):f===h})||d(p)}),S},[JSON.stringify(t),n,r,s,u]),{style:l}},mn={width:0,height:0,left:0,top:0};function ur(e,t,n){return o.useMemo(()=>{const r=new Map,a=t.get(e[0]?.key)||mn,i=a.left+a.width;for(let s=0;s<e.length;s+=1){const{key:l}=e[s];let d=t.get(l);d||(d=t.get(e[s-1]?.key)||mn);const c=r.get(l)||{...d};c.right=i-c.left-c.width,r.set(l,c)}return r},[e.map(r=>r.key).join("_"),t,n])}function gn(e,t){const n=o.useRef(e),[,r]=o.useState({});function a(i){const s=typeof i=="function"?i(n.current):i;s!==n.current&&t(s,n.current),n.current=s,r({})}return[n.current,a]}const fr=.1,bn=.01,Ct=20,hn=.995**Ct;function pr(e,t){const[n,r]=o.useState(),[a,i]=o.useState(0),[s,l]=o.useState(0),[d,c]=o.useState(),u=o.useRef(void 0);function S(g){const{screenX:$,screenY:w}=g.touches[0];r({x:$,y:w}),window.clearInterval(u.current)}function p(g){if(!n)return;const{screenX:$,screenY:w}=g.touches[0];r({x:$,y:w});const x=$-n.x,y=w-n.y;t(x,y);const M=Date.now();i(M),l(M-a),c({x,y})}function v(){if(n&&(r(null),c(null),d)){const g=d.x/s,$=d.y/s,w=Math.abs(g),x=Math.abs($);if(Math.max(w,x)<fr)return;let y=g,M=$;u.current=window.setInterval(()=>{if(Math.abs(y)<bn&&Math.abs(M)<bn){window.clearInterval(u.current);return}y*=hn,M*=hn,t(y*Ct,M*Ct)},Ct)}}const b=o.useRef(void 0);function f(g){const{deltaX:$,deltaY:w}=g;let x;const y=Math.abs($),M=Math.abs(w);y===M?x=b.current==="x"?$:w:y>M?(x=$,b.current="x"):(x=w,b.current="y"),t(-x,-x)&&g.preventDefault()}const h=o.useRef(null);h.current={onTouchStart:S,onTouchMove:p,onTouchEnd:v,onWheel:f},o.useEffect(()=>{function g(y){h.current.onTouchStart(y)}function $(y){h.current.onTouchMove(y)}function w(y){h.current.onTouchEnd(y)}function x(y){h.current.onWheel(y)}return document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",w,{passive:!0}),e.current.addEventListener("touchstart",g,{passive:!0}),e.current.addEventListener("wheel",x,{passive:!1}),()=>{document.removeEventListener("touchmove",$),document.removeEventListener("touchend",w)}},[])}function Yn(e){const[t,n]=o.useState(0),r=o.useRef(0),a=o.useRef(void 0);return a.current=e,go(()=>{a.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function mr(e){const t=o.useRef([]),[,n]=o.useState({}),r=o.useRef(typeof e=="function"?e():e),a=Yn(()=>{let s=r.current;t.current.forEach(l=>{s=l(s)}),t.current=[],r.current=s,n({})});function i(s){t.current.push(s),a()}return[r.current,i]}const vn={width:0,height:0,left:0,top:0,right:0};function gr(e,t,n,r,a,i,{tabs:s,tabPosition:l,rtl:d}){let c,u,S;return["top","bottom"].includes(l)?(c="width",u=d?"right":"left",S=Math.abs(n)):(c="height",u="top",S=-n),o.useMemo(()=>
1{if(!s.length)return[0,0];const p=s.length;let v=p;for(let f=0;f<p;f+=1){const h=e.get(s[f].key)||vn;if(Math.floor(h[u]+h[c])>Math.floor(S+t)){v=f-1;break}}let b=0;for(let f=p-1;f>=0;f-=1)if((e.get(s[f].key)||vn)[u]<S){b=f+1;break}return b>v?[0,-1]:[b,v]},[e,t,r,a,i,S,l,s.map(p=>p.key).join("_"),d])}function $n(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const br="TABS_DQ";function Qn(e){return String(e).replace(/"/g,br)}function on(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const Jn=o.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:a,style:i}=e;return!r||r.showAdd===!1?null:o.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:i,"aria-label":a?.addAriaLabel||"Add tab",onClick:s=>{r.onEdit("add",{event:s})}},r.addIcon||"+")}),yn=o.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:a}=e;if(!a)return null;let i,s={};return typeof a=="object"&&!o.isValidElement(a)?s=a:s.right=a,n==="right"&&(i=s.right),n==="left"&&(i=s.left),i?o.createElement("div",{className:`${r}-extra-content`,ref:t},i):null});function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}const hr=o.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:a,locale:i,mobile:s,more:l={},style:d,className:c,editable:u,tabBarGutter:S,rtl:p,removeAriaLabel:v,onTabClick:b,getPopupContainer:f,popupClassName:h,popupStyle:g,classNames:$,styles:w}=e,[x,y]=o.useState(!1),[M,K]=o.useState(null),{icon:_="More",popupRender:E}=l,N=`${r}-more-popup`,P=`${n}-dropdown`,R=M!==null?`${N}-${M}`:null,z=i?.dropdownAriaLabel;function X(O,A){O.preventDefault(),O.stopPropagation(),u.onEdit("remove",{key:A,event:O})}const L=o.createElement(dt,{onClick:({key:O,domEvent:A})=>{b(O,A),y(!1)},prefixCls:`${P}-menu`,id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[M],"aria-label":z!==void 0?z:"expanded dropdown"},a.map(O=>{const{closable:A,disabled:G,closeIcon:j,key:H,label:m}=O,U=on(A,j,u,G);return o.createElement(It,{key:H,id:`${N}-${H}`,role:"option","aria-controls":r&&`${r}-panel-${H}`,disabled:G},o.createElement("span",null,m),U&&o.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:D(`${P}-menu-item-remove`,$?.remove),style:w?.remove,onClick:re=>{re.stopPropagation(),X(re,H)}},j||u.removeIcon||"Ã"))})),Q=E?E(L,{restTabs:a,onClose:()=>y(!1)}):L;function J(O){const A=a.filter(H=>!H.disabled);let G=A.findIndex(H=>H.key===M)||0;const j=A.length;for(let H=0;H<j;H+=1){G=(G+O+j)%j;const m=A[G];if(!m.disabled){K(m.key);return}}}function Z(O){const{which:A}=O;if(!x){[we.DOWN,we.SPACE,we.ENTER].includes(A)&&(y(!0),O.preventDefault());return}switch(A){case we.UP:J(-1),O.preventDefault();break;case we.DOWN:J(1),O.preventDefault();break;case we.ESC:y(!1);break;case we.SPACE:case we.ENTER:M!==null&&b(M,O);break}}o.useEffect(()=>{const O=document.getElementById(R);O?.scrollIntoView&&O.scrollIntoView(!1)},[R,M]),o.useEffect(()=>{x||K(null)},[x]);const F={marginInlineStart:S};a.length||(F.visibility="hidden",F.order=1);const V=D(h,{[`${P}-rtl`]:p}),oe=s?null:o.createElement(Ao,Wt({prefixCls:P,overlay:Q,visible:a.length?x:!1,onVisibleChange:y,overlayClassName:V,overlayStyle:g,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:f},l),o.createElement("button",{type:"button",className:`${n}-nav-more`,style:F,"aria-haspopup":"listbox","aria-controls":N,id:`${r}-more`,"aria-expanded":x,onKeyDown:Z},_));return o.createElement("div",{className:D(`${n}-nav-operations`,c),style:d,ref:t},oe,o.createElement(Jn,{prefixCls:n,locale:i,editable:u}))}),vr=o.memo(hr,(e,t)=>t.tabMoving),$r=e=>{const{prefixCls:t,id:n,active:r,focus:a,tab:{key:i,label:s,disabled:l,closeIcon:d,icon:c},closable:u,renderWrapper:S,removeAriaLabel:p,editable:v,onClick:b,onFocus:f,onBlur:h,onKeyDown:g,onMouseDown:$,onMouseUp:w,styles:x,classNames:y,tabCount:M,currentPosition:K}=e,_=`${t}-tab`,E=on(u,d,v,l);function N(L){l||b(L)}function P(L){L.preventDefault(),L.stopPropagation(),v.onEdit("remove",{key:i,event:L})}const R=o.useMemo(()=>c&&typeof s=="string"?o.createElement("span",null,s):s,[s,c]),z=o.useRef(null);o.useEffect(()=>{a&&z.current&&z.current.focus()},[a]);const X=o.createElement("div",{key:i,"data-node-key":Qn(i),className:D(_,y?.item,{[`${_}-with-remove`]:E,[`${_}-active`]:r,[`${_}-disabled`]:l,[`${_}-focus`]:a}),style:x?.item,onClick:N},o.createElement("div",{ref:z,role:"tab","aria-selected":r,id:n&&`${n}-tab-${i}`,className:`${_}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":l,tabIndex:l?null:r?0:-1,onClick:L=>{L.stopPropagation(),N(L)},onKeyDown:g,onMouseDown:$,onMouseUp:w,onFocus:f,onBlur:h},a&&o.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}
1},`Tab ${K} of ${M}`),c&&o.createElement("span",{className:`${_}-icon`},c),s&&R),E&&o.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:r?0:-1,className:D(`${_}-remove`,y?.remove),style:x?.remove,onClick:L=>{L.stopPropagation(),P(L)}},d||v.removeIcon||"Ã"));return S?S(X):X};function Ft(){return Ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ft.apply(this,arguments)}const yr=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:a,offsetLeft:i}=e,{width:s,height:l,left:d,top:c}=e.getBoundingClientRect();return Math.abs(s-n)<1?[s,l,d-t.left,c-t.top]:[n,r,i,a]},Ve=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:a}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,a]}return[t,n]},vt=(e,t)=>e[t?0:1],Cn=o.forwardRef((e,t)=>{const{className:n,style:r,id:a,animated:i,activeKey:s,rtl:l,extra:d,editable:c,locale:u,tabPosition:S,tabBarGutter:p,children:v,onTabClick:b,onTabScroll:f,indicator:h,classNames:g,styles:$}=e,{prefixCls:w,tabs:x}=o.useContext(nn),y=o.useRef(null),M=o.useRef(null),K=o.useRef(null),_=o.useRef(null),E=o.useRef(null),N=o.useRef(null),P=o.useRef(null),R=S==="top"||S==="bottom",[z,X]=gn(0,(T,I)=>{R&&f&&f({direction:T>I?"left":"right"})}),[L,Q]=gn(0,(T,I)=>{!R&&f&&f({direction:T>I?"top":"bottom"})}),[J,Z]=o.useState([0,0]),[F,V]=o.useState([0,0]),[oe,O]=o.useState([0,0]),[A,G]=o.useState([0,0]),[j,H]=mr(new Map),m=ur(x,j,F[0]),U=vt(J,R),re=vt(F,R),$e=vt(oe,R),ge=vt(A,R),Ce=Math.floor(U)<Math.floor(re+$e),q=Ce?U-ge:U-$e,ce=`${w}-nav-operations-hidden`;let ee=0,se=0;R&&l?(ee=0,se=Math.max(0,re-q)):(ee=Math.min(0,q-re),se=0);function de(T){return T<ee?ee:T>se?se:T}const ie=o.useRef(null),[ue,Re]=o.useState();function Me(){Re(Date.now())}function Se(){ie.current&&clearTimeout(ie.current)}pr(_,(T,I)=>{function B(Y,ye){Y(Ie=>de(Ie+ye))}return Ce?(R?B(X,T):B(Q,I),Se(),Me(),!0):!1}),o.useEffect(()=>(Se(),ue&&(ie.current=setTimeout(()=>{Re(0)},100)),Se),[ue]);const[he,Ne]=gr(m,q,R?z:L,re,$e,ge,{...e,tabs:x}),_e=bo((T=s)=>{const I=m.get(T)||{width:0,height:0,left:0,right:0,top:0};if(R){let B=z;l?I.right<z?B=I.right:I.right+I.width>z+q&&(B=I.right+I.width-q):I.left<-z?B=-I.left:I.left+I.width>-z+q&&(B=-(I.left+I.width-q)),Q(0),X(de(B))}else{let B=L;I.top<-L?B=-I.top:I.top+I.height>-L+q&&(B=-(I.top+I.height-q)),X(0),Q(de(B))}}),[le,be]=o.useState(),[ve,Pe]=o.useState(!1),fe=x.filter(T=>!T.disabled).map(T=>T.key),ne=T=>{const I=fe.indexOf(le||s),B=fe.length,Y=(I+T+B)%B,ye=fe[Y];be(ye)},Le=(T,I)=>{const B=fe.indexOf(T),Y=x.find(Ie=>Ie.key===T);on(Y?.closable,Y?.closeIcon,c,Y?.disabled)&&(I.preventDefault(),I.stopPropagation(),c.onEdit("remove",{key:T,event:I}),B===fe.length-1?ne(-1):ne(1))},Ue=(T,I)=>{Pe(!0),I.button===1&&Le(T,I)},ze=T=>{const{code:I}=T,B=l&&R,Y=fe[0],ye=fe[fe.length-1];switch(I){case"ArrowLeft":{R&&ne(B?1:-1);break}case"ArrowRight":{R&&ne(B?-1:1);break}case"ArrowUp":{T.preventDefault(),R||ne(-1);break}case"ArrowDown":{T.preventDefault(),R||ne(1);break}case"Home":{T.preventDefault(),be(Y);break}case"End":{T.preventDefault(),be(ye);break}case"Enter":case"Space":{T.preventDefault(),b(le??s,T);break}case"Backspace":case"Delete":{Le(le,T);break}}},k={};R?k.marginInlineStart=p:k.marginTop=p;const De=x.map((T,I)=>{const{key:B}=T;return o.createElement($r,{id:a,prefixCls:w,key:B,tab:T,classNames:{item:g?.item,remove:g?.remove},styles:{item:I===0?$?.item:{...k,...$?.item},remove:$?.remove},closable:T.closable,editable:c,active:B===s,focus:B===le,renderWrapper:v,removeAriaLabel:u?.removeAriaLabel,tabCount:fe.length,currentPosition:I+1,onClick:Y=>{b(B,Y)},onKeyDown:ze,onFocus:()=>{ve||be(B),_e(B),Me(),_.current&&(l||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:()=>{be(void 0)},onMouseDown:Y=>Ue(B,Y),onMouseUp:()=>{Pe(!1)}})}),Ae=()=>H(()=>{const T=new Map,I=E.current?.getBoundingClientRect();return x.forEach(({key:B})=>{const Y=E.current?.querySelector(`[data-node-key="${Qn(B)}"]`);if(Y){const[ye,Ie,Je,an]=yr(Y,I);T.set(B,{width:ye,height:Ie,left:Je,top:an})}}),T});o.useEffect(()=>{Ae()},[x.map(T=>T.key).join("_")]);const Ke=Yn(()=>{const T=Ve(y),I=Ve(M),B=Ve(K);Z([T[0]-I[0]-B[0],T[1]-I[1]-B[1]]);const Y=Ve(P);O(Y);const ye=Ve(N);G(ye);const Ie=Ve(E);V([Ie[0]-Y[0],Ie[1]-Y[1]]),Ae()}),ut=x.slice(0,he),Mt=x.slice(Ne+1),qe=[...ut,...Mt],ft=m.get(s),{style:Ye}=dr({activeTabOffset:ft,horizontal:R,indicator:h,rtl:l});o.useEffect(()=>{_e()},[s,ee,se,$n(ft),$n(m),R]),o.useEffect(()=>{Ke()},[l]);const pt=!!qe.length,He=`${w}-nav-wrap`;let Qe,Te,Ge,mt;return R?l?(Te=z>0,Qe=z!==se):(Qe=z<0,Te=z!==ee):(Ge=L<0,mt=L!==ee),o.createElement(Nt,{onResize:Ke},o.createElement("div",{ref:Mn(t,y),role:"tablist","aria-orientation":R?"horizontal":"vertical",className:D(`${w}-nav`,n,g?.header),style:{...$?.header,...r},onKeyDown:()=>{Me()}},o.createElement(yn,{ref:M,position:"left",extra:d,prefixCls:w}),o.createElement(Nt,{onResize:Ke},o.createElement("div",{className:D(He,{[`${He}-ping-left`]:Qe,[`${He}-ping-right`]:Te,[`${He}-ping-top`]:Ge,[`${He}-ping-bottom`]:mt}),ref:_},o.createElement(Nt,{onResize:Ke},o.createElement("div",{ref:E,className:`${w}-nav-list`,style:{transform:`translate(${z}px, ${L}px)`,transition:ue?"none":void 0}},De,o.createElement(Jn,{ref:P,prefixCls:w,locale:u,editable:c,style:{...De.length===0?void 0:k,visibility:pt?"hidden":null}}),o.createElement("div",{className:D(`${w}-ink-bar`,g?.indicator,{[`${w}-ink-bar-animated`]:i.inkBar}),style:{...Ye,...$?.indicator}}))))),o.createElement(vr,Ft({},e,{removeAriaLabel:u?.removeAriaLabel,ref:N,prefixCls:w,tabs:qe,className:!pt&&ce,popupStyle:$?.popup,tabMoving:!!ue})),o.createElement(yn,{ref:K,position:"right",extra:d,prefixCls:w})))}),Cr=({renderTabBar:e,...t})=>e?e(t,Cn):o.createElement(Cn,t),Sr=o.forwardRef((e,t)=>
1{const{prefixCls:n,className:r,style:a,id:i,active:s,tabKey:l,children:d}=e,c=o.Children.count(d)>0;return o.createElement("div",{id:i&&`${i}-panel-${l}`,role:"tabpanel",tabIndex:s&&c?0:-1,"aria-labelledby":i&&`${i}-tab-${l}`,"aria-hidden":!s,style:a,className:D(n,s&&`${n}-active`,r),ref:t},d)});function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(this,arguments)}const xr=e=>{const{id:t,activeKey:n,animated:r,tabPosition:a,destroyOnHidden:i,bodyStyle:s,bodyClassName:l,contentStyle:d,contentClassName:c}=e,{prefixCls:u,tabs:S}=o.useContext(nn),p=r.tabPane,v=`${u}-body`,b=`${u}-content`;return o.createElement("div",{className:D(`${v}-holder`)},o.createElement("div",{className:D(v,`${v}-${a}`,{[`${v}-animated`]:p},l),style:s},S.map(f=>{const{key:h,forceRender:g,style:$,className:w,destroyOnHidden:x,...y}=f,M=h===n;return o.createElement(Nn,Et({key:h,visible:M,forceRender:g,removeOnLeave:!!(i??x),leavedClassName:`${b}-hidden`},r.tabPaneMotion),({style:K,className:_},E)=>o.createElement(Sr,Et({},y,{prefixCls:b,id:t,tabKey:h,animated:p,active:M,style:{...d,...$,...K},className:D(c,w,_),ref:E})))})))};function wr(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt.apply(this,arguments)}let Sn=0;const Er=o.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:a,items:i,direction:s,activeKey:l,defaultActiveKey:d,editable:c,animated:u,tabPosition:S="top",tabBarGutter:p,tabBarStyle:v,tabBarExtraContent:b,locale:f,more:h,destroyOnHidden:g,renderTabBar:$,onChange:w,onTabClick:x,onTabScroll:y,getPopupContainer:M,popupClassName:K,indicator:_,classNames:E,styles:N,...P}=e,R=o.useMemo(()=>(i||[]).filter(m=>m&&typeof m=="object"&&"key"in m),[i]),z=s==="rtl",X=wr(u),[L,Q]=o.useState(!1);o.useEffect(()=>{Q(To())},[]);const[J,Z]=nt(d??R[0]?.key,l),[F,V]=o.useState(()=>R.findIndex(m=>m.key===J));o.useEffect(()=>{let m=R.findIndex(U=>U.key===J);m===-1&&(m=Math.max(0,Math.min(F,R.length-1)),Z(R[m]?.key)),V(m)},[R.map(m=>m.key).join("_"),J,F]);const[oe,O]=nt(null,n);o.useEffect(()=>{n||(O(`rc-tabs-${Sn}`),Sn+=1)},[]);function A(m,U){x?.(m,U);const re=m!==J;Z(m),re&&w?.(m)}const G={id:oe,activeKey:J,animated:X,tabPosition:S,rtl:z,mobile:L},j={...G,editable:c,locale:f,more:h,tabBarGutter:p,onTabClick:A,onTabScroll:y,extra:b,style:v,getPopupContainer:M,popupClassName:D(K,E?.popup),indicator:_,styles:N,classNames:E},H=o.useMemo(()=>({tabs:R,prefixCls:r}),[R,r]);return o.createElement(nn.Provider,{value:H},o.createElement("div",rt({ref:t,id:n,className:D(r,`${r}-${S}`,{[`${r}-mobile`]:L,[`${r}-editable`]:c,[`${r}-rtl`]:z},a)},P),o.createElement(Cr,rt({},j,{renderTabBar:$})),o.createElement(xr,rt({destroyOnHidden:g},G,{bodyStyle:N?.body,bodyClassName:E?.body,contentStyle:N?.content,contentClassName:E?.content,animated:X}))))}),Rr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Pr(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...ho(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...Rr,motionName:vo(e,"switch")}),n}function Ir(e){return e.filter(t=>t)}function Mr(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=Vt(t).map(r=>{if(o.isValidElement(r)){const{key:a,props:i}=r,{tab:s,...l}=i||{};return{key:String(a),...l,label:s}}return null});return Ir(n)}const Nr=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0}
vendor: 11,057 bytes, lines 1-16
1,"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ln(e,"slide-up"),ln(e,"slide-down")]]},Tr=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${C(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ln(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:C(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:C(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${C(e.borderRadiusLG)} 0 0 ${C(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 ${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_r=e=>{const{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:a}=e;return{[`${n}-dropdown`]:{...kt(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft, 2 &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft, 3 &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom, 4 &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom, 5 &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight, 6 &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Mo},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, 7 &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft, 8 &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top, 9 &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top, 10 &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight, 11 &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Io},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft, 12 &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom, 13 &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Po},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft, 14 &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top, 15 &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Ro},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${C(a)} 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":{...Xt,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${C(e.paddingXXS)} ${C(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},Lr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:s,motionDurationSlow:l,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${C(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(c=>`${c} ${l}`).join(", ")}},[`${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, 16 > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:d(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${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","top"].map(c=>`${c} ${l}`).join(", ")}},[`${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}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:C(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${C(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{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}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${C(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Or=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:i,horizontalItemPaddingSM:s,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${C(e.borderRadius)} ${C(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${C(e.borderRadius)} ${C(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${C(e.borderRadius)} ${C(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${C(e.borderRadius)} 0 0 ${C(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},zr=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:s,itemSelectedColor:l,itemColor:d}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM},[`${c}-icon > svg`]:{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}},"&-remove":{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},..._t(e)},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l},[`&${c}-focus ${c}-btn:focus-visible`]:Ln(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Dr=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:i(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}}
16,Ar=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:i,itemActiveColor:s,colorBorderSecondary:l}=e;return{[t]:{...kt(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${C(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:s},..._t(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...zr(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{..._t(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"}}}}}},Kr=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:i}=e,s=t||i,l=n||a,d=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:l,cardHeightLG:d,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-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}},Hr=Tn("Tabs",e=>{const t=_n(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${C(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${C(e.horizontalItemGutter)}`});return[Or(t),Dr(t),Lr(t),_r(t),Tr(t),Ar(t),Nr(t)]},Kr),Br=()=>null,Gr=o.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:a,size:i,onEdit:s,hideAdd:l,centered:d,addIcon:c,removeIcon:u,moreIcon:S,more:p,popupClassName:v,children:b,items:f,animated:h,style:g,indicatorSize:$,indicator:w,classNames:x,styles:y,destroyInactiveTabPane:M,destroyOnHidden:K,tabPlacement:_,tabPosition:E,...N}=e,{prefixCls:P}=N,{getPrefixCls:R,direction:z,getPopupContainer:X,className:L,style:Q,classNames:J,styles:Z}=Ut("tabs"),{tabs:F}=o.useContext(On),V=R("tabs",P),oe=yo(V),[O,A]=Hr(V,oe),G=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:G.current}));let j;n==="editable-card"&&(j={onEdit:(de,{key:ie,event:ue})=>{s?.(de==="add"?ue:ie,de)},removeIcon:u??F?.removeIcon??o.createElement($o,null),addIcon:(c??F?.addIcon)||o.createElement(No,null),showAdd:l!==!0});const H=R(),m=zn(i),U=Mr(f,b),re=Pr(V,h),$e={align:w?.align??F?.indicator?.align,size:w?.size??$??F?.indicator?.size??F?.indicatorSize},ge=o.useMemo(()=>{const de=_??E??void 0,ie=z==="rtl";switch(de){case"start":return ie?"right":"left";
16case"end":return ie?"left":"right";default:return de}},[_,E,z]),Ce={...e,size:m,tabPlacement:ge,items:U},q=ke(Q),ce=ke(g),[ee,se]=qt([J,x],[Z,q,y,ce],{props:Ce},{popup:{_default:"root"}});return o.createElement(Er,{ref:G,direction:z,getPopupContainer:X,...N,items:U,className:D({[`${V}-large`]:m==="large",[`${V}-small`]:m==="small",[`${V}-card`]:["card","editable-card"].includes(n),[`${V}-editable-card`]:n==="editable-card",[`${V}-centered`]:d},L,r,a,ee.root,O,A,oe),classNames:{...ee,popup:D(v,O,A,oe,ee.popup?.root)},styles:se,style:se.root,editable:j,more:{icon:F?.more?.icon??F?.moreIcon??S??o.createElement(cr,null),transitionName:`${H}-slide-up`,...p},prefixCls:V,animated:re,indicator:$e,destroyOnHidden:K??M,tabPosition:ge})}),Zn=Gr;Zn.TabPane=Br;const eo=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,hoverable:a=!0,...i}=e,{getPrefixCls:s}=o.useContext(On),l=s("card",n),d=D(`${l}-grid`,r,{[`${l}-grid-hoverable`]:a}),c=o.useRef(null);return o.useImperativeHandle(t,()=>({nativeElement:c.current})),o.createElement("div",{ref:c,...i,className:d})}),jr=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:i}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${C(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${C(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)} 0 0`,...Yt(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...Xt,[` 17 > ${n}-typography, 18 > ${n}-typography-edit-content 19 `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${C(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},Wr=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` 20 ${C(a)} 0 0 0 ${n}, 21 0 ${C(a)} 0 0 ${n}, 22 ${C(a)} ${C(a)} 0 0 ${n}, 23 ${C(a)} 0 0 0 ${n} inset, 24 0 ${C(a)} 0 0 ${n} inset; 25 `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Fr=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:s}=e;return{margin:0,padding:0,listStyle:"none",background:s,borderTop:`${C(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)}`,...Yt(),"& > li":{margin:r,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), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:C(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:C(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${C(e.lineWidth)} ${e.lineType} ${i}`}}}},Vr=e=>({margin:`${C(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Yt(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Xt},"&-description":{color:e.colorTextDescription}}),Xr=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${C(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${C(e.padding)} ${C(a)}`}}},kr=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Ur=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:i,bodyPadding:s,extraColor:l,motionDurationMid:d}=e;
25return{[t]:{...kt(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:jr(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:s,borderRadius:`0 0 ${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Wr(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Fr(e),[`${t}-meta`]:Vr(e)},[`${t}-bordered`]:{border:`${C(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(c=>`${c} ${d}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${C(e.borderRadiusLG)} ${C(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius: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:r}}},[`${t}-type-inner`]:Xr(e),[`${t}-loading`]:kr(e),[`${t}-rtl`]:{direction:"rtl"}}},qr=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${C(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Yr=e=>({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:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),Qr=Tn("Card",e=>{const t=_n(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Ur(t),qr(t)]},Yr),Jr=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return o.createElement("ul",{className:t,style:r},n.map((a,i)=>{const s=`action-${i}`;return o.createElement("li",{style:{width:`${100/n.length}%`},key:s},o.createElement("span",null,a))}))},Zr=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,extra:s,headStyle:l={},bodyStyle:d={},title:c,loading:u,bordered:S,variant:p,size:v,type:b,cover:f,actions:h,tabList:g,children:$,activeTabKey:w,defaultActiveTabKey:x,tabBarExtraContent:y,hoverable:M,tabProps:K={},classNames:_,styles:E,...N}=e,{getPrefixCls:P,direction:R,className:z,style:X,classNames:L,styles:Q}=Ut("card"),[J]=Co("card",p,S),Z=zn(v),F={...e,size:Z,variant:J},V=ke(X),oe=ke(i),[O,A]=qt([L,_],[Q,V,E,oe],{props:F}),G=le=>{e.onTabChange?.(le)},j=o.useMemo(()=>Vt($),[$]),H=o.useMemo(()=>j.some(le=>o.isValidElement(le)&&le.type===eo),[j]),m=P("card",n),[U,re]=Qr(m),$e=o.createElement(Eo,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),ge=w!==void 0,Ce={...K,[ge?"activeKey":"defaultActiveKey"]:ge?w:x,tabBarExtraContent:y};let q;const ce=Z!=="small"?"large":Z,ee=g?o.createElement(Zn,{size:ce,...Ce,className:`${m}-head-tabs`,onChange:G,items:g.map(({tab:le,...be})=>({label:le,...be}))}):null;if(c||s||ee){const le=D(`${m}-head`,O.header),be=D(`${m}-head-title`,O.title),ve=D(`${m}-extra`,O.extra),Pe={...l,...A.header};q=o.createElement("div",{className:le,style:Pe},o.createElement("div",{className:`${m}-head-wrapper`},c&&o.createElement("div",{className:be,style:A.title},c),s&&o.createElement("div",{className:ve,style:A.extra},s)),ee)}const se=D(`${m}-cover`,O.cover),de=f?o.createElement("div",{className:se,style:A.cover},f):null,ie=D(`${m}-body`,O.body),ue={...d,...A.body},Re=u||j.length?o.createElement("div",{className:ie,style:ue},u?$e:$):null,Me=D(`${m}-actions`,O.actions),Se=h?.length?o.createElement(Jr,{actionClasses:Me,actionStyle:A.actions,actions:h}
25):null,he=Rt(N,["onTabChange"]),Ne=D(m,z,{[`${m}-loading`]:u,[`${m}-bordered`]:J!=="borderless",[`${m}-hoverable`]:M,[`${m}-contain-grid`]:H,[`${m}-contain-tabs`]:g?.length,[`${m}-small`]:Z==="small",[`${m}-type-${b}`]:!!b,[`${m}-rtl`]:R==="rtl"},r,a,U,re,O.root),_e={...A.root};return o.createElement("div",{ref:t,...he,className:Ne,style:_e},q,de,Re,Se)}),ea=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,avatar:a,title:i,description:s,style:l,classNames:d,styles:c,...u}=e,{getPrefixCls:S,className:p,style:v,classNames:b,styles:f}=Ut("cardMeta"),g=`${S("card",n)}-meta`,$=ke(v),w=ke(l),[x,y]=qt([b,d],[f,$,c,w],{props:e}),M=D(g,r,p,x.root),K={...y.root},_=D(`${g}-avatar`,x.avatar),E=D(`${g}-title`,x.title),N=D(`${g}-description`,x.description),P=D(`${g}-section`,x.section),R=a?o.createElement("div",{className:_,style:y.avatar},a):null,z=i?o.createElement("div",{className:E,style:y.title},i):null,X=s?o.createElement("div",{className:N,style:y.description},s):null,L=z||X?o.createElement("div",{className:P,style:y.section},z,X):null,Q=o.useRef(null);return o.useImperativeHandle(t,()=>({nativeElement:Q.current})),o.createElement("div",{ref:Q,...u,className:M,style:K},R,L)}),to=Zr;to.Grid=eo;to.Meta=ea;function aa(e,{starterIds:t,time:n}={}){if(e==null)return"";const r=So(e.slug)?e.slug:e.id;let a=`${window.location.origin}/player/${r}`;const i=(t??[]).filter(d=>d!=null).map(d=>d.toString()).filter(d=>d!==""),s=new URLSearchParams;n!=null&&s.append("time",n.toISOString()),i.length>0&&s.append("selected",i.join(","));const l=s.toString();return l!==""&&(a+=`#${l}`),a}const ta=xo.getDesignToken(wo),rn=lt.div` 26 display: flex; 27`,sa=lt(rn)` 28 align-items: center; 29 justify-content: center; 30 height: 100%; 31`,ia=lt(rn)` 32 align-items: flex-start; 33 justify-content: ${({justify:e="space-between"})=>e}; 34 flex-direction: column; 35 row-gap: ${({gap:e="normal"})=>e}; 36`,la=lt.span` 37 font-weight: ${ta.fontWeightStrong} 38`,ca=lt(rn)` 39 justify-content: ${({justify:e="space-between"})=>e}; 40 align-items: ${({align:e="center"})=>e}; 41 width: ${({width:e="auto"})=>e}; 42 column-gap: ${({gap:e="normal"})=>e}; 43 flex-wrap: ${({wrap:e="nowrap"})=>e}; 44 flex-direction: row; 45`;export{la as B,to as C,Un as D,dt as E,ca as H,It as M,cr as R,tn as S,Zn as T,ia as V,qn as a,Ao as b,sa as c,aa as g,ct as u}; 46//# sourceMappingURL=MetaComponent-C_DoON5s.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.