You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
109 KiB
51 lines
109 KiB
import{s as G,b as Ht,c as jn,ag as Ne,d as ue,P as B,r as he,w as ye,l as N,g as p,i as q,e as te,bd as Oo,Q as zn,_ as y,ay as ee,aL as Po,aq as Ue,o as at,j as gt,m as vt,at as ht,b7 as At,u as Re,an as xe,az as Ko,af as qe,q as Ln,p as Rn,ah as Io,z as Fn,am as Hn,ad as Je,ao as Eo,aA as Vt,a7 as Vn,y as Do,ac as rn,aO as Bt,aS as We,be as No,bf as To,H as Xn,bg as dt,aw as _o,ai as ko,bh as Ao,a as ke,f as Se,ap as Bo,k as Mo,n as Xt,h as jo,v as zo,T as Lo,b5 as sn,ba as Ro,bi as Fo}from"./index-3c234266.js";import{T as Ho,m as Le,J as Vo,L as Xo,t as Wo,z as Go,i as Fe,B as Mt,d as jt,M as Uo,o as mt,C as Wn,D as qo,v as cn,K as Me,A as Jo}from"./_plugin-vue_export-helper-a1ffee7e.js";import{E as Yo,u as Qo}from"./index-6a3b275e.js";import{w as Zo,i as dn,s as Gn,c as ut,L as ea}from"./PlusOutlined-920ae6ab.js";import{b as ta,s as na,d as oa,c as aa,i as un,e as ia,g as la}from"./collapseMotion-ccbb3149.js";import{p as Un,J as qn,a as ra,K as sa,f as ca,w as da,d as ua}from"./http-02c81b8c.js";function pa(){const e=G({});let t=null;const n=Zo();return Ht(()=>{t=n.value.subscribe(o=>{e.value=o})}),jn(()=>{n.value.unsubscribe(t)}),e}function Ce(e){const t=G();return Ne(()=>{t.value=e()},{flush:"sync"}),t}const je={adjustX:1,adjustY:1},ze=[0,0],fa={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-4],targetOffset:ze},topCenter:{points:["bc","tc"],overflow:je,offset:[0,-4],targetOffset:ze},topRight:{points:["br","tr"],overflow:je,offset:[0,-4],targetOffset:ze},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,4],targetOffset:ze},bottomCenter:{points:["tc","bc"],overflow:je,offset:[0,4],targetOffset:ze},bottomRight:{points:["tr","br"],overflow:je,offset:[0,4],targetOffset:ze}},ga=fa;var va=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const ha=ue({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:B.string.def("rc-dropdown"),transitionName:String,overlayClassName:B.string.def(""),openClassName:String,animation:B.any,align:B.object,overlayStyle:{type:Object,default:void 0},placement:B.string.def("bottomLeft"),overlay:B.any,trigger:B.oneOfType([B.string,B.arrayOf(B.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:B.array,hideAction:B.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:B.number.def(.15),mouseLeaveDelay:B.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:o,expose:a}=t;const r=he(!!e.visible);ye(()=>e.visible,v=>{v!==void 0&&(r.value=v)});const i=he();a({triggerRef:i});const l=v=>{e.visible===void 0&&(r.value=!1),o("overlayClick",v)},f=v=>{e.visible===void 0&&(r.value=v),o("visibleChange",v)},u=()=>{var v;const $=(v=n.overlay)===null||v===void 0?void 0:v.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:l};return p(zn,{key:Oo},[e.arrow&&p("div",{class:`${e.prefixCls}-arrow`},null),Le($,h,!1)])},d=N(()=>{const{minOverlayWidthMatchTrigger:v=!e.alignPoint}=e;return v}),g=()=>{var v;const $=(v=n.default)===null||v===void 0?void 0:v.call(n);return r.value&&$?Le($[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):$},m=N(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:v,arrow:$,showAction:h,overlayStyle:s,trigger:c,placement:K,align:D,getPopupContainer:P,transitionName:E,animation:I,overlayClassName:k}=e,M=va(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p(Ho,q(q({},M),{},{prefixCls:v,ref:i,popupClassName:te(k,{[`${v}-show-arrow`]:$}),popupStyle:s,builtinPlacements:ga,action:c,showAction:h,hideAction:m.value||[],popupPlacement:K,popupAlign:D,popupTransitionName:E,popupAnimation:I,popupVisible:r.value,stretch:d.value?"minWidth":"",onPopupVisibleChange:f,getPopupContainer:P}),{popup:u,default:g})}}}),Jn=()=>({arrow:Ue([Boolean,Object]),trigger:{type:[Array,String]},menu:at(),overlay:B.any,visible:ee(),open:ee(),disabled:ee(),danger:ee(),autofocus:ee(),align:at(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:at(),forceRender:ee(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:ee(),destroyPopupOnHide:ee(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Et=Vo(),ma=()=>y(y({},Jn()),{type:Et.type,size:String,htmlType:Et.htmlType,href:String,disabled:ee(),prefixCls:String,icon:B.any,title:String,loading:Et.loading,onClick:Po()}),ya=e=>{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:a}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:a},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},ba=ya,$a=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:a}=e,r=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${r}`]:{[`&${r}-danger:not(${r}-disabled)`]:{color:o,"&:hover":{color:a,backgroundColor:o}}}}}},Sa=$a,Ca=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:a,dropdownArrowOffset:r,sizePopupArrow:i,antCls:l,iconCls:f,motionDurationMid:u,dropdownPaddingVertical:d,fontSize:g,dropdownEdgeChildPadding:m,colorTextDisabled:v,fontSizeIcon:$,controlPaddingHorizontal:h,colorBgElevated:s,boxShadowPopoverArrow:c}=e;return[{[t]:y(y({},ht(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-a+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${f}-down`]:{fontSize:$},[`${f}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${f}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`
|
|
&-show-arrow${t}-placement-topLeft,
|
|
&-show-arrow${t}-placement-top,
|
|
&-show-arrow${t}-placement-topRight
|
|
`]:{paddingBottom:a},[`
|
|
&-show-arrow${t}-placement-bottomLeft,
|
|
&-show-arrow${t}-placement-bottom,
|
|
&-show-arrow${t}-placement-bottomRight
|
|
`]:{paddingTop:a},[`${t}-arrow`]:y({position:"absolute",zIndex:1,display:"block"},Wo(i,e.borderRadiusXS,e.borderRadiusOuter,s,c)),[`
|
|
&-placement-top > ${t}-arrow,
|
|
&-placement-topLeft > ${t}-arrow,
|
|
&-placement-topRight > ${t}-arrow
|
|
`]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:r}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:r}},[`
|
|
&-placement-bottom > ${t}-arrow,
|
|
&-placement-bottomLeft > ${t}-arrow,
|
|
&-placement-bottomRight > ${t}-arrow
|
|
`]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:r}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:r}},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
|
|
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
|
|
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
|
|
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ta},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
|
|
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
|
|
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
|
|
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
|
|
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
|
|
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:na},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
|
|
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:oa},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
|
|
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
|
|
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:aa}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:y(y({padding:m,listStyleType:"none",backgroundColor:s,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},At(e)),{[`${n}-item-group-title`]:{padding:`${d}px ${h}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:y(y({clear:"both",margin:0,padding:`${d}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},At(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:s,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:$,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:s,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[un(e,"slide-up"),un(e,"slide-down"),dn(e,"move-up"),dn(e,"move-down"),Go(e,"zoom-big")]]},Yn=gt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:a,controlHeight:r,fontSize:i,lineHeight:l,paddingXXS:f,componentCls:u,borderRadiusOuter:d,borderRadiusLG:g}=e,m=(r-i*l)/2,{dropdownArrowOffset:v}=Xo({sizePopupArrow:a,contentRadius:g,borderRadiusOuter:d}),$=vt(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:a/2+o,dropdownArrowOffset:v,dropdownPaddingVertical:m,dropdownEdgeChildPadding:f});return[Ca($),ba($),Sa($)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var xa=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const wa=Mt.Group,pt=ue({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Fe(ma(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:a}=t;const r=m=>{a("update:visible",m),a("visibleChange",m),a("update:open",m),a("openChange",m)},{prefixCls:i,direction:l,getPopupContainer:f}=Re("dropdown",e),u=N(()=>`${i.value}-button`),[d,g]=Yn(i);return()=>{var m,v;const $=y(y({},e),o),{type:h="default",disabled:s,danger:c,loading:K,htmlType:D,class:P="",overlay:E=(m=n.overlay)===null||m===void 0?void 0:m.call(n),trigger:I,align:k,open:M,visible:C,onVisibleChange:_,placement:z=l.value==="rtl"?"bottomLeft":"bottomRight",href:Y,title:H,icon:Q=((v=n.icon)===null||v===void 0?void 0:v.call(n))||p(Yo,null,null),mouseEnterDelay:ne,mouseLeaveDelay:me,overlayClassName:ie,overlayStyle:L,destroyPopupOnHide:ve,onClick:Z,"onUpdate:open":oe}=$,re=xa($,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),pe={align:k,disabled:s,trigger:s?[]:I,placement:z,getPopupContainer:f==null?void 0:f.value,onOpenChange:r,mouseEnterDelay:ne,mouseLeaveDelay:me,open:M??C,overlayClassName:ie,overlayStyle:L,destroyPopupOnHide:ve},le=p(Mt,{danger:c,type:h,disabled:s,loading:K,onClick:Z,htmlType:D,href:Y,title:H},{default:n.default}),se=p(Mt,{danger:c,type:h,icon:Q},null);return d(p(wa,q(q({},re),{},{class:te(u.value,P,g.value)}),{default:()=>[n.leftButton?n.leftButton({button:le}):le,p(Ge,pe,{default:()=>[n.rightButton?n.rightButton({button:se}):se],overlay:()=>E})]}))}}});var Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const Pa=Oa;function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Ka(e,a,n[a])})}return e}function Ka(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=function(t,n){var o=pn({},t,n.attrs);return p(xe,pn({},o,{icon:Pa}),null)};Wt.displayName="RightOutlined";Wt.inheritAttrs=!1;const ft=Wt,Qn=ue({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Fe(Jn(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:a}=t;const{prefixCls:r,rootPrefixCls:i,direction:l,getPopupContainer:f}=Re("dropdown",e),[u,d]=Yn(r),g=N(()=>{const{placement:s="",transitionName:c}=e;return c!==void 0?c:s.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});Qo({prefixCls:N(()=>`${r.value}-menu`),expandIcon:N(()=>p("span",{class:`${r.value}-menu-submenu-arrow`},[p(ft,{class:`${r.value}-menu-submenu-arrow-icon`},null)])),mode:N(()=>"vertical"),selectable:N(()=>!1),onClick:()=>{},validator:s=>{Ko()}});const m=()=>{var s,c,K;const D=e.overlay||((s=n.overlay)===null||s===void 0?void 0:s.call(n)),P=Array.isArray(D)?D[0]:D;if(!P)return null;const E=P.props||{};jt(!E.mode||E.mode==="vertical","Dropdown",`mode="${E.mode}" is not supported for Dropdown's Menu.`);const{selectable:I=!1,expandIcon:k=(K=(c=P.children)===null||c===void 0?void 0:c.expandIcon)===null||K===void 0?void 0:K.call(c)}=E,M=typeof k<"u"&&qe(k)?k:p("span",{class:`${r.value}-menu-submenu-arrow`},[p(ft,{class:`${r.value}-menu-submenu-arrow-icon`},null)]);return qe(P)?Le(P,{mode:"vertical",selectable:I,expandIcon:()=>M}):P},v=N(()=>{const s=e.placement;if(!s)return l.value==="rtl"?"bottomRight":"bottomLeft";if(s.includes("Center")){const c=s.slice(0,s.indexOf("Center"));return jt(!s.includes("Center"),"Dropdown",`You are using '${s}' placement in Dropdown, which is deprecated. Try to use '${c}' instead.`),c}return s}),$=N(()=>typeof e.visible=="boolean"?e.visible:e.open),h=s=>{a("update:visible",s),a("visibleChange",s),a("update:open",s),a("openChange",s)};return()=>{var s,c;const{arrow:K,trigger:D,disabled:P,overlayClassName:E}=e,I=(s=n.default)===null||s===void 0?void 0:s.call(n)[0],k=Le(I,y({class:te((c=I==null?void 0:I.props)===null||c===void 0?void 0:c.class,{[`${r.value}-rtl`]:l.value==="rtl"},`${r.value}-trigger`)},P?{disabled:P}:{})),M=te(E,d.value,{[`${r.value}-rtl`]:l.value==="rtl"}),C=P?[]:D;let _;C&&C.includes("contextmenu")&&(_=!0);const z=Uo({arrowPointAtCenter:typeof K=="object"&&K.pointAtCenter,autoAdjustOverflow:!0}),Y=mt(y(y(y({},e),o),{visible:$.value,builtinPlacements:z,overlayClassName:M,arrow:!!K,alignPoint:_,prefixCls:r.value,getPopupContainer:f==null?void 0:f.value,transitionName:g.value,trigger:C,onVisibleChange:h,placement:v.value}),["overlay","onUpdate:visible"]);return u(p(ha,Y,{default:()=>[k],overlay:m}))}}});Qn.Button=pt;const Ge=Qn,Zn=Symbol("TreeContextKey"),Ia=ue({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ln(Zn,N(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Gt=()=>Rn(Zn,N(()=>({}))),eo=Symbol("KeysStateKey"),Ea=e=>{Ln(eo,e)},to=()=>Rn(eo,{expandedKeys:G([]),selectedKeys:G([]),loadedKeys:G([]),loadingKeys:G([]),checkedKeys:G([]),halfCheckedKeys:G([]),expandedKeysSet:N(()=>new Set),selectedKeysSet:N(()=>new Set),loadedKeysSet:N(()=>new Set),loadingKeysSet:N(()=>new Set),checkedKeysSet:N(()=>new Set),halfCheckedKeysSet:N(()=>new Set),flattenNodes:G([])}),Da=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:a}=e;const r=`${t}-indent-unit`,i=[];for(let l=0;l<n;l+=1)i.push(p("span",{key:l,class:{[r]:!0,[`${r}-start`]:o[l],[`${r}-end`]:a[l]}},null));return p("span",{"aria-hidden":"true",class:`${t}-indent`},[i])},Na=Da,no={eventKey:[String,Number],prefixCls:String,title:B.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:B.any,switcherIcon:B.any,domRef:{type:Function}},Ta={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}},oo=()=>({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:B.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:B.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],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:B.any,switcherIcon:B.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var _a=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const fn="open",gn="close",ka="---",zt=ue({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:no,isTreeNode:1,setup(e,t){let{attrs:n,slots:o,expose:a}=t;Wn(!("slots"in e.data),`treeData slots is deprecated, please use ${Object.keys(e.data.slots||{}).map(b=>"`v-slot:"+b+"` ")}instead`);const r=G(!1),i=Gt(),{expandedKeysSet:l,selectedKeysSet:f,loadedKeysSet:u,loadingKeysSet:d,checkedKeysSet:g,halfCheckedKeysSet:m}=to(),{dragOverNodeKey:v,dropPosition:$,keyEntities:h}=i.value,s=N(()=>it(e.eventKey,{expandedKeysSet:l.value,selectedKeysSet:f.value,loadedKeysSet:u.value,loadingKeysSet:d.value,checkedKeysSet:g.value,halfCheckedKeysSet:m.value,dragOverNodeKey:v,dropPosition:$,keyEntities:h})),c=Ce(()=>s.value.expanded),K=Ce(()=>s.value.selected),D=Ce(()=>s.value.checked),P=Ce(()=>s.value.loaded),E=Ce(()=>s.value.loading),I=Ce(()=>s.value.halfChecked),k=Ce(()=>s.value.dragOver),M=Ce(()=>s.value.dragOverGapTop),C=Ce(()=>s.value.dragOverGapBottom),_=Ce(()=>s.value.pos),z=G(),Y=N(()=>{const{eventKey:b}=e,{keyEntities:w}=i.value,{children:W}=w[b]||{};return!!(W||[]).length}),H=N(()=>{const{isLeaf:b}=e,{loadData:w}=i.value,W=Y.value;return b===!1?!1:b||!w&&!W||w&&P.value&&!W}),Q=N(()=>H.value?null:c.value?fn:gn),ne=N(()=>{const{disabled:b}=e,{disabled:w}=i.value;return!!(w||b)}),me=N(()=>{const{checkable:b}=e,{checkable:w}=i.value;return!w||b===!1?!1:w}),ie=N(()=>{const{selectable:b}=e,{selectable:w}=i.value;return typeof b=="boolean"?b:w}),L=N(()=>{const{data:b,active:w,checkable:W,disableCheckbox:ae,disabled:ce,selectable:de}=e;return y(y({active:w,checkable:W,disableCheckbox:ae,disabled:ce,selectable:de},b),{dataRef:b,data:b,isLeaf:H.value,checked:D.value,expanded:c.value,loading:E.value,selected:K.value,halfChecked:I.value})}),ve=Io(),Z=N(()=>{const{eventKey:b}=e,{keyEntities:w}=i.value,{parent:W}=w[b]||{};return y(y({},lt(y({},e,s.value))),{parent:W})}),oe=Fn({eventData:Z,eventKey:N(()=>e.eventKey),selectHandle:z,pos:_,key:ve.vnode.key});a(oe);const re=b=>{const{onNodeDoubleClick:w}=i.value;w(b,Z.value)},pe=b=>{if(ne.value)return;const{onNodeSelect:w}=i.value;b.preventDefault(),w(b,Z.value)},le=b=>{if(ne.value)return;const{disableCheckbox:w}=e,{onNodeCheck:W}=i.value;if(!me.value||w)return;b.preventDefault();const ae=!D.value;W(b,Z.value,ae)},se=b=>{const{onNodeClick:w}=i.value;w(b,Z.value),ie.value?pe(b):le(b)},be=b=>{const{onNodeMouseEnter:w}=i.value;w(b,Z.value)},we=b=>{const{onNodeMouseLeave:w}=i.value;w(b,Z.value)},He=b=>{const{onNodeContextMenu:w}=i.value;w(b,Z.value)},bt=b=>{const{onNodeDragStart:w}=i.value;b.stopPropagation(),r.value=!0,w(b,oe);try{b.dataTransfer.setData("text/plain","")}catch{}},$t=b=>{const{onNodeDragEnter:w}=i.value;b.preventDefault(),b.stopPropagation(),w(b,oe)},St=b=>{const{onNodeDragOver:w}=i.value;b.preventDefault(),b.stopPropagation(),w(b,oe)},Qe=b=>{const{onNodeDragLeave:w}=i.value;b.stopPropagation(),w(b,oe)},Ct=b=>{const{onNodeDragEnd:w}=i.value;b.stopPropagation(),r.value=!1,w(b,oe)},xt=b=>{const{onNodeDrop:w}=i.value;b.preventDefault(),b.stopPropagation(),r.value=!1,w(b,oe)},Ze=b=>{const{onNodeExpand:w}=i.value;E.value||w(b,Z.value)},et=()=>{const{data:b}=e,{draggable:w}=i.value;return!!(w&&(!w.nodeDraggable||w.nodeDraggable(b)))},tt=()=>{const{draggable:b,prefixCls:w}=i.value;return b&&(b!=null&&b.icon)?p("span",{class:`${w}-draggable-icon`},[b.icon]):null},wt=()=>{var b,w,W;const{switcherIcon:ae=o.switcherIcon||((b=i.value.slots)===null||b===void 0?void 0:b[(W=(w=e.data)===null||w===void 0?void 0:w.slots)===null||W===void 0?void 0:W.switcherIcon])}=e,{switcherIcon:ce}=i.value,de=ae||ce;return typeof de=="function"?de(L.value):de},nt=()=>{const{loadData:b,onNodeLoad:w}=i.value;E.value||b&&c.value&&!H.value&&!Y.value&&!P.value&&w(Z.value)};Ht(()=>{nt()}),Hn(()=>{nt()});const Ot=()=>{const{prefixCls:b}=i.value,w=wt();if(H.value)return w!==!1?p("span",{class:te(`${b}-switcher`,`${b}-switcher-noop`)},[w]):null;const W=te(`${b}-switcher`,`${b}-switcher_${c.value?fn:gn}`);return w!==!1?p("span",{onClick:Ze,class:W},[w]):null},Pt=()=>{var b,w;const{disableCheckbox:W}=e,{prefixCls:ae}=i.value,ce=ne.value;return me.value?p("span",{class:te(`${ae}-checkbox`,D.value&&`${ae}-checkbox-checked`,!D.value&&I.value&&`${ae}-checkbox-indeterminate`,(ce||W)&&`${ae}-checkbox-disabled`),onClick:le},[(w=(b=i.value).customCheckable)===null||w===void 0?void 0:w.call(b)]):null},ot=()=>{const{prefixCls:b}=i.value;return p("span",{class:te(`${b}-iconEle`,`${b}-icon__${Q.value||"docu"}`,E.value&&`${b}-icon_loading`)},null)},Te=()=>{const{disabled:b,eventKey:w}=e,{draggable:W,dropLevelOffset:ae,dropPosition:ce,prefixCls:de,indent:S,dropIndicatorRender:x,dragOverNodeKey:O,direction:A}=i.value;return!b&&W!==!1&&O===w?x({dropPosition:ce,dropLevelOffset:ae,indent:S,prefixCls:de,direction:A}):null},Kt=()=>{var b,w,W,ae,ce,de;const{icon:S=o.icon,data:x}=e,O=o.title||((b=i.value.slots)===null||b===void 0?void 0:b[(W=(w=e.data)===null||w===void 0?void 0:w.slots)===null||W===void 0?void 0:W.title])||((ae=i.value.slots)===null||ae===void 0?void 0:ae.title)||e.title,{prefixCls:A,showIcon:R,icon:j,loadData:T}=i.value,V=ne.value,J=`${A}-node-content-wrapper`;let F;if(R){const fe=S||((ce=i.value.slots)===null||ce===void 0?void 0:ce[(de=x==null?void 0:x.slots)===null||de===void 0?void 0:de.icon])||j;F=fe?p("span",{class:te(`${A}-iconEle`,`${A}-icon__customize`)},[typeof fe=="function"?fe(L.value):fe]):ot()}else T&&E.value&&(F=ot());let X;typeof O=="function"?X=O(L.value):X=O,X=X===void 0?ka:X;const U=p("span",{class:`${A}-title`},[X]);return p("span",{ref:z,title:typeof O=="string"?O:"",class:te(`${J}`,`${J}-${Q.value||"normal"}`,!V&&(K.value||r.value)&&`${A}-node-selected`),onMouseenter:be,onMouseleave:we,onContextmenu:He,onClick:se,onDblclick:re},[F,U,Te()])};return()=>{const b=y(y({},e),n),{eventKey:w,isLeaf:W,isStart:ae,isEnd:ce,domRef:de,active:S,data:x,onMousemove:O,selectable:A}=b,R=_a(b,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:j,filterTreeNode:T,keyEntities:V,dropContainerKey:J,dropTargetKey:F,draggingNodeKey:X}=i.value,U=ne.value,fe=Un(R,{aria:!0,data:!0}),{level:Oe}=V[w]||{},$e=ce[ce.length-1],ge=et(),Ee=!U&&ge,Ve=X===w,It=A!==void 0?{"aria-selected":!!A}:void 0;return p("div",q(q({ref:de,class:te(n.class,`${j}-treenode`,{[`${j}-treenode-disabled`]:U,[`${j}-treenode-switcher-${c.value?"open":"close"}`]:!W,[`${j}-treenode-checkbox-checked`]:D.value,[`${j}-treenode-checkbox-indeterminate`]:I.value,[`${j}-treenode-selected`]:K.value,[`${j}-treenode-loading`]:E.value,[`${j}-treenode-active`]:S,[`${j}-treenode-leaf-last`]:$e,[`${j}-treenode-draggable`]:Ee,dragging:Ve,"drop-target":F===w,"drop-container":J===w,"drag-over":!U&&k.value,"drag-over-gap-top":!U&&M.value,"drag-over-gap-bottom":!U&&C.value,"filter-node":T&&T(Z.value)}),style:n.style,draggable:Ee,"aria-grabbed":Ve,onDragstart:Ee?bt:void 0,onDragenter:ge?$t:void 0,onDragover:ge?St:void 0,onDragleave:ge?Qe:void 0,onDrop:ge?xt:void 0,onDragend:ge?Ct:void 0,onMousemove:O},It),fe),[p(Na,{prefixCls:j,level:Oe,isStart:ae,isEnd:ce},null),tt(),Ot(),Pt(),Kt()])}}});globalThis&&globalThis.__rest;function Pe(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function De(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Ut(e){return e.split("-")}function ao(e,t){return`${e}-${t}`}function Aa(e){return e&&e.type&&e.type.isTreeNode}function Ba(e,t){const n=[],o=t[e];function a(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:l,children:f}=i;n.push(l),a(f)})}return a(o.children),n}function Ma(e){if(e.parent){const t=Ut(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function ja(e){const t=Ut(e.pos);return Number(t[t.length-1])===0}function vn(e,t,n,o,a,r,i,l,f,u){var d;const{clientX:g,clientY:m}=e,{top:v,height:$}=e.target.getBoundingClientRect(),s=((u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-g)-12)/o;let c=l[n.eventKey];if(m<v+$/2){const _=i.findIndex(H=>H.key===c.key),z=_<=0?0:_-1,Y=i[z].key;c=l[Y]}const K=c.key,D=c,P=c.key;let E=0,I=0;if(!f.has(K))for(let _=0;_<s&&Ma(c);_+=1)c=c.parent,I+=1;const k=t.eventData,M=c.node;let C=!0;return ja(c)&&c.level===0&&m<v+$/2&&r({dragNode:k,dropNode:M,dropPosition:-1})&&c.key===n.eventKey?E=-1:(D.children||[]).length&&f.has(P)?r({dragNode:k,dropNode:M,dropPosition:0})?E=0:C=!1:I===0?s>-1.5?r({dragNode:k,dropNode:M,dropPosition:1})?E=1:C=!1:r({dragNode:k,dropNode:M,dropPosition:0})?E=0:r({dragNode:k,dropNode:M,dropPosition:1})?E=1:C=!1:r({dragNode:k,dropNode:M,dropPosition:1})?E=1:C=!1,{dropPosition:E,dropLevelOffset:I,dropTargetKey:c.key,dropTargetPos:c.pos,dragOverNodeKey:P,dropContainerKey:E===0?null:((d=c.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:C}}function hn(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function Dt(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Lt(e,t){const n=new Set;function o(a){if(n.has(a))return;const r=t[a];if(!r)return;n.add(a);const{parent:i,node:l}=r;l.disabled||i&&o(i.key)}return(e||[]).forEach(a=>{o(a)}),[...n]}var za=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function Ye(e,t){return e??t}function yt(e){const{title:t,_title:n,key:o,children:a}=e||{},r=t||"title";return{title:r,_title:n||[r],key:o||"key",children:a||"children"}}function Rt(e){function t(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Je(n).map(a=>{var r,i,l,f;if(!Aa(a))return null;const u=a.children||{},d=a.key,g={};for(const[_,z]of Object.entries(a.props))g[Eo(_)]=z;const{isLeaf:m,checkable:v,selectable:$,disabled:h,disableCheckbox:s}=g,c={isLeaf:m||m===""||void 0,checkable:v||v===""||void 0,selectable:$||$===""||void 0,disabled:h||h===""||void 0,disableCheckbox:s||s===""||void 0},K=y(y({},g),c),{title:D=(r=u.title)===null||r===void 0?void 0:r.call(u,K),icon:P=(i=u.icon)===null||i===void 0?void 0:i.call(u,K),switcherIcon:E=(l=u.switcherIcon)===null||l===void 0?void 0:l.call(u,K)}=g,I=za(g,["title","icon","switcherIcon"]),k=(f=u.default)===null||f===void 0?void 0:f.call(u),M=y(y(y({},I),{title:D,icon:P,switcherIcon:E,key:d,isLeaf:m}),c),C=t(k);return C.length&&(M.children=C),M})}return t(e)}function La(e,t,n){const{_title:o,key:a,children:r}=yt(n),i=new Set(t===!0?[]:t),l=[];function f(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((g,m)=>{const v=ao(d?d.pos:"0",m),$=Ye(g[a],v);let h;for(let c=0;c<o.length;c+=1){const K=o[c];if(g[K]!==void 0){h=g[K];break}}const s=y(y({},mt(g,[...o,a,r])),{title:h,key:$,parent:d,pos:v,children:null,data:g,isStart:[...d?d.isStart:[],m===0],isEnd:[...d?d.isEnd:[],m===u.length-1]});return l.push(s),t===!0||i.has($)?s.children=f(g[r]||[],s):s.children=[],s})}return f(e),l}function Ra(e,t,n){let o={};typeof n=="object"?o=n:o={externalGetKey:n},o=o||{};const{childrenPropName:a,externalGetKey:r,fieldNames:i}=o,{key:l,children:f}=yt(i),u=a||f;let d;r?typeof r=="string"?d=m=>m[r]:typeof r=="function"&&(d=m=>r(m)):d=(m,v)=>Ye(m[l],v);function g(m,v,$,h){const s=m?m[u]:e,c=m?ao($.pos,v):"0",K=m?[...h,m]:[];if(m){const D=d(m,c),P={node:m,index:v,pos:c,key:D,parentPos:$.node?$.pos:null,level:$.level+1,nodes:K};t(P)}s&&s.forEach((D,P)=>{g(D,P,{node:m,pos:c,level:$?$.level+1:-1},K)})}g(null)}function io(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:a,childrenPropName:r,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;const f=a||l,u={},d={};let g={posEntities:u,keyEntities:d};return t&&(g=t(g)||g),Ra(e,m=>{const{node:v,index:$,pos:h,key:s,parentPos:c,level:K,nodes:D}=m,P={node:v,nodes:D,index:$,key:s,pos:h,level:K},E=Ye(s,h);u[h]=P,d[E]=P,P.parent=u[c],P.parent&&(P.parent.children=P.parent.children||[],P.parent.children.push(P)),n&&n(P,g)},{externalGetKey:f,childrenPropName:r,fieldNames:i}),o&&o(g),g}function it(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:a,loadingKeysSet:r,checkedKeysSet:i,halfCheckedKeysSet:l,dragOverNodeKey:f,dropPosition:u,keyEntities:d}=t;const g=d[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:a.has(e),loading:r.has(e),checked:i.has(e),halfChecked:l.has(e),pos:String(g?g.pos:""),parent:g.parent,dragOver:f===e&&u===0,dragOverGapTop:f===e&&u===-1,dragOverGapBottom:f===e&&u===1}}function lt(e){const{data:t,expanded:n,selected:o,checked:a,loaded:r,loading:i,halfChecked:l,dragOver:f,dragOverGapTop:u,dragOverGapBottom:d,pos:g,active:m,eventKey:v}=e,$=y(y({dataRef:t},t),{expanded:n,selected:o,checked:a,loaded:r,loading:i,halfChecked:l,dragOver:f,dragOverGapTop:u,dragOverGapBottom:d,pos:g,active:m,eventKey:v,key:v});return"props"in $||Object.defineProperty($,"props",{get(){return e}}),$}function lo(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function Fa(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function Ha(e,t,n,o){const a=new Set(e),r=new Set;for(let l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(u=>{const{key:d,node:g,children:m=[]}=u;a.has(d)&&!o(g)&&m.filter(v=>!o(v.node)).forEach(v=>{a.add(v.key)})});const i=new Set;for(let l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(u=>{const{parent:d,node:g}=u;if(o(g)||!u.parent||i.has(u.parent.key))return;if(o(u.parent.node)){i.add(d.key);return}let m=!0,v=!1;(d.children||[]).filter($=>!o($.node)).forEach($=>{let{key:h}=$;const s=a.has(h);m&&!s&&(m=!1),!v&&(s||r.has(h))&&(v=!0)}),m&&a.add(d.key),v&&r.add(d.key),i.add(d.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(lo(r,a))}}function Va(e,t,n,o,a){const r=new Set(e);let i=new Set(t);for(let f=0;f<=o;f+=1)(n.get(f)||new Set).forEach(d=>{const{key:g,node:m,children:v=[]}=d;!r.has(g)&&!i.has(g)&&!a(m)&&v.filter($=>!a($.node)).forEach($=>{r.delete($.key)})});i=new Set;const l=new Set;for(let f=o;f>=0;f-=1)(n.get(f)||new Set).forEach(d=>{const{parent:g,node:m}=d;if(a(m)||!d.parent||l.has(d.parent.key))return;if(a(d.parent.node)){l.add(g.key);return}let v=!0,$=!1;(g.children||[]).filter(h=>!a(h.node)).forEach(h=>{let{key:s}=h;const c=r.has(s);v&&!c&&(v=!1),!$&&(c||i.has(s))&&($=!0)}),v||r.delete(g.key),$&&i.add(g.key),l.add(g.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(lo(i,r))}}function Nt(e,t,n,o,a,r){let i;r?i=r:i=Fa;const l=new Set(e.filter(u=>!!n[u]));let f;return t===!0?f=Ha(l,a,o,i):f=Va(l,t.halfCheckedKeys,a,o,i),f}function Xa(e){const t=he(0),n=G();return Ne(()=>{const o=new Map;let a=0;const r=e.value||{};for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i)){const l=r[i],{level:f}=l;let u=o.get(f);u||(u=new Set,o.set(f,u)),u.add(l),a=Math.max(a,f)}t.value=a,n.value=o}),{maxLevel:t,levelEntities:n}}var Wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Ga=Wa;function mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Ua(e,a,n[a])})}return e}function Ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qt=function(t,n){var o=mn({},t,n.attrs);return p(xe,mn({},o,{icon:Ga}),null)};qt.displayName="LeftOutlined";qt.inheritAttrs=!1;const yn=qt;Ge.Button=pt;Ge.install=function(e){return e.component(Ge.name,Ge),e.component(pt.name,pt),e};function qa(e,t,n){var o=n||{},a=o.noTrailing,r=a===void 0?!1:a,i=o.noLeading,l=i===void 0?!1:i,f=o.debounceMode,u=f===void 0?void 0:f,d,g=!1,m=0;function v(){d&&clearTimeout(d)}function $(s){var c=s||{},K=c.upcomingOnly,D=K===void 0?!1:K;v(),g=!D}function h(){for(var s=arguments.length,c=new Array(s),K=0;K<s;K++)c[K]=arguments[K];var D=this,P=Date.now()-m;if(g)return;function E(){m=Date.now(),t.apply(D,c)}function I(){d=void 0}!l&&u&&!d&&E(),v(),u===void 0&&P>e?l?(m=Date.now(),r||(d=setTimeout(u?I:E,e))):E():r!==!0&&(d=setTimeout(u?I:E,u===void 0?e-P:e))}return h.cancel=$,h}function Ja(e,t,n){var o=n||{},a=o.atBegin,r=a===void 0?!1:a;return qa(e,t,{debounceMode:r!==!1})}const Ya=new Vt("antSpinMove",{to:{opacity:1}}),Qa=new Vt("antRotate",{to:{transform:"rotate(405deg)"}}),Za=e=>({[`${e.componentCls}`]:y(y({},ht(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ya,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Qa,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),ei=gt("Spin",e=>{const t=vt(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[Za(t)]},{contentHeight:400});var ti=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const ni=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:B.any,delay:Number,indicator:B.any});let rt=null;function oi(e,t){return!!e&&!!t&&!isNaN(Number(t))}function ai(e){const t=e.indicator;rt=typeof t=="function"?t:()=>p(t,null,null)}const st=ue({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Fe(ni(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:a,size:r,direction:i}=Re("spin",e),[l,f]=ei(a),u=G(e.spinning&&!oi(e.spinning,e.delay));let d;return ye([()=>e.spinning,()=>e.delay],()=>{d==null||d.cancel(),d=Ja(e.delay,()=>{u.value=e.spinning}),d==null||d()},{immediate:!0,flush:"post"}),Vn(()=>{d==null||d.cancel()}),()=>{var g,m;const{class:v}=n,$=ti(n,["class"]),{tip:h=(g=o.tip)===null||g===void 0?void 0:g.call(o)}=e,s=(m=o.default)===null||m===void 0?void 0:m.call(o),c={[f.value]:!0,[a.value]:!0,[`${a.value}-sm`]:r.value==="small",[`${a.value}-lg`]:r.value==="large",[`${a.value}-spinning`]:u.value,[`${a.value}-show-text`]:!!h,[`${a.value}-rtl`]:i.value==="rtl",[v]:!!v};function K(P){const E=`${P}-dot`;let I=Do(o,e,"indicator");return I===null?null:(Array.isArray(I)&&(I=I.length===1?I[0]:I),rn(I)?Bt(I,{class:E}):rt&&rn(rt())?Bt(rt(),{class:E}):p("span",{class:`${E} ${P}-dot-spin`},[p("i",{class:`${P}-dot-item`},null),p("i",{class:`${P}-dot-item`},null),p("i",{class:`${P}-dot-item`},null),p("i",{class:`${P}-dot-item`},null)]))}const D=p("div",q(q({},$),{},{class:c,"aria-live":"polite","aria-busy":u.value}),[K(a.value),h?p("div",{class:`${a.value}-text`},[h]):null]);if(s&&Je(s).length){const P={[`${a.value}-container`]:!0,[`${a.value}-blur`]:u.value};return l(p("div",{class:[`${a.value}-nested-loading`,e.wrapperClassName,f.value]},[u.value&&p("div",{key:"loading"},[D]),p("div",{class:P,key:"container"},[s])]))}return l(D)}}});st.setDefaultIndicator=ai;st.install=function(e){return e.component(st.name,st),e};var ii={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const li=ii;function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){ri(e,a,n[a])})}return e}function ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jt=function(t,n){var o=bn({},t,n.attrs);return p(xe,bn({},o,{icon:li}),null)};Jt.displayName="DoubleLeftOutlined";Jt.inheritAttrs=!1;const $n=Jt;var si={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const ci=si;function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){di(e,a,n[a])})}return e}function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yt=function(t,n){var o=Sn({},t,n.attrs);return p(xe,Sn({},o,{icon:ci}),null)};Yt.displayName="DoubleRightOutlined";Yt.inheritAttrs=!1;const Cn=Yt,ui=ue({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:Gn(),Option:ut.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const a=y(y(y({},e),{size:"small"}),n);return p(ut,a,o)}}}),pi=ue({name:"MiddleSelect",inheritAttrs:!1,props:Gn(),Option:ut.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const a=y(y(y({},e),{size:"middle"}),n);return p(ut,a,o)}}}),_e=ue({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:B.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const a=()=>{n("click",e.page)},r=i=>{n("keypress",i,a,e.page)};return()=>{const{showTitle:i,page:l,itemRender:f}=e,{class:u,style:d}=o,g=`${e.rootPrefixCls}-item`,m=te(g,`${g}-${e.page}`,{[`${g}-active`]:e.active,[`${g}-disabled`]:!e.page},u);return p("li",{onClick:a,onKeypress:r,title:i?String(l):null,tabindex:"0",class:m,style:d},[f({page:l,type:"page",originalElement:p("a",{rel:"nofollow"},[l])})])}}}),Ae={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},fi=ue({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:B.any,current:Number,pageSizeOptions:B.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:B.object,rootPrefixCls:String,selectPrefixCls:String,goButton:B.any},setup(e){const t=he(""),n=N(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=f=>`${f.value} ${e.locale.items_per_page}`,a=f=>{const{value:u}=f.target;t.value!==u&&(t.value=u)},r=f=>{const{goButton:u,quickGo:d,rootPrefixCls:g}=e;if(!(u||t.value===""))if(f.relatedTarget&&(f.relatedTarget.className.indexOf(`${g}-item-link`)>=0||f.relatedTarget.className.indexOf(`${g}-item`)>=0)){t.value="";return}else d(n.value),t.value=""},i=f=>{t.value!==""&&(f.keyCode===Ae.ENTER||f.type==="click")&&(e.quickGo(n.value),t.value="")},l=N(()=>{const{pageSize:f,pageSizeOptions:u}=e;return u.some(d=>d.toString()===f.toString())?u:u.concat([f.toString()]).sort((d,g)=>{const m=isNaN(Number(d))?0:Number(d),v=isNaN(Number(g))?0:Number(g);return m-v})});return()=>{const{rootPrefixCls:f,locale:u,changeSize:d,quickGo:g,goButton:m,selectComponentClass:v,selectPrefixCls:$,pageSize:h,disabled:s}=e,c=`${f}-options`;let K=null,D=null,P=null;if(!d&&!g)return null;if(d&&v){const E=e.buildOptionText||o,I=l.value.map((k,M)=>p(v.Option,{key:M,value:k},{default:()=>[E({value:k})]}));K=p(v,{disabled:s,prefixCls:$,showSearch:!1,class:`${c}-size-changer`,optionLabelProp:"children",value:(h||l.value[0]).toString(),onChange:k=>d(Number(k)),getPopupContainer:k=>k.parentNode},{default:()=>[I]})}return g&&(m&&(P=typeof m=="boolean"?p("button",{type:"button",onClick:i,onKeyup:i,disabled:s,class:`${c}-quick-jumper-button`},[u.jump_to_confirm]):p("span",{onClick:i,onKeyup:i},[m])),D=p("div",{class:`${c}-quick-jumper`},[u.jump_to,p(qn,{disabled:s,type:"text",value:t.value,onInput:a,onChange:a,onKeyup:i,onBlur:r},null),u.page,P])),p("li",{class:`${c}`},[K,D])}}}),gi={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var vi=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function hi(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function mi(e){let{originalElement:t}=e;return t}function Ke(e,t,n){const o=typeof e>"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const yi=ue({compatConfig:{MODE:3},name:"Pagination",mixins:[qo],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:B.string.def("rc-pagination"),selectPrefixCls:B.string.def("rc-select"),current:Number,defaultCurrent:B.number.def(1),total:B.number.def(0),pageSize:Number,defaultPageSize:B.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:B.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:B.oneOfType([B.looseBool,B.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:B.arrayOf(B.oneOfType([B.number,B.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:B.object.def(gi),itemRender:B.func.def(mi),prevIcon:B.any,nextIcon:B.any,jumpPrevIcon:B.any,jumpNextIcon:B.any,totalBoundaryShowSizeChanger:B.number.def(50)},data(){const e=this.$props;let t=cn([this.current,this.defaultCurrent]);const n=cn([this.pageSize,this.defaultPageSize]);return t=Math.min(t,Ke(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=Ke(e,this.$data,this.$props);n=n>o?o:n,We(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=Ke(this.pageSize,this.$data,this.$props);if(We(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(Ke(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return No(this,e,this.$props)||p("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=Ke(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let a;return t===""?a=t:isNaN(Number(t))?a=o:t>=n?a=n:a=Number(t),a},isValid(e){return hi(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===Ae.ARROW_UP||e.keyCode===Ae.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===Ae.ENTER?this.handleChange(t):e.keyCode===Ae.ARROW_UP?this.handleChange(t-1):e.keyCode===Ae.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=Ke(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(We(this,"pageSize")||this.setState({statePageSize:e}),We(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=Ke(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),We(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<Ke(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:n}=this.$props;return typeof e<"u"?e:t>n},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];t(...o)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===Ae.ENTER||e.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,n=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),o=!this.hasPrev();return qe(n)?Le(n,o?{disabled:o}:{}):n},renderNext(e){const{itemRender:t}=this.$props,n=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),o=!this.hasNext();return qe(n)?Le(n,o?{disabled:o}:{}):n}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:n,total:o,locale:a,showQuickJumper:r,showLessItems:i,showTitle:l,showTotal:f,simple:u,itemRender:d,showPrevNextJumpers:g,jumpPrevIcon:m,jumpNextIcon:v,selectComponentClass:$,selectPrefixCls:h,pageSizeOptions:s}=this.$props,{stateCurrent:c,statePageSize:K}=this,D=To(this.$attrs).extraAttrs,{class:P}=D,E=vi(D,["class"]);if(n===!0&&this.total<=K)return null;const I=Ke(void 0,this.$data,this.$props),k=[];let M=null,C=null,_=null,z=null,Y=null;const H=r&&r.goButton,Q=i?1:2,ne=c-1>0?c-1:0,me=c+1<I?c+1:I,ie=this.hasPrev(),L=this.hasNext();if(u)return H&&(typeof H=="boolean"?Y=p("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[a.jump_to_confirm]):Y=p("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[H]),Y=p("li",{title:l?`${a.jump_to}${c}/${I}`:null,class:`${e}-simple-pager`},[Y])),p("ul",q({class:te(`${e} ${e}-simple`,{[`${e}-disabled`]:t},P)},E),[p("li",{title:l?a.prev_page:null,onClick:this.prev,tabindex:ie?0:null,onKeypress:this.runIfEnterPrev,class:te(`${e}-prev`,{[`${e}-disabled`]:!ie}),"aria-disabled":!ie},[this.renderPrev(ne)]),p("li",{title:l?`${c}/${I}`:null,class:`${e}-simple-pager`},[p(qn,{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),p("span",{class:`${e}-slash`},[Xn("/")]),I]),p("li",{title:l?a.next_page:null,onClick:this.next,tabindex:L?0:null,onKeypress:this.runIfEnterNext,class:te(`${e}-next`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderNext(me)]),Y]);if(I<=3+Q*2){const pe={locale:a,rootPrefixCls:e,showTitle:l,itemRender:d,onClick:this.handleChange,onKeypress:this.runIfEnter};I||k.push(p(_e,q(q({},pe),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let le=1;le<=I;le+=1){const se=c===le;k.push(p(_e,q(q({},pe),{},{key:le,page:le,active:se}),null))}}else{const pe=i?a.prev_3:a.prev_5,le=i?a.next_3:a.next_5;g&&(M=p("li",{title:this.showTitle?pe:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:te(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!m})},[d({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),C=p("li",{title:this.showTitle?le:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:te(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!v})},[d({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),z=p(_e,{locale:a,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:I,page:I,active:!1,showTitle:l,itemRender:d},null),_=p(_e,{locale:a,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:l,itemRender:d},null);let se=Math.max(1,c-Q),be=Math.min(c+Q,I);c-1<=Q&&(be=1+Q*2),I-c<=Q&&(se=I-Q*2);for(let we=se;we<=be;we+=1){const He=c===we;k.push(p(_e,{locale:a,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:we,page:we,active:He,showTitle:l,itemRender:d},null))}c-1>=Q*2&&c!==1+2&&(k[0]=p(_e,{locale:a,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:se,page:se,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:d},null),k.unshift(M)),I-c>=Q*2&&c!==I-2&&(k[k.length-1]=p(_e,{locale:a,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:be,page:be,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:d},null),k.push(C)),se!==1&&k.unshift(_),be!==I&&k.push(z)}let ve=null;f&&(ve=p("li",{class:`${e}-total-text`},[f(o,[o===0?0:(c-1)*K+1,c*K>o?o:c*K])]));const Z=!ie||!I,oe=!L||!I,re=this.buildOptionText||this.$slots.buildOptionText;return p("ul",q(q({unselectable:"on",ref:"paginationNode"},E),{},{class:te({[`${e}`]:!0,[`${e}-disabled`]:t},P)}),[ve,p("li",{title:l?a.prev_page:null,onClick:this.prev,tabindex:Z?null:0,onKeypress:this.runIfEnterPrev,class:te(`${e}-prev`,{[`${e}-disabled`]:Z}),"aria-disabled":Z},[this.renderPrev(ne)]),k,p("li",{title:l?a.next_page:null,onClick:this.next,tabindex:oe?null:0,onKeypress:this.runIfEnterNext,class:te(`${e}-next`,{[`${e}-disabled`]:oe}),"aria-disabled":oe},[this.renderNext(me)]),p(fi,{disabled:t,locale:a,rootPrefixCls:e,selectComponentClass:$,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:c,pageSize:K,pageSizeOptions:s,buildOptionText:re||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:H},null)])}}),bi=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`
|
|
&:hover ${t}-item:not(${t}-item-active),
|
|
&:active ${t}-item:not(${t}-item-active),
|
|
&:hover ${t}-item-link,
|
|
&:active ${t}-item-link
|
|
`]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},$i=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`
|
|
&${t}-mini ${t}-prev ${t}-item-link,
|
|
&${t}-mini ${t}-next ${t}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:y(y({},sa(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Si=e=>{const{componentCls:t}=e;return{[`
|
|
&${t}-simple ${t}-prev,
|
|
&${t}-simple ${t}-next
|
|
`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Ci=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":y({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},dt(e))},[`
|
|
${t}-prev,
|
|
${t}-jump-prev,
|
|
${t}-jump-next
|
|
`]:{marginInlineEnd:e.marginXS},[`
|
|
${t}-prev,
|
|
${t}-next,
|
|
${t}-jump-prev,
|
|
${t}-jump-next
|
|
`]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:y({},dt(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:y(y({},ca(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},xi=e=>{const{componentCls:t}=e;return{[`${t}-item`]:y(y({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},At(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},wi=e=>{const{componentCls:t}=e;return{[t]:y(y(y(y(y(y(y(y({},ht(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),xi(e)),Ci(e)),Si(e)),$i(e)),bi(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Oi=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Pi=gt("Pagination",e=>{const t=vt(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},ra(e));return[wi(t),e.wireframe&&Oi(t)]});var Ki=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const Ii=()=>({total:Number,defaultCurrent:Number,disabled:ee(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:ee(),showSizeChanger:ee(),pageSizeOptions:ke(),buildOptionText:Se(),showQuickJumper:Ue([Boolean,Object]),showTotal:Se(),size:Bo(),simple:ee(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Se(),role:String,responsive:Boolean,showLessItems:ee(),onChange:Se(),onShowSizeChange:Se(),"onUpdate:current":Se(),"onUpdate:pageSize":Se()}),Ei=ue({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:Ii(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a,configProvider:r,direction:i,size:l}=Re("pagination",e),[f,u]=Pi(a),d=N(()=>r.getPrefixCls("select",e.selectPrefixCls)),g=pa(),[m]=_o("Pagination",Ao,ko(e,"locale")),v=$=>{const h=p("span",{class:`${$}-item-ellipsis`},[Xn("•••")]),s=p("button",{class:`${$}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(ft,null,null):p(yn,null,null)]),c=p("button",{class:`${$}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(yn,null,null):p(ft,null,null)]),K=p("a",{rel:"nofollow",class:`${$}-item-link`},[p("div",{class:`${$}-item-container`},[i.value==="rtl"?p(Cn,{class:`${$}-item-link-icon`},null):p($n,{class:`${$}-item-link-icon`},null),h])]),D=p("a",{rel:"nofollow",class:`${$}-item-link`},[p("div",{class:`${$}-item-container`},[i.value==="rtl"?p($n,{class:`${$}-item-link-icon`},null):p(Cn,{class:`${$}-item-link-icon`},null),h])]);return{prevIcon:s,nextIcon:c,jumpPrevIcon:K,jumpNextIcon:D}};return()=>{var $;const{itemRender:h=n.itemRender,buildOptionText:s=n.buildOptionText,selectComponentClass:c,responsive:K}=e,D=Ki(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),P=l.value==="small"||!!(!(($=g.value)===null||$===void 0)&&$.xs&&!l.value&&K),E=y(y(y(y(y({},D),v(a.value)),{prefixCls:a.value,selectPrefixCls:d.value,selectComponentClass:c||(P?ui:pi),locale:m.value,buildOptionText:s}),o),{class:te({[`${a.value}-mini`]:P,[`${a.value}-rtl`]:i.value==="rtl"},o.class,u.value),itemRender:h});return f(p(yi,E,null))}}}),Kl=Mo(Ei);var xn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const Di=ue({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:y(y({},no),{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),setup(e,t){let{attrs:n,slots:o}=t;const a=G(!0),r=Gt(),i=G(!1),l=N(()=>e.motion?e.motion:ia()),f=(u,d)=>{var g,m,v,$;d==="appear"?(m=(g=l.value)===null||g===void 0?void 0:g.onAfterEnter)===null||m===void 0||m.call(g,u):d==="leave"&&(($=(v=l.value)===null||v===void 0?void 0:v.onAfterLeave)===null||$===void 0||$.call(v,u)),i.value||e.onMotionEnd(),i.value=!0};return ye(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&a.value&&Xt(()=>{a.value=!1})},{immediate:!0,flush:"post"}),Ht(()=>{e.motionNodes&&e.onMotionStart()}),Vn(()=>{e.motionNodes&&f()}),()=>{const{motion:u,motionNodes:d,motionType:g,active:m,eventKey:v}=e,$=xn(e,["motion","motionNodes","motionType","active","eventKey"]);return d?p(Lo,q(q({},l.value),{},{appear:g==="show",onAfterAppear:h=>f(h,"appear"),onAfterLeave:h=>f(h,"leave")}),{default:()=>[jo(p("div",{class:`${r.value.prefixCls}-treenode-motion`},[d.map(h=>{const s=xn(h.data,[]),{title:c,key:K,isStart:D,isEnd:P}=h;return delete s.children,p(zt,q(q({},s),{},{title:c,active:m,data:h.data,key:K,eventKey:K,isStart:D,isEnd:P}),o)})]),[[zo,a.value]])]}):p(zt,q(q({class:n.class,style:n.style},$),{},{active:m,eventKey:v}),o)}}});function Ni(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function a(r,i){const l=new Map;r.forEach(u=>{l.set(u,!0)});const f=i.filter(u=>!l.has(u));return f.length===1?f[0]:null}return n<o?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function wn(e,t,n){const o=e.findIndex(i=>i.key===n),a=e[o+1],r=t.findIndex(i=>i.key===n);if(a){const i=t.findIndex(l=>l.key===a.key);return t.slice(r+1,i)}return t.slice(r+1)}var On=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const Pn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ti=()=>{},Be=`RC_TREE_MOTION_${Math.random()}`,Ft={key:Be},ro={key:Be,level:0,index:0,pos:"0",node:Ft,nodes:[Ft]},Kn={parent:null,children:[],pos:ro.pos,data:Ft,title:null,key:Be,isStart:[],isEnd:[]};function In(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function En(e){const{key:t,pos:n}=e;return Ye(t,n)}function _i(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const ki=ue({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Ta,setup(e,t){let{expose:n,attrs:o}=t;const a=he(),r=he(),{expandedKeys:i,flattenNodes:l}=to();n({scrollTo:h=>{a.value.scrollTo(h)},getIndentWidth:()=>r.value.offsetWidth});const f=G(l.value),u=G([]),d=he(null);function g(){f.value=l.value,u.value=[],d.value=null,e.onListChangeEnd()}const m=Gt();ye([()=>i.value.slice(),l],(h,s)=>{let[c,K]=h,[D,P]=s;const E=Ni(D,c);if(E.key!==null){const{virtual:I,height:k,itemHeight:M}=e;if(E.add){const C=P.findIndex(Y=>{let{key:H}=Y;return H===E.key}),_=In(wn(P,K,E.key),I,k,M),z=P.slice();z.splice(C+1,0,Kn),f.value=z,u.value=_,d.value="show"}else{const C=K.findIndex(Y=>{let{key:H}=Y;return H===E.key}),_=In(wn(K,P,E.key),I,k,M),z=K.slice();z.splice(C+1,0,Kn),f.value=z,u.value=_,d.value="hide"}}else P!==K&&(f.value=K)}),ye(()=>m.value.dragging,h=>{h||g()});const v=N(()=>e.motion===void 0?f.value:l.value),$=()=>{e.onActiveChange(null)};return()=>{const h=y(y({},e),o),{prefixCls:s,selectable:c,checkable:K,disabled:D,motion:P,height:E,itemHeight:I,virtual:k,focusable:M,activeItem:C,focused:_,tabindex:z,onKeydown:Y,onFocus:H,onBlur:Q,onListChangeStart:ne,onListChangeEnd:me}=h,ie=On(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return p(zn,null,[_&&C&&p("span",{style:Pn,"aria-live":"assertive"},[_i(C)]),p("div",null,[p("input",{style:Pn,disabled:M===!1||D,tabindex:M!==!1?z:null,onKeydown:Y,onFocus:H,onBlur:Q,value:"",onChange:Ti,"aria-label":"for screen reader"},null)]),p("div",{class:`${s}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[p("div",{class:`${s}-indent`},[p("div",{ref:r,class:`${s}-indent-unit`},null)])]),p(ea,q(q({},mt(ie,["onActiveChange"])),{},{data:v.value,itemKey:En,height:E,fullHeight:!1,virtual:k,itemHeight:I,prefixCls:`${s}-list`,ref:a,onVisibleChange:(L,ve)=>{const Z=new Set(L);ve.filter(re=>!Z.has(re)).some(re=>En(re)===Be)&&g()}}),{default:L=>{const{pos:ve}=L,Z=On(L.data,[]),{title:oe,key:re,isStart:pe,isEnd:le}=L,se=Ye(re,ve);return delete Z.key,delete Z.children,p(Di,q(q({},Z),{},{eventKey:se,title:oe,active:!!C&&re===C.key,data:L.data,isStart:pe,isEnd:le,motion:P,motionNodes:re===Be?u.value:null,motionType:d.value,onMotionStart:ne,onMotionEnd:g,onMousemove:$}),null)}})])}}});function Ai(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:a.top=0,a.left=`${-n*o}px`;break;case 1:a.bottom=0,a.left=`${-n*o}px`;break;case 0:a.bottom=0,a.left=`${o}`;break}return p("div",{style:a},null)}const Bi=10,Mi=ue({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Fe(oo(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Ai,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:a}=t;const r=G(!1);let i={};const l=G(),f=G([]),u=G([]),d=G([]),g=G([]),m=G([]),v=G([]),$={},h=Fn({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),s=G([]);ye([()=>e.treeData,()=>e.children],()=>{s.value=e.treeData!==void 0?e.treeData.slice():Rt(sn(e.children))},{immediate:!0,deep:!0});const c=G({}),K=G(!1),D=G(null),P=G(!1),E=N(()=>yt(e.fieldNames)),I=G();let k=null,M=null,C=null;const _=N(()=>({expandedKeysSet:z.value,selectedKeysSet:Y.value,loadedKeysSet:H.value,loadingKeysSet:Q.value,checkedKeysSet:ne.value,halfCheckedKeysSet:me.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:c.value})),z=N(()=>new Set(v.value)),Y=N(()=>new Set(f.value)),H=N(()=>new Set(g.value)),Q=N(()=>new Set(m.value)),ne=N(()=>new Set(u.value)),me=N(()=>new Set(d.value));Ne(()=>{if(s.value){const S=io(s.value,{fieldNames:E.value});c.value=y({[Be]:ro},S.keyEntities)}});let ie=!1;ye([()=>e.expandedKeys,()=>e.autoExpandParent,c],(S,x)=>{let[O,A]=S,[R,j]=x,T=v.value;if(e.expandedKeys!==void 0||ie&&A!==j)T=e.autoExpandParent||!ie&&e.defaultExpandParent?Lt(e.expandedKeys,c.value):e.expandedKeys;else if(!ie&&e.defaultExpandAll){const V=y({},c.value);delete V[Be],T=Object.keys(V).map(J=>V[J].key)}else!ie&&e.defaultExpandedKeys&&(T=e.autoExpandParent||e.defaultExpandParent?Lt(e.defaultExpandedKeys,c.value):e.defaultExpandedKeys);T&&(v.value=T),ie=!0},{immediate:!0});const L=G([]);Ne(()=>{L.value=La(s.value,v.value,E.value)}),Ne(()=>{e.selectable&&(e.selectedKeys!==void 0?f.value=hn(e.selectedKeys,e):!ie&&e.defaultSelectedKeys&&(f.value=hn(e.defaultSelectedKeys,e)))});const{maxLevel:ve,levelEntities:Z}=Xa(c);Ne(()=>{if(e.checkable){let S;if(e.checkedKeys!==void 0?S=Dt(e.checkedKeys)||{}:!ie&&e.defaultCheckedKeys?S=Dt(e.defaultCheckedKeys)||{}:s.value&&(S=Dt(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:d.value}),S){let{checkedKeys:x=[],halfCheckedKeys:O=[]}=S;e.checkStrictly||({checkedKeys:x,halfCheckedKeys:O}=Nt(x,!0,c.value,ve.value,Z.value)),u.value=x,d.value=O}}}),Ne(()=>{e.loadedKeys&&(g.value=e.loadedKeys)});const oe=()=>{y(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},re=S=>{I.value.scrollTo(S)};ye(()=>e.activeKey,()=>{e.activeKey!==void 0&&(D.value=e.activeKey)},{immediate:!0}),ye(D,S=>{Xt(()=>{S!==null&&re({key:S})})},{immediate:!0,flush:"post"});const pe=S=>{e.expandedKeys===void 0&&(v.value=S)},le=()=>{h.draggingNodeKey!==null&&y(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),k=null,C=null},se=(S,x)=>{const{onDragend:O}=e;h.dragOverNodeKey=null,le(),O==null||O({event:S,node:x.eventData}),M=null},be=S=>{se(S,null),window.removeEventListener("dragend",be)},we=(S,x)=>{const{onDragstart:O}=e,{eventKey:A,eventData:R}=x;M=x,k={x:S.clientX,y:S.clientY};const j=Pe(v.value,A);h.draggingNodeKey=A,h.dragChildrenKeys=Ba(A,c.value),l.value=I.value.getIndentWidth(),pe(j),window.addEventListener("dragend",be),O&&O({event:S,node:R})},He=(S,x)=>{const{onDragenter:O,onExpand:A,allowDrop:R,direction:j}=e,{pos:T,eventKey:V}=x;if(C!==V&&(C=V),!M){oe();return}const{dropPosition:J,dropLevelOffset:F,dropTargetKey:X,dropContainerKey:U,dropTargetPos:fe,dropAllowed:Oe,dragOverNodeKey:$e}=vn(S,M,x,l.value,k,R,L.value,c.value,z.value,j);if(h.dragChildrenKeys.indexOf(X)!==-1||!Oe){oe();return}if(i||(i={}),Object.keys(i).forEach(ge=>{clearTimeout(i[ge])}),M.eventKey!==x.eventKey&&(i[T]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let ge=v.value.slice();const Ee=c.value[x.eventKey];Ee&&(Ee.children||[]).length&&(ge=De(v.value,x.eventKey)),pe(ge),A&&A(ge,{node:x.eventData,expanded:!0,nativeEvent:S})},800)),M.eventKey===X&&F===0){oe();return}y(h,{dragOverNodeKey:$e,dropPosition:J,dropLevelOffset:F,dropTargetKey:X,dropContainerKey:U,dropTargetPos:fe,dropAllowed:Oe}),O&&O({event:S,node:x.eventData,expandedKeys:v.value})},bt=(S,x)=>{const{onDragover:O,allowDrop:A,direction:R}=e;if(!M)return;const{dropPosition:j,dropLevelOffset:T,dropTargetKey:V,dropContainerKey:J,dropAllowed:F,dropTargetPos:X,dragOverNodeKey:U}=vn(S,M,x,l.value,k,A,L.value,c.value,z.value,R);h.dragChildrenKeys.indexOf(V)!==-1||!F||(M.eventKey===V&&T===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||oe():j===h.dropPosition&&T===h.dropLevelOffset&&V===h.dropTargetKey&&J===h.dropContainerKey&&X===h.dropTargetPos&&F===h.dropAllowed&&U===h.dragOverNodeKey||y(h,{dropPosition:j,dropLevelOffset:T,dropTargetKey:V,dropContainerKey:J,dropTargetPos:X,dropAllowed:F,dragOverNodeKey:U}),O&&O({event:S,node:x.eventData}))},$t=(S,x)=>{C===x.eventKey&&!S.currentTarget.contains(S.relatedTarget)&&(oe(),C=null);const{onDragleave:O}=e;O&&O({event:S,node:x.eventData})},St=function(S,x){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var A;const{dragChildrenKeys:R,dropPosition:j,dropTargetKey:T,dropTargetPos:V,dropAllowed:J}=h;if(!J)return;const{onDrop:F}=e;if(h.dragOverNodeKey=null,le(),T===null)return;const X=y(y({},it(T,sn(_.value))),{active:((A=W.value)===null||A===void 0?void 0:A.key)===T,data:c.value[T].node});R.indexOf(T);const U=Ut(V),fe={event:S,node:lt(X),dragNode:M?M.eventData:null,dragNodesKeys:[M.eventKey].concat(R),dropToGap:j!==0,dropPosition:j+Number(U[U.length-1])};O||F==null||F(fe),M=null},Qe=(S,x)=>{const{expanded:O,key:A}=x,R=L.value.filter(T=>T.key===A)[0],j=lt(y(y({},it(A,_.value)),{data:R.data}));pe(O?Pe(v.value,A):De(v.value,A)),Te(S,j)},Ct=(S,x)=>{const{onClick:O,expandAction:A}=e;A==="click"&&Qe(S,x),O&&O(S,x)},xt=(S,x)=>{const{onDblclick:O,expandAction:A}=e;(A==="doubleclick"||A==="dblclick")&&Qe(S,x),O&&O(S,x)},Ze=(S,x)=>{let O=f.value;const{onSelect:A,multiple:R}=e,{selected:j}=x,T=x[E.value.key],V=!j;V?R?O=De(O,T):O=[T]:O=Pe(O,T);const J=c.value,F=O.map(X=>{const U=J[X];return U?U.node:null}).filter(X=>X);e.selectedKeys===void 0&&(f.value=O),A&&A(O,{event:"select",selected:V,node:x,selectedNodes:F,nativeEvent:S})},et=(S,x,O)=>{const{checkStrictly:A,onCheck:R}=e,j=x[E.value.key];let T;const V={event:"check",node:x,checked:O,nativeEvent:S},J=c.value;if(A){const F=O?De(u.value,j):Pe(u.value,j),X=Pe(d.value,j);T={checked:F,halfChecked:X},V.checkedNodes=F.map(U=>J[U]).filter(U=>U).map(U=>U.node),e.checkedKeys===void 0&&(u.value=F)}else{let{checkedKeys:F,halfCheckedKeys:X}=Nt([...u.value,j],!0,J,ve.value,Z.value);if(!O){const U=new Set(F);U.delete(j),{checkedKeys:F,halfCheckedKeys:X}=Nt(Array.from(U),{checked:!1,halfCheckedKeys:X},J,ve.value,Z.value)}T=F,V.checkedNodes=[],V.checkedNodesPositions=[],V.halfCheckedKeys=X,F.forEach(U=>{const fe=J[U];if(!fe)return;const{node:Oe,pos:$e}=fe;V.checkedNodes.push(Oe),V.checkedNodesPositions.push({node:Oe,pos:$e})}),e.checkedKeys===void 0&&(u.value=F,d.value=X)}R&&R(T,V)},tt=S=>{const x=S[E.value.key],O=new Promise((A,R)=>{const{loadData:j,onLoad:T}=e;if(!j||H.value.has(x)||Q.value.has(x))return null;j(S).then(()=>{const J=De(g.value,x),F=Pe(m.value,x);T&&T(J,{event:"load",node:S}),e.loadedKeys===void 0&&(g.value=J),m.value=F,A()}).catch(J=>{const F=Pe(m.value,x);if(m.value=F,$[x]=($[x]||0)+1,$[x]>=Bi){const X=De(g.value,x);e.loadedKeys===void 0&&(g.value=X),A()}R(J)}),m.value=De(m.value,x)});return O.catch(()=>{}),O},wt=(S,x)=>{const{onMouseenter:O}=e;O&&O({event:S,node:x})},nt=(S,x)=>{const{onMouseleave:O}=e;O&&O({event:S,node:x})},Ot=(S,x)=>{const{onRightClick:O}=e;O&&(S.preventDefault(),O({event:S,node:x}))},Pt=S=>{const{onFocus:x}=e;K.value=!0,x&&x(S)},ot=S=>{const{onBlur:x}=e;K.value=!1,w(null),x&&x(S)},Te=(S,x)=>{let O=v.value;const{onExpand:A,loadData:R}=e,{expanded:j}=x,T=x[E.value.key];if(P.value)return;O.indexOf(T);const V=!j;if(V?O=De(O,T):O=Pe(O,T),pe(O),A&&A(O,{node:x,expanded:V,nativeEvent:S}),V&&R){const J=tt(x);J&&J.then(()=>{}).catch(F=>{const X=Pe(v.value,T);pe(X),Promise.reject(F)})}},Kt=()=>{P.value=!0},b=()=>{setTimeout(()=>{P.value=!1})},w=S=>{const{onActiveChange:x}=e;D.value!==S&&(e.activeKey!==void 0&&(D.value=S),S!==null&&re({key:S}),x&&x(S))},W=N(()=>D.value===null?null:L.value.find(S=>{let{key:x}=S;return x===D.value})||null),ae=S=>{let x=L.value.findIndex(A=>{let{key:R}=A;return R===D.value});x===-1&&S<0&&(x=L.value.length),x=(x+S+L.value.length)%L.value.length;const O=L.value[x];if(O){const{key:A}=O;w(A)}else w(null)},ce=N(()=>lt(y(y({},it(D.value,_.value)),{data:W.value.data,active:!0}))),de=S=>{const{onKeydown:x,checkable:O,selectable:A}=e;switch(S.which){case Me.UP:{ae(-1),S.preventDefault();break}case Me.DOWN:{ae(1),S.preventDefault();break}}const R=W.value;if(R&&R.data){const j=R.data.isLeaf===!1||!!(R.data.children||[]).length,T=ce.value;switch(S.which){case Me.LEFT:{j&&z.value.has(D.value)?Te({},T):R.parent&&w(R.parent.key),S.preventDefault();break}case Me.RIGHT:{j&&!z.value.has(D.value)?Te({},T):R.children&&R.children.length&&w(R.children[0].key),S.preventDefault();break}case Me.ENTER:case Me.SPACE:{O&&!T.disabled&&T.checkable!==!1&&!T.disableCheckbox?et({},T,!ne.value.has(D.value)):!O&&A&&!T.disabled&&T.selectable!==!1&&Ze({},T);break}}}x&&x(S)};return a({onNodeExpand:Te,scrollTo:re,onKeydown:de,selectedKeys:N(()=>f.value),checkedKeys:N(()=>u.value),halfCheckedKeys:N(()=>d.value),loadedKeys:N(()=>g.value),loadingKeys:N(()=>m.value),expandedKeys:N(()=>v.value)}),jn(()=>{window.removeEventListener("dragend",be),r.value=!0}),Ea({expandedKeys:v,selectedKeys:f,loadedKeys:g,loadingKeys:m,checkedKeys:u,halfCheckedKeys:d,expandedKeysSet:z,selectedKeysSet:Y,loadedKeysSet:H,loadingKeysSet:Q,checkedKeysSet:ne,halfCheckedKeysSet:me,flattenNodes:L}),()=>{const{draggingNodeKey:S,dropLevelOffset:x,dropContainerKey:O,dropTargetKey:A,dropPosition:R,dragOverNodeKey:j}=h,{prefixCls:T,showLine:V,focusable:J,tabindex:F=0,selectable:X,showIcon:U,icon:fe=o.icon,switcherIcon:Oe,draggable:$e,checkable:ge,checkStrictly:Ee,disabled:Ve,motion:It,loadData:uo,filterTreeNode:po,height:fo,itemHeight:go,virtual:vo,dropIndicatorRender:ho,onContextmenu:mo,onScroll:yo,direction:bo,rootClassName:$o,rootStyle:So}=e,{class:Co,style:xo}=n,wo=Un(y(y({},e),n),{aria:!0,data:!0});let Xe;return $e?typeof $e=="object"?Xe=$e:typeof $e=="function"?Xe={nodeDraggable:$e}:Xe={}:Xe=!1,p(Ia,{value:{prefixCls:T,selectable:X,showIcon:U,icon:fe,switcherIcon:Oe,draggable:Xe,draggingNodeKey:S,checkable:ge,customCheckable:o.checkable,checkStrictly:Ee,disabled:Ve,keyEntities:c.value,dropLevelOffset:x,dropContainerKey:O,dropTargetKey:A,dropPosition:R,dragOverNodeKey:j,dragging:S!==null,indent:l.value,direction:bo,dropIndicatorRender:ho,loadData:uo,filterTreeNode:po,onNodeClick:Ct,onNodeDoubleClick:xt,onNodeExpand:Te,onNodeSelect:Ze,onNodeCheck:et,onNodeLoad:tt,onNodeMouseEnter:wt,onNodeMouseLeave:nt,onNodeContextMenu:Ot,onNodeDragStart:we,onNodeDragEnter:He,onNodeDragOver:bt,onNodeDragLeave:$t,onNodeDragEnd:se,onNodeDrop:St,slots:o}},{default:()=>[p("div",{role:"tree",class:te(T,Co,$o,{[`${T}-show-line`]:V,[`${T}-focused`]:K.value,[`${T}-active-focused`]:D.value!==null}),style:So},[p(ki,q({ref:I,prefixCls:T,style:xo,disabled:Ve,selectable:X,checkable:!!ge,motion:It,height:fo,itemHeight:go,virtual:vo,focusable:J,focused:K.value,tabindex:F,activeItem:W.value,onFocus:Pt,onBlur:ot,onKeydown:de,onActiveChange:w,onListChangeStart:Kt,onListChangeEnd:b,onContextmenu:mo,onScroll:yo},wo),null)])]})}}});var ji={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 zi=ji;function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Li(e,a,n[a])})}return e}function Li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qt=function(t,n){var o=Dn({},t,n.attrs);return p(xe,Dn({},o,{icon:zi}),null)};Qt.displayName="FileOutlined";Qt.inheritAttrs=!1;const so=Qt;var Ri={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 Fi=Ri;function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Hi(e,a,n[a])})}return e}function Hi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zt=function(t,n){var o=Nn({},t,n.attrs);return p(xe,Nn({},o,{icon:Fi}),null)};Zt.displayName="MinusSquareOutlined";Zt.inheritAttrs=!1;const Vi=Zt;var Xi={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 Wi=Xi;function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Gi(e,a,n[a])})}return e}function Gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=function(t,n){var o=Tn({},t,n.attrs);return p(xe,Tn({},o,{icon:Wi}),null)};en.displayName="PlusSquareOutlined";en.inheritAttrs=!1;const Ui=en;var qi={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 Ji=qi;function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Yi(e,a,n[a])})}return e}function Yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tn=function(t,n){var o=_n({},t,n.attrs);return p(xe,_n({},o,{icon:Ji}),null)};tn.displayName="CaretDownFilled";tn.inheritAttrs=!1;const Qi=tn;function Zi(e,t,n,o,a){const{isLeaf:r,expanded:i,loading:l}=n;let f=t;if(l)return p(Ro,{class:`${e}-switcher-loading-icon`},null);let u;a&&typeof a=="object"&&(u=a.showLeafIcon);let d=null;const g=`${e}-switcher-icon`;return r?a?u&&o?o(n):(typeof a=="object"&&!u?d=p("span",{class:`${e}-switcher-leaf-line`},null):d=p(so,{class:`${e}-switcher-line-icon`},null),d):null:(d=p(Qi,{class:g},null),a&&(d=i?p(Vi,{class:`${e}-switcher-line-icon`},null):p(Ui,{class:`${e}-switcher-line-icon`},null)),typeof t=="function"?f=t(y(y({},n),{defaultIcon:d,switcherCls:g})):qe(f)&&(f=Bt(f,{class:g})),f||d)}const kn=4;function el(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:a,direction:r="ltr"}=e,i=r==="ltr"?"left":"right",l=r==="ltr"?"right":"left",f={[i]:`${-n*a+kn}px`,[l]:0};switch(t){case-1:f.top="-3px";break;case 1:f.bottom="-3px";break;default:f.bottom="-3px",f[i]=`${a+kn}px`;break}return p("div",{style:f,class:`${o}-drop-indicator`},null)}const tl=new Vt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),nl=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ol=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),al=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:a,treeTitleHeight:r}=t,i=(r-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:y(y({},ht(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:y({},dt(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:tl,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${a}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:y({},dt(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:r,lineHeight:`${r}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:r}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:y(y({},nl(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:r,margin:0,lineHeight:`${r}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:r/2,bottom:-a,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:r/2*.8,height:r/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:r,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${r}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:r,height:r,lineHeight:`${r}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:y({lineHeight:`${r}px`,userSelect:"none"},ol(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:r/2,bottom:-a,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${r/2}px !important`}}}}})}},il=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},ll=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,a=t.paddingXS/2,r=t.controlHeightSM,i=vt(t,{treeCls:n,treeNodeCls:o,treeNodePadding:a,treeTitleHeight:r});return[al(e,i),il(i)]},rl=gt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:da(`${n}-checkbox`,e)},ll(n,e),la(e)]}),co=()=>{const e=oo();return y(y({},e),{showLine:Ue([Boolean,Object]),multiple:ee(),autoExpandParent:ee(),checkStrictly:ee(),checkable:ee(),disabled:ee(),defaultExpandAll:ee(),defaultExpandParent:ee(),defaultExpandedKeys:ke(),expandedKeys:ke(),checkedKeys:Ue([Array,Object]),defaultCheckedKeys:ke(),selectedKeys:ke(),defaultSelectedKeys:ke(),selectable:ee(),loadedKeys:ke(),draggable:ee(),showIcon:ee(),icon:Se(),switcherIcon:B.any,prefixCls:String,replaceFields:at(),blockNode:ee(),openAnimation:B.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Se(),"onUpdate:checkedKeys":Se(),"onUpdate:expandedKeys":Se()})},ct=ue({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Fe(co(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:a,slots:r}=t;Wn(!(e.treeData===void 0&&r.default));const{prefixCls:i,direction:l,virtual:f}=Re("tree",e),[u,d]=rl(i),g=he();o({treeRef:g,onNodeExpand:function(){var s;(s=g.value)===null||s===void 0||s.onNodeExpand(...arguments)},scrollTo:s=>{var c;(c=g.value)===null||c===void 0||c.scrollTo(s)},selectedKeys:N(()=>{var s;return(s=g.value)===null||s===void 0?void 0:s.selectedKeys}),checkedKeys:N(()=>{var s;return(s=g.value)===null||s===void 0?void 0:s.checkedKeys}),halfCheckedKeys:N(()=>{var s;return(s=g.value)===null||s===void 0?void 0:s.halfCheckedKeys}),loadedKeys:N(()=>{var s;return(s=g.value)===null||s===void 0?void 0:s.loadedKeys}),loadingKeys:N(()=>{var s;return(s=g.value)===null||s===void 0?void 0:s.loadingKeys}),expandedKeys:N(()=>{var s;return(s=g.value)===null||s===void 0?void 0:s.expandedKeys})}),Ne(()=>{jt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const v=(s,c)=>{a("update:checkedKeys",s),a("check",s,c)},$=(s,c)=>{a("update:expandedKeys",s),a("expand",s,c)},h=(s,c)=>{a("update:selectedKeys",s),a("select",s,c)};return()=>{const{showIcon:s,showLine:c,switcherIcon:K=r.switcherIcon,icon:D=r.icon,blockNode:P,checkable:E,selectable:I,fieldNames:k=e.replaceFields,motion:M=e.openAnimation,itemHeight:C=28,onDoubleclick:_,onDblclick:z}=e,Y=y(y(y({},n),mt(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!c,dropIndicatorRender:el,fieldNames:k,icon:D,itemHeight:C}),H=r.default?Je(r.default()):void 0;return u(p(Mi,q(q({},Y),{},{virtual:f.value,motion:M,ref:g,prefixCls:i.value,class:te({[`${i.value}-icon-hide`]:!s,[`${i.value}-block-node`]:P,[`${i.value}-unselectable`]:!I,[`${i.value}-rtl`]:l.value==="rtl"},n.class,d.value),direction:l.value,checkable:E,selectable:I,switcherIcon:Q=>Zi(i.value,K,Q,r.leafIcon,c),onCheck:v,onExpand:$,onSelect:h,onDblclick:z||_,children:H}),y(y({},r),{checkable:()=>p("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var sl={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 cl=sl;function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){dl(e,a,n[a])})}return e}function dl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn=function(t,n){var o=An({},t,n.attrs);return p(xe,An({},o,{icon:cl}),null)};nn.displayName="FolderOpenOutlined";nn.inheritAttrs=!1;const ul=nn;var pl={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 fl=pl;function Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){gl(e,a,n[a])})}return e}function gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(t,n){var o=Bn({},t,n.attrs);return p(xe,Bn({},o,{icon:fl}),null)};on.displayName="FolderOutlined";on.inheritAttrs=!1;const vl=on;var Ie;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(Ie||(Ie={}));function an(e,t,n){function o(a){const r=a[t.key],i=a[t.children];n(r,a)!==!1&&an(i||[],t,n)}e.forEach(o)}function hl(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:a,fieldNames:r={title:"title",key:"key",children:"children"}}=e;const i=[];let l=Ie.None;if(o&&o===a)return[o];if(!o||!a)return[];function f(u){return u===o||u===a}return an(t,r,u=>{if(l===Ie.End)return!1;if(f(u)){if(i.push(u),l===Ie.None)l=Ie.Start;else if(l===Ie.Start)return l=Ie.End,!1}else l===Ie.Start&&i.push(u);return n.includes(u)}),i}function Tt(e,t,n){const o=[...t],a=[];return an(e,n,(r,i)=>{const l=o.indexOf(r);return l!==-1&&(a.push(i),o.splice(l,1)),!!o.length}),a}var ml=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const yl=()=>y(y({},co()),{expandAction:Ue([Boolean,String])});function bl(e){const{isLeaf:t,expanded:n}=e;return t?p(so,null,null):n?p(ul,null,null):p(vl,null,null)}const _t=ue({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Fe(yl(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:a,expose:r}=t;var i;const l=he(e.treeData||Rt(Je((i=o.default)===null||i===void 0?void 0:i.call(o))));ye(()=>e.treeData,()=>{l.value=e.treeData}),Hn(()=>{Xt(()=>{var C;e.treeData===void 0&&o.default&&(l.value=Rt(Je((C=o.default)===null||C===void 0?void 0:C.call(o))))})});const f=he(),u=he(),d=N(()=>yt(e.fieldNames)),g=he();r({scrollTo:C=>{var _;(_=g.value)===null||_===void 0||_.scrollTo(C)},selectedKeys:N(()=>{var C;return(C=g.value)===null||C===void 0?void 0:C.selectedKeys}),checkedKeys:N(()=>{var C;return(C=g.value)===null||C===void 0?void 0:C.checkedKeys}),halfCheckedKeys:N(()=>{var C;return(C=g.value)===null||C===void 0?void 0:C.halfCheckedKeys}),loadedKeys:N(()=>{var C;return(C=g.value)===null||C===void 0?void 0:C.loadedKeys}),loadingKeys:N(()=>{var C;return(C=g.value)===null||C===void 0?void 0:C.loadingKeys}),expandedKeys:N(()=>{var C;return(C=g.value)===null||C===void 0?void 0:C.expandedKeys})});const v=()=>{const{keyEntities:C}=io(l.value,{fieldNames:d.value});let _;return e.defaultExpandAll?_=Object.keys(C):e.defaultExpandParent?_=Lt(e.expandedKeys||e.defaultExpandedKeys||[],C):_=e.expandedKeys||e.defaultExpandedKeys,_},$=he(e.selectedKeys||e.defaultSelectedKeys||[]),h=he(v());ye(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&($.value=e.selectedKeys)},{immediate:!0}),ye(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const c=ua((C,_)=>{const{isLeaf:z}=_;z||C.shiftKey||C.metaKey||C.ctrlKey||g.value.onNodeExpand(C,_)},200,{leading:!0}),K=(C,_)=>{e.expandedKeys===void 0&&(h.value=C),a("update:expandedKeys",C),a("expand",C,_)},D=(C,_)=>{const{expandAction:z}=e;z==="click"&&c(C,_),a("click",C,_)},P=(C,_)=>{const{expandAction:z}=e;(z==="dblclick"||z==="doubleclick")&&c(C,_),a("doubleclick",C,_),a("dblclick",C,_)},E=(C,_)=>{const{multiple:z}=e,{node:Y,nativeEvent:H}=_,Q=Y[d.value.key],ne=y(y({},_),{selected:!0}),me=(H==null?void 0:H.ctrlKey)||(H==null?void 0:H.metaKey),ie=H==null?void 0:H.shiftKey;let L;z&&me?(L=C,f.value=Q,u.value=L,ne.selectedNodes=Tt(l.value,L,d.value)):z&&ie?(L=Array.from(new Set([...u.value||[],...hl({treeData:l.value,expandedKeys:h.value,startKey:Q,endKey:f.value,fieldNames:d.value})])),ne.selectedNodes=Tt(l.value,L,d.value)):(L=[Q],f.value=Q,u.value=L,ne.selectedNodes=Tt(l.value,L,d.value)),a("update:selectedKeys",L),a("select",L,ne),e.selectedKeys===void 0&&($.value=L)},I=(C,_)=>{a("update:checkedKeys",C),a("check",C,_)},{prefixCls:k,direction:M}=Re("tree",e);return()=>{const C=te(`${k.value}-directory`,{[`${k.value}-directory-rtl`]:M.value==="rtl"},n.class),{icon:_=o.icon,blockNode:z=!0}=e,Y=ml(e,["icon","blockNode"]);return p(ct,q(q(q({},n),{},{icon:_||bl,ref:g,blockNode:z},Y),{},{prefixCls:k.value,class:C,expandedKeys:h.value,selectedKeys:$.value,onSelect:E,onClick:D,onDblclick:P,onExpand:K,onCheck:I}),o)}}}),kt=zt,Il=y(ct,{DirectoryTree:_t,TreeNode:kt,install:e=>(e.component(ct.name,ct),e.component(kt.name,kt),e.component(_t.name,_t),e)});function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){$l(e,a,n[a])})}return e}function $l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function(t,n){var o=Mn({},t,n.attrs);return p(Jo,Mn({},o,{icon:Fo}),null)};ln.displayName="ExclamationCircleOutlined";ln.inheritAttrs=!1;const El=ln;export{Ge as D,El as E,zi as F,yn as L,gi as P,ft as R,st as S,Mi as T,Il as _,Kl as a,pt as b,io as c,Nt as d,Ce as e,Pe as f,De as g,pa as h,Ga as i,Pa as j,ll as k,ha as l,Zi as r,Xa as u};
|