import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Hn as r,Pn as i,T as a,_n as o,ar as s,kt as c,or as l,q as u,vn as d}from"./axios-BbX9YWYe.js";import{n as f,t as p}from"./slicedToArray-YLaz90ka.js";import{n as m,t as h}from"./typeof-BUNGcdwP.js";import{i as g,r as _}from"./asyncToGenerator-DHhZBkop.js";import{a as v,c as y,d as b,i as x,l as S,t as C,u as w}from"./iconUtil-qonJUFWj.js";var T=e(t());l(),m(),g(),n();var E={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`},D=T.forwardRef(function(e,t){return T.createElement(c,i(i({},e),{},{ref:t,icon:E}))}),O=e(r());function k(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.prefixCls,i=e.indent,a=e.direction,o=a===void 0?`ltr`:a,s=o===`ltr`?`left`:`right`,c=o===`ltr`?`right`:`left`,l=_(_({},s,-n*i+4),c,0);switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[s]=i+4;break}return T.createElement(`div`,{style:l,className:`${r}-drop-indicator`})}g();var A=T.forwardRef(function(e,t){var n=T.useContext(u),r=n.getPrefixCls,i=n.direction,o=n.virtual,c=e.prefixCls,l=e.className,d=e.showIcon,f=d===void 0?!1:d,p=e.showLine,m=e.switcherIcon,g=e.blockNode,y=g===void 0?!1:g,b=e.children,x=e.checkable,S=x===void 0?!1:x,w=e.selectable,E=w===void 0?!0:w,A=e.draggable,j=e.motion,M=j===void 0?s(s({},a),{motionAppear:!1}):j,N=r(`tree`,c),P=s(s({},e),{checkable:S,selectable:E,showIcon:f,motion:M,blockNode:y,showLine:!!p,dropIndicatorRender:k}),F=T.useMemo(function(){if(!A)return!1;var e={};switch(h(A)){case`function`:e.nodeDraggable=A;break;case`object`:e=s({},A);break;default:break}return e.icon!==!1&&(e.icon=e.icon||T.createElement(D,null)),e},[A]);return T.createElement(v,s({itemHeight:20,ref:t,virtual:o},P,{prefixCls:N,className:(0,O.default)(_(_(_(_({},`${N}-icon-hide`,!f),`${N}-block-node`,y),`${N}-unselectable`,!E),`${N}-rtl`,i===`rtl`),l),direction:i,checkable:S&&T.createElement(`span`,{className:`${N}-checkbox-inner`}),selectable:E,switcherIcon:function(e){return C(N,m,p,e)},draggable:F}),b)});d(),f();var j={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`};n();var M=T.forwardRef(function(e,t){return T.createElement(c,i(i({},e),{},{ref:t,icon:j}))}),N={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`};n();var P=T.forwardRef(function(e,t){return T.createElement(c,i(i({},e),{},{ref:t,icon:N}))}),F;(function(e){e[e.None=0]=`None`,e[e.Start=1]=`Start`,e[e.End=2]=`End`})(F||={});function I(e,t){function n(e){var n=e.key,r=e.children;t(n,e)!==!1&&I(r||[],t)}e.forEach(n)}function L(e){var t=e.treeData,n=e.expandedKeys,r=e.startKey,i=e.endKey,a=[],o=F.None;if(r&&r===i)return[r];if(!r||!i)return[];function s(e){return e===r||e===i}return I(t,function(e){if(o===F.End)return!1;if(s(e)){if(a.push(e),o===F.None)o=F.Start;else if(o===F.Start)return o=F.End,!1}else o===F.Start&&a.push(e);return n.includes(e)}),a}function R(e,t){var n=o(t),r=[];return I(e,function(e,t){var i=n.indexOf(e);return i!==-1&&(r.push(t),n.splice(i,1)),!!n.length}),r}g(),d(),l();var z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i