import{N as wt,O as Et,P as Yl,r as i,l as Gl,C as vt,c as U,R as ce,Q as Nt,q as re,p as Je,_ as le,S as H,U as un,V as Cr,f as Vt,X as Cd,e as tr,Y as fn,s as V,K as xe,Z as Jt,$ as xd,a0 as Re,a1 as Ba,a2 as Gr,a3 as Zr,a4 as Sd,a5 as Qr,o as Lt,a6 as Zl,t as $n,a7 as En,T as rn,b as an,n as $t,h as Ql,v as Mt,a8 as xr,u as B,a9 as Jr,aa as wd,A as Pt,ab as $d,ac as Jl,y as es,ad as Ka,ae as In,af as Sr,x as nr,D as La,ag as ja,ah as Ed,ai as Lr,aj as Mn,ak as ts,al as Ha,am as Aa,an as Fa,ao as ns,d as en,ap as bn,aq as Id,ar as Od,as as Tn,at as rs,au as Mo,av as Wa,w as To,aw as eo,ax as Nd,ay as jr,W as os,az as as,aA as Zn,aB as Pd,aC as Rd,aD as Oi,aE as Md,aF as Td,aG as Ni,aH as is,aI as Pi,aJ as Ri,aK as Mi,aL as xn,aM as Dd,j as ne,g as to,aN as _d,G as kd,k as ls,z as ss,B as cs,m as zd,J as Bd}from"./index-8fe10136.js";import{I as Xn,J as wn,O as Kd,Q as Ld,S as Ti,F as Di,e as ds,f as jd,z as Hd,a as us,U as Ad,N as Fd}from"./stripPrefix-86b24c72.js";import{C as Wd,g as Vd,b as Ud,u as qd,c as Xd,I as Va,T as Yd,d as Gd,e as Zd,f as Qd,h as Jd,i as eu,o as tu,a as nu,H as ru}from"./Header-a7669120.js";import{u as Kt,R as kn,a as Ua,i as ou,T as fs,g as au,b as iu,c as lu,d as su}from"./index-d2bc33df.js";import{i as _i,a as ki}from"./gapSize-a2278ff3.js";import{g as Do}from"./routes-17d4ed4d.js";function _o(e){return e!=null&&e===e.window}function cu(e,t){var r,n;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return _o(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!_o(e)&&typeof a!="number"&&(a=(n=((r=e.ownerDocument)!==null&&r!==void 0?r:e).documentElement)===null||n===void 0?void 0:n[o]),a}function du(e,t,r,n){const o=r-t;return e/=n/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function uu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:r=()=>window,callback:n,duration:o=450}=t,a=r(),s=cu(a,!0),l=Date.now(),c=()=>{const f=Date.now()-l,u=du(f>o?o:f,s,e,o);_o(a)?a.scrollTo(window.pageXOffset,u):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=u:a.scrollTop=u,f{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=Cu[t];return[Yl(n,o,a,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qa=new Et("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Xa=new Et("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ya=new Et("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ga=new Et("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xu=new Et("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Su=new Et("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wu=new Et("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),$u=new Et("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Eu={"slide-up":{inKeyframes:qa,outKeyframes:Xa},"slide-down":{inKeyframes:Ya,outKeyframes:Ga},"slide-left":{inKeyframes:xu,outKeyframes:Su},"slide-right":{inKeyframes:wu,outKeyframes:$u}},Qn=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=Eu[t];return[Yl(n,o,a,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}}]},Iu=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Za=Iu;function Ou(e){return t=>i.createElement(Gl,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const Nu=(e,t,r,n)=>Ou(a=>{const{prefixCls:s,style:l}=a,c=i.useRef(null),[d,f]=i.useState(0),[u,p]=i.useState(0),[m,g]=Kt(!1,{value:a.open}),{getPrefixCls:C}=i.useContext(vt),h=C(t||"select",s);i.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(S=>{const w=S[0].target;f(w.offsetHeight+8),p(w.offsetWidth)}),x=setInterval(()=>{var S;const w=r?`.${r(h)}`:`.${h}-dropdown`,$=(S=c.current)===null||S===void 0?void 0:S.querySelector(w);$&&(clearInterval(x),y.observe($))},10);return()=>{clearInterval(x),y.disconnect()}}},[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(v=n(v));const b={paddingBottom:d,position:"relative",minWidth:u};return i.createElement("div",{ref:c,style:b},i.createElement(e,Object.assign({},v)))}),ms=Nu;var no=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,s=t.onClick,l=t.children,c;return typeof n=="function"?c=n(o):c=n,i.createElement("span",{className:r,onMouseDown:function(f){f.preventDefault(),a&&a(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:i.createElement("span",{className:U(r.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},l))};function Pu(e,t,r,n,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ce.useMemo(function(){if(Nt(n)==="object")return n.clearIcon;if(o)return o},[n,o]),d=ce.useMemo(function(){return!!(!a&&n&&(r.length||s)&&!(l==="combobox"&&s===""))},[n,a,r.length,s,l]);return{allowClear:d,clearIcon:ce.createElement(no,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}var ps=i.createContext(null);function Ru(){return i.useContext(ps)}function Mu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),r=re(t,2),n=r[0],o=r[1],a=i.useRef(null),s=function(){window.clearTimeout(a.current)};i.useEffect(function(){return s},[]);var l=function(d,f){s(),a.current=window.setTimeout(function(){o(d),f&&f()},e)};return[n,l,s]}function vs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),r=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function Tu(e,t,r,n){var o=i.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},i.useEffect(function(){function a(s){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),o.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(c)&&d!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}var Du=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Hn=void 0;function _u(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,d=e.itemKey,f=e.className,u=e.style,p=e.children,m=e.display,g=e.order,C=e.component,h=C===void 0?"div":C,v=Je(e,Du),b=s&&!m;function y(N){c(d,N)}i.useEffect(function(){return function(){y(null)}},[]);var x=a&&o!==Hn?a(o):p,S;n||(S={opacity:b?0:1,height:b?0:Hn,overflowY:b?"hidden":Hn,order:s?g:Hn,pointerEvents:b?"none":Hn,position:b?"absolute":Hn});var w={};b&&(w["aria-hidden"]=!0);var $=i.createElement(h,le({className:U(!n&&r,f),style:H(H({},S),u)},w,v,{ref:t}),x);return s&&($=i.createElement(kn,{onResize:function(E){var R=E.offsetWidth;y(R)},disabled:l},$)),$}var hr=i.forwardRef(_u);hr.displayName="Item";function ku(e){if(typeof MessageChannel>"u")wt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function zu(){var e=i.useRef(null),t=function(n){e.current||(e.current=[],ku(function(){Cr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function cr(e,t){var r=i.useState(t),n=re(r,2),o=n[0],a=n[1],s=un(function(l){e(function(){a(l)})});return[o,s]}var Ar=ce.createContext(null),Bu=["component"],Ku=["className"],Lu=["className"],ju=function(t,r){var n=i.useContext(Ar);if(!n){var o=t.component,a=o===void 0?"div":o,s=Je(t,Bu);return i.createElement(a,le({},s,{ref:r}))}var l=n.className,c=Je(n,Ku),d=t.className,f=Je(t,Lu);return i.createElement(Ar.Provider,{value:null},i.createElement(hr,le({ref:r,className:U(l,d)},c,f)))},gs=i.forwardRef(ju);gs.displayName="RawItem";var Hu=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],hs="responsive",bs="invalidate";function Au(e){return"+ ".concat(e.length," ...")}function Fu(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,a=o===void 0?[]:o,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,d=e.itemWidth,f=d===void 0?10:d,u=e.ssr,p=e.style,m=e.className,g=e.maxCount,C=e.renderRest,h=e.renderRawRest,v=e.suffix,b=e.component,y=b===void 0?"div":b,x=e.itemComponent,S=e.onVisibleChange,w=Je(e,Hu),$=u==="full",N=zu(),E=cr(N,null),R=re(E,2),M=R[0],P=R[1],O=M||0,I=cr(N,new Map),T=re(I,2),_=T[0],D=T[1],k=cr(N,0),Y=re(k,2),z=Y[0],L=Y[1],ee=cr(N,0),ie=re(ee,2),de=ie[0],Q=ie[1],J=cr(N,0),se=re(J,2),q=se[0],X=se[1],Z=i.useState(null),K=re(Z,2),A=K[0],j=K[1],G=i.useState(null),F=re(G,2),W=F[0],oe=F[1],pe=i.useMemo(function(){return W===null&&$?Number.MAX_SAFE_INTEGER:W||0},[W,M]),Ce=i.useState(!1),ae=re(Ce,2),Ne=ae[0],he=ae[1],ze="".concat(n,"-item"),be=Math.max(z,de),De=g===hs,me=a.length&&De,Ye=g===bs,Ae=me||typeof g=="number"&&a.length>g,et=i.useMemo(function(){var Ie=a;return me?M===null&&$?Ie=a:Ie=a.slice(0,Math.min(a.length,O/f)):typeof g=="number"&&(Ie=a.slice(0,g)),Ie},[a,f,M,g,me]),$e=i.useMemo(function(){return me?a.slice(pe+1):a.slice(et.length)},[a,et,me,pe]),fe=i.useCallback(function(Ie,ke){var te;return typeof c=="function"?c(Ie):(te=c&&(Ie==null?void 0:Ie[c]))!==null&&te!==void 0?te:ke},[c]),Oe=i.useCallback(s||function(Ie){return Ie},[s]);function Le(Ie,ke,te){W===Ie&&(ke===void 0||ke===A)||(oe(Ie),te||(he(IeO){Le(ve-1,Ie-ue-q+de);break}}v&&rt(0)+q>O&&j(null)}},[O,_,de,q,fe,et]);var ot=Ne&&!!$e.length,Xe={};A!==null&&me&&(Xe={position:"absolute",left:A,top:0});var ft={prefixCls:ze,responsive:me,component:x,invalidate:Ye},gt=l?function(Ie,ke){var te=fe(Ie,ke);return i.createElement(Ar.Provider,{key:te,value:H(H({},ft),{},{order:ke,item:Ie,itemKey:te,registerSize:Me,display:ke<=pe})},l(Ie,ke))}:function(Ie,ke){var te=fe(Ie,ke);return i.createElement(hr,le({},ft,{order:ke,key:te,item:Ie,renderItem:Oe,itemKey:te,registerSize:Me,display:ke<=pe}))},ht,st={order:ot?pe:Number.MAX_SAFE_INTEGER,className:"".concat(ze,"-rest"),registerSize:_e,display:ot};if(h)h&&(ht=i.createElement(Ar.Provider,{value:H(H({},ft),st)},h($e)));else{var tt=C||Au;ht=i.createElement(hr,le({},ft,st),typeof tt=="function"?tt($e):tt)}var je=i.createElement(y,le({className:U(!Ye&&n,m),style:p,ref:t},w),et.map(gt),Ae?ht:null,v&&i.createElement(hr,le({},ft,{responsive:De,responsiveDisabled:!me,order:pe,className:"".concat(ze,"-suffix"),registerSize:it,display:!0,style:Xe}),v));return De&&(je=i.createElement(kn,{onResize:We,disabled:!me},je)),je}var dn=i.forwardRef(Fu);dn.displayName="Overflow";dn.Item=gs;dn.RESPONSIVE=hs;dn.INVALIDATE=bs;var Wu=function(t,r){var n,o=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,d=t.autoFocus,f=t.autoComplete,u=t.editable,p=t.activeDescendantId,m=t.value,g=t.maxLength,C=t.onKeyDown,h=t.onMouseDown,v=t.onChange,b=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,S=t.open,w=t.attrs,$=s||i.createElement("input",null),N=$,E=N.ref,R=N.props,M=R.onKeyDown,P=R.onChange,O=R.onMouseDown,I=R.onCompositionStart,T=R.onCompositionEnd,_=R.style;return Cd(!("maxLength"in $.props)),$=i.cloneElement($,H(H(H({type:"search"},R),{},{id:a,ref:tr(r,E),disabled:l,tabIndex:c,autoComplete:f||"off",autoFocus:d,className:U("".concat(o,"-selection-search-input"),(n=$)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?p:void 0},w),{},{value:u?m:"",maxLength:g,readOnly:!u,unselectable:u?null:"on",style:H(H({},_),{},{opacity:u?null:0}),onKeyDown:function(k){C(k),M&&M(k)},onMouseDown:function(k){h(k),O&&O(k)},onChange:function(k){v(k),P&&P(k)},onCompositionStart:function(k){y(k),I&&I(k)},onCompositionEnd:function(k){x(k),T&&T(k)},onPaste:b})),$},Qa=i.forwardRef(Wu);Qa.displayName="Input";function ys(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Vu=typeof window<"u"&&window.document&&window.document.documentElement,Uu=Vu;function qu(e){return e!=null}function Xu(e){return!e&&e!==0}function zi(e){return["string","number"].includes(Nt(e))}function Cs(e){var t=void 0;return e&&(zi(e.title)?t=e.title.toString():zi(e.label)&&(t=e.label.toString())),t}function Yu(e,t){Uu?i.useLayoutEffect(e,t):i.useEffect(e,t)}function Gu(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Bi=function(t){t.preventDefault(),t.stopPropagation()},Zu=function(t){var r=t.id,n=t.prefixCls,o=t.values,a=t.open,s=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,d=t.placeholder,f=t.disabled,u=t.mode,p=t.showSearch,m=t.autoFocus,g=t.autoComplete,C=t.activeDescendantId,h=t.tabIndex,v=t.removeIcon,b=t.maxTagCount,y=t.maxTagTextLength,x=t.maxTagPlaceholder,S=x===void 0?function(j){return"+ ".concat(j.length," ...")}:x,w=t.tagRender,$=t.onToggleOpen,N=t.onRemove,E=t.onInputChange,R=t.onInputPaste,M=t.onInputKeyDown,P=t.onInputMouseDown,O=t.onInputCompositionStart,I=t.onInputCompositionEnd,T=i.useRef(null),_=i.useState(0),D=re(_,2),k=D[0],Y=D[1],z=i.useState(!1),L=re(z,2),ee=L[0],ie=L[1],de="".concat(n,"-selection"),Q=a||u==="multiple"&&l===!1||u==="tags"?s:"",J=u==="tags"||u==="multiple"&&l===!1||p&&(a||ee);Yu(function(){Y(T.current.scrollWidth)},[Q]);function se(j,G,F,W,oe){return i.createElement("span",{className:U("".concat(de,"-item"),V({},"".concat(de,"-item-disabled"),F)),title:Cs(j)},i.createElement("span",{className:"".concat(de,"-item-content")},G),W&&i.createElement(no,{className:"".concat(de,"-item-remove"),onMouseDown:Bi,onClick:oe,customizeIcon:v},"×"))}function q(j,G,F,W,oe){var pe=function(ae){Bi(ae),$(!a)};return i.createElement("span",{onMouseDown:pe},w({label:G,value:j,disabled:F,closable:W,onClose:oe}))}function X(j){var G=j.disabled,F=j.label,W=j.value,oe=!f&&!G,pe=F;if(typeof y=="number"&&(typeof F=="string"||typeof F=="number")){var Ce=String(pe);Ce.length>y&&(pe="".concat(Ce.slice(0,y),"..."))}var ae=function(he){he&&he.stopPropagation(),N(j)};return typeof w=="function"?q(W,pe,G,oe,ae):se(j,pe,G,oe,ae)}function Z(j){var G=typeof S=="function"?S(j):S;return se({title:G},G,!1)}var K=i.createElement("div",{className:"".concat(de,"-search"),style:{width:k},onFocus:function(){ie(!0)},onBlur:function(){ie(!1)}},i.createElement(Qa,{ref:c,open:a,prefixCls:n,id:r,inputElement:null,disabled:f,autoFocus:m,autoComplete:g,editable:J,activeDescendantId:C,value:Q,onKeyDown:M,onMouseDown:P,onChange:E,onPaste:R,onCompositionStart:O,onCompositionEnd:I,tabIndex:h,attrs:fn(t,!0)}),i.createElement("span",{ref:T,className:"".concat(de,"-search-mirror"),"aria-hidden":!0},Q," ")),A=i.createElement(dn,{prefixCls:"".concat(de,"-overflow"),data:o,renderItem:X,renderRest:Z,suffix:K,itemKey:Gu,maxCount:b});return i.createElement(i.Fragment,null,A,!o.length&&!Q&&i.createElement("span",{className:"".concat(de,"-placeholder")},d))},Qu=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,a=t.inputRef,s=t.disabled,l=t.autoFocus,c=t.autoComplete,d=t.activeDescendantId,f=t.mode,u=t.open,p=t.values,m=t.placeholder,g=t.tabIndex,C=t.showSearch,h=t.searchValue,v=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,$=t.onInputCompositionStart,N=t.onInputCompositionEnd,E=t.title,R=i.useState(!1),M=re(R,2),P=M[0],O=M[1],I=f==="combobox",T=I||C,_=p[0],D=h||"";I&&v&&!P&&(D=v),i.useEffect(function(){I&&O(!1)},[I,v]);var k=f!=="combobox"&&!u&&!C?!1:!!D,Y=E===void 0?Cs(_):E,z=function(){if(_)return null;var ee=k?{visibility:"hidden"}:void 0;return i.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:ee},m)};return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(n,"-selection-search")},i.createElement(Qa,{ref:a,prefixCls:n,id:o,open:u,inputElement:r,disabled:s,autoFocus:l,autoComplete:c,editable:T,activeDescendantId:d,value:D,onKeyDown:y,onMouseDown:x,onChange:function(ee){O(!0),S(ee)},onPaste:w,onCompositionStart:$,onCompositionEnd:N,tabIndex:g,attrs:fn(t,!0),maxLength:I?b:void 0})),!I&&_?i.createElement("span",{className:"".concat(n,"-selection-item"),title:Y,style:k?{visibility:"hidden"}:void 0},_.label):null,z())};function Ju(e){return![xe.ESC,xe.SHIFT,xe.BACKSPACE,xe.TAB,xe.WIN_KEY,xe.ALT,xe.META,xe.WIN_KEY_RIGHT,xe.CTRL,xe.SEMICOLON,xe.EQUALS,xe.CAPS_LOCK,xe.CONTEXT_MENU,xe.F1,xe.F2,xe.F3,xe.F4,xe.F5,xe.F6,xe.F7,xe.F8,xe.F9,xe.F10,xe.F11,xe.F12].includes(e)}var ef=function(t,r){var n=i.useRef(null),o=i.useRef(!1),a=t.prefixCls,s=t.open,l=t.mode,c=t.showSearch,d=t.tokenWithEnter,f=t.autoClearSearchValue,u=t.onSearch,p=t.onSearchSubmit,m=t.onToggleOpen,g=t.onInputKeyDown,C=t.domRef;i.useImperativeHandle(r,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var h=vs(0),v=re(h,2),b=v[0],y=v[1],x=function(D){var k=D.which;(k===xe.UP||k===xe.DOWN)&&D.preventDefault(),g&&g(D),k===xe.ENTER&&l==="tags"&&!o.current&&!s&&(p==null||p(D.target.value)),Ju(k)&&m(!0)},S=function(){y(!0)},w=i.useRef(null),$=function(D){u(D,!0,o.current)!==!1&&m(!0)},N=function(){o.current=!0},E=function(D){o.current=!1,l!=="combobox"&&$(D.target.value)},R=function(D){var k=D.target.value;if(d&&w.current&&/[\r\n]/.test(w.current)){var Y=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(Y,w.current)}w.current=null,$(k)},M=function(D){var k=D.clipboardData,Y=k.getData("text");w.current=Y},P=function(D){var k=D.target;if(k!==n.current){var Y=document.body.style.msTouchAction!==void 0;Y?setTimeout(function(){n.current.focus()}):n.current.focus()}},O=function(D){var k=b();D.target!==n.current&&!k&&l!=="combobox"&&D.preventDefault(),(l!=="combobox"&&(!c||!k)||!s)&&(s&&f!==!1&&u("",!0,!1),m())},I={inputRef:n,onInputKeyDown:x,onInputMouseDown:S,onInputChange:R,onInputPaste:M,onInputCompositionStart:N,onInputCompositionEnd:E},T=l==="multiple"||l==="tags"?i.createElement(Zu,le({},t,I)):i.createElement(Qu,le({},t,I));return i.createElement("div",{ref:C,className:"".concat(a,"-selector"),onClick:P,onMouseDown:O},T)},xs=i.forwardRef(ef);xs.displayName="Selector";var tf=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],nf=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},rf=function(t,r){var n=t.prefixCls;t.disabled;var o=t.visible,a=t.children,s=t.popupElement,l=t.animation,c=t.transitionName,d=t.dropdownStyle,f=t.dropdownClassName,u=t.direction,p=u===void 0?"ltr":u,m=t.placement,g=t.builtinPlacements,C=t.dropdownMatchSelectWidth,h=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,S=t.onPopupVisibleChange,w=t.onPopupMouseEnter,$=Je(t,tf),N="".concat(n,"-dropdown"),E=s;h&&(E=h(s));var R=i.useMemo(function(){return g||nf(C)},[g,C]),M=l?"".concat(N,"-").concat(l):c,P=typeof C=="number",O=i.useMemo(function(){return P?null:C===!1?"minWidth":"width"},[C,P]),I=d;P&&(I=H(H({},I),{},{width:C}));var T=i.useRef(null);return i.useImperativeHandle(r,function(){return{getPopupElement:function(){return T.current}}}),i.createElement(Ua,le({},$,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:m||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:N,popupTransitionName:M,popup:i.createElement("div",{ref:T,onMouseEnter:w},E),stretch:O,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:U(f,V({},"".concat(N,"-empty"),y)),popupStyle:I,getTriggerDOMNode:x,onPopupVisibleChange:S}),a)},Ss=i.forwardRef(rf);Ss.displayName="SelectTrigger";function Ki(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function ws(e,t){var r=e||{},n=r.label,o=r.value,a=r.options,s=r.groupLabel,l=n||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:s||l}}function of(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],a=ws(r,!1),s=a.label,l=a.value,c=a.options,d=a.groupLabel;function f(u,p){u.forEach(function(m){if(p||!(c in m)){var g=m[l];o.push({key:Ki(m,o.length),groupOption:p,data:m,label:m[s],value:g})}else{var C=m[d];C===void 0&&n&&(C=m.label),o.push({key:Ki(m,o.length),group:!0,data:m,label:C}),f(m[c],!0)}})}return f(e,!1),o}function ko(e){var t=H({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Jt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function af(e,t){if(!t||!t.length)return null;var r=!1;function n(a,s){var l=xd(s),c=l[0],d=l.slice(1);if(!c)return[a];var f=a.split(c);return r=r||f.length>1,f.reduce(function(u,p){return[].concat(Re(u),Re(n(p,d)))},[]).filter(function(u){return u})}var o=n(e,t);return r?o:null}var lf=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sf=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function zo(e){return e==="tags"||e==="multiple"}var cf=i.forwardRef(function(e,t){var r,n,o=e.id,a=e.prefixCls,s=e.className,l=e.showSearch,c=e.tagRender,d=e.direction,f=e.omitDomProps,u=e.displayValues,p=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,C=g===void 0?"Not Found":g,h=e.onClear,v=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,S=e.getRawInputElement,w=e.open,$=e.defaultOpen,N=e.onDropdownVisibleChange,E=e.activeValue,R=e.onActiveValueChange,M=e.activeDescendantId,P=e.searchValue,O=e.autoClearSearchValue,I=e.onSearch,T=e.onSearchSplit,_=e.tokenSeparators,D=e.allowClear,k=e.suffixIcon,Y=e.clearIcon,z=e.OptionList,L=e.animation,ee=e.transitionName,ie=e.dropdownStyle,de=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,J=e.dropdownRender,se=e.dropdownAlign,q=e.placement,X=e.builtinPlacements,Z=e.getPopupContainer,K=e.showAction,A=K===void 0?[]:K,j=e.onFocus,G=e.onBlur,F=e.onKeyUp,W=e.onKeyDown,oe=e.onMouseDown,pe=Je(e,lf),Ce=zo(v),ae=(l!==void 0?l:Ce)||v==="combobox",Ne=H({},pe);sf.forEach(function(Ue){delete Ne[Ue]}),f==null||f.forEach(function(Ue){delete Ne[Ue]});var he=i.useState(!1),ze=re(he,2),be=ze[0],De=ze[1];i.useEffect(function(){De(ou())},[]);var me=i.useRef(null),Ye=i.useRef(null),Ae=i.useRef(null),et=i.useRef(null),$e=i.useRef(null),fe=i.useRef(!1),Oe=Mu(),Le=re(Oe,3),We=Le[0],Me=Le[1],_e=Le[2];i.useImperativeHandle(t,function(){var Ue,we;return{focus:(Ue=et.current)===null||Ue===void 0?void 0:Ue.focus,blur:(we=et.current)===null||we===void 0?void 0:we.blur,scrollTo:function(qe){var nt;return(nt=$e.current)===null||nt===void 0?void 0:nt.scrollTo(qe)}}});var it=i.useMemo(function(){var Ue;if(v!=="combobox")return P;var we=(Ue=u[0])===null||Ue===void 0?void 0:Ue.value;return typeof we=="string"||typeof we=="number"?String(we):""},[P,v,u]),rt=v==="combobox"&&typeof x=="function"&&x()||null,ot=typeof S=="function"&&S(),Xe=Ba(Ye,ot==null||(r=ot.props)===null||r===void 0?void 0:r.ref),ft=i.useState(!1),gt=re(ft,2),ht=gt[0],st=gt[1];Vt(function(){st(!0)},[]);var tt=Kt(!1,{defaultValue:$,value:w}),je=re(tt,2),Ie=je[0],ke=je[1],te=ht?Ie:!1,ve=!C&&m;(b||ve&&te&&v==="combobox")&&(te=!1);var ue=ve?!1:te,ye=i.useCallback(function(Ue){var we=Ue!==void 0?Ue:!te;b||(ke(we),te!==we&&(N==null||N(we)))},[b,te,ke,N]),Ve=i.useMemo(function(){return(_||[]).some(function(Ue){return[` `,`\r `].includes(Ue)})},[_]),Ge=function(we,Ke,qe){var nt=!0,dt=we;R==null||R(null);var St=qe?null:af(we,_);return v!=="combobox"&&St&&(dt="",T==null||T(St),ye(!1),nt=!1),I&&it!==dt&&I(dt,{source:Ke?"typing":"effect"}),nt},Ct=function(we){!we||!we.trim()||I(we,{source:"submit"})};i.useEffect(function(){!te&&!Ce&&v!=="combobox"&&Ge("",!1,!1)},[te]),i.useEffect(function(){Ie&&b&&ke(!1),b&&!fe.current&&Me(!1)},[b]);var ge=vs(),Pe=re(ge,2),He=Pe[0],Fe=Pe[1],lt=function(we){var Ke=He(),qe=we.which;if(qe===xe.ENTER&&(v!=="combobox"&&we.preventDefault(),te||ye(!0)),Fe(!!it),qe===xe.BACKSPACE&&!Ke&&Ce&&!it&&u.length){for(var nt=Re(u),dt=null,St=nt.length-1;St>=0;St-=1){var Xt=nt[St];if(!Xt.disabled){nt.splice(St,1),dt=Xt;break}}dt&&p(nt,{type:"remove",values:[dt]})}for(var Yt=arguments.length,Gt=new Array(Yt>1?Yt-1:0),Wt=1;Wt1?Ke-1:0),nt=1;nt1?St-1:0),Yt=1;Yt0,ie=i.useMemo(function(){if(a===0||z===0)return 0;var A=a/z;return A*L},[a,z,L]),de=function(j){j.stopPropagation(),j.preventDefault()},Q=i.useRef({top:ie,dragging:v,pageY:S,startTop:E});Q.current={top:ie,dragging:v,pageY:S,startTop:E};var J=function(j){b(!0),w(Li(j,f)),R(Q.current.top),l(),j.stopPropagation(),j.preventDefault()};i.useEffect(function(){var A=function(W){W.preventDefault()},j=P.current,G=O.current;return j.addEventListener("touchstart",A),G.addEventListener("touchstart",J),function(){j.removeEventListener("touchstart",A),G.removeEventListener("touchstart",J)}},[]);var se=i.useRef();se.current=z;var q=i.useRef();q.current=L,i.useEffect(function(){if(v){var A,j=function(W){var oe=Q.current,pe=oe.dragging,Ce=oe.pageY,ae=oe.startTop;if(wt.cancel(A),pe){var Ne=Li(W,f)-Ce,he=ae;!M&&f?he-=Ne:he+=Ne;var ze=se.current,be=q.current,De=be?he/be:0,me=Math.ceil(De*ze);me=Math.max(me,0),me=Math.min(me,ze),A=wt(function(){d(me,f)})}},G=function(){b(!1),c()};return window.addEventListener("mousemove",j),window.addEventListener("touchmove",j),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),function(){window.removeEventListener("mousemove",j),window.removeEventListener("touchmove",j),window.removeEventListener("mouseup",G),window.removeEventListener("touchend",G),wt.cancel(A)}}},[v]),i.useEffect(function(){Y()},[a]),i.useImperativeHandle(t,function(){return{delayHidden:Y}});var X="".concat(n,"-scrollbar"),Z={position:"absolute",visibility:_&&ee?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(Z.height=8,Z.left=0,Z.right=0,Z.bottom=0,K.height="100%",K.width=u,M?K.left=ie:K.right=ie):(Z.width=8,Z.top=0,Z.bottom=0,M?Z.right=0:Z.left=0,K.width="100%",K.height=u,K.top=ie),i.createElement("div",{ref:P,className:U(X,(r={},V(r,"".concat(X,"-horizontal"),f),V(r,"".concat(X,"-vertical"),!f),V(r,"".concat(X,"-visible"),_),r)),style:H(H({},Z),m),onMouseDown:de,onMouseMove:Y},i.createElement("div",{ref:O,className:U("".concat(X,"-thumb"),V({},"".concat(X,"-thumb-moving"),v)),style:H(H({},K),g),onMouseDown:J}))});function df(e){var t=e.children,r=e.setRef,n=i.useCallback(function(o){r(o)},[]);return i.cloneElement(t,{ref:n})}function uf(e,t,r,n,o,a,s){var l=s.getKey;return e.slice(t,r+1).map(function(c,d){var f=t+d,u=a(c,f,{style:{width:n}}),p=l(c);return i.createElement(df,{key:p,setRef:function(g){return o(c,g)}},u)})}var ff=function(){function e(){Zr(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Gr(e,[{key:"set",value:function(r,n){this.maps[r]=n,this.id+=1}},{key:"get",value:function(r){return this.maps[r]}}]),e}();function mf(e,t,r){var n=i.useState(0),o=re(n,2),a=o[0],s=o[1],l=i.useRef(new Map),c=i.useRef(new ff),d=i.useRef();function f(){wt.cancel(d.current)}function u(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;f();var g=function(){l.current.forEach(function(h,v){if(h&&h.offsetParent){var b=Sd(h),y=b.offsetHeight;c.current.get(v)!==y&&c.current.set(v,b.offsetHeight)}}),s(function(h){return h+1})};m?g():d.current=wt(g)}function p(m,g){var C=e(m),h=l.current.get(C);g?(l.current.set(C,g),u()):l.current.delete(C),!h!=!g&&(g?t==null||t(m):r==null||r(m))}return i.useEffect(function(){return f},[]),[p,u,c.current,a]}var pf=10;function vf(e,t,r,n,o,a,s,l){var c=i.useRef(),d=i.useState(null),f=re(d,2),u=f[0],p=f[1];return Vt(function(){if(u&&u.times=0;I-=1){var T=o(t[I]),_=r.get(T);if(_===void 0){b=!0;break}if(O-=_,O<=0)break}switch(S){case"top":x=$-h;break;case"bottom":x=N-v+h;break;default:{var D=e.current.scrollTop,k=D+v;$k&&(y="bottom")}}x!==null&&s(x),x!==u.lastTop&&(b=!0)}b&&p(H(H({},u),{},{times:u.times+1,targetAlign:y,lastTop:x}))}},[u,e.current]),function(m){if(m==null){l();return}if(wt.cancel(c.current),typeof m=="number")s(m);else if(m&&Nt(m)==="object"){var g,C=m.align;"index"in m?g=m.index:g=t.findIndex(function(b){return o(b)===m.key});var h=m.offset,v=h===void 0?0:h;p({times:0,index:g,offset:v,originAlign:C})}}}function gf(e,t,r){var n=e.length,o=t.length,a,s;if(n===0&&o===0)return null;n"u"?"undefined":Nt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Es=function(e,t){var r=i.useRef(!1),n=i.useRef(null);function o(){clearTimeout(n.current),r.current=!0,n.current=setTimeout(function(){r.current=!1},50)}var a=i.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=s<0&&a.current.top||s>0&&a.current.bottom;return l&&c?(clearTimeout(n.current),r.current=!1):(!c||r.current)&&o(),!r.current&&c}};function bf(e,t,r,n,o){var a=i.useRef(0),s=i.useRef(null),l=i.useRef(null),c=i.useRef(!1),d=Es(t,r);function f(h,v){wt.cancel(s.current),a.current+=v,l.current=v,!d(v)&&(Hi||h.preventDefault(),s.current=wt(function(){var b=c.current?10:1;o(a.current*b),a.current=0}))}function u(h,v){o(v,!0),Hi||h.preventDefault()}var p=i.useRef(null),m=i.useRef(null);function g(h){if(e){wt.cancel(m.current),m.current=wt(function(){p.current=null},2);var v=h.deltaX,b=h.deltaY,y=h.shiftKey,x=v,S=b;(p.current==="sx"||!p.current&&y&&b&&!v)&&(x=b,S=0,p.current="sx");var w=Math.abs(x),$=Math.abs(S);p.current===null&&(p.current=n&&w>$?"x":"y"),p.current==="y"?f(h,S):u(h,x)}}function C(h){e&&(c.current=h.detail===l.current)}return[g,C]}var yf=14/15;function Cf(e,t,r){var n=i.useRef(!1),o=i.useRef(0),a=i.useRef(null),s=i.useRef(null),l,c=function(p){if(n.current){var m=Math.ceil(p.touches[0].pageY),g=o.current-m;o.current=m,r(g)&&p.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=yf,(!r(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},d=function(){n.current=!1,l()},f=function(p){l(),p.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",d))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",d))},Vt(function(){return e&&t.current.addEventListener("touchstart",f),function(){var u;(u=t.current)===null||u===void 0||u.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var xf=20;function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*100;return isNaN(r)&&(r=0),r=Math.max(r,xf),r=Math.min(r,e/2),Math.floor(r)}function Sf(e,t,r,n){var o=i.useMemo(function(){return[new Map,[]]},[e,r.id,n]),a=re(o,2),s=a[0],l=a[1],c=function(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,p=s.get(f),m=s.get(u);if(p===void 0||m===void 0)for(var g=e.length,C=l.length;Ca||!!C),M=g==="rtl",P=U(n,V({},"".concat(n,"-rtl"),M),o),O=f||$f,I=i.useRef(),T=i.useRef(),_=i.useState(0),D=re(_,2),k=D[0],Y=D[1],z=i.useState(0),L=re(z,2),ee=L[0],ie=L[1],de=i.useState(!1),Q=re(de,2),J=Q[0],se=Q[1],q=function(){se(!0)},X=function(){se(!1)},Z=i.useCallback(function(Ee){return typeof p=="function"?p(Ee):Ee==null?void 0:Ee[p]},[p]),K={getKey:Z};function A(Ee){Y(function(Se){var Be;typeof Ee=="function"?Be=Ee(Se):Be=Ee;var ut=Xe(Be);return I.current.scrollTop=ut,ut})}var j=i.useRef({start:0,end:O.length}),G=i.useRef(),F=hf(O,Z),W=re(F,1),oe=W[0];G.current=oe;var pe=mf(Z,null,null),Ce=re(pe,4),ae=Ce[0],Ne=Ce[1],he=Ce[2],ze=Ce[3],be=i.useMemo(function(){if(!E)return{scrollHeight:void 0,start:0,end:O.length-1,offset:void 0};if(!R){var Ee;return{scrollHeight:((Ee=T.current)===null||Ee===void 0?void 0:Ee.offsetHeight)||0,start:0,end:O.length-1,offset:void 0}}for(var Se=0,Be,ut,pt,It=O.length,Tt=0;Tt=k&&Be===void 0&&(Be=Tt,ut=Se),Rt>k+a&&pt===void 0&&(pt=Tt),Se=Rt}return Be===void 0&&(Be=0,ut=0,pt=Math.ceil(a/s)),pt===void 0&&(pt=O.length-1),pt=Math.min(pt+1,O.length-1),{scrollHeight:Se,start:Be,end:pt,offset:ut}},[R,E,k,O,ze,a]),De=be.scrollHeight,me=be.start,Ye=be.end,Ae=be.offset;j.current.start=me,j.current.end=Ye;var et=i.useState({width:0,height:a}),$e=re(et,2),fe=$e[0],Oe=$e[1],Le=function(Se){Oe({width:Se.width||Se.offsetWidth,height:Se.height||Se.offsetHeight})},We=i.useRef(),Me=i.useRef(),_e=i.useMemo(function(){return Ai(fe.width,C)},[fe.width,C]),it=i.useMemo(function(){return Ai(fe.height,De)},[fe.height,De]),rt=De-a,ot=i.useRef(rt);ot.current=rt;function Xe(Ee){var Se=Ee;return Number.isNaN(ot.current)||(Se=Math.min(Se,ot.current)),Se=Math.max(Se,0),Se}var ft=k<=0,gt=k>=rt,ht=Es(ft,gt),st=function(){return{x:M?-ee:ee,y:k}},tt=i.useRef(st()),je=un(function(){if(y){var Ee=st();(tt.current.x!==Ee.x||tt.current.y!==Ee.y)&&(y(Ee),tt.current=Ee)}});function Ie(Ee,Se){var Be=Ee;Se?(Cr.flushSync(function(){ie(Be)}),je()):A(Be)}function ke(Ee){var Se=Ee.currentTarget.scrollTop;Se!==k&&A(Se),b==null||b(Ee),je()}var te=function(Se){var Be=Se,ut=C-fe.width;return Be=Math.max(Be,0),Be=Math.min(Be,ut),Be},ve=un(function(Ee,Se){Se?(Cr.flushSync(function(){ie(function(Be){var ut=Be+(M?-Ee:Ee);return te(ut)})}),je()):A(function(Be){var ut=Be+Ee;return ut})}),ue=bf(E,ft,gt,!!C,ve),ye=re(ue,2),Ve=ye[0],Ge=ye[1];Cf(E,I,function(Ee,Se){return ht(Ee,Se)?!1:(Ve({preventDefault:function(){},deltaY:Ee}),!0)}),Vt(function(){function Ee(Be){E&&Be.preventDefault()}var Se=I.current;return Se.addEventListener("wheel",Ve),Se.addEventListener("DOMMouseScroll",Ge),Se.addEventListener("MozMousePixelScroll",Ee),function(){Se.removeEventListener("wheel",Ve),Se.removeEventListener("DOMMouseScroll",Ge),Se.removeEventListener("MozMousePixelScroll",Ee)}},[E]),Vt(function(){C&&ie(function(Ee){return te(Ee)})},[fe.width,C]);var Ct=function(){var Se,Be;(Se=We.current)===null||Se===void 0||Se.delayHidden(),(Be=Me.current)===null||Be===void 0||Be.delayHidden()},ge=vf(I,O,he,s,Z,function(){return Ne(!0)},A,Ct);i.useImperativeHandle(t,function(){return{getScrollInfo:st,scrollTo:function(Se){function Be(ut){return ut&&Nt(ut)==="object"&&("left"in ut||"top"in ut)}Be(Se)?(Se.left!==void 0&&ie(te(Se.left)),ge(Se.top)):ge(Se)}}}),Vt(function(){if(x){var Ee=O.slice(me,Ye+1);x(Ee,O)}},[me,Ye,O]);var Pe=Sf(O,Z,he,s),He=w==null?void 0:w({start:me,end:Ye,virtual:R,offsetX:ee,offsetY:Ae,rtl:M,getSize:Pe}),Fe=uf(O,me,Ye,C,ae,u,K),lt=null;a&&(lt=H(V({},c?"height":"maxHeight",a),Ef),E&&(lt.overflowY="hidden",C&&(lt.overflowX="hidden"),J&&(lt.pointerEvents="none")));var mt={};return M&&(mt.dir="rtl"),i.createElement("div",le({style:H(H({},d),{},{position:"relative"}),className:P},mt,N),i.createElement(kn,{onResize:Le},i.createElement(v,{className:"".concat(n,"-holder"),style:lt,ref:I,onScroll:ke,onMouseEnter:Ct},i.createElement($s,{prefixCls:n,height:De,offsetX:ee,offsetY:Ae,scrollWidth:C,onInnerResize:Ne,ref:T,innerProps:S,rtl:M,extra:He},Fe))),R&&De>a&&i.createElement(ji,{ref:We,prefixCls:n,scrollOffset:k,scrollRange:De,rtl:M,onScroll:Ie,onStartMove:q,onStopMove:X,spinSize:it,containerSize:fe.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb}),R&&C&&i.createElement(ji,{ref:Me,prefixCls:n,scrollOffset:ee,scrollRange:C,rtl:M,onScroll:Ie,onStartMove:q,onStopMove:X,spinSize:_e,containerSize:fe.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb}))}var ro=i.forwardRef(If);ro.displayName="List";var Is=i.createContext(null);function Of(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Nf=["disabled","title","children","style","className"];function Fi(e){return typeof e=="string"||typeof e=="number"}var Pf=function(t,r){var n=Ru(),o=n.prefixCls,a=n.id,s=n.open,l=n.multiple,c=n.mode,d=n.searchValue,f=n.toggleOpen,u=n.notFoundContent,p=n.onPopupScroll,m=i.useContext(Is),g=m.flattenOptions,C=m.onActiveValue,h=m.defaultActiveFirstOption,v=m.onSelect,b=m.menuItemSelectedIcon,y=m.rawValues,x=m.fieldNames,S=m.virtual,w=m.direction,$=m.listHeight,N=m.listItemHeight,E=m.optionRender,R="".concat(o,"-item"),M=Qr(function(){return g},[s,g],function(q,X){return X[0]&&q[1]!==X[1]}),P=i.useRef(null),O=function(X){X.preventDefault()},I=function(X){P.current&&P.current.scrollTo(typeof X=="number"?{index:X}:X)},T=function(X){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,K=M.length,A=0;A1&&arguments[1]!==void 0?arguments[1]:!1;Y(X);var K={source:Z?"keyboard":"mouse"},A=M[X];if(!A){C(null,-1,K);return}C(A.value,X,K)};i.useEffect(function(){z(h!==!1?T(0):-1)},[M.length,d]);var L=i.useCallback(function(q){return y.has(q)&&c!=="combobox"},[c,Re(y).toString(),y.size]);i.useEffect(function(){var q=setTimeout(function(){if(!l&&s&&y.size===1){var Z=Array.from(y)[0],K=M.findIndex(function(A){var j=A.data;return j.value===Z});K!==-1&&(z(K),I(K))}});if(s){var X;(X=P.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(q)}},[s,d]);var ee=function(X){X!==void 0&&v(X,{selected:!y.has(X)}),l||f(!1)};if(i.useImperativeHandle(r,function(){return{onKeyDown:function(X){var Z=X.which,K=X.ctrlKey;switch(Z){case xe.N:case xe.P:case xe.UP:case xe.DOWN:{var A=0;if(Z===xe.UP?A=-1:Z===xe.DOWN?A=1:Of()&&K&&(Z===xe.N?A=1:Z===xe.P&&(A=-1)),A!==0){var j=T(k+A,A);I(j),z(j,!0)}break}case xe.ENTER:{var G=M[k];G&&!G.data.disabled?ee(G.value):ee(void 0),s&&X.preventDefault();break}case xe.ESC:f(!1),s&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){I(X)}}}),M.length===0)return i.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(R,"-empty"),onMouseDown:O},u);var ie=Object.keys(x).map(function(q){return x[q]}),de=function(X){return X.label};function Q(q,X){var Z=q.group;return{role:Z?"presentation":"option",id:"".concat(a,"_list_").concat(X)}}var J=function(X){var Z=M[X];if(!Z)return null;var K=Z.data||{},A=K.value,j=Z.group,G=fn(K,!0),F=de(Z);return Z?i.createElement("div",le({"aria-label":typeof F=="string"&&!j?F:null},G,{key:X},Q(Z,X),{"aria-selected":L(A)}),A):null},se={role:"listbox",id:"".concat(a,"_list")};return i.createElement(i.Fragment,null,S&&i.createElement("div",le({},se,{style:{height:0,width:0,overflow:"hidden"}}),J(k-1),J(k),J(k+1)),i.createElement(ro,{itemKey:"key",ref:P,data:M,height:$,itemHeight:N,fullHeight:!1,onMouseDown:O,onScroll:p,virtual:S,direction:w,innerProps:S?null:se},function(q,X){var Z,K=q.group,A=q.groupOption,j=q.data,G=q.label,F=q.value,W=j.key;if(K){var oe,pe=(oe=j.title)!==null&&oe!==void 0?oe:Fi(G)?G.toString():void 0;return i.createElement("div",{className:U(R,"".concat(R,"-group")),title:pe},G!==void 0?G:W)}var Ce=j.disabled,ae=j.title;j.children;var Ne=j.style,he=j.className,ze=Je(j,Nf),be=Lt(ze,ie),De=L(F),me="".concat(R,"-option"),Ye=U(R,me,he,(Z={},V(Z,"".concat(me,"-grouped"),A),V(Z,"".concat(me,"-active"),k===X&&!Ce),V(Z,"".concat(me,"-disabled"),Ce),V(Z,"".concat(me,"-selected"),De),Z)),Ae=de(q),et=!b||typeof b=="function"||De,$e=typeof Ae=="number"?Ae:Ae||F,fe=Fi($e)?$e.toString():void 0;return ae!==void 0&&(fe=ae),i.createElement("div",le({},fn(be),S?{}:Q(q,X),{"aria-selected":De,className:Ye,title:fe,onMouseMove:function(){k===X||Ce||z(X)},onClick:function(){Ce||ee(F)},style:Ne}),i.createElement("div",{className:"".concat(me,"-content")},typeof E=="function"?E(q,{index:X}):$e),i.isValidElement(b)||De,et&&i.createElement(no,{className:"".concat(R,"-option-state"),customizeIcon:b,customizeIconProps:{value:F,disabled:Ce,isSelected:De}},De?"✓":null))}))},Os=i.forwardRef(Pf);Os.displayName="OptionList";const Rf=function(e,t){var r=i.useRef({values:new Map,options:new Map}),n=i.useMemo(function(){var a=r.current,s=a.values,l=a.options,c=e.map(function(u){if(u.label===void 0){var p;return H(H({},u),{},{label:(p=s.get(u.value))===null||p===void 0?void 0:p.label})}return u}),d=new Map,f=new Map;return c.forEach(function(u){d.set(u.value,u),f.set(u.value,t.get(u.value)||l.get(u.value))}),r.current.values=d,r.current.options=f,c},[e,t]),o=i.useCallback(function(a){return t.get(a)||r.current.options.get(a)},[t]);return[n,o]};function vo(e,t){return ys(e).join("").toUpperCase().includes(t)}const Mf=function(e,t,r,n,o){return i.useMemo(function(){if(!r||n===!1)return e;var a=t.options,s=t.label,l=t.value,c=[],d=typeof n=="function",f=r.toUpperCase(),u=d?n:function(m,g){return o?vo(g[o],f):g[a]?vo(g[s!=="children"?s:"label"],f):vo(g[l],f)},p=d?function(m){return ko(m)}:function(m){return m};return e.forEach(function(m){if(m[a]){var g=u(r,p(m));if(g)c.push(m);else{var C=m[a].filter(function(h){return u(r,p(h))});C.length&&c.push(H(H({},m),{},V({},a,C)))}return}u(r,p(m))&&c.push(m)}),c},[e,n,o,r,t])};var Wi=0,Tf=Zl();function Df(){var e;return Tf?(e=Wi,Wi+=1):e="TEST_OR_SSR",e}function _f(e){var t=i.useState(),r=re(t,2),n=r[0],o=r[1];return i.useEffect(function(){o("rc_select_".concat(Df()))},[]),e||n}var kf=["children","value"],zf=["children"];function Bf(e){var t=e,r=t.key,n=t.props,o=n.children,a=n.value,s=Je(n,kf);return H({key:r,value:a!==void 0?a:r,children:o},s)}function Ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $n(e).map(function(r,n){if(!i.isValidElement(r)||!r.type)return null;var o=r,a=o.type.isSelectOptGroup,s=o.key,l=o.props,c=l.children,d=Je(l,zf);return t||!a?Bf(r):H(H({key:"__RC_SELECT_GRP__".concat(s===null?n:s,"__"),label:s},d),{},{options:Ns(c)})}).filter(function(r){return r})}function Kf(e,t,r,n,o){return i.useMemo(function(){var a=e,s=!e;s&&(a=Ns(t));var l=new Map,c=new Map,d=function(p,m,g){g&&typeof g=="string"&&p.set(m[g],m)};function f(u){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},ye=ue.source,Ve=ye===void 0?"keyboard":ye;Xe(ve),s&&n==="combobox"&&te!==null&&Ve==="keyboard"&&_e(String(te))},[s,n]),ht=function(ve,ue,ye){var Ve=function(){var Se,Be=ze(ve);return[k?{label:Be==null?void 0:Be[Q.label],value:ve,key:(Se=Be==null?void 0:Be.key)!==null&&Se!==void 0?Se:ve}:ve,ko(Be)]};if(ue&&m){var Ge=Ve(),Ct=re(Ge,2),ge=Ct[0],Pe=Ct[1];m(ge,Pe)}else if(!ue&&g&&ye!=="clear"){var He=Ve(),Fe=re(He,2),lt=Fe[0],mt=Fe[1];g(lt,mt)}},st=Vi(function(te,ve){var ue,ye=ee?ve.selected:!0;ye?ue=ee?[].concat(Re(he),[te]):[te]:ue=he.filter(function(Ve){return Ve.value!==te}),Oe(ue),ht(te,ye),n==="combobox"?_e(""):(!zo||p)&&(X(""),_e(""))}),tt=function(ve,ue){Oe(ve);var ye=ue.type,Ve=ue.values;(ye==="remove"||ye==="clear")&&Ve.forEach(function(Ge){ht(Ge.value,!1,ye)})},je=function(ve,ue){if(X(ve),_e(null),ue.source==="submit"){var ye=(ve||"").trim();if(ye){var Ve=Array.from(new Set([].concat(Re(De),[ye])));Oe(Ve),ht(ye,!0),X("")}return}ue.source!=="blur"&&(n==="combobox"&&Oe(ve),f==null||f(ve))},Ie=function(ve){var ue=ve;n!=="tags"&&(ue=ve.map(function(Ve){var Ge=A.get(Ve);return Ge==null?void 0:Ge.value}).filter(function(Ve){return Ve!==void 0}));var ye=Array.from(new Set([].concat(Re(De),Re(ue))));Oe(ye),ye.forEach(function(Ve){ht(Ve,!0)})},ke=i.useMemo(function(){var te=R!==!1&&h!==!1;return H(H({},Z),{},{flattenOptions:fe,onActiveValue:gt,defaultActiveFirstOption:ft,onSelect:st,menuItemSelectedIcon:E,rawValues:De,fieldNames:Q,virtual:te,direction:M,listHeight:O,listItemHeight:T,childrenAsData:ie,optionRender:w})},[Z,fe,gt,ft,st,E,De,Q,R,h,O,T,ie,w]);return i.createElement(Is.Provider,{value:ke},i.createElement(cf,le({},z,{id:L,prefixCls:a,ref:t,omitDomProps:jf,mode:n,displayValues:be,onDisplayValuesChange:tt,direction:M,searchValue:q,onSearch:je,autoClearSearchValue:p,onSearchSplit:Ie,dropdownMatchSelectWidth:h,OptionList:Os,emptyOptions:!fe.length,activeValue:Me,activeDescendantId:"".concat(L,"_list_").concat(ot)})))}),ti=Af;ti.Option=ei;ti.OptGroup=Ja;const Ff=()=>{const[,e]=En(),r=new rn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Wf=Ff,Vf=()=>{const[,e]=En(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=i.useMemo(()=>({borderColor:new rn(t).onBackground(o).toHexShortString(),shadowColor:new rn(r).onBackground(o).toHexShortString(),contentColor:new rn(n).onBackground(o).toHexShortString()}),[t,r,n,o]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:a},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},Uf=Vf,qf=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:s}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Xf=an("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,o=$t(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[qf(o)]});var Yf=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:r,prefixCls:n,image:o=Ps,description:a,children:s,imageStyle:l,style:c}=e,d=Yf(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:u,empty:p}=i.useContext(vt),m=f("empty",n),[g,C,h]=Xf(m),[v]=Ql("Empty"),b=typeof a<"u"?a:v==null?void 0:v.description,y=typeof b=="string"?b:"empty";let x=null;return typeof o=="string"?x=i.createElement("img",{alt:y,src:o}):x=o,g(i.createElement("div",Object.assign({className:U(C,h,m,p==null?void 0:p.className,{[`${m}-normal`]:o===Rs,[`${m}-rtl`]:u==="rtl"},t,r),style:Object.assign(Object.assign({},p==null?void 0:p.style),c)},d),i.createElement("div",{className:`${m}-image`,style:l},x),b&&i.createElement("div",{className:`${m}-description`},b),s&&i.createElement("div",{className:`${m}-footer`},s)))};ni.PRESENTED_IMAGE_DEFAULT=Ps;ni.PRESENTED_IMAGE_SIMPLE=Rs;const Rn=ni,Gf=e=>{const{componentName:t}=e,{getPrefixCls:r}=i.useContext(vt),n=r("empty");switch(t){case"Table":case"List":return ce.createElement(Rn,{image:Rn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Rn,{image:Rn.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});default:return ce.createElement(Rn,null)}},Ms=Gf,Zf=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function Qf(e,t){return e||Zf(t)}const Jf=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},em=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${r}-dropdown-placement-`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},Mt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${o}${l}bottomLeft, ${a}${l}bottomLeft `]:{animationName:qa},[` ${o}${l}topLeft, ${a}${l}topLeft, ${o}${l}topRight, ${a}${l}topRight `]:{animationName:Ya},[`${s}${l}bottomLeft`]:{animationName:Xa},[` ${s}${l}topLeft, ${s}${l}topRight `]:{animationName:Ga},"&-hidden":{display:"none"},[`${n}`]:Object.assign(Object.assign({},Jf(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},xr),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},Qn(e,"slide-up"),Qn(e,"slide-down"),Hr(e,"move-up"),Hr(e,"move-down")]},tm=em,An=2,nm=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()};function go(e,t){const{componentCls:r,iconCls:n}=e,o=`${r}-selection-overflow`,a=e.multipleSelectItemHeight,s=nm(e),l=t?`${r}-${t}`:"";return{[`${r}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${r}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(An).mul(2).equal(),paddingBlock:e.calc(s).sub(An).equal(),borderRadius:e.borderRadius,[`${r}-show-search&`]:{cursor:"text"},[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${B(An)} 0`,lineHeight:B(a),visibility:"hidden",content:'"\\a0"'}},[` &${r}-show-arrow ${r}-selector, &${r}-allow-clear ${r}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${r}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:An,marginBottom:An,lineHeight:B(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),background:e.multipleItemBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(An).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${r}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Jr()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${r}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:B(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const rm=e=>{const{componentCls:t}=e,r=$t(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=$t(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[go(e),go(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},go(n,"lg")]},om=rm;function ho(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${r}-${t}`:"";return{[`${r}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},Mt(e,!0)),{display:"flex",borderRadius:o,[`${r}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${r}-selection-item, ${r}-selection-placeholder `]:{padding:0,lineHeight:B(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${r}-show-arrow ${r}-selection-item, &${r}-show-arrow ${r}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",padding:`0 ${B(n)}`,[`${r}-selection-search-input`]:{height:a},"&:after":{lineHeight:B(a)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${B(n)}`,"&:after":{display:"none"}}}}}}}function am(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ho(e),ho($t(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:r,insetInlineEnd:r},[`${t}-selector`]:{padding:`0 ${B(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ho($t(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const im=e=>{const{componentCls:t,selectorBg:r}=e;return{position:"relative",backgroundColor:r,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},bo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:n,borderHoverColor:o,antCls:a,borderActiveColor:s,outlineColor:l,controlOutlineWidth:c}=t,d=r?{[`${n}-selector`]:{borderColor:s}}:{};return{[e]:{[`&:not(${n}-disabled):not(${n}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},d),{[`&:hover ${n}-selector`]:{borderColor:o},[`${n}-focused& ${n}-selector`]:{borderColor:s,boxShadow:`0 0 0 ${B(c)} ${l}`,outline:0}})}}},lm=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},sm=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[r]:Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},im(e)),lm(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},xr),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},xr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Jr()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${r}-clear`]:{opacity:1}}}),[`${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}},cm=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},sm(e),am(e),om(e),tm(e),{[`${t}-rtl`]:{direction:"rtl"}},bo(t,$t(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),bo(`${t}-status-error`,$t(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),bo(`${t}-status-warning`,$t(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),wd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},dm=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:s,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:d,colorBgContainer:f,colorFillSecondary:u,controlHeightLG:p,controlHeightSM:m,colorBgContainerDisabled:g,colorTextDisabled:C}=e;return{zIndexPopup:a+50,optionSelectedColor:s,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:d,optionPadding:`${(n-t*r)/2}px ${o}px`,optionFontSize:t,optionLineHeight:r,optionHeight:n,selectorBg:f,clearBg:f,singleItemHeightLG:p,multipleItemBg:u,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightLG:n,multipleSelectorBgDisabled:g,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},um=an("Select",(e,t)=>{let{rootPrefixCls:r}=t;const n=$t(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cm(n)]},dm,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var fm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const mm=fm;var pm=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:mm}))};const Ts=i.forwardRef(pm);var vm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const gm=vm;var hm=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:gm}))};const ri=i.forwardRef(hm);function bm(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:n,removeIcon:o,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:d,feedbackIcon:f,showArrow:u,componentName:p}=e;const m=r??i.createElement($d,null),g=b=>t===null&&!l&&!u?null:i.createElement(i.Fragment,null,d!==!1&&b,l&&f);let C=null;if(t!==void 0)C=g(t);else if(a)C=g(i.createElement(es,{spin:!0}));else{const b=`${c}-suffix`;C=y=>{let{open:x,showSearch:S}=y;return g(x&&S?i.createElement(ri,{className:b}):i.createElement(Ts,{className:b}))}}let h=null;n!==void 0?h=n:s?h=i.createElement(Wd,null):h=null;let v=null;return o!==void 0?v=o:v=i.createElement(Jl,null),{clearIcon:m,suffixIcon:C,itemIcon:h,removeIcon:v}}function ym(e,t){return t!==void 0?t:e!==null}var Cm=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n,{prefixCls:o,bordered:a=!0,className:s,rootClassName:l,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:u=256,placement:p,listItemHeight:m,size:g,disabled:C,notFoundContent:h,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:S,style:w,allowClear:$}=e,N=Cm(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:E,getPrefixCls:R,renderEmpty:M,direction:P,virtual:O,popupMatchSelectWidth:I,popupOverflow:T,select:_}=i.useContext(vt),[,D]=En(),k=m??(D==null?void 0:D.controlHeight),Y=R("select",o),z=R(),L=S??P,{compactSize:ee,compactItemClassnames:ie}=Ka(Y,L),de=In(Y),[Q,J,se]=um(Y,de),q=i.useMemo(()=>{const{mode:fe}=N;if(fe!=="combobox")return fe===Ds?"combobox":fe},[N.mode]),X=q==="multiple"||q==="tags",Z=ym(N.suffixIcon,N.showArrow),K=(r=x??y)!==null&&r!==void 0?r:I,{status:A,hasFeedback:j,isFormItemInput:G,feedbackIcon:F}=i.useContext(Sr),W=Ud(A,v);let oe;h!==void 0?oe=h:q==="combobox"?oe=null:oe=(M==null?void 0:M("Select"))||i.createElement(Ms,{componentName:"Select"});const{suffixIcon:pe,itemIcon:Ce,removeIcon:ae,clearIcon:Ne}=bm(Object.assign(Object.assign({},N),{multiple:X,hasFeedback:j,feedbackIcon:F,showSuffixIcon:Z,prefixCls:Y,showArrow:N.showArrow,componentName:"Select"})),he=$===!0?{clearIcon:Ne}:$,ze=Lt(N,["suffixIcon","itemIcon"]),be=U(d||f,{[`${Y}-dropdown-${L}`]:L==="rtl"},l,se,de,J),De=nr(fe=>{var Oe;return(Oe=g??ee)!==null&&Oe!==void 0?Oe:fe}),me=i.useContext(La),Ye=C??me,Ae=U({[`${Y}-lg`]:De==="large",[`${Y}-sm`]:De==="small",[`${Y}-rtl`]:L==="rtl",[`${Y}-borderless`]:!a,[`${Y}-in-form-item`]:G},Vd(Y,W,j),ie,_==null?void 0:_.className,s,l,se,de,J),et=i.useMemo(()=>p!==void 0?p:L==="rtl"?"bottomRight":"bottomLeft",[p,L]),[$e]=ja("SelectLike",(n=N.dropdownStyle)===null||n===void 0?void 0:n.zIndex);return Q(i.createElement(ti,Object.assign({ref:t,virtual:O,showSearch:_==null?void 0:_.showSearch},ze,{style:Object.assign(Object.assign({},_==null?void 0:_.style),w),dropdownMatchSelectWidth:K,builtinPlacements:Qf(b,T),transitionName:Ed(z,"slide-up",N.transitionName),listHeight:u,listItemHeight:k,mode:q,prefixCls:Y,placement:et,direction:L,suffixIcon:pe,menuItemSelectedIcon:Ce,removeIcon:ae,allowClear:he,notFoundContent:oe,className:Ae,getPopupContainer:c||E,dropdownClassName:be,disabled:Ye,dropdownStyle:Object.assign(Object.assign({},N==null?void 0:N.dropdownStyle),{zIndex:$e})})))},rr=i.forwardRef(xm),Sm=ms(rr);rr.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ds;rr.Option=ei;rr.OptGroup=Ja;rr._InternalPanelDoNotUseOrYouWillBeFired=Sm;const oo=rr,wm=["xxl","xl","lg","md","sm","xs"],$m=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Em=e=>{const t=e,r=[].concat(wm).reverse();return r.forEach((n,o)=>{const a=n.toUpperCase(),s=`screen${a}Min`,l=`screen${a}`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);if(o{const r=new Map;let n=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,r.forEach(s=>s(o)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(o),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const s=t[a],l=this.matchHandlers[s];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),r.clear()},register(){Object.keys(t).forEach(a=>{const s=t[a],l=d=>{let{matches:f}=d;this.dispatch(Object.assign(Object.assign({},o),{[a]:f}))},c=window.matchMedia(s);c.addListener(l),this.matchHandlers[s]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function _s(){const[,e]=i.useReducer(t=>t+1,0);return e}function ks(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=i.useRef({}),r=_s(),n=Im();return Vt(()=>{const o=n.subscribe(a=>{t.current=a,e&&r()});return()=>n.unsubscribe(o)},[]),t.current}var Om=xe.ESC,Nm=xe.TAB;function Pm(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=i.useRef(!1),l=function(){if(t){var u,p;(u=r.current)===null||u===void 0||(p=u.focus)===null||p===void 0||p.call(u),n==null||n(!1)}},c=function(){var u;return(u=a.current)!==null&&u!==void 0&&u.focus?(a.current.focus(),s.current=!0,!0):!1},d=function(u){switch(u.keyCode){case Om:l();break;case Nm:{var p=!1;s.current||(p=c()),p?u.preventDefault():l();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",d),o&&wt(c,3),function(){window.removeEventListener("keydown",d),s.current=!1}):function(){s.current=!1}},[t])}var Rm=i.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,o=e.prefixCls,a=i.useMemo(function(){var l;return typeof r=="function"?l=r():l=r,l},[r]),s=tr(t,a==null?void 0:a.ref);return ce.createElement(ce.Fragment,null,n&&ce.createElement("div",{className:"".concat(o,"-arrow")}),ce.cloneElement(a,{ref:Lr(a)?s:void 0}))}),Fn={adjustX:1,adjustY:1},Wn=[0,0],Mm={topLeft:{points:["bl","tl"],overflow:Fn,offset:[0,-4],targetOffset:Wn},top:{points:["bc","tc"],overflow:Fn,offset:[0,-4],targetOffset:Wn},topRight:{points:["br","tr"],overflow:Fn,offset:[0,-4],targetOffset:Wn},bottomLeft:{points:["tl","bl"],overflow:Fn,offset:[0,4],targetOffset:Wn},bottom:{points:["tc","bc"],overflow:Fn,offset:[0,4],targetOffset:Wn},bottomRight:{points:["tr","br"],overflow:Fn,offset:[0,4],targetOffset:Wn}},Tm=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dm(e,t){var r,n=e.arrow,o=n===void 0?!1:n,a=e.prefixCls,s=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,d=e.align,f=e.placement,u=f===void 0?"bottomLeft":f,p=e.placements,m=p===void 0?Mm:p,g=e.getPopupContainer,C=e.showAction,h=e.hideAction,v=e.overlayClassName,b=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,w=e.autoFocus,$=e.overlay,N=e.children,E=e.onVisibleChange,R=Je(e,Tm),M=ce.useState(),P=re(M,2),O=P[0],I=P[1],T="visible"in e?y:O,_=ce.useRef(null),D=ce.useRef(null),k=ce.useRef(null);ce.useImperativeHandle(t,function(){return _.current});var Y=function(q){I(q),E==null||E(q)};Pm({visible:T,triggerRef:k,onVisibleChange:Y,autoFocus:w,overlayRef:D});var z=function(q){var X=e.onOverlayClick;I(!1),X&&X(q)},L=function(){return ce.createElement(Rm,{ref:D,overlay:$,prefixCls:s,arrow:o})},ee=function(){return typeof $=="function"?L:L()},ie=function(){var q=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!X},de=function(){var q=e.openClassName;return q!==void 0?q:"".concat(s,"-open")},Q=ce.cloneElement(N,{className:U((r=N.props)===null||r===void 0?void 0:r.className,T&&de()),ref:Lr(N)?tr(k,N.ref):void 0}),J=h;return!J&&S.indexOf("contextMenu")!==-1&&(J=["click"]),ce.createElement(Ua,le({builtinPlacements:m},R,{prefixCls:s,ref:_,popupClassName:U(v,V({},"".concat(s,"-show-arrow"),o)),popupStyle:b,action:S,showAction:C,hideAction:J,popupPlacement:u,popupAlign:d,popupTransitionName:l,popupAnimation:c,popupVisible:T,stretch:ie()?"minWidth":"",popup:ee(),onPopupVisibleChange:Y,onPopupClick:z,getPopupContainer:g}),Q)}const _m=ce.forwardRef(Dm);var zs=i.createContext(null);function Bs(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Ks(e){var t=i.useContext(zs);return Bs(t,e)}var km=["children","locked"],on=i.createContext(null);function zm(e,t){var r=H({},e);return Object.keys(t).forEach(function(n){var o=t[n];o!==void 0&&(r[n]=o)}),r}function wr(e){var t=e.children,r=e.locked,n=Je(e,km),o=i.useContext(on),a=Qr(function(){return zm(o,n)},[o,n],function(s,l){return!r&&(s[0]!==l[0]||!Mn(s[1],l[1],!0))});return i.createElement(on.Provider,{value:a},t)}var Bm=[],Ls=i.createContext(null);function ao(){return i.useContext(Ls)}var js=i.createContext(Bm);function or(e){var t=i.useContext(js);return i.useMemo(function(){return e!==void 0?[].concat(Re(t),[e]):t},[t,e])}var Hs=i.createContext(null),oi=i.createContext({});function Ui(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ts(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),s=null;return o&&!Number.isNaN(a)?s=a:n&&s===null&&(s=0),n&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function Km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Re(e.querySelectorAll("*")).filter(function(n){return Ui(n,t)});return Ui(e,t)&&r.unshift(e),r}var Bo=xe.LEFT,Ko=xe.RIGHT,Lo=xe.UP,kr=xe.DOWN,zr=xe.ENTER,As=xe.ESC,dr=xe.HOME,ur=xe.END,qi=[Lo,kr,Bo,Ko];function Lm(e,t,r,n){var o,a,s,l,c="prev",d="next",f="children",u="parent";if(e==="inline"&&n===zr)return{inlineTrigger:!0};var p=(o={},V(o,Lo,c),V(o,kr,d),o),m=(a={},V(a,Bo,r?d:c),V(a,Ko,r?c:d),V(a,kr,f),V(a,zr,f),a),g=(s={},V(s,Lo,c),V(s,kr,d),V(s,zr,f),V(s,As,u),V(s,Bo,r?f:u),V(s,Ko,r?u:f),s),C={inline:p,horizontal:m,vertical:g,inlineSub:p,horizontalSub:g,verticalSub:g},h=(l=C["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[n];switch(h){case c:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function jm(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Hm(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function ai(e,t){var r=Km(e,!0);return r.filter(function(n){return t.has(n)})}function Xi(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=ai(e,t),a=o.length,s=o.findIndex(function(l){return r===l});return n<0?s===-1?s=a-1:s-=1:n>0&&(s+=1),s=(s+a)%a,o[s]}var jo=function(t,r){var n=new Set,o=new Map,a=new Map;return t.forEach(function(s){var l=document.querySelector("[data-menu-id='".concat(Bs(r,s),"']"));l&&(n.add(l),a.set(l,s),o.set(s,l))}),{elements:n,key2element:o,element2key:a}};function Am(e,t,r,n,o,a,s,l,c,d){var f=i.useRef(),u=i.useRef();u.current=t;var p=function(){wt.cancel(f.current)};return i.useEffect(function(){return function(){p()}},[]),function(m){var g=m.which;if([].concat(qi,[zr,As,dr,ur]).includes(g)){var C=a(),h=jo(C,n),v=h,b=v.elements,y=v.key2element,x=v.element2key,S=y.get(t),w=Hm(S,b),$=x.get(w),N=Lm(e,s($,!0).length===1,r,g);if(!N&&g!==dr&&g!==ur)return;(qi.includes(g)||[dr,ur].includes(g))&&m.preventDefault();var E=function(D){if(D){var k=D,Y=D.querySelector("a");Y!=null&&Y.getAttribute("href")&&(k=Y);var z=x.get(D);l(z),p(),f.current=wt(function(){u.current===z&&k.focus()})}};if([dr,ur].includes(g)||N.sibling||!w){var R;!w||e==="inline"?R=o.current:R=jm(w);var M,P=ai(R,b);g===dr?M=P[0]:g===ur?M=P[P.length-1]:M=Xi(R,b,w,N.offset),E(M)}else if(N.inlineTrigger)c($);else if(N.offset>0)c($,!0),p(),f.current=wt(function(){h=jo(C,n);var _=w.getAttribute("aria-controls"),D=document.getElementById(_),k=Xi(D,h.elements);E(k)},5);else if(N.offset<0){var O=s($,!0),I=O[O.length-2],T=y.get(I);c(I,!1),E(T)}}d==null||d(m)}}function Fm(e){Promise.resolve().then(e)}var ii="__RC_UTIL_PATH_SPLIT__",Yi=function(t){return t.join(ii)},Wm=function(t){return t.split(ii)},Ho="rc-menu-more";function Vm(){var e=i.useState({}),t=re(e,2),r=t[1],n=i.useRef(new Map),o=i.useRef(new Map),a=i.useState([]),s=re(a,2),l=s[0],c=s[1],d=i.useRef(0),f=i.useRef(!1),u=function(){f.current||r({})},p=i.useCallback(function(y,x){var S=Yi(x);o.current.set(S,y),n.current.set(y,S),d.current+=1;var w=d.current;Fm(function(){w===d.current&&u()})},[]),m=i.useCallback(function(y,x){var S=Yi(x);o.current.delete(S),n.current.delete(y)},[]),g=i.useCallback(function(y){c(y)},[]),C=i.useCallback(function(y,x){var S=n.current.get(y)||"",w=Wm(S);return x&&l.includes(w[0])&&w.unshift(Ho),w},[l]),h=i.useCallback(function(y,x){return y.some(function(S){var w=C(S,!0);return w.includes(x)})},[C]),v=function(){var x=Re(n.current.keys());return l.length&&x.push(Ho),x},b=i.useCallback(function(y){var x="".concat(n.current.get(y)).concat(ii),S=new Set;return Re(o.current.keys()).forEach(function(w){w.startsWith(x)&&S.add(o.current.get(w))}),S},[]);return i.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:p,unregisterPath:m,refreshOverflowKeys:g,isSubPathKey:h,getKeyPath:C,getKeys:v,getSubPathKeys:b}}function vr(e){var t=i.useRef(e);t.current=e;var r=i.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),s=0;s1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(x){return!p.current&&!x&&h(!0),y==null?void 0:y(x)},C?null:i.createElement(wr,{mode:a,locked:!p.current},i.createElement(Fa,le({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(x){var S=x.className,w=x.style;return i.createElement(li,{id:t,className:S,style:w},o)}))}var sp=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cp=["active"],dp=function(t){var r,n=t.style,o=t.className,a=t.title,s=t.eventKey;t.warnKey;var l=t.disabled,c=t.internalPopupClose,d=t.children,f=t.itemIcon,u=t.expandIcon,p=t.popupClassName,m=t.popupOffset,g=t.popupStyle,C=t.onClick,h=t.onMouseEnter,v=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,x=t.onTitleMouseLeave,S=Je(t,sp),w=Ks(s),$=i.useContext(on),N=$.prefixCls,E=$.mode,R=$.openKeys,M=$.disabled,P=$.overflowDisabled,O=$.activeKey,I=$.selectedKeys,T=$.itemIcon,_=$.expandIcon,D=$.onItemClick,k=$.onOpenChange,Y=$.onActive,z=i.useContext(oi),L=z._internalRenderSubMenuItem,ee=i.useContext(Hs),ie=ee.isSubPathKey,de=or(),Q="".concat(N,"-submenu"),J=M||l,se=i.useRef(),q=i.useRef(),X=f??T,Z=u??_,K=R.includes(s),A=!P&&K,j=ie(I,s),G=Fs(s,J,y,x),F=G.active,W=Je(G,cp),oe=i.useState(!1),pe=re(oe,2),Ce=pe[0],ae=pe[1],Ne=function(_e){J||ae(_e)},he=function(_e){Ne(!0),h==null||h({key:s,domEvent:_e})},ze=function(_e){Ne(!1),v==null||v({key:s,domEvent:_e})},be=i.useMemo(function(){return F||(E!=="inline"?Ce||ie([O],s):!1)},[E,F,O,Ce,s,ie]),De=Ws(de.length),me=function(_e){J||(b==null||b({key:s,domEvent:_e}),E==="inline"&&k(s,!K))},Ye=vr(function(Me){C==null||C(Fr(Me)),D(Me)}),Ae=function(_e){E!=="inline"&&k(s,_e)},et=function(){Y(s)},$e=w&&"".concat(w,"-popup"),fe=i.createElement("div",le({role:"menuitem",style:De,className:"".concat(Q,"-title"),tabIndex:J?null:-1,ref:se,title:typeof a=="string"?a:null,"data-menu-id":P&&w?null:w,"aria-expanded":A,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":J,onClick:me,onFocus:et},W),a,i.createElement(Vs,{icon:E!=="horizontal"?Z:void 0,props:H(H({},t),{},{isOpen:A,isSubMenu:!0})},i.createElement("i",{className:"".concat(Q,"-arrow")}))),Oe=i.useRef(E);if(E!=="inline"&&de.length>1?Oe.current="vertical":Oe.current=E,!P){var Le=Oe.current;fe=i.createElement(ip,{mode:Le,prefixCls:Q,visible:!c&&A&&E!=="inline",popupClassName:p,popupOffset:m,popupStyle:g,popup:i.createElement(wr,{mode:Le==="horizontal"?"vertical":Le},i.createElement(li,{id:$e,ref:q},d)),disabled:J,onVisibleChange:Ae},fe)}var We=i.createElement(dn.Item,le({role:"none"},S,{component:"li",style:n,className:U(Q,"".concat(Q,"-").concat(E),o,(r={},V(r,"".concat(Q,"-open"),A),V(r,"".concat(Q,"-active"),be),V(r,"".concat(Q,"-selected"),j),V(r,"".concat(Q,"-disabled"),J),r)),onMouseEnter:he,onMouseLeave:ze}),fe,!P&&i.createElement(lp,{id:$e,open:A,keyPath:de},d));return L&&(We=L(We,t,{selected:j,active:be,open:A,disabled:J})),i.createElement(wr,{onItemClick:Ye,mode:E==="horizontal"?"vertical":E,itemIcon:X,expandIcon:Z},We)};function lo(e){var t=e.eventKey,r=e.children,n=or(t),o=si(r,n),a=ao();i.useEffect(function(){if(a)return a.registerPath(t,n),function(){a.unregisterPath(t,n)}},[n]);var s;return a?s=o:s=i.createElement(dp,e,o),i.createElement(js.Provider,{value:n},s)}var up=["className","title","eventKey","children"],fp=["children"],mp=function(t){var r=t.className,n=t.title;t.eventKey;var o=t.children,a=Je(t,up),s=i.useContext(on),l=s.prefixCls,c="".concat(l,"-item-group");return i.createElement("li",le({role:"presentation"},a,{onClick:function(f){return f.stopPropagation()},className:U(c,r)}),i.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof n=="string"?n:void 0},n),i.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function so(e){var t=e.children,r=Je(e,fp),n=or(r.eventKey),o=si(t,n),a=ao();return a?o:i.createElement(mp,Lt(r,["warnKey"]),o)}function ci(e){var t=e.className,r=e.style,n=i.useContext(on),o=n.prefixCls,a=ao();return a?null:i.createElement("li",{role:"separator",className:U("".concat(o,"-item-divider"),t),style:r})}var pp=["label","children","key","type"];function Ao(e){return(e||[]).map(function(t,r){if(t&&Nt(t)==="object"){var n=t,o=n.label,a=n.children,s=n.key,l=n.type,c=Je(n,pp),d=s??"tmp-".concat(r);return a||l==="group"?l==="group"?i.createElement(so,le({key:d},c,{title:o}),Ao(a)):i.createElement(lo,le({key:d},c,{title:o}),Ao(a)):l==="divider"?i.createElement(ci,le({key:d},c)):i.createElement(io,le({key:d},c),o)}return null}).filter(function(t){return t})}function vp(e,t,r){var n=e;return t&&(n=Ao(t)),si(n,r)}var gp=["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"],Vn=[],hp=i.forwardRef(function(e,t){var r,n,o=e,a=o.prefixCls,s=a===void 0?"rc-menu":a,l=o.rootClassName,c=o.style,d=o.className,f=o.tabIndex,u=f===void 0?0:f,p=o.items,m=o.children,g=o.direction,C=o.id,h=o.mode,v=h===void 0?"vertical":h,b=o.inlineCollapsed,y=o.disabled,x=o.disabledOverflow,S=o.subMenuOpenDelay,w=S===void 0?.1:S,$=o.subMenuCloseDelay,N=$===void 0?.1:$,E=o.forceSubMenuRender,R=o.defaultOpenKeys,M=o.openKeys,P=o.activeKey,O=o.defaultActiveFirst,I=o.selectable,T=I===void 0?!0:I,_=o.multiple,D=_===void 0?!1:_,k=o.defaultSelectedKeys,Y=o.selectedKeys,z=o.onSelect,L=o.onDeselect,ee=o.inlineIndent,ie=ee===void 0?24:ee,de=o.motion,Q=o.defaultMotions,J=o.triggerSubMenuAction,se=J===void 0?"hover":J,q=o.builtinPlacements,X=o.itemIcon,Z=o.expandIcon,K=o.overflowedIndicator,A=K===void 0?"...":K,j=o.overflowedIndicatorPopupClassName,G=o.getPopupContainer,F=o.onClick,W=o.onOpenChange,oe=o.onKeyDown;o.openAnimation,o.openTransitionName;var pe=o._internalRenderMenuItem,Ce=o._internalRenderSubMenuItem,ae=Je(o,gp),Ne=i.useMemo(function(){return vp(m,p,Vn)},[m,p]),he=i.useState(!1),ze=re(he,2),be=ze[0],De=ze[1],me=i.useRef(),Ye=qm(C),Ae=g==="rtl",et=Kt(R,{value:M,postState:function(Ke){return Ke||Vn}}),$e=re(et,2),fe=$e[0],Oe=$e[1],Le=function(Ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function nt(){Oe(Ke),W==null||W(Ke)}qe?Cr.flushSync(nt):nt()},We=i.useState(fe),Me=re(We,2),_e=Me[0],it=Me[1],rt=i.useRef(!1),ot=i.useMemo(function(){return(v==="inline"||v==="vertical")&&b?["vertical",b]:[v,!1]},[v,b]),Xe=re(ot,2),ft=Xe[0],gt=Xe[1],ht=ft==="inline",st=i.useState(ft),tt=re(st,2),je=tt[0],Ie=tt[1],ke=i.useState(gt),te=re(ke,2),ve=te[0],ue=te[1];i.useEffect(function(){Ie(ft),ue(gt),rt.current&&(ht?Oe(_e):Le(Vn))},[ft,gt]);var ye=i.useState(0),Ve=re(ye,2),Ge=Ve[0],Ct=Ve[1],ge=Ge>=Ne.length-1||je!=="horizontal"||x;i.useEffect(function(){ht&&it(fe)},[fe]),i.useEffect(function(){return rt.current=!0,function(){rt.current=!1}},[]);var Pe=Vm(),He=Pe.registerPath,Fe=Pe.unregisterPath,lt=Pe.refreshOverflowKeys,mt=Pe.isSubPathKey,Ee=Pe.getKeyPath,Se=Pe.getKeys,Be=Pe.getSubPathKeys,ut=i.useMemo(function(){return{registerPath:He,unregisterPath:Fe}},[He,Fe]),pt=i.useMemo(function(){return{isSubPathKey:mt}},[mt]);i.useEffect(function(){lt(ge?Vn:Ne.slice(Ge+1).map(function(we){return we.key}))},[Ge,ge]);var It=Kt(P||O&&((r=Ne[0])===null||r===void 0?void 0:r.key),{value:P}),Tt=re(It,2),Dt=Tt[0],At=Tt[1],qt=vr(function(we){At(we)}),Rt=vr(function(){At(void 0)});i.useImperativeHandle(t,function(){return{list:me.current,focus:function(Ke){var qe,nt=Se(),dt=jo(nt,Ye),St=dt.elements,Xt=dt.key2element,Yt=dt.element2key,Gt=ai(me.current,St),Wt=Dt??(Gt[0]?Yt.get(Gt[0]):(qe=Ne.find(function(at){return!at.props.disabled}))===null||qe===void 0?void 0:qe.key),sn=Xt.get(Wt);if(Wt&&sn){var Ze;sn==null||(Ze=sn.focus)===null||Ze===void 0||Ze.call(sn,Ke)}}}});var Qt=Kt(k||[],{value:Y,postState:function(Ke){return Array.isArray(Ke)?Ke:Ke==null?Vn:[Ke]}}),ln=re(Qt,2),Te=ln[0],Qe=ln[1],ct=function(Ke){if(T){var qe=Ke.key,nt=Te.includes(qe),dt;D?nt?dt=Te.filter(function(Xt){return Xt!==qe}):dt=[].concat(Re(Te),[qe]):dt=[qe],Qe(dt);var St=H(H({},Ke),{},{selectedKeys:dt});nt?L==null||L(St):z==null||z(St)}!D&&fe.length&&je!=="inline"&&Le(Vn)},Ft=vr(function(we){F==null||F(Fr(we)),ct(we)}),tn=vr(function(we,Ke){var qe=fe.filter(function(dt){return dt!==we});if(Ke)qe.push(we);else if(je!=="inline"){var nt=Be(we);qe=qe.filter(function(dt){return!nt.has(dt)})}Mn(fe,qe,!0)||Le(qe,!0)}),lr=function(Ke,qe){var nt=qe??!fe.includes(Ke);tn(Ke,nt)},Ln=Am(je,Dt,Ae,Ye,me,Se,Ee,At,lr,oe);i.useEffect(function(){De(!0)},[]);var pn=i.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:Ce}},[pe,Ce]),vn=je!=="horizontal"||x?Ne:Ne.map(function(we,Ke){return i.createElement(wr,{key:we.key,overflowDisabled:Ke>Ge},we)}),Ue=i.createElement(dn,le({id:C,ref:me,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:io,className:U(s,"".concat(s,"-root"),"".concat(s,"-").concat(je),d,(n={},V(n,"".concat(s,"-inline-collapsed"),ve),V(n,"".concat(s,"-rtl"),Ae),n),l),dir:g,style:c,role:"menu",tabIndex:u,data:vn,renderRawItem:function(Ke){return Ke},renderRawRest:function(Ke){var qe=Ke.length,nt=qe?Ne.slice(-qe):null;return i.createElement(lo,{eventKey:Ho,title:A,disabled:ge,internalPopupClose:qe===0,popupClassName:j},nt)},maxCount:je!=="horizontal"||x?dn.INVALIDATE:dn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ke){Ct(Ke)},onKeyDown:Ln},ae));return i.createElement(oi.Provider,{value:pn},i.createElement(zs.Provider,{value:Ye},i.createElement(wr,{prefixCls:s,rootClassName:l,mode:je,openKeys:fe,rtl:Ae,disabled:y,motion:be?de:null,defaultMotions:be?Q:null,activeKey:Dt,onActive:qt,onInactive:Rt,selectedKeys:Te,inlineIndent:ie,subMenuOpenDelay:w,subMenuCloseDelay:N,forceSubMenuRender:E,builtinPlacements:q,triggerSubMenuAction:se,getPopupContainer:G,itemIcon:X,expandIcon:Z,onItemClick:Ft,onOpenChange:tn},i.createElement(Hs.Provider,{value:pt},Ue),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(Ls.Provider,{value:ut},Ne)))))}),Er=hp;Er.Item=io;Er.SubMenu=lo;Er.ItemGroup=so;Er.Divider=ci;var bp=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:r,dashed:n}=e,o=bp(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=i.useContext(vt),s=a("menu",t),l=U({[`${s}-item-divider-dashed`]:!!n},r);return i.createElement(ci,Object.assign({className:l},o))},qs=yp,Cp=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Wr=Cp,xp=e=>{var t;const{className:r,children:n,icon:o,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:u}=i.useContext(Wr),p=b=>{const y=i.createElement("span",{className:`${l}-title-content`},n);return(!o||bn(n)&&n.type==="span")&&n&&b&&c&&typeof n=="string"?i.createElement("div",{className:`${l}-inline-collapsed-noicon`},n.charAt(0)):y},{siderCollapsed:m}=i.useContext(ns);let g=a;typeof a>"u"?g=c?n:"":a===!1&&(g="");const C={title:g};!m&&!u&&(C.title=null,C.open=!1);const h=$n(n).length;let v=i.createElement(io,Object.assign({},Lt(e,["title","icon","danger"]),{className:U({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:(o?h+1:h)===1},r),title:typeof a=="string"?a:void 0}),en(o,{className:U(bn(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(u));return f||(v=i.createElement(fs,Object.assign({},C,{placement:d==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v},Xs=xp,Sp=e=>{var t;const{popupClassName:r,icon:n,title:o,theme:a}=e,s=i.useContext(Wr),{prefixCls:l,inlineCollapsed:c,theme:d}=s,f=or();let u;if(!n)u=c&&!f.length&&o&&typeof o=="string"?i.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):i.createElement("span",{className:`${l}-title-content`},o);else{const g=bn(o)&&o.type==="span";u=i.createElement(i.Fragment,null,en(n,{className:U(bn(n)?(t=n.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g?o:i.createElement("span",{className:`${l}-title-content`},o))}const p=i.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[m]=ja("Menu");return i.createElement(Wr.Provider,{value:p},i.createElement(lo,Object.assign({},Lt(e,["icon"]),{title:u,popupClassName:U(l,r,`${l}-${a||d}`),popupStyle:{zIndex:m}})))},Ys=Sp;var wp={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"};const $p=wp;var Ep=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:$p}))};const Gs=i.forwardRef(Ep);var Ip=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const n=t,{label:o,children:a,key:s,type:l}=n,c=Ip(n,["label","children","key","type"]),d=s??`tmp-${r}`;return a||l==="group"?l==="group"?i.createElement(so,Object.assign({key:d},c,{title:o}),Fo(a)):i.createElement(Ys,Object.assign({key:d},c,{title:o}),Fo(a)):l==="divider"?i.createElement(qs,Object.assign({key:d},c)):i.createElement(Xs,Object.assign({key:d},c),o)}return null}).filter(t=>t)}function Op(e){return i.useMemo(()=>e&&Fo(e),[e])}var Np=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{children:r}=e,n=Np(e,["children"]),o=i.useContext(Vr),a=i.useMemo(()=>Object.assign(Object.assign({},o),n),[o,n.prefixCls,n.mode,n.selectable,n.rootClassName]),s=Id(r),l=Ba(t,s?r.ref:null);return i.createElement(Vr.Provider,{value:a},i.createElement(Od,null,s?i.cloneElement(r,{ref:l}):r))}),Pp=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:o,lineWidth:a,lineType:s,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${B(a)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Rp=Pp,Mp=e=>{let{componentCls:t,menuArrowOffset:r,calc:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${B(n(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${B(r)})`}}}}},Tp=Mp,Zi=e=>Object.assign({},Tn(e)),Dp=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:u,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:C,motionDurationMid:h,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:w,dangerItemSelectedColor:$,dangerItemActiveBg:N,dangerItemSelectedBg:E,itemHoverBg:R,itemActiveBg:M,menuSubMenuBg:P,horizontalItemSelectedColor:O,horizontalItemSelectedBg:I,horizontalItemBorderRadius:T,horizontalItemHoverBg:_,popupBg:D}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:s,[`&${r}-root:focus-visible`]:Object.assign({},Zi(e)),[`${r}-item-group-title`]:{color:a},[`${r}-submenu-selected`]:{[`> ${r}-submenu-title`]:{color:o}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${x} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:v}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:M}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:M}}},[`${r}-item-danger`]:{color:S,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:w}},[`&${r}-item:active`]:{background:N}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:E}},[`${r}-item, ${r}-submenu-title`]:{[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},Zi(e))},[`&${r}-submenu > ${r}`]:{backgroundColor:P},[`&${r}-popup > ${r}`]:{backgroundColor:D},[`&${r}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${B(d)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:d,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:d,borderBottomColor:O}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${B(u)} ${b} ${y}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:l},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${B(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(",")}}}}}},Qi=Dp,Ji=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:o,menuArrowSize:a,marginXS:s,itemMarginBlock:l,itemWidth:c}=e,d=e.calc(a).add(o).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:B(r),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:l,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:B(r)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:d}}},_p=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:s,motionDurationMid:l,motionEaseOut:c,paddingXL:d,itemMarginInline:f,fontSizeLG:u,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:g,collapsedWidth:C,collapsedIconSize:h}=e,v={height:n,lineHeight:B(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Ji(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Ji(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${B(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${B(e.calc(u).div(2).equal())} - ${B(f)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:h,lineHeight:B(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},xr),{paddingInline:m})}}]},kp=_p,el=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:a,iconCls:s,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${o}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:l,fontSize:l,transition:[`font-size ${n} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Jr()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tl=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:o,menuArrowSize:a,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${B(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${B(s)})`}}}}},zp=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,paddingXS:l,padding:c,colorSplit:d,lineWidth:f,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:g,menuArrowOffset:C,lineType:h,menuPanelMaskInset:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[`${r}`]:Object.assign(Object.assign({},Mo()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),Mo()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${B(l)} ${B(c)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${a} ${s}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:h,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),el(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${B(e.calc(n).mul(2).equal())} ${B(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${B(v)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},el(e)),tl(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:m},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})}}),tl(e)),{[`&-inline-collapsed ${r}-submenu-arrow, &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${B(C)})`},"&::after":{transform:`rotate(45deg) translateX(${B(e.calc(C).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${B(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${B(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${B(C)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},Bp=e=>{const{colorPrimary:t,colorError:r,colorTextDisabled:n,colorErrorBg:o,colorText:a,colorTextDescription:s,colorBgContainer:l,colorFillAlter:c,colorFillContent:d,lineWidth:f,lineWidthBold:u,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:g,lineHeight:C,colorBgElevated:h,marginXXS:v,padding:b,fontSize:y,controlHeightSM:x,fontSizeLG:S,colorTextLightSolid:w,colorErrorHover:$}=e,N=new rn(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:d,itemActiveBg:p,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:u,activeBarHeight:u,colorActiveBarBorderSize:f,activeBarBorderWidth:f,colorItemTextDisabled:n,itemDisabledColor:n,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:C,collapsedWidth:g*2,popupBg:h,itemMarginBlock:v,itemPaddingInline:b,horizontalLineHeight:`${g*1.15}px`,iconSize:y,iconMarginInlineEnd:x-y,collapsedIconSize:S,groupTitleFontSize:y,darkItemDisabledColor:new rn(w).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:t,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:w,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:r,itemWidth:""}},Kp=e=>Object.assign(Object.assign({},e),{itemWidth:e.activeBarWidth?`calc(100% + ${e.activeBarBorderWidth}px)`:`calc(100% - ${e.itemMarginInline*2}px)`}),Lp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return an("Menu",o=>{const{colorBgElevated:a,colorPrimary:s,colorTextLightSolid:l,controlHeightLG:c,fontSize:d,darkItemColor:f,darkDangerItemColor:u,darkItemBg:p,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:C,darkDangerItemSelectedBg:h,darkItemHoverBg:v,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:x,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:$}=o,N=o.calc(d).div(7).mul(5).equal(),E=$t(o,{menuArrowSize:N,menuHorizontalHeight:o.calc(c).mul(1.15).equal(),menuArrowOffset:o.calc(N).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:a,calc:o.calc}),R=$t(E,{itemColor:f,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:g,itemBg:p,popupBg:p,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:x,dangerItemColor:u,dangerItemHoverColor:S,dangerItemSelectedColor:w,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:m,horizontalItemSelectedColor:l,horizontalItemSelectedBg:s});return[zp(E),Rp(E),kp(E),Qi(E,"light"),Qi(R,"dark"),Tp(E),Za(E),Qn(E,"slide-up"),Qn(E,"slide-down"),rs(E,"zoom-big")]},Bp,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],format:Kp,injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,t)};var jp=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const o=i.useContext(Vr),a=o||{},{getPrefixCls:s,getPopupContainer:l,direction:c,menu:d}=i.useContext(vt),f=s(),{prefixCls:u,className:p,style:m,theme:g="light",expandIcon:C,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:b,items:y,children:x,rootClassName:S,mode:w,selectable:$,onClick:N,overflowedIndicatorPopupClassName:E}=e,R=jp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=Lt(R,["collapsedWidth"]),P=Op(y)||x;(r=a.validator)===null||r===void 0||r.call(a,{mode:w});const O=un(function(){var J;N==null||N.apply(void 0,arguments),(J=a.onClick)===null||J===void 0||J.call(a)}),I=a.mode||w,T=$??a.selectable,_=i.useMemo(()=>b!==void 0?b:v,[v,b]),D={horizontal:{motionName:`${f}-slide-up`},inline:Wa(f),other:{motionName:`${f}-zoom-big`}},k=s("menu",u||a.prefixCls),Y=In(k),[z,L,ee]=Lp(k,Y,!o),ie=U(`${k}-${g}`,d==null?void 0:d.className,p);let de;if(typeof C=="function")de=C;else if(C===null||C===!1)de=null;else if(a.expandIcon===null||a.expandIcon===!1)de=null;else{const J=C??a.expandIcon;de=en(J,{className:U(`${k}-submenu-expand-icon`,bn(J)?(n=J.props)===null||n===void 0?void 0:n.className:"")})}const Q=i.useMemo(()=>({prefixCls:k,inlineCollapsed:_||!1,direction:c,firstLevel:!0,theme:g,mode:I,disableMenuItemTitleTooltip:h}),[k,_,c,h,g]);return z(i.createElement(Vr.Provider,{value:null},i.createElement(Wr.Provider,{value:Q},i.createElement(Er,Object.assign({getPopupContainer:l,overflowedIndicator:i.createElement(Gs,null),overflowedIndicatorPopupClassName:U(k,`${k}-${g}`,E),mode:I,selectable:T,onClick:O},M,{inlineCollapsed:_,style:Object.assign(Object.assign({},d==null?void 0:d.style),m),className:ie,prefixCls:k,direction:c,defaultMotions:D,expandIcon:de,ref:t,rootClassName:U(S,L,a.rootClassName,ee,Y)}),P))))}),Ap=Hp,Ir=i.forwardRef((e,t)=>{const r=i.useRef(null),n=i.useContext(ns);return i.useImperativeHandle(t,()=>({menu:r.current,focus:o=>{var a;(a=r.current)===null||a===void 0||a.focus(o)}})),i.createElement(Ap,Object.assign({ref:r},e,n))});Ir.Item=Xs;Ir.SubMenu=Ys;Ir.Divider=qs;Ir.ItemGroup=so;const Qs=Ir,Fp=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:o}=e,a=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:n,"&:hover":{color:o,backgroundColor:n}}}}}},Wp=Fp,Vp=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:o,sizePopupArrow:a,antCls:s,iconCls:l,motionDurationMid:c,paddingBlock:d,fontSize:f,dropdownEdgeChildPadding:u,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:g,colorBgElevated:C}=e;return[{[t]:Object.assign(Object.assign({},Mt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${s}-btn`]:{[`& > ${l}-down, & > ${s}-btn-icon > ${l}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${l}-down`]:{fontSize:m},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:qa},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ya},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Xa},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ga}})},au(e,C,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[r]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},To(e)),{[`${r}-item-group-title`]:{padding:`${B(d)} ${B(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${B(d)} ${B(g)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},To(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${B(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${B(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:C,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Qn(e,"slide-up"),Qn(e,"slide-down"),Hr(e,"move-up"),Hr(e,"move-down"),rs(e,"zoom-big")]]},Up=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},iu({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),lu(e)),qp=an("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:o}=e,a=$t(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[Vp(a),Wp(a)]},Up),di=e=>{const{menu:t,arrow:r,prefixCls:n,children:o,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:d,rootClassName:f,overlayStyle:u,open:p,onOpenChange:m,visible:g,onVisibleChange:C,mouseEnterDelay:h=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:x,transitionName:S}=e,{getPopupContainer:w,getPrefixCls:$,direction:N,dropdown:E}=i.useContext(vt);eo();const R=i.useMemo(()=>{const A=$();return S!==void 0?S:y.includes("top")?`${A}-slide-down`:`${A}-slide-up`},[$,y,S]),M=i.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:N==="rtl"?"bottomRight":"bottomLeft",[y,N]),P=$("dropdown",n),O=In(P),[I,T,_]=qp(P,O),[,D]=En(),k=i.Children.only(o),Y=en(k,{className:U(`${P}-trigger`,{[`${P}-rtl`]:N==="rtl"},k.props.className),disabled:s}),z=s?[]:a;let L;z&&z.includes("contextMenu")&&(L=!0);const[ee,ie]=Kt(!1,{value:p??g}),de=un(A=>{m==null||m(A,{source:"trigger"}),C==null||C(A),ie(A)}),Q=U(d,f,T,_,O,E==null?void 0:E.className,{[`${P}-rtl`]:N==="rtl"}),J=su({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:D.marginXXS,arrowWidth:r?D.sizePopupArrow:0,borderRadius:D.borderRadius}),se=i.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(m==null||m(!1,{source:"menu"}),ie(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),q=()=>{let A;return t!=null&&t.items?A=i.createElement(Qs,Object.assign({},t)):typeof x=="function"?A=x():A=x,l&&(A=l(A)),A=i.Children.only(typeof A=="string"?i.createElement("span",null,A):A),i.createElement(Zs,{prefixCls:`${P}-menu`,rootClassName:_,expandIcon:i.createElement("span",{className:`${P}-menu-submenu-arrow`},i.createElement(jr,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:j=>{}},A)},[X,Z]=ja("Dropdown",u==null?void 0:u.zIndex);let K=i.createElement(_m,Object.assign({alignPoint:L},Lt(e,["rootClassName"]),{mouseEnterDelay:h,mouseLeaveDelay:v,visible:ee,builtinPlacements:J,arrow:!!r,overlayClassName:Q,prefixCls:P,getPopupContainer:c||w,transitionName:R,trigger:z,overlay:q,placement:M,onVisibleChange:de,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),u),{zIndex:X})}),Y);return X&&(K=i.createElement(Nd.Provider,{value:Z},K)),I(K)};function Xp(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Yp=ms(di,"dropdown",e=>e,Xp),Gp=e=>i.createElement(Yp,Object.assign({},e),i.createElement("span",null));di._InternalPanelDoNotUseOrYouWillBeFired=Gp;const Js=di,ec=i.createContext(null),Zp=ec.Provider,tc=i.createContext(null),Qp=tc.Provider;var Jp=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],nc=i.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-checkbox":n,a=e.className,s=e.style,l=e.checked,c=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,u=e.type,p=u===void 0?"checkbox":u,m=e.title,g=e.onChange,C=Je(e,Jp),h=i.useRef(null),v=Kt(f,{value:l}),b=re(v,2),y=b[0],x=b[1];i.useImperativeHandle(t,function(){return{focus:function(){var N;(N=h.current)===null||N===void 0||N.focus()},blur:function(){var N;(N=h.current)===null||N===void 0||N.blur()},input:h.current}});var S=U(o,a,(r={},V(r,"".concat(o,"-checked"),y),V(r,"".concat(o,"-disabled"),c),r)),w=function(N){c||("checked"in e||x(N.target.checked),g==null||g({target:H(H({},e),{},{type:p,checked:N.target.checked}),stopPropagation:function(){N.stopPropagation()},preventDefault:function(){N.preventDefault()},nativeEvent:N.nativeEvent}))};return i.createElement("span",{className:S,title:m,style:s},i.createElement("input",le({},C,{className:"".concat(o,"-input"),ref:h,onChange:w,disabled:c,checked:!!y,type:p})),i.createElement("span",{className:"".concat(o,"-inner")}))});const ev=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},Mt(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},tv=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:o,motionDurationSlow:a,motionDurationMid:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:d,lineWidth:f,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:m,dotColorDisabled:g,lineType:C,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=4,S=b(o).sub(b(x).mul(2)),w=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${B(f)} ${C} ${n}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Tn(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:d,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(S).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},nv=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:o,lineType:a,colorBorder:s,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:d,fontSize:f,buttonBg:u,fontSizeLG:p,controlHeightLG:m,controlHeightSM:g,paddingXS:C,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:S,colorBgContainerDisabled:w,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:N,colorPrimary:E,colorPrimaryHover:R,colorPrimaryActive:M,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:I,calc:T}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:B(T(r).sub(T(o).mul(2)).equal()),background:u,border:`${B(o)} ${a} ${s}`,borderBlockStartWidth:T(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:T(o).mul(-1).equal(),insetInlineStart:T(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:s,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${B(o)} ${a} ${s}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${n}-group-large &`]:{height:m,fontSize:p,lineHeight:B(T(m).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${n}-group-small &`]:{height:g,paddingInline:T(C).sub(o).equal(),paddingBlock:0,lineHeight:B(T(g).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Tn(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:x,background:P,borderColor:P,"&:hover":{color:x,background:O,borderColor:O},"&:active":{color:x,background:I,borderColor:I}},"&-disabled":{color:S,backgroundColor:w,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:w,borderColor:s}},[`&-disabled${n}-button-wrapper-checked`]:{color:N,backgroundColor:$,borderColor:s,boxShadow:"none"}}}},rv=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:o,fontSizeLG:a,colorText:s,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:d,colorTextLightSolid:f,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:m,colorWhite:g}=e,C=4,h=a,v=t?h-C*2:h-(C+o)*2;return{radioSize:h,dotSize:v,dotColorDisabled:c,buttonSolidCheckedColor:f,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:m,buttonBg:l,buttonCheckedBg:l,buttonColor:s,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:c,buttonPaddingInline:r-o,wrapperMarginInlineEnd:n,radioColor:t?u:g,radioBgColor:t?l:u}},rc=an("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${B(r)} ${t}`,a=$t(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[ev(a),tv(a),nv(a)]},rv,{unitless:{radioSize:!0,dotSize:!0}});var ov=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const o=i.useContext(ec),a=i.useContext(tc),{getPrefixCls:s,direction:l,radio:c}=i.useContext(vt),d=i.useRef(null),f=tr(t,d),{isFormItemInput:u}=i.useContext(Sr),p=O=>{var I,T;(I=e.onChange)===null||I===void 0||I.call(e,O),(T=o==null?void 0:o.onChange)===null||T===void 0||T.call(o,O)},{prefixCls:m,className:g,rootClassName:C,children:h,style:v}=e,b=ov(e,["prefixCls","className","rootClassName","children","style"]),y=s("radio",m),x=((o==null?void 0:o.optionType)||a)==="button",S=x?`${y}-button`:y,w=In(y),[$,N,E]=rc(y,w),R=Object.assign({},b),M=i.useContext(La);o&&(R.name=o.name,R.onChange=p,R.checked=e.value===o.value,R.disabled=(r=R.disabled)!==null&&r!==void 0?r:o.disabled),R.disabled=(n=R.disabled)!==null&&n!==void 0?n:M;const P=U(`${S}-wrapper`,{[`${S}-wrapper-checked`]:R.checked,[`${S}-wrapper-disabled`]:R.disabled,[`${S}-wrapper-rtl`]:l==="rtl",[`${S}-wrapper-in-form-item`]:u},c==null?void 0:c.className,g,C,N,E,w);return $(i.createElement(os,{component:"Radio",disabled:R.disabled},i.createElement("label",{className:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},i.createElement(nc,Object.assign({},R,{className:U(R.className,!x&&as),type:"radio",prefixCls:S,ref:f})),h!==void 0?i.createElement("span",null,h):null)))},iv=i.forwardRef(av),Ur=iv,lv=i.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=i.useContext(vt),[o,a]=Kt(e.defaultValue,{value:e.value}),s=I=>{const T=o,_=I.target.value;"value"in e||a(_);const{onChange:D}=e;D&&_!==T&&D(I)},{prefixCls:l,className:c,rootClassName:d,options:f,buttonStyle:u="outline",disabled:p,children:m,size:g,style:C,id:h,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:x}=e,S=r("radio",l),w=`${S}-group`,$=In(S),[N,E,R]=rc(S,$);let M=m;f&&f.length>0&&(M=f.map(I=>typeof I=="string"||typeof I=="number"?i.createElement(Ur,{key:I.toString(),prefixCls:S,disabled:p,value:I,checked:o===I},I):i.createElement(Ur,{key:`radio-group-value-options-${I.value}`,prefixCls:S,disabled:I.disabled||p,value:I.value,checked:o===I.value,title:I.title,style:I.style,id:I.id,required:I.required},I.label)));const P=nr(g),O=U(w,`${w}-${u}`,{[`${w}-${P}`]:P,[`${w}-rtl`]:n==="rtl"},c,d,E,R,$);return N(i.createElement("div",Object.assign({},fn(e,{aria:!0,data:!0}),{className:O,style:C,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:x,id:h,ref:t}),i.createElement(Zp,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),sv=i.memo(lv);var cv=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r}=i.useContext(vt),{prefixCls:n}=e,o=cv(e,["prefixCls"]),a=r("radio",n);return i.createElement(Qp,{value:"button"},i.createElement(Ur,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},uv=i.forwardRef(dv),co=Ur;co.Button=uv;co.Group=sv;co.__ANT_RADIO=!0;const oc=co;function fv(e,t,r){var n=r||{},o=n.noTrailing,a=o===void 0?!1:o,s=n.noLeading,l=s===void 0?!1:s,c=n.debounceMode,d=c===void 0?void 0:c,f,u=!1,p=0;function m(){f&&clearTimeout(f)}function g(h){var v=h||{},b=v.upcomingOnly,y=b===void 0?!1:b;m(),u=!y}function C(){for(var h=arguments.length,v=new Array(h),b=0;be?l?(p=Date.now(),a||(f=setTimeout(d?w:S,e))):S():a!==!0&&(f=setTimeout(d?w:S,d===void 0?e-x:e))}return C.cancel=g,C}function mv(e,t,r){var n=r||{},o=n.atBegin,a=o===void 0?!1:o;return fv(e,t,{debounceMode:a!==!1})}function Zt(e,t){return e[t]}var pv=["children"];function ac(e,t){return"".concat(e,"-").concat(t)}function vv(e){return e&&e.type&&e.type.isTreeNode}function Or(e,t){return e??t}function Jn(e){var t=e||{},r=t.title,n=t._title,o=t.key,a=t.children,s=r||"title";return{title:s,_title:n||[s],key:o||"key",children:a||"children"}}function ic(e){function t(r){var n=$n(r);return n.map(function(o){if(!vv(o))return Jt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,s=o.props,l=s.children,c=Je(s,pv),d=H({key:a},c),f=t(l);return f.length&&(d.children=f),d}).filter(function(o){return o})}return t(e)}function yo(e,t,r){var n=Jn(r),o=n._title,a=n.key,s=n.children,l=new Set(t===!0?[]:t),c=[];function d(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(p,m){for(var g=ac(u?u.pos:"0",m),C=Or(p[a],g),h,v=0;v1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,s=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,d=a||c,f={},u={},p={posEntities:f,keyEntities:u};return r&&(p=r(p)||p),gv(e,function(m){var g=m.node,C=m.index,h=m.pos,v=m.key,b=m.parentPos,y=m.level,x=m.nodes,S={node:g,nodes:x,index:C,key:v,pos:h,level:y},w=Or(v,h);f[h]=S,u[w]=S,S.parent=f[b],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),n&&n(S,p)},{externalGetKey:d,childrenPropName:s,fieldNames:l}),o&&o(p),p}function br(e,t){var r=t.expandedKeys,n=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,s=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,d=t.dropPosition,f=t.keyEntities,u=Zt(f,e),p={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:c===e&&d===0,dragOverGapTop:c===e&&d===-1,dragOverGapBottom:c===e&&d===1};return p}function xt(e){var t=e.data,r=e.expanded,n=e.selected,o=e.checked,a=e.loaded,s=e.loading,l=e.halfChecked,c=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,u=e.pos,p=e.active,m=e.eventKey,g=H(H({},t),{},{expanded:r,selected:n,checked:o,loaded:a,loading:s,halfChecked:l,dragOver:c,dragOverGapTop:d,dragOverGapBottom:f,pos:u,active:p,key:m});return"props"in g||Object.defineProperty(g,"props",{get:function(){return Jt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function lc(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function hv(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,o=t.checkable;return!!(r||n)||o===!1}function bv(e,t,r,n){for(var o=new Set(e),a=new Set,s=0;s<=r;s+=1){var l=t.get(s)||new Set;l.forEach(function(u){var p=u.key,m=u.node,g=u.children,C=g===void 0?[]:g;o.has(p)&&!n(m)&&C.filter(function(h){return!n(h.node)}).forEach(function(h){o.add(h.key)})})}for(var c=new Set,d=r;d>=0;d-=1){var f=t.get(d)||new Set;f.forEach(function(u){var p=u.parent,m=u.node;if(!(n(m)||!u.parent||c.has(u.parent.key))){if(n(u.parent.node)){c.add(p.key);return}var g=!0,C=!1;(p.children||[]).filter(function(h){return!n(h.node)}).forEach(function(h){var v=h.key,b=o.has(v);g&&!b&&(g=!1),!C&&(b||a.has(v))&&(C=!0)}),g&&o.add(p.key),C&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(lc(a,o))}}function yv(e,t,r,n,o){for(var a=new Set(e),s=new Set(t),l=0;l<=n;l+=1){var c=r.get(l)||new Set;c.forEach(function(p){var m=p.key,g=p.node,C=p.children,h=C===void 0?[]:C;!a.has(m)&&!s.has(m)&&!o(g)&&h.filter(function(v){return!o(v.node)}).forEach(function(v){a.delete(v.key)})})}s=new Set;for(var d=new Set,f=n;f>=0;f-=1){var u=r.get(f)||new Set;u.forEach(function(p){var m=p.parent,g=p.node;if(!(o(g)||!p.parent||d.has(p.parent.key))){if(o(p.parent.node)){d.add(m.key);return}var C=!0,h=!1;(m.children||[]).filter(function(v){return!o(v.node)}).forEach(function(v){var b=v.key,y=a.has(b);C&&!y&&(C=!1),!h&&(y||s.has(b))&&(h=!0)}),C||a.delete(m.key),h&&s.add(m.key),d.add(m.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(lc(s,a))}}function Yn(e,t,r,n){var o=[],a;n?a=n:a=hv;var s=new Set(e.filter(function(f){var u=!!Zt(r,f);return u||o.push(f),u})),l=new Map,c=0;Object.keys(r).forEach(function(f){var u=r[f],p=u.level,m=l.get(p);m||(m=new Set,l.set(p,m)),m.add(u),c=Math.max(c,p)}),Jt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var d;return t===!0?d=bv(s,l,c,a):d=yv(s,t.halfCheckedKeys,l,c,a),d}const Cv=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Tn(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${B(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function sc(e,t){const r=$t(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cv(r)]}const cc=an("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[sc(r,e)]}),xv=ce.createContext(null),dc=xv;var Sv=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,className:o,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:d,onMouseLeave:f,skipGroup:u=!1,disabled:p}=e,m=Sv(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:C,checkbox:h}=i.useContext(vt),v=i.useContext(dc),{isFormItemInput:b}=i.useContext(Sr),y=i.useContext(La),x=(r=(v==null?void 0:v.disabled)||p)!==null&&r!==void 0?r:y,S=i.useRef(m.value);i.useEffect(()=>{v==null||v.registerValue(m.value)},[]),i.useEffect(()=>{if(!u)return m.value!==S.current&&(v==null||v.cancelValue(S.current),v==null||v.registerValue(m.value),S.current=m.value),()=>v==null?void 0:v.cancelValue(m.value)},[m.value]);const w=g("checkbox",n),$=In(w),[N,E,R]=cc(w,$),M=Object.assign({},m);v&&!u&&(M.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),v.toggleOption&&v.toggleOption({label:s,value:m.value})},M.name=v.name,M.checked=v.value.includes(m.value));const P=U(`${w}-wrapper`,{[`${w}-rtl`]:C==="rtl",[`${w}-wrapper-checked`]:M.checked,[`${w}-wrapper-disabled`]:x,[`${w}-wrapper-in-form-item`]:b},h==null?void 0:h.className,o,a,R,$,E),O=U({[`${w}-indeterminate`]:l},as,E),I=l?"mixed":void 0;return N(i.createElement(os,{component:"Checkbox",disabled:x},i.createElement("label",{className:P,style:Object.assign(Object.assign({},h==null?void 0:h.style),c),onMouseEnter:d,onMouseLeave:f},i.createElement(nc,Object.assign({"aria-checked":I},M,{prefixCls:w,className:O,disabled:x,ref:t})),s!==void 0&&i.createElement("span",null,s))))},$v=i.forwardRef(wv),uc=$v;var Ev=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{defaultValue:r,children:n,options:o=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:d}=e,f=Ev(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:u,direction:p}=i.useContext(vt),[m,g]=i.useState(f.value||r||[]),[C,h]=i.useState([]);i.useEffect(()=>{"value"in f&&g(f.value||[])},[f.value]);const v=i.useMemo(()=>o.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),[o]),b=T=>{h(_=>_.filter(D=>D!==T))},y=T=>{h(_=>[].concat(Re(_),[T]))},x=T=>{const _=m.indexOf(T.value),D=Re(m);_===-1?D.push(T.value):D.splice(_,1),"value"in f||g(D),d==null||d(D.filter(k=>C.includes(k)).sort((k,Y)=>{const z=v.findIndex(ee=>ee.value===k),L=v.findIndex(ee=>ee.value===Y);return z-L}))},S=u("checkbox",a),w=`${S}-group`,$=In(S),[N,E,R]=cc(S,$),M=Lt(f,["value","disabled"]),P=o.length?v.map(T=>i.createElement(uc,{prefixCls:S,key:T.value.toString(),disabled:"disabled"in T?T.disabled:f.disabled,value:T.value,checked:m.includes(T.value),onChange:T.onChange,className:`${w}-item`,style:T.style,title:T.title,id:T.id,required:T.required},T.label)):n,O={toggleOption:x,value:m,disabled:f.disabled,name:f.name,registerValue:y,cancelValue:b},I=U(w,{[`${w}-rtl`]:p==="rtl"},s,l,R,$,E);return N(i.createElement("div",Object.assign({className:I,style:c},M,{ref:t}),i.createElement(dc.Provider,{value:O},P)))},Ov=i.forwardRef(Iv),Nv=i.memo(Ov),fi=uc;fi.Group=Nv;fi.__ANT_CHECKBOX=!0;const qr=fi;var fc=ce.forwardRef(function(e,t){var r,n=e.prefixCls,o=e.forceRender,a=e.className,s=e.style,l=e.children,c=e.isActive,d=e.role,f=ce.useState(c||o),u=re(f,2),p=u[0],m=u[1];return ce.useEffect(function(){(o||c)&&m(!0)},[o,c]),p?ce.createElement("div",{ref:t,className:U("".concat(n,"-content"),(r={},V(r,"".concat(n,"-content-active"),c),V(r,"".concat(n,"-content-inactive"),!c),r),a),style:s,role:d},ce.createElement("div",{className:"".concat(n,"-content-box")},l)):null});fc.displayName="PanelContent";var Pv=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],mc=ce.forwardRef(function(e,t){var r,n,o=e.showArrow,a=o===void 0?!0:o,s=e.headerClass,l=e.isActive,c=e.onItemClick,d=e.forceRender,f=e.className,u=e.prefixCls,p=e.collapsible,m=e.accordion,g=e.panelKey,C=e.extra,h=e.header,v=e.expandIcon,b=e.openMotion,y=e.destroyInactivePanel,x=e.children,S=Je(e,Pv),w=p==="disabled",$=p==="header",N=p==="icon",E=C!=null&&typeof C!="boolean",R=function(){c==null||c(g)},M=function(D){(D.key==="Enter"||D.keyCode===xe.ENTER||D.which===xe.ENTER)&&R()},P=typeof v=="function"?v(e):ce.createElement("i",{className:"arrow"});P&&(P=ce.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(p)?R:void 0},P));var O=U((r={},V(r,"".concat(u,"-item"),!0),V(r,"".concat(u,"-item-active"),l),V(r,"".concat(u,"-item-disabled"),w),r),f),I=U(s,(n={},V(n,"".concat(u,"-header"),!0),V(n,"".concat(u,"-header-collapsible-only"),$),V(n,"".concat(u,"-icon-collapsible-only"),N),n)),T={className:I,"aria-expanded":l,"aria-disabled":w,onKeyDown:M};return!$&&!N&&(T.onClick=R,T.role=m?"tab":"button",T.tabIndex=w?-1:0),ce.createElement("div",le({},S,{ref:t,className:O}),ce.createElement("div",T,a&&P,ce.createElement("span",{className:"".concat(u,"-header-text"),onClick:p==="header"?R:void 0},h),E&&ce.createElement("div",{className:"".concat(u,"-extra")},C)),ce.createElement(Fa,le({visible:l,leavedClassName:"".concat(u,"-content-hidden")},b,{forceRender:d,removeOnLeave:y}),function(_,D){var k=_.className,Y=_.style;return ce.createElement(fc,{ref:D,prefixCls:u,className:k,style:Y,isActive:l,forceRender:d,role:m?"tabpanel":void 0},x)}))}),Rv=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Mv=function(t,r){var n=r.prefixCls,o=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,d=r.openMotion,f=r.expandIcon;return t.map(function(u,p){var m=u.children,g=u.label,C=u.key,h=u.collapsible,v=u.onItemClick,b=u.destroyInactivePanel,y=Je(u,Rv),x=String(C??p),S=h??a,w=b??s,$=function(R){S!=="disabled"&&(l(R),v==null||v(R))},N=!1;return o?N=c[0]===x:N=c.indexOf(x)>-1,ce.createElement(mc,le({},y,{prefixCls:n,key:x,panelKey:x,isActive:N,accordion:o,openMotion:d,expandIcon:f,header:g,collapsible:S,onItemClick:$,destroyInactivePanel:w}),m)})},Tv=function(t,r,n){if(!t)return null;var o=n.prefixCls,a=n.accordion,s=n.collapsible,l=n.destroyInactivePanel,c=n.onItemClick,d=n.activeKey,f=n.openMotion,u=n.expandIcon,p=t.key||String(r),m=t.props,g=m.header,C=m.headerClass,h=m.destroyInactivePanel,v=m.collapsible,b=m.onItemClick,y=!1;a?y=d[0]===p:y=d.indexOf(p)>-1;var x=v??s,S=function(N){x!=="disabled"&&(c(N),b==null||b(N))},w={key:p,panelKey:p,header:g,headerClass:C,isActive:y,prefixCls:o,destroyInactivePanel:h??l,openMotion:f,accordion:a,children:t.props.children,onItemClick:S,expandIcon:u,collapsible:x};return typeof t.type=="string"?t:(Object.keys(w).forEach(function($){typeof w[$]>"u"&&delete w[$]}),ce.cloneElement(t,w))};function Dv(e,t,r){return Array.isArray(e)?Mv(e,r):$n(t).map(function(n,o){return Tv(n,o,r)})}function _v(e){var t=e;if(!Array.isArray(t)){var r=Nt(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var kv=ce.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-collapse":r,o=e.destroyInactivePanel,a=o===void 0?!1:o,s=e.style,l=e.accordion,c=e.className,d=e.children,f=e.collapsible,u=e.openMotion,p=e.expandIcon,m=e.activeKey,g=e.defaultActiveKey,C=e.onChange,h=e.items,v=U(n,c),b=Kt([],{value:m,onChange:function(E){return C==null?void 0:C(E)},defaultValue:g,postState:_v}),y=re(b,2),x=y[0],S=y[1],w=function(E){return S(function(){if(l)return x[0]===E?[]:[E];var R=x.indexOf(E),M=R>-1;return M?x.filter(function(P){return P!==E}):[].concat(Re(x),[E])})};Jt(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var $=Dv(h,d,{prefixCls:n,accordion:l,openMotion:u,expandIcon:p,collapsible:f,destroyInactivePanel:a,onItemClick:w,activeKey:x});return ce.createElement("div",{ref:t,className:v,style:s,role:l?"tablist":void 0},$)});const mi=Object.assign(kv,{Panel:mc});mi.Panel;const zv=i.forwardRef((e,t)=>{const{getPrefixCls:r}=i.useContext(vt),{prefixCls:n,className:o,showArrow:a=!0}=e,s=r("collapse",n),l=U({[`${s}-no-arrow`]:!a},o);return i.createElement(mi.Panel,Object.assign({ref:t},e,{prefixCls:s,className:l}))}),Bv=zv,Kv=e=>{const{componentCls:t,contentBg:r,padding:n,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:d,lineType:f,colorBorder:u,colorText:p,colorTextHeading:m,colorTextDisabled:g,fontSizeLG:C,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:S,motionDurationSlow:w,fontSizeIcon:$,contentPadding:N,fontHeight:E,fontHeightLG:R}=e,M=`${B(d)} ${f} ${u}`;return{[t]:Object.assign(Object.assign({},Mt(e)),{backgroundColor:o,border:M,borderBottom:0,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${B(c)} ${B(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:m,lineHeight:h,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},Jr()),{fontSize:$,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:r,borderTop:M,[`& > ${t}-content-box`]:{padding:N},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(S).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:C,lineHeight:v,[`> ${t}-header`]:{padding:l,paddingInlineStart:n,[`> ${t}-expand-icon`]:{height:R,marginInlineStart:e.calc(x).sub(n).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${B(c)} ${B(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Lv=e=>{const{componentCls:t}=e,r=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},jv=e=>{const{componentCls:t,headerBg:r,paddingXXS:n,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:r,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:n}}}},Hv=e=>{const{componentCls:t,paddingSM:r}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:r}}}}}},Av=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Fv=an("Collapse",e=>{const t=$t(e,{collapseHeaderPaddingSM:`${B(e.paddingXS)} ${B(e.paddingSM)}`,collapseHeaderPaddingLG:`${B(e.padding)} ${B(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Kv(t),jv(t),Hv(t),Lv(t),Za(t)]},Av),Wv=i.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n,collapse:o}=i.useContext(vt),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:d=!0,ghost:f,size:u,expandIconPosition:p="start",children:m,expandIcon:g}=e,C=nr(R=>{var M;return(M=u??R)!==null&&M!==void 0?M:"middle"}),h=r("collapse",a),v=r(),[b,y,x]=Fv(h),S=i.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),w=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=g?g(R):i.createElement(jr,{rotate:R.isActive?90:void 0});return en(M,()=>({className:U(M.props.className,`${h}-arrow`)}))},$=U(`${h}-icon-position-${S}`,{[`${h}-borderless`]:!d,[`${h}-rtl`]:n==="rtl",[`${h}-ghost`]:!!f,[`${h}-${C}`]:C!=="middle"},o==null?void 0:o.className,s,l,y,x),N=Object.assign(Object.assign({},Wa(v)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),E=i.useMemo(()=>m?$n(m).map((R,M)=>{var P,O;if(!((P=R.props)===null||P===void 0)&&P.disabled){const I=(O=R.key)!==null&&O!==void 0?O:String(M),{disabled:T,collapsible:_}=R.props,D=Object.assign(Object.assign({},Lt(R.props,["disabled"])),{key:I,collapsible:_??(T?"disabled":void 0)});return en(R,D)}return R}):null,[m]);return b(i.createElement(mi,Object.assign({ref:t,openMotion:N},Lt(e,["rootClassName"]),{expandIcon:w,prefixCls:h,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),E))}),Vv=Object.assign(Wv,{Panel:Bv}),Uv=e=>{const{getPrefixCls:t,direction:r}=i.useContext(vt),{prefixCls:n,className:o}=e,a=t("input-group",n),s=t("input"),[l,c]=qd(s),d=U(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},c,o),f=i.useContext(Sr),u=i.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(i.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(Sr.Provider,{value:u},e.children)))},qv=Uv;var Xv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const Yv=Xv;var Gv=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Yv}))};const Zv=i.forwardRef(Gv);var Qv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Jv=Qv;var eg=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Jv}))};const tg=i.forwardRef(eg);var ng=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oe?i.createElement(tg,null):i.createElement(Zv,null),og={click:"onClick",hover:"onMouseOver"},ag=i.forwardRef((e,t)=>{const{visibilityToggle:r=!0}=e,n=typeof r=="object"&&r.visible!==void 0,[o,a]=i.useState(()=>n?r.visible:!1),s=i.useRef(null);i.useEffect(()=>{n&&a(r.visible)},[n,r]);const l=Xd(s),c=()=>{const{disabled:S}=e;S||(o&&l(),a(w=>{var $;const N=!w;return typeof r=="object"&&(($=r.onVisibleChange)===null||$===void 0||$.call(r,N)),N}))},d=S=>{const{action:w="click",iconRender:$=rg}=e,N=og[w]||"",E=$(o),R={[N]:c,className:`${S}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return i.cloneElement(i.isValidElement(E)?E:i.createElement("span",null,E),R)},{className:f,prefixCls:u,inputPrefixCls:p,size:m}=e,g=ng(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=i.useContext(vt),h=C("input",p),v=C("input-password",u),b=r&&d(v),y=U(v,f,{[`${v}-${m}`]:!!m}),x=Object.assign(Object.assign({},Lt(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:h,suffix:b});return m&&(x.size=m),i.createElement(Va,Object.assign({ref:tr(t,s)},x))}),ig=ag;var lg=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:d,disabled:f,onSearch:u,onChange:p,onCompositionStart:m,onCompositionEnd:g}=e,C=lg(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:v}=i.useContext(vt),b=i.useRef(!1),y=h("input-search",r),x=h("input",n),{compactSize:S}=Ka(y,v),w=nr(z=>{var L;return(L=a??S)!==null&&L!==void 0?L:z}),$=i.useRef(null),N=z=>{z&&z.target&&z.type==="click"&&u&&u(z.target.value,z,{source:"clear"}),p&&p(z)},E=z=>{var L;document.activeElement===((L=$.current)===null||L===void 0?void 0:L.input)&&z.preventDefault()},R=z=>{var L,ee;u&&u((ee=(L=$.current)===null||L===void 0?void 0:L.input)===null||ee===void 0?void 0:ee.value,z,{source:"input"})},M=z=>{b.current||d||R(z)},P=typeof l=="boolean"?i.createElement(ri,null):null,O=`${y}-button`;let I;const T=l||{},_=T.type&&T.type.__ANT_BUTTON===!0;_||T.type==="button"?I=en(T,Object.assign({onMouseDown:E,onClick:z=>{var L,ee;(ee=(L=T==null?void 0:T.props)===null||L===void 0?void 0:L.onClick)===null||ee===void 0||ee.call(L,z),R(z)},key:"enterButton"},_?{className:O,size:w}:{})):I=i.createElement(Zn,{className:O,type:l?"primary":void 0,size:w,disabled:f,key:"enterButton",onMouseDown:E,onClick:R,loading:d,icon:P},l),c&&(I=[I,en(c,{key:"addonAfter"})]);const D=U(y,{[`${y}-rtl`]:v==="rtl",[`${y}-${w}`]:!!w,[`${y}-with-button`]:!!l},o),k=z=>{b.current=!0,m==null||m(z)},Y=z=>{b.current=!1,g==null||g(z)};return i.createElement(Va,Object.assign({ref:tr($,t),onPressEnter:M},C,{size:w,onCompositionStart:k,onCompositionEnd:Y,prefixCls:x,addonAfter:I,suffix:s,onChange:N,className:D,disabled:f}))}),cg=sg,Nr=Va;Nr.Group=qv;Nr.Search=cg;Nr.TextArea=Yd;Nr.Password=ig;const dg=Nr,pc=ce.createContext({latestIndex:0}),ug=pc.Provider,fg=e=>{let{className:t,index:r,children:n,split:o,style:a}=e;const{latestIndex:s}=i.useContext(pc);return n==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:t,style:a},n),r{var r,n;const{getPrefixCls:o,space:a,direction:s}=i.useContext(vt),{size:l=(a==null?void 0:a.size)||"small",align:c,className:d,rootClassName:f,children:u,direction:p="horizontal",prefixCls:m,split:g,style:C,wrap:h=!1,classNames:v,styles:b}=e,y=pg(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,S]=Array.isArray(l)?l:[l,l],w=_i(S),$=_i(x),N=ki(S),E=ki(x),R=$n(u,{keepEmpty:!0}),M=c===void 0&&p==="horizontal"?"center":c,P=o("space",m),[O,I,T]=Rd(P),_=U(P,a==null?void 0:a.className,I,`${P}-${p}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${M}`]:M,[`${P}-gap-row-${S}`]:w,[`${P}-gap-col-${x}`]:$},d,f,T),D=U(`${P}-item`,(r=v==null?void 0:v.item)!==null&&r!==void 0?r:(n=a==null?void 0:a.classNames)===null||n===void 0?void 0:n.item);let k=0;const Y=R.map((ee,ie)=>{var de,Q;ee!=null&&(k=ie);const J=ee&&ee.key||`${D}-${ie}`;return i.createElement(mg,{className:D,key:J,index:ie,split:g,style:(de=b==null?void 0:b.item)!==null&&de!==void 0?de:(Q=a==null?void 0:a.styles)===null||Q===void 0?void 0:Q.item},ee)}),z=i.useMemo(()=>({latestIndex:k}),[k]);if(R.length===0)return null;const L={};return h&&(L.flexWrap="wrap"),!$&&E&&(L.columnGap=x),!w&&N&&(L.rowGap=S),O(i.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},L),a==null?void 0:a.style),C)},y),i.createElement(ug,{value:z},Y)))}),vc=vg;vc.Compact=Pd;const gg=vc;var hg=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:r,direction:n}=i.useContext(vt),{prefixCls:o,type:a="default",danger:s,disabled:l,loading:c,onClick:d,htmlType:f,children:u,className:p,menu:m,arrow:g,autoFocus:C,overlay:h,trigger:v,align:b,open:y,onOpenChange:x,placement:S,getPopupContainer:w,href:$,icon:N=i.createElement(Gs,null),title:E,buttonsRender:R=q=>q,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:O,overlayStyle:I,destroyPopupOnHide:T,dropdownRender:_}=e,D=hg(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),k=r("dropdown",o),Y=`${k}-button`,z={menu:m,arrow:g,autoFocus:C,align:b,disabled:l,trigger:l?[]:v,onOpenChange:x,getPopupContainer:w||t,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:O,overlayStyle:I,destroyPopupOnHide:T,dropdownRender:_},{compactSize:L,compactItemClassnames:ee}=Ka(k,n),ie=U(Y,ee,p);"overlay"in e&&(z.overlay=h),"open"in e&&(z.open=y),"placement"in e?z.placement=S:z.placement=n==="rtl"?"bottomLeft":"bottomRight";const de=i.createElement(Zn,{type:a,danger:s,disabled:l,loading:c,onClick:d,htmlType:f,href:$,title:E},u),Q=i.createElement(Zn,{type:a,danger:s,icon:N}),[J,se]=R([de,Q]);return i.createElement(gg.Compact,Object.assign({className:ie,size:L,block:!0},D),J,i.createElement(Js,Object.assign({},z),se))};gc.__ANT_BUTTON=!0;const bg=gc,hc=Js;hc.Button=bg;const bc=hc;function nl(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function Tr(e,t,r,n){var o=Oi.unstable_batchedUpdates?function(s){Oi.unstable_batchedUpdates(r,s)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,o,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,n)}}}const yg=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=r[n];o!==void 0&&(e[n]=o)})}return e},Cg=yg;var xg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Sg=xg;var wg=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Sg}))};const rl=i.forwardRef(wg);var $g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Eg=$g;var Ig=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Eg}))};const ol=i.forwardRef(Ig);var Og={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Ng=["10","20","50","100"],Pg=function(t){var r=t.pageSizeOptions,n=r===void 0?Ng:r,o=t.locale,a=t.changeSize,s=t.pageSize,l=t.goButton,c=t.quickGo,d=t.rootPrefixCls,f=t.selectComponentClass,u=t.selectPrefixCls,p=t.disabled,m=t.buildOptionText,g=ce.useState(""),C=re(g,2),h=C[0],v=C[1],b=function(){return!h||Number.isNaN(h)?void 0:Number(h)},y=typeof m=="function"?m:function(I){return"".concat(I," ").concat(o.items_per_page)},x=function(T){a==null||a(Number(T))},S=function(T){v(T.target.value)},w=function(T){l||h===""||(v(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&(c==null||c(b())))},$=function(T){h!==""&&(T.keyCode===xe.ENTER||T.type==="click")&&(v(""),c==null||c(b()))},N=function(){return n.some(function(T){return T.toString()===s.toString()})?n:n.concat([s.toString()]).sort(function(T,_){var D=Number.isNaN(Number(T))?0:Number(T),k=Number.isNaN(Number(_))?0:Number(_);return D-k})},E="".concat(d,"-options");if(!a&&!c)return null;var R=null,M=null,P=null;if(a&&f){var O=N().map(function(I,T){return ce.createElement(f.Option,{key:T,value:I.toString()},y(I))});R=ce.createElement(f,{disabled:p,prefixCls:u,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(s||n[0]).toString(),onChange:x,getPopupContainer:function(T){return T.parentNode},"aria-label":o.page_size,defaultOpen:!1},O)}return c&&(l&&(P=typeof l=="boolean"?ce.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:p,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):ce.createElement("span",{onClick:$,onKeyUp:$},l)),M=ce.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,ce.createElement("input",{disabled:p,type:"text",value:h,onChange:S,onKeyUp:$,onBlur:w,"aria-label":o.page}),o.page,P)),ce.createElement("li",{className:E},R,M)},fr=function(t){var r,n=t.rootPrefixCls,o=t.page,a=t.active,s=t.className,l=t.showTitle,c=t.onClick,d=t.onKeyPress,f=t.itemRender,u="".concat(n,"-item"),p=U(u,"".concat(u,"-").concat(o),(r={},V(r,"".concat(u,"-active"),a),V(r,"".concat(u,"-disabled"),!o),r),s),m=function(){c(o)},g=function(v){d(v,c,o)},C=f(o,"page",ce.createElement("a",{rel:"nofollow"},o));return C?ce.createElement("li",{title:l?String(o):null,className:p,onClick:m,onKeyDown:g,tabIndex:0},C):null},Rg=function(t,r,n){return n};function al(){}function il(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Pn(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var Mg=function(t){var r,n=t.prefixCls,o=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,s=a===void 0?"rc-select":a,l=t.className,c=t.selectComponentClass,d=t.current,f=t.defaultCurrent,u=f===void 0?1:f,p=t.total,m=p===void 0?0:p,g=t.pageSize,C=t.defaultPageSize,h=C===void 0?10:C,v=t.onChange,b=v===void 0?al:v,y=t.hideOnSinglePage,x=t.showPrevNextJumpers,S=x===void 0?!0:x,w=t.showQuickJumper,$=t.showLessItems,N=t.showTitle,E=N===void 0?!0:N,R=t.onShowSizeChange,M=R===void 0?al:R,P=t.locale,O=P===void 0?Og:P,I=t.style,T=t.totalBoundaryShowSizeChanger,_=T===void 0?50:T,D=t.disabled,k=t.simple,Y=t.showTotal,z=t.showSizeChanger,L=t.pageSizeOptions,ee=t.itemRender,ie=ee===void 0?Rg:ee,de=t.jumpPrevIcon,Q=t.jumpNextIcon,J=t.prevIcon,se=t.nextIcon,q=ce.useRef(null),X=Kt(10,{value:g,defaultValue:h}),Z=re(X,2),K=Z[0],A=Z[1],j=Kt(1,{value:d,defaultValue:u,postState:function(Qe){return Math.max(1,Math.min(Qe,Pn(void 0,K,m)))}}),G=re(j,2),F=G[0],W=G[1],oe=ce.useState(F),pe=re(oe,2),Ce=pe[0],ae=pe[1];i.useEffect(function(){ae(F)},[F]);var Ne=Math.max(1,F-($?3:5)),he=Math.min(Pn(void 0,K,m),F+($?3:5));function ze(Te,Qe){var ct=Te||ce.createElement("button",{type:"button","aria-label":Qe,className:"".concat(o,"-item-link")});return typeof Te=="function"&&(ct=ce.createElement(Te,H({},t))),ct}function be(Te){var Qe=Te.target.value,ct=Pn(void 0,K,m),Ft;return Qe===""?Ft=Qe:Number.isNaN(Number(Qe))?Ft=Ce:Qe>=ct?Ft=ct:Ft=Number(Qe),Ft}function De(Te){return il(Te)&&Te!==F&&il(m)&&m>0}var me=m>K?w:!1;function Ye(Te){(Te.keyCode===xe.UP||Te.keyCode===xe.DOWN)&&Te.preventDefault()}function Ae(Te){var Qe=be(Te);switch(Qe!==Ce&&ae(Qe),Te.keyCode){case xe.ENTER:fe(Qe);break;case xe.UP:fe(Qe-1);break;case xe.DOWN:fe(Qe+1);break}}function et(Te){fe(be(Te))}function $e(Te){var Qe=Pn(Te,K,m),ct=F>Qe&&Qe!==0?Qe:F;A(Te),ae(ct),M==null||M(F,Te),W(ct),b==null||b(ct,Te)}function fe(Te){if(De(Te)&&!D){var Qe=Pn(void 0,K,m),ct=Te;return Te>Qe?ct=Qe:Te<1&&(ct=1),ct!==Ce&&ae(ct),W(ct),b==null||b(ct,K),ct}return F}var Oe=F>1,Le=F_;function Me(){Oe&&fe(F-1)}function _e(){Le&&fe(F+1)}function it(){fe(Ne)}function rt(){fe(he)}function ot(Te,Qe){if(Te.key==="Enter"||Te.charCode===xe.ENTER||Te.keyCode===xe.ENTER){for(var ct=arguments.length,Ft=new Array(ct>2?ct-2:0),tn=2;tnm?m:F*K])),ve=null,ue=Pn(void 0,K,m);if(y&&m<=K)return null;var ye=[],Ve={rootPrefixCls:o,onClick:fe,onKeyPress:ot,showTitle:E,itemRender:ie,page:-1},Ge=F-1>0?F-1:0,Ct=F+1=Fe*2&&F!==1+2&&(ye[0]=ce.cloneElement(ye[0],{className:U("".concat(o,"-item-after-jump-prev"),ye[0].props.className)}),ye.unshift(Ie)),ue-F>=Fe*2&&F!==ue-2){var Tt=ye[ye.length-1];ye[ye.length-1]=ce.cloneElement(Tt,{className:U("".concat(o,"-item-before-jump-next"),Tt.props.className)}),ye.push(ve)}ut!==1&&ye.unshift(ce.createElement(fr,le({},Ve,{key:1,page:1}))),pt!==ue&&ye.push(ce.createElement(fr,le({},Ve,{key:ue,page:ue})))}var Dt=st(Ge);if(Dt){var At=!Oe||!ue;Dt=ce.createElement("li",{title:E?O.prev_page:null,onClick:Me,tabIndex:At?null:0,onKeyDown:Xe,className:U("".concat(o,"-prev"),V({},"".concat(o,"-disabled"),At)),"aria-disabled":At},Dt)}var qt=tt(Ct);if(qt){var Rt,Qt;k?(Rt=!Le,Qt=Oe?0:null):(Rt=!Le||!ue,Qt=Rt?null:0),qt=ce.createElement("li",{title:E?O.next_page:null,onClick:_e,tabIndex:Qt,onKeyDown:ft,className:U("".concat(o,"-next"),V({},"".concat(o,"-disabled"),Rt)),"aria-disabled":Rt},qt)}var ln=U(o,l,(r={},V(r,"".concat(o,"-simple"),k),V(r,"".concat(o,"-disabled"),D),r));return ce.createElement("ul",le({className:ln,style:I,ref:q},ke),te,Dt,k?He:ye,qt,ce.createElement(Pg,{locale:O,rootPrefixCls:o,disabled:D,selectComponentClass:c,selectPrefixCls:s,changeSize:We?$e:null,pageSize:K,pageSizeOptions:L,quickGo:me?fe:null,goButton:Pe}))};const yc=e=>i.createElement(oo,Object.assign({},e,{showSearch:!0,size:"small"})),Cc=e=>i.createElement(oo,Object.assign({},e,{showSearch:!0,size:"middle"}));yc.Option=oo.Option;Cc.Option=oo.Option;const Tg=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Dg=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),input:Object.assign(Object.assign({},Qd(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},_g=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${B(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${B(e.inputOutlineOffset)} 0 ${B(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},kg=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${B(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:B(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign({},Jd(e)),{width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},zg=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${B(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Bg=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),zg(e)),kg(e)),_g(e)),Dg(e)),Tg(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Kg=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},To(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Tn(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Tn(e))}}}},xc=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Gd(e)),Sc=e=>$t(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Zd(e)),Lg=an("Pagination",e=>{const t=Sc(e);return[Bg(t),Kg(t)]},xc),jg=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Hg=Md(["Pagination","bordered"],e=>{const t=Sc(e);return[jg(t)]},xc);var Ag=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:r,className:n,rootClassName:o,style:a,size:s,locale:l,selectComponentClass:c,responsive:d,showSizeChanger:f}=e,u=Ag(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=ks(d),[,m]=En(),{getPrefixCls:g,direction:C,pagination:h={}}=i.useContext(vt),v=g("pagination",t),[b,y,x]=Lg(v),S=f??h.showSizeChanger,w=i.useMemo(()=>{const I=i.createElement("span",{className:`${v}-item-ellipsis`},"•••"),T=i.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},C==="rtl"?i.createElement(jr,null):i.createElement(Ni,null)),_=i.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},C==="rtl"?i.createElement(Ni,null):i.createElement(jr,null)),D=i.createElement("a",{className:`${v}-item-link`},i.createElement("div",{className:`${v}-item-container`},C==="rtl"?i.createElement(ol,{className:`${v}-item-link-icon`}):i.createElement(rl,{className:`${v}-item-link-icon`}),I)),k=i.createElement("a",{className:`${v}-item-link`},i.createElement("div",{className:`${v}-item-container`},C==="rtl"?i.createElement(rl,{className:`${v}-item-link-icon`}):i.createElement(ol,{className:`${v}-item-link-icon`}),I));return{prevIcon:T,nextIcon:_,jumpPrevIcon:D,jumpNextIcon:k}},[C,v]),[$]=Ql("Pagination",Td),N=Object.assign(Object.assign({},$),l),E=nr(s),R=E==="small"||!!(p&&!E&&d),M=g("select",r),P=U({[`${v}-mini`]:R,[`${v}-rtl`]:C==="rtl",[`${v}-bordered`]:m.wireframe},h==null?void 0:h.className,n,o,y,x),O=Object.assign(Object.assign({},h==null?void 0:h.style),a);return b(i.createElement(i.Fragment,null,m.wireframe&&i.createElement(Hg,{prefixCls:v}),i.createElement(Mg,Object.assign({},w,u,{style:O,prefixCls:v,selectPrefixCls:M,className:P,selectComponentClass:c||(R?yc:Cc),locale:N,showSizeChanger:S}))))},Wg=Fg,Vg=new Et("antSpinMove",{to:{opacity:1}}),Ug=new Et("antRotate",{to:{transform:"rotate(405deg)"}}),qg=e=>{const{componentCls:t,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({},Mt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Vg,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Ug,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Xg=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},Yg=an("Spin",e=>{const t=$t(e,{spinDotDefault:e.colorTextDescription});return[qg(t)]},Xg);var Gg=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:r=!0,delay:n=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:d,children:f,fullscreen:u}=e,p=Gg(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:m}=i.useContext(vt),g=m("spin",t),[C,h,v]=Yg(g),[b,y]=i.useState(()=>r&&!Qg(r,n));i.useEffect(()=>{if(r){const P=mv(n,()=>{y(!0)});return P(),()=>{var O;(O=P==null?void 0:P.cancel)===null||O===void 0||O.call(P)}}y(!1)},[n,r]);const x=i.useMemo(()=>typeof f<"u"&&!u,[f,u]),{direction:S,spin:w}=i.useContext(vt),$=U(g,w==null?void 0:w.className,{[`${g}-sm`]:s==="small",[`${g}-lg`]:s==="large",[`${g}-spinning`]:b,[`${g}-show-text`]:!!l,[`${g}-fullscreen`]:u,[`${g}-fullscreen-show`]:u&&b,[`${g}-rtl`]:S==="rtl"},o,a,h,v),N=U(`${g}-container`,{[`${g}-blur`]:b}),E=Lt(p,["indicator"]),R=Object.assign(Object.assign({},w==null?void 0:w.style),d),M=i.createElement("div",Object.assign({},E,{style:R,className:$,"aria-live":"polite","aria-busy":b}),Zg(g,e),l&&(x||u)?i.createElement("div",{className:`${g}-text`},l):null);return C(x?i.createElement("div",Object.assign({},E,{className:U(`${g}-nested-loading`,c,h,v)}),b&&i.createElement("div",{key:"loading"},M),i.createElement("div",{className:N,key:"container"},f)):M)};wc.setDefaultIndicator=e=>{Br=e};const Jg=wc;var Sn={},Pr="rc-table-internal-hook";function pi(e){var t=i.createContext(void 0),r=function(o){var a=o.value,s=o.children,l=i.useRef(a);l.current=a;var c=i.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),d=re(c,1),f=d[0];return Vt(function(){Cr.unstable_batchedUpdates(function(){f.listeners.forEach(function(u){u(a)})})},[a]),i.createElement(t.Provider,{value:f},s)};return{Context:t,Provider:r,defaultValue:e}}function jt(e,t){var r=un(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var p={};return t.forEach(function(m){p[m]=u[m]}),p}),n=i.useContext(e==null?void 0:e.Context),o=n||{},a=o.listeners,s=o.getValue,l=i.useRef();l.current=r(n?s():e==null?void 0:e.defaultValue);var c=i.useState({}),d=re(c,2),f=d[1];return Vt(function(){if(!n)return;function u(p){var m=r(p);Mn(l.current,m,!0)||f({})}return a.add(u),function(){a.delete(u)}},[n]),l.current}function eh(){var e=i.createContext(null);function t(){return i.useContext(e)}function r(o,a){var s=Lr(o),l=function(d,f){var u=s?{ref:f}:{},p=i.useRef(0),m=i.useRef(d),g=t();return g!==null?i.createElement(o,le({},d,u)):((!a||a(m.current,d))&&(p.current+=1),m.current=d,i.createElement(e.Provider,{value:p.current},i.createElement(o,le({},d,u))))};return s?i.forwardRef(l):l}function n(o,a){var s=Lr(o),l=function(d,f){var u=s?{ref:f}:{};return t(),i.createElement(o,le({},d,u))};return s?i.memo(i.forwardRef(l),a):i.memo(l,a)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}var vi=eh(),$c=vi.makeImmutable,ar=vi.responseImmutable,th=vi.useImmutableMark,Ut=pi();function nh(e,t){var r=i.useRef(0);r.current+=1;var n=i.useRef(e),o=[];Object.keys(e||{}).map(function(s){var l;(e==null?void 0:e[s])!==((l=n.current)===null||l===void 0?void 0:l[s])&&o.push(s)}),n.current=e;var a=i.useRef([]);return o.length&&(a.current=o),i.useDebugValue(r.current),i.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),r.current,a.current),r.current}var rh=i.memo(function(){var e=nh();return i.createElement("h1",null,"Render Times: ",e)});rh.displayName="RenderBlock";var Ec=i.createContext({renderWithProps:!1}),oh="RC_TABLE_KEY";function ah(e){return e==null?[]:Array.isArray(e)?e:[e]}function uo(e){var t=[],r={};return e.forEach(function(n){for(var o=n||{},a=o.key,s=o.dataIndex,l=a||ah(s).join("-")||oh;r[l];)l="".concat(l,"_next");r[l]=!0,t.push(l)}),t}function Wo(e){return e!=null}function ih(e){return e&&Nt(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function lh(e,t,r,n,o,a){var s=i.useContext(Ec),l=th(),c=Qr(function(){if(Wo(n))return[n];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],f=is(e,d),u=f,p=void 0;if(o){var m=o(f,e,r);ih(m)?(u=m.children,p=m.props,s.renderWithProps=!0):u=m}return[u,p]},[l,e,n,t,o,r],function(d,f){if(a){var u=re(d,2),p=u[1],m=re(f,2),g=m[1];return a(g,p)}return s.renderWithProps?!0:!Mn(d,f,!0)});return c}function sh(e,t,r,n){var o=e+t-1;return e<=n&&o>=r}function ch(e,t){return jt(Ut,function(r){var n=sh(e,t||1,r.hoverStartRow,r.hoverEndRow);return[n,r.onHover]})}var dh=function(t){var r=t.ellipsis,n=t.rowType,o=t.children,a,s=r===!0?{showTitle:!0}:r;return s&&(s.showTitle||n==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():i.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function uh(e){var t,r,n,o,a,s,l,c,d=e.component,f=e.children,u=e.ellipsis,p=e.scope,m=e.prefixCls,g=e.className,C=e.align,h=e.record,v=e.render,b=e.dataIndex,y=e.renderIndex,x=e.shouldCellUpdate,S=e.index,w=e.rowType,$=e.colSpan,N=e.rowSpan,E=e.fixLeft,R=e.fixRight,M=e.firstFixLeft,P=e.lastFixLeft,O=e.firstFixRight,I=e.lastFixRight,T=e.appendNode,_=e.additionalProps,D=_===void 0?{}:_,k=e.isSticky,Y="".concat(m,"-cell"),z=jt(Ut,["supportSticky","allColumnsFixedLeft"]),L=z.supportSticky,ee=z.allColumnsFixedLeft,ie=lh(h,b,y,f,v,x),de=re(ie,2),Q=de[0],J=de[1],se={},q=typeof E=="number"&&L,X=typeof R=="number"&&L;q&&(se.position="sticky",se.left=E),X&&(se.position="sticky",se.right=R);var Z=(t=(r=(n=J==null?void 0:J.colSpan)!==null&&n!==void 0?n:D.colSpan)!==null&&r!==void 0?r:$)!==null&&t!==void 0?t:1,K=(o=(a=(s=J==null?void 0:J.rowSpan)!==null&&s!==void 0?s:D.rowSpan)!==null&&a!==void 0?a:N)!==null&&o!==void 0?o:1,A=ch(S,K),j=re(A,2),G=j[0],F=j[1],W=un(function(ze){var be;h&&F(S,S+K-1),D==null||(be=D.onMouseEnter)===null||be===void 0||be.call(D,ze)}),oe=un(function(ze){var be;h&&F(-1,-1),D==null||(be=D.onMouseLeave)===null||be===void 0||be.call(D,ze)});if(Z===0||K===0)return null;var pe=(l=D.title)!==null&&l!==void 0?l:dh({rowType:w,ellipsis:u,children:Q}),Ce=U(Y,g,(c={},V(c,"".concat(Y,"-fix-left"),q&&L),V(c,"".concat(Y,"-fix-left-first"),M&&L),V(c,"".concat(Y,"-fix-left-last"),P&&L),V(c,"".concat(Y,"-fix-left-all"),P&&ee&&L),V(c,"".concat(Y,"-fix-right"),X&&L),V(c,"".concat(Y,"-fix-right-first"),O&&L),V(c,"".concat(Y,"-fix-right-last"),I&&L),V(c,"".concat(Y,"-ellipsis"),u),V(c,"".concat(Y,"-with-append"),T),V(c,"".concat(Y,"-fix-sticky"),(q||X)&&k&&L),V(c,"".concat(Y,"-row-hover"),!J&&G),c),D.className,J==null?void 0:J.className),ae={};C&&(ae.textAlign=C);var Ne=H(H(H(H({},se),D.style),ae),J==null?void 0:J.style),he=Q;return Nt(he)==="object"&&!Array.isArray(he)&&!i.isValidElement(he)&&(he=null),u&&(P||O)&&(he=i.createElement("span",{className:"".concat(Y,"-content")},he)),i.createElement(d,le({},J,D,{className:Ce,style:Ne,title:pe,scope:p,onMouseEnter:W,onMouseLeave:oe,colSpan:Z!==1?Z:null,rowSpan:K!==1?K:null}),T,he)}const zn=i.memo(uh);function gi(e,t,r,n,o,a){var s=r[e]||{},l=r[t]||{},c,d;s.fixed==="left"?c=n.left[o==="rtl"?t:e]:l.fixed==="right"&&(d=n.right[o==="rtl"?e:t]);var f=!1,u=!1,p=!1,m=!1,g=r[t+1],C=r[e-1],h=!(a!=null&&a.children);if(o==="rtl"){if(c!==void 0){var v=C&&C.fixed==="left";m=!v&&h}else if(d!==void 0){var b=g&&g.fixed==="right";p=!b&&h}}else if(c!==void 0){var y=g&&g.fixed==="left";f=!y&&h}else if(d!==void 0){var x=C&&C.fixed==="right";u=!x&&h}return{fixLeft:c,fixRight:d,lastFixLeft:f,firstFixRight:u,lastFixRight:p,firstFixLeft:m,isSticky:n.isSticky}}var Ic=i.createContext({});function fh(e){var t=e.className,r=e.index,n=e.children,o=e.colSpan,a=o===void 0?1:o,s=e.rowSpan,l=e.align,c=jt(Ut,["prefixCls","direction"]),d=c.prefixCls,f=c.direction,u=i.useContext(Ic),p=u.scrollColumnIndex,m=u.stickyOffsets,g=u.flattenColumns,C=u.columns,h=r+a-1,v=h+1===p?a+1:a,b=gi(r,r+v-1,g,m,f,C==null?void 0:C[r]);return i.createElement(zn,le({className:t,index:r,component:"td",prefixCls:d,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:s,render:function(){return n}},b))}var mh=["children"];function ph(e){var t=e.children,r=Je(e,mh);return i.createElement("tr",r,t)}function fo(e){var t=e.children;return t}fo.Row=ph;fo.Cell=fh;function vh(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,o=e.columns,a=jt(Ut,"prefixCls"),s=n.length-1,l=n[s],c=i.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:l!=null&&l.scrollbar?s:null,columns:o}},[l,n,s,r,o]);return i.createElement(Ic.Provider,{value:c},i.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Dr=ar(vh);var Oc=fo;function gh(e){return null}function hh(e){return null}function Nc(e,t,r,n,o,a,s){e.push({record:t,indent:r,index:s});var l=a(t),c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[n])&&c)for(var d=0;d1?M-1:0),O=1;O=0;l-=1){var c=t[l],d=r&&r[l],f=d&&d[yr];if(c||f||s){var u=f||{};u.columnType;var p=Je(u,$h);o.unshift(i.createElement("col",le({key:l,style:{width:c}},p))),s=!0}}return i.createElement("colgroup",null,o)}var Eh=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ih(e,t){return i.useMemo(function(){for(var r=[],n=0;n1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:h.title?a:s,prefixCls:f,key:m[C]},v,{additionalProps:b,rowType:"header"}))}))}Bc.displayName="HeaderRow";function Oh(e){var t=[];function r(s,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var d=l,f=s.filter(Boolean).map(function(u){var p={key:u.key,className:u.className||"",children:u.title,column:u,colStart:d},m=1,g=u.children;return g&&g.length>0&&(m=r(g,d,c+1).reduce(function(C,h){return C+h},0),p.hasSubColumns=!0),"colSpan"in u&&(m=u.colSpan),"rowSpan"in u&&(p.rowSpan=u.rowSpan),p.colSpan=m,p.colEnd=p.colStart+m-1,t[c].push(p),d+=m,m});return f}r(e,0);for(var n=t.length,o=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=n-l)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Ph(e,t,r){return i.useMemo(function(){if(t&&t>0){var n=0,o=0;e.forEach(function(p){var m=cl(t,p.width);m?n+=m:o+=1});var a=Math.max(t,r),s=Math.max(a-n,o),l=o,c=s/o,d=0,f=e.map(function(p){var m=H({},p),g=cl(t,m.width);if(g)m.width=g;else{var C=Math.floor(c);m.width=l===1?s:C,s-=C,l-=1}return d+=m.width,m});if(d1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&Nt(r)==="object"}).reduce(function(r,n,o){var a=n.fixed,s=a===!0?"left":a,l="".concat(t,"-").concat(o),c=n.children;return c&&c.length>0?[].concat(Re(r),Re(Vo(c,l).map(function(d){return H({fixed:s},d)}))):[].concat(Re(r),[H(H({key:l},n),{},{fixed:s})])},[])}function Th(e){return e.map(function(t){var r=t.fixed,n=Je(t,Mh),o=r;return r==="left"?o="right":r==="right"&&(o="left"),H({fixed:o},n)})}function Dh(e,t){var r=e.prefixCls,n=e.columns,o=e.children,a=e.expandable,s=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,u=e.rowExpandable,p=e.expandIconColumnIndex,m=e.direction,g=e.expandRowByClick,C=e.columnWidth,h=e.fixed,v=e.scrollWidth,b=e.clientWidth,y=i.useMemo(function(){return n||hi(o)},[n,o]),x=i.useMemo(function(){if(a){var M,P=y.slice();if(!P.includes(Sn)){var O=p||0;O>=0&&P.splice(O,0,Sn)}var I=P.indexOf(Sn);P=P.filter(function(k,Y){return k!==Sn||Y===I});var T=y[I],_;(h==="left"||h)&&!p?_="left":(h==="right"||h)&&p===y.length?_="right":_=T?T.fixed:null;var D=(M={},V(M,yr,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),V(M,"title",l),V(M,"fixed",_),V(M,"className","".concat(r,"-row-expand-icon-cell")),V(M,"width",C),V(M,"render",function(Y,z,L){var ee=c(z,L),ie=s.has(ee),de=u?u(z):!0,Q=f({prefixCls:r,expanded:ie,expandable:de,record:z,onExpand:d});return g?i.createElement("span",{onClick:function(se){return se.stopPropagation()}},Q):Q}),M);return P.map(function(k){return k===Sn?D:k})}return y.filter(function(k){return k!==Sn})},[a,y,c,s,f,m]),S=i.useMemo(function(){var M=x;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,x,m]),w=i.useMemo(function(){return m==="rtl"?Th(Vo(S)):Vo(S)},[S,m,v]),$=Ph(w,v,b),N=re($,2),E=N[0],R=N[1];return[S,E,R]}function _h(e){var t,r=e.prefixCls,n=e.record,o=e.onExpand,a=e.expanded,s=e.expandable,l="".concat(r,"-row-expand-icon");if(!s)return i.createElement("span",{className:U(l,"".concat(r,"-row-spaced"))});var c=function(f){o(n,f),f.stopPropagation()};return i.createElement("span",{className:U(l,(t={},V(t,"".concat(r,"-row-expanded"),a),V(t,"".concat(r,"-row-collapsed"),!a),t)),onClick:c})}function kh(e,t,r){var n=[];function o(a){(a||[]).forEach(function(s,l){n.push(t(s,l)),o(s[r])})}return o(e),n}function zh(e,t,r){var n=wh(e),o=n.expandIcon,a=n.expandedRowKeys,s=n.defaultExpandedRowKeys,l=n.defaultExpandAllRows,c=n.expandedRowRender,d=n.onExpand,f=n.onExpandedRowsChange,u=n.childrenColumnName,p=o||_h,m=u||"children",g=i.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Pr&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&&Nt(S)==="object"&&S[m]})?"nest":!1},[!!c,t]),C=i.useState(function(){return s||(l?kh(t,r,m):[])}),h=re(C,2),v=h[0],b=h[1],y=i.useMemo(function(){return new Set(a||v||[])},[a,v]),x=i.useCallback(function(S){var w=r(S,t.indexOf(S)),$,N=y.has(w);N?(y.delete(w),$=Re(y)):$=[].concat(Re(y),[w]),b($),d&&d(!N,S),f&&f($)},[r,y,t,d,f]);return[n,g,y,p,m,x]}function Bh(e,t,r,n){var o=e.map(function(a,s){return gi(s,s,e,t,r,n==null?void 0:n[s])});return Qr(function(){return o},[o],function(a,s){return!Mn(a,s)})}function Kc(e){var t=i.useRef(e),r=i.useState({}),n=re(r,2),o=n[1],a=i.useRef(null),s=i.useRef([]);function l(c){s.current.push(c);var d=Promise.resolve();a.current=d,d.then(function(){if(a.current===d){var f=s.current,u=t.current;s.current=[],f.forEach(function(p){t.current=p(t.current)}),a.current=null,u!==t.current&&o({})}})}return i.useEffect(function(){return function(){a.current=null}},[]),[t.current,l]}function Kh(e){var t=i.useRef(e||null),r=i.useRef();function n(){window.clearTimeout(r.current)}function o(s){t.current=s,n(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function a(){return t.current}return i.useEffect(function(){return n},[]),[o,a]}function Lh(){var e=i.useState(-1),t=re(e,2),r=t[0],n=t[1],o=i.useState(-1),a=re(o,2),s=a[0],l=a[1],c=i.useCallback(function(d,f){n(d),l(f)},[]);return[r,s,c]}var dl=Zl()?window:null;function jh(e,t){var r=Nt(e)==="object"?e:{},n=r.offsetHeader,o=n===void 0?0:n,a=r.offsetSummary,s=a===void 0?0:a,l=r.offsetScroll,c=l===void 0?0:l,d=r.getContainer,f=d===void 0?function(){return dl}:d,u=f()||dl;return i.useMemo(function(){var p=!!e;return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:s,offsetScroll:c,container:u}},[c,o,s,t,u])}function Hh(e,t,r){var n=i.useMemo(function(){for(var o=[],a=[],s=0,l=0,c=0;c=u&&(D=u-p),s({scrollLeft:D/u*(f+2)}),b.current.x=O.pageX},R=function(){if(a.current){var O=nl(a.current).top,I=O+a.current.offsetHeight,T=c===window?document.documentElement.scrollTop+window.innerHeight:nl(c).top+c.clientHeight;I-Ri()<=T||O>=T-l?v(function(_){return H(H({},_),{},{isHiddenScrollBar:!0})}):v(function(_){return H(H({},_),{},{isHiddenScrollBar:!1})})}},M=function(O){v(function(I){return H(H({},I),{},{scrollLeft:O/f*u||0})})};return i.useImperativeHandle(r,function(){return{setScrollLeft:M}}),i.useEffect(function(){var P=Tr(document.body,"mouseup",$,!1),O=Tr(document.body,"mousemove",E,!1);return R(),function(){P.remove(),O.remove()}},[p,S]),i.useEffect(function(){var P=Tr(c,"scroll",R,!1),O=Tr(window,"resize",R,!1);return function(){P.remove(),O.remove()}},[c]),i.useEffect(function(){h.isHiddenScrollBar||v(function(P){var O=a.current;return O?H(H({},P),{},{scrollLeft:O.scrollLeft/O.scrollWidth*O.clientWidth}):P})},[h.isHiddenScrollBar]),f<=u||!p||h.isHiddenScrollBar?null:i.createElement("div",{style:{height:Ri(),width:u,bottom:l},className:"".concat(d,"-sticky-scroll")},i.createElement("div",{onMouseDown:N,ref:m,className:U("".concat(d,"-sticky-scroll-bar"),V({},"".concat(d,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))};const Fh=i.forwardRef(Ah);var Lc="rc-table",Wh=[],Vh={};function Uh(){return"No Data"}function qh(e,t){var r,n=H({rowKey:"key",prefixCls:Lc,emptyText:Uh},e),o=n.prefixCls,a=n.className,s=n.rowClassName,l=n.style,c=n.data,d=n.rowKey,f=n.scroll,u=n.tableLayout,p=n.direction,m=n.title,g=n.footer,C=n.summary,h=n.caption,v=n.id,b=n.showHeader,y=n.components,x=n.emptyText,S=n.onRow,w=n.onHeaderRow,$=n.internalHooks,N=n.transformColumns,E=n.internalRefs,R=n.tailor,M=n.getContainerWidth,P=n.sticky,O=c||Wh,I=!!O.length,T=$===Pr,_=i.useCallback(function(Ze,at){return is(y,Ze)||at},[y]),D=i.useMemo(function(){return typeof d=="function"?d:function(Ze){var at=Ze&&Ze[d];return at}},[d]),k=_(["body"]),Y=Lh(),z=re(Y,3),L=z[0],ee=z[1],ie=z[2],de=zh(n,O,D),Q=re(de,6),J=Q[0],se=Q[1],q=Q[2],X=Q[3],Z=Q[4],K=Q[5],A=f==null?void 0:f.x,j=i.useState(0),G=re(j,2),F=G[0],W=G[1],oe=Dh(H(H(H({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:q,getRowKey:D,onTriggerExpand:K,expandIcon:X,expandIconColumnIndex:J.expandIconColumnIndex,direction:p,scrollWidth:T&&R&&typeof A=="number"?A:null,clientWidth:F}),T?N:null),pe=re(oe,3),Ce=pe[0],ae=pe[1],Ne=pe[2],he=Ne??A,ze=i.useMemo(function(){return{columns:Ce,flattenColumns:ae}},[Ce,ae]),be=i.useRef(),De=i.useRef(),me=i.useRef(),Ye=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:be.current,scrollTo:function(at){var zt;if(me.current instanceof HTMLElement){var _t=at.index,nn=at.top,jn=at.key;if(nn){var On;(On=me.current)===null||On===void 0||On.scrollTo({top:nn})}else{var Nn,sr=jn??D(O[_t]);(Nn=me.current.querySelector('[data-row-key="'.concat(sr,'"]')))===null||Nn===void 0||Nn.scrollIntoView()}}else(zt=me.current)!==null&&zt!==void 0&&zt.scrollTo&&me.current.scrollTo(at)}}});var Ae=i.useRef(),et=i.useState(!1),$e=re(et,2),fe=$e[0],Oe=$e[1],Le=i.useState(!1),We=re(Le,2),Me=We[0],_e=We[1],it=Kc(new Map),rt=re(it,2),ot=rt[0],Xe=rt[1],ft=uo(ae),gt=ft.map(function(Ze){return ot.get(Ze)}),ht=i.useMemo(function(){return gt},[gt.join("_")]),st=Hh(ht,ae.length,p),tt=f&&Wo(f.y),je=f&&Wo(he)||!!J.fixed,Ie=je&&ae.some(function(Ze){var at=Ze.fixed;return at}),ke=i.useRef(),te=jh(P,o),ve=te.isSticky,ue=te.offsetHeader,ye=te.offsetSummary,Ve=te.offsetScroll,Ge=te.stickyClassName,Ct=te.container,ge=i.useMemo(function(){return C==null?void 0:C(O)},[C,O]),Pe=(tt||ve)&&i.isValidElement(ge)&&ge.type===fo&&ge.props.fixed,He,Fe,lt;tt&&(Fe={overflowY:"scroll",maxHeight:f.y}),je&&(He={overflowX:"auto"},tt||(Fe={overflowY:"hidden"}),lt={width:he===!0?"auto":he,minWidth:"100%"});var mt=i.useCallback(function(Ze,at){ts(be.current)&&Xe(function(zt){if(zt.get(Ze)!==at){var _t=new Map(zt);return _t.set(Ze,at),_t}return zt})},[]),Ee=Kh(null),Se=re(Ee,2),Be=Se[0],ut=Se[1];function pt(Ze,at){at&&(typeof at=="function"?at(Ze):at.scrollLeft!==Ze&&(at.scrollLeft=Ze,at.scrollLeft!==Ze&&setTimeout(function(){at.scrollLeft=Ze},0)))}var It=un(function(Ze){var at=Ze.currentTarget,zt=Ze.scrollLeft,_t=p==="rtl",nn=typeof zt=="number"?zt:at.scrollLeft,jn=at||Vh;if(!ut()||ut()===jn){var On;Be(jn),pt(nn,De.current),pt(nn,me.current),pt(nn,Ae.current),pt(nn,(On=ke.current)===null||On===void 0?void 0:On.setScrollLeft)}var Nn=at||De.current;if(Nn){var sr=Nn.scrollWidth,po=Nn.clientWidth;if(sr===po){Oe(!1),_e(!1);return}_t?(Oe(-nn0)):(Oe(nn>0),_e(nn1?C-O:0,T=H(H(H({},$),c),{},{flex:"0 0 ".concat(O,"px"),width:"".concat(O,"px"),marginRight:I,pointerEvents:"auto"}),_=i.useMemo(function(){return f?M<=1:E===0||M===0||M>1},[M,E,f]);_?T.visibility="hidden":f&&(T.height=u==null?void 0:u(M));var D=_?function(){return null}:p,k={};return(M===0||E===0)&&(k.rowSpan=1,k.colSpan=1),i.createElement(zn,le({className:U(g,d),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:"div",prefixCls:t.prefixCls,key:y,record:l,index:a,renderIndex:s,dataIndex:m,render:D,shouldCellUpdate:r.shouldCellUpdate},x,{appendNode:S,additionalProps:H(H({},w),{},{style:T},k)}))}var Zh=["data","index","className","rowKey","style","extra","getHeight"],Qh=i.forwardRef(function(e,t){var r=e.data,n=e.index,o=e.className,a=e.rowKey,s=e.style,l=e.extra,c=e.getHeight,d=Je(e,Zh),f=r.record,u=r.indent,p=r.index,m=jt(Ut,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=m.scrollX,C=m.flattenColumns,h=m.prefixCls,v=m.fixColumn,b=m.componentWidth,y=Rc(f,a,n,u),x=y.rowSupportExpand,S=y.expanded,w=y.rowProps,$=y.expandedRowRender,N=y.expandedRowClassName,E;if(x&&S){var R=$(f,n,u+1,S),M=N==null?void 0:N(f,n,u),P={};v&&(P={style:V({},"--virtual-width","".concat(b,"px"))});var O="".concat(h,"-expanded-row-cell");E=i.createElement("div",{className:U("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(u+1),M)},i.createElement(zn,{component:"div",prefixCls:h,className:U(O,V({},"".concat(O,"-fixed"),v)),additionalProps:P},R))}var I=H(H({},s),{},{width:g});l&&(I.position="absolute",I.pointerEvents="none");var T=i.createElement("div",le({},w,d,{ref:x?null:t,className:U(o,"".concat(h,"-row"),w==null?void 0:w.className,V({},"".concat(h,"-row-extra"),l)),style:H(H({},I),w==null?void 0:w.style)}),C.map(function(_,D){return i.createElement(Gh,{key:D,rowInfo:y,column:_,colIndex:D,indent:u,index:n,renderIndex:p,record:f,inverse:l,getHeight:c})}));return x?i.createElement("div",{ref:t},T,E):T}),fl=ar(Qh),Jh=i.forwardRef(function(e,t){var r=e.data,n=e.onScroll,o=jt(Ut,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=o.flattenColumns,s=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,d=o.prefixCls,f=o.childrenColumnName,u=o.emptyNode,p=o.scrollX,m=jt(Hc),g=m.sticky,C=m.scrollY,h=m.listItemHeight,v=i.useRef(),b=Pc(r,f,c,l),y=i.useMemo(function(){var M=0;return a.map(function(P){var O=P.width,I=P.key;return M+=O,[I,O,M]})},[a]),x=i.useMemo(function(){return y.map(function(M){return M[2]})},[y]);i.useEffect(function(){y.forEach(function(M){var P=re(M,2),O=P[0],I=P[1];s(O,I)})},[y]),i.useImperativeHandle(t,function(){var M={scrollTo:function(O){var I;(I=v.current)===null||I===void 0||I.scrollTo(O)}};return Object.defineProperty(M,"scrollLeft",{get:function(){var O;return((O=v.current)===null||O===void 0?void 0:O.getScrollInfo().x)||0},set:function(O){var I;(I=v.current)===null||I===void 0||I.scrollTo({left:O})}}),M});var S=function(P,O){var I,T=(I=b[O])===null||I===void 0?void 0:I.record,_=P.onCell;if(_){var D,k=_(T,O);return(D=k==null?void 0:k.rowSpan)!==null&&D!==void 0?D:1}return 1},w=function(P){var O=P.start,I=P.end,T=P.getSize,_=P.offsetY;if(I<0)return null;for(var D=a.filter(function(X){return S(X,O)===0}),k=O,Y=function(Z){if(D=D.filter(function(K){return S(K,Z)===0}),!D.length)return k=Z,1},z=O;z>=0&&!Y(z);z-=1);for(var L=a.filter(function(X){return S(X,I)!==1}),ee=I,ie=function(Z){if(L=L.filter(function(K){return S(K,Z)!==1}),!L.length)return ee=Math.max(Z-1,I),1},de=I;de1})&&Q.push(Z)},se=k;se<=ee;se+=1)J(se);var q=Q.map(function(X){var Z=b[X],K=l(Z.record,X),A=function(F){var W=X+F-1,oe=l(b[W].record,W),pe=T(K,oe);return pe.bottom-pe.top},j=T(K);return i.createElement(fl,{key:X,data:Z,rowKey:K,index:X,style:{top:-_+j.top},extra:!0,getHeight:A})});return q},$=i.useMemo(function(){return{columnsOffset:x}},[x]),N="".concat(d,"-tbody"),E;if(b.length){var R={};g&&(R.position="sticky",R.bottom=0,Nt(g)==="object"&&g.offsetScroll&&(R.bottom=g.offsetScroll)),E=i.createElement(ro,{fullHeight:!1,ref:v,styles:{horizontalScrollBar:R},className:U(N,"".concat(N,"-virtual")),height:C,itemHeight:h||24,data:b,itemKey:function(P){return l(P.record)},scrollWidth:p,onVirtualScroll:function(P){var O=P.x;n({scrollLeft:O})},extraRender:w},function(M,P,O){var I=l(M.record,P);return i.createElement(fl,le({data:M,rowKey:I,index:P},O))})}else E=i.createElement("div",{className:U("".concat(d,"-placeholder"))},i.createElement(zn,{component:"div",prefixCls:d},u));return i.createElement(Ac.Provider,{value:$},E)}),eb=ar(Jh),tb=function(t,r){var n=r.ref,o=r.onScroll;return i.createElement(eb,{ref:n,data:t,onScroll:o})};function nb(e,t){var r=e.columns,n=e.scroll,o=e.sticky,a=e.prefixCls,s=a===void 0?Lc:a,l=e.className,c=e.listItemHeight,d=e.components,f=n||{},u=f.x,p=f.y;typeof u!="number"&&(u=1),typeof p!="number"&&(p=500);var m=i.useMemo(function(){return{sticky:o,scrollY:p,listItemHeight:c}},[o,p,c]);return i.createElement(Hc.Provider,{value:m},i.createElement(ir,le({},e,{className:U(l,"".concat(s,"-virtual")),scroll:H(H({},n),{},{x:u}),components:H(H({},d),{},{body:tb}),columns:r,internalHooks:Pr,tailor:!0,ref:t})))}var rb=i.forwardRef(nb);function Fc(e){return $c(rb,e)}Fc();function ob(e){return null}function ab(e){return null}var bi=i.createContext(null),ib=function(t){for(var r=t.prefixCls,n=t.level,o=t.isStart,a=t.isEnd,s="".concat(r,"-indent-unit"),l=[],c=0;c=0&&r.splice(n,1),r}function gn(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function yi(e){return e.split("-")}function ub(e,t){var r=[],n=Zt(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(s){var l=s.key,c=s.children;r.push(l),o(c)})}return o(n.children),r}function fb(e){if(e.parent){var t=yi(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function mb(e){var t=yi(e.pos);return Number(t[t.length-1])===0}function vl(e,t,r,n,o,a,s,l,c,d){var f,u=e.clientX,p=e.clientY,m=e.target.getBoundingClientRect(),g=m.top,C=m.height,h=(d==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-u),v=(h-12)/n,b=Zt(l,r.props.eventKey);if(p-1.5?a({dragNode:P,dropNode:O,dropPosition:1})?E=1:I=!1:a({dragNode:P,dropNode:O,dropPosition:0})?E=0:a({dragNode:P,dropNode:O,dropPosition:1})?E=1:I=!1:a({dragNode:P,dropNode:O,dropPosition:1})?E=1:I=!1,{dropPosition:E,dropLevelOffset:R,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:N,dropContainerKey:E===0?null:((f=b.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:I}}function gl(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function Co(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Nt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Jt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Uo(e,t){var r=new Set;function n(o){if(!r.has(o)){var a=Zt(t,o);if(a){r.add(o);var s=a.parent,l=a.node;l.disabled||s&&n(s.key)}}}return(e||[]).forEach(function(o){n(o)}),Re(r)}function pb(e){const[t,r]=i.useState(null);return[i.useCallback((a,s,l)=>{const c=t??a,d=Math.min(c||0,a),f=Math.max(c||0,a),u=s.slice(d,f+1).map(g=>e(g)),p=u.some(g=>!l.has(g)),m=[];return u.forEach(g=>{p?(l.has(g)||m.push(g),l.add(g)):(l.delete(g),m.push(g))}),r(p?f:null),m},[t]),a=>{r(a)}]}const Cn={},qo="SELECT_ALL",Xo="SELECT_INVERT",Yo="SELECT_NONE",hl=[],Wc=(e,t)=>{let r=[];return(t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&(r=[].concat(Re(r),Re(Wc(e,n[e]))))}),r},vb=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:d,onSelectNone:f,onSelectMultiple:u,columnWidth:p,type:m,selections:g,fixed:C,renderCell:h,hideSelectAll:v,checkStrictly:b=!0}=t||{},{prefixCls:y,data:x,pageData:S,getRecordByKey:w,getRowKey:$,expandType:N,childrenColumnName:E,locale:R,getPopupContainer:M}=e,P=eo(),[O,I]=pb(K=>K),[T,_]=Kt(n||o||hl,{value:n}),D=i.useRef(new Map),k=i.useCallback(K=>{if(r){const A=new Map;K.forEach(j=>{let G=w(j);!G&&D.current.has(j)&&(G=D.current.get(j)),A.set(j,G)}),D.current=A}},[w,r]);i.useEffect(()=>{k(T)},[T]);const{keyEntities:Y}=i.useMemo(()=>{if(b)return{keyEntities:null};let K=x;if(r){const A=new Set(x.map((G,F)=>$(G,F))),j=Array.from(D.current).reduce((G,F)=>{let[W,oe]=F;return A.has(W)?G:G.concat(oe)},[]);K=[].concat(Re(K),Re(j))}return ui(K,{externalGetKey:$,childrenPropName:E})},[x,$,b,E,r]),z=i.useMemo(()=>Wc(E,S),[E,S]),L=i.useMemo(()=>{const K=new Map;return z.forEach((A,j)=>{const G=$(A,j),F=(a?a(A):null)||{};K.set(G,F)}),K},[z,$,a]),ee=i.useCallback(K=>{var A;return!!(!((A=L.get($(K)))===null||A===void 0)&&A.disabled)},[L,$]),[ie,de]=i.useMemo(()=>{if(b)return[T||[],[]];const{checkedKeys:K,halfCheckedKeys:A}=Yn(T,!0,Y,ee);return[K||[],A]},[T,b,Y,ee]),Q=i.useMemo(()=>{const K=m==="radio"?ie.slice(0,1):ie;return new Set(K)},[ie,m]),J=i.useMemo(()=>m==="radio"?new Set:new Set(de),[de,m]);i.useEffect(()=>{t||_(hl)},[!!t]);const se=i.useCallback((K,A)=>{let j,G;k(K),r?(j=K,G=K.map(F=>D.current.get(F))):(j=[],G=[],K.forEach(F=>{const W=w(F);W!==void 0&&(j.push(F),G.push(W))})),_(j),s==null||s(j,G,{type:A})},[_,w,s,r]),q=i.useCallback((K,A,j,G)=>{if(l){const F=j.map(W=>w(W));l(w(K),A,F,G)}se(j,"single")},[l,w,se]),X=i.useMemo(()=>!g||v?null:(g===!0?[qo,Xo,Yo]:g).map(A=>A===qo?{key:"all",text:R.selectionAll,onSelect(){se(x.map((j,G)=>$(j,G)).filter(j=>{const G=L.get(j);return!(G!=null&&G.disabled)||Q.has(j)}),"all")}}:A===Xo?{key:"invert",text:R.selectInvert,onSelect(){const j=new Set(Q);S.forEach((F,W)=>{const oe=$(F,W),pe=L.get(oe);pe!=null&&pe.disabled||(j.has(oe)?j.delete(oe):j.add(oe))});const G=Array.from(j);d&&(P.deprecated(!1,"onSelectInvert","onChange"),d(G)),se(G,"invert")}}:A===Yo?{key:"none",text:R.selectNone,onSelect(){f==null||f(),se(Array.from(Q).filter(j=>{const G=L.get(j);return G==null?void 0:G.disabled}),"none")}}:A).map(A=>Object.assign(Object.assign({},A),{onSelect:function(){for(var j,G,F=arguments.length,W=new Array(F),oe=0;oe{var A;if(!t)return K.filter($e=>$e!==Cn);let j=Re(K);const G=new Set(Q),F=z.map($).filter($e=>!L.get($e).disabled),W=F.every($e=>G.has($e)),oe=F.some($e=>G.has($e)),pe=()=>{const $e=[];W?F.forEach(Oe=>{G.delete(Oe),$e.push(Oe)}):F.forEach(Oe=>{G.has(Oe)||(G.add(Oe),$e.push(Oe))});const fe=Array.from(G);c==null||c(!W,fe.map(Oe=>w(Oe)),$e.map(Oe=>w(Oe))),se(fe,"all"),I(null)};let Ce,ae;if(m!=="radio"){let $e;if(X){const Me={getPopupContainer:M,items:X.map((_e,it)=>{const{key:rt,text:ot,onSelect:Xe}=_e;return{key:rt??it,onClick:()=>{Xe==null||Xe(F)},label:ot}})};$e=i.createElement("div",{className:`${y}-selection-extra`},i.createElement(bc,{menu:Me,getPopupContainer:M},i.createElement("span",null,i.createElement(Ts,null))))}const fe=z.map((Me,_e)=>{const it=$(Me,_e),rt=L.get(it)||{};return Object.assign({checked:G.has(it)},rt)}).filter(Me=>{let{disabled:_e}=Me;return _e}),Oe=!!fe.length&&fe.length===z.length,Le=Oe&&fe.every(Me=>{let{checked:_e}=Me;return _e}),We=Oe&&fe.some(Me=>{let{checked:_e}=Me;return _e});ae=i.createElement(qr,{checked:Oe?Le:!!z.length&&W,indeterminate:Oe?!Le&&We:!W&&oe,onChange:pe,disabled:z.length===0||Oe,"aria-label":$e?"Custom selection":"Select all",skipGroup:!0}),Ce=!v&&i.createElement("div",{className:`${y}-selection`},ae,$e)}let Ne;m==="radio"?Ne=($e,fe,Oe)=>{const Le=$(fe,Oe),We=G.has(Le);return{node:i.createElement(oc,Object.assign({},L.get(Le),{checked:We,onClick:Me=>Me.stopPropagation(),onChange:Me=>{G.has(Le)||q(Le,!0,[Le],Me.nativeEvent)}})),checked:We}}:Ne=($e,fe,Oe)=>{var Le;const We=$(fe,Oe),Me=G.has(We),_e=J.has(We),it=L.get(We);let rt;return N==="nest"?rt=_e:rt=(Le=it==null?void 0:it.indeterminate)!==null&&Le!==void 0?Le:_e,{node:i.createElement(qr,Object.assign({},it,{indeterminate:rt,checked:Me,skipGroup:!0,onClick:ot=>ot.stopPropagation(),onChange:ot=>{let{nativeEvent:Xe}=ot;const{shiftKey:ft}=Xe,gt=F.findIndex(st=>st===We),ht=ie.some(st=>F.includes(st));if(ft&&b&&ht){const st=O(gt,F,G),tt=Array.from(G);u==null||u(!Me,tt.map(je=>w(je)),st.map(je=>w(je))),se(tt,"multiple")}else{const st=ie;if(b){const tt=Me?cn(st,We):gn(st,We);q(We,!Me,tt,Xe)}else{const tt=Yn([].concat(Re(st),[We]),!0,Y,ee),{checkedKeys:je,halfCheckedKeys:Ie}=tt;let ke=je;if(Me){const te=new Set(je);te.delete(We),ke=Yn(Array.from(te),{checked:!1,halfCheckedKeys:Ie},Y,ee).checkedKeys}q(We,!Me,ke,Xe)}}I(Me?null:gt)}})),checked:Me}};const he=($e,fe,Oe)=>{const{node:Le,checked:We}=Ne($e,fe,Oe);return h?h(We,fe,Oe,Le):Le};if(!j.includes(Cn))if(j.findIndex($e=>{var fe;return((fe=$e[yr])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"})===0){const[$e,...fe]=j;j=[$e,Cn].concat(Re(fe))}else j=[Cn].concat(Re(j));const ze=j.indexOf(Cn);j=j.filter(($e,fe)=>$e!==Cn||fe===ze);const be=j[ze-1],De=j[ze+1];let me=C;me===void 0&&((De==null?void 0:De.fixed)!==void 0?me=De.fixed:(be==null?void 0:be.fixed)!==void 0&&(me=be.fixed)),me&&be&&((A=be[yr])===null||A===void 0?void 0:A.columnType)==="EXPAND_COLUMN"&&be.fixed===void 0&&(be.fixed=me);const Ye=U(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:g&&m==="checkbox"}),Ae=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ae):t.columnTitle:Ce,et={fixed:me,width:p,className:`${y}-selection-column`,title:Ae(),render:he,onCell:t.onCell,[yr]:{className:Ye}};return j.map($e=>$e===Cn?et:$e)},[$,z,t,ie,Q,J,p,X,N,L,u,q,ee]),Q]};function gb(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e}function hb(e,t){return i.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(o,a){return r[a]?r[a]:Reflect.get(o,a)}}):gb(n,r)})}function bb(e){return function(r){let{prefixCls:n,onExpand:o,record:a,expanded:s,expandable:l}=r;const c=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:d=>{o(a,d),d.stopPropagation()},className:U(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&s,[`${c}-collapsed`]:l&&!s}),"aria-label":s?e.collapse:e.expand,"aria-expanded":s})}}function yb(e){return(r,n)=>{const o=r.querySelector(`.${e}-container`);let a=n;if(o){const s=getComputedStyle(o),l=parseInt(s.borderLeftWidth,10),c=parseInt(s.borderRightWidth,10);a=n-l-c}return a}}function Dn(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Rr(e,t){return t?`${t}-${e}`:`${e}`}function mo(e,t){return typeof e=="function"?e(t):e}function Cb(e,t){const r=mo(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var xb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const Sb=xb;var wb=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Sb}))};const $b=i.forwardRef(wb);function Eb(e){const t=i.useRef(e),r=_s();return[()=>t.current,n=>{t.current=n,r()}]}function Ib(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-r*n;break;case 1:o.bottom=0,o.left=-r*n;break;case 0:o.bottom=0,o.left=n;break}return i.createElement("div",{style:o})}function Vc(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Ob(e,t){var r=i.useState(!1),n=re(r,2),o=n[0],a=n[1];Vt(function(){if(o)return e(),function(){t()}},[o]),Vt(function(){return a(!0),function(){a(!1)}},[])}var Nb=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Uc=function(t,r){var n=t.className,o=t.style,a=t.motion,s=t.motionNodes,l=t.motionType,c=t.onMotionStart,d=t.onMotionEnd,f=t.active,u=t.treeNodeRequiredProps,p=Je(t,Nb),m=i.useState(!0),g=re(m,2),C=g[0],h=g[1],v=i.useContext(bi),b=v.prefixCls,y=s&&l!=="hide";Vt(function(){s&&y!==C&&h(y)},[s]);var x=function(){s&&c()},S=i.useRef(!1),w=function(){s&&!S.current&&(S.current=!0,d())};Ob(x,w);var $=function(E){y===E&&w()};return s?i.createElement(Fa,le({ref:r,visible:C},a,{motionAppear:l==="show",onVisibleChanged:$}),function(N,E){var R=N.className,M=N.style;return i.createElement("div",{ref:E,className:U("".concat(b,"-treenode-motion"),R),style:M},s.map(function(P){var O=le({},(Vc(P.data),P.data)),I=P.title,T=P.key,_=P.isStart,D=P.isEnd;delete O.children;var k=br(T,u);return i.createElement(er,le({},O,k,{title:I,active:f,data:P.data,key:T,isStart:_,isEnd:D}))}))}):i.createElement(er,le({domRef:r,className:n,style:o},p,{active:f}))};Uc.displayName="MotionTreeNode";var Pb=i.forwardRef(Uc);function Rb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function o(a,s){var l=new Map;a.forEach(function(d){l.set(d,!0)});var c=s.filter(function(d){return!l.has(d)});return c.length===1?c[0]:null}return r ").concat(t);return t}var Xc=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,s=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,u=e.disabled,p=e.dragging,m=e.dragOverNodeKey,g=e.dropPosition,C=e.motion,h=e.height,v=e.itemHeight,b=e.virtual,y=e.focusable,x=e.activeItem,S=e.focused,w=e.tabIndex,$=e.onKeyDown,N=e.onFocus,E=e.onBlur,R=e.onActiveChange,M=e.onListChangeStart,P=e.onListChangeEnd,O=Je(e,Mb),I=i.useRef(null),T=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function(Ne){I.current.scrollTo(Ne)},getIndentWidth:function(){return T.current.offsetWidth}}});var _=i.useState(o),D=re(_,2),k=D[0],Y=D[1],z=i.useState(n),L=re(z,2),ee=L[0],ie=L[1],de=i.useState(n),Q=re(de,2),J=Q[0],se=Q[1],q=i.useState([]),X=re(q,2),Z=X[0],K=X[1],A=i.useState(null),j=re(A,2),G=j[0],F=j[1],W=i.useRef(n);W.current=n;function oe(){var ae=W.current;ie(ae),se(ae),K([]),F(null),P()}Vt(function(){Y(o);var ae=Rb(k,o);if(ae.key!==null)if(ae.add){var Ne=ee.findIndex(function(Ye){var Ae=Ye.key;return Ae===ae.key}),he=xl(bl(ee,n,ae.key),b,h,v),ze=ee.slice();ze.splice(Ne+1,0,Cl),se(ze),K(he),F("show")}else{var be=n.findIndex(function(Ye){var Ae=Ye.key;return Ae===ae.key}),De=xl(bl(n,ee,ae.key),b,h,v),me=n.slice();me.splice(be+1,0,Cl),se(me),K(De),F("hide")}else ee!==n&&(ie(n),se(n))},[o,n]),i.useEffect(function(){p||oe()},[p]);var pe=C?J:n,Ce={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:d,dragOverNodeKey:m,dropPosition:g,keyEntities:f};return i.createElement(i.Fragment,null,S&&x&&i.createElement("span",{style:yl,"aria-live":"assertive"},Db(x)),i.createElement("div",null,i.createElement("input",{style:yl,disabled:y===!1||u,tabIndex:y!==!1?w:null,onKeyDown:$,onFocus:N,onBlur:E,value:"",onChange:Tb,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(r,"-indent")},i.createElement("div",{ref:T,className:"".concat(r,"-indent-unit")}))),i.createElement(ro,le({},O,{data:pe,itemKey:Sl,height:h,fullHeight:!1,virtual:b,itemHeight:v,prefixCls:"".concat(r,"-list"),ref:I,onVisibleChange:function(Ne,he){var ze=new Set(Ne),be=he.filter(function(De){return!ze.has(De)});be.some(function(De){return Sl(De)===_n})&&oe()}}),function(ae){var Ne=ae.pos,he=le({},(Vc(ae.data),ae.data)),ze=ae.title,be=ae.key,De=ae.isStart,me=ae.isEnd,Ye=Or(be,Ne);delete he.key,delete he.children;var Ae=br(Ye,Ce);return i.createElement(Pb,le({},he,Ae,{title:ze,active:!!x&&be===x.key,pos:Ne,data:ae.data,isStart:De,isEnd:me,motion:C,motionNodes:be===_n?Z:null,motionType:G,onMotionStart:M,onMotionEnd:oe,treeNodeRequiredProps:Ce,onMouseMove:function(){R(null)}}))}))});Xc.displayName="NodeList";var _b=10,Ci=function(e){Ha(r,e);var t=Aa(r);function r(){var n;Zr(this,r);for(var o=arguments.length,a=new Array(o),s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,u=n.state,p=u.dragChildrenKeys,m=u.dropPosition,g=u.dropTargetKey,C=u.dropTargetPos,h=u.dropAllowed;if(h){var v=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),g!==null){var b=H(H({},br(g,n.getTreeNodeRequiredProps())),{},{active:((d=n.getActiveItem())===null||d===void 0?void 0:d.key)===g,data:Zt(n.state.keyEntities,g).node}),y=p.indexOf(g)!==-1;Jt(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=yi(C),S={event:l,node:xt(b),dragNode:n.dragNode?xt(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(p),dropToGap:m!==0,dropPosition:m+Number(x[x.length-1])};f||v==null||v(S),n.dragNode=null}}},n.cleanDragState=function(){var l=n.state.draggingNodeKey;l!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null},n.triggerExpandActionExpand=function(l,c){var d=n.state,f=d.expandedKeys,u=d.flattenNodes,p=c.expanded,m=c.key,g=c.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var C=u.filter(function(v){return v.key===m})[0],h=xt(H(H({},br(m,n.getTreeNodeRequiredProps())),{},{data:C.data}));n.setExpandedKeys(p?cn(f,m):gn(f,m)),n.onNodeExpand(l,h)}},n.onNodeClick=function(l,c){var d=n.props,f=d.onClick,u=d.expandAction;u==="click"&&n.triggerExpandActionExpand(l,c),f==null||f(l,c)},n.onNodeDoubleClick=function(l,c){var d=n.props,f=d.onDoubleClick,u=d.expandAction;u==="doubleClick"&&n.triggerExpandActionExpand(l,c),f==null||f(l,c)},n.onNodeSelect=function(l,c){var d=n.state.selectedKeys,f=n.state,u=f.keyEntities,p=f.fieldNames,m=n.props,g=m.onSelect,C=m.multiple,h=c.selected,v=c[p.key],b=!h;b?C?d=gn(d,v):d=[v]:d=cn(d,v);var y=d.map(function(x){var S=Zt(u,x);return S?S.node:null}).filter(function(x){return x});n.setUncontrolledState({selectedKeys:d}),g==null||g(d,{event:"select",selected:b,node:c,selectedNodes:y,nativeEvent:l.nativeEvent})},n.onNodeCheck=function(l,c,d){var f=n.state,u=f.keyEntities,p=f.checkedKeys,m=f.halfCheckedKeys,g=n.props,C=g.checkStrictly,h=g.onCheck,v=c.key,b,y={event:"check",node:c,checked:d,nativeEvent:l.nativeEvent};if(C){var x=d?gn(p,v):cn(p,v),S=cn(m,v);b={checked:x,halfChecked:S},y.checkedNodes=x.map(function(M){return Zt(u,M)}).filter(function(M){return M}).map(function(M){return M.node}),n.setUncontrolledState({checkedKeys:x})}else{var w=Yn([].concat(Re(p),[v]),!0,u),$=w.checkedKeys,N=w.halfCheckedKeys;if(!d){var E=new Set($);E.delete(v);var R=Yn(Array.from(E),{checked:!1,halfCheckedKeys:N},u);$=R.checkedKeys,N=R.halfCheckedKeys}b=$,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=N,$.forEach(function(M){var P=Zt(u,M);if(P){var O=P.node,I=P.pos;y.checkedNodes.push(O),y.checkedNodesPositions.push({node:O,pos:I})}}),n.setUncontrolledState({checkedKeys:$},!1,{halfCheckedKeys:N})}h==null||h(b,y)},n.onNodeLoad=function(l){var c=l.key,d=new Promise(function(f,u){n.setState(function(p){var m=p.loadedKeys,g=m===void 0?[]:m,C=p.loadingKeys,h=C===void 0?[]:C,v=n.props,b=v.loadData,y=v.onLoad;if(!b||g.indexOf(c)!==-1||h.indexOf(c)!==-1)return null;var x=b(l);return x.then(function(){var S=n.state.loadedKeys,w=gn(S,c);y==null||y(w,{event:"load",node:l}),n.setUncontrolledState({loadedKeys:w}),n.setState(function($){return{loadingKeys:cn($.loadingKeys,c)}}),f()}).catch(function(S){if(n.setState(function($){return{loadingKeys:cn($.loadingKeys,c)}}),n.loadingRetryTimes[c]=(n.loadingRetryTimes[c]||0)+1,n.loadingRetryTimes[c]>=_b){var w=n.state.loadedKeys;Jt(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:gn(w,c)}),f()}u(S)}),{loadingKeys:gn(h,c)}})});return d.catch(function(){}),d},n.onNodeMouseEnter=function(l,c){var d=n.props.onMouseEnter;d==null||d({event:l,node:c})},n.onNodeMouseLeave=function(l,c){var d=n.props.onMouseLeave;d==null||d({event:l,node:c})},n.onNodeContextMenu=function(l,c){var d=n.props.onRightClick;d&&(l.preventDefault(),d({event:l,node:c}))},n.onFocus=function(){var l=n.props.onFocus;n.setState({focused:!0});for(var c=arguments.length,d=new Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var f=!1,u=!0,p={};Object.keys(l).forEach(function(m){if(m in n.props){u=!1;return}f=!0,p[m]=l[m]}),f&&(!c||u)&&n.setState(H(H({},p),d))}},n.scrollTo=function(l){n.listRef.current.scrollTo(l)},n}return Gr(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,s=o.itemScrollOffset,l=s===void 0?0:s;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o,a=this.state,s=a.focused,l=a.flattenNodes,c=a.keyEntities,d=a.draggingNodeKey,f=a.activeKey,u=a.dropLevelOffset,p=a.dropContainerKey,m=a.dropTargetKey,g=a.dropPosition,C=a.dragOverNodeKey,h=a.indent,v=this.props,b=v.prefixCls,y=v.className,x=v.style,S=v.showLine,w=v.focusable,$=v.tabIndex,N=$===void 0?0:$,E=v.selectable,R=v.showIcon,M=v.icon,P=v.switcherIcon,O=v.draggable,I=v.checkable,T=v.checkStrictly,_=v.disabled,D=v.motion,k=v.loadData,Y=v.filterTreeNode,z=v.height,L=v.itemHeight,ee=v.virtual,ie=v.titleRender,de=v.dropIndicatorRender,Q=v.onContextMenu,J=v.onScroll,se=v.direction,q=v.rootClassName,X=v.rootStyle,Z=fn(this.props,{aria:!0,data:!0}),K;return O&&(Nt(O)==="object"?K=O:typeof O=="function"?K={nodeDraggable:O}:K={}),i.createElement(bi.Provider,{value:{prefixCls:b,selectable:E,showIcon:R,icon:M,switcherIcon:P,draggable:K,draggingNodeKey:d,checkable:I,checkStrictly:T,disabled:_,keyEntities:c,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:m,dropPosition:g,dragOverNodeKey:C,indent:h,direction:se,dropIndicatorRender:de,loadData:k,filterTreeNode:Y,titleRender:ie,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},i.createElement("div",{role:"tree",className:U(b,y,q,(o={},V(o,"".concat(b,"-show-line"),S),V(o,"".concat(b,"-focused"),s),V(o,"".concat(b,"-active-focused"),f!==null),o)),style:X},i.createElement(Xc,le({ref:this.listRef,prefixCls:b,style:x,data:l,disabled:_,selectable:E,checkable:!!I,motion:D,dragging:d!==null,height:z,itemHeight:L,virtual:ee,focusable:w,focused:s,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Q,onScroll:J},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var s=a.prevProps,l={prevProps:o};function c(w){return!s&&w in o||s&&s[w]!==o[w]}var d,f=a.fieldNames;if(c("fieldNames")&&(f=Jn(o.fieldNames),l.fieldNames=f),c("treeData")?d=o.treeData:c("children")&&(Jt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=ic(o.children)),d){l.treeData=d;var u=ui(d,{fieldNames:f});l.keyEntities=H(V({},_n,qc),u.keyEntities)}var p=l.keyEntities||a.keyEntities;if(c("expandedKeys")||s&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!s&&o.defaultExpandParent?Uo(o.expandedKeys,p):o.expandedKeys;else if(!s&&o.defaultExpandAll){var m=H({},p);delete m[_n],l.expandedKeys=Object.keys(m).map(function(w){return m[w].key})}else!s&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Uo(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,d||l.expandedKeys){var g=yo(d||a.treeData,l.expandedKeys||a.expandedKeys,f);l.flattenNodes=g}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=gl(o.selectedKeys,o):!s&&o.defaultSelectedKeys&&(l.selectedKeys=gl(o.defaultSelectedKeys,o))),o.checkable){var C;if(c("checkedKeys")?C=Co(o.checkedKeys)||{}:!s&&o.defaultCheckedKeys?C=Co(o.defaultCheckedKeys)||{}:d&&(C=Co(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),C){var h=C,v=h.checkedKeys,b=v===void 0?[]:v,y=h.halfCheckedKeys,x=y===void 0?[]:y;if(!o.checkStrictly){var S=Yn(b,!0,p);b=S.checkedKeys,x=S.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=x}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),r}(i.Component);Ci.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Ib,allowDrop:function(){return!0},expandAction:!1};Ci.TreeNode=er;var kb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const zb=kb;var Bb=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:zb}))};const Yc=i.forwardRef(Bb);var Kb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const Lb=Kb;var jb=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Lb}))};const Hb=i.forwardRef(jb);var Ab={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const Fb=Ab;var Wb=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:Fb}))};const Vb=i.forwardRef(Wb);var Ub={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const qb=Ub;var Xb=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:qb}))};const Yb=i.forwardRef(Xb),Gb=new Et("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Zb=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Qb=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${B(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Jb=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:o,titleHeight:a,nodeSelectedBg:s,nodeHoverBg:l}=t,c=t.paddingXS;return{[r]:Object.assign(Object.assign({},Mt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${r}-rtl`]:{[`${r}-switcher`]:{"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},Tn(t)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Gb,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${n}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${B(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${r}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${B(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${n}:hover &`]:{opacity:.45}},[`&${n}-disabled`]:{[`${r}-draggable-icon`]:{visibility:"hidden"}}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher`]:Object.assign(Object.assign({},Zb(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${B(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${r}-node-content-wrapper, ${r}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${B(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${B(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${r}-node-selected`]:{backgroundColor:s},[`${r}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${B(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}-node-content-wrapper`]:Object.assign({lineHeight:`${B(a)}`,userSelect:"none"},Qb(e,t)),[`${n}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${r}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last`]:{[`${r}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${B(t.calc(a).div(2).equal())} !important`}}}}})}},e0=e=>{const{treeCls:t,treeNodeCls:r,treeNodePadding:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[r]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:n,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},t0=(e,t)=>{const r=`.${e}`,n=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=$t(t,{treeCls:r,treeNodeCls:n,treeNodePadding:o});return[Jb(e,a),e0(a)]},n0=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},r0=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return Object.assign(Object.assign({},n0(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},o0=an("Tree",(e,t)=>{let{prefixCls:r}=t;return[{[e.componentCls]:sc(`${r}-checkbox`,e)},t0(r,e),Za(e)]},r0),wl=4;function a0(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:o,direction:a="ltr"}=e,s=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",c={[s]:-r*o+wl,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[s]=o+wl;break}return ce.createElement("div",{style:c,className:`${n}-drop-indicator`})}var i0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const l0=i0;var s0=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:l0}))};const c0=i.forwardRef(s0);var d0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const u0=d0;var f0=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:u0}))};const m0=i.forwardRef(f0);var p0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const v0=p0;var g0=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:v0}))};const h0=i.forwardRef(g0),b0=e=>{const{prefixCls:t,switcherIcon:r,treeNodeProps:n,showLine:o}=e,{isLeaf:a,expanded:s,loading:l}=n;if(l)return i.createElement(es,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const u=typeof c=="function"?c(n):c,p=`${t}-switcher-line-custom-icon`;return bn(u)?en(u,{className:U(u.props.className||"",p)}):u}return c?i.createElement(Yc,{className:`${t}-switcher-line-icon`}):i.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof r=="function"?r(n):r;return bn(f)?en(f,{className:U(f.props.className||"",d)}):f!==void 0?f:o?s?i.createElement(m0,{className:`${t}-switcher-line-icon`}):i.createElement(h0,{className:`${t}-switcher-line-icon`}):i.createElement(c0,{className:d})},y0=b0,C0=ce.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:o,virtual:a,tree:s}=ce.useContext(vt),{prefixCls:l,className:c,showIcon:d=!1,showLine:f,switcherIcon:u,blockNode:p=!1,children:m,checkable:g=!1,selectable:C=!0,draggable:h,motion:v,style:b}=e,y=n("tree",l),x=n(),S=v??Object.assign(Object.assign({},Wa(x)),{motionAppear:!1}),w=Object.assign(Object.assign({},e),{checkable:g,selectable:C,showIcon:d,motion:S,blockNode:p,showLine:!!f,dropIndicatorRender:a0}),[$,N,E]=o0(y),[,R]=En(),M=R.paddingXS/2+(((r=R.Tree)===null||r===void 0?void 0:r.titleHeight)||R.controlHeightSM),P=ce.useMemo(()=>{if(!h)return!1;let I={};switch(typeof h){case"function":I.nodeDraggable=h;break;case"object":I=Object.assign({},h);break}return I.icon!==!1&&(I.icon=I.icon||ce.createElement(Yb,null)),I},[h]),O=I=>ce.createElement(y0,{prefixCls:y,switcherIcon:u,treeNodeProps:I,showLine:f});return $(ce.createElement(Ci,Object.assign({itemHeight:M,ref:t,virtual:a},w,{style:Object.assign(Object.assign({},s==null?void 0:s.style),b),prefixCls:y,className:U({[`${y}-icon-hide`]:!d,[`${y}-block-node`]:p,[`${y}-unselectable`]:!C,[`${y}-rtl`]:o==="rtl"},s==null?void 0:s.className,c,N,E),direction:o,checkable:g&&ce.createElement("span",{className:`${y}-checkbox-inner`}),selectable:C,switcherIcon:O,draggable:P}),m))}),Gc=C0;var hn;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(hn||(hn={}));function xi(e,t,r){const{key:n,children:o}=r;function a(s){const l=s[n],c=s[o];t(l,s)!==!1&&xi(c||[],t,r)}e.forEach(a)}function x0(e){let{treeData:t,expandedKeys:r,startKey:n,endKey:o,fieldNames:a}=e;const s=[];let l=hn.None;if(n&&n===o)return[n];if(!n||!o)return[];function c(d){return d===n||d===o}return xi(t,d=>{if(l===hn.End)return!1;if(c(d)){if(s.push(d),l===hn.None)l=hn.Start;else if(l===hn.Start)return l=hn.End,!1}else l===hn.Start&&s.push(d);return r.includes(d)},Jn(a)),s}function xo(e,t,r){const n=Re(t),o=[];return xi(e,(a,s)=>{const l=n.indexOf(a);return l!==-1&&(o.push(s),n.splice(l,1)),!!n.length},Jn(r)),o}var $l=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:o}=e,a=$l(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=i.useRef(),l=i.useRef(),c=()=>{const{keyEntities:N}=ui(El(a));let E;return r?E=Object.keys(N):n?E=Uo(a.expandedKeys||o||[],N):E=a.expandedKeys||o,E},[d,f]=i.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[u,p]=i.useState(()=>c());i.useEffect(()=>{"selectedKeys"in a&&f(a.selectedKeys)},[a.selectedKeys]),i.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const m=(N,E)=>{var R;return"expandedKeys"in a||p(N),(R=a.onExpand)===null||R===void 0?void 0:R.call(a,N,E)},g=(N,E)=>{var R;const{multiple:M,fieldNames:P}=a,{node:O,nativeEvent:I}=E,{key:T=""}=O,_=El(a),D=Object.assign(Object.assign({},E),{selected:!0}),k=(I==null?void 0:I.ctrlKey)||(I==null?void 0:I.metaKey),Y=I==null?void 0:I.shiftKey;let z;M&&k?(z=N,s.current=T,l.current=z,D.selectedNodes=xo(_,z,P)):M&&Y?(z=Array.from(new Set([].concat(Re(l.current||[]),Re(x0({treeData:_,expandedKeys:u,startKey:T,endKey:s.current,fieldNames:P}))))),D.selectedNodes=xo(_,z,P)):(z=[T],s.current=T,l.current=z,D.selectedNodes=xo(_,z,P)),(R=a.onSelect)===null||R===void 0||R.call(a,z,D),"selectedKeys"in a||f(z)},{getPrefixCls:C,direction:h}=i.useContext(vt),{prefixCls:v,className:b,showIcon:y=!0,expandAction:x="click"}=a,S=$l(a,["prefixCls","className","showIcon","expandAction"]),w=C("tree",v),$=U(`${w}-directory`,{[`${w}-directory-rtl`]:h==="rtl"},b);return i.createElement(Gc,Object.assign({icon:S0,ref:t,blockNode:!0},S,{showIcon:y,expandAction:x,prefixCls:w,className:$,expandedKeys:u,selectedKeys:d,onSelect:g,onExpand:m}))},$0=i.forwardRef(w0),E0=$0,Si=Gc;Si.DirectoryTree=E0;Si.TreeNode=er;const I0=Si;function Il(e){let{value:t,onChange:r,filterSearch:n,tablePrefixCls:o,locale:a}=e;return n?i.createElement("div",{className:`${o}-filter-dropdown-search`},i.createElement(dg,{prefix:i.createElement(ri,null),placeholder:a.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const O0=e=>{const{keyCode:t}=e;t===xe.ENTER&&e.stopPropagation()},N0=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:O0,ref:t},e.children)),P0=N0;function Gn(e){let t=[];return(e||[]).forEach(r=>{let{value:n,children:o}=r;t.push(n),o&&(t=[].concat(Re(t),Re(Gn(o))))}),t}function R0(e){return e.some(t=>{let{children:r}=t;return r})}function Zc(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Qc(e){let{filters:t,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:a,filterSearch:s}=e;return t.map((l,c)=>{const d=String(l.value);if(l.children)return{key:d||c,label:l.text,popupClassName:`${r}-dropdown-submenu`,children:Qc({filters:l.children,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:a,filterSearch:s})};const f=o?qr:oc,u={key:l.value!==void 0?d:c,label:i.createElement(i.Fragment,null,i.createElement(f,{checked:n.includes(d)}),i.createElement("span",null,l.text))};return a.trim()?typeof s=="function"?s(a,l)?u:null:Zc(a,l.text)?u:null:u})}function So(e){return e||[]}function M0(e){var t,r;const{tablePrefixCls:n,prefixCls:o,column:a,dropdownPrefixCls:s,columnKey:l,filterMultiple:c,filterMode:d="menu",filterSearch:f=!1,filterState:u,triggerFilter:p,locale:m,children:g,getPopupContainer:C,rootClassName:h}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:b,filterResetToDefaultFilteredValue:y,defaultFilteredValue:x,filterDropdownVisible:S,onFilterDropdownVisibleChange:w}=a,[$,N]=i.useState(!1),E=!!(u&&(!((t=u.filteredKeys)===null||t===void 0)&&t.length||u.forceFiltered)),R=W=>{N(W),b==null||b(W),w==null||w(W)},M=(r=v??S)!==null&&r!==void 0?r:$,P=u==null?void 0:u.filteredKeys,[O,I]=Eb(So(P)),T=W=>{let{selectedKeys:oe}=W;I(oe)},_=(W,oe)=>{let{node:pe,checked:Ce}=oe;T(c?{selectedKeys:W}:{selectedKeys:Ce&&pe.key?[pe.key]:[]})};i.useEffect(()=>{$&&T({selectedKeys:So(P)})},[P]);const[D,k]=i.useState([]),Y=W=>{k(W)},[z,L]=i.useState(""),ee=W=>{const{value:oe}=W.target;L(oe)};i.useEffect(()=>{$||L("")},[$]);const ie=W=>{const oe=W&&W.length?W:null;if(oe===null&&(!u||!u.filteredKeys)||Mn(oe,u==null?void 0:u.filteredKeys,!0))return null;p({column:a,key:l,filteredKeys:oe})},de=()=>{R(!1),ie(O())},Q=function(){let{confirm:W,closeDropdown:oe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};W&&ie([]),oe&&R(!1),L(""),I(y?(x||[]).map(pe=>String(pe)):[])},J=function(){let{closeDropdown:W}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};W&&R(!1),ie(O())},se=(W,oe)=>{oe.source==="trigger"&&(W&&P!==void 0&&I(So(P)),R(W),!W&&!a.filterDropdown&&de())},q=U({[`${s}-menu-without-submenu`]:!R0(a.filters||[])}),X=W=>{if(W.target.checked){const oe=Gn(a==null?void 0:a.filters).map(pe=>String(pe));I(oe)}else I([])},Z=W=>{let{filters:oe}=W;return(oe||[]).map((pe,Ce)=>{const ae=String(pe.value),Ne={title:pe.text,key:pe.value!==void 0?ae:String(Ce)};return pe.children&&(Ne.children=Z({filters:pe.children})),Ne})},K=W=>{var oe;return Object.assign(Object.assign({},W),{text:W.title,value:W.key,children:((oe=W.children)===null||oe===void 0?void 0:oe.map(pe=>K(pe)))||[]})};let A;if(typeof a.filterDropdown=="function")A=a.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:W=>T({selectedKeys:W}),selectedKeys:O(),confirm:J,clearFilters:Q,filters:a.filters,visible:M,close:()=>{R(!1)}});else if(a.filterDropdown)A=a.filterDropdown;else{const W=O()||[],oe=()=>(a.filters||[]).length===0?i.createElement(Rn,{image:Rn.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):d==="tree"?i.createElement(i.Fragment,null,i.createElement(Il,{filterSearch:f,value:z,onChange:ee,tablePrefixCls:n,locale:m}),i.createElement("div",{className:`${n}-filter-dropdown-tree`},c?i.createElement(qr,{checked:W.length===Gn(a.filters).length,indeterminate:W.length>0&&W.lengthtypeof f=="function"?f(z,K(Ce)):Zc(z,Ce.title):void 0}))):i.createElement(i.Fragment,null,i.createElement(Il,{filterSearch:f,value:z,onChange:ee,tablePrefixCls:n,locale:m}),i.createElement(Qs,{selectable:!0,multiple:c,prefixCls:`${s}-menu`,className:q,onSelect:T,onDeselect:T,selectedKeys:W,getPopupContainer:C,openKeys:D,onOpenChange:Y,items:Qc({filters:a.filters||[],filterSearch:f,prefixCls:o,filteredKeys:O(),filterMultiple:c,searchValue:z})})),pe=()=>y?Mn((x||[]).map(Ce=>String(Ce)),W,!0):W.length===0;A=i.createElement(i.Fragment,null,oe(),i.createElement("div",{className:`${o}-dropdown-btns`},i.createElement(Zn,{type:"link",size:"small",disabled:pe(),onClick:()=>Q()},m.filterReset),i.createElement(Zn,{type:"primary",size:"small",onClick:de},m.filterConfirm)))}a.filterDropdown&&(A=i.createElement(Zs,{selectable:void 0},A));const j=()=>i.createElement(P0,{className:`${o}-dropdown`},A);let G;typeof a.filterIcon=="function"?G=a.filterIcon(E):a.filterIcon?G=a.filterIcon:G=i.createElement($b,null);const{direction:F}=i.useContext(vt);return i.createElement("div",{className:`${o}-column`},i.createElement("span",{className:`${n}-column-title`},g),i.createElement(bc,{dropdownRender:j,trigger:["click"],open:M,onOpenChange:se,getPopupContainer:C,placement:F==="rtl"?"bottomLeft":"bottomRight",rootClassName:h},i.createElement("span",{role:"button",tabIndex:-1,className:U(`${o}-trigger`,{active:E}),onClick:W=>{W.stopPropagation()}},G)))}function Zo(e,t,r){let n=[];return(e||[]).forEach((o,a)=>{var s;const l=Rr(a,r);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(s=c==null?void 0:c.map(String))!==null&&s!==void 0?s:c),n.push({column:o,key:Dn(o,l),filteredKeys:c,forceFiltered:o.filtered})}else n.push({column:o,key:Dn(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(n=[].concat(Re(n),Re(Zo(o.children,t,l))))}),n}function Jc(e,t,r,n,o,a,s,l,c){return r.map((d,f)=>{const u=Rr(f,l),{filterMultiple:p=!0,filterMode:m,filterSearch:g}=d;let C=d;if(C.filters||C.filterDropdown){const h=Dn(C,u),v=n.find(b=>{let{key:y}=b;return h===y});C=Object.assign(Object.assign({},C),{title:b=>i.createElement(M0,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:C,columnKey:h,filterState:v,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:a,locale:o,getPopupContainer:s,rootClassName:c},mo(d.title,b))})}return"children"in C&&(C=Object.assign(Object.assign({},C),{children:Jc(e,t,C.children,n,o,a,s,u,c)})),C})}function Ol(e){const t={};return e.forEach(r=>{let{key:n,filteredKeys:o,column:a}=r;const s=n,{filters:l,filterDropdown:c}=a;if(c)t[s]=o||null;else if(Array.isArray(o)){const d=Gn(l);t[s]=d.filter(f=>o.includes(String(f)))}else t[s]=null}),t}function Nl(e,t){return t.reduce((r,n)=>{const{column:{onFilter:o,filters:a},filteredKeys:s}=n;return o&&s&&s.length?r.filter(l=>s.some(c=>{const d=Gn(a),f=d.findIndex(p=>String(p)===String(c)),u=f!==-1?d[f]:c;return o(u,l)})):r},e)}const ed=e=>e.flatMap(t=>"children"in t?[t].concat(Re(ed(t.children||[]))):[t]);function T0(e){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:o,getPopupContainer:a,locale:s,rootClassName:l}=e;eo();const c=i.useMemo(()=>ed(n||[]),[n]),[d,f]=i.useState(()=>Zo(c,!0)),u=i.useMemo(()=>{const C=Zo(c,!1);if(C.length===0)return C;let h=!0;if(C.forEach(v=>{let{filteredKeys:b}=v;b!==void 0&&(h=!1)}),h){const v=(c||[]).map((b,y)=>Dn(b,Rr(y)));return d.filter(b=>{let{key:y}=b;return v.includes(y)}).map(b=>{const y=c[v.findIndex(x=>x===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),y),forceFiltered:y.filtered})})}return C},[c,d]),p=i.useMemo(()=>Ol(u),[u]),m=C=>{const h=u.filter(v=>{let{key:b}=v;return b!==C.key});h.push(C),f(h),o(Ol(h),h)};return[C=>Jc(t,r,C,u,s,m,a,void 0,l),u,p]}function D0(e,t,r){const n=i.useRef({});function o(a){if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let l=function(c){c.forEach((d,f)=>{const u=r(d,f);s.set(u,d),d&&typeof d=="object"&&t in d&&l(d[t]||[])})};const s=new Map;l(e),n.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:r}}return n.current.kvMap.get(a)}return[o]}var _0=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const a=e[o];typeof a!="function"&&(r[o]=a)}),r}function z0(e,t,r){const n=r&&typeof r=="object"?r:{},{total:o=0}=n,a=_0(n,["total"]),[s,l]=i.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:td})),c=Cg(s,a,{total:o>0?o:e}),d=Math.ceil((o||e)/c.pageSize);c.current>d&&(c.current=d||1);const f=(p,m)=>{l({current:p??1,pageSize:m||c.pageSize})},u=(p,m)=>{var g;r&&((g=r.onChange)===null||g===void 0||g.call(r,p,m)),f(p,m),t(p,m||(c==null?void 0:c.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:u}),f]}var B0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const K0=B0;var L0=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:K0}))};const j0=i.forwardRef(L0);var H0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const A0=H0;var F0=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:A0}))};const W0=i.forwardRef(F0),Kr="ascend",wo="descend";function Xr(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Pl(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function V0(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Qo(e,t,r){let n=[];function o(a,s){n.push({column:a,key:Dn(a,s),multiplePriority:Xr(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,s)=>{const l=Rr(s,r);a.children?("sortOrder"in a&&o(a,l),n=[].concat(Re(n),Re(Qo(a.children,t,l)))):a.sorter&&("sortOrder"in a?o(a,l):t&&a.defaultSortOrder&&n.push({column:a,key:Dn(a,l),multiplePriority:Xr(a),sortOrder:a.defaultSortOrder}))}),n}function nd(e,t,r,n,o,a,s,l){return(t||[]).map((c,d)=>{const f=Rr(d,l);let u=c;if(u.sorter){const p=u.sortDirections||o,m=u.showSorterTooltip===void 0?s:u.showSorterTooltip,g=Dn(u,f),C=r.find(N=>{let{key:E}=N;return E===g}),h=C?C.sortOrder:null,v=V0(p,h);let b;if(c.sortIcon)b=c.sortIcon({sortOrder:h});else{const N=p.includes(Kr)&&i.createElement(W0,{className:U(`${e}-column-sorter-up`,{active:h===Kr})}),E=p.includes(wo)&&i.createElement(j0,{className:U(`${e}-column-sorter-down`,{active:h===wo})});b=i.createElement("span",{className:U(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&E)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,E))}const{cancelSort:y,triggerAsc:x,triggerDesc:S}=a||{};let w=y;v===wo?w=S:v===Kr&&(w=x);const $=typeof m=="object"?Object.assign({title:w},m):{title:w};u=Object.assign(Object.assign({},u),{className:U(u.className,{[`${e}-column-sort`]:h}),title:N=>{const E=i.createElement("div",{className:`${e}-column-sorters`},i.createElement("span",{className:`${e}-column-title`},mo(c.title,N)),b);return m?i.createElement(fs,Object.assign({},$),E):E},onHeaderCell:N=>{const E=c.onHeaderCell&&c.onHeaderCell(N)||{},R=E.onClick,M=E.onKeyDown;E.onClick=I=>{n({column:c,key:g,sortOrder:v,multiplePriority:Xr(c)}),R==null||R(I)},E.onKeyDown=I=>{I.keyCode===xe.ENTER&&(n({column:c,key:g,sortOrder:v,multiplePriority:Xr(c)}),M==null||M(I))};const P=Cb(c.title,{}),O=P==null?void 0:P.toString();return h?E["aria-sort"]=h==="ascend"?"ascending":"descending":E["aria-label"]=O||"",E.className=U(E.className,`${e}-column-has-sorters`),E.tabIndex=0,c.ellipsis&&(E.title=(P??"").toString()),E}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:nd(e,u.children,r,n,o,a,s,f)})),u})}function Rl(e){const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function Ml(e){const t=e.filter(r=>{let{sortOrder:n}=r;return n}).map(Rl);return t.length===0&&e.length?Object.assign(Object.assign({},Rl(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Jo(e,t,r){const n=t.slice().sort((s,l)=>l.multiplePriority-s.multiplePriority),o=e.slice(),a=n.filter(s=>{let{column:{sorter:l},sortOrder:c}=s;return Pl(l)&&c});return a.length?o.sort((s,l)=>{for(let c=0;c{const l=s[r];return l?Object.assign(Object.assign({},s),{[r]:Jo(l,t,r)}):s}):o}function U0(e){let{prefixCls:t,mergedColumns:r,onSorterChange:n,sortDirections:o,tableLocale:a,showSorterTooltip:s}=e;const[l,c]=i.useState(Qo(r,!0)),d=i.useMemo(()=>{let g=!0;const C=Qo(r,!1);if(!C.length)return l;const h=[];function v(y){g?h.push(y):h.push(Object.assign(Object.assign({},y),{sortOrder:null}))}let b=null;return C.forEach(y=>{b===null?(v(y),y.sortOrder&&(y.multiplePriority===!1?g=!1:b=!0)):(b&&y.multiplePriority!==!1||(g=!1),v(y))}),h},[r,l]),f=i.useMemo(()=>{const g=d.map(C=>{let{column:h,sortOrder:v}=C;return{column:h,order:v}});return{sortColumns:g,sortColumn:g[0]&&g[0].column,sortOrder:g[0]&&g[0].order}},[d]);function u(g){let C;g.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?C=[g]:C=[].concat(Re(d.filter(h=>{let{key:v}=h;return v!==g.key})),[g]),c(C),n(Ml(C),C)}return[g=>nd(t,g,d,u,o,a,s),d,f,()=>Ml(d)]}function rd(e,t){return e.map(r=>{const n=Object.assign({},r);return n.title=mo(r.title,t),"children"in n&&(n.children=rd(n.children,t)),n})}function q0(e){return[i.useCallback(r=>rd(r,e),[e])]}const X0=jc((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),Y0=Fc((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),G0=e=>{const{componentCls:t,lineWidth:r,lineType:n,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:s,tablePaddingHorizontal:l,calc:c}=e,d=`${B(r)} ${n} ${o}`,f=(u,p,m)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${B(c(p).mul(-1).equal())} ${B(c(c(m).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${B(c(s).mul(-1).equal())} ${B(c(c(l).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},f("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),f("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${B(r)} 0 ${B(r)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},Z0=G0,Q0=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},xr),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},J0=Q0,ey=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},ty=ey,ny=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:o,paddingXS:a,lineType:s,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:d,borderRadius:f,tablePaddingVertical:u,tablePaddingHorizontal:p,tableExpandedRowBg:m,paddingXXS:g,expandIconMarginTop:C,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${B(o)} ${s} ${l}`,S=y(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},tu(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:B(h),background:c,border:x,borderRadius:f,transform:`scale(${b})`,transition:`all ${n}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:C,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${B(y(u).mul(-1).equal())} ${B(y(p).mul(-1).equal())}`,padding:`${B(u)} ${B(p)}`}}}},ry=ny,oy=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:s,paddingXS:l,colorText:c,lineWidth:d,lineType:f,tableBorderColor:u,headerIconColor:p,fontSizeSM:m,tablePaddingHorizontal:g,borderRadius:C,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:S,tableFilterDropdownHeight:w,controlItemBgHover:$,controlItemBgActive:N,boxShadowSecondary:E,filterDropdownMenuBg:R,calc:M}=e,P=`${r}-dropdown`,O=`${t}-filter-dropdown`,I=`${r}-tree`,T=`${B(d)} ${f} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(s).mul(-1).equal(),marginInline:`${B(s)} ${B(M(g).div(2).mul(-1).equal())}`,padding:`0 ${B(s)}`,color:p,fontSize:m,borderRadius:C,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${r}-dropdown`]:{[O]:Object.assign(Object.assign({},Mt(e)),{minWidth:o,backgroundColor:S,borderRadius:C,boxShadow:E,overflow:"hidden",[`${P}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:R,"&:empty::after":{display:"block",padding:`${B(l)} 0`,color:x,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${O}-tree`]:{paddingBlock:`${B(l)} 0`,paddingInline:l,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:$},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:N}}},[`${O}-search`]:{padding:l,borderBottom:T,"&-input":{input:{minWidth:a},[n]:{color:x}}},[`${O}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${O}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${B(M(l).sub(d).equal())} ${B(l)}`,overflow:"hidden",borderTop:T}})}},{[`${r}-dropdown ${O}, ${O}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ay=oy,iy=e=>{const{componentCls:t,lineWidth:r,colorSplit:n,motionDurationSlow:o,zIndexTableFixed:a,tableBg:s,zIndexTableSticky:l,calc:c}=e,d=n;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:a,background:s},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:c(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${d}`},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${d}`}}}}},ly=iy,sy=e=>{const{componentCls:t,antCls:r,margin:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${B(n)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},cy=sy,dy=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${B(r)} ${B(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${B(r)} ${B(r)}`}}}}},uy=dy,fy=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},my=fy,py=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:o,padding:a,paddingXS:s,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:u,tableRowHoverBg:p,tablePaddingHorizontal:m,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:g(d).add(o).add(g(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(d).add(g(s).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(d).add(o).add(g(a).div(4)).add(g(s).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:B(g(m).div(4).equal()),[n]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:f,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},vy=py,gy=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:n}=e,o=(a,s,l,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[` ${t}-title, ${t}-footer, ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${B(s)} ${B(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:B(n(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${B(n(s).mul(-1).equal())} ${B(n(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:B(n(s).mul(-1).equal()),marginInline:`${B(n(r).sub(l).equal())} ${B(n(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:B(n(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},hy=gy,by=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:r,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},yy=by,Cy=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:s,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:d,lineType:f,tableBorderColor:u}=e,p=`${B(d)} ${f} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${B(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:s,borderTop:p,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:n,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},xy=Cy,Sy=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n,calc:o}=e,a=`${B(r)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${B(o(r).mul(-1).equal())} 0 ${n}`}}}},Tl=Sy,wy=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:o,tableBorderColor:a,calc:s}=e,l=`${B(n)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${B(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:s(n).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},$y=wy,Ey=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:s,lineType:l,tableBorderColor:c,tableFontSize:d,tableBg:f,tableRadius:u,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:g,tableHeaderCellSplitColor:C,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${B(s)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Mo()),{[t]:Object.assign(Object.assign({},Mt(e)),{fontSize:d,background:f,borderRadius:`${B(u)} ${B(u)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${B(u)} ${B(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${B(n)} ${B(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${B(n)} ${B(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:r,textAlign:"start",background:g,borderBottom:y,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:C,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:y,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:B(b(n).mul(-1).equal()),marginInline:`${B(b(a).sub(o).equal())} ${B(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:r,textAlign:"start",background:g,borderBottom:y,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${B(n)} ${B(o)}`,color:h,background:v}})}},Iy=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:s,controlItemBgActiveHover:l,padding:c,paddingSM:d,paddingXS:f,colorBorderSecondary:u,borderRadiusLG:p,controlHeight:m,colorTextPlaceholder:g,fontSize:C,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:S,controlInteractiveSize:w}=e,$=new rn(o).onBackground(r).toHexShortString(),N=new rn(a).onBackground(r).toHexShortString(),E=new rn(t).onBackground(r).toHexShortString(),R=new rn(y),M=new rn(x),P=w/2-b,O=P*2+b*3;return{headerBg:E,headerColor:n,headerSortActiveBg:$,headerSortHoverBg:N,bodySortBg:E,rowHoverBg:E,rowSelectedBg:s,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:d,cellPaddingInlineMD:f,cellPaddingBlockSM:f,cellPaddingInlineSM:f,borderColor:u,headerBorderRadius:p,footerBg:E,footerColor:n,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:u,fixedHeaderSortActiveBg:$,headerFilterHoverBg:a,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:m,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*v-b*3)/2-Math.ceil((h*1.4-b*3)/2),headerIconColor:R.clone().setAlpha(R.getAlpha()*S).toRgbString(),headerIconHoverColor:M.clone().setAlpha(M.getAlpha()*S).toRgbString(),expandIconHalfInner:P,expandIconSize:O,expandIconScale:w/O}},Oy=an("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:o,headerBg:a,headerColor:s,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:d,rowHoverBg:f,rowSelectedBg:u,rowSelectedHoverBg:p,rowExpandedBg:m,cellPaddingBlock:g,cellPaddingInline:C,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:S,footerColor:w,headerBorderRadius:$,cellFontSize:N,cellFontSizeMD:E,cellFontSizeSM:R,headerSplitColor:M,fixedHeaderSortActiveBg:P,headerFilterHoverBg:O,filterDropdownBg:I,expandIconBg:T,selectionColumnWidth:_,stickyScrollBarBg:D,calc:k}=e,Y=2,z=$t(e,{tableFontSize:N,tableBg:n,tableRadius:$,tablePaddingVertical:g,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:s,tableHeaderBg:a,tableFooterTextColor:w,tableFooterBg:S,tableHeaderCellSplitColor:M,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:d,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:O,tableFilterDropdownBg:I,tableRowHoverBg:f,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:Y,zIndexTableSticky:Y+1,tableFontSizeMiddle:E,tableFontSizeSmall:R,tableSelectionColumnWidth:_,tableExpandIconBg:T,tableExpandColumnWidth:k(o).add(k(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:r});return[Ey(z),cy(z),Tl(z),yy(z),ay(z),Z0(z),uy(z),ry(z),Tl(z),ty(z),vy(z),ly(z),xy(z),J0(z),hy(z),my(z),$y(z)]},Iy,{unitless:{expandIconScale:!0}}),Ny=[],Py=(e,t)=>{const{prefixCls:r,className:n,rootClassName:o,style:a,size:s,bordered:l,dropdownPrefixCls:c,dataSource:d,pagination:f,rowSelection:u,rowKey:p="key",rowClassName:m,columns:g,children:C,childrenColumnName:h,onChange:v,getPopupContainer:b,loading:y,expandIcon:x,expandable:S,expandedRowRender:w,expandIconColumnIndex:$,indentSize:N,scroll:E,sortDirections:R,locale:M,showSorterTooltip:P=!0,virtual:O}=e;eo();const I=i.useMemo(()=>g||hi(C),[g,C]),T=i.useMemo(()=>I.some(ge=>ge.responsive),[I]),_=ks(T),D=i.useMemo(()=>{const ge=new Set(Object.keys(_).filter(Pe=>_[Pe]));return I.filter(Pe=>!Pe.responsive||Pe.responsive.some(He=>ge.has(He)))},[I,_]),k=Lt(e,["className","style","columns"]),{locale:Y=Dd,direction:z,table:L,renderEmpty:ee,getPrefixCls:ie,getPopupContainer:de}=i.useContext(vt),Q=nr(s),J=Object.assign(Object.assign({},Y.Table),M),se=d||Ny,q=ie("table",r),X=ie("dropdown",c),[,Z]=En(),K=In(q),[A,j,G]=Oy(q,K),F=Object.assign({childrenColumnName:h,expandIconColumnIndex:$},S),{childrenColumnName:W="children"}=F,oe=i.useMemo(()=>se.some(ge=>ge==null?void 0:ge[W])?"nest":w||S&&S.expandedRowRender?"row":null,[se]),pe={body:i.useRef()},Ce=yb(q),ae=i.useRef(null),Ne=i.useRef(null);hb(t,()=>Object.assign(Object.assign({},Ne.current),{nativeElement:ae.current}));const he=i.useMemo(()=>typeof p=="function"?p:ge=>ge==null?void 0:ge[p],[p]),[ze]=D0(se,W,he),be={},De=function(ge,Pe){let He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Fe,lt,mt;const Ee=Object.assign(Object.assign({},be),ge);He&&((Fe=be.resetPagination)===null||Fe===void 0||Fe.call(be),!((lt=Ee.pagination)===null||lt===void 0)&<.current&&(Ee.pagination.current=1),f&&f.onChange&&f.onChange(1,(mt=Ee.pagination)===null||mt===void 0?void 0:mt.pageSize)),E&&E.scrollToFirstRowOnChange!==!1&&pe.body.current&&uu(0,{getContainer:()=>pe.body.current}),v==null||v(Ee.pagination,Ee.filters,Ee.sorter,{currentDataSource:Nl(Jo(se,Ee.sorterStates,W),Ee.filterStates),action:Pe})},me=(ge,Pe)=>{De({sorter:ge,sorterStates:Pe},"sort",!1)},[Ye,Ae,et,$e]=U0({prefixCls:q,mergedColumns:D,onSorterChange:me,sortDirections:R||["ascend","descend"],tableLocale:J,showSorterTooltip:P}),fe=i.useMemo(()=>Jo(se,Ae,W),[se,Ae]);be.sorter=$e(),be.sorterStates=Ae;const Oe=(ge,Pe)=>{De({filters:ge,filterStates:Pe},"filter",!0)},[Le,We,Me]=T0({prefixCls:q,locale:J,dropdownPrefixCls:X,mergedColumns:D,onFilterChange:Oe,getPopupContainer:b||de,rootClassName:U(o,K)}),_e=Nl(fe,We);be.filters=Me,be.filterStates=We;const it=i.useMemo(()=>{const ge={};return Object.keys(Me).forEach(Pe=>{Me[Pe]!==null&&(ge[Pe]=Me[Pe])}),Object.assign(Object.assign({},et),{filters:ge})},[et,Me]),[rt]=q0(it),ot=(ge,Pe)=>{De({pagination:Object.assign(Object.assign({},be.pagination),{current:ge,pageSize:Pe})},"paginate")},[Xe,ft]=z0(_e.length,ot,f);be.pagination=f===!1?{}:k0(Xe,f),be.resetPagination=ft;const gt=i.useMemo(()=>{if(f===!1||!Xe.pageSize)return _e;const{current:ge=1,total:Pe,pageSize:He=td}=Xe;return _e.lengthHe?_e.slice((ge-1)*He,ge*He):_e:_e.slice((ge-1)*He,ge*He)},[!!f,_e,Xe&&Xe.current,Xe&&Xe.pageSize,Xe&&Xe.total]),[ht,st]=vb({prefixCls:q,data:_e,pageData:gt,getRowKey:he,getRecordByKey:ze,expandType:oe,childrenColumnName:W,locale:J,getPopupContainer:b||de},u),tt=(ge,Pe,He)=>{let Fe;return typeof m=="function"?Fe=U(m(ge,Pe,He)):Fe=U(m),U({[`${q}-row-selected`]:st.has(he(ge,Pe))},Fe)};F.__PARENT_RENDER_ICON__=F.expandIcon,F.expandIcon=F.expandIcon||x||bb(J),oe==="nest"&&F.expandIconColumnIndex===void 0?F.expandIconColumnIndex=u?1:0:F.expandIconColumnIndex>0&&u&&(F.expandIconColumnIndex-=1),typeof F.indentSize!="number"&&(F.indentSize=typeof N=="number"?N:15);const je=i.useCallback(ge=>rt(ht(Le(Ye(ge)))),[Ye,Le,ht]);let Ie,ke;if(f!==!1&&(Xe!=null&&Xe.total)){let ge;Xe.size?ge=Xe.size:ge=Q==="small"||Q==="middle"?"small":void 0;const Pe=lt=>i.createElement(Wg,Object.assign({},Xe,{className:U(`${q}-pagination ${q}-pagination-${lt}`,Xe.className),size:ge})),He=z==="rtl"?"left":"right",{position:Fe}=Xe;if(Fe!==null&&Array.isArray(Fe)){const lt=Fe.find(Se=>Se.includes("top")),mt=Fe.find(Se=>Se.includes("bottom")),Ee=Fe.every(Se=>`${Se}`=="none");!lt&&!mt&&!Ee&&(ke=Pe(He)),lt&&(Ie=Pe(lt.toLowerCase().replace("top",""))),mt&&(ke=Pe(mt.toLowerCase().replace("bottom","")))}else ke=Pe(He)}let te;typeof y=="boolean"?te={spinning:y}:typeof y=="object"&&(te=Object.assign({spinning:!0},y));const ve=U(G,K,`${q}-wrapper`,L==null?void 0:L.className,{[`${q}-wrapper-rtl`]:z==="rtl"},n,o,j),ue=Object.assign(Object.assign({},L==null?void 0:L.style),a),ye=M&&M.emptyText||(ee==null?void 0:ee("Table"))||i.createElement(Ms,{componentName:"Table"}),Ve=O?Y0:X0,Ge={},Ct=i.useMemo(()=>{const{fontSize:ge,lineHeight:Pe,padding:He,paddingXS:Fe,paddingSM:lt}=Z,mt=Math.floor(ge*Pe);switch(Q){case"large":return He*2+mt;case"small":return Fe*2+mt;default:return lt*2+mt}},[Z,Q]);return O&&(Ge.listItemHeight=Ct),A(i.createElement("div",{ref:ae,className:ve,style:ue},i.createElement(Jg,Object.assign({spinning:!1},te),Ie,i.createElement(Ve,Object.assign({},Ge,k,{ref:Ne,columns:D,direction:z,expandable:F,prefixCls:q,className:U({[`${q}-middle`]:Q==="middle",[`${q}-small`]:Q==="small",[`${q}-bordered`]:l,[`${q}-empty`]:se.length===0},G,K,j),data:gt,rowKey:he,rowClassName:tt,emptyText:ye,internalHooks:Pr,internalRefs:pe,transformColumns:je,getContainerWidth:Ce})),ke)))},Ry=i.forwardRef(Py),My=(e,t)=>{const r=i.useRef(0);return r.current+=1,i.createElement(Ry,Object.assign({},e,{ref:t,_renderTimes:r.current}))},yn=i.forwardRef(My);yn.SELECTION_COLUMN=Cn;yn.EXPAND_COLUMN=Sn;yn.SELECTION_ALL=qo;yn.SELECTION_INVERT=Xo;yn.SELECTION_NONE=Yo;yn.Column=ob;yn.ColumnGroup=ab;yn.Summary=Oc;const Ty=yn;var Dy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"};const _y=Dy;var ky=function(t,r){return i.createElement(Pt,le({},t,{ref:r,icon:_y}))};const zy=i.forwardRef(ky),Dl=Ld();async function _l(e){let t=[];const{properties:{dataRegistrationJcs:r,jcsCID:n,vcRegistrationsJcs:o}}=e.node,a=e.enrichments,s=e.node.properties.nodeType||"unknown",l=s==="computation"?e.node.properties.computation||"todo":e.node.id,c=a.asset_hub&&a.asset_hub.asset_blob_type;if(r&&t.push((async()=>({data:await(await Xn(`text/${wn(r,"urn:cid:")}`)).json(),type:"dataRegistrationJcs"}))()),n&&t.push((async()=>({data:await(await Xn(`text/${wn(n,"urn:cid:")}`)).json(),type:"jcsCID"}))()),c==="iroh-collection"&&t.push((async()=>{const u=await(await Xn(`iroh-collection/${wn(l,"urn:cid:")}`)).json();let p={};if(s==="computation"){if(u["report.amd"]){const g=u["report.amd"];let C=await fetch(`${Dl}/blob/${g}`);if(C.ok){const h=await C.arrayBuffer(),v=encodeURIComponent(btoa(String.fromCharCode(...new Uint8Array(h))));p["report.amd"]=v}}if(u["report.nvidia"]){const g=u["report.nvidia"];let C=await fetch(`${Dl}/blob/${g}`);if(C.ok){const h=await C.arrayBuffer(),v=encodeURIComponent(btoa(String.fromCharCode(...new Uint8Array(h))));p["report.nvidia"]=v}}}return{data:{blob:u,files:p},type:"iroh-collection"}})()),o){let f=[];for(const u of o)f.push((async()=>(await Xn(`text/${wn(u,"urn:cid:")}`)).json())());t.push((async()=>({data:Promise.all(f),type:"vcRegistrationsJcs"}))())}const d=await Kd();return d&&t.push((async()=>({data:d.anchors,type:"anchor"}))()),await Promise.all(t)}function kl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&e!==void 0}function gr(e,t){const r=kl(e)?Object.entries(e):Array.isArray(e)?e.entries():[];for(const[n,o]of r)if(kl(o)||Array.isArray(o))gr(o,t);else if(typeof o=="string"&&o.startsWith("did:key")){const a=t.get(o);console.log(`DID found for user: ${a==null?void 0:a.username} DID: ${o}`),e[n]={did:o,user:a}}}async function zl(e,t){let r=wn(e,"urn:cid:");try{if(t){const[n,o]=await Promise.all([Ti(`${r}.node`),Ti(`${r}.governance`)]),[a,s]=await Promise.all([n.json(),o.json()]),l=s.nodes.filter(u=>u.node.properties.nodeType==="governance"),[c,d]=await Promise.all([Di(t),_l(a)]),f=new Map(c.map(u=>[u.did,u]));return gr(a,f),gr(l,f),{targetNode:a,governanceNodes:l,metadata:d}}else{const[n,o]=await Promise.all([Xn(`${r}.node`),Xn(`${r}.governance`)]),[a,s]=await Promise.all([n.json(),o.json()]),l=s.nodes.filter(u=>u.node.properties.nodeType==="governance"),[c,d]=await Promise.all([Di(t),_l(a)]),f=new Map(c.map(u=>[u.did,u]));return gr(a,f),gr(l,f),{targetNode:a,governanceNodes:l,metadata:d}}}catch(n){return console.log("error",n),{targetNode:null,governanceNodes:null,metadata:null}}}const By="_sidebar_1ulhp_1",Ky="_sidebarIsExpanded_1ulhp_13",Ly="_topBar_1ulhp_16",jy="_icon_1ulhp_27",Hy="_displayType_1ulhp_37",Ay="_closeButton_1ulhp_46",Fy="_content_1ulhp_49",Wy="_footer_1ulhp_57",Vy="_arrow_1ulhp_65",Uy="_isLeftPointing_1ulhp_75",qy="_isVisible_1ulhp_79",Xy="_moreButton_1ulhp_84",Yy="_expandedSection_1ulhp_91",Gy="_collapse_1ulhp_96",Ot={sidebar:By,sidebarIsExpanded:Ky,topBar:Ly,icon:jy,displayType:Hy,closeButton:Ay,content:Fy,footer:Wy,arrow:Vy,isLeftPointing:Uy,isVisible:qy,moreButton:Xy,expandedSection:Yy,collapse:Gy},Zy="_container_1k0w7_1",Qy="_title_1k0w7_14",Jy="_grid_1k0w7_19",eC="_section_1k0w7_36",tC="_label_1k0w7_40",nC="_value_1k0w7_47",mr={container:Zy,title:Qy,grid:Jy,section:eC,label:tC,value:nC},ea=({data:e})=>ne.jsxs("div",{className:mr.container,children:[e.title.renderFunction?e.title.renderFunction(e.title.rawString):ne.jsx("h4",{className:mr.title,children:e.title.rawString}),e.sections.map(({items:t},r)=>ne.jsx("div",{className:mr.grid,children:t.map(({label:n,data:o},a)=>ne.jsxs(i.Fragment,{children:[ne.jsx("div",{className:mr.label,children:n},`${n}-${a}`),ne.jsx("div",{className:mr.value,children:o.renderFunction?o.renderFunction(o.rawString):o.rawString},`${o.rawString}-${a}`)]},`${n}-${o.rawString}`))},r))]}),rC="_container_s802f_1",oC="_codeBlock_s802f_6",aC="_copiedLabel_s802f_15",iC="_copiedLabelActive_s802f_21",lC="_prefix_s802f_25",sC="_button_s802f_33",Un={container:rC,codeBlock:oC,copiedLabel:aC,copiedLabelActive:iC,prefix:lC,button:sC},yt=({value:e})=>{const t=e.split(":");let r="",n=e;t.length===3?(r=t[1],n=t[2]):t.length===2&&(r=t[0],n=t[1]);const o=`${n.slice(0,5)}...${n.slice(-4)}`,[a,s]=i.useState(!1),l=U(Un.copiedLabel,{[Un.copiedLabelActive]:a}),c=()=>{navigator.clipboard&&navigator.clipboard.writeText(e).then(()=>{s(!0),setTimeout(()=>{s(!1)},1e3)}).catch(d=>{console.error("Failed to copy text: ",d)})};return ne.jsxs("div",{children:[ne.jsxs("div",{className:Un.container,children:[r&&ne.jsx("span",{className:Un.prefix,children:r.toUpperCase()}),ne.jsx("code",{className:Un.codeBlock,children:o})]}),ne.jsx("button",{className:Un.button,onClick:c,children:ne.jsx(nu,{})}),ne.jsx("span",{className:l,children:"copied!"})]})},cC="_grid_i637i_1",dC="_multiline_i637i_7",uC="_title_i637i_13",$o={grid:cC,multiline:dC,title:uC},od=({value:e,link:t,multiline:r=!1})=>ne.jsxs("div",{className:U($o.grid,{[$o.multiline]:r}),children:[ne.jsx("h4",{className:$o.title,children:e})," ",ne.jsxs("a",{href:t,target:"_blank",children:["download ",ne.jsx(zy,{})]})]}),Bl=({sections:e})=>ne.jsx(ne.Fragment,{children:e.map((t,r)=>ne.jsx(ea,{data:t},r))}),fC=(e,t)=>{switch(e){case"folder":return{dataSource:[{key:"1",path:"path/to/file/file.txt",cid:3212312312312},{key:"2",path:"path/to/file/file.txt",cid:435468790876542},{key:"2",path:"file.txt",cid:"23456ryukhjhtw45"}],columns:[{title:"Location",dataIndex:"path",key:"path"},{title:"Cid",dataIndex:"cid",key:"cid",render:r=>ne.jsx(yt,{value:r.toString()})}]};case"prolly-tree":return{dataSource:[{key:"1",path:"path/to/file/file.txt",text:"Lorem ipsum dolor sit amet consectetur. Vivamus non urna vestibulum imperdiet. Enim magna velit convallis a donec sollicitudin in. Volutpat integ... ",cid:3212312312312},{key:"2",path:"path/to/file/file.txt",text:"Lorem ipsum dolor sit amet consectetur. Vivamus non urna vestibulum imperdiet. Enim magna velit convallis a donec sollicitudin in. Volutpat integ... ",cid:435468790876542},{key:"2",path:"file.txt",text:"Lorem ipsum dolor sit amet consectetur. Vivamus non urna vestibulum imperdiet. Enim magna velit convallis a donec sollicitudin in. Volutpat integ... ",cid:"23456ryukhjhtw45"}],columns:[{title:"ID",dataIndex:"path",key:"path"},{title:"Source CID",dataIndex:"cid",key:"cid",render:r=>ne.jsx(yt,{value:r.toString()})},{title:"Extracted Text",dataIndex:"text",key:"text"}]};case"iroh-collection":if(t)return{dataSource:Object.entries(t.blob).map(([r,n])=>({key:r,path:r,cid:n})),columns:[{title:"Location",dataIndex:"path",key:"path"},{title:"Cid",dataIndex:"cid",key:"cid",render:r=>ne.jsx(yt,{value:r.toString()})}]}}return null},mC=({type:e,folder:t})=>{const r=fC(e,t);if(!r)return ne.jsx("p",{children:" No data by type found"});const{dataSource:n,columns:o}=r;return ne.jsx(Ty,{dataSource:n,columns:o})};function pC(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function vC(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}var ad=6e4,id=36e5;function wi(e,t){var r;vC(1,arguments);var n=pC((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=yC(e),a;if(o.date){var s=CC(o.date,n);a=xC(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var l=a.getTime(),c=0,d;if(o.time&&(c=SC(o.time),isNaN(c)))return new Date(NaN);if(o.timezone){if(d=wC(o.timezone),isNaN(d))return new Date(NaN)}else{var f=new Date(l+c),u=new Date(0);return u.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),u.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),u}return new Date(l+c+d)}var _r={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},gC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,hC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,bC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yC(e){var t={},r=e.split(_r.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],_r.timeZoneDelimiter.test(t.date)&&(t.date=e.split(_r.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var o=_r.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function CC(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?o:a*100,restDateString:e.slice((n[1]||n[2]).length)}}function xC(e,t){if(t===null)return new Date(NaN);var r=e.match(gC);if(!r)return new Date(NaN);var n=!!r[4],o=pr(r[1]),a=pr(r[2])-1,s=pr(r[3]),l=pr(r[4]),c=pr(r[5])-1;if(n)return NC(t,l,c)?$C(t,l,c):new Date(NaN);var d=new Date(0);return!IC(t,a,s)||!OC(t,o)?new Date(NaN):(d.setUTCFullYear(t,a,Math.max(o,s)),d)}function pr(e){return e?parseInt(e):1}function SC(e){var t=e.match(hC);if(!t)return NaN;var r=Eo(t[1]),n=Eo(t[2]),o=Eo(t[3]);return PC(r,n,o)?r*id+n*ad+o*1e3:NaN}function Eo(e){return e&&parseFloat(e.replace(",","."))||0}function wC(e){if(e==="Z")return 0;var t=e.match(bC);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return RC(n,o)?r*(n*id+o*ad):NaN}function $C(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,a=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+a),n}var EC=[31,null,31,30,31,30,31,31,30,31,30,31];function ld(e){return e%400===0||e%4===0&&e%100!==0}function IC(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(EC[t]||(ld(e)?29:28))}function OC(e,t){return t>=1&&t<=(ld(e)?366:365)}function NC(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function PC(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function RC(e,t){return t>=0&&t<=59}var ta={exports:{}},sd={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sd);var bt=sd.exports,na={exports:{}},ra={exports:{}},cd={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(cd);var dd=cd.exports,oa={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(oa,oa.exports);var Ht=oa.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(dd),o=r(Ht);function a(s){return(0,o.default)(1,arguments),s instanceof Date||(0,n.default)(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}e.exports=t.default})(ra,ra.exports);var MC=ra.exports,aa={exports:{}};(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(dd),o=r(Ht);function a(s){(0,o.default)(1,arguments);var l=Object.prototype.toString.call(s);return s instanceof Date||(0,n.default)(s)==="object"&&l==="[object Date]"?new Date(s.getTime()):typeof s=="number"||l==="[object Number]"?new Date(s):((typeof s=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(aa,aa.exports);var mn=aa.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(MC),o=r(mn),a=r(Ht);function s(l){if((0,a.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var c=(0,o.default)(l);return!isNaN(Number(c))}e.exports=t.default})(na,na.exports);var TC=na.exports,ia={exports:{}},la={exports:{}},sa={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var o=Number(n);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(sa,sa.exports);var Bn=sa.exports;const DC=to(Bn);(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Bn),o=r(mn),a=r(Ht);function s(l,c){(0,a.default)(2,arguments);var d=(0,o.default)(l).getTime(),f=(0,n.default)(c);return new Date(d+f)}e.exports=t.default})(la,la.exports);var _C=la.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(_C),o=r(Ht),a=r(Bn);function s(l,c){(0,o.default)(2,arguments);var d=(0,a.default)(c);return(0,n.default)(l,-d)}e.exports=t.default})(ia,ia.exports);var kC=ia.exports,ca={exports:{}},da={exports:{}};(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(mn),o=r(Ht),a=864e5;function s(l){(0,o.default)(1,arguments);var c=(0,n.default)(l),d=c.getTime();c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0);var f=c.getTime(),u=d-f;return Math.floor(u/a)+1}e.exports=t.default})(da,da.exports);var zC=da.exports,ua={exports:{}},fa={exports:{}};(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(mn),o=r(Ht);function a(s){(0,o.default)(1,arguments);var l=1,c=(0,n.default)(s),d=c.getUTCDay(),f=(d=u.getTime()?d+1:c.getTime()>=m.getTime()?d:d-1}e.exports=t.default})(pa,pa.exports);var ud=pa.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(ud),o=r($i),a=r(Ht);function s(l){(0,a.default)(1,arguments);var c=(0,n.default)(l),d=new Date(0);d.setUTCFullYear(c,0,4),d.setUTCHours(0,0,0,0);var f=(0,o.default)(d);return f}e.exports=t.default})(ma,ma.exports);var BC=ma.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(mn),o=r($i),a=r(BC),s=r(Ht),l=6048e5;function c(d){(0,s.default)(1,arguments);var f=(0,n.default)(d),u=(0,o.default)(f).getTime()-(0,a.default)(f).getTime();return Math.round(u/l)+1}e.exports=t.default})(ua,ua.exports);var KC=ua.exports,va={exports:{}},ga={exports:{}},Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getDefaultOptions=LC;Kn.setDefaultOptions=jC;var fd={};function LC(){return fd}function jC(e){fd=e}(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(mn),o=r(Ht),a=r(Bn),s=Kn;function l(c,d){var f,u,p,m,g,C,h,v;(0,o.default)(1,arguments);var b=(0,s.getDefaultOptions)(),y=(0,a.default)((f=(u=(p=(m=d==null?void 0:d.weekStartsOn)!==null&&m!==void 0?m:d==null||(g=d.locale)===null||g===void 0||(C=g.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:b.weekStartsOn)!==null&&u!==void 0?u:(h=b.locale)===null||h===void 0||(v=h.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&f!==void 0?f:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(c),S=x.getUTCDay(),w=(S=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=new Date(0);$.setUTCFullYear(x+1,0,w),$.setUTCHours(0,0,0,0);var N=(0,a.default)($,f),E=new Date(0);E.setUTCFullYear(x,0,w),E.setUTCHours(0,0,0,0);var R=(0,a.default)(E,f);return y.getTime()>=N.getTime()?x+1:y.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(ba,ba.exports);var md=ba.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(md),o=r(Ht),a=r(Ei),s=r(Bn),l=Kn;function c(d,f){var u,p,m,g,C,h,v,b;(0,o.default)(1,arguments);var y=(0,l.getDefaultOptions)(),x=(0,s.default)((u=(p=(m=(g=f==null?void 0:f.firstWeekContainsDate)!==null&&g!==void 0?g:f==null||(C=f.locale)===null||C===void 0||(h=C.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&m!==void 0?m:y.firstWeekContainsDate)!==null&&p!==void 0?p:(v=y.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&u!==void 0?u:1),S=(0,n.default)(d,f),w=new Date(0);w.setUTCFullYear(S,0,x),w.setUTCHours(0,0,0,0);var $=(0,a.default)(w,f);return $}e.exports=t.default})(ha,ha.exports);var HC=ha.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(mn),o=r(Ei),a=r(HC),s=r(Ht),l=6048e5;function c(d,f){(0,s.default)(1,arguments);var u=(0,n.default)(d),p=(0,o.default)(u,f).getTime()-(0,a.default)(u,f).getTime();return Math.round(p/l)+1}e.exports=t.default})(va,va.exports);var AC=va.exports,ya={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){for(var a=n<0?"-":"",s=Math.abs(n).toString();s.length0?d:1-d;return(0,n.default)(c==="yy"?f%100:f,c.length)},M:function(l,c){var d=l.getUTCMonth();return c==="M"?String(d+1):(0,n.default)(d+1,2)},d:function(l,c){return(0,n.default)(l.getUTCDate(),c.length)},a:function(l,c){var d=l.getUTCHours()/12>=1?"pm":"am";switch(c){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(l,c){return(0,n.default)(l.getUTCHours()%12||12,c.length)},H:function(l,c){return(0,n.default)(l.getUTCHours(),c.length)},m:function(l,c){return(0,n.default)(l.getUTCMinutes(),c.length)},s:function(l,c){return(0,n.default)(l.getUTCSeconds(),c.length)},S:function(l,c){var d=c.length,f=l.getUTCMilliseconds(),u=Math.floor(f*Math.pow(10,d-3));return(0,n.default)(u,c.length)}},a=o;t.default=a,e.exports=t.default})(Ca,Ca.exports);var FC=Ca.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(zC),o=r(KC),a=r(ud),s=r(AC),l=r(md),c=r(pd),d=r(FC),f={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},u={G:function(v,b,y){var x=v.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return y.era(x,{width:"abbreviated"});case"GGGGG":return y.era(x,{width:"narrow"});case"GGGG":default:return y.era(x,{width:"wide"})}},y:function(v,b,y){if(b==="yo"){var x=v.getUTCFullYear(),S=x>0?x:1-x;return y.ordinalNumber(S,{unit:"year"})}return d.default.y(v,b)},Y:function(v,b,y,x){var S=(0,l.default)(v,x),w=S>0?S:1-S;if(b==="YY"){var $=w%100;return(0,c.default)($,2)}return b==="Yo"?y.ordinalNumber(w,{unit:"year"}):(0,c.default)(w,b.length)},R:function(v,b){var y=(0,a.default)(v);return(0,c.default)(y,b.length)},u:function(v,b){var y=v.getUTCFullYear();return(0,c.default)(y,b.length)},Q:function(v,b,y){var x=Math.ceil((v.getUTCMonth()+1)/3);switch(b){case"Q":return String(x);case"QQ":return(0,c.default)(x,2);case"Qo":return y.ordinalNumber(x,{unit:"quarter"});case"QQQ":return y.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return y.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return y.quarter(x,{width:"wide",context:"formatting"})}},q:function(v,b,y){var x=Math.ceil((v.getUTCMonth()+1)/3);switch(b){case"q":return String(x);case"qq":return(0,c.default)(x,2);case"qo":return y.ordinalNumber(x,{unit:"quarter"});case"qqq":return y.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return y.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return y.quarter(x,{width:"wide",context:"standalone"})}},M:function(v,b,y){var x=v.getUTCMonth();switch(b){case"M":case"MM":return d.default.M(v,b);case"Mo":return y.ordinalNumber(x+1,{unit:"month"});case"MMM":return y.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return y.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return y.month(x,{width:"wide",context:"formatting"})}},L:function(v,b,y){var x=v.getUTCMonth();switch(b){case"L":return String(x+1);case"LL":return(0,c.default)(x+1,2);case"Lo":return y.ordinalNumber(x+1,{unit:"month"});case"LLL":return y.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return y.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return y.month(x,{width:"wide",context:"standalone"})}},w:function(v,b,y,x){var S=(0,s.default)(v,x);return b==="wo"?y.ordinalNumber(S,{unit:"week"}):(0,c.default)(S,b.length)},I:function(v,b,y){var x=(0,o.default)(v);return b==="Io"?y.ordinalNumber(x,{unit:"week"}):(0,c.default)(x,b.length)},d:function(v,b,y){return b==="do"?y.ordinalNumber(v.getUTCDate(),{unit:"date"}):d.default.d(v,b)},D:function(v,b,y){var x=(0,n.default)(v);return b==="Do"?y.ordinalNumber(x,{unit:"dayOfYear"}):(0,c.default)(x,b.length)},E:function(v,b,y){var x=v.getUTCDay();switch(b){case"E":case"EE":case"EEE":return y.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return y.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return y.day(x,{width:"short",context:"formatting"});case"EEEE":default:return y.day(x,{width:"wide",context:"formatting"})}},e:function(v,b,y,x){var S=v.getUTCDay(),w=(S-x.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,c.default)(w,2);case"eo":return y.ordinalNumber(w,{unit:"day"});case"eee":return y.day(S,{width:"abbreviated",context:"formatting"});case"eeeee":return y.day(S,{width:"narrow",context:"formatting"});case"eeeeee":return y.day(S,{width:"short",context:"formatting"});case"eeee":default:return y.day(S,{width:"wide",context:"formatting"})}},c:function(v,b,y,x){var S=v.getUTCDay(),w=(S-x.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,c.default)(w,b.length);case"co":return y.ordinalNumber(w,{unit:"day"});case"ccc":return y.day(S,{width:"abbreviated",context:"standalone"});case"ccccc":return y.day(S,{width:"narrow",context:"standalone"});case"cccccc":return y.day(S,{width:"short",context:"standalone"});case"cccc":default:return y.day(S,{width:"wide",context:"standalone"})}},i:function(v,b,y){var x=v.getUTCDay(),S=x===0?7:x;switch(b){case"i":return String(S);case"ii":return(0,c.default)(S,b.length);case"io":return y.ordinalNumber(S,{unit:"day"});case"iii":return y.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return y.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return y.day(x,{width:"short",context:"formatting"});case"iiii":default:return y.day(x,{width:"wide",context:"formatting"})}},a:function(v,b,y){var x=v.getUTCHours(),S=x/12>=1?"pm":"am";switch(b){case"a":case"aa":return y.dayPeriod(S,{width:"abbreviated",context:"formatting"});case"aaa":return y.dayPeriod(S,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return y.dayPeriod(S,{width:"narrow",context:"formatting"});case"aaaa":default:return y.dayPeriod(S,{width:"wide",context:"formatting"})}},b:function(v,b,y){var x=v.getUTCHours(),S;switch(x===12?S=f.noon:x===0?S=f.midnight:S=x/12>=1?"pm":"am",b){case"b":case"bb":return y.dayPeriod(S,{width:"abbreviated",context:"formatting"});case"bbb":return y.dayPeriod(S,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return y.dayPeriod(S,{width:"narrow",context:"formatting"});case"bbbb":default:return y.dayPeriod(S,{width:"wide",context:"formatting"})}},B:function(v,b,y){var x=v.getUTCHours(),S;switch(x>=17?S=f.evening:x>=12?S=f.afternoon:x>=4?S=f.morning:S=f.night,b){case"B":case"BB":case"BBB":return y.dayPeriod(S,{width:"abbreviated",context:"formatting"});case"BBBBB":return y.dayPeriod(S,{width:"narrow",context:"formatting"});case"BBBB":default:return y.dayPeriod(S,{width:"wide",context:"formatting"})}},h:function(v,b,y){if(b==="ho"){var x=v.getUTCHours()%12;return x===0&&(x=12),y.ordinalNumber(x,{unit:"hour"})}return d.default.h(v,b)},H:function(v,b,y){return b==="Ho"?y.ordinalNumber(v.getUTCHours(),{unit:"hour"}):d.default.H(v,b)},K:function(v,b,y){var x=v.getUTCHours()%12;return b==="Ko"?y.ordinalNumber(x,{unit:"hour"}):(0,c.default)(x,b.length)},k:function(v,b,y){var x=v.getUTCHours();return x===0&&(x=24),b==="ko"?y.ordinalNumber(x,{unit:"hour"}):(0,c.default)(x,b.length)},m:function(v,b,y){return b==="mo"?y.ordinalNumber(v.getUTCMinutes(),{unit:"minute"}):d.default.m(v,b)},s:function(v,b,y){return b==="so"?y.ordinalNumber(v.getUTCSeconds(),{unit:"second"}):d.default.s(v,b)},S:function(v,b){return d.default.S(v,b)},X:function(v,b,y,x){var S=x._originalDate||v,w=S.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return m(w);case"XXXX":case"XX":return g(w);case"XXXXX":case"XXX":default:return g(w,":")}},x:function(v,b,y,x){var S=x._originalDate||v,w=S.getTimezoneOffset();switch(b){case"x":return m(w);case"xxxx":case"xx":return g(w);case"xxxxx":case"xxx":default:return g(w,":")}},O:function(v,b,y,x){var S=x._originalDate||v,w=S.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+p(w,":");case"OOOO":default:return"GMT"+g(w,":")}},z:function(v,b,y,x){var S=x._originalDate||v,w=S.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+p(w,":");case"zzzz":default:return"GMT"+g(w,":")}},t:function(v,b,y,x){var S=x._originalDate||v,w=Math.floor(S.getTime()/1e3);return(0,c.default)(w,b.length)},T:function(v,b,y,x){var S=x._originalDate||v,w=S.getTime();return(0,c.default)(w,b.length)}};function p(h,v){var b=h>0?"-":"+",y=Math.abs(h),x=Math.floor(y/60),S=y%60;if(S===0)return b+String(x);var w=v||"";return b+String(x)+w+(0,c.default)(S,2)}function m(h,v){if(h%60===0){var b=h>0?"-":"+";return b+(0,c.default)(Math.abs(h)/60,2)}return g(h,v)}function g(h,v){var b=v||"",y=h>0?"-":"+",x=Math.abs(h),S=(0,c.default)(Math.floor(x/60),2),w=(0,c.default)(x%60,2);return y+S+b+w}var C=u;t.default=C,e.exports=t.default})(ca,ca.exports);var WC=ca.exports,xa={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,d){switch(c){case"P":return d.date({width:"short"});case"PP":return d.date({width:"medium"});case"PPP":return d.date({width:"long"});case"PPPP":default:return d.date({width:"full"})}},n=function(c,d){switch(c){case"p":return d.time({width:"short"});case"pp":return d.time({width:"medium"});case"ppp":return d.time({width:"long"});case"pppp":default:return d.time({width:"full"})}},o=function(c,d){var f=c.match(/(P+)(p+)?/)||[],u=f[1],p=f[2];if(!p)return r(c,d);var m;switch(u){case"P":m=d.dateTime({width:"short"});break;case"PP":m=d.dateTime({width:"medium"});break;case"PPP":m=d.dateTime({width:"long"});break;case"PPPP":default:m=d.dateTime({width:"full"});break}return m.replace("{{date}}",r(u,d)).replace("{{time}}",n(p,d))},a={p:n,P:o},s=a;t.default=s,e.exports=t.default})(xa,xa.exports);var VC=xa.exports,Sa={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var o=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return o.setUTCFullYear(n.getFullYear()),n.getTime()-o.getTime()}e.exports=t.default})(Sa,Sa.exports);var vd=Sa.exports;const Kl=to(vd);var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.isProtectedDayOfYearToken=XC;Mr.isProtectedWeekYearToken=YC;Mr.throwProtectedError=GC;var UC=["D","DD"],qC=["YY","YYYY"];function XC(e){return UC.indexOf(e)!==-1}function YC(e){return qC.indexOf(e)!==-1}function GC(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var wa={exports:{}},$a={exports:{}},Ea={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(s,l,c){var d,f=r[s];return typeof f=="string"?d=f:l===1?d=f.one:d=f.other.replace("{{count}}",l.toString()),c!=null&&c.addSuffix?c.comparison&&c.comparison>0?"in "+d:d+" ago":d},o=n;t.default=o,e.exports=t.default})(Ea,Ea.exports);var ZC=Ea.exports,Ia={exports:{}},Oa={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.width?String(o.width):n.defaultWidth,s=n.formats[a]||n.formats[n.defaultWidth];return s}}e.exports=t.default})(Oa,Oa.exports);var QC=Oa.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(QC),o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:s,defaultWidth:"full"})},c=l;t.default=c,e.exports=t.default})(Ia,Ia.exports);var JC=Ia.exports,Na={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(s,l,c,d){return r[s]},o=n;t.default=o,e.exports=t.default})(Na,Na.exports);var ex=Na.exports,Pa={exports:{}},Ra={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(o,a){var s=a!=null&&a.context?String(a.context):"standalone",l;if(s==="formatting"&&n.formattingValues){var c=n.defaultFormattingWidth||n.defaultWidth,d=a!=null&&a.width?String(a.width):c;l=n.formattingValues[d]||n.formattingValues[c]}else{var f=n.defaultWidth,u=a!=null&&a.width?String(a.width):n.defaultWidth;l=n.values[u]||n.values[f]}var p=n.argumentCallback?n.argumentCallback(o):o;return l[p]}}e.exports=t.default})(Ra,Ra.exports);var tx=Ra.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(tx),o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},d={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},f=function(g,C){var h=Number(g),v=h%100;if(v>20||v<10)switch(v%10){case 1:return h+"st";case 2:return h+"nd";case 3:return h+"rd"}return h+"th"},u={ordinalNumber:f,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(g){return g-1}}),month:(0,n.default)({values:s,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:c,defaultWidth:"wide",formattingValues:d,defaultFormattingWidth:"wide"})},p=u;t.default=p,e.exports=t.default})(Pa,Pa.exports);var nx=Pa.exports,Ma={exports:{}},Ta={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=l.width,d=c&&a.matchPatterns[c]||a.matchPatterns[a.defaultMatchWidth],f=s.match(d);if(!f)return null;var u=f[0],p=c&&a.parsePatterns[c]||a.parsePatterns[a.defaultParseWidth],m=Array.isArray(p)?o(p,function(h){return h.test(u)}):n(p,function(h){return h.test(u)}),g;g=a.valueCallback?a.valueCallback(m):m,g=l.valueCallback?l.valueCallback(g):g;var C=s.slice(u.length);return{value:g,rest:C}}}function n(a,s){for(var l in a)if(a.hasOwnProperty(l)&&s(a[l]))return l}function o(a,s){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},s=o.match(n.matchPattern);if(!s)return null;var l=s[0],c=o.match(n.parsePattern);if(!c)return null;var d=n.valueCallback?n.valueCallback(c[0]):c[0];d=a.valueCallback?a.valueCallback(d):d;var f=o.slice(l.length);return{value:d,rest:f}}}e.exports=t.default})(Da,Da.exports);var ox=Da.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(rx),o=r(ox),a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f={any:[/1/i,/2/i,/3/i,/4/i]},u={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},C={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},h={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},v={ordinalNumber:(0,o.default)({matchPattern:a,parsePattern:s,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:g,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:C,defaultMatchWidth:"any",parsePatterns:h,defaultParseWidth:"any"})},b=v;t.default=b,e.exports=t.default})(Ma,Ma.exports);var ax=Ma.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(ZC),o=r(JC),a=r(ex),s=r(nx),l=r(ax),c={code:"en-US",formatDistance:n.default,formatLong:o.default,formatRelative:a.default,localize:s.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},d=c;t.default=d,e.exports=t.default})($a,$a.exports);var ix=$a.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(ix),o=n.default;t.default=o,e.exports=t.default})(wa,wa.exports);var lx=wa.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=r(TC),o=r(kC),a=r(mn),s=r(WC),l=r(VC),c=r(vd),d=Mr,f=r(Bn),u=r(Ht),p=Kn,m=r(lx),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,v=/''/g,b=/[a-zA-Z]/;function y(S,w,$){var N,E,R,M,P,O,I,T,_,D,k,Y,z,L,ee,ie,de,Q;(0,u.default)(2,arguments);var J=String(w),se=(0,p.getDefaultOptions)(),q=(N=(E=$==null?void 0:$.locale)!==null&&E!==void 0?E:se.locale)!==null&&N!==void 0?N:m.default,X=(0,f.default)((R=(M=(P=(O=$==null?void 0:$.firstWeekContainsDate)!==null&&O!==void 0?O:$==null||(I=$.locale)===null||I===void 0||(T=I.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&P!==void 0?P:se.firstWeekContainsDate)!==null&&M!==void 0?M:(_=se.locale)===null||_===void 0||(D=_.options)===null||D===void 0?void 0:D.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(X>=1&&X<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=(0,f.default)((k=(Y=(z=(L=$==null?void 0:$.weekStartsOn)!==null&&L!==void 0?L:$==null||(ee=$.locale)===null||ee===void 0||(ie=ee.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&z!==void 0?z:se.weekStartsOn)!==null&&Y!==void 0?Y:(de=se.locale)===null||de===void 0||(Q=de.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&k!==void 0?k:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var K=(0,a.default)(S);if(!(0,n.default)(K))throw new RangeError("Invalid time value");var A=(0,c.default)(K),j=(0,o.default)(K,A),G={firstWeekContainsDate:X,weekStartsOn:Z,locale:q,_originalDate:K},F=J.match(C).map(function(W){var oe=W[0];if(oe==="p"||oe==="P"){var pe=l.default[oe];return pe(W,q.formatLong)}return W}).join("").match(g).map(function(W){if(W==="''")return"'";var oe=W[0];if(oe==="'")return x(W);var pe=s.default[oe];if(pe)return!($!=null&&$.useAdditionalWeekYearTokens)&&(0,d.isProtectedWeekYearToken)(W)&&(0,d.throwProtectedError)(W,w,String(S)),!($!=null&&$.useAdditionalDayOfYearTokens)&&(0,d.isProtectedDayOfYearToken)(W)&&(0,d.throwProtectedError)(W,w,String(S)),pe(j,W,q.localize,G);if(oe.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return W}).join("");return F}function x(S){var w=S.match(h);return w?w[1].replace(v,"'"):S}e.exports=t.default})(ta,ta.exports);var sx=ta.exports;const cx=to(sx);function Ll(e,t,r){var n=fx(e,r.timeZone,r.locale);return n.formatToParts?dx(n,t):ux(n,t)}function dx(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function ux(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function fx(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function mx(e,t){var r=hx(t);return r.formatToParts?vx(r,e):gx(r,e)}var px={year:0,month:1,day:2,hour:3,minute:4,second:5};function vx(e,t){try{for(var r=e.formatToParts(t),n=[],o=0;o=0&&(n[a]=parseInt(r[o].value,10))}return n}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function gx(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Io={};function hx(e){if(!Io[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Io[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Io[e]}function gd(e,t,r,n,o,a,s){var l=new Date(0);return l.setUTCFullYear(e,t,r),l.setUTCHours(n,o,a,s),l}var jl=36e5,bx=6e4,Oo={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Ii(e,t,r){var n,o;if(!e||(n=Oo.timezoneZ.exec(e),n))return 0;var a;if(n=Oo.timezoneHH.exec(e),n)return a=parseInt(n[1],10),Hl(a)?-(a*jl):NaN;if(n=Oo.timezoneHHMM.exec(e),n){a=parseInt(n[1],10);var s=parseInt(n[2],10);return Hl(a,s)?(o=Math.abs(a)*jl+s*bx,a>0?-o:o):NaN}if(xx(e)){t=new Date(t||Date.now());var l=r?t:yx(t),c=_a(l,e),d=r?c:Cx(t,c,e);return-d}return NaN}function yx(e){return gd(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function _a(e,t){var r=mx(e,t),n=gd(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),o=e.getTime(),a=o%1e3;return o-=a>=0?a:1e3+a,n-o}function Cx(e,t,r){var n=e.getTime(),o=n-t,a=_a(new Date(o),r);if(t===a)return t;o-=a-t;var s=_a(new Date(o),r);return a===s?a:Math.max(a,s)}function Hl(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var Al={};function xx(e){if(Al[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Al[e]=!0,!0}catch{return!1}}var Sx=60*1e3,wx={X:function(e,t,r,n){var o=No(n.timeZone,n._originalDate||e);if(o===0)return"Z";switch(t){case"X":return Fl(o);case"XXXX":case"XX":return qn(o);case"XXXXX":case"XXX":default:return qn(o,":")}},x:function(e,t,r,n){var o=No(n.timeZone,n._originalDate||e);switch(t){case"x":return Fl(o);case"xxxx":case"xx":return qn(o);case"xxxxx":case"xxx":default:return qn(o,":")}},O:function(e,t,r,n){var o=No(n.timeZone,n._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+$x(o,":");case"OOOO":default:return"GMT"+qn(o,":")}},z:function(e,t,r,n){var o=n._originalDate||e;switch(t){case"z":case"zz":case"zzz":return Ll("short",o,n);case"zzzz":default:return Ll("long",o,n)}}};function No(e,t){var r=e?Ii(e,t,!0)/Sx:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Yr(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?"-":"+",o=Math.abs(e),a=Yr(Math.floor(o/60),2),s=Yr(Math.floor(o%60),2);return n+a+r+s}function Fl(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Yr(Math.abs(e)/60,2)}return qn(e,t)}function $x(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(a===0)return r+String(o);var s=t||"";return r+String(o)+s+Yr(a,2)}const Ex=wx;var Ix=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Po=36e5,Wl=6e4,Ox=2,Bt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Ix};function hd(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?Ox:DC(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Nx(e),a=Px(o.date,n),s=a.year,l=a.restDateString,c=Rx(l,s);if(isNaN(c))return new Date(NaN);if(c){var d=c.getTime(),f=0,u;if(o.time&&(f=Mx(o.time),isNaN(f)))return new Date(NaN);if(o.timeZone||r.timeZone){if(u=Ii(o.timeZone||r.timeZone,new Date(d+f)),isNaN(u))return new Date(NaN)}else u=Kl(new Date(d+f)),u=Kl(new Date(d+f+u));return new Date(d+f+u)}else return new Date(NaN)}function Nx(e){var t={},r=Bt.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Bt.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var o=Bt.timeZone.exec(n);o?(t.time=n.replace(o[1],""),t.timeZone=o[1].trim()):t.time=n}return t}function Px(e,t){var r=Bt.YYY[t],n=Bt.YYYYY[t],o;if(o=Bt.YYYY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Bt.YY.exec(e)||r.exec(e),o){var s=o[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function Rx(e,t){if(t===null)return null;var r,n,o,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Bt.MM.exec(e),r)return n=new Date(0),o=parseInt(r[1],10)-1,Ul(t,o)?(n.setUTCFullYear(t,o),n):new Date(NaN);if(r=Bt.DDD.exec(e),r){n=new Date(0);var s=parseInt(r[1],10);return _x(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(r=Bt.MMDD.exec(e),r){n=new Date(0),o=parseInt(r[1],10)-1;var l=parseInt(r[2],10);return Ul(t,o,l)?(n.setUTCFullYear(t,o,l),n):new Date(NaN)}if(r=Bt.Www.exec(e),r)return a=parseInt(r[1],10)-1,ql(t,a)?Vl(t,a):new Date(NaN);if(r=Bt.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var c=parseInt(r[2],10)-1;return ql(t,a,c)?Vl(t,a,c):new Date(NaN)}return null}function Mx(e){var t,r,n;if(t=Bt.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Ro(r)?r%24*Po:NaN;if(t=Bt.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Ro(r,n)?r%24*Po+n*Wl:NaN;if(t=Bt.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Ro(r,n,o)?r%24*Po+n*Wl+o*1e3:NaN}return null}function Vl(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,a=t*7+r+1-o;return n.setUTCDate(n.getUTCDate()+a),n}var Tx=[31,28,31,30,31,30,31,31,30,31,30,31],Dx=[31,29,31,30,31,30,31,31,30,31,30,31];function bd(e){return e%400===0||e%4===0&&e%100!==0}function Ul(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=bd(e);if(n&&r>Dx[t]||!n&&r>Tx[t])return!1}return!0}function _x(e,t){if(t<1)return!1;var r=bd(e);return!(r&&t>366||!r&&t>365)}function ql(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Ro(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var kx=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function zx(e,t,r){var n=String(t),o=r||{},a=n.match(kx);if(a){var s=hd(e,o);n=a.reduce(function(l,c){if(c[0]==="'")return l;var d=l.indexOf(c),f=l[d-1]==="'",u=l.replace(c,"'"+Ex[c[0]](s,c,null,o)+"'");return f?u.substring(0,d-1)+u.substring(d+1):u},n)}return cx(e,n,o)}var ka={exports:{}},za={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a]);return n}e.exports=t.default})(za,za.exports);var Bx=za.exports;(function(e,t){var r=bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Bx);function o(a){return(0,n.default)({},a)}e.exports=t.default})(ka,ka.exports);var Kx=ka.exports;const Lx=to(Kx);function jx(e,t,r){var n=hd(e,r),o=Ii(t,n,!0),a=new Date(n.getTime()-o),s=new Date(0);return s.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),s.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),s}function $r(e,t,r,n){var o=Lx(n);return o.timeZone=t,zx(jx(e,t),r,o)}const Xl=({className:e})=>ne.jsx("svg",{className:`${e}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 9",children:ne.jsx("path",{d:"M8.51675 5.16427H1.08341C0.894526 5.16427 0.736192 5.10039 0.608415 4.97261C0.480637 4.84483 0.416748 4.6865 0.416748 4.49761C0.416748 4.30872 0.480637 4.15039 0.608415 4.02261C0.736192 3.89483 0.894526 3.83094 1.08341 3.83094H8.51675L6.61675 1.93094C6.48341 1.79761 6.41953 1.64205 6.42508 1.46427C6.43064 1.2865 6.49453 1.13094 6.61675 0.997607C6.75008 0.864274 6.90841 0.794829 7.09175 0.789274C7.27508 0.783718 7.43341 0.847607 7.56675 0.98094L10.6167 4.03094C10.6834 4.09761 10.7306 4.16983 10.7584 4.24761C10.7862 4.32539 10.8001 4.40872 10.8001 4.49761C10.8001 4.5865 10.7862 4.66983 10.7584 4.74761C10.7306 4.82539 10.6834 4.89761 10.6167 4.96427L7.56675 8.01427C7.43341 8.14761 7.27508 8.2115 7.09175 8.20594C6.90841 8.20039 6.75008 8.13094 6.61675 7.99761C6.49453 7.86427 6.43064 7.70872 6.42508 7.53094C6.41953 7.35316 6.48341 7.19761 6.61675 7.06427L8.51675 5.16427Z",fill:"black"})});function Hx(e){const{graph:t}=_d("graph"),{allNodes:r}=ds(n=>({allNodes:n.allNodes}));return i.useMemo(()=>{var c;const n=t.node(e);if(!n)return[];if(n.type!=="Benchmark_Result")return[];let o=t.predecessors(e),a=new Set;for(;o&&o.length;){let d=[];for(const f of o)if(((c=t.node(f).type)==null?void 0:c.toLowerCase())!=="model"){a.add(f);const p=t.predecessors(f);d.push(...p)}o=d}const s=Array.from(a.values()),l=r.filter(d=>a.has(d.id));return l.sort((d,f)=>s.indexOf(d.id)-s.indexOf(f.id)),l},[t,r,e])}function Ax(e,t){const r=wi(e.node.properties.timestamp),n=[{label:"Node ID",data:{rawString:e.node.id,renderFunction:a=>ne.jsx(yt,{value:a})}},{label:"Date",data:{rawString:$r(r,"UTC","MMMM d, yyyy")}},{label:"Time",data:{rawString:`${$r(r,"UTC","HH:mm:ss")} UTC`}},{label:"Registered By",data:{rawString:e.node.properties.registeredBy,renderFunction:a=>a.user?a.user.url?ne.jsx(ne.Fragment,{children:ne.jsx("a",{href:a.user.url,target:"_blank",rel:"noopener noreferrer",children:ne.jsx("div",{children:a.user.name})})}):ne.jsx("div",{children:a.user.name}):ne.jsx(yt,{value:a.did})}}],o=t.find(Vx);if(o)for(const[a,s]of o.data.entries())n.push({label:a===0?"Anchored On":"",data:{rawString:`${s.type}:${s.id}`,renderFunction:l=>ne.jsx("a",{href:s.link,target:"_blank",children:ne.jsx(yt,{value:l})})}});return e.node.properties.storedOn&&n.push({label:"Stored On",data:{rawString:e.node.properties.storedOn[0],renderFunction:a=>ne.jsx(yt,{value:a})}}),e.node.properties.executedOn&&n.push({label:"Executed On",data:{rawString:e.node.properties.executedOn,renderFunction:a=>a.user?ne.jsxs(ne.Fragment,{children:[ne.jsxs("div",{children:[a.user.firstName," ",a.user.lastName]}),ne.jsx(yt,{value:a.did})]}):ne.jsx(yt,{value:a.did})}}),e.node.properties.operatedBy&&n.push({label:"Operated By",data:{rawString:e.node.properties.operatedBy,renderFunction:a=>a.user?ne.jsxs(ne.Fragment,{children:[ne.jsxs("div",{children:[a.user.firstName," ",a.user.lastName]}),ne.jsx(yt,{value:a.did})]}):ne.jsx(yt,{value:a.did})}}),e.node.properties.computation&&n.push({label:"Computation",data:{rawString:e.node.properties.computation,renderFunction:a=>ne.jsx(yt,{value:a})}}),{title:{rawString:"Registration",renderFunction:a=>ne.jsx(od,{value:a,link:`${us()}/${wn(e.node.id,"urn:cid:")}.node`})},sections:[{items:n}]}}function Fx(e,t,r){var o,a;const n=[];if(t.length&&n.push({title:{rawString:"Governance"},sections:t.map(s=>{var d,f,u;const l=wi(s.node.properties.timestamp),c=[{label:"Name",data:{rawString:((f=(d=s.enrichments)==null?void 0:d.governance)==null?void 0:f.name)||s.node.id}},{label:"Initiated By",data:{rawString:((u=s.enrichments.governance)==null?void 0:u.initiating_user)||s.node.properties.registeredBy,renderFunction:p=>p.user?ne.jsxs(ne.Fragment,{children:[ne.jsxs("div",{children:[p.user.firstName," ",p.user.lastName]}),ne.jsx(yt,{value:p.did})]}):ne.jsx(yt,{value:p.did})}},{label:"Resolved On",data:{rawString:$r(l,"UTC","MMMM, d, yyyy")}}];return s.node.properties.request&&c.push({label:"Request",data:{rawString:s.node.properties.request,renderFunction:p=>ne.jsx(yt,{value:p})}}),s.node.properties.result&&c.push({label:"Result",data:{rawString:s.node.properties.result,renderFunction:p=>ne.jsx(yt,{value:p})}}),{items:c}})}),e.node.properties.nodeType==="data"&&((o=e.enrichments)!=null&&o.asset_hub)){const s=e.enrichments.asset_hub,l=[];s.asset_name&&l.push({label:"Name",data:{rawString:s.asset_name}}),s.owning_project&&l.push({label:"Project",data:{rawString:s.owning_project}}),s.asset_description&&l.push({label:"Description",data:{rawString:s.asset_description}}),l.length>0&&n.push({title:{rawString:"Asset"},sections:[{items:l}]});const c=[];s.asset_format&&c.push({label:"Format",data:{rawString:s.asset_format}}),s.source_location_url&&c.push({label:"Location",data:{rawString:s.source_location_url,renderFunction:d=>ne.jsx("a",{href:d,target:"_blank",children:d})}}),s.contact_info&&c.push({label:"Contact",data:{rawString:s.contact_info}}),s.license&&c.push({label:"License",data:{rawString:s.license,renderFunction:d=>s.license_link?ne.jsx("a",{href:s.license_link,target:"_blank",children:d}):s.license}}),s.registered_date&&c.push({label:"Created",data:{rawString:s.registered_date}}),s.last_modified_date&&c.push({label:"Last Modified",data:{rawString:s.last_modified_date}}),c.length>0&&n.push({title:{rawString:s.asset_type?s.asset_type:"File"},sections:[{items:c}]})}if(e.node.properties.nodeType==="computation"&&((a=e.enrichments)!=null&&a.asset_hub)){const s=e.enrichments.asset_hub,l=[];s.asset_name&&l.push({label:"Name",data:{rawString:s.asset_name}}),s.owning_project&&l.push({label:"Project",data:{rawString:s.owning_project}}),s.asset_description&&l.push({label:"Description",data:{rawString:s.asset_description}}),s.source_location_url&&l.push({label:"Location",data:{rawString:s.source_location_url,renderFunction:f=>ne.jsx("a",{href:f,download:!0,children:f})}}),s.contact_info&&l.push({label:"Contact",data:{rawString:s.contact_info}}),s.registered_date&&l.push({label:"Created",data:{rawString:s.registered_date}}),l.length>0&&n.push({title:{rawString:"Computation"},sections:[{items:l}]});const c=[],d=r.find(yd);if(d!=null&&d.data.files["report.amd"]){const f="https://literate-adventure-1w9zw5r.pages.github.io/",u=d.data.files["report.amd"],p=e.node.properties.registeredBy,m=`${f}?report=${u}&did=${p}`;c.push({label:"AMD SEV",data:{rawString:`${f}?...`,renderFunction:g=>ne.jsx("a",{href:m,children:g})}})}if(d!=null&&d.data.files["report.nvidia"]){const f="https://literate-adventure-1w9zw5r.pages.github.io/nvidia.html",u=d.data.files["report.nvidia"],p=e.node.properties.registeredBy,m=`${f}?report=${u}&did=${p}`;c.push({label:"NVIDIA CC",data:{rawString:`${f}?...`,renderFunction:g=>ne.jsx("a",{href:m,children:g})}})}c.length>0&&n.push({title:{rawString:"TEE Attestations"},sections:[{items:c}]})}return n}function Wx(e){const t=[];if(e.length)for(const r of e){const n=wi(r.data.properties.timestamp),o=[{label:"Node ID",data:{rawString:r.id,renderFunction:a=>ne.jsx(yt,{value:a})}},{label:"Date",data:{rawString:$r(n,"UTC","MMMM, d, yyyy")}},{label:"Time",data:{rawString:`${$r(n,"UTC","HH:mm:ss")} UTC`}},{label:"Registered By",data:{rawString:r.data.properties.registeredBy,renderFunction:a=>a.startsWith("did:key:")?ne.jsx(yt,{value:a}):a}}];r.data.properties.storedOn&&o.push({label:"Stored On",data:{rawString:r.data.properties.storedOn[0],renderFunction:a=>ne.jsx(yt,{value:a})}}),r.data.properties.executedOn&&o.push({label:"Executed On",data:{rawString:r.data.properties.executedOn,renderFunction:a=>a.startsWith("did:key:")?ne.jsx(yt,{value:a}):a}}),r.data.properties.operatedBy&&o.push({label:"Operated By",data:{rawString:r.data.properties.operatedBy,renderFunction:a=>a.startsWith("did:key:")?ne.jsx(yt,{value:a}):a}}),r.data.properties.computation&&o.push({label:"Computation",data:{rawString:r.data.properties.computation,renderFunction:a=>ne.jsx(yt,{value:a})}}),t.push({title:{rawString:r.data.label,renderFunction:a=>ne.jsx(od,{multiline:!0,value:a,link:`${us()}/${wn(r.id,"urn:cid:")}.node`})},sections:[{items:o}]})}return t}function yd(e){return e.type==="iroh-collection"}function Vx(e){return e.type==="anchor"}const Ux=({node:e,governanceNodes:t,metadata:r,onCloseClick:n})=>{var O,I,T;const{graphState:o,vcsToGraph:a}=ds(_=>({graphState:_.graphState,vcsToGraph:_.vcsToGraph}));if(!e)return ne.jsx(ne.Fragment,{});let s=Hx(e.node.id);const l=Wx(s),c=kd(),d=ls(),f=ss(),u=c.pathname.endsWith("/expanded"),[p]=cs();wn(e.node.id,"urn:cid:");const m=jd(e.node.id,a),g=Ax(e,r),C=Fx(e,t,r),h=(I=(O=e.enrichments)==null?void 0:O.asset_hub)==null?void 0:I.asset_blob_type,v=h==="iroh-collection"||h==="prolly-tree",b=r.find(yd),y=e.node.properties.nodeType==="computation"?"computation":e.enrichments.asset_hub?(T=e.enrichments.asset_hub)==null?void 0:T.asset_type:e.node.properties.nodeType,{iconId:x,displayType:S,color:w}=Hd(y),$=Ad(x),N={"--node-color-top":o==="vc-on"?Fd[m]:w||"","--text-color":o==="vc-on"?"black":"white"},E=()=>{d(u?`${Do(`${f.owner}/${f.repo}`)}/${e.node.id}?${p.toString()}`:`${Do(`${f.owner}/${f.repo}`)}/${e.node.id}/expanded?${p.toString()}`)},R=U(Ot.sidebar,{[Ot.sidebarIsExpanded]:u}),M=U(Ot.arrow,{[Ot.isVisible]:u}),P=U(Ot.arrow,{[Ot.isLeftPointing]:!0,[Ot.isVisible]:!u});return ne.jsxs("div",{style:N,className:R,children:[ne.jsxs("div",{className:Ot.topBar,children:[ne.jsx("span",{className:Ot.icon,children:$&&ne.jsx($,{})}),ne.jsx(ru,{level:4,className:Ot.displayType,children:S}),ne.jsx(Zn,{onClick:n,className:Ot.closeButton,type:"text",children:ne.jsx(Jl,{style:{color:zd.white}})})]}),ne.jsxs("div",{className:Ot.content,children:[u&&h?ne.jsxs(ne.Fragment,{children:[ne.jsx(ea,{data:g}),ne.jsx("div",{className:Ot.expandedSection,children:h==="iroh-collection"&&ne.jsx(mC,{type:h,folder:b==null?void 0:b.data})})]}):ne.jsxs(ne.Fragment,{children:[l.length>0&&ne.jsx(Gl,{theme:{components:{Collapse:{contentPadding:"0",headerPadding:"0 1.33em"}}},children:ne.jsx(Vv,{bordered:!1,className:Ot.collapse,items:[{key:"related",label:ne.jsx("h3",{style:{margin:0,fontSize:"1.25rem"},children:"Related Nodes"}),children:ne.jsx(Bl,{sections:l}),style:{border:"none"}}]})}),ne.jsx(Bl,{sections:C}),ne.jsx(ea,{data:g})]}),v&&ne.jsx("div",{className:Ot.footer,children:ne.jsxs("button",{className:Ot.moreButton,onClick:E,children:[ne.jsx("span",{className:P,children:ne.jsx(Xl,{className:Ot.svg})}),ne.jsx("span",{children:u?"Show less":"Show more"}),ne.jsx("span",{className:M,children:ne.jsx(Xl,{className:Ot.svg})})]})})]})]})};function Jx(){const e=ls(),t=ss(),r=Bd(),[{targetNode:n,governanceNodes:o,metadata:a},s]=i.useState(r),[l]=cs();return i.useEffect(()=>{r&&s(r)},[r]),ne.jsx(Ux,{node:n,governanceNodes:o,metadata:a,onCloseClick:()=>{e(Do(`${t.owner}/${t.repo}`)+`?${l.toString()}`)}})}async function eS({request:e}){const t=new URL(e.url),r=t.searchParams,n=t.pathname.split("/"),a=n[n.length-1]==="expanded"?n[n.length-2]:n[n.length-1];return r.get("search")?await zl(a??"",!0):await zl(a??"",!1)}export{Jx as Component,eS as loader};