index-0c31c85b.js 168 KB

12
  1. import{E as mt,d as Ce,n as vt,p as en,G as ut,c as v,H as C,q as Ne,J as Mt,K as hr,L as qe,O as pr,o as M,Q as Te,R as fl,T as ft,x as Y,U as wt,s as K,V as nt,W as ke,X as Ve,Y as be,Z as ct,$ as Le,a0 as ht,a1 as yl,a2 as ka,a3 as Ft,a4 as tn,a5 as ml,A as pt,a6 as Yt,a7 as nn,a8 as Jn,a9 as Qn,aa as st,ab as hl,ac as ea,ad as Jt,ae as ta,i as zt,af as pl,ag as gl,ah as Ae,ai as gr,aj as br,ak as kt,f as Dt,al as na,am as aa,an as Xt,v as xr,ao as bl,ap as xl,aq as Cl,ar as Sl,as as Cr,at as kl,au as Sr,av as wl,aw as $t,k as Kl,z as Lt,ax as ot,ay as El,az as wa,aA as At,aB as Pl,aC as mn,aD as Tl,I as Ol,aE as Nl,aF as Rl,aG as Il,aH as kr,aI as _l,t as hn,aJ as Dl,aK as Ll,B as Ka,aL as Ea,aM as Al,aN as Bl,S as Ml}from"./main-4801cc52.js";import{D as ra,M as Bt,E as Fl,a as $l,b as jl,A as Hl,T as zl}from"./index-b08a7613.js";import{D as wr,u as Ge,i as Wl,a as En,L as Gl,P as Vl}from"./index-00053b44.js";import{r as Ul,a as yt,R as Xl,c as Kr,t as ql,b as Yl,d as Zl,h as Jl,f as Ql,V as eo}from"./Form-46ad1153.js";import{i as to,a as no}from"./useFlexGapSupport-310043de.js";import{R as ao,C as ro,_ as lo}from"./Col-7508b53a.js";import{e as St,i as oo,u as io}from"./index-33c9ec48.js";import{c as uo}from"./collapseMotion-14d9ada7.js";function Pn(t){return t!=null&&t===t.window}function co(t,e){if(typeof window>"u")return 0;var n=e?"scrollTop":"scrollLeft",a=0;if(Pn(t)?a=t[e?"pageYOffset":"pageXOffset"]:t instanceof Document?a=t.documentElement[n]:t&&(a=t[n]),t&&!Pn(t)&&typeof a!="number"){var r;a=(r=(t.ownerDocument||t).documentElement)===null||r===void 0?void 0:r[n]}return a}function so(t,e,n,a){var r=n-e;return t/=a/2,t<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e}function vo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.getContainer,a=n===void 0?function(){return window}:n,r=e.callback,l=e.duration,i=l===void 0?450:l,o=a(),u=co(o,!0),s=Date.now(),m=function d(){var y=Date.now(),g=y-s,b=so(g>i?i:g,u,t,i);Pn(o)?o.scrollTo(window.pageXOffset,b):o instanceof HTMLDocument||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=b:o.scrollTop=b,g<i?mt(d):typeof r=="function"&&r()};mt(m)}var fo=["class","style"],yo=function(){return{prefixCls:String,href:String,separator:Ne.any,overlay:Ne.any,onClick:Function}};const cn=Ce({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:yo(),slots:["separator","overlay"],setup:function(e,n){var a=n.slots,r=n.attrs,l=vt("breadcrumb",e),i=l.prefixCls,o=function(s,m){var d=en(a,e,"overlay");return d?v(ra,{overlay:d,placement:"bottom"},{default:function(){return[v("span",{class:"".concat(m,"-overlay-link")},[s,v(wr,null,null)])]}}):s};return function(){var u,s=(u=en(a,e,"separator"))!==null&&u!==void 0?u:"/",m=en(a,e),d=r.class,y=r.style,g=ut(r,fo),b;return e.href!==void 0?b=v("a",C({class:"".concat(i.value,"-link"),onClick:e.onClick},g),[m]):b=v("span",C({class:"".concat(i.value,"-link"),onClick:e.onClick},g),[m]),b=o(b,i.value),m?v("span",{class:d,style:y},[b,s&&v("span",{class:"".concat(i.value,"-separator")},[s])]):null}}});var mo=function(){return{prefixCls:String,routes:{type:Array},params:Ne.any,separator:Ne.any,itemRender:{type:Function}}};function ho(t,e){if(!t.breadcrumbName)return null;var n=Object.keys(e).join("|"),a=t.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),function(r,l){return e[l]||r});return a}function Pa(t){var e=t.route,n=t.params,a=t.routes,r=t.paths,l=a.indexOf(e)===a.length-1,i=ho(e,n);return l?v("span",null,[i]):v("a",{href:"#/".concat(r.join("/"))},[i])}const Wt=Ce({compatConfig:{MODE:3},name:"ABreadcrumb",props:mo(),slots:["separator","itemRender"],setup:function(e,n){var a=n.slots,r=vt("breadcrumb",e),l=r.prefixCls,i=r.direction,o=function(d,y){return d=(d||"").replace(/^\//,""),Object.keys(y).forEach(function(g){d=d.replace(":".concat(g),y[g])}),d},u=function(d,y,g){var b=Te(d),k=o(y||"",g);return k&&b.push(k),b},s=function(d){var y=d.routes,g=y===void 0?[]:y,b=d.params,k=b===void 0?{}:b,c=d.separator,p=d.itemRender,f=p===void 0?Pa:p,h=[];return g.map(function(x){var S=o(x.path,k);S&&h.push(S);var w=[].concat(h),N=null;return x.children&&x.children.length&&(N=v(Bt,null,{default:function(){return[x.children.map(function(A){return v(Bt.Item,{key:A.path||A.breadcrumbName},{default:function(){return[f({route:A,params:k,routes:g,paths:u(w,A.path,k)})]}})})]}})),v(cn,{overlay:N,separator:c,key:S||x.breadcrumbName},{default:function(){return[f({route:x,params:k,routes:g,paths:w})]}})})};return function(){var m,d,y,g=e.routes,b=e.params,k=b===void 0?{}:b,c=Mt(en(a,e)),p=(m=en(a,e,"separator"))!==null&&m!==void 0?m:"/",f=e.itemRender||a.itemRender||Pa;g&&g.length>0?y=s({routes:g,params:k,separator:p,itemRender:f}):c.length&&(y=c.map(function(x,S){return hr(qe(x.type)==="object"&&(x.type.__ANT_BREADCRUMB_ITEM||x.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),pr(x,{separator:p,key:S})}));var h=(d={},M(d,l.value,!0),M(d,"".concat(l.value,"-rtl"),i.value==="rtl"),d);return v("div",{class:h},[y])}}});var po=["separator","class"],go=function(){return{prefixCls:String}};const Tn=Ce({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:go(),setup:function(e,n){var a=n.slots,r=n.attrs,l=vt("breadcrumb",e),i=l.prefixCls;return function(){var o;r.separator;var u=r.class,s=ut(r,po),m=Mt((o=a.default)===null||o===void 0?void 0:o.call(a));return v("span",C({class:["".concat(i.value,"-separator"),u]},s),[m.length>0?m:"/"])}}});Wt.Item=cn;Wt.Separator=Tn;Wt.install=function(t){return t.component(Wt.name,Wt),t.component(cn.name,cn),t.component(Tn.name,Tn),t};function bo(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=fl(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(s){throw s},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  2. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,i=!1,o;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return l=s.done,s},e:function(s){i=!0,o=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(i)throw o}}}}const xo=Ce({compatConfig:{MODE:3},name:"ARadioButton",props:Ul(),setup:function(e,n){var a=n.slots,r=vt("radio-button",e),l=r.prefixCls,i=ft("radioGroupContext",void 0);return function(){var o,u=C(C({},e),{},{prefixCls:l.value});return i&&(u.onChange=i.onRadioChange,u.checked=u.value===i.stateValue.value,u.disabled=u.disabled||i.props.disabled),v(yt,u,{default:function(){return[(o=a.default)===null||o===void 0?void 0:o.call(a)]}})}}});yt.Group=Xl;yt.Button=xo;yt.install=function(t){return t.component(yt.name,yt),t.component(yt.Group.name,yt.Group),t.component(yt.Button.name,yt.Button),t};function Co(t){var e=Y(),n=Y(!1);function a(){for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];n.value||(mt.cancel(e.value),e.value=mt(function(){t.apply(void 0,l)}))}return wt(function(){n.value=!0,mt.cancel(e.value)}),a}function So(t){var e=Y([]),n=Y(typeof t=="function"?t():t),a=Co(function(){var l=n.value;e.value.forEach(function(i){l=i(l)}),e.value=[],n.value=l});function r(l){e.value.push(l),a()}return[n,r]}const ko=Ce({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup:function(e,n){var a=n.expose,r=n.attrs,l=Y();function i(s){var m;(m=e.tab)!==null&&m!==void 0&&m.disabled||e.onClick(s)}a({domRef:l});function o(s){var m;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(m=e.tab)===null||m===void 0?void 0:m.key,event:s})}var u=K(function(){var s;return e.editable&&e.closable!==!1&&!((s=e.tab)!==null&&s!==void 0&&s.disabled)});return function(){var s,m,d=e.prefixCls,y=e.id,g=e.active,b=e.tab,k=b.key,c=b.tab,p=b.disabled,f=b.closeIcon,h=e.renderWrapper,x=e.removeAriaLabel,S=e.editable,w=e.onFocus,N="".concat(d,"-tab"),z=v("div",{key:k,ref:l,class:ke(N,(s={},M(s,"".concat(N,"-with-remove"),u.value),M(s,"".concat(N,"-active"),g),M(s,"".concat(N,"-disabled"),p),s)),style:r.style,onClick:i},[v("div",{role:"tab","aria-selected":g,id:y&&"".concat(y,"-tab-").concat(k),class:"".concat(N,"-btn"),"aria-controls":y&&"".concat(y,"-panel-").concat(k),"aria-disabled":p,tabindex:p?null:0,onClick:function(L){L.stopPropagation(),i(L)},onKeydown:function(L){[nt.SPACE,nt.ENTER].includes(L.which)&&(L.preventDefault(),i(L))},onFocus:w},[typeof c=="function"?c():c]),u.value&&v("button",{type:"button","aria-label":x||"remove",tabindex:0,class:"".concat(N,"-remove"),onClick:function(L){L.stopPropagation(),o(L)}},[(f==null?void 0:f())||((m=S.removeIcon)===null||m===void 0?void 0:m.call(S))||"×"])]);return h?h(z):z}}});var Ta={width:0,height:0,left:0,top:0};function wo(t,e){var n=Y(new Map);return Ve(function(){for(var a,r=new Map,l=t.value,i=e.value.get((a=l[0])===null||a===void 0?void 0:a.key)||Ta,o=i.left+i.width,u=0;u<l.length;u+=1){var s=l[u].key,m=e.value.get(s);if(!m){var d;m=e.value.get((d=l[u-1])===null||d===void 0?void 0:d.key)||Ta}var y=r.get(s)||C({},m);y.right=o-y.left-y.width,r.set(s,y)}n.value=new Map(r)}),n}const Er=Ce({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup:function(e,n){var a=n.expose,r=n.attrs,l=Y();return a({domRef:l}),function(){var i=e.prefixCls,o=e.editable,u=e.locale;return!o||o.showAdd===!1?null:v("button",{ref:l,type:"button",class:"".concat(i,"-nav-add"),style:r.style,"aria-label":(u==null?void 0:u.addAriaLabel)||"Add tab",onClick:function(m){o.onEdit("add",{event:m})}},[o.addIcon?o.addIcon():"+"])}}});var Ko={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Ne.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function}};const Eo=Ce({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Ko,emits:["tabClick"],slots:["moreIcon"],setup:function(e,n){var a=n.attrs,r=n.slots,l=Ge(!1),i=be(l,2),o=i[0],u=i[1],s=Ge(null),m=be(s,2),d=m[0],y=m[1],g=function(h){for(var x=e.tabs.filter(function(A){return!A.disabled}),S=x.findIndex(function(A){return A.key===d.value})||0,w=x.length,N=0;N<w;N+=1){S=(S+h+w)%w;var z=x[S];if(!z.disabled){y(z.key);return}}},b=function(h){var x=h.which;if(!o.value){[nt.DOWN,nt.SPACE,nt.ENTER].includes(x)&&(u(!0),h.preventDefault());return}switch(x){case nt.UP:g(-1),h.preventDefault();break;case nt.DOWN:g(1),h.preventDefault();break;case nt.ESC:u(!1);break;case nt.SPACE:case nt.ENTER:d.value!==null&&e.onTabClick(d.value,h);break}},k=K(function(){return"".concat(e.id,"-more-popup")}),c=K(function(){return d.value!==null?"".concat(k.value,"-").concat(d.value):null}),p=function(h,x){h.preventDefault(),h.stopPropagation(),e.editable.onEdit("remove",{key:x,event:h})};return ct(function(){Le(d,function(){var f=document.getElementById(c.value);f&&f.scrollIntoView&&f.scrollIntoView(!1)},{flush:"post",immediate:!0})}),Le(o,function(){o.value||y(null)}),function(){var f,h=e.prefixCls,x=e.id,S=e.tabs,w=e.locale,N=e.mobile,z=e.moreIcon,A=z===void 0?((f=r.moreIcon)===null||f===void 0?void 0:f.call(r))||v(Fl,null,null):z,L=e.moreTransitionName,R=e.editable,B=e.tabBarGutter,I=e.rtl,E=e.onTabClick,$="".concat(h,"-dropdown"),j=w==null?void 0:w.dropdownAriaLabel,V=M({},I?"marginRight":"marginLeft",B);S.length||(V.visibility="hidden",V.order=1);var U=ke(M({},"".concat($,"-rtl"),I)),Z=N?null:v(jl,{prefixCls:$,trigger:["hover"],visible:o.value,transitionName:L,onVisibleChange:u,overlayClassName:U,mouseEnterDelay:.1,mouseLeaveDelay:.1},{overlay:function(){return v(Bt,{onClick:function(G){var X=G.key,ne=G.domEvent;E(X,ne),u(!1)},id:k.value,tabindex:-1,role:"listbox","aria-activedescendant":c.value,selectedKeys:[d.value],"aria-label":j!==void 0?j:"expanded dropdown"},{default:function(){return[S.map(function(G){var X,ne,se=R&&G.closable!==!1&&!G.disabled;return v($l,{key:G.key,id:"".concat(k.value,"-").concat(G.key),role:"option","aria-controls":x&&"".concat(x,"-panel-").concat(G.key),disabled:G.disabled},{default:function(){return[v("span",null,[typeof G.tab=="function"?G.tab():G.tab]),se&&v("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:"".concat($,"-menu-item-remove"),onClick:function(we){we.stopPropagation(),p(we,G.key)}},[((X=G.closeIcon)===null||X===void 0?void 0:X.call(G))||((ne=R.removeIcon)===null||ne===void 0?void 0:ne.call(R))||"×"])]}})})]}})},default:function(){return v("button",{type:"button",class:"".concat(h,"-nav-more"),style:V,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k.value,id:"".concat(x,"-more"),"aria-expanded":o.value,onKeydown:b},[A])}});return v("div",{class:ke("".concat(h,"-nav-operations"),a.class),style:a.style},[Z,v(Er,{prefixCls:h,locale:w,editable:R},null)])}}});var Pr=Symbol("tabsContextKey"),Po=function(e){ht(Pr,e)},Tr=function(){return ft(Pr,{tabs:Y([]),prefixCls:Y()})},To=.1,Oa=.01,ln=20,Na=Math.pow(.995,ln);function Oo(t,e){var n=Ge(),a=be(n,2),r=a[0],l=a[1],i=Ge(0),o=be(i,2),u=o[0],s=o[1],m=Ge(0),d=be(m,2),y=d[0],g=d[1],b=Ge(),k=be(b,2),c=k[0],p=k[1],f=Y();function h(I){var E=I.touches[0],$=E.screenX,j=E.screenY;l({x:$,y:j}),clearInterval(f.value)}function x(I){if(r.value){I.preventDefault();var E=I.touches[0],$=E.screenX,j=E.screenY,V=$-r.value.x,U=j-r.value.y;e(V,U),l({x:$,y:j});var Z=Date.now();g(Z-u.value),s(Z),p({x:V,y:U})}}function S(){if(r.value){var I=c.value;if(l(null),p(null),I){var E=I.x/y.value,$=I.y/y.value,j=Math.abs(E),V=Math.abs($);if(Math.max(j,V)<To)return;var U=E,Z=$;f.value=setInterval(function(){if(Math.abs(U)<Oa&&Math.abs(Z)<Oa){clearInterval(f.value);return}U*=Na,Z*=Na,e(U*ln,Z*ln)},ln)}}}var w=Y();function N(I){var E=I.deltaX,$=I.deltaY,j=0,V=Math.abs(E),U=Math.abs($);V===U?j=w.value==="x"?E:$:V>U?(j=E,w.value="x"):(j=$,w.value="y"),e(-j,-j)&&I.preventDefault()}var z=Y({onTouchStart:h,onTouchMove:x,onTouchEnd:S,onWheel:N});function A(I){z.value.onTouchStart(I)}function L(I){z.value.onTouchMove(I)}function R(I){z.value.onTouchEnd(I)}function B(I){z.value.onWheel(I)}ct(function(){var I,E;document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),(I=t.value)===null||I===void 0||I.addEventListener("touchstart",A,{passive:!1}),(E=t.value)===null||E===void 0||E.addEventListener("wheel",B,{passive:!1})}),wt(function(){document.removeEventListener("touchmove",L),document.removeEventListener("touchend",R)})}function Ra(t,e){var n=Y(t);function a(r){var l=typeof r=="function"?r(n.value):r;l!==n.value&&e(l,n.value),n.value=l}return[n,a]}var No=function(){var e=Y(new Map),n=function(r){return function(l){e.value.set(r,l)}};return yl(function(){e.value=new Map}),[n,e]};const Ro=No;function Io(t,e,n,a){if(!ka(t))return t;e=Kr(e,t);for(var r=-1,l=e.length,i=l-1,o=t;o!=null&&++r<l;){var u=ql(e[r]),s=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(r!=i){var m=o[u];s=a?a(m,u,o):void 0,s===void 0&&(s=ka(m)?m:to(e[r+1])?[]:{})}Yl(o,u,s),o=o[u]}return t}function _o(t,e,n){for(var a=-1,r=e.length,l={};++a<r;){var i=e[a],o=Zl(t,i);n(o,i)&&Io(l,Kr(i,t),o)}return l}function Do(t,e){return _o(t,e,function(n,a){return Jl(t,a)})}var Lo=Ql(function(t,e){return t==null?{}:Do(t,e)});const Or=Lo;var Ia={width:0,height:0,left:0,top:0,right:0},Ao=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:Ne.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const _a=Ce({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Ao(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,n){var a=n.attrs,r=n.slots,l=Tr(),i=l.tabs,o=l.prefixCls,u=Y(),s=Y(),m=Y(),d=Y(),y=Ro(),g=be(y,2),b=g[0],k=g[1],c=K(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),p=Ra(0,function(re,le){c.value&&e.onTabScroll&&e.onTabScroll({direction:re>le?"left":"right"})}),f=be(p,2),h=f[0],x=f[1],S=Ra(0,function(re,le){!c.value&&e.onTabScroll&&e.onTabScroll({direction:re>le?"top":"bottom"})}),w=be(S,2),N=w[0],z=w[1],A=Ge(0),L=be(A,2),R=L[0],B=L[1],I=Ge(0),E=be(I,2),$=E[0],j=E[1],V=Ge(null),U=be(V,2),Z=U[0],de=U[1],W=Ge(null),G=be(W,2),X=G[0],ne=G[1],se=Ge(0),oe=be(se,2),pe=oe[0],we=oe[1],ve=Ge(0),ge=be(ve,2),me=ge[0],Se=ge[1],fe=So(new Map),Re=be(fe,2),Ue=Re[0],ze=Re[1],Be=wo(i,Ue),Fe=K(function(){return"".concat(o.value,"-nav-operations-hidden")}),Ke=Y(0),Oe=Y(0);Ve(function(){c.value?e.rtl?(Ke.value=0,Oe.value=Math.max(0,R.value-Z.value)):(Ke.value=Math.min(0,Z.value-R.value),Oe.value=0):(Ke.value=Math.min(0,X.value-$.value),Oe.value=0)});var Me=function(le){return le<Ke.value?Ke.value:le>Oe.value?Oe.value:le},Ye=Y(),at=Ge(),Ze=be(at,2),Je=Ze[0],We=Ze[1],_e=function(){We(Date.now())},ae=function(){clearTimeout(Ye.value)},F=function(le,ue){le(function(ye){var he=Me(ye+ue);return he})};Oo(u,function(re,le){if(c.value){if(Z.value>=R.value)return!1;F(x,re)}else{if(X.value>=$.value)return!1;F(z,le)}return ae(),_e(),!0}),Le(Je,function(){ae(),Je.value&&(Ye.value=setTimeout(function(){We(0)},100))});var Q=function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,ue=Be.value.get(le)||{width:0,height:0,left:0,right:0,top:0};if(c.value){var ye=h.value;e.rtl?ue.right<h.value?ye=ue.right:ue.right+ue.width>h.value+Z.value&&(ye=ue.right+ue.width-Z.value):ue.left<-h.value?ye=-ue.left:ue.left+ue.width>-h.value+Z.value&&(ye=-(ue.left+ue.width-Z.value)),z(0),x(Me(ye))}else{var he=N.value;ue.top<-N.value?he=-ue.top:ue.top+ue.height>-N.value+X.value&&(he=-(ue.top+ue.height-X.value)),x(0),z(Me(he))}},ce=Y(0),H=Y(0);Ve(function(){var re,le,ue,ye,he,Ee,xe,Ie=Be.value;["top","bottom"].includes(e.tabPosition)?(le="width",he=Z.value,Ee=R.value,xe=pe.value,ue=e.rtl?"right":"left",ye=Math.abs(h.value)):(le="height",he=X.value,Ee=R.value,xe=me.value,ue="top",ye=-N.value);var Pe=he;Ee+xe>he&&Ee<he&&(Pe=he-xe);var De=i.value;if(!De.length){var $e;return $e=[0,0],ce.value=$e[0],H.value=$e[1],$e}for(var Qe=De.length,je=Qe,it=0;it<Qe;it+=1){var rt=Ie.get(De[it].key)||Ia;if(rt[ue]+rt[le]>ye+Pe){je=it-1;break}}for(var lt=0,et=Qe-1;et>=0;et-=1){var Xe=Ie.get(De[et].key)||Ia;if(Xe[ue]<ye){lt=et+1;break}}return re=[lt,je],ce.value=re[0],H.value=re[1],re});var T=function(){var le,ue,ye,he,Ee,xe=((le=u.value)===null||le===void 0?void 0:le.offsetWidth)||0,Ie=((ue=u.value)===null||ue===void 0?void 0:ue.offsetHeight)||0,Pe=((ye=d.value)===null||ye===void 0?void 0:ye.$el)||{},De=Pe.offsetWidth||0,$e=Pe.offsetHeight||0;de(xe),ne(Ie),we(De),Se($e);var Qe=(((he=s.value)===null||he===void 0?void 0:he.offsetWidth)||0)-De,je=(((Ee=s.value)===null||Ee===void 0?void 0:Ee.offsetHeight)||0)-$e;B(Qe),j(je),ze(function(){var it=new Map;return i.value.forEach(function(rt){var lt=rt.key,et=k.value.get(lt),Xe=(et==null?void 0:et.$el)||et;Xe&&it.set(lt,{width:Xe.offsetWidth,height:Xe.offsetHeight,left:Xe.offsetLeft,top:Xe.offsetTop})}),it})},_=K(function(){return[].concat(Te(i.value.slice(0,ce.value)),Te(i.value.slice(H.value+1)))}),D=Ge(),q=be(D,2),te=q[0],ee=q[1],P=K(function(){return Be.value.get(e.activeKey)}),O=Y(),J=function(){mt.cancel(O.value)};Le([P,c,function(){return e.rtl}],function(){var re={};P.value&&(c.value?(e.rtl?re.right=Ft(P.value.right):re.left=Ft(P.value.left),re.width=Ft(P.value.width)):(re.top=Ft(P.value.top),re.height=Ft(P.value.height))),J(),O.value=mt(function(){ee(re)})}),Le([function(){return e.activeKey},P,Be,c],function(){Q()},{flush:"post"}),Le([function(){return e.rtl},function(){return e.tabBarGutter},function(){return e.activeKey},function(){return i.value}],function(){T()},{flush:"post"});var ie=function(le){var ue=le.position,ye=le.prefixCls,he=le.extra;if(!he)return null;var Ee=he==null?void 0:he({position:ue});return Ee?v("div",{class:"".concat(ye,"-extra-content")},[Ee]):null};return wt(function(){ae(),J()}),function(){var re,le=e.id,ue=e.animated,ye=e.activeKey,he=e.rtl,Ee=e.editable,xe=e.locale,Ie=e.tabPosition,Pe=e.tabBarGutter,De=e.onTabClick,$e=a.class,Qe=a.style,je=o.value,it=!!_.value.length,rt="".concat(je,"-nav-wrap"),lt,et,Xe,gt;c.value?he?(et=h.value>0,lt=h.value+Z.value<R.value):(lt=h.value<0,et=-h.value+Z.value<R.value):(Xe=N.value<0,gt=-N.value+X.value<$.value);var He={};Ie==="top"||Ie==="bottom"?He[he?"marginRight":"marginLeft"]=typeof Pe=="number"?"".concat(Pe,"px"):Pe:He.marginTop=typeof Pe=="number"?"".concat(Pe,"px"):Pe;var bt=i.value.map(function(Kt,Ht){var dt=Kt.key;return v(ko,{id:le,prefixCls:je,key:dt,tab:Kt,style:Ht===0?void 0:He,closable:Kt.closable,editable:Ee,active:dt===ye,removeAriaLabel:xe==null?void 0:xe.removeAriaLabel,ref:b(dt),onClick:function(tt){De(dt,tt)},onFocus:function(){Q(dt),_e(),u.value&&(he||(u.value.scrollLeft=0),u.value.scrollTop=0)}},r)});return v("div",{role:"tablist",class:ke("".concat(je,"-nav"),$e),style:Qe,onKeydown:function(){_e()}},[v(ie,{position:"left",prefixCls:je,extra:r.leftExtra},null),v(tn,{onResize:T},{default:function(){return[v("div",{class:ke(rt,(re={},M(re,"".concat(rt,"-ping-left"),lt),M(re,"".concat(rt,"-ping-right"),et),M(re,"".concat(rt,"-ping-top"),Xe),M(re,"".concat(rt,"-ping-bottom"),gt),re)),ref:u},[v(tn,{onResize:T},{default:function(){return[v("div",{ref:s,class:"".concat(je,"-nav-list"),style:{transform:"translate(".concat(h.value,"px, ").concat(N.value,"px)"),transition:Je.value?"none":void 0}},[bt,v(Er,{ref:d,prefixCls:je,locale:xe,editable:Ee,style:C(C({},bt.length===0?void 0:He),{},{visibility:it?"hidden":null})},null),v("div",{class:ke("".concat(je,"-ink-bar"),M({},"".concat(je,"-ink-bar-animated"),ue.inkBar)),style:te.value},null)])]}})])]}}),v(Eo,C(C({},e),{},{removeAriaLabel:xe==null?void 0:xe.removeAriaLabel,ref:m,prefixCls:je,tabs:_.value,class:!it&&Fe.value}),Or(r,["moreIcon"])),v(ie,{position:"right",prefixCls:je,extra:r.rightExtra},null),v(ie,{position:"right",prefixCls:je,extra:r.tabBarExtraContent},null)])}}}),Bo=Ce({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup:function(e){var n=Tr(),a=n.tabs,r=n.prefixCls;return function(){var l=e.id,i=e.activeKey,o=e.animated,u=e.tabPosition,s=e.rtl,m=e.destroyInactiveTabPane,d=o.tabPane,y=r.value,g=a.value.findIndex(function(b){return b.key===i});return v("div",{class:"".concat(y,"-content-holder")},[v("div",{class:["".concat(y,"-content"),"".concat(y,"-content-").concat(u),M({},"".concat(y,"-content-animated"),d)],style:g&&d?M({},s?"marginRight":"marginLeft","-".concat(g,"00%")):null},[a.value.map(function(b){return ml(b.node,{key:b.key,prefixCls:y,tabKey:b.key,id:l,animated:d,active:b.key===i,destroyInactiveTabPane:m})})])])}}});var Mo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Fo=Mo;function Da(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){$o(t,r,n[r])})}return t}function $o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var la=function(e,n){var a=Da({},e,n.attrs);return v(pt,Da({},a,{icon:Fo}),null)};la.displayName="PlusOutlined";la.inheritAttrs=!1;const jo=la;var La=0,Nr=function(){return{prefixCls:{type:String},id:{type:String},activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:{type:String},animated:{type:[Boolean,Object]},renderTabBar:{type:Function},tabBarGutter:{type:Number},tabBarStyle:{type:Object},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean},hideAdd:Boolean,type:{type:String},size:{type:String},centered:Boolean,onEdit:{type:Function},onChange:{type:Function},onTabClick:{type:Function},onTabScroll:{type:Function},"onUpdate:activeKey":{type:Function},locale:{type:Object,default:void 0},onPrevClick:Function,onNextClick:Function,tabBarExtraContent:Ne.any}};function Ho(t){return t.map(function(e){if(Jn(e)){for(var n=C({},e.props||{}),a=0,r=Object.entries(n);a<r.length;a++){var l=be(r[a],2),i=l[0],o=l[1];delete n[i],n[Qn(i)]=o}var u=e.children||{},s=e.key!==void 0?e.key:void 0,m=n.tab,d=m===void 0?u.tab:m,y=n.disabled,g=n.forceRender,b=n.closable,k=n.animated,c=n.active,p=n.destroyInactiveTabPane;return C(C({key:s},n),{},{node:e,closeIcon:u.closeIcon,tab:d,disabled:y===""||y,forceRender:g===""||g,closable:b===""||b,animated:k===""||k,active:c===""||c,destroyInactiveTabPane:p===""||p})}return null}).filter(function(e){return e})}var zo=Ce({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:C(C({},Yt(Nr(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{},{tabs:{type:Array}}),slots:["tabBarExtraContent","leftExtra","rightExtra","moreIcon","addIcon","removeIcon","renderTabBar"],setup:function(e,n){var a=n.attrs,r=n.slots;st(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),st(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),st(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");var l=vt("tabs",e),i=l.prefixCls,o=l.direction,u=l.size,s=l.rootPrefixCls,m=K(function(){return o.value==="rtl"}),d=K(function(){var E=e.animated,$=e.tabPosition;return E===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:E===!0?{inkBar:!0,tabPane:!0}:C({inkBar:!0,tabPane:!1},qe(E)==="object"?E:{})}),y=Ge(!1),g=be(y,2),b=g[0],k=g[1];ct(function(){k(Wl())});var c=En(function(){var E;return(E=e.tabs[0])===null||E===void 0?void 0:E.key},{value:K(function(){return e.activeKey}),defaultValue:e.defaultActiveKey}),p=be(c,2),f=p[0],h=p[1],x=Ge(function(){return e.tabs.findIndex(function(E){return E.key===f.value})}),S=be(x,2),w=S[0],N=S[1];Ve(function(){var E=e.tabs.findIndex(function(j){return j.key===f.value});if(E===-1){var $;E=Math.max(0,Math.min(w.value,e.tabs.length-1)),h(($=e.tabs[E])===null||$===void 0?void 0:$.key)}N(E)});var z=En(null,{value:K(function(){return e.id})}),A=be(z,2),L=A[0],R=A[1],B=K(function(){return b.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition});ct(function(){e.id||(R("rc-tabs-".concat(La)),La+=1)});var I=function($,j){var V;(V=e.onTabClick)===null||V===void 0||V.call(e,$,j);var U=$!==f.value;if(h($),U){var Z;(Z=e.onChange)===null||Z===void 0||Z.call(e,$)}};return Po({tabs:K(function(){return e.tabs}),prefixCls:i}),function(){var E,$=e.id,j=e.type,V=e.tabBarGutter,U=e.tabBarStyle,Z=e.locale,de=e.destroyInactiveTabPane,W=e.renderTabBar,G=W===void 0?r.renderTabBar:W,X=e.onTabScroll,ne=e.hideAdd,se=e.centered,oe={id:L.value,activeKey:f.value,animated:d.value,tabPosition:B.value,rtl:m.value,mobile:b.value},pe;j==="editable-card"&&(pe={onEdit:function(Se,fe){var Re,Ue=fe.key,ze=fe.event;(Re=e.onEdit)===null||Re===void 0||Re.call(e,Se==="add"?ze:Ue,Se)},removeIcon:function(){return v(hl,null,null)},addIcon:r.addIcon?r.addIcon:function(){return v(jo,null,null)},showAdd:ne!==!0});var we,ve=C(C({},oe),{},{moreTransitionName:"".concat(s.value,"-slide-up"),editable:pe,locale:Z,tabBarGutter:V,onTabClick:I,onTabScroll:X,style:U});G?we=G(C(C({},ve),{},{DefaultTabBar:_a})):we=v(_a,ve,Or(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));var ge=i.value;return v("div",C(C({},a),{},{id:$,class:ke(ge,"".concat(ge,"-").concat(B.value),(E={},M(E,"".concat(ge,"-").concat(u.value),u.value),M(E,"".concat(ge,"-card"),["card","editable-card"].includes(j)),M(E,"".concat(ge,"-editable-card"),j==="editable-card"),M(E,"".concat(ge,"-centered"),se),M(E,"".concat(ge,"-mobile"),b.value),M(E,"".concat(ge,"-editable"),j==="editable-card"),M(E,"".concat(ge,"-rtl"),m.value),E),a.class)}),[we,v(Bo,C(C({destroyInactiveTabPane:de},oe),{},{animated:d.value}),null)])}}});const Gt=Ce({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Yt(Nr(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:["tabBarExtraContent","leftExtra","rightExtra","moreIcon","addIcon","removeIcon","renderTabBar"],setup:function(e,n){var a=n.attrs,r=n.slots,l=n.emit,i=function(u){l("update:activeKey",u),l("change",u)};return function(){var o,u=Ho(Mt((o=r.default)===null||o===void 0?void 0:o.call(r)));return v(zo,C(C(C({},nn(e,["onUpdate:activeKey"])),a),{},{onChange:i,tabs:u}),r)}}});var Wo=function(){return{tab:Ne.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}};const On=Ce({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Wo(),slots:["closeIcon","tab"],setup:function(e,n){var a=n.attrs,r=n.slots,l=Y(e.forceRender);Le([function(){return e.active},function(){return e.destroyInactiveTabPane}],function(){e.active?l.value=!0:e.destroyInactiveTabPane&&(l.value=!1)},{immediate:!0});var i=K(function(){return e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}});return function(){var o,u=e.prefixCls,s=e.forceRender,m=e.id,d=e.active,y=e.tabKey;return v("div",{id:m&&"".concat(m,"-panel-").concat(y),role:"tabpanel",tabindex:d?0:-1,"aria-labelledby":m&&"".concat(m,"-tab-").concat(y),"aria-hidden":!d,style:[i.value,a.style],class:["".concat(u,"-tabpane"),d&&"".concat(u,"-tabpane-active"),a.class]},[(d||l.value||s)&&((o=r.default)===null||o===void 0?void 0:o.call(r))])}}});Gt.TabPane=On;Gt.install=function(t){return t.component(Gt.name,Gt),t.component(On.name,On),t};const Qt=ea(ao),Et=ea(ro);var Go=Gt.TabPane,Vo=function(){return{prefixCls:String,title:Ne.any,extra:Ne.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:Ne.any,tabList:{type:Array},tabBarExtraContent:Ne.any,activeTabKey:String,defaultActiveTabKey:String,cover:Ne.any,onTabChange:{type:Function}}},Uo=Ce({compatConfig:{MODE:3},name:"ACard",props:Vo(),slots:["title","extra","tabBarExtraContent","actions","cover","customTab"],setup:function(e,n){var a=n.slots,r=vt("card",e),l=r.prefixCls,i=r.direction,o=r.size,u=function(y){var g=y.map(function(b,k){return zt(b)&&!pl(b)||!zt(b)?v("li",{style:{width:"".concat(100/y.length,"%")},key:"action-".concat(k)},[v("span",null,[b])]):null});return g},s=function(y){var g;(g=e.onTabChange)===null||g===void 0||g.call(e,y)},m=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return y.forEach(function(b){b&&gl(b.type)&&b.type.__ANT_CARD_GRID&&(g=!0)}),g};return function(){var d,y,g,b,k,c,p,f,h=e.headStyle,x=h===void 0?{}:h,S=e.bodyStyle,w=S===void 0?{}:S,N=e.loading,z=e.bordered,A=z===void 0?!0:z,L=e.type,R=e.tabList,B=e.hoverable,I=e.activeTabKey,E=e.defaultActiveTabKey,$=e.tabBarExtraContent,j=$===void 0?Jt((d=a.tabBarExtraContent)===null||d===void 0?void 0:d.call(a)):$,V=e.title,U=V===void 0?Jt((y=a.title)===null||y===void 0?void 0:y.call(a)):V,Z=e.extra,de=Z===void 0?Jt((g=a.extra)===null||g===void 0?void 0:g.call(a)):Z,W=e.actions,G=W===void 0?Jt((b=a.actions)===null||b===void 0?void 0:b.call(a)):W,X=e.cover,ne=X===void 0?Jt((k=a.cover)===null||k===void 0?void 0:k.call(a)):X,se=Mt((c=a.default)===null||c===void 0?void 0:c.call(a)),oe=l.value,pe=(p={},M(p,"".concat(oe),!0),M(p,"".concat(oe,"-loading"),N),M(p,"".concat(oe,"-bordered"),A),M(p,"".concat(oe,"-hoverable"),!!B),M(p,"".concat(oe,"-contain-grid"),m(se)),M(p,"".concat(oe,"-contain-tabs"),R&&R.length),M(p,"".concat(oe,"-").concat(o.value),o.value),M(p,"".concat(oe,"-type-").concat(L),!!L),M(p,"".concat(oe,"-rtl"),i.value==="rtl"),p),we=w.padding===0||w.padding==="0px"?{padding:"24px"}:void 0,ve=v("div",{class:"".concat(oe,"-loading-block")},null),ge=v("div",{class:"".concat(oe,"-loading-content"),style:we},[v(Qt,{gutter:8},{default:function(){return[v(Et,{span:22},{default:function(){return[ve]}})]}}),v(Qt,{gutter:8},{default:function(){return[v(Et,{span:8},{default:function(){return[ve]}}),v(Et,{span:15},{default:function(){return[ve]}})]}}),v(Qt,{gutter:8},{default:function(){return[v(Et,{span:6},{default:function(){return[ve]}}),v(Et,{span:18},{default:function(){return[ve]}})]}}),v(Qt,{gutter:8},{default:function(){return[v(Et,{span:13},{default:function(){return[ve]}}),v(Et,{span:9},{default:function(){return[ve]}})]}}),v(Qt,{gutter:8},{default:function(){return[v(Et,{span:4},{default:function(){return[ve]}}),v(Et,{span:3},{default:function(){return[ve]}}),v(Et,{span:16},{default:function(){return[ve]}})]}})]),me=I!==void 0,Se=(f={size:"large"},M(f,me?"activeKey":"defaultActiveKey",me?I:E),M(f,"onChange",s),M(f,"class","".concat(oe,"-head-tabs")),f),fe,Re=R&&R.length?v(Gt,Se,{default:function(){return[R.map(function(Ke){var Oe=Ke.tab,Me=Ke.slots,Ye=Me==null?void 0:Me.tab;st(!Me,"Card","tabList slots is deprecated, Please use `customTab` instead.");var at=Oe!==void 0?Oe:a[Ye]?a[Ye](Ke):null;return at=ta(a,"customTab",Ke,function(){return[at]}),v(Go,{tab:at,key:Ke.key,disabled:Ke.disabled},null)})]},rightExtra:j?function(){return j}:null}):null;(U||de||Re)&&(fe=v("div",{class:"".concat(oe,"-head"),style:x},[v("div",{class:"".concat(oe,"-head-wrapper")},[U&&v("div",{class:"".concat(oe,"-head-title")},[U]),de&&v("div",{class:"".concat(oe,"-extra")},[de])]),Re]));var Ue=ne?v("div",{class:"".concat(oe,"-cover")},[ne]):null,ze=v("div",{class:"".concat(oe,"-body"),style:w},[N?ge:se]),Be=G&&G.length?v("ul",{class:"".concat(oe,"-actions")},[u(G)]):null;return v("div",{class:pe,ref:"cardContainerRef"},[fe,Ue,se&&se.length?ze:null,Be])}}});const ed=Uo;var Rr=Symbol("TreeContextKey"),Xo=Ce({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,n){var a=n.slots;return ht(Rr,K(function(){return e.value})),function(){var r;return(r=a.default)===null||r===void 0?void 0:r.call(a)}}}),oa=function(){return ft(Rr,K(function(){return{}}))},Ir=Symbol("KeysStateKey"),qo=function(e){ht(Ir,e)},_r=function(){return ft(Ir,{expandedKeys:Ae([]),selectedKeys:Ae([]),loadedKeys:Ae([]),loadingKeys:Ae([]),checkedKeys:Ae([]),halfCheckedKeys:Ae([]),expandedKeysSet:K(function(){return new Set}),selectedKeysSet:K(function(){return new Set}),loadedKeysSet:K(function(){return new Set}),loadingKeysSet:K(function(){return new Set}),checkedKeysSet:K(function(){return new Set}),halfCheckedKeysSet:K(function(){return new Set}),flattenNodes:Ae([])})},Yo=function(e){for(var n=e.prefixCls,a=e.level,r=e.isStart,l=e.isEnd,i="".concat(n,"-indent-unit"),o=[],u=0;u<a;u+=1){var s;o.push(v("span",{key:u,class:(s={},M(s,i,!0),M(s,"".concat(i,"-start"),r[u]),M(s,"".concat(i,"-end"),l[u]),s)},null))}return v("span",{"aria-hidden":"true",class:"".concat(n,"-indent")},[o])};const Zo=Yo;var Dr={eventKey:[String,Number],prefixCls:String,title:Ne.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:Ne.any,switcherIcon:Ne.any,domRef:{type:Function}},Jo={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},Lr=function(){return{prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Ne.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Ne.any,selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Ne.any,switcherIcon:Ne.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String}}},Qo=["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"],Aa="open",Ba="close",ei="---";const Nn=Ce({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:Dr,isTreeNode:1,slots:["title","icon","switcherIcon"],setup:function(e,n){var a=n.attrs,r=n.slots,l=n.expose;gr(!("slots"in e.data),"treeData slots is deprecated, please use ".concat(Object.keys(e.data.slots||{}).map(function(ae){return"`v-slot:"+ae+"` "}),"instead"));var i=Y(!1),o=oa(),u=_r(),s=u.expandedKeysSet,m=u.selectedKeysSet,d=u.loadedKeysSet,y=u.loadingKeysSet,g=u.checkedKeysSet,b=u.halfCheckedKeysSet,k=o.value,c=k.dragOverNodeKey,p=k.dropPosition,f=k.keyEntities,h=K(function(){return _n(e.eventKey,{expandedKeysSet:s.value,selectedKeysSet:m.value,loadedKeysSet:d.value,loadingKeysSet:y.value,checkedKeysSet:g.value,halfCheckedKeysSet:b.value,dragOverNodeKey:c,dropPosition:p,keyEntities:f})}),x=St(function(){return h.value.expanded}),S=St(function(){return h.value.selected}),w=St(function(){return h.value.checked}),N=St(function(){return h.value.loaded}),z=St(function(){return h.value.loading}),A=St(function(){return h.value.halfChecked}),L=St(function(){return h.value.dragOver}),R=St(function(){return h.value.dragOverGapTop}),B=St(function(){return h.value.dragOverGapBottom}),I=St(function(){return h.value.pos}),E=Y(),$=K(function(){var ae=e.eventKey,F=o.value.keyEntities,Q=F[ae]||{},ce=Q.children;return!!(ce||[]).length}),j=K(function(){var ae=e.isLeaf,F=o.value.loadData,Q=$.value;return ae===!1?!1:ae||!F&&!Q||F&&N.value&&!Q}),V=K(function(){return j.value?null:x.value?Aa:Ba}),U=K(function(){var ae=e.disabled,F=o.value.disabled;return!!(F||ae)}),Z=K(function(){var ae=e.checkable,F=o.value.checkable;return!F||ae===!1?!1:F}),de=K(function(){var ae=e.selectable,F=o.value.selectable;return typeof ae=="boolean"?ae:F}),W=K(function(){var ae=e.data,F=e.active,Q=e.checkable,ce=e.disableCheckbox,H=e.disabled,T=e.selectable;return C(C({active:F,checkable:Q,disableCheckbox:ce,disabled:H,selectable:T},ae),{},{dataRef:ae,data:ae,isLeaf:j.value,checked:w.value,expanded:x.value,loading:z.value,selected:S.value,halfChecked:A.value})}),G=br(),X=K(function(){var ae=e.eventKey,F=o.value.keyEntities,Q=F[ae]||{},ce=Q.parent;return C(C({},Dn(kt({},e,h.value))),{},{parent:ce})}),ne=Dt({eventData:X,eventKey:K(function(){return e.eventKey}),selectHandle:E,pos:I,key:G.vnode.key});l(ne);var se=function(F){var Q=o.value.onNodeDoubleClick;Q(F,X.value)},oe=function(F){if(!U.value){var Q=o.value.onNodeSelect;F.preventDefault(),Q(F,X.value)}},pe=function(F){if(!U.value){var Q=e.disableCheckbox,ce=o.value.onNodeCheck;if(!(!Z.value||Q)){F.preventDefault();var H=!w.value;ce(F,X.value,H)}}},we=function(F){var Q=o.value.onNodeClick;Q(F,X.value),de.value?oe(F):pe(F)},ve=function(F){var Q=o.value.onNodeMouseEnter;Q(F,X.value)},ge=function(F){var Q=o.value.onNodeMouseLeave;Q(F,X.value)},me=function(F){var Q=o.value.onNodeContextMenu;Q(F,X.value)},Se=function(F){var Q=o.value.onNodeDragStart;F.stopPropagation(),i.value=!0,Q(F,ne);try{F.dataTransfer.setData("text/plain","")}catch{}},fe=function(F){var Q=o.value.onNodeDragEnter;F.preventDefault(),F.stopPropagation(),Q(F,ne)},Re=function(F){var Q=o.value.onNodeDragOver;F.preventDefault(),F.stopPropagation(),Q(F,ne)},Ue=function(F){var Q=o.value.onNodeDragLeave;F.stopPropagation(),Q(F,ne)},ze=function(F){var Q=o.value.onNodeDragEnd;F.stopPropagation(),i.value=!1,Q(F,ne)},Be=function(F){var Q=o.value.onNodeDrop;F.preventDefault(),F.stopPropagation(),i.value=!1,Q(F,ne)},Fe=function(F){var Q=o.value.onNodeExpand;z.value||Q(F,X.value)},Ke=function(){var F=e.data,Q=o.value.draggable;return!!(Q&&(!Q.nodeDraggable||Q.nodeDraggable(F)))},Oe=function(){var F=o.value,Q=F.draggable,ce=F.prefixCls;return Q&&Q!==null&&Q!==void 0&&Q.icon?v("span",{class:"".concat(ce,"-draggable-icon")},[Q.icon]):null},Me=function(){var F,Q,ce,H=e.switcherIcon,T=H===void 0?r.switcherIcon||((F=o.value.slots)===null||F===void 0?void 0:F[(Q=e.data)===null||Q===void 0||(ce=Q.slots)===null||ce===void 0?void 0:ce.switcherIcon]):H,_=o.value.switcherIcon,D=T||_;return typeof D=="function"?D(W.value):D},Ye=function(){var F=o.value,Q=F.loadData,ce=F.onNodeLoad;z.value||Q&&x.value&&!j.value&&!$.value&&!N.value&&ce(X.value)};ct(function(){Ye()}),na(function(){Ye()});var at=function(){var F=o.value.prefixCls,Q=Me();if(j.value)return Q!==!1?v("span",{class:ke("".concat(F,"-switcher"),"".concat(F,"-switcher-noop"))},[Q]):null;var ce=ke("".concat(F,"-switcher"),"".concat(F,"-switcher_").concat(x.value?Aa:Ba));return Q!==!1?v("span",{onClick:Fe,class:ce},[Q]):null},Ze=function(){var F,Q,ce=e.disableCheckbox,H=o.value.prefixCls,T=U.value,_=Z.value;return _?v("span",{class:ke("".concat(H,"-checkbox"),w.value&&"".concat(H,"-checkbox-checked"),!w.value&&A.value&&"".concat(H,"-checkbox-indeterminate"),(T||ce)&&"".concat(H,"-checkbox-disabled")),onClick:pe},[(F=(Q=o.value).customCheckable)===null||F===void 0?void 0:F.call(Q)]):null},Je=function(){var F=o.value.prefixCls;return v("span",{class:ke("".concat(F,"-iconEle"),"".concat(F,"-icon__").concat(V.value||"docu"),z.value&&"".concat(F,"-icon_loading"))},null)},We=function(){var F=e.disabled,Q=e.eventKey,ce=o.value,H=ce.draggable,T=ce.dropLevelOffset,_=ce.dropPosition,D=ce.prefixCls,q=ce.indent,te=ce.dropIndicatorRender,ee=ce.dragOverNodeKey,P=ce.direction,O=H!==!1,J=!F&&O&&ee===Q;return J?te({dropPosition:_,dropLevelOffset:T,indent:q,prefixCls:D,direction:P}):null},_e=function(){var F,Q,ce,H,T=e.icon,_=T===void 0?r.icon:T,D=e.data,q=r.title||((F=o.value.slots)===null||F===void 0?void 0:F[(Q=e.data)===null||Q===void 0||(ce=Q.slots)===null||ce===void 0?void 0:ce.title])||((H=o.value.slots)===null||H===void 0?void 0:H.title)||e.title,te=o.value,ee=te.prefixCls,P=te.showIcon,O=te.icon,J=te.loadData,ie=U.value,re="".concat(ee,"-node-content-wrapper"),le;if(P){var ue,ye,he=_||((ue=o.value.slots)===null||ue===void 0?void 0:ue[D==null||(ye=D.slots)===null||ye===void 0?void 0:ye.icon])||O;le=he?v("span",{class:ke("".concat(ee,"-iconEle"),"".concat(ee,"-icon__customize"))},[typeof he=="function"?he(W.value):he]):Je()}else J&&z.value&&(le=Je());var Ee;typeof q=="function"?Ee=q(W.value):Ee=q,Ee=Ee===void 0?ei:Ee;var xe=v("span",{class:"".concat(ee,"-title")},[Ee]);return v("span",{ref:E,title:typeof q=="string"?q:"",class:ke("".concat(re),"".concat(re,"-").concat(V.value||"normal"),!ie&&(S.value||i.value)&&"".concat(ee,"-node-selected")),onMouseenter:ve,onMouseleave:ge,onContextmenu:me,onClick:we,onDblclick:se},[le,xe,We()])};return function(){var ae,F=C(C({},e),a),Q=F.eventKey,ce=F.isLeaf,H=F.isStart,T=F.isEnd,_=F.domRef,D=F.active;F.data;var q=F.onMousemove,te=F.selectable,ee=ut(F,Qo),P=o.value,O=P.prefixCls,J=P.filterTreeNode,ie=P.keyEntities,re=P.dropContainerKey,le=P.dropTargetKey,ue=P.draggingNodeKey,ye=U.value,he=aa(ee,{aria:!0,data:!0}),Ee=ie[Q]||{},xe=Ee.level,Ie=T[T.length-1],Pe=Ke(),De=!ye&&Pe,$e=ue===Q,Qe=te!==void 0?{"aria-selected":!!te}:void 0;return v("div",C(C({ref:_,class:ke(a.class,"".concat(O,"-treenode"),(ae={},M(ae,"".concat(O,"-treenode-disabled"),ye),M(ae,"".concat(O,"-treenode-switcher-").concat(x.value?"open":"close"),!ce),M(ae,"".concat(O,"-treenode-checkbox-checked"),w.value),M(ae,"".concat(O,"-treenode-checkbox-indeterminate"),A.value),M(ae,"".concat(O,"-treenode-selected"),S.value),M(ae,"".concat(O,"-treenode-loading"),z.value),M(ae,"".concat(O,"-treenode-active"),D),M(ae,"".concat(O,"-treenode-leaf-last"),Ie),M(ae,"".concat(O,"-treenode-draggable"),De),M(ae,"dragging",$e),M(ae,"drop-target",le===Q),M(ae,"drop-container",re===Q),M(ae,"drag-over",!ye&&L.value),M(ae,"drag-over-gap-top",!ye&&R.value),M(ae,"drag-over-gap-bottom",!ye&&B.value),M(ae,"filter-node",J&&J(X.value)),ae)),style:a.style,draggable:De,"aria-grabbed":$e,onDragstart:De?Se:void 0,onDragenter:Pe?fe:void 0,onDragover:Pe?Re:void 0,onDragleave:Pe?Ue:void 0,onDrop:Pe?Be:void 0,onDragend:Pe?ze:void 0,onMousemove:q},Qe),he),[v(Zo,{prefixCls:O,level:xe,isStart:H,isEnd:T},null),Oe(),at(),Ze(),_e()])}}});function Tt(t,e){if(!t)return[];var n=t.slice(),a=n.indexOf(e);return a>=0&&n.splice(a,1),n}function It(t,e){var n=(t||[]).slice();return n.indexOf(e)===-1&&n.push(e),n}function ia(t){return t.split("-")}function Ar(t,e){return"".concat(t,"-").concat(e)}function ti(t){return t&&t.type&&t.type.isTreeNode}function ni(t,e){var n=[],a=e[t];function r(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(i){var o=i.key,u=i.children;n.push(o),r(u)})}return r(a.children),n}function ai(t){if(t.parent){var e=ia(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function ri(t){var e=ia(t.pos);return Number(e[e.length-1])===0}function Ma(t,e,n,a,r,l,i,o,u,s){var m,d=t.clientX,y=t.clientY,g=t.target.getBoundingClientRect(),b=g.top,k=g.height,c=(s==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-d),p=(c-12)/a,f=o[n.eventKey];if(y<b+k/2){var h=i.findIndex(function($){return $.key===f.key}),x=h<=0?0:h-1,S=i[x].key;f=o[S]}var w=f.key,N=f,z=f.key,A=0,L=0;if(!u.has(w))for(var R=0;R<p&&ai(f);R+=1)f=f.parent,L+=1;var B=e.eventData,I=f.node,E=!0;return ri(f)&&f.level===0&&y<b+k/2&&l({dragNode:B,dropNode:I,dropPosition:-1})&&f.key===n.eventKey?A=-1:(N.children||[]).length&&u.has(z)?l({dragNode:B,dropNode:I,dropPosition:0})?A=0:E=!1:L===0?p>-1.5?l({dragNode:B,dropNode:I,dropPosition:1})?A=1:E=!1:l({dragNode:B,dropNode:I,dropPosition:0})?A=0:l({dragNode:B,dropNode:I,dropPosition:1})?A=1:E=!1:l({dragNode:B,dropNode:I,dropPosition:1})?A=1:E=!1,{dropPosition:A,dropLevelOffset:L,dropTargetKey:f.key,dropTargetPos:f.pos,dragOverNodeKey:z,dropContainerKey:A===0?null:((m=f.parent)===null||m===void 0?void 0:m.key)||null,dropAllowed:E}}function Fa(t,e){if(t){var n=e.multiple;return n?t.slice():t.length?[t[0]]:t}}function pn(t){if(!t)return null;var e;if(Array.isArray(t))e={checkedKeys:t,halfCheckedKeys:void 0};else if(qe(t)==="object")e={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0};else return null;return e}function Rn(t,e){var n=new Set;function a(r){if(!n.has(r)){var l=e[r];if(l){n.add(r);var i=l.parent,o=l.node;o.disabled||i&&a(i.key)}}}return(t||[]).forEach(function(r){a(r)}),Te(n)}var li=["title","icon","switcherIcon"];function an(t,e){return t??e}function dn(t){var e=t||{},n=e.title,a=e._title,r=e.key,l=e.children,i=n||"title";return{title:i,_title:a||[i],key:r||"key",children:l||"children"}}function In(t){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=Xt(n);return a.map(function(r){var l,i,o,u;if(!ti(r))return null;for(var s=r.children||{},m=r.key,d={},y=0,g=Object.entries(r.props);y<g.length;y++){var b=be(g[y],2),k=b[0],c=b[1];d[Qn(k)]=c}var p=d.isLeaf,f=d.checkable,h=d.selectable,x=d.disabled,S=d.disableCheckbox,w={isLeaf:p||p===""||void 0,checkable:f||f===""||void 0,selectable:h||h===""||void 0,disabled:x||x===""||void 0,disableCheckbox:S||S===""||void 0},N=C(C({},d),w),z=d.title,A=z===void 0?(l=s.title)===null||l===void 0?void 0:l.call(s,N):z,L=d.icon,R=L===void 0?(i=s.icon)===null||i===void 0?void 0:i.call(s,N):L,B=d.switcherIcon,I=B===void 0?(o=s.switcherIcon)===null||o===void 0?void 0:o.call(s,N):B,E=ut(d,li),$=(u=s.default)===null||u===void 0?void 0:u.call(s),j=C(C({},E),{},{title:A,icon:R,switcherIcon:I,key:m,isLeaf:p},w),V=e($);return V.length&&(j.children=V),j})}return e(t)}function oi(t,e,n){var a=dn(n),r=a._title,l=a.key,i=a.children,o=new Set(e===!0?[]:e),u=[];function s(m){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function(y,g){for(var b=Ar(d?d.pos:"0",g),k=an(y[l],b),c,p=0;p<r.length;p+=1){var f=r[p];if(y[f]!==void 0){c=y[f];break}}var h=C(C({},nn(y,[].concat(Te(r),[l,i]))),{},{title:c,key:k,parent:d,pos:b,children:null,data:y,isStart:[].concat(Te(d?d.isStart:[]),[g===0]),isEnd:[].concat(Te(d?d.isEnd:[]),[g===m.length-1])});return u.push(h),e===!0||o.has(k)?h.children=s(y[i]||[],h):h.children=[],h})}return s(t),u}function ii(t,e,n){var a={};qe(n)==="object"?a=n:a={externalGetKey:n},a=a||{};var r=a,l=r.childrenPropName,i=r.externalGetKey,o=r.fieldNames,u=dn(o),s=u.key,m=u.children,d=l||m,y;i?typeof i=="string"?y=function(k){return k[i]}:typeof i=="function"&&(y=function(k){return i(k)}):y=function(k,c){return an(k[s],c)};function g(b,k,c,p){var f=b?b[d]:t,h=b?Ar(c.pos,k):"0",x=b?[].concat(Te(p),[b]):[];if(b){var S=y(b,h),w={node:b,index:k,pos:h,key:S,parentPos:c.node?c.pos:null,level:c.level+1,nodes:x};e(w)}f&&f.forEach(function(N,z){g(N,z,{node:b,pos:h,level:c?c.level+1:-1},x)})}g(null)}function ua(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.initWrapper,a=e.processEntity,r=e.onProcessFinished,l=e.externalGetKey,i=e.childrenPropName,o=e.fieldNames,u=arguments.length>2?arguments[2]:void 0,s=l||u,m={},d={},y={posEntities:m,keyEntities:d};return n&&(y=n(y)||y),ii(t,function(g){var b=g.node,k=g.index,c=g.pos,p=g.key,f=g.parentPos,h=g.level,x=g.nodes,S={node:b,nodes:x,index:k,key:p,pos:c,level:h},w=an(p,c);m[c]=S,d[w]=S,S.parent=m[f],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),a&&a(S,y)},{externalGetKey:s,childrenPropName:i,fieldNames:o}),r&&r(y),y}function _n(t,e){var n=e.expandedKeysSet,a=e.selectedKeysSet,r=e.loadedKeysSet,l=e.loadingKeysSet,i=e.checkedKeysSet,o=e.halfCheckedKeysSet,u=e.dragOverNodeKey,s=e.dropPosition,m=e.keyEntities,d=m[t],y={eventKey:t,expanded:n.has(t),selected:a.has(t),loaded:r.has(t),loading:l.has(t),checked:i.has(t),halfChecked:o.has(t),pos:String(d?d.pos:""),parent:d.parent,dragOver:u===t&&s===0,dragOverGapTop:u===t&&s===-1,dragOverGapBottom:u===t&&s===1};return y}function Dn(t){var e=t.data,n=t.expanded,a=t.selected,r=t.checked,l=t.loaded,i=t.loading,o=t.halfChecked,u=t.dragOver,s=t.dragOverGapTop,m=t.dragOverGapBottom,d=t.pos,y=t.active,g=t.eventKey,b=C(C({dataRef:e},e),{},{expanded:n,selected:a,checked:r,loaded:l,loading:i,halfChecked:o,dragOver:u,dragOverGapTop:s,dragOverGapBottom:m,pos:d,active:y,eventKey:g,key:g});return"props"in b||Object.defineProperty(b,"props",{get:function(){return t}}),b}function Br(t,e){var n=new Set;return t.forEach(function(a){e.has(a)||n.add(a)}),n}function ui(t){var e=t||{},n=e.disabled,a=e.disableCheckbox,r=e.checkable;return!!(n||a)||r===!1}function ci(t,e,n,a){for(var r=new Set(t),l=new Set,i=0;i<=n;i+=1){var o=e.get(i)||new Set;o.forEach(function(d){var y=d.key,g=d.node,b=d.children,k=b===void 0?[]:b;r.has(y)&&!a(g)&&k.filter(function(c){return!a(c.node)}).forEach(function(c){r.add(c.key)})})}for(var u=new Set,s=n;s>=0;s-=1){var m=e.get(s)||new Set;m.forEach(function(d){var y=d.parent,g=d.node;if(!(a(g)||!d.parent||u.has(d.parent.key))){if(a(d.parent.node)){u.add(y.key);return}var b=!0,k=!1;(y.children||[]).filter(function(c){return!a(c.node)}).forEach(function(c){var p=c.key,f=r.has(p);b&&!f&&(b=!1),!k&&(f||l.has(p))&&(k=!0)}),b&&r.add(y.key),k&&l.add(y.key),u.add(y.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(Br(l,r))}}function di(t,e,n,a,r){for(var l=new Set(t),i=new Set(e),o=0;o<=a;o+=1){var u=n.get(o)||new Set;u.forEach(function(y){var g=y.key,b=y.node,k=y.children,c=k===void 0?[]:k;!l.has(g)&&!i.has(g)&&!r(b)&&c.filter(function(p){return!r(p.node)}).forEach(function(p){l.delete(p.key)})})}i=new Set;for(var s=new Set,m=a;m>=0;m-=1){var d=n.get(m)||new Set;d.forEach(function(y){var g=y.parent,b=y.node;if(!(r(b)||!y.parent||s.has(y.parent.key))){if(r(y.parent.node)){s.add(g.key);return}var k=!0,c=!1;(g.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var f=p.key,h=l.has(f);k&&!h&&(k=!1),!c&&(h||i.has(f))&&(c=!0)}),k||l.delete(g.key),c&&i.add(g.key),s.add(g.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(Br(i,l))}}function Vt(t,e,n,a,r,l){var i;l?i=l:i=ui;var o=new Set(t.filter(function(s){var m=!!n[s];return m})),u;return e===!0?u=ci(o,r,a,i):u=di(o,e.halfCheckedKeys,r,a,i),u}function Mr(t){var e=Y(0),n=Ae();return Ve(function(){var a=new Map,r=0,l=t.value||{};for(var i in l)if(Object.prototype.hasOwnProperty.call(l,i)){var o=l[i],u=o.level,s=a.get(u);s||(s=new Set,a.set(u,s)),s.add(o),r=Math.max(r,u)}e.value=r,n.value=a}),{maxLevel:e,levelEntities:n}}var si=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},vi=function(){return C(C({},si()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},fi=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Ne.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},yi=function(){return C(C({},fi()),{},{indeterminate:{type:Boolean,default:!1}})},Fr=Symbol("CheckboxGroupContext"),mi=["indeterminate","skipGroup","id"],hi=["onMouseenter","onMouseleave","onInput","class","style"];const Rt=Ce({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:yi(),setup:function(e,n){var a=n.emit,r=n.attrs,l=n.slots,i=n.expose,o=xr(),u=vt("checkbox",e),s=u.prefixCls,m=u.direction,d=ft(Fr,void 0),y=Symbol("checkboxUniId");Ve(function(){!e.skipGroup&&d&&d.registerValue(y,e.value)}),wt(function(){d&&d.cancelValue(y)}),ct(function(){hr(e.checked!==void 0||d||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var g=function(f){var h=f.target.checked;a("update:checked",h),a("change",f)},b=Y(),k=function(){var f;(f=b.value)===null||f===void 0||f.focus()},c=function(){var f;(f=b.value)===null||f===void 0||f.blur()};return i({focus:k,blur:c}),function(){var p,f,h=Mt((p=l.default)===null||p===void 0?void 0:p.call(l)),x=e.indeterminate,S=e.skipGroup,w=e.id,N=w===void 0?o.id.value:w,z=ut(e,mi),A=r.onMouseenter,L=r.onMouseleave;r.onInput;var R=r.class,B=r.style,I=ut(r,hi),E=C(C({},z),{},{id:N,prefixCls:s.value},I);d&&!S?(E.onChange=function(){for(var V=arguments.length,U=new Array(V),Z=0;Z<V;Z++)U[Z]=arguments[Z];a.apply(void 0,["change"].concat(U)),d.toggleOption({label:h,value:e.value})},E.name=d.name.value,E.checked=d.mergedValue.value.indexOf(e.value)!==-1,E.disabled=e.disabled||d.disabled.value,E.indeterminate=x):E.onChange=g;var $=ke((f={},M(f,"".concat(s.value,"-wrapper"),!0),M(f,"".concat(s.value,"-rtl"),m.value==="rtl"),M(f,"".concat(s.value,"-wrapper-checked"),E.checked),M(f,"".concat(s.value,"-wrapper-disabled"),E.disabled),f),R),j=ke(M({},"".concat(s.value,"-indeterminate"),x));return v("label",{class:$,style:B,onMouseenter:A,onMouseleave:L},[v(eo,C(C({},E),{},{class:j,ref:b}),null),h.length?v("span",null,[h]):null])}}}),Ln=Ce({compatConfig:{MODE:3},name:"ACheckboxGroup",props:vi(),setup:function(e,n){var a=n.slots,r=n.emit,l=n.expose,i=xr(),o=vt("checkbox",e),u=o.prefixCls,s=o.direction,m=Y((e.value===void 0?e.defaultValue:e.value)||[]);Le(function(){return e.value},function(){m.value=e.value||[]});var d=K(function(){return e.options.map(function(f){return typeof f=="string"||typeof f=="number"?{label:f,value:f}:f})}),y=Y(Symbol()),g=Y(new Map),b=function(h){g.value.delete(h),y.value=Symbol()},k=function(h,x){g.value.set(h,x),y.value=Symbol()},c=Y(new Map);Le(y,function(){var f=new Map,h=bo(g.value.values()),x;try{for(h.s();!(x=h.n()).done;){var S=x.value;f.set(S,!0)}}catch(w){h.e(w)}finally{h.f()}c.value=f});var p=function(h){var x=m.value.indexOf(h.value),S=Te(m.value);x===-1?S.push(h.value):S.splice(x,1),e.value===void 0&&(m.value=S);var w=S.filter(function(N){return c.value.has(N)}).sort(function(N,z){var A=d.value.findIndex(function(R){return R.value===N}),L=d.value.findIndex(function(R){return R.value===z});return A-L});r("update:value",w),r("change",w),i.onFieldChange()};return ht(Fr,{cancelValue:b,registerValue:k,toggleOption:p,mergedValue:m,name:K(function(){return e.name}),disabled:K(function(){return e.disabled})}),l({mergedValue:m}),function(){var f,h=e.id,x=h===void 0?i.id.value:h,S=null,w="".concat(u.value,"-group");return d.value&&d.value.length>0&&(S=d.value.map(function(N){var z;return v(Rt,{prefixCls:u.value,key:N.value.toString(),disabled:"disabled"in N?N.disabled:e.disabled,indeterminate:N.indeterminate,value:N.value,checked:m.value.indexOf(N.value)!==-1,onChange:N.onChange,class:"".concat(w,"-item")},{default:function(){return[N.label===void 0?(z=a.label)===null||z===void 0?void 0:z.call(a,N):N.label]}})})),v("div",{class:[w,M({},"".concat(w,"-rtl"),s.value==="rtl")],id:x},[S||((f=a.default)===null||f===void 0?void 0:f.call(a))])}}});Rt.Group=Ln;Rt.install=function(t){return t.component(Rt.name,Rt),t.component(Ln.name,Ln),t};function $a(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var pi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const gi=pi;function ja(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){bi(t,r,n[r])})}return t}function bi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ca=function(e,n){var a=ja({},e,n.attrs);return v(pt,ja({},a,{icon:gi}),null)};ca.displayName="ArrowLeftOutlined";ca.inheritAttrs=!1;const xi=ca;var Ci={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const Si=Ci;function Ha(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){ki(t,r,n[r])})}return t}function ki(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var da=function(e,n){var a=Ha({},e,n.attrs);return v(pt,Ha({},a,{icon:Si}),null)};da.displayName="ArrowRightOutlined";da.inheritAttrs=!1;const wi=da;var Ki=["noStyle","disabled"],Ei={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Pi=Ce({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup:function(e,n){var a=n.slots,r=n.emit,l=n.attrs,i=n.expose,o=Y(),u=function(b){var k=b.keyCode;k===nt.ENTER&&b.preventDefault()},s=function(b){var k=b.keyCode;k===nt.ENTER&&r("click",b)},m=function(b){r("click",b)},d=function(){o.value&&o.value.focus()},y=function(){o.value&&o.value.blur()};return ct(function(){e.autofocus&&d()}),i({focus:d,blur:y}),function(){var g,b=e.noStyle,k=e.disabled,c=ut(e,Ki),p={};return b||(p=C({},Ei)),k&&(p.pointerEvents="none"),v("div",C(C(C({role:"button",tabindex:0,ref:o},c),l),{},{onClick:m,onKeydown:u,onKeyup:s,style:C(C({},p),l.style||{})}),[(g=a.default)===null||g===void 0?void 0:g.call(a)])}}});const Ti=Pi;var Oi=function(){return{backIcon:Ne.any,prefixCls:String,title:Ne.any,subTitle:Ne.any,breadcrumb:Ne.object,tags:Ne.any,footer:Ne.any,extra:Ne.any,avatar:Ne.object,ghost:{type:Boolean,default:void 0},onBack:Function}},Ni=Ce({compatConfig:{MODE:3},name:"APageHeader",props:Oi(),slots:["backIcon","avatar","breadcrumb","title","subTitle","tags","extra","footer"],setup:function(e,n){var a=n.emit,r=n.slots,l=vt("page-header",e),i=l.prefixCls,o=l.direction,u=l.pageHeader,s=Y(!1),m=bl(),d=function(x){var S=x.width;m.value||(s.value=S<768)},y=K(function(){var h,x,S;return(h=(x=e.ghost)!==null&&x!==void 0?x:(S=u.value)===null||S===void 0?void 0:S.ghost)!==null&&h!==void 0?h:!0}),g=function(){var x,S,w;return(x=(S=e.backIcon)!==null&&S!==void 0?S:(w=r.backIcon)===null||w===void 0?void 0:w.call(r))!==null&&x!==void 0?x:o.value==="rtl"?v(wi,null,null):v(xi,null,null)},b=function(x){return!x||!e.onBack?null:v(Cl,{componentName:"PageHeader",children:function(w){var N=w.back;return v("div",{class:"".concat(i.value,"-back")},[v(Ti,{onClick:function(A){a("back",A)},class:"".concat(i.value,"-back-button"),"aria-label":N},{default:function(){return[x]}})])}},null)},k=function(){var x;return e.breadcrumb?v(Wt,e.breadcrumb,null):(x=r.breadcrumb)===null||x===void 0?void 0:x.call(r)},c=function(){var x,S,w,N,z,A,L,R,B,I=e.avatar,E=(x=e.title)!==null&&x!==void 0?x:(S=r.title)===null||S===void 0?void 0:S.call(r),$=(w=e.subTitle)!==null&&w!==void 0?w:(N=r.subTitle)===null||N===void 0?void 0:N.call(r),j=(z=e.tags)!==null&&z!==void 0?z:(A=r.tags)===null||A===void 0?void 0:A.call(r),V=(L=e.extra)!==null&&L!==void 0?L:(R=r.extra)===null||R===void 0?void 0:R.call(r),U="".concat(i.value,"-heading"),Z=E||$||j||V;if(!Z)return null;var de=g(),W=b(de),G=W||I||Z;return v("div",{class:U},[G&&v("div",{class:"".concat(U,"-left")},[W,I?v(Hl,I,null):(B=r.avatar)===null||B===void 0?void 0:B.call(r),E&&v("span",{class:"".concat(U,"-title"),title:typeof E=="string"?E:void 0},[E]),$&&v("span",{class:"".concat(U,"-sub-title"),title:typeof $=="string"?$:void 0},[$]),j&&v("span",{class:"".concat(U,"-tags")},[j])]),V&&v("span",{class:"".concat(U,"-extra")},[V])])},p=function(){var x,S,w=(x=e.footer)!==null&&x!==void 0?x:Xt((S=r.footer)===null||S===void 0?void 0:S.call(r));return xl(w)?null:v("div",{class:"".concat(i.value,"-footer")},[w])},f=function(x){return v("div",{class:"".concat(i.value,"-content")},[x])};return function(){var h,x,S,w=((h=e.breadcrumb)===null||h===void 0?void 0:h.routes)||r.breadcrumb,N=e.footer||r.footer,z=Mt((x=r.default)===null||x===void 0?void 0:x.call(r)),A=ke(i.value,(S={"has-breadcrumb":w,"has-footer":N},M(S,"".concat(i.value,"-ghost"),y.value),M(S,"".concat(i.value,"-rtl"),o.value==="rtl"),M(S,"".concat(i.value,"-compact"),s.value),S));return v(tn,{onResize:d},{default:function(){return[v("div",{class:A},[k(),c(),z.length?f(z):null,p()])]}})}}});const td=ea(Ni);var $r=Symbol("TableContextProps"),Ri=function(e){ht($r,e)},Pt=function(){return ft($r,{})},Ii="RC_TABLE_KEY";function jr(t){return t==null?[]:Array.isArray(t)?t:[t]}function Hr(t,e){if(!e&&typeof e!="number")return t;for(var n=jr(e),a=t,r=0;r<n.length;r+=1){if(!a)return null;var l=n[r];a=a[l]}return a}function sn(t){var e=[],n={};return t.forEach(function(a){for(var r=a||{},l=r.key,i=r.dataIndex,o=l||jr(i).join("-")||Ii;n[o];)o="".concat(o,"_next");n[o]=!0,e.push(o)}),e}function _i(){var t={};function e(l,i){i&&Object.keys(i).forEach(function(o){var u=i[o];u&&qe(u)==="object"?(l[o]=l[o]||{},e(l[o],u)):l[o]=u})}for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return a.forEach(function(l){e(t,l)}),t}function An(t){return t!=null}var zr=Symbol("SlotsContextProps"),Di=function(e){ht(zr,e)},Wr=function(){return ft(zr,K(function(){return{}}))},Gr=Symbol("ContextProps"),Li=function(e){ht(Gr,e)},Ai=function(){return ft(Gr,{onResizeColumn:function(){}})},Ut="RC_TABLE_INTERNAL_COL_DEFINE",Vr=Symbol("HoverContextProps"),Bi=function(e){ht(Vr,e)},Mi=function(){return ft(Vr,{startRow:Y(-1),endRow:Y(-1),onHover:function(){}})},Bn=Y(!1),Fi=function(){ct(function(){Bn.value=Bn.value||Sl("position","sticky")})},$i=function(){return Bn},ji=["colSpan","rowSpan","style","class"];function Hi(t,e,n,a){var r=t+e-1;return t<=a&&r>=n}function zi(t){return t&&qe(t)==="object"&&!Array.isArray(t)&&!zt(t)}const vn=Ce({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],slots:["appendNode"],setup:function(e,n){var a=n.slots,r=Wr(),l=Mi(),i=l.onHover,o=l.startRow,u=l.endRow,s=K(function(){var c,p,f,h;return(c=(p=e.colSpan)!==null&&p!==void 0?p:(f=e.additionalProps)===null||f===void 0?void 0:f.colSpan)!==null&&c!==void 0?c:(h=e.additionalProps)===null||h===void 0?void 0:h.colspan}),m=K(function(){var c,p,f,h;return(c=(p=e.rowSpan)!==null&&p!==void 0?p:(f=e.additionalProps)===null||f===void 0?void 0:f.rowSpan)!==null&&c!==void 0?c:(h=e.additionalProps)===null||h===void 0?void 0:h.rowspan}),d=St(function(){var c=e.index;return Hi(c,m.value||1,o.value,u.value)}),y=$i(),g=function(p,f){var h,x=e.record,S=e.index,w=e.additionalProps;x&&i(S,S+f-1),w==null||(h=w.onMouseenter)===null||h===void 0||h.call(w,p)},b=function(p){var f,h=e.record,x=e.additionalProps;h&&i(-1,-1),x==null||(f=x.onMouseleave)===null||f===void 0||f.call(x,p)},k=function c(p){var f=Xt(p)[0];return zt(f)?f.type===kl?f.children:Array.isArray(f.children)?c(f.children):void 0:f};return function(){var c,p,f,h,x,S,w=e.prefixCls,N=e.record,z=e.index,A=e.renderIndex,L=e.dataIndex,R=e.customRender,B=e.component,I=B===void 0?"td":B,E=e.fixLeft,$=e.fixRight,j=e.firstFixLeft,V=e.lastFixLeft,U=e.firstFixRight,Z=e.lastFixRight,de=e.appendNode,W=de===void 0?(c=a.appendNode)===null||c===void 0?void 0:c.call(a):de,G=e.additionalProps,X=G===void 0?{}:G,ne=e.ellipsis,se=e.align,oe=e.rowType,pe=e.isSticky,we=e.column,ve=we===void 0?{}:we,ge=e.cellType,me="".concat(w,"-cell"),Se,fe,Re=(p=a.default)===null||p===void 0?void 0:p.call(a);if(An(Re)||ge==="header")fe=Re;else{var Ue,ze=Hr(N,L);if(fe=ze,R){var Be=R({text:ze,value:ze,record:N,index:z,renderIndex:A,column:ve.__originColumn__});zi(Be)?(fe=Be.children,Se=Be.props):fe=Be}if(!(Ut in ve)&&ge==="body"&&r.value.bodyCell&&!((Ue=ve.slots)!==null&&Ue!==void 0&&Ue.customRender)){var Fe=ta(r.value,"bodyCell",{text:ze,value:ze,record:N,index:z,column:ve.__originColumn__},function(){var _=fe===void 0?ze:fe;return[qe(_)==="object"&&Jn(_)||qe(_)!=="object"?_:null]});fe=Mt(Fe)}e.transformCellText&&(fe=e.transformCellText({text:fe,record:N,index:z,column:ve.__originColumn__}))}qe(fe)==="object"&&!Array.isArray(fe)&&!zt(fe)&&(fe=null),ne&&(V||U)&&(fe=v("span",{class:"".concat(me,"-content")},[fe])),Array.isArray(fe)&&fe.length===1&&(fe=fe[0]);var Ke=Se||{},Oe=Ke.colSpan,Me=Ke.rowSpan,Ye=Ke.style,at=Ke.class,Ze=ut(Ke,ji),Je=(f=Oe!==void 0?Oe:s.value)!==null&&f!==void 0?f:1,We=(h=Me!==void 0?Me:m.value)!==null&&h!==void 0?h:1;if(Je===0||We===0)return null;var _e={},ae=typeof E=="number"&&y.value,F=typeof $=="number"&&y.value;ae&&(_e.position="sticky",_e.left="".concat(E,"px")),F&&(_e.position="sticky",_e.right="".concat($,"px"));var Q={};se&&(Q.textAlign=se);var ce,H=ne===!0?{showTitle:!0}:ne;H&&(H.showTitle||oe==="header")&&(typeof fe=="string"||typeof fe=="number"?ce=fe.toString():zt(fe)&&(ce=k([fe])));var T=C(C(C({title:ce},Ze),X),{},{colSpan:Je!==1?Je:null,rowSpan:We!==1?We:null,class:ke(me,(x={},M(x,"".concat(me,"-fix-left"),ae&&y.value),M(x,"".concat(me,"-fix-left-first"),j&&y.value),M(x,"".concat(me,"-fix-left-last"),V&&y.value),M(x,"".concat(me,"-fix-right"),F&&y.value),M(x,"".concat(me,"-fix-right-first"),U&&y.value),M(x,"".concat(me,"-fix-right-last"),Z&&y.value),M(x,"".concat(me,"-ellipsis"),ne),M(x,"".concat(me,"-with-append"),W),M(x,"".concat(me,"-fix-sticky"),(ae||F)&&pe&&y.value),M(x,"".concat(me,"-row-hover"),!Se&&d.value),x),X.class,at),onMouseenter:function(D){g(D,We)},onMouseleave:b,style:C(C(C(C({},Cr(X.style)),Q),_e),Ye)});return v(I,T,{default:function(){return[W,fe,(S=a.dragHandle)===null||S===void 0?void 0:S.call(a)]}})}}});function sa(t,e,n,a,r){var l=n[t]||{},i=n[e]||{},o,u;l.fixed==="left"?o=a.left[t]:i.fixed==="right"&&(u=a.right[e]);var s=!1,m=!1,d=!1,y=!1,g=n[e+1],b=n[t-1];if(r==="rtl"){if(o!==void 0){var k=b&&b.fixed==="left";y=!k}else if(u!==void 0){var c=g&&g.fixed==="right";d=!c}}else if(o!==void 0){var p=g&&g.fixed==="left";s=!p}else if(u!==void 0){var f=b&&b.fixed==="right";m=!f}return{fixLeft:o,fixRight:u,lastFixLeft:s,firstFixRight:m,lastFixRight:d,firstFixLeft:y,isSticky:a.isSticky}}var za={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},Wa=50;const Wi=Ce({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:Wa},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup:function(e){var n=0,a={remove:function(){}},r={remove:function(){}},l=function(){a.remove(),r.remove()};Sr(function(){l()}),Ve(function(){st(!isNaN(e.width),"Table","width must be a number when use resizable")});var i=Ai(),o=i.onResizeColumn,u=K(function(){return typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:Wa}),s=K(function(){return typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0}),m=br(),d=0,y=Y(!1),g,b=function(w){var N=0;w.touches?w.touches.length?N=w.touches[0].pageX:N=w.changedTouches[0].pageX:N=w.pageX;var z=n-N,A=Math.max(d-z,u.value);A=Math.min(A,s.value),mt.cancel(g),g=mt(function(){o(A,e.column.__originColumn__)})},k=function(w){b(w)},c=function(w){y.value=!1,b(w),l()},p=function(w,N){y.value=!0,l(),d=m.vnode.el.parentNode.getBoundingClientRect().width,!(w instanceof MouseEvent&&w.which!==1)&&(w.stopPropagation&&w.stopPropagation(),n=w.touches?w.touches[0].pageX:w.pageX,a=$t(document.documentElement,N.move,k),r=$t(document.documentElement,N.stop,c))},f=function(w){w.stopPropagation(),w.preventDefault(),p(w,za.mouse)},h=function(w){w.stopPropagation(),w.preventDefault(),p(w,za.touch)},x=function(w){w.stopPropagation(),w.preventDefault()};return function(){var S=e.prefixCls,w=M({},wl?"onTouchstartPassive":"onTouchstart",function(N){return h(N)});return v("div",C(C({class:"".concat(S,"-resize-handle ").concat(y.value?"dragging":""),onMousedown:f},w),{},{onClick:x}),[v("div",{class:"".concat(S,"-resize-handle-line")},null)])}}}),Gi=Ce({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup:function(e){var n=Pt();return function(){var a=n.prefixCls,r=n.direction,l=e.cells,i=e.stickyOffsets,o=e.flattenColumns,u=e.rowComponent,s=e.cellComponent,m=e.customHeaderRow,d=e.index,y;m&&(y=m(l.map(function(b){return b.column}),d));var g=sn(l.map(function(b){return b.column}));return v(u,y,{default:function(){return[l.map(function(k,c){var p=k.column,f=sa(k.colStart,k.colEnd,o,i,r),h;p&&p.customHeaderCell&&(h=k.column.customHeaderCell(p));var x=p;return v(vn,C(C(C({},k),{},{cellType:"header",ellipsis:p.ellipsis,align:p.align,component:s,prefixCls:a,key:g[c]},f),{},{additionalProps:h,rowType:"header",column:p}),{default:function(){return p.title},dragHandle:function(){return x.resizable?v(Wi,{prefixCls:a,width:x.width,minWidth:x.minWidth,maxWidth:x.maxWidth,column:x},null):null}})})]}})}}});function Vi(t){var e=[];function n(i,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;e[u]=e[u]||[];var s=o,m=i.filter(Boolean).map(function(d){var y={key:d.key,class:ke(d.className,d.class),column:d,colStart:s},g=1,b=d.children;return b&&b.length>0&&(g=n(b,s,u+1).reduce(function(k,c){return k+c},0),y.hasSubColumns=!0),"colSpan"in d&&(g=d.colSpan),"rowSpan"in d&&(y.rowSpan=d.rowSpan),y.colSpan=g,y.colEnd=y.colStart+g-1,e[u].push(y),s+=g,g});return m}n(t,0);for(var a=e.length,r=function(o){e[o].forEach(function(u){!("rowSpan"in u)&&!u.hasSubColumns&&(u.rowSpan=a-o)})},l=0;l<a;l+=1)r(l);return e}const Ga=Ce({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup:function(e){var n=Pt(),a=K(function(){return Vi(e.columns)});return function(){var r=n.prefixCls,l=n.getComponent,i=e.stickyOffsets,o=e.flattenColumns,u=e.customHeaderRow,s=l(["header","wrapper"],"thead"),m=l(["header","row"],"tr"),d=l(["header","cell"],"th");return v(s,{class:"".concat(r,"-thead")},{default:function(){return[a.value.map(function(g,b){var k=v(Gi,{key:b,flattenColumns:o,cells:g,stickyOffsets:i,rowComponent:m,cellComponent:d,customHeaderRow:u,index:b},null);return k})]}})}}});var Ur=Symbol("ExpandedRowProps"),Ui=function(e){ht(Ur,e)},Xi=function(){return ft(Ur,{})};const Xr=Ce({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup:function(e,n){var a=n.slots,r=n.attrs,l=Pt(),i=Xi(),o=i.fixHeader,u=i.fixColumn,s=i.componentWidth,m=i.horizonScroll;return function(){var d=e.prefixCls,y=e.component,g=e.cellComponent,b=e.expanded,k=e.colSpan,c=e.isEmpty;return v(y,{class:r.class,style:{display:b?null:"none"}},{default:function(){return[v(vn,{component:g,prefixCls:d,colSpan:k},{default:function(){var h,x=(h=a.default)===null||h===void 0?void 0:h.call(a);return(c?m.value:u.value)&&(x=v("div",{style:{width:"".concat(s.value-(o.value?l.scrollbarSize:0),"px"),position:"sticky",left:0,overflow:"hidden"},class:"".concat(d,"-expanded-row-fixed")},[x])),x}})]}})}}}),qi=Ce({name:"MeasureCell",props:["columnKey"],setup:function(e,n){var a=n.emit,r=Y();return ct(function(){r.value&&a("columnResize",e.columnKey,r.value.offsetWidth)}),function(){return v(tn,{onResize:function(i){var o=i.offsetWidth;a("columnResize",e.columnKey,o)}},{default:function(){return[v("td",{ref:r,style:{padding:0,border:0,height:0}},[v("div",{style:{height:0,overflow:"hidden"}},[Kl(" ")])])]}})}}});var qr=Symbol("BodyContextProps"),Yi=function(e){ht(qr,e)},Yr=function(){return ft(qr,{})};const Zi=Ce({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup:function(e,n){var a=n.attrs,r=Pt(),l=Yr(),i=Y(!1),o=K(function(){return e.expandedKeys&&e.expandedKeys.has(e.recordKey)});Ve(function(){o.value&&(i.value=!0)});var u=K(function(){return l.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))}),s=K(function(){return l.expandableType==="nest"}),m=K(function(){return e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]}),d=K(function(){return u.value||s.value}),y=function(f,h){l.onTriggerExpand(f,h)},g=K(function(){var p;return((p=e.customRow)===null||p===void 0?void 0:p.call(e,e.record,e.index))||{}}),b=function(f){var h,x;l.expandRowByClick&&d.value&&y(e.record,f);for(var S=arguments.length,w=new Array(S>1?S-1:0),N=1;N<S;N++)w[N-1]=arguments[N];(h=g.value)===null||h===void 0||(x=h.onClick)===null||x===void 0||x.call.apply(x,[h,f].concat(w))},k=K(function(){var p=e.record,f=e.index,h=e.indent,x=l.rowClassName;return typeof x=="string"?x:typeof x=="function"?x(p,f,h):""}),c=K(function(){return sn(l.flattenColumns)});return function(){var p=a.class,f=a.style,h=e.record,x=e.index,S=e.rowKey,w=e.indent,N=w===void 0?0:w,z=e.rowComponent,A=e.cellComponent,L=r.prefixCls,R=r.fixedInfoList,B=r.transformCellText,I=l.flattenColumns,E=l.expandedRowClassName,$=l.indentSize,j=l.expandIcon,V=l.expandedRowRender,U=l.expandIconColumnIndex,Z=v(z,C(C({},g.value),{},{"data-row-key":S,class:ke(p,"".concat(L,"-row"),"".concat(L,"-row-level-").concat(N),k.value,g.value.class),style:C(C({},f),Cr(g.value.style)),onClick:b}),{default:function(){return[I.map(function(ne,se){var oe=ne.customRender,pe=ne.dataIndex,we=ne.className,ve=c[se],ge=R[se],me;ne.customCell&&(me=ne.customCell(h,x,ne));var Se=se===(U||0)&&s.value?v(Lt,null,[v("span",{style:{paddingLeft:"".concat($*N,"px")},class:"".concat(L,"-row-indent indent-level-").concat(N)},null),j({prefixCls:L,expanded:o.value,expandable:m.value,record:h,onExpand:y})]):null;return v(vn,C(C({cellType:"body",class:we,ellipsis:ne.ellipsis,align:ne.align,component:A,prefixCls:L,key:ve,record:h,index:x,renderIndex:e.renderIndex,dataIndex:pe,customRender:oe},ge),{},{additionalProps:me,column:ne,transformCellText:B,appendNode:Se}),null)})]}}),de;if(u.value&&(i.value||o.value)){var W=V({record:h,index:x,indent:N+1,expanded:o.value}),G=E&&E(h,x,N);de=v(Xr,{expanded:o.value,class:ke("".concat(L,"-expanded-row"),"".concat(L,"-expanded-row-level-").concat(N+1),G),prefixCls:L,component:z,cellComponent:A,colSpan:I.length,isEmpty:!1},{default:function(){return[W]}})}return v(Lt,null,[Z,de])}}});function Zr(t,e,n,a,r,l){var i=[];i.push({record:t,indent:e,index:l});var o=r(t),u=a==null?void 0:a.has(o);if(t&&Array.isArray(t[n])&&u)for(var s=0;s<t[n].length;s+=1){var m=Zr(t[n][s],e+1,n,a,r,s);i.push.apply(i,Te(m))}return i}function Ji(t,e,n,a){var r=K(function(){var l=e.value,i=n.value,o=t.value;if(i!=null&&i.size){for(var u=[],s=0;s<(o==null?void 0:o.length);s+=1){var m=o[s];u.push.apply(u,Te(Zr(m,0,l,i,a.value,s)))}return u}return o==null?void 0:o.map(function(d,y){return{record:d,indent:0,index:y}})});return r}var Jr=Symbol("ResizeContextProps"),Qi=function(e){ht(Jr,e)},eu=function(){return ft(Jr,{onColumnResize:function(){}})};const tu=Ce({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],slots:["emptyNode"],setup:function(e,n){var a=n.slots,r=eu(),l=Pt(),i=Yr(),o=Ji(ot(e,"data"),ot(e,"childrenColumnName"),ot(e,"expandedKeys"),ot(e,"getRowKey")),u=Y(-1),s=Y(-1),m;return Bi({startRow:u,endRow:s,onHover:function(y,g){clearTimeout(m),m=setTimeout(function(){u.value=y,s.value=g},100)}}),function(){var d=e.data,y=e.getRowKey,g=e.measureColumnWidth,b=e.expandedKeys,k=e.customRow,c=e.rowExpandable,p=e.childrenColumnName,f=r.onColumnResize,h=l.prefixCls,x=l.getComponent,S=i.flattenColumns,w=x(["body","wrapper"],"tbody"),N=x(["body","row"],"tr"),z=x(["body","cell"],"td"),A;if(d.length)A=o.value.map(function(B,I){var E=B.record,$=B.indent,j=B.index,V=y(E,I);return v(Zi,{key:V,rowKey:V,record:E,recordKey:V,index:I,renderIndex:j,rowComponent:N,cellComponent:z,expandedKeys:b,customRow:k,getRowKey:y,rowExpandable:c,childrenColumnName:p,indent:$},null)});else{var L;A=v(Xr,{expanded:!0,class:"".concat(h,"-placeholder"),prefixCls:h,component:N,cellComponent:z,colSpan:S.length,isEmpty:!0},{default:function(){return[(L=a.emptyNode)===null||L===void 0?void 0:L.call(a)]}})}var R=sn(S);return v(w,{class:"".concat(h,"-tbody")},{default:function(){return[g&&v("tr",{"aria-hidden":"true",class:"".concat(h,"-measure-row"),style:{height:0,fontSize:0}},[R.map(function(I){return v(qi,{key:I,columnKey:I,onColumnResize:f},null)})]),A]}})}}});var _t={},nu=["fixed"];function Mn(t){return t.reduce(function(e,n){var a=n.fixed,r=a===!0?"left":a,l=n.children;return l&&l.length>0?[].concat(Te(e),Te(Mn(l).map(function(i){return C({fixed:r},i)}))):[].concat(Te(e),[C(C({},n),{},{fixed:r})])},[])}function au(t){return t.map(function(e){var n=e.fixed,a=ut(e,nu),r=n;return n==="left"?r="right":n==="right"&&(r="left"),C({fixed:r},a)})}function ru(t,e){var n=t.prefixCls,a=t.columns,r=t.expandable,l=t.expandedKeys,i=t.getRowKey,o=t.onTriggerExpand,u=t.expandIcon,s=t.rowExpandable,m=t.expandIconColumnIndex,d=t.direction,y=t.expandRowByClick,g=t.expandColumnWidth,b=t.expandFixed,k=K(function(){if(r.value){var f,h=a.value.slice();if(!h.includes(_t)){var x=m.value||0;x>=0&&h.splice(x,0,_t)}var S=h.indexOf(_t);h=h.filter(function(E,$){return E!==_t||$===S});var w=a.value[S],N;(b.value==="left"||b.value)&&!m.value?N="left":(b.value==="right"||b.value)&&m.value===a.value.length?N="right":N=w?w.fixed:null;var z=l.value,A=s.value,L=u.value,R=n.value,B=y.value,I=(f={},M(f,Ut,{class:"".concat(n.value,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),M(f,"title",""),M(f,"fixed",N),M(f,"class","".concat(n.value,"-row-expand-icon-cell")),M(f,"width",g.value),M(f,"customRender",function($){var j=$.record,V=$.index,U=i.value(j,V),Z=z.has(U),de=A?A(j):!0,W=L({prefixCls:R,expanded:Z,expandable:de,record:j,onExpand:o});return B?v("span",{onClick:function(X){return X.stopPropagation()}},[W]):W}),f);return h.map(function(E){return E===_t?I:E})}return a.value.filter(function(E){return E!==_t})}),c=K(function(){var f=k.value;return e.value&&(f=e.value(f)),f.length||(f=[{customRender:function(){return null}}]),f}),p=K(function(){return d.value==="rtl"?au(Mn(c.value)):Mn(c.value)});return[c,p]}function Qr(t){var e=Ae(t),n,a=Ae([]);function r(l){a.value.push(l),mt.cancel(n),n=mt(function(){var i=a.value;a.value=[],i.forEach(function(o){e.value=o(e.value)})})}return wt(function(){mt.cancel(n)}),[e,r]}function lu(t){var e=Y(t||null),n=Y();function a(){clearTimeout(n.value)}function r(i){e.value=i,a(),n.value=setTimeout(function(){e.value=null,n.value=void 0},100)}function l(){return e.value}return wt(function(){a()}),[r,l]}function ou(t,e,n){var a=K(function(){for(var r=[],l=[],i=0,o=0,u=t.value,s=e.value,m=n.value,d=0;d<s;d+=1)if(m==="rtl"){l[d]=o,o+=u[d]||0;var y=s-d-1;r[y]=i,i+=u[y]||0}else{r[d]=i,i+=u[d]||0;var g=s-d-1;l[g]=o,o+=u[g]||0}return{left:r,right:l}});return a}var iu=["columnType"];function el(t){for(var e=t.colWidths,n=t.columns,a=t.columCount,r=[],l=a||n.length,i=!1,o=l-1;o>=0;o-=1){var u=e[o],s=n&&n[o],m=s&&s[Ut];if(u||m||i){var d=m||{};d.columnType;var y=ut(d,iu);r.unshift(v("col",C({key:o,style:{width:typeof u=="number"?"".concat(u,"px"):u}},y),null)),i=!0}}return v("colgroup",null,[r])}function Fn(t,e){var n,a=e.slots;return v("div",null,[(n=a.default)===null||n===void 0?void 0:n.call(a)])}Fn.displayName="Panel";var uu=0,cu=Ce({name:"Summary",props:["fixed"],setup:function(e,n){var a=n.slots,r=Pt(),l="table-summary-uni-key-".concat(++uu),i=K(function(){return e.fixed===""||e.fixed});return Ve(function(){r.summaryCollect(l,i.value)}),wt(function(){r.summaryCollect(l,!1)}),function(){var o;return(o=a.default)===null||o===void 0?void 0:o.call(a)}}});const du=cu,su=Ce({compatConfig:{MODE:3},name:"ATableSummaryRow",setup:function(e,n){var a=n.slots;return function(){var r;return v("tr",null,[(r=a.default)===null||r===void 0?void 0:r.call(a)])}}});var tl=Symbol("SummaryContextProps"),vu=function(e){ht(tl,e)},fu=function(){return ft(tl,{})};const yu=Ce({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup:function(e,n){var a=n.attrs,r=n.slots,l=Pt(),i=fu();return function(){var o=e.index,u=e.colSpan,s=u===void 0?1:u,m=e.rowSpan,d=e.align,y=l.prefixCls,g=l.direction,b=i.scrollColumnIndex,k=i.stickyOffsets,c=i.flattenColumns,p=o+s-1,f=p+1===b?s+1:s,h=sa(o,o+f-1,c,k,g);return v(vn,C({class:a.class,index:o,component:"td",prefixCls:y,record:null,dataIndex:null,align:d,colSpan:f,rowSpan:m,customRender:function(){var S;return(S=r.default)===null||S===void 0?void 0:S.call(r)}},h),null)}}}),rn=Ce({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup:function(e,n){var a=n.slots,r=Pt();return vu(Dt({stickyOffsets:ot(e,"stickyOffsets"),flattenColumns:ot(e,"flattenColumns"),scrollColumnIndex:K(function(){var l=e.flattenColumns.length-1,i=e.flattenColumns[l];return i!=null&&i.scrollbar?l:null})})),function(){var l,i=r.prefixCls;return v("tfoot",{class:"".concat(i,"-summary")},[(l=a.default)===null||l===void 0?void 0:l.call(a)])}}});var mu=du;function hu(t){var e,n=t.prefixCls,a=t.record,r=t.onExpand,l=t.expanded,i=t.expandable,o="".concat(n,"-row-expand-icon");if(!i)return v("span",{class:[o,"".concat(n,"-row-spaced")]},null);var u=function(m){r(a,m),m.stopPropagation()};return v("span",{class:(e={},M(e,o,!0),M(e,"".concat(n,"-row-expanded"),l),M(e,"".concat(n,"-row-collapsed"),!l),e),onClick:u},null)}function pu(t,e,n){var a=[];function r(l){(l||[]).forEach(function(i,o){a.push(e(i,o)),r(i[n])})}return r(t),a}const gu=Ce({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup:function(e,n){var a=n.emit,r=n.expose,l=Pt(),i=Y(0),o=Y(0),u=Y(0);Ve(function(){i.value=e.scrollBodySizeInfo.scrollWidth||0,o.value=e.scrollBodySizeInfo.clientWidth||0,u.value=i.value&&o.value*(o.value/i.value)},{flush:"post"});var s=Y(),m=Qr({scrollLeft:0,isHiddenScrollBar:!0}),d=be(m,2),y=d[0],g=d[1],b=Y({delta:0,x:0}),k=Y(!1),c=function(){k.value=!1},p=function(R){b.value={delta:R.pageX-y.value.scrollLeft,x:0},k.value=!0,R.preventDefault()},f=function(R){var B,I=R||((B=window)===null||B===void 0?void 0:B.event),E=I.buttons;if(!k.value||E===0){k.value&&(k.value=!1);return}var $=b.value.x+R.pageX-b.value.x-b.value.delta;$<=0&&($=0),$+u.value>=o.value&&($=o.value-u.value),a("scroll",{scrollLeft:$/o.value*(i.value+2)}),b.value.x=R.pageX},h=function(){if(e.scrollBodyRef.value){var R=$a(e.scrollBodyRef.value).top,B=R+e.scrollBodyRef.value.offsetHeight,I=e.container===window?document.documentElement.scrollTop+window.innerHeight:$a(e.container).top+e.container.clientHeight;B-wa()<=I||R>=I-e.offsetScroll?g(function(E){return C(C({},E),{},{isHiddenScrollBar:!0})}):g(function(E){return C(C({},E),{},{isHiddenScrollBar:!1})})}},x=function(R){g(function(B){return C(C({},B),{},{scrollLeft:R/i.value*o.value||0})})};r({setScrollLeft:x});var S=null,w=null,N=null,z=null;ct(function(){S=$t(document.body,"mouseup",c,!1),w=$t(document.body,"mousemove",f,!1),N=$t(window,"resize",h,!1)}),El(function(){At(function(){h()})}),ct(function(){setTimeout(function(){Le([u,k],function(){h()},{immediate:!0,flush:"post"})})}),Le(function(){return e.container},function(){var L;(L=z)===null||L===void 0||L.remove(),z=$t(e.container,"scroll",h,!1)},{immediate:!0,flush:"post"}),wt(function(){var L,R,B,I;(L=S)===null||L===void 0||L.remove(),(R=w)===null||R===void 0||R.remove(),(B=z)===null||B===void 0||B.remove(),(I=N)===null||I===void 0||I.remove()}),Le(function(){return C({},y.value)},function(L,R){L.isHiddenScrollBar!==(R==null?void 0:R.isHiddenScrollBar)&&!L.isHiddenScrollBar&&g(function(B){var I=e.scrollBodyRef.value;return I?C(C({},B),{},{scrollLeft:I.scrollLeft/I.scrollWidth*I.clientWidth}):B})},{immediate:!0});var A=wa();return function(){if(i.value<=o.value||!u.value||y.value.isHiddenScrollBar)return null;var L=l.prefixCls;return v("div",{style:{height:"".concat(A,"px"),width:"".concat(o.value,"px"),bottom:"".concat(e.offsetScroll,"px")},class:"".concat(L,"-sticky-scroll")},[v("div",{onMousedown:p,ref:s,class:ke("".concat(L,"-sticky-scroll-bar"),M({},"".concat(L,"-sticky-scroll-bar-active"),k.value)),style:{width:"".concat(u.value,"px"),transform:"translate3d(".concat(y.value.scrollLeft,"px, 0, 0)")}},null)])}}});var Va=Pl()?window:null;function bu(t,e){return K(function(){var n=qe(t.value)==="object"?t.value:{},a=n.offsetHeader,r=a===void 0?0:a,l=n.offsetSummary,i=l===void 0?0:l,o=n.offsetScroll,u=o===void 0?0:o,s=n.getContainer,m=s===void 0?function(){return Va}:s,d=m()||Va,y=!!t.value;return{isSticky:y,stickyClassName:y?"".concat(e.value,"-sticky-holder"):"",offsetHeader:r,offsetSummary:i,offsetScroll:u,container:d}})}function xu(t,e){return K(function(){for(var n=[],a=t.value,r=e.value,l=0;l<r;l+=1){var i=a[l];if(i!==void 0)n[l]=i;else return null}return n})}const Ua=Ce({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup:function(e,n){var a=n.attrs,r=n.slots,l=n.emit,i=Pt(),o=K(function(){return i.isSticky&&!e.fixHeader?0:i.scrollbarSize}),u=Y(),s=function(p){var f=p.currentTarget,h=p.deltaX;h&&(l("scroll",{currentTarget:f,scrollLeft:f.scrollLeft+h}),p.preventDefault())},m=Y();ct(function(){At(function(){m.value=$t(u.value,"wheel",s)})}),wt(function(){var c;(c=m.value)===null||c===void 0||c.remove()});var d=K(function(){return e.flattenColumns.every(function(c){return c.width&&c.width!==0&&c.width!=="0px"})}),y=Y([]),g=Y([]);Ve(function(){var c=e.flattenColumns[e.flattenColumns.length-1],p={fixed:c?c.fixed:null,scrollbar:!0,customHeaderCell:function(){return{class:"".concat(i.prefixCls,"-cell-scrollbar")}}};y.value=o.value?[].concat(Te(e.columns),[p]):e.columns,g.value=o.value?[].concat(Te(e.flattenColumns),[p]):e.flattenColumns});var b=K(function(){var c=e.stickyOffsets,p=e.direction,f=c.right,h=c.left;return C(C({},c),{},{left:p==="rtl"?[].concat(Te(h.map(function(x){return x+o.value})),[0]):h,right:p==="rtl"?f:[].concat(Te(f.map(function(x){return x+o.value})),[0]),isSticky:i.isSticky})}),k=xu(ot(e,"colWidths"),ot(e,"columCount"));return function(){var c,p=e.noData,f=e.columCount,h=e.stickyTopOffset,x=e.stickyBottomOffset,S=e.stickyClassName,w=e.maxContentScroll,N=i.isSticky;return v("div",{style:C({overflow:"hidden"},N?{top:"".concat(h,"px"),bottom:"".concat(x,"px")}:{}),ref:u,class:ke(a.class,M({},S,!!S))},[v("table",{style:{tableLayout:"fixed",visibility:p||k.value?null:"hidden"}},[(!p||!w||d.value)&&v(el,{colWidths:k.value?[].concat(Te(k.value),[o.value]):[],columCount:f+1,columns:g.value},null),(c=r.default)===null||c===void 0?void 0:c.call(r,C(C({},e),{},{stickyOffsets:b.value,columns:y.value,flattenColumns:g.value}))])])}}});function Cu(t){for(var e=-1,n=t==null?0:t.length,a={};++e<n;){var r=t[e];a[r[0]]=r[1]}return a}function Xa(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return Dt(Cu(n.map(function(r){return[r,ot(t,r)]})))}var Su=[],ku={},$n="rc-table-internal-hook";const wu=Ce({name:"Table",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],slots:["title","footer","summary","emptyText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup:function(e,n){var a=n.attrs,r=n.slots,l=n.emit,i=K(function(){return e.data||Su}),o=K(function(){return!!i.value.length}),u=K(function(){return _i(e.components,{})}),s=function(O,J){return Hr(u.value,O)||J},m=K(function(){var P=e.rowKey;return typeof P=="function"?P:function(O){var J=O&&O[P];return J}}),d=K(function(){return e.expandIcon||hu}),y=K(function(){return e.childrenColumnName||"children"}),g=K(function(){return e.expandedRowRender?"row":e.canExpandable||i.value.some(function(P){return P&&qe(P)==="object"&&P[y.value]})?"nest":!1}),b=Ae([]),k=Ve(function(){e.defaultExpandedRowKeys&&(b.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(b.value=pu(i.value,m.value,y.value))});k();var c=K(function(){return new Set(e.expandedRowKeys||b.value||[])}),p=function(O){var J=m.value(O,i.value.indexOf(O)),ie,re=c.value.has(J);re?(c.value.delete(J),ie=Te(c.value)):ie=[].concat(Te(c.value),[J]),b.value=ie,l("expand",!re,O),l("update:expandedRowKeys",ie),l("expandedRowsChange",ie)},f=Y(0),h=ru(C(C({},mn(e)),{},{expandable:K(function(){return!!e.expandedRowRender}),expandedKeys:c,getRowKey:m,onTriggerExpand:p,expandIcon:d}),K(function(){return e.internalHooks===$n?e.transformColumns:null})),x=be(h,2),S=x[0],w=x[1],N=K(function(){return{columns:S.value,flattenColumns:w.value}}),z=Y(),A=Y(),L=Y(),R=Y({scrollWidth:0,clientWidth:0}),B=Y(),I=Ge(!1),E=be(I,2),$=E[0],j=E[1],V=Ge(!1),U=be(V,2),Z=U[0],de=U[1],W=Qr(new Map),G=be(W,2),X=G[0],ne=G[1],se=K(function(){return sn(w.value)}),oe=K(function(){return se.value.map(function(P){return X.value.get(P)})}),pe=K(function(){return w.value.length}),we=ou(oe,pe,ot(e,"direction")),ve=K(function(){return e.scroll&&An(e.scroll.y)}),ge=K(function(){return e.scroll&&An(e.scroll.x)||!!e.expandFixed}),me=K(function(){return ge.value&&w.value.some(function(P){var O=P.fixed;return O})}),Se=Y(),fe=bu(ot(e,"sticky"),ot(e,"prefixCls")),Re=Dt({}),Ue=K(function(){var P=Object.values(Re)[0];return(ve.value||fe.value.isSticky)&&P}),ze=function(O,J){J?Re[O]=J:delete Re[O]},Be=Y({}),Fe=Y({}),Ke=Y({});Ve(function(){ve.value&&(Fe.value={overflowY:"scroll",maxHeight:Ft(e.scroll.y)}),ge.value&&(Be.value={overflowX:"auto"},ve.value||(Fe.value={overflowY:"hidden"}),Ke.value={width:e.scroll.x===!0?"auto":Ft(e.scroll.x),minWidth:"100%"})});var Oe=function(O,J){oo(z.value)&&ne(function(ie){if(ie.get(O)!==J){var re=new Map(ie);return re.set(O,J),re}return ie})},Me=lu(null),Ye=be(Me,2),at=Ye[0],Ze=Ye[1];function Je(P,O){if(O){if(typeof O=="function"){O(P);return}var J=O.$el||O;J.scrollLeft!==P&&(J.scrollLeft=P)}}var We=function(O){var J=O.currentTarget,ie=O.scrollLeft,re=e.direction==="rtl",le=typeof ie=="number"?ie:J.scrollLeft,ue=J||ku;if(!Ze()||Ze()===ue){var ye;at(ue),Je(le,A.value),Je(le,L.value),Je(le,B.value),Je(le,(ye=Se.value)===null||ye===void 0?void 0:ye.setScrollLeft)}if(J){var he=J.scrollWidth,Ee=J.clientWidth;re?(j(-le<he-Ee),de(-le>0)):(j(le>0),de(le<he-Ee))}},_e=function(){ge.value&&L.value?We({currentTarget:L.value}):(j(!1),de(!1))},ae,F=function(O){O!==f.value&&(_e(),f.value=z.value?z.value.offsetWidth:O)},Q=function(O){var J=O.width;if(clearTimeout(ae),f.value===0){F(J);return}ae=setTimeout(function(){F(J)},100)};Le([ge,function(){return e.data},function(){return e.columns}],function(){ge.value&&_e()},{flush:"post"});var ce=Ge(0),H=be(ce,2),T=H[0],_=H[1];Fi(),ct(function(){At(function(){var P,O;_e(),_(Tl(L.value).width),R.value={scrollWidth:((P=L.value)===null||P===void 0?void 0:P.scrollWidth)||0,clientWidth:((O=L.value)===null||O===void 0?void 0:O.clientWidth)||0}})}),na(function(){At(function(){var P,O,J=((P=L.value)===null||P===void 0?void 0:P.scrollWidth)||0,ie=((O=L.value)===null||O===void 0?void 0:O.clientWidth)||0;(R.value.scrollWidth!==J||R.value.clientWidth!==ie)&&(R.value={scrollWidth:J,clientWidth:ie})})}),Ve(function(){e.internalHooks===$n&&e.internalRefs&&e.onUpdateInternalRefs({body:L.value?L.value.$el||L.value:null})},{flush:"post"});var D=K(function(){return e.tableLayout?e.tableLayout:me.value?e.scroll.x==="max-content"?"auto":"fixed":ve.value||fe.value.isSticky||w.value.some(function(P){var O=P.ellipsis;return O})?"fixed":"auto"}),q=function(){var O;return o.value?null:((O=r.emptyText)===null||O===void 0?void 0:O.call(r))||"No Data"};Ri(Dt(C(C({},mn(Xa(e,"prefixCls","direction","transformCellText"))),{},{getComponent:s,scrollbarSize:T,fixedInfoList:K(function(){return w.value.map(function(P,O){return sa(O,O,w.value,we.value,e.direction)})}),isSticky:K(function(){return fe.value.isSticky}),summaryCollect:ze}))),Yi(Dt(C(C({},mn(Xa(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{},{columns:S,flattenColumns:w,tableLayout:D,expandIcon:d,expandableType:g,onTriggerExpand:p}))),Qi({onColumnResize:Oe}),Ui({componentWidth:f,fixHeader:ve,fixColumn:me,horizonScroll:ge});var te=function(){return v(tu,{data:i.value,measureColumnWidth:ve.value||ge.value||fe.value.isSticky,expandedKeys:c.value,rowExpandable:e.rowExpandable,getRowKey:m.value,customRow:e.customRow,childrenColumnName:y.value},{emptyNode:q})},ee=function(){return v(el,{colWidths:w.value.map(function(O){var J=O.width;return J}),columns:w.value},null)};return function(){var P,O=e.prefixCls,J=e.scroll,ie=e.tableLayout,re=e.direction,le=e.title,ue=le===void 0?r.title:le,ye=e.footer,he=ye===void 0?r.footer:ye,Ee=e.id,xe=e.showHeader,Ie=e.customHeaderRow,Pe=fe.value,De=Pe.isSticky,$e=Pe.offsetHeader,Qe=Pe.offsetSummary,je=Pe.offsetScroll,it=Pe.stickyClassName,rt=Pe.container,lt=s(["table"],"table"),et=s(["body"]),Xe=(P=r.summary)===null||P===void 0?void 0:P.call(r,{pageData:i.value}),gt=function(){return null},He={colWidths:oe.value,columCount:w.value.length,stickyOffsets:we.value,customHeaderRow:Ie,fixHeader:ve.value,scroll:J};if(ve.value||De){var bt=function(){return null};typeof et=="function"?(bt=function(){return et(i.value,{scrollbarSize:T.value,ref:L,onScroll:We})},He.colWidths=w.value.map(function(xt,tt){var Ct=xt.width,Zt=tt===S.value.length-1?Ct-T.value:Ct;return typeof Zt=="number"&&!Number.isNaN(Zt)?Zt:0})):bt=function(){return v("div",{style:C(C({},Be.value),Fe.value),onScroll:We,ref:L,class:ke("".concat(O,"-body"))},[v(lt,{style:C(C({},Ke.value),{},{tableLayout:D.value})},{default:function(){return[ee(),te(),!Ue.value&&Xe&&v(rn,{stickyOffsets:we.value,flattenColumns:w.value},{default:function(){return[Xe]}})]}})])};var Kt=C(C(C({noData:!i.value.length,maxContentScroll:ge.value&&J.x==="max-content"},He),N.value),{},{direction:re,stickyClassName:it,onScroll:We});gt=function(){return v(Lt,null,[xe!==!1&&v(Ua,C(C({},Kt),{},{stickyTopOffset:$e,class:"".concat(O,"-header"),ref:A}),{default:function(Ct){return v(Lt,null,[v(Ga,Ct,null),Ue.value==="top"&&v(rn,Ct,{default:function(){return[Xe]}})])}}),bt(),Ue.value&&Ue.value!=="top"&&v(Ua,C(C({},Kt),{},{stickyBottomOffset:Qe,class:"".concat(O,"-summary"),ref:B}),{default:function(Ct){return v(rn,Ct,{default:function(){return[Xe]}})}}),De&&L.value&&v(gu,{ref:Se,offsetScroll:je,scrollBodyRef:L,onScroll:We,container:rt,scrollBodySizeInfo:R.value},null)])}}else gt=function(){return v("div",{style:C(C({},Be.value),Fe.value),class:ke("".concat(O,"-content")),onScroll:We,ref:L},[v(lt,{style:C(C({},Ke.value),{},{tableLayout:D.value})},{default:function(){return[ee(),xe!==!1&&v(Ga,C(C({},He),N.value),null),te(),Xe&&v(rn,{stickyOffsets:we.value,flattenColumns:w.value},{default:function(){return[Xe]}})]}})])};var Ht=aa(a,{aria:!0,data:!0}),dt=function(){var tt;return v("div",C(C({},Ht),{},{class:ke(O,(tt={},M(tt,"".concat(O,"-rtl"),re==="rtl"),M(tt,"".concat(O,"-ping-left"),$.value),M(tt,"".concat(O,"-ping-right"),Z.value),M(tt,"".concat(O,"-layout-fixed"),ie==="fixed"),M(tt,"".concat(O,"-fixed-header"),ve.value),M(tt,"".concat(O,"-fixed-column"),me.value),M(tt,"".concat(O,"-scroll-horizontal"),ge.value),M(tt,"".concat(O,"-has-fix-left"),w.value[0]&&w.value[0].fixed),M(tt,"".concat(O,"-has-fix-right"),w.value[pe.value-1]&&w.value[pe.value-1].fixed==="right"),M(tt,a.class,a.class),tt)),style:a.style,id:Ee,ref:z}),[ue&&v(Fn,{class:"".concat(O,"-title")},{default:function(){return[ue(i.value)]}}),v("div",{class:"".concat(O,"-container")},[gt()]),he&&v(Fn,{class:"".concat(O,"-footer")},{default:function(){return[he(i.value)]}})])};return ge.value?v(tn,{onResize:Q},{default:dt}):dt()}}});var jn=10;function Ku(t,e){var n={current:e.current,pageSize:e.pageSize},a=t&&qe(t)==="object"?t:{};return Object.keys(a).forEach(function(r){var l=e[r];typeof l!="function"&&(n[r]=l)}),n}function Eu(){for(var t={},e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return n.forEach(function(r){r&&Object.keys(r).forEach(function(l){var i=r[l];i!==void 0&&(t[l]=i)})}),t}function Pu(t,e,n){var a=K(function(){return e.value&&qe(e.value)==="object"?e.value:{}}),r=K(function(){return a.value.total||0}),l=Ge(function(){return{current:"defaultCurrent"in a.value?a.value.defaultCurrent:1,pageSize:"defaultPageSize"in a.value?a.value.defaultPageSize:jn}}),i=be(l,2),o=i[0],u=i[1],s=K(function(){var y=Eu(o.value,a.value,{total:r.value>0?r.value:t.value}),g=Math.ceil((r.value||t.value)/y.pageSize);return y.current>g&&(y.current=g||1),y}),m=function(g,b){a.value!==!1&&u({current:g??1,pageSize:b||s.value.pageSize})},d=function(g,b){if(a.value){var k,c;(k=(c=a.value).onChange)===null||k===void 0||k.call(c,g,b)}m(g,b),n(g,b||s.value.pageSize)};return[K(function(){return a.value===!1?{}:C(C({},s.value),{},{onChange:d})}),m]}function Tu(t,e,n){var a=Ae({});Le([t,e,n],function(){var l=new Map,i=n.value,o=e.value;function u(s){s.forEach(function(m,d){var y=i(m,d);l.set(y,m),m&&qe(m)==="object"&&o in m&&u(m[o]||[])})}u(t.value),a.value={kvMap:l}},{deep:!0,immediate:!0});function r(l){return a.value.kvMap.get(l)}return[r]}var Ot={},Hn="SELECT_ALL",zn="SELECT_INVERT",Wn="SELECT_NONE",Ou=[];function nl(t,e){var n=[];return(t||[]).forEach(function(a){n.push(a),a&&qe(a)==="object"&&e in a&&(n=[].concat(Te(n),Te(nl(a[e],e))))}),n}function Nu(t,e){var n=K(function(){var E=t.value||{},$=E.checkStrictly,j=$===void 0?!0:$;return C(C({},E),{},{checkStrictly:j})}),a=En(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||Ou,{value:K(function(){return n.value.selectedRowKeys})}),r=be(a,2),l=r[0],i=r[1],o=Ae(new Map),u=function($){if(n.value.preserveSelectedRowKeys){var j=new Map;$.forEach(function(V){var U=e.getRecordByKey(V);!U&&o.value.has(V)&&(U=o.value.get(V)),j.set(V,U)}),o.value=j}};Ve(function(){u(l.value)});var s=K(function(){return n.value.checkStrictly?null:ua(e.data.value,{externalGetKey:e.getRowKey.value,childrenPropName:e.childrenColumnName.value}).keyEntities}),m=K(function(){return nl(e.pageData.value,e.childrenColumnName.value)}),d=K(function(){var E=new Map,$=e.getRowKey.value,j=n.value.getCheckboxProps;return m.value.forEach(function(V,U){var Z=$(V,U),de=(j?j(V):null)||{};E.set(Z,de)}),E}),y=Mr(s),g=y.maxLevel,b=y.levelEntities,k=function($){var j;return!!((j=d.value.get(e.getRowKey.value($)))!==null&&j!==void 0&&j.disabled)},c=K(function(){if(n.value.checkStrictly)return[l.value||[],[]];var E=Vt(l.value,!0,s.value,g.value,b.value,k),$=E.checkedKeys,j=E.halfCheckedKeys;return[$||[],j]}),p=K(function(){return c.value[0]}),f=K(function(){return c.value[1]}),h=K(function(){var E=n.value.type==="radio"?p.value.slice(0,1):p.value;return new Set(E)}),x=K(function(){return n.value.type==="radio"?new Set:new Set(f.value)}),S=Ge(null),w=be(S,2),N=w[0],z=w[1],A=function($){var j,V;u($);var U=n.value,Z=U.preserveSelectedRowKeys,de=U.onChange,W=e.getRecordByKey;Z?(j=$,V=$.map(function(G){return o.value.get(G)})):(j=[],V=[],$.forEach(function(G){var X=W(G);X!==void 0&&(j.push(G),V.push(X))})),i(j),de==null||de(j,V)},L=function($,j,V,U){var Z=n.value.onSelect,de=e||{},W=de.getRecordByKey;if(Z){var G=V.map(function(X){return W(X)});Z(W($),j,G,U)}A(V)},R=K(function(){var E=n.value,$=E.onSelectInvert,j=E.onSelectNone,V=E.selections,U=E.hideSelectAll,Z=e.data,de=e.pageData,W=e.getRowKey,G=e.locale;if(!V||U)return null;var X=V===!0?[Hn,zn,Wn]:V;return X.map(function(ne){return ne===Hn?{key:"all",text:G.value.selectionAll,onSelect:function(){A(Z.value.map(function(oe,pe){return W.value(oe,pe)}).filter(function(oe){var pe=d.value.get(oe);return!(pe!=null&&pe.disabled)||h.value.has(oe)}))}}:ne===zn?{key:"invert",text:G.value.selectInvert,onSelect:function(){var oe=new Set(h.value);de.value.forEach(function(we,ve){var ge=W.value(we,ve),me=d.value.get(ge);me!=null&&me.disabled||(oe.has(ge)?oe.delete(ge):oe.add(ge))});var pe=Array.from(oe);$&&(st(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),$(pe)),A(pe)}}:ne===Wn?{key:"none",text:G.value.selectNone,onSelect:function(){j==null||j(),A(Array.from(h.value).filter(function(oe){var pe=d.value.get(oe);return pe==null?void 0:pe.disabled}))}}:ne})}),B=K(function(){return m.value.length}),I=function($){var j,V=n.value,U=V.onSelectAll,Z=V.onSelectMultiple,de=V.columnWidth,W=V.type,G=V.fixed,X=V.renderCell,ne=V.hideSelectAll,se=V.checkStrictly,oe=e.prefixCls,pe=e.getRecordByKey,we=e.getRowKey,ve=e.expandType,ge=e.getPopupContainer;if(!t.value)return $.filter(function(D){return D!==Ot});var me=$.slice(),Se=new Set(h.value),fe=m.value.map(we.value).filter(function(D){return!d.value.get(D).disabled}),Re=fe.every(function(D){return Se.has(D)}),Ue=fe.some(function(D){return Se.has(D)}),ze=function(){var q=[];Re?fe.forEach(function(ee){Se.delete(ee),q.push(ee)}):fe.forEach(function(ee){Se.has(ee)||(Se.add(ee),q.push(ee))});var te=Array.from(Se);U==null||U(!Re,te.map(function(ee){return pe(ee)}),q.map(function(ee){return pe(ee)})),A(te)},Be;if(W!=="radio"){var Fe;if(R.value){var Ke=v(Bt,{getPopupContainer:ge.value},{default:function(){return[R.value.map(function(q,te){var ee=q.key,P=q.text,O=q.onSelect;return v(Bt.Item,{key:ee||te,onClick:function(){O==null||O(fe)}},{default:function(){return[P]}})})]}});Fe=v("div",{class:"".concat(oe.value,"-selection-extra")},[v(ra,{overlay:Ke,getPopupContainer:ge.value},{default:function(){return[v("span",null,[v(wr,null,null)])]}})])}var Oe=m.value.map(function(D,q){var te=we.value(D,q),ee=d.value.get(te)||{};return C({checked:Se.has(te)},ee)}).filter(function(D){var q=D.disabled;return q}),Me=!!Oe.length&&Oe.length===B.value,Ye=Me&&Oe.every(function(D){var q=D.checked;return q}),at=Me&&Oe.some(function(D){var q=D.checked;return q});Be=!ne&&v("div",{class:"".concat(oe.value,"-selection")},[v(Rt,{checked:Me?Ye:!!B.value&&Re,indeterminate:Me?!Ye&&at:!Re&&Ue,onChange:ze,disabled:B.value===0||Me,skipGroup:!0},null),Fe])}var Ze;W==="radio"?Ze=function(q){var te=q.record,ee=q.index,P=we.value(te,ee),O=Se.has(P);return{node:v(yt,C(C({},d.value.get(P)),{},{checked:O,onClick:function(ie){return ie.stopPropagation()},onChange:function(ie){Se.has(P)||L(P,!0,[P],ie.nativeEvent)}}),null),checked:O}}:Ze=function(q){var te=q.record,ee=q.index,P=we.value(te,ee),O=Se.has(P),J=x.value.has(P),ie=d.value.get(P),re;if(ve.value==="nest")re=J,st(typeof(ie==null?void 0:ie.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");else{var le;re=(le=ie==null?void 0:ie.indeterminate)!==null&&le!==void 0?le:J}return{node:v(Rt,C(C({},ie),{},{indeterminate:re,checked:O,skipGroup:!0,onClick:function(ye){return ye.stopPropagation()},onChange:function(ye){var he=ye.nativeEvent,Ee=he.shiftKey,xe=-1,Ie=-1;if(Ee&&se){var Pe=new Set([N.value,P]);fe.some(function(He,bt){if(Pe.has(He))if(xe===-1)xe=bt;else return Ie=bt,!0;return!1})}if(Ie!==-1&&xe!==Ie&&se){var De=fe.slice(xe,Ie+1),$e=[];O?De.forEach(function(He){Se.has(He)&&($e.push(He),Se.delete(He))}):De.forEach(function(He){Se.has(He)||($e.push(He),Se.add(He))});var Qe=Array.from(Se);Z==null||Z(!O,Qe.map(function(He){return pe(He)}),$e.map(function(He){return pe(He)})),A(Qe)}else{var je=p.value;if(se){var it=O?Tt(je,P):It(je,P);L(P,!O,it,he)}else{var rt=Vt([].concat(Te(je),[P]),!0,s.value,g.value,b.value,k),lt=rt.checkedKeys,et=rt.halfCheckedKeys,Xe=lt;if(O){var gt=new Set(lt);gt.delete(P),Xe=Vt(Array.from(gt),{checked:!1,halfCheckedKeys:et},s.value,g.value,b.value,k).checkedKeys}L(P,!O,Xe,he)}}z(P)}}),null),checked:O}};var Je=function(q){var te=q.record,ee=q.index,P=Ze({record:te,index:ee}),O=P.node,J=P.checked;return X?X(J,te,ee,O):O};if(!me.includes(Ot))if(me.findIndex(function(D){var q;return((q=D[Ut])===null||q===void 0?void 0:q.columnType)==="EXPAND_COLUMN"})===0){var We=me,_e=lo(We),ae=_e[0],F=_e.slice(1);me=[ae,Ot].concat(Te(F))}else me=[Ot].concat(Te(me));var Q=me.indexOf(Ot);me=me.filter(function(D,q){return D!==Ot||q===Q});var ce=me[Q-1],H=me[Q+1],T=G;T===void 0&&((H==null?void 0:H.fixed)!==void 0?T=H.fixed:(ce==null?void 0:ce.fixed)!==void 0&&(T=ce.fixed)),T&&ce&&((j=ce[Ut])===null||j===void 0?void 0:j.columnType)==="EXPAND_COLUMN"&&ce.fixed===void 0&&(ce.fixed=T);var _=M({fixed:T,width:de,className:"".concat(oe.value,"-selection-column"),title:n.value.columnTitle||Be,customRender:Je},Ut,{class:"".concat(oe.value,"-selection-col")});return me.map(function(D){return D===Ot?_:D})};return[I,h]}var Ru={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 Iu=Ru;function qa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){_u(t,r,n[r])})}return t}function _u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var va=function(e,n){var a=qa({},e,n.attrs);return v(pt,qa({},a,{icon:Iu}),null)};va.displayName="CaretDownOutlined";va.inheritAttrs=!1;const Du=va;var Lu={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 Au=Lu;function Ya(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){Bu(t,r,n[r])})}return t}function Bu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fa=function(e,n){var a=Ya({},e,n.attrs);return v(pt,Ya({},a,{icon:Au}),null)};fa.displayName="CaretUpOutlined";fa.inheritAttrs=!1;const Mu=fa;var Fu=["default"];function qt(t,e){return"key"in t&&t.key!==void 0&&t.key!==null?t.key:t.dataIndex?Array.isArray(t.dataIndex)?t.dataIndex.join("."):t.dataIndex:e}function fn(t,e){return e?"".concat(e,"-").concat(t):"".concat(t)}function ya(t,e){return typeof t=="function"?t(e):t}function al(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=Mt(t),n=[];return e.forEach(function(a){var r,l,i;if(a){for(var o=a.key,u=((r=a.props)===null||r===void 0?void 0:r.style)||{},s=((l=a.props)===null||l===void 0?void 0:l.class)||"",m=a.props||{},d=0,y=Object.entries(m);d<y.length;d++){var g=be(y[d],2),b=g[0],k=g[1];m[Qn(b)]=k}var c=a.children||{},p=c.default,f=ut(c,Fu),h=C(C(C({},f),m),{},{style:u,class:s});if(o&&(h.key=o),(i=a.type)!==null&&i!==void 0&&i.__ANT_TABLE_COLUMN_GROUP)h.children=al(typeof p=="function"?p():p);else{var x,S=(x=a.children)===null||x===void 0?void 0:x.default;h.customRender=h.customRender||S}n.push(h)}}),n}var on="ascend",gn="descend";function Gn(t){return qe(t.sorter)==="object"&&typeof t.sorter.multiple=="number"?t.sorter.multiple:!1}function Za(t){return typeof t=="function"?t:t&&qe(t)==="object"&&t.compare?t.compare:!1}function $u(t,e){return e?t[t.indexOf(e)+1]:t[0]}function Vn(t,e,n){var a=[];function r(l,i){a.push({column:l,key:qt(l,i),multiplePriority:Gn(l),sortOrder:l.sortOrder})}return(t||[]).forEach(function(l,i){var o=fn(i,n);l.children?("sortOrder"in l&&r(l,o),a=[].concat(Te(a),Te(Vn(l.children,e,o)))):l.sorter&&("sortOrder"in l?r(l,o):e&&l.defaultSortOrder&&a.push({column:l,key:qt(l,o),multiplePriority:Gn(l),sortOrder:l.defaultSortOrder}))}),a}function rl(t,e,n,a,r,l,i,o){return(e||[]).map(function(u,s){var m=fn(s,o),d=u;if(d.sorter){var y=d.sortDirections||r,g=d.showSorterTooltip===void 0?i:d.showSorterTooltip,b=qt(d,m),k=n.find(function(L){var R=L.key;return R===b}),c=k?k.sortOrder:null,p=$u(y,c),f=y.includes(on)&&v(Mu,{class:ke("".concat(t,"-column-sorter-up"),{active:c===on})},null),h=y.includes(gn)&&v(Du,{class:ke("".concat(t,"-column-sorter-down"),{active:c===gn})},null),x=l||{},S=x.cancelSort,w=x.triggerAsc,N=x.triggerDesc,z=S;p===gn?z=N:p===on&&(z=w);var A=qe(g)==="object"?g:{title:z};d=C(C({},d),{},{className:ke(d.className,M({},"".concat(t,"-column-sort"),c)),title:function(R){var B=v("div",{class:"".concat(t,"-column-sorters")},[v("span",{class:"".concat(t,"-column-title")},[ya(u.title,R)]),v("span",{class:ke("".concat(t,"-column-sorter"),M({},"".concat(t,"-column-sorter-full"),!!(f&&h)))},[v("span",{class:"".concat(t,"-column-sorter-inner")},[f,h])])]);return g?v(zl,A,{default:function(){return[B]}}):B},customHeaderCell:function(R){var B=u.customHeaderCell&&u.customHeaderCell(R)||{},I=B.onClick;return B.onClick=function(E){a({column:u,key:b,sortOrder:p,multiplePriority:Gn(u)}),I&&I(E)},B.class=ke(B.class,"".concat(t,"-column-has-sorters")),B}})}return"children"in d&&(d=C(C({},d),{},{children:rl(t,d.children,n,a,r,l,i,m)})),d})}function Ja(t){var e=t.column,n=t.sortOrder;return{column:e,order:n,field:e.dataIndex,columnKey:e.key}}function Qa(t){var e=t.filter(function(n){var a=n.sortOrder;return a}).map(Ja);return e.length===0&&t.length?C(C({},Ja(t[t.length-1])),{},{column:void 0}):e.length<=1?e[0]||{}:e}function Un(t,e,n){var a=e.slice().sort(function(i,o){return o.multiplePriority-i.multiplePriority}),r=t.slice(),l=a.filter(function(i){var o=i.column.sorter,u=i.sortOrder;return Za(o)&&u});return l.length?r.sort(function(i,o){for(var u=0;u<l.length;u+=1){var s=l[u],m=s.column.sorter,d=s.sortOrder,y=Za(m);if(y&&d){var g=y(i,o,d);if(g!==0)return d===on?g:-g}}return 0}).map(function(i){var o=i[n];return o?C(C({},i),{},M({},n,Un(o,e,n))):i}):r}function ju(t){var e=t.prefixCls,n=t.mergedColumns,a=t.onSorterChange,r=t.sortDirections,l=t.tableLocale,i=t.showSorterTooltip,o=Ge(Vn(n.value,!0)),u=be(o,2),s=u[0],m=u[1],d=K(function(){var c=!0,p=Vn(n.value,!1);if(!p.length)return s.value;var f=[];function h(S){c?f.push(S):f.push(C(C({},S),{},{sortOrder:null}))}var x=null;return p.forEach(function(S){x===null?(h(S),S.sortOrder&&(S.multiplePriority===!1?c=!1:x=!0)):(x&&S.multiplePriority!==!1||(c=!1),h(S))}),f}),y=K(function(){var c=d.value.map(function(p){var f=p.column,h=p.sortOrder;return{column:f,order:h}});return{sortColumns:c,sortColumn:c[0]&&c[0].column,sortOrder:c[0]&&c[0].order}});function g(c){var p;c.multiplePriority===!1||!d.value.length||d.value[0].multiplePriority===!1?p=[c]:p=[].concat(Te(d.value.filter(function(f){var h=f.key;return h!==c.key})),[c]),m(p),a(Qa(p),p)}var b=function(p){return rl(e.value,p,d.value,g,r.value,l.value,i.value)},k=K(function(){return Qa(d.value)});return[b,d,y,k]}var Hu={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 zu=Hu;function er(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){Wu(t,r,n[r])})}return t}function Wu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ma=function(e,n){var a=er({},e,n.attrs);return v(pt,er({},a,{icon:zu}),null)};ma.displayName="FilterFilled";ma.inheritAttrs=!1;const Gu=ma;var Vu=function(e,n){var a,r=n.slots;return v("div",{onClick:function(i){return i.stopPropagation()}},[(a=r.default)===null||a===void 0?void 0:a.call(r)])};const Uu=Vu,tr=Ce({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:String,onChange:Function,filterSearch:Boolean,tablePrefixCls:String,locale:{type:Object,default:void 0}},setup:function(e){return function(){var n=e.value,a=e.onChange,r=e.filterSearch,l=e.tablePrefixCls,i=e.locale;return r?v("div",{class:"".concat(l,"-filter-dropdown-search")},[v(Ol,{placeholder:i.filterSearchPlaceholder,onChange:a,value:n,htmlSize:1,class:"".concat(l,"-filter-dropdown-search-input")},{prefix:function(){return v(Nl,null,null)}})]):null}}});var Xu=["motion","motionNodes","motionType","active","eventKey"];const qu=Ce({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:C(C({},Dr),{},{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),slots:["title","icon","switcherIcon","checkable"],setup:function(e,n){var a=n.attrs,r=n.slots,l=Y(!0),i=oa(),o=Y(!1),u=K(function(){return e.motion?e.motion:uo()}),s=function(d,y){if(y==="appear"){var g,b;(g=u.value)===null||g===void 0||(b=g.onAfterEnter)===null||b===void 0||b.call(g,d)}else if(y==="leave"){var k,c;(k=u.value)===null||k===void 0||(c=k.onAfterLeave)===null||c===void 0||c.call(k,d)}o.value||e.onMotionEnd(),o.value=!0};return Le(function(){return e.motionNodes},function(){e.motionNodes&&e.motionType==="hide"&&l.value&&At(function(){l.value=!1})},{immediate:!0,flush:"post"}),ct(function(){e.motionNodes&&e.onMotionStart()}),wt(function(){e.motionNodes&&s()}),function(){e.motion;var m=e.motionNodes,d=e.motionType,y=e.active,g=e.eventKey,b=ut(e,Xu);return m?v(_l,C(C({},u.value),{},{appear:d==="show",onAfterAppear:function(c){return s(c,"appear")},onAfterLeave:function(c){return s(c,"leave")}}),{default:function(){return[Rl(v("div",{class:"".concat(i.value.prefixCls,"-treenode-motion")},[m.map(function(c){var p=kt({},(kr(c.data),c.data)),f=c.title,h=c.key,x=c.isStart,S=c.isEnd;return delete p.children,v(Nn,C(C({},p),{},{title:f,active:y,data:c.data,key:h,eventKey:h,isStart:x,isEnd:S}),r)})]),[[Il,l.value]])]}}):v(Nn,C(C({domRef:Y,class:a.class,style:a.style},b),{},{active:y,eventKey:g}),r)}}});function Yu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.length,a=e.length;if(Math.abs(n-a)!==1)return{add:!1,key:null};function r(l,i){var o=new Map;l.forEach(function(s){o.set(s,!0)});var u=i.filter(function(s){return!o.has(s)});return u.length===1?u[0]:null}return n<a?{add:!0,key:r(t,e)}:{add:!1,key:r(e,t)}}function nr(t,e,n){var a=t.findIndex(function(o){return o.key===n}),r=t[a+1],l=e.findIndex(function(o){return o.key===n});if(r){var i=e.findIndex(function(o){return o.key===r.key});return e.slice(l+1,i)}return e.slice(l+1)}var Zu=["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"],ar={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ju=function(){},jt="RC_TREE_MOTION_".concat(Math.random()),Xn={key:jt},ll={key:jt,level:0,index:0,pos:"0",node:Xn,nodes:[Xn]},rr={parent:null,children:[],pos:ll.pos,data:Xn,title:null,key:jt,isStart:[],isEnd:[]};function lr(t,e,n,a){return e===!1||!n?t:t.slice(0,Math.ceil(n/a)+1)}function or(t){var e=t.key,n=t.pos;return an(e,n)}function Qu(t){for(var e=String(t.key),n=t;n.parent;)n=n.parent,e="".concat(n.key," > ").concat(e);return e}const ec=Ce({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Jo,setup:function(e,n){var a=n.expose,r=n.attrs,l=Y(),i=Y(),o=_r(),u=o.expandedKeys,s=o.flattenNodes;a({scrollTo:function(f){l.value.scrollTo(f)},getIndentWidth:function(){return i.value.offsetWidth}});var m=Ae(s.value),d=Ae([]),y=Y(null);function g(){m.value=s.value,d.value=[],y.value=null,e.onListChangeEnd()}var b=oa();Le([function(){return u.value.slice()},s],function(p,f){var h=be(p,2),x=h[0],S=h[1],w=be(f,2),N=w[0],z=w[1],A=Yu(N,x);if(A.key!==null){var L=e.virtual,R=e.height,B=e.itemHeight;if(A.add){var I=z.findIndex(function(Z){var de=Z.key;return de===A.key}),E=lr(nr(z,S,A.key),L,R,B),$=z.slice();$.splice(I+1,0,rr),m.value=$,d.value=E,y.value="show"}else{var j=S.findIndex(function(Z){var de=Z.key;return de===A.key}),V=lr(nr(S,z,A.key),L,R,B),U=S.slice();U.splice(j+1,0,rr),m.value=U,d.value=V,y.value="hide"}}else z!==S&&(m.value=S)}),Le(function(){return b.value.dragging},function(p){p||g()});var k=K(function(){return e.motion===void 0?m.value:s.value}),c=function(){e.onActiveChange(null)};return function(){var p=C(C({},e),r),f=p.prefixCls;p.selectable,p.checkable;var h=p.disabled,x=p.motion,S=p.height,w=p.itemHeight,N=p.virtual,z=p.focusable,A=p.activeItem,L=p.focused,R=p.tabindex,B=p.onKeydown,I=p.onFocus,E=p.onBlur,$=p.onListChangeStart;p.onListChangeEnd;var j=ut(p,Zu);return v(Lt,null,[L&&A&&v("span",{style:ar,"aria-live":"assertive"},[Qu(A)]),v("div",null,[v("input",{style:ar,disabled:z===!1||h,tabindex:z!==!1?R:null,onKeydown:B,onFocus:I,onBlur:E,value:"",onChange:Ju,"aria-label":"for screen reader"},null)]),v("div",{class:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[v("div",{class:"".concat(f,"-indent")},[v("div",{ref:i,class:"".concat(f,"-indent-unit")},null)])]),v(Gl,C(C({},nn(j,["onActiveChange"])),{},{data:k.value,itemKey:or,height:S,fullHeight:!1,virtual:N,itemHeight:w,prefixCls:"".concat(f,"-list"),ref:l,onVisibleChange:function(U,Z){var de=new Set(U),W=Z.filter(function(G){return!de.has(G)});W.some(function(G){return or(G)===jt})&&g()}}),{default:function(U){var Z=U.pos,de=kt({},(kr(U.data),U.data)),W=U.title,G=U.key,X=U.isStart,ne=U.isEnd,se=an(G,Z);return delete de.key,delete de.children,v(qu,C(C({},de),{},{eventKey:se,title:W,active:!!A&&G===A.key,data:U.data,isStart:X,isEnd:ne,motion:x,motionNodes:G===jt?d.value:null,motionType:y.value,onMotionStart:$,onMotionEnd:g,onMousemove:c}),null)}})])}}});function tc(t){var e=t.dropPosition,n=t.dropLevelOffset,a=t.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(e){case-1:r.top=0,r.left="".concat(-n*a,"px");break;case 1:r.bottom=0,r.left="".concat(-n*a,"px");break;case 0:r.bottom=0,r.left="".concat(a);break}return v("div",{style:r},null)}var nc=10;const ac=Ce({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:Yt(Lr(),{prefixCls:"vc-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:tc,allowDrop:function(){return!0}}),setup:function(e,n){var a=n.attrs,r=n.slots,l=n.expose,i=Y(!1),o={},u=Y(),s=Ae([]),m=Ae([]),d=Ae([]),y=Ae([]),g=Ae([]),b=Ae([]),k={},c=Dt({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),p=Ae([]);Le([function(){return e.treeData},function(){return e.children}],function(){p.value=e.treeData!==void 0?hn(e.treeData).slice():In(hn(e.children))},{immediate:!0,deep:!0});var f=Ae({}),h=Y(!1),x=Y(null),S=Y(!1),w=K(function(){return dn(e.fieldNames)}),N=Y(),z=null,A=null,L=null,R=K(function(){return{expandedKeysSet:B.value,selectedKeysSet:I.value,loadedKeysSet:E.value,loadingKeysSet:$.value,checkedKeysSet:j.value,halfCheckedKeysSet:V.value,dragOverNodeKey:c.dragOverNodeKey,dropPosition:c.dropPosition,keyEntities:f.value}}),B=K(function(){return new Set(b.value)}),I=K(function(){return new Set(s.value)}),E=K(function(){return new Set(y.value)}),$=K(function(){return new Set(g.value)}),j=K(function(){return new Set(m.value)}),V=K(function(){return new Set(d.value)});Ve(function(){if(p.value){var H=ua(p.value,{fieldNames:w.value});f.value=C(M({},jt,ll),H.keyEntities)}});var U=!1;Le([function(){return e.expandedKeys},function(){return e.autoExpandParent},f],function(H,T){var _=be(H,2);_[0];var D=_[1],q=be(T,2);q[0];var te=q[1],ee=b.value;if(e.expandedKeys!==void 0||U&&D!==te)ee=e.autoExpandParent||!U&&e.defaultExpandParent?Rn(e.expandedKeys,f.value):e.expandedKeys;else if(!U&&e.defaultExpandAll){var P=C({},f.value);delete P[jt],ee=Object.keys(P).map(function(O){return P[O].key})}else!U&&e.defaultExpandedKeys&&(ee=e.autoExpandParent||e.defaultExpandParent?Rn(e.defaultExpandedKeys,f.value):e.defaultExpandedKeys);ee&&(b.value=ee),U=!0},{immediate:!0});var Z=Ae([]);Ve(function(){Z.value=oi(p.value,b.value,w.value)}),Ve(function(){e.selectable&&(e.selectedKeys!==void 0?s.value=Fa(e.selectedKeys,e):!U&&e.defaultSelectedKeys&&(s.value=Fa(e.defaultSelectedKeys,e)))});var de=Mr(f),W=de.maxLevel,G=de.levelEntities;Ve(function(){if(e.checkable){var H;if(e.checkedKeys!==void 0?H=pn(e.checkedKeys)||{}:!U&&e.defaultCheckedKeys?H=pn(e.defaultCheckedKeys)||{}:p.value&&(H=pn(e.checkedKeys)||{checkedKeys:m.value,halfCheckedKeys:d.value}),H){var T=H,_=T.checkedKeys,D=_===void 0?[]:_,q=T.halfCheckedKeys,te=q===void 0?[]:q;if(!e.checkStrictly){var ee=Vt(D,!0,f.value,W.value,G.value);D=ee.checkedKeys,te=ee.halfCheckedKeys}m.value=D,d.value=te}}}),Ve(function(){e.loadedKeys&&(y.value=e.loadedKeys)});var X=function(){kt(c,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},ne=function(T){N.value.scrollTo(T)};Le(function(){return e.activeKey},function(){e.activeKey!==void 0&&(x.value=e.activeKey)},{immediate:!0}),Le(x,function(H){At(function(){H!==null&&ne({key:H})})},{immediate:!0,flush:"post"});var se=function(T){e.expandedKeys===void 0&&(b.value=T)},oe=function(){c.draggingNodeKey!==null&&kt(c,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),z=null,L=null},pe=function(T,_){var D=e.onDragend;c.dragOverNodeKey=null,oe(),D==null||D({event:T,node:_.eventData}),A=null},we=function H(T){pe(T,null),window.removeEventListener("dragend",H)},ve=function(T,_){var D=e.onDragstart,q=_.eventKey,te=_.eventData;A=_,z={x:T.clientX,y:T.clientY};var ee=Tt(b.value,q);c.draggingNodeKey=q,c.dragChildrenKeys=ni(q,f.value),u.value=N.value.getIndentWidth(),se(ee),window.addEventListener("dragend",we),D&&D({event:T,node:te})},ge=function(T,_){var D=e.onDragenter,q=e.onExpand,te=e.allowDrop,ee=e.direction,P=_.pos,O=_.eventKey;if(L!==O&&(L=O),!A){X();return}var J=Ma(T,A,_,u.value,z,te,Z.value,f.value,B.value,ee),ie=J.dropPosition,re=J.dropLevelOffset,le=J.dropTargetKey,ue=J.dropContainerKey,ye=J.dropTargetPos,he=J.dropAllowed,Ee=J.dragOverNodeKey;if(c.dragChildrenKeys.indexOf(le)!==-1||!he){X();return}if(o||(o={}),Object.keys(o).forEach(function(xe){clearTimeout(o[xe])}),A.eventKey!==_.eventKey&&(o[P]=window.setTimeout(function(){if(c.draggingNodeKey!==null){var xe=b.value.slice(),Ie=f.value[_.eventKey];Ie&&(Ie.children||[]).length&&(xe=It(b.value,_.eventKey)),se(xe),q&&q(xe,{node:_.eventData,expanded:!0,nativeEvent:T})}},800)),A.eventKey===le&&re===0){X();return}kt(c,{dragOverNodeKey:Ee,dropPosition:ie,dropLevelOffset:re,dropTargetKey:le,dropContainerKey:ue,dropTargetPos:ye,dropAllowed:he}),D&&D({event:T,node:_.eventData,expandedKeys:b.value})},me=function(T,_){var D=e.onDragover,q=e.allowDrop,te=e.direction;if(A){var ee=Ma(T,A,_,u.value,z,q,Z.value,f.value,B.value,te),P=ee.dropPosition,O=ee.dropLevelOffset,J=ee.dropTargetKey,ie=ee.dropContainerKey,re=ee.dropAllowed,le=ee.dropTargetPos,ue=ee.dragOverNodeKey;c.dragChildrenKeys.indexOf(J)!==-1||!re||(A.eventKey===J&&O===0?c.dropPosition===null&&c.dropLevelOffset===null&&c.dropTargetKey===null&&c.dropContainerKey===null&&c.dropTargetPos===null&&c.dropAllowed===!1&&c.dragOverNodeKey===null||X():P===c.dropPosition&&O===c.dropLevelOffset&&J===c.dropTargetKey&&ie===c.dropContainerKey&&le===c.dropTargetPos&&re===c.dropAllowed&&ue===c.dragOverNodeKey||kt(c,{dropPosition:P,dropLevelOffset:O,dropTargetKey:J,dropContainerKey:ie,dropTargetPos:le,dropAllowed:re,dragOverNodeKey:ue}),D&&D({event:T,node:_.eventData}))}},Se=function(T,_){L===_.eventKey&&!T.currentTarget.contains(T.relatedTarget)&&(X(),L=null);var D=e.onDragleave;D&&D({event:T,node:_.eventData})},fe=function(T,_){var D,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,te=c.dragChildrenKeys,ee=c.dropPosition,P=c.dropTargetKey,O=c.dropTargetPos,J=c.dropAllowed;if(J){var ie=e.onDrop;if(c.dragOverNodeKey=null,oe(),P!==null){var re=C(C({},_n(P,hn(R.value))),{},{active:((D=ae.value)===null||D===void 0?void 0:D.key)===P,data:f.value[P].node});te.indexOf(P);var le=ia(O),ue={event:T,node:Dn(re),dragNode:A?A.eventData:null,dragNodesKeys:[A.eventKey].concat(te),dropToGap:ee!==0,dropPosition:ee+Number(le[le.length-1])};q||ie==null||ie(ue),A=null}}},Re=function(T,_){var D=e.onClick;D&&D(T,_)},Ue=function(T,_){var D=e.onDblclick;D&&D(T,_)},ze=function(T,_){var D=s.value,q=e.onSelect,te=e.multiple,ee=_.selected,P=_[w.value.key],O=!ee;O?te?D=It(D,P):D=[P]:D=Tt(D,P);var J=f.value,ie=D.map(function(re){var le=J[re];return le?le.node:null}).filter(function(re){return re});e.selectedKeys===void 0&&(s.value=D),q&&q(D,{event:"select",selected:O,node:_,selectedNodes:ie,nativeEvent:T})},Be=function(T,_,D){var q=e.checkStrictly,te=e.onCheck,ee=_[w.value.key],P,O={event:"check",node:_,checked:D,nativeEvent:T},J=f.value;if(q){var ie=D?It(m.value,ee):Tt(m.value,ee),re=Tt(d.value,ee);P={checked:ie,halfChecked:re},O.checkedNodes=ie.map(function(xe){return J[xe]}).filter(function(xe){return xe}).map(function(xe){return xe.node}),e.checkedKeys===void 0&&(m.value=ie)}else{var le=Vt([].concat(Te(m.value),[ee]),!0,J,W.value,G.value),ue=le.checkedKeys,ye=le.halfCheckedKeys;if(!D){var he=new Set(ue);he.delete(ee);var Ee=Vt(Array.from(he),{checked:!1,halfCheckedKeys:ye},J,W.value,G.value);ue=Ee.checkedKeys,ye=Ee.halfCheckedKeys}P=ue,O.checkedNodes=[],O.checkedNodesPositions=[],O.halfCheckedKeys=ye,ue.forEach(function(xe){var Ie=J[xe];if(Ie){var Pe=Ie.node,De=Ie.pos;O.checkedNodes.push(Pe),O.checkedNodesPositions.push({node:Pe,pos:De})}}),e.checkedKeys===void 0&&(m.value=ue,d.value=ye)}te&&te(P,O)},Fe=function(T){var _=T[w.value.key],D=new Promise(function(q,te){var ee=e.loadData,P=e.onLoad;if(!ee||E.value.has(_)||$.value.has(_))return null;var O=ee(T);O.then(function(){var J=It(y.value,_),ie=Tt(g.value,_);P&&P(J,{event:"load",node:T}),e.loadedKeys===void 0&&(y.value=J),g.value=ie,q()}).catch(function(J){var ie=Tt(g.value,_);if(g.value=ie,k[_]=(k[_]||0)+1,k[_]>=nc){var re=It(y.value,_);e.loadedKeys===void 0&&(y.value=re),q()}te(J)}),g.value=It(g.value,_)});return D.catch(function(){}),D},Ke=function(T,_){var D=e.onMouseenter;D&&D({event:T,node:_})},Oe=function(T,_){var D=e.onMouseleave;D&&D({event:T,node:_})},Me=function(T,_){var D=e.onRightClick;D&&(T.preventDefault(),D({event:T,node:_}))},Ye=function(T){var _=e.onFocus;h.value=!0,_&&_(T)},at=function(T){var _=e.onBlur;h.value=!1,_e(null),_&&_(T)},Ze=function(T,_){var D=b.value,q=e.onExpand,te=e.loadData,ee=_.expanded,P=_[w.value.key];if(!S.value){D.indexOf(P);var O=!ee;if(O?D=It(D,P):D=Tt(D,P),se(D),q&&q(D,{node:_,expanded:O,nativeEvent:T}),O&&te){var J=Fe(_);J&&J.then(function(){}).catch(function(ie){var re=Tt(b.value,P);se(re),Promise.reject(ie)})}}},Je=function(){S.value=!0},We=function(){setTimeout(function(){S.value=!1})},_e=function(T){var _=e.onActiveChange;x.value!==T&&(e.activeKey!==void 0&&(x.value=T),T!==null&&ne({key:T}),_&&_(T))},ae=K(function(){return x.value===null?null:Z.value.find(function(H){var T=H.key;return T===x.value})||null}),F=function(T){var _=Z.value.findIndex(function(te){var ee=te.key;return ee===x.value});_===-1&&T<0&&(_=Z.value.length),_=(_+T+Z.value.length)%Z.value.length;var D=Z.value[_];if(D){var q=D.key;_e(q)}else _e(null)},Q=K(function(){return Dn(C(C({},_n(x.value,R.value)),{},{data:ae.value.data,active:!0}))}),ce=function(T){var _=e.onKeydown,D=e.checkable,q=e.selectable;switch(T.which){case nt.UP:{F(-1),T.preventDefault();break}case nt.DOWN:{F(1),T.preventDefault();break}}var te=ae.value;if(te&&te.data){var ee=te.data.isLeaf===!1||!!(te.data.children||[]).length,P=Q.value;switch(T.which){case nt.LEFT:{ee&&B.value.has(x.value)?Ze({},P):te.parent&&_e(te.parent.key),T.preventDefault();break}case nt.RIGHT:{ee&&!B.value.has(x.value)?Ze({},P):te.children&&te.children.length&&_e(te.children[0].key),T.preventDefault();break}case nt.ENTER:case nt.SPACE:{D&&!P.disabled&&P.checkable!==!1&&!P.disableCheckbox?Be({},P,!j.value.has(x.value)):!D&&q&&!P.disabled&&P.selectable!==!1&&ze({},P);break}}}_&&_(T)};return l({onNodeExpand:Ze,scrollTo:ne,onKeydown:ce,selectedKeys:K(function(){return s.value}),checkedKeys:K(function(){return m.value}),halfCheckedKeys:K(function(){return d.value}),loadedKeys:K(function(){return y.value}),loadingKeys:K(function(){return g.value}),expandedKeys:K(function(){return b.value})}),Sr(function(){window.removeEventListener("dragend",we),i.value=!0}),qo({expandedKeys:b,selectedKeys:s,loadedKeys:y,loadingKeys:g,checkedKeys:m,halfCheckedKeys:d,expandedKeysSet:B,selectedKeysSet:I,loadedKeysSet:E,loadingKeysSet:$,checkedKeysSet:j,halfCheckedKeysSet:V,flattenNodes:Z}),function(){var H,T=c.draggingNodeKey,_=c.dropLevelOffset,D=c.dropContainerKey,q=c.dropTargetKey,te=c.dropPosition,ee=c.dragOverNodeKey,P=e.prefixCls,O=e.showLine,J=e.focusable,ie=e.tabindex,re=ie===void 0?0:ie,le=e.selectable,ue=e.showIcon,ye=e.icon,he=ye===void 0?r.icon:ye,Ee=e.switcherIcon,xe=e.draggable,Ie=e.checkable,Pe=e.checkStrictly,De=e.disabled,$e=e.motion,Qe=e.loadData,je=e.filterTreeNode,it=e.height,rt=e.itemHeight,lt=e.virtual,et=e.dropIndicatorRender,Xe=e.onContextmenu,gt=e.onScroll,He=e.direction,bt=a.class,Kt=a.style,Ht=aa(C(C({},e),a),{aria:!0,data:!0}),dt;return xe&&(qe(xe)==="object"?dt=xe:typeof xe=="function"?dt={nodeDraggable:xe}:dt={}),v(Xo,{value:{prefixCls:P,selectable:le,showIcon:ue,icon:he,switcherIcon:Ee,draggable:dt,draggingNodeKey:T,checkable:Ie,customCheckable:r.checkable,checkStrictly:Pe,disabled:De,keyEntities:f.value,dropLevelOffset:_,dropContainerKey:D,dropTargetKey:q,dropPosition:te,dragOverNodeKey:ee,dragging:T!==null,indent:u.value,direction:He,dropIndicatorRender:et,loadData:Qe,filterTreeNode:je,onNodeClick:Re,onNodeDoubleClick:Ue,onNodeExpand:Ze,onNodeSelect:ze,onNodeCheck:Be,onNodeLoad:Fe,onNodeMouseEnter:Ke,onNodeMouseLeave:Oe,onNodeContextMenu:Me,onNodeDragStart:ve,onNodeDragEnter:ge,onNodeDragOver:me,onNodeDragLeave:Se,onNodeDragEnd:pe,onNodeDrop:fe,slots:r}},{default:function(){return[v("div",{role:"tree",class:ke(P,bt,(H={},M(H,"".concat(P,"-show-line"),O),M(H,"".concat(P,"-focused"),h.value),M(H,"".concat(P,"-active-focused"),x.value!==null),H))},[v(ec,C({ref:N,prefixCls:P,style:Kt,disabled:De,selectable:le,checkable:!!Ie,motion:$e,height:it,itemHeight:rt,virtual:lt,focusable:J,focused:h.value,tabindex:re,activeItem:ae.value,onFocus:Ye,onBlur:at,onKeydown:ce,onActiveChange:_e,onListChangeStart:Je,onListChangeEnd:We,onContextmenu:Xe,onScroll:gt},Ht),null)])]}})}}});var rc={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 lc=rc;function ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){oc(t,r,n[r])})}return t}function oc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ha=function(e,n){var a=ir({},e,n.attrs);return v(pt,ir({},a,{icon:lc}),null)};ha.displayName="FileOutlined";ha.inheritAttrs=!1;const ol=ha;var ic={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 uc=ic;function ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){cc(t,r,n[r])})}return t}function cc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pa=function(e,n){var a=ur({},e,n.attrs);return v(pt,ur({},a,{icon:uc}),null)};pa.displayName="MinusSquareOutlined";pa.inheritAttrs=!1;const dc=pa;var sc={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 vc=sc;function cr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){fc(t,r,n[r])})}return t}function fc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ga=function(e,n){var a=cr({},e,n.attrs);return v(pt,cr({},a,{icon:vc}),null)};ga.displayName="PlusSquareOutlined";ga.inheritAttrs=!1;const yc=ga;var mc={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 hc=mc;function dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){pc(t,r,n[r])})}return t}function pc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ba=function(e,n){var a=dr({},e,n.attrs);return v(pt,dr({},a,{icon:hc}),null)};ba.displayName="CaretDownFilled";ba.inheritAttrs=!1;const gc=ba;function bc(t,e,n,a){var r=a.isLeaf,l=a.expanded,i=a.loading,o=e;if(i)return v(Dl,{class:"".concat(t,"-switcher-loading-icon")},null);var u;n&&qe(n)==="object"&&(u=n.showLeafIcon);var s=null,m="".concat(t,"-switcher-icon");return r?(n&&(qe(n)==="object"&&!u?s=v("span",{class:"".concat(t,"-switcher-leaf-line")},null):s=v(ol,{class:"".concat(t,"-switcher-line-icon")},null)),s):(s=v(gc,{class:m},null),n&&(s=l?v(dc,{class:"".concat(t,"-switcher-line-icon")},null):v(yc,{class:"".concat(t,"-switcher-line-icon")},null)),typeof e=="function"?o=e(C(C({},a),{},{defaultIcon:s,switcherCls:m})):Jn(o)&&(o=pr(o,{class:m})),o||s)}var sr=4;function xc(t){var e,n=t.dropPosition,a=t.dropLevelOffset,r=t.prefixCls,l=t.indent,i=t.direction,o=i===void 0?"ltr":i,u=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",m=(e={},M(e,u,"".concat(-a*l+sr,"px")),M(e,s,0),e);switch(n){case-1:m.top="".concat(-3,"px");break;case 1:m.bottom="".concat(-3,"px");break;default:m.bottom="".concat(-3,"px"),m[u]="".concat(l+sr,"px");break}return v("div",{style:m,class:"".concat(r,"-drop-indicator")},null)}var il=function(){var e=Lr();return C(C({},e),{},{showLine:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandParent:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},checkedKeys:{type:[Array,Object]},defaultCheckedKeys:{type:Array},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},selectable:{type:Boolean,default:void 0},loadedKeys:{type:Array},draggable:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},icon:{type:Function},switcherIcon:Ne.any,prefixCls:String,replaceFields:{type:Object},blockNode:{type:Boolean,default:void 0},openAnimation:Ne.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Function,"onUpdate:checkedKeys":Function,"onUpdate:expandedKeys":Function})};const un=Ce({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Yt(il(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,n){var a=n.attrs,r=n.expose,l=n.emit,i=n.slots;gr(!(e.treeData===void 0&&i.default));var o=vt("tree",e),u=o.prefixCls,s=o.direction,m=o.virtual,d=Y(),y=function(p){var f;(f=d.value)===null||f===void 0||f.scrollTo(p)};r({treeRef:d,onNodeExpand:function(){for(var p,f=arguments.length,h=new Array(f),x=0;x<f;x++)h[x]=arguments[x];(p=d.value)===null||p===void 0||p.onNodeExpand.apply(p,h)},scrollTo:y,selectedKeys:K(function(){var c;return(c=d.value)===null||c===void 0?void 0:c.selectedKeys}),checkedKeys:K(function(){var c;return(c=d.value)===null||c===void 0?void 0:c.checkedKeys}),halfCheckedKeys:K(function(){var c;return(c=d.value)===null||c===void 0?void 0:c.halfCheckedKeys}),loadedKeys:K(function(){var c;return(c=d.value)===null||c===void 0?void 0:c.loadedKeys}),loadingKeys:K(function(){var c;return(c=d.value)===null||c===void 0?void 0:c.loadingKeys}),expandedKeys:K(function(){var c;return(c=d.value)===null||c===void 0?void 0:c.expandedKeys})}),Ve(function(){st(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});var g=function(p,f){l("update:checkedKeys",p),l("check",p,f)},b=function(p,f){l("update:expandedKeys",p),l("expand",p,f)},k=function(p,f){l("update:selectedKeys",p),l("select",p,f)};return function(){var c,p=e.showIcon,f=e.showLine,h=e.switcherIcon,x=h===void 0?i.switcherIcon:h,S=e.icon,w=S===void 0?i.icon:S,N=e.blockNode,z=e.checkable,A=e.selectable,L=e.fieldNames,R=L===void 0?e.replaceFields:L,B=e.motion,I=B===void 0?e.openAnimation:B,E=e.itemHeight,$=E===void 0?28:E,j=e.onDoubleclick,V=e.onDblclick,U=C(C(C({},a),nn(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{},{showLine:!!f,dropIndicatorRender:xc,fieldNames:R,icon:w,itemHeight:$}),Z=i.default?Xt(i.default()):void 0;return v(ac,C(C({},U),{},{virtual:m.value,motion:I,ref:d,prefixCls:u.value,class:ke((c={},M(c,"".concat(u.value,"-icon-hide"),!p),M(c,"".concat(u.value,"-block-node"),N),M(c,"".concat(u.value,"-unselectable"),!A),M(c,"".concat(u.value,"-rtl"),s.value==="rtl"),c),a.class),direction:s.value,checkable:z,selectable:A,switcherIcon:function(W){return bc(u.value,x,f,W)},onCheck:g,onExpand:b,onSelect:k,onDblclick:V||j,children:Z}),C(C({},i),{},{checkable:function(){return v("span",{class:"".concat(u.value,"-checkbox-inner")},null)}}))}}});var Cc={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 Sc=Cc;function vr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){kc(t,r,n[r])})}return t}function kc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xa=function(e,n){var a=vr({},e,n.attrs);return v(pt,vr({},a,{icon:Sc}),null)};xa.displayName="FolderOpenOutlined";xa.inheritAttrs=!1;const wc=xa;var Kc={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 Ec=Kc;function fr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){Pc(t,r,n[r])})}return t}function Pc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ca=function(e,n){var a=fr({},e,n.attrs);return v(pt,fr({},a,{icon:Ec}),null)};Ca.displayName="FolderOutlined";Ca.inheritAttrs=!1;const Tc=Ca;var Nt;(function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End"})(Nt||(Nt={}));function Sa(t,e,n){function a(r){var l=r[e.key],i=r[e.children];n(l,r)!==!1&&Sa(i||[],e,n)}t.forEach(a)}function Oc(t){var e=t.treeData,n=t.expandedKeys,a=t.startKey,r=t.endKey,l=t.fieldNames,i=l===void 0?{title:"title",key:"key",children:"children"}:l,o=[],u=Nt.None;if(a&&a===r)return[a];if(!a||!r)return[];function s(m){return m===a||m===r}return Sa(e,i,function(m){if(u===Nt.End)return!1;if(s(m)){if(o.push(m),u===Nt.None)u=Nt.Start;else if(u===Nt.Start)return u=Nt.End,!1}else u===Nt.Start&&o.push(m);return n.indexOf(m)!==-1}),o}function bn(t,e,n){var a=Te(e),r=[];return Sa(t,n,function(l,i){var o=a.indexOf(l);return o!==-1&&(r.push(i),a.splice(o,1)),!!a.length}),r}var Nc=["icon","blockNode"],Rc=function(){return C(C({},il()),{},{expandAction:{type:[Boolean,String]}})};function Ic(t){var e=t.isLeaf,n=t.expanded;return e?v(ol,null,null):n?v(wc,null,null):v(Tc,null,null)}const xn=Ce({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Yt(Rc(),{showIcon:!0,expandAction:"click"}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,n){var a,r=n.attrs,l=n.slots,i=n.emit,o=n.expose,u=Y(e.treeData||In(Xt((a=l.default)===null||a===void 0?void 0:a.call(l))));Le(function(){return e.treeData},function(){u.value=e.treeData}),na(function(){At(function(){if(e.treeData===void 0&&l.default){var R;u.value=In(Xt((R=l.default)===null||R===void 0?void 0:R.call(l)))}})});var s=Y(),m=Y(),d=K(function(){return dn(e.fieldNames)}),y=Y(),g=function(B){var I;(I=y.value)===null||I===void 0||I.scrollTo(B)};o({scrollTo:g,selectedKeys:K(function(){var R;return(R=y.value)===null||R===void 0?void 0:R.selectedKeys}),checkedKeys:K(function(){var R;return(R=y.value)===null||R===void 0?void 0:R.checkedKeys}),halfCheckedKeys:K(function(){var R;return(R=y.value)===null||R===void 0?void 0:R.halfCheckedKeys}),loadedKeys:K(function(){var R;return(R=y.value)===null||R===void 0?void 0:R.loadedKeys}),loadingKeys:K(function(){var R;return(R=y.value)===null||R===void 0?void 0:R.loadingKeys}),expandedKeys:K(function(){var R;return(R=y.value)===null||R===void 0?void 0:R.expandedKeys})});var b=function(){var B=ua(u.value,{fieldNames:d.value}),I=B.keyEntities,E;return e.defaultExpandAll?E=Object.keys(I):e.defaultExpandParent?E=Rn(e.expandedKeys||e.defaultExpandedKeys||[],I):E=e.expandedKeys||e.defaultExpandedKeys,E},k=Y(e.selectedKeys||e.defaultSelectedKeys||[]),c=Y(b());Le(function(){return e.selectedKeys},function(){e.selectedKeys!==void 0&&(k.value=e.selectedKeys)},{immediate:!0}),Le(function(){return e.expandedKeys},function(){e.expandedKeys!==void 0&&(c.value=e.expandedKeys)},{immediate:!0});var p=function(B,I){var E=I.isLeaf;E||B.shiftKey||B.metaKey||B.ctrlKey||y.value.onNodeExpand(B,I)},f=Ll(p,200,{leading:!0}),h=function(B,I){e.expandedKeys===void 0&&(c.value=B),i("update:expandedKeys",B),i("expand",B,I)},x=function(B,I){var E=e.expandAction;E==="click"&&f(B,I),i("click",B,I)},S=function(B,I){var E=e.expandAction;(E==="dblclick"||E==="doubleclick")&&f(B,I),i("doubleclick",B,I),i("dblclick",B,I)},w=function(B,I){var E=e.multiple,$=I.node,j=I.nativeEvent,V=$[d.value.key],U=C(C({},I),{},{selected:!0}),Z=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),de=j==null?void 0:j.shiftKey,W;E&&Z?(W=B,s.value=V,m.value=W,U.selectedNodes=bn(u.value,W,d.value)):E&&de?(W=Array.from(new Set([].concat(Te(m.value||[]),Te(Oc({treeData:u.value,expandedKeys:c.value,startKey:V,endKey:s.value,fieldNames:d.value}))))),U.selectedNodes=bn(u.value,W,d.value)):(W=[V],s.value=V,m.value=W,U.selectedNodes=bn(u.value,W,d.value)),i("update:selectedKeys",W),i("select",W,U),e.selectedKeys===void 0&&(k.value=W)},N=function(B,I){i("update:checkedKeys",B),i("check",B,I)},z=vt("tree",e),A=z.prefixCls,L=z.direction;return function(){var R=ke("".concat(A.value,"-directory"),M({},"".concat(A.value,"-directory-rtl"),L.value==="rtl"),r.class),B=e.icon,I=B===void 0?l.icon:B,E=e.blockNode,$=E===void 0?!0:E,j=ut(e,Nc);return v(un,C(C(C({},r),{},{icon:I||Ic,ref:y,blockNode:$},j),{},{prefixCls:A.value,class:R,expandedKeys:c.value,selectedKeys:k.value,onSelect:w,onClick:x,onDblclick:S,onExpand:h,onCheck:N}),l)}}});var Cn=Nn;const _c=kt(un,{DirectoryTree:xn,TreeNode:Cn,install:function(e){return e.component(un.name,un),e.component(Cn.name,Cn),e.component(xn.name,xn),e}});var Dc=Bt.SubMenu,Lc=Bt.Item;function Ac(t){return t.some(function(e){var n=e.children;return n&&n.length>0})}function ul(t,e){return typeof e=="string"||typeof e=="number"?e==null?void 0:e.toString().toLowerCase().includes(t.trim().toLowerCase()):!1}function cl(t){var e=t.filters,n=t.prefixCls,a=t.filteredKeys,r=t.filterMultiple,l=t.searchValue,i=t.filterSearch;return e.map(function(o,u){var s=String(o.value);if(o.children)return v(Dc,{key:s||u,title:o.text,popupClassName:"".concat(n,"-dropdown-submenu")},{default:function(){return[cl({filters:o.children,prefixCls:n,filteredKeys:a,filterMultiple:r,searchValue:l,filterSearch:i})]}});var m=r?Rt:yt,d=v(Lc,{key:o.value!==void 0?s:u},{default:function(){return[v(m,{checked:a.includes(s)},null),v("span",null,[o.text])]}});return l.trim()?typeof i=="function"?i(l,o)?d:void 0:ul(l,o.text)?d:void 0:d})}const Bc=Ce({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup:function(e,n){var a=n.slots,r=Wr(),l=K(function(){var W;return(W=e.filterMode)!==null&&W!==void 0?W:"menu"}),i=K(function(){var W;return(W=e.filterSearch)!==null&&W!==void 0?W:!1}),o=K(function(){return e.column.filterDropdownVisible}),u=Y(!1),s=K(function(){var W;return!!(e.filterState&&((W=e.filterState.filteredKeys)!==null&&W!==void 0&&W.length||e.filterState.forceFiltered))}),m=K(function(){var W;return yn((W=e.column)===null||W===void 0?void 0:W.filters)}),d=K(function(){var W=e.column,G=W.filterDropdown,X=W.slots,ne=X===void 0?{}:X,se=W.customFilterDropdown;return G||ne.filterDropdown&&r.value[ne.filterDropdown]||se&&r.value.customFilterDropdown}),y=K(function(){var W=e.column,G=W.filterIcon,X=W.slots,ne=X===void 0?{}:X;return G||ne.filterIcon&&r.value[ne.filterIcon]||r.value.customFilterIcon}),g=function(G){var X,ne;u.value=G,(X=(ne=e.column).onFilterDropdownVisibleChange)===null||X===void 0||X.call(ne,G)},b=K(function(){return typeof o.value=="boolean"?o.value:u.value}),k=K(function(){var W;return(W=e.filterState)===null||W===void 0?void 0:W.filteredKeys}),c=Ae([]),p=function(G){var X=G.selectedKeys;c.value=X},f=function(G,X){var ne=X.node,se=X.checked;e.filterMultiple?p({selectedKeys:G}):p({selectedKeys:se&&ne.key?[ne.key]:[]})};Le(k,function(){u.value&&p({selectedKeys:k.value||[]})},{immediate:!0});var h=Ae([]),x=Y(),S=function(G){x.value=setTimeout(function(){h.value=G})},w=function(){clearTimeout(x.value)};wt(function(){clearTimeout(x.value)});var N=Y(""),z=function(G){var X=G.target.value;N.value=X};Le(u,function(){u.value||(N.value="")});var A=function(G){var X=e.column,ne=e.columnKey,se=e.filterState,oe=G&&G.length?G:null;if(oe===null&&(!se||!se.filteredKeys)||no(oe,se==null?void 0:se.filteredKeys))return null;e.triggerFilter({column:X,key:ne,filteredKeys:oe})},L=function(){g(!1),A(c.value)},R=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},X=G.confirm,ne=G.closeDropdown;X&&A([]),ne&&g(!1),N.value="",c.value=[]},B=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},X=G.closeDropdown;X&&g(!1),A(c.value)},I=function(G){G&&k.value!==void 0&&(c.value=k.value||[]),g(G),!G&&!d.value&&L()},E=vt("",e),$=E.direction,j=function(G){if(G.target.checked){var X=m.value;c.value=X}else c.value=[]},V=function W(G){var X=G.filters;return(X||[]).map(function(ne,se){var oe=String(ne.value),pe={title:ne.text,key:ne.value!==void 0?oe:se};return ne.children&&(pe.children=W({filters:ne.children})),pe})},U=K(function(){return V({filters:e.column.filters})}),Z=K(function(){return ke(M({},"".concat(e.dropdownPrefixCls,"-menu-without-submenu"),!Ac(e.column.filters||[])))}),de=function(){var G=c.value,X=e.column,ne=e.locale,se=e.tablePrefixCls,oe=e.filterMultiple,pe=e.dropdownPrefixCls,we=e.getPopupContainer,ve=e.prefixCls;return(X.filters||[]).length===0?v(Ea,{image:Ea.PRESENTED_IMAGE_SIMPLE,description:ne.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):l.value==="tree"?v(Lt,null,[v(tr,{filterSearch:i.value,value:N.value,onChange:z,tablePrefixCls:se,locale:ne},null),v("div",{class:"".concat(se,"-filter-dropdown-tree")},[oe?v(Rt,{class:"".concat(se,"-filter-dropdown-checkall"),onChange:j,checked:G.length===m.value.length,indeterminate:G.length>0&&G.length<m.value.length},{default:function(){return[ne.filterCheckall]}}):null,v(_c,{checkable:!0,selectable:!1,blockNode:!0,multiple:oe,checkStrictly:!oe,class:"".concat(pe,"-menu"),onCheck:f,checkedKeys:G,selectedKeys:G,showIcon:!1,treeData:U.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:N.value.trim()?function(ge){return ul(N.value,ge.title)}:void 0},null)])]):v(Lt,null,[v(tr,{filterSearch:i.value,value:N.value,onChange:z,tablePrefixCls:se,locale:ne},null),v(Bt,{multiple:oe,prefixCls:"".concat(pe,"-menu"),class:Z.value,onClick:w,onSelect:p,onDeselect:p,selectedKeys:G,getPopupContainer:we,openKeys:h.value,onOpenChange:S},{default:function(){return cl({filters:X.filters||[],filterSearch:i.value,prefixCls:ve,filteredKeys:c.value,filterMultiple:oe,searchValue:N.value})}})])};return function(){var W,G=e.tablePrefixCls,X=e.prefixCls,ne=e.column,se=e.dropdownPrefixCls,oe=e.locale,pe=e.getPopupContainer,we;if(typeof d.value=="function")we=d.value({prefixCls:"".concat(se,"-custom"),setSelectedKeys:function(fe){return p({selectedKeys:fe})},selectedKeys:c.value,confirm:B,clearFilters:R,filters:ne.filters,visible:b.value,column:ne.__originColumn__});else if(d.value)we=d.value;else{var ve=c.value;we=v(Lt,null,[de(),v("div",{class:"".concat(X,"-dropdown-btns")},[v(Ka,{type:"link",size:"small",disabled:ve.length===0,onClick:function(){return R()}},{default:function(){return[oe.filterReset]}}),v(Ka,{type:"primary",size:"small",onClick:L},{default:function(){return[oe.filterConfirm]}})])])}var ge=v(Uu,{class:"".concat(X,"-dropdown")},{default:function(){return[we]}}),me;return typeof y.value=="function"?me=y.value({filtered:s.value,column:ne.__originColumn__}):y.value?me=y.value:me=v(Gu,null,null),v("div",{class:"".concat(X,"-column")},[v("span",{class:"".concat(G,"-column-title")},[(W=a.default)===null||W===void 0?void 0:W.call(a)]),v(ra,{overlay:ge,trigger:["click"],visible:b.value,onVisibleChange:I,getPopupContainer:pe,placement:$.value==="rtl"?"bottomLeft":"bottomRight"},{default:function(){return[v("span",{role:"button",tabindex:-1,class:ke("".concat(X,"-trigger"),{active:s.value}),onClick:function(Re){Re.stopPropagation()}},[me])]}})])}}});function qn(t,e,n){var a=[];return(t||[]).forEach(function(r,l){var i,o=fn(l,n),u=r.filterDropdown||(r==null||(i=r.slots)===null||i===void 0?void 0:i.filterDropdown)||r.customFilterDropdown;if(r.filters||u||"onFilter"in r)if("filteredValue"in r){var s=r.filteredValue;if(!u){var m,d;s=(m=(d=s)===null||d===void 0?void 0:d.map(String))!==null&&m!==void 0?m:s}a.push({column:r,key:qt(r,o),filteredKeys:s,forceFiltered:r.filtered})}else a.push({column:r,key:qt(r,o),filteredKeys:e&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(a=[].concat(Te(a),Te(qn(r.children,e,o))))}),a}function dl(t,e,n,a,r,l,i,o){return n.map(function(u,s){var m,d=fn(s,o),y=u.filterMultiple,g=y===void 0?!0:y,b=u.filterMode,k=u.filterSearch,c=u,p=u.filterDropdown||(u==null||(m=u.slots)===null||m===void 0?void 0:m.filterDropdown)||u.customFilterDropdown;if(c.filters||p){var f=qt(c,d),h=a.find(function(x){var S=x.key;return f===S});c=C(C({},c),{},{title:function(S){return v(Bc,{tablePrefixCls:t,prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:e,column:c,columnKey:f,filterState:h,filterMultiple:g,filterMode:b,filterSearch:k,triggerFilter:r,locale:i,getPopupContainer:l},{default:function(){return[ya(u.title,S)]}})}})}return"children"in c&&(c=C(C({},c),{},{children:dl(t,e,c.children,a,r,l,i,d)})),c})}function yn(t){var e=[];return(t||[]).forEach(function(n){var a=n.value,r=n.children;e.push(a),r&&(e=[].concat(Te(e),Te(yn(r))))}),e}function yr(t){var e={};return t.forEach(function(n){var a,r=n.key,l=n.filteredKeys,i=n.column,o=i.filterDropdown||(i==null||(a=i.slots)===null||a===void 0?void 0:a.filterDropdown)||i.customFilterDropdown,u=i.filters;if(o)e[r]=l||null;else if(Array.isArray(l)){var s=yn(u);e[r]=s.filter(function(m){return l.includes(String(m))})}else e[r]=null}),e}function mr(t,e){return e.reduce(function(n,a){var r=a.column,l=r.onFilter,i=r.filters,o=a.filteredKeys;return l&&o&&o.length?n.filter(function(u){return o.some(function(s){var m=yn(i),d=m.findIndex(function(g){return String(g)===String(s)}),y=d!==-1?m[d]:s;return l(y,u)})}):n},t)}function Mc(t){var e=t.prefixCls,n=t.dropdownPrefixCls,a=t.mergedColumns,r=t.locale,l=t.onFilterChange,i=t.getPopupContainer,o=Ge(qn(a.value,!0)),u=be(o,2),s=u[0],m=u[1],d=K(function(){var k=qn(a.value,!1),c=k.every(function(f){var h=f.filteredKeys;return h===void 0});if(c)return s.value;var p=k.every(function(f){var h=f.filteredKeys;return h!==void 0});return st(c||p,"Table","`FilteredKeys` should all be controlled or not controlled."),k}),y=K(function(){return yr(d.value)}),g=function(c){var p=d.value.filter(function(f){var h=f.key;return h!==c.key});p.push(c),m(p),l(yr(p),p)},b=function(c){return dl(e.value,n.value,c,d.value,g,i.value,r.value)};return[b,d,y]}function sl(t,e){return t.map(function(n){var a=C({},n);return a.title=ya(a.title,e),"children"in a&&(a.children=sl(a.children,e)),a})}function Fc(t){var e=function(a){return sl(a,t.value)};return[e]}function $c(t){return function(n){var a,r=n.prefixCls,l=n.onExpand,i=n.record,o=n.expanded,u=n.expandable,s="".concat(r,"-row-expand-icon");return v("button",{type:"button",onClick:function(d){l(i,d),d.stopPropagation()},class:ke(s,(a={},M(a,"".concat(s,"-spaced"),!u),M(a,"".concat(s,"-expanded"),u&&o),M(a,"".concat(s,"-collapsed"),u&&!o),a)),"aria-label":o?t.collapse:t.expand},null)}}function vl(t,e){var n=e.value;return t.map(function(a){var r;if(a===Ot||a===_t)return a;var l=C({},a),i=l.slots,o=i===void 0?{}:i;return l.__originColumn__=a,st(!("slots"in l),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(o).forEach(function(u){var s=o[u];l[u]===void 0&&n[s]&&(l[u]=n[s])}),e.value.headerCell&&!((r=a.slots)!==null&&r!==void 0&&r.title)&&(l.title=ta(e.value,"headerCell",{title:a.title,column:a},function(){return[a.title]})),"children"in l&&(l.children=vl(l.children,e)),l})}function jc(t){var e=function(a){return vl(a,t)};return[e]}var Hc=[],zc=function(){return{prefixCls:{type:String,default:void 0},columns:{type:Array,default:void 0},rowKey:{type:[String,Function],default:void 0},tableLayout:{type:String,default:void 0},rowClassName:{type:[String,Function],default:void 0},title:{type:Function,default:void 0},footer:{type:Function,default:void 0},id:{type:String,default:void 0},showHeader:{type:Boolean,default:void 0},components:{type:Object,default:void 0},customRow:{type:Function,default:void 0},customHeaderRow:{type:Function,default:void 0},direction:{type:String,default:void 0},expandFixed:{type:[Boolean,String],default:void 0},expandColumnWidth:{type:Number,default:void 0},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:void 0},expandedRowRender:{type:Function,default:void 0},expandRowByClick:{type:Boolean,default:void 0},expandIcon:{type:Function,default:void 0},onExpand:{type:Function,default:void 0},onExpandedRowsChange:{type:Function,default:void 0},"onUpdate:expandedRowKeys":{type:Function,default:void 0},defaultExpandAllRows:{type:Boolean,default:void 0},indentSize:{type:Number,default:void 0},expandIconColumnIndex:{type:Number,default:void 0},showExpandColumn:{type:Boolean,default:void 0},expandedRowClassName:{type:Function,default:void 0},childrenColumnName:{type:String,default:void 0},rowExpandable:{type:Function,default:void 0},sticky:{type:[Boolean,Object],default:void 0},dropdownPrefixCls:String,dataSource:{type:Array,default:void 0},pagination:{type:[Boolean,Object],default:void 0},loading:{type:[Boolean,Object],default:void 0},size:{type:String,default:void 0},bordered:Boolean,locale:{type:Object,default:void 0},onChange:{type:Function,default:void 0},onResizeColumn:{type:Function,default:void 0},rowSelection:{type:Object,default:void 0},getPopupContainer:{type:Function,default:void 0},scroll:{type:Object,default:void 0},sortDirections:{type:Array,default:void 0},showSorterTooltip:{type:[Boolean,Object],default:!0},contextSlots:{type:Object},transformCellText:{type:Function}}},Wc=Ce({name:"InteralTable",inheritAttrs:!1,props:Yt(zc(),{rowKey:"key"}),slots:["emptyText","expandIcon","title","footer","summary","expandedRowRender","bodyCell","headerCell","customFilterIcon","customFilterDropdown"],setup:function(e,n){var a=n.attrs,r=n.slots,l=n.expose,i=n.emit;st(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),Di(K(function(){return e.contextSlots})),Li({onResizeColumn:function(T,_){i("resizeColumn",T,_)}});var o=io(),u=K(function(){var H=new Set(Object.keys(o.value).filter(function(T){return o.value[T]}));return e.columns.filter(function(T){return!T.responsive||T.responsive.some(function(_){return H.has(_)})})}),s=vt("table",e),m=s.size,d=s.renderEmpty,y=s.direction,g=s.prefixCls,b=s.configProvider,k=K(function(){return e.transformCellText||b.transformCellText}),c=Al("Table",Bl.Table,ot(e,"locale")),p=be(c,1),f=p[0],h=K(function(){return e.dataSource||Hc}),x=K(function(){return b.getPrefixCls("dropdown",e.dropdownPrefixCls)}),S=K(function(){return e.childrenColumnName||"children"}),w=K(function(){return h.value.some(function(H){return H==null?void 0:H[S.value]})?"nest":e.expandedRowRender?"row":null}),N=Dt({body:null}),z=function(T){kt(N,T)},A=K(function(){return typeof e.rowKey=="function"?e.rowKey:function(H){return H==null?void 0:H[e.rowKey]}}),L=Tu(h,S,A),R=be(L,1),B=R[0],I={},E=function(T,_){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,q=e.pagination,te=e.scroll,ee=e.onChange,P=C(C({},I),T);D&&(I.resetPagination(),P.pagination.current&&(P.pagination.current=1),q&&q.onChange&&q.onChange(1,P.pagination.pageSize)),te&&te.scrollToFirstRowOnChange!==!1&&N.body&&vo(0,{getContainer:function(){return N.body}}),ee==null||ee(P.pagination,P.filters,P.sorter,{currentDataSource:mr(Un(h.value,P.sorterStates,S.value),P.filterStates),action:_})},$=function(T,_){E({sorter:T,sorterStates:_},"sort",!1)},j=ju({prefixCls:g,mergedColumns:u,onSorterChange:$,sortDirections:K(function(){return e.sortDirections||["ascend","descend"]}),tableLocale:f,showSorterTooltip:ot(e,"showSorterTooltip")}),V=be(j,4),U=V[0],Z=V[1],de=V[2],W=V[3],G=K(function(){return Un(h.value,Z.value,S.value)}),X=function(T,_){E({filters:T,filterStates:_},"filter",!0)},ne=Mc({prefixCls:g,locale:f,dropdownPrefixCls:x,mergedColumns:u,onFilterChange:X,getPopupContainer:ot(e,"getPopupContainer")}),se=be(ne,3),oe=se[0],pe=se[1],we=se[2],ve=K(function(){return mr(G.value,pe.value)}),ge=jc(ot(e,"contextSlots")),me=be(ge,1),Se=me[0],fe=K(function(){return C({},de.value)}),Re=Fc(fe),Ue=be(Re,1),ze=Ue[0],Be=function(T,_){E({pagination:C(C({},I.pagination),{},{current:T,pageSize:_})},"paginate")},Fe=Pu(K(function(){return ve.value.length}),ot(e,"pagination"),Be),Ke=be(Fe,2),Oe=Ke[0],Me=Ke[1];Ve(function(){I.sorter=W.value,I.sorterStates=Z.value,I.filters=we.value,I.filterStates=pe.value,I.pagination=e.pagination===!1?{}:Ku(e.pagination,Oe.value),I.resetPagination=Me});var Ye=K(function(){if(e.pagination===!1||!Oe.value.pageSize)return ve.value;var H=Oe.value,T=H.current,_=T===void 0?1:T,D=H.total,q=H.pageSize,te=q===void 0?jn:q;return st(_>0,"Table","`current` should be positive number."),ve.value.length<D?ve.value.length>te?ve.value.slice((_-1)*te,_*te):ve.value:ve.value.slice((_-1)*te,_*te)});Ve(function(){At(function(){var H=Oe.value,T=H.total,_=H.pageSize,D=_===void 0?jn:_;ve.value.length<T&&ve.value.length>D&&st(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});var at=K(function(){return e.showExpandColumn===!1?-1:w.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex}),Ze=Y();Le(function(){return e.rowSelection},function(){Ze.value=e.rowSelection?C({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});var Je=Nu(Ze,{prefixCls:g,data:ve,pageData:Ye,getRowKey:A,getRecordByKey:B,expandType:w,childrenColumnName:S,locale:f,getPopupContainer:K(function(){return e.getPopupContainer})}),We=be(Je,2),_e=We[0],ae=We[1],F=function(T,_,D){var q,te=e.rowClassName;return typeof te=="function"?q=ke(te(T,_,D)):q=ke(te),ke(M({},"".concat(g.value,"-row-selected"),ae.value.has(A.value(T,_))),q)};l({selectedKeySet:ae});var Q=K(function(){return typeof e.indentSize=="number"?e.indentSize:15}),ce=function(T){var _=ze(_e(oe(U(Se(T)))));return _};return function(){var H,T,_=e.expandIcon,D=_===void 0?r.expandIcon||$c(f.value):_,q=e.pagination,te=e.loading,ee=e.bordered,P,O;if(q!==!1&&(H=Oe.value)!==null&&H!==void 0&&H.total){var J;Oe.value.size?J=Oe.value.size:J=m.value==="small"||m.value==="middle"?"small":void 0;var ie=function(De){return v(Vl,C(C({},Oe.value),{},{class:["".concat(g.value,"-pagination ").concat(g.value,"-pagination-").concat(De),Oe.value.class],size:J}),null)},re=y.value==="rtl"?"left":"right",le=Oe.value.position;if(le!==null&&Array.isArray(le)){var ue=le.find(function(Pe){return Pe.indexOf("top")!==-1}),ye=le.find(function(Pe){return Pe.indexOf("bottom")!==-1}),he=le.every(function(Pe){return"".concat(Pe)==="none"});!ue&&!ye&&!he&&(O=ie(re)),ue&&(P=ie(ue.toLowerCase().replace("top",""))),ye&&(O=ie(ye.toLowerCase().replace("bottom","")))}else O=ie(re)}var Ee;typeof te=="boolean"?Ee={spinning:te}:qe(te)==="object"&&(Ee=C({spinning:!0},te));var xe=ke("".concat(g.value,"-wrapper"),M({},"".concat(g.value,"-wrapper-rtl"),y.value==="rtl"),a.class),Ie=nn(e,["columns"]);return v("div",{class:xe,style:a.style},[v(Ml,C({spinning:!1},Ee),{default:function(){return[P,v(wu,C(C(C({},a),Ie),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:at.value,indentSize:Q.value,expandIcon:D,columns:u.value,direction:y.value,prefixCls:g.value,class:ke((T={},M(T,"".concat(g.value,"-middle"),m.value==="middle"),M(T,"".concat(g.value,"-small"),m.value==="small"),M(T,"".concat(g.value,"-bordered"),ee),M(T,"".concat(g.value,"-empty"),h.value.length===0),T)),data:Ye.value,rowKey:A.value,rowClassName:F,internalHooks:$n,internalRefs:N,onUpdateInternalRefs:z,transformColumns:ce,transformCellText:k.value}),C(C({},r),{},{emptyText:function(){var $e,Qe;return(($e=r.emptyText)===null||$e===void 0?void 0:$e.call(r))||((Qe=e.locale)===null||Qe===void 0?void 0:Qe.emptyText)||d.value("Table")}})),O]}})])}}}),Gc=Ce({name:"ATable",inheritAttrs:!1,setup:function(e,n){var a=n.attrs,r=n.slots,l=n.expose,i=Y();return l({table:i}),function(){var o,u=a,s=u.columns||al((o=r.default)===null||o===void 0?void 0:o.call(r));return v(Wc,C(C({ref:i},a),{},{columns:s||[],expandedRowRender:r.expandedRowRender,contextSlots:C({},r)}),r)}}});const Sn=Gc,kn=Ce({name:"ATableColumn",slots:["title","filterIcon"],render:function(){return null}}),wn=Ce({name:"ATableColumnGroup",slots:["title"],__ANT_TABLE_COLUMN_GROUP:!0,render:function(){return null}});var Yn=su,Zn=yu,Kn=kt(mu,{Cell:Zn,Row:Yn,name:"ATableSummary"});const nd=kt(Sn,{SELECTION_ALL:Hn,SELECTION_INVERT:zn,SELECTION_NONE:Wn,SELECTION_COLUMN:Ot,EXPAND_COLUMN:_t,Column:kn,ColumnGroup:wn,Summary:Kn,install:function(e){return e.component(Kn.name,Kn),e.component(Zn.name,Zn),e.component(Yn.name,Yn),e.component(Sn.name,Sn),e.component(kn.name,kn),e.component(wn.name,wn),e}});export{ed as C,ol as F,jo as P,Qt as R,nd as T,td as a,Et as b};