sd-webui-infinite-image-bro.../vue/dist/assets/stackView-090df58b.js

4 lines
104 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{P as K,h as k,d as ee,s as ot,u as Fe,a as g,a1 as Jr,a2 as lt,c as pe,G as F,a3 as wn,b as kn,a4 as Tt,_ as H,a5 as Kr,a6 as st,B as an,a7 as Yr,i as Sn,a8 as or,g as gt,a9 as lr,aa as sr,ab as qr,ac as xt,ad as Ht,ae as Gt,af as Zr,ag as Wt,r as O,z as Xr,y as ut,ah as de,x as $e,ai as ct,aj as It,A as dt,ak as ei,al as ti,am as ur,e as cr,f as on,v as dr,T as fr,H as vr,an as ni,ao as ri,ap as Et,aq as ii,J as rt,ar as ai,as as mr,at as gr,W as ye,au as Ue,av as pr,aw as oi,D as Qe,C as hr,ax as li,ay as it,az as si,aA as ui,aB as Ot,aC as ci,aD as An,aE as di,aF as yr,m as fi,l as vi,n as mi,o as br,aG as Pn,aH as gi,aI as pi,aJ as hi,aK as yi,aL as bi,aM as Ci,aN as Nt,aO as wi,aP as G,aQ as ln,aR as ki,F as Cr,aS as wr,aT as ht,$ as Si,aU as Ai,aV as Pi,aW as Ce,aX as we,aY as _n,aZ as _i,a_ as xi,a$ as xn,b0 as Ii,b1 as Ei,b2 as In,b3 as Oi,b4 as Ni,b5 as En,b6 as $i,b7 as Bi,K as V,L as ie,N as z,M as P,b8 as Ye,V as q,U,b9 as Ti,ba as zi,O as ge,bb as Mi,bc as Ri,bd as Di,be as kr,bf as Li,bg as Ct,Q as Ne,X as Jt,bh as On,bi as Fi,bj as Qi,bk as ji,Y as qe,R as ue,bl as Se,bm as Vi,bn as Ui,bo as Nn,bp as Hi,bq as Gi,S as Wi,br as Ji,a0 as Ki}from"./index-3eae54c8.js";import{F as De,l as sn,c as Yi,_ as qi}from"./index-80b56a21.js";import{_ as Zi,c as Xi,d as ea,e as Dt}from"./index-b363ae13.js";import{E as ta,I as Sr}from"./index-ca5e55e8.js";import{u as na}from"./useTaskListStore-0675db92.js";import{c as un,u as ra}from"./copy2clipboard-8d41ed6e.js";import{b as ia,B as Le,c as Ar}from"./button-26bad4bf.js";var Pr=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:K.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},Lt=ia(),aa=function(){return k(k({},Pr()),{},{type:Lt.type,size:String,htmlType:Lt.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:K.any,title:String,loading:Lt.loading,onClick:{type:Function}})},oa=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],la=Le.Group;const $t=ee({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:ot(aa(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,l=t.emit,o=function(w){l("update:visible",w),l("visibleChange",w)},c=Fe("dropdown-button",e),d=c.prefixCls,C=c.direction,m=c.getPopupContainer;return function(){var f,w,u=k(k({},e),i),a=u.type,s=a===void 0?"default":a,v=u.disabled,h=u.loading,y=u.htmlType,b=u.class,p=b===void 0?"":b,S=u.overlay,I=S===void 0?(f=r.overlay)===null||f===void 0?void 0:f.call(r):S,E=u.trigger,A=u.align,x=u.visible;u.onVisibleChange;var _=u.placement,$=_===void 0?C.value==="rtl"?"bottomLeft":"bottomRight":_,N=u.href,T=u.title,D=u.icon,te=D===void 0?((w=r.icon)===null||w===void 0?void 0:w.call(r))||g(Jr,null,null):D,Q=u.mouseEnterDelay,ne=u.mouseLeaveDelay,ae=u.overlayClassName,oe=u.overlayStyle,le=u.destroyPopupOnHide,L=u.onClick;u["onUpdate:visible"];var J=lt(u,oa),re={align:A,disabled:v,trigger:v?[]:E,placement:$,getPopupContainer:m.value,onVisibleChange:o,mouseEnterDelay:Q,mouseLeaveDelay:ne,visible:x,overlayClassName:ae,overlayStyle:oe,destroyPopupOnHide:le},Z=g(Le,{type:s,disabled:v,loading:h,onClick:L,htmlType:y,href:N,title:T},{default:r.default}),Y=g(Le,{type:s,icon:te},null);return g(la,k(k({},J),{},{class:pe(d.value,p)}),{default:function(){return[r.leftButton?r.leftButton({button:Z}):Z,g(Ge,re,{default:function(){return[r.rightButton?r.rightButton({button:Y}):Y]},overlay:function(){return I}})]}})}}});var _r=ee({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:ot(Pr(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,l=t.emit,o=Fe("dropdown",e),c=o.prefixCls,d=o.rootPrefixCls,C=o.direction,m=o.getPopupContainer,f=F(function(){var s=e.placement,v=s===void 0?"":s,h=e.transitionName;return h!==void 0?h:v.indexOf("top")>=0?"".concat(d.value,"-slide-down"):"".concat(d.value,"-slide-up")}),w=function(){var v,h,y,b=e.overlay||((v=r.overlay)===null||v===void 0?void 0:v.call(r)),p=Array.isArray(b)?b[0]:b;if(!p)return null;var S=p.props||{};wn(!S.mode||S.mode==="vertical","Dropdown",'mode="'.concat(S.mode,`" is not supported for Dropdown's Menu.`));var I=S.selectable,E=I===void 0?!1:I,A=S.expandIcon,x=A===void 0?(h=p.children)===null||h===void 0||(y=h.expandIcon)===null||y===void 0?void 0:y.call(h):A,_=typeof x<"u"&&Sn(x)?x:g("span",{class:"".concat(c.value,"-menu-submenu-arrow")},[g(or,{class:"".concat(c.value,"-menu-submenu-arrow-icon")},null)]),$=Sn(p)?kn(p,{mode:"vertical",selectable:E,expandIcon:function(){return _}}):p;return $},u=F(function(){var s=e.placement;if(!s)return C.value==="rtl"?"bottomRight":"bottomLeft";if(s.includes("Center")){var v=s.slice(0,s.indexOf("Center"));return wn(!s.includes("Center"),"Dropdown","You are using '".concat(s,"' placement in Dropdown, which is deprecated. Try to use '").concat(v,"' instead.")),v}return s}),a=function(v){l("update:visible",v),l("visibleChange",v)};return function(){var s,v,h=e.arrow,y=e.trigger,b=e.disabled,p=e.overlayClassName,S=(s=r.default)===null||s===void 0?void 0:s.call(r)[0],I=kn(S,Tt({class:pe(S==null||(v=S.props)===null||v===void 0?void 0:v.class,H({},"".concat(c.value,"-rtl"),C.value==="rtl"),"".concat(c.value,"-trigger"))},b?{disabled:b}:{})),E=pe(p,H({},"".concat(c.value,"-rtl"),C.value==="rtl")),A=b?[]:y,x;A&&A.indexOf("contextmenu")!==-1&&(x=!0);var _=Kr({arrowPointAtCenter:st(h)==="object"&&h.pointAtCenter,autoAdjustOverflow:!0}),$=an(k(k(k({},e),i),{},{builtinPlacements:_,overlayClassName:E,arrow:h,alignPoint:x,prefixCls:c.value,getPopupContainer:m.value,transitionName:f.value,trigger:A,onVisibleChange:a,placement:u.value}),["overlay","onUpdate:visible"]);return g(Yr,$,{default:function(){return[I]},overlay:w})}}});_r.Button=$t;const Ge=_r;var sa=["class","style"],ua=function(){return{prefixCls:String,href:String,separator:K.any,overlay:K.any,onClick:Function}};const yt=ee({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:ua(),slots:["separator","overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,l=Fe("breadcrumb",e),o=l.prefixCls,c=function(C,m){var f=gt(r,e,"overlay");return f?g(Ge,{overlay:f,placement:"bottom"},{default:function(){return[g("span",{class:"".concat(m,"-overlay-link")},[C,g(lr,null,null)])]}}):C};return function(){var d,C=(d=gt(r,e,"separator"))!==null&&d!==void 0?d:"/",m=gt(r,e),f=i.class,w=i.style,u=lt(i,sa),a;return e.href!==void 0?a=g("a",k({class:"".concat(o.value,"-link"),onClick:e.onClick},u),[m]):a=g("span",k({class:"".concat(o.value,"-link"),onClick:e.onClick},u),[m]),a=c(a,o.value),m?g("span",{class:f,style:w},[a,C&&g("span",{class:"".concat(o.value,"-separator")},[C])]):null}}});var ca=function(){return{prefixCls:String,routes:{type:Array},params:K.any,separator:K.any,itemRender:{type:Function}}};function da(n,e){if(!n.breadcrumbName)return null;var t=Object.keys(e).join("|"),r=n.breadcrumbName.replace(new RegExp(":(".concat(t,")"),"g"),function(i,l){return e[l]||i});return r}function $n(n){var e=n.route,t=n.params,r=n.routes,i=n.paths,l=r.indexOf(e)===r.length-1,o=da(e,t);return l?g("span",null,[o]):g("a",{href:"#/".concat(i.join("/"))},[o])}const Xe=ee({compatConfig:{MODE:3},name:"ABreadcrumb",props:ca(),slots:["separator","itemRender"],setup:function(e,t){var r=t.slots,i=Fe("breadcrumb",e),l=i.prefixCls,o=i.direction,c=function(f,w){return f=(f||"").replace(/^\//,""),Object.keys(w).forEach(function(u){f=f.replace(":".concat(u),w[u])}),f},d=function(f,w,u){var a=Gt(f),s=c(w||"",u);return s&&a.push(s),a},C=function(f){var w=f.routes,u=w===void 0?[]:w,a=f.params,s=a===void 0?{}:a,v=f.separator,h=f.itemRender,y=h===void 0?$n:h,b=[];return u.map(function(p){var S=c(p.path,s);S&&b.push(S);var I=[].concat(b),E=null;return p.children&&p.children.length&&(E=g(Ht,null,{default:function(){return[p.children.map(function(x){return g(Ht.Item,{key:x.path||x.breadcrumbName},{default:function(){return[y({route:x,params:s,routes:u,paths:d(I,x.path,s)})]}})})]}})),g(yt,{overlay:E,separator:v,key:S||p.breadcrumbName},{default:function(){return[y({route:p,params:s,routes:u,paths:I})]}})})};return function(){var m,f,w,u=e.routes,a=e.params,s=a===void 0?{}:a,v=sr(gt(r,e)),h=(m=gt(r,e,"separator"))!==null&&m!==void 0?m:"/",y=e.itemRender||r.itemRender||$n;u&&u.length>0?w=C({routes:u,params:s,separator:h,itemRender:y}):v.length&&(w=v.map(function(p,S){return qr(st(p.type)==="object"&&(p.type.__ANT_BREADCRUMB_ITEM||p.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),xt(p,{separator:h,key:S})}));var b=(f={},H(f,l.value,!0),H(f,"".concat(l.value,"-rtl"),o.value==="rtl"),f);return g("div",{class:b},[w])}}});var fa=["separator","class"],va=function(){return{prefixCls:String}};const Kt=ee({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:va(),setup:function(e,t){var r=t.slots,i=t.attrs,l=Fe("breadcrumb",e),o=l.prefixCls;return function(){var c;i.separator;var d=i.class,C=lt(i,fa),m=sr((c=r.default)===null||c===void 0?void 0:c.call(r));return g("span",k({class:["".concat(o.value,"-separator"),d]},C),[m.length>0?m:"/"])}}});Xe.Item=yt;Xe.Separator=Kt;Xe.install=function(n){return n.component(Xe.name,Xe),n.component(yt.name,yt),n.component(Kt.name,Kt),n};De.useInjectFormItemContext=Zr;De.ItemRest=Wt;De.install=function(n){return n.component(De.name,De),n.component(De.Item.name,De.Item),n.component(Wt.name,Wt),n};Ge.Button=$t;Ge.install=function(n){return n.component(Ge.name,Ge),n.component($t.name,$t),n};var Ft;function xr(n){if(typeof document>"u")return 0;if(n||Ft===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div"),r=t.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var i=e.offsetWidth;t.style.overflow="scroll";var l=e.offsetWidth;i===l&&(l=t.clientWidth),document.body.removeChild(t),Ft=i-l}return Ft}function at(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.element,r=t===void 0?document.body:t,i={},l=Object.keys(n);return l.forEach(function(o){i[o]=r.style[o]}),l.forEach(function(o){r.style[o]=n[o]}),i}function ma(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Qt={};const Bn=function(n){if(!(!ma()&&!n)){var e="ant-scrolling-effect",t=new RegExp("".concat(e),"g"),r=document.body.className;if(n){if(!t.test(r))return;at(Qt),Qt={},document.body.className=r.replace(t,"").trim();return}var i=xr();if(i&&(Qt=at({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!t.test(r))){var l="".concat(r," ").concat(e);document.body.className=l.trim()}}};var he=[],Ir="ant-scrolling-effect",jt=new RegExp("".concat(Ir),"g"),ga=0,Vt=new Map,pa=Zi(function n(e){var t=this;Xi(this,n),H(this,"getContainer",function(){var r;return(r=t.options)===null||r===void 0?void 0:r.container}),H(this,"reLock",function(r){var i=he.find(function(l){var o=l.target;return o===t.lockTarget});i&&t.unLock(),t.options=r,i&&(i.options=r,t.lock())}),H(this,"lock",function(){var r;if(!he.some(function(d){var C=d.target;return C===t.lockTarget})){if(he.some(function(d){var C,m=d.options;return(m==null?void 0:m.container)===((C=t.options)===null||C===void 0?void 0:C.container)})){he=[].concat(Gt(he),[{target:t.lockTarget,options:t.options}]);return}var i=0,l=((r=t.options)===null||r===void 0?void 0:r.container)||document.body;(l===document.body&&window.innerWidth-document.documentElement.clientWidth>0||l.scrollHeight>l.clientHeight)&&(i=xr());var o=l.className;if(he.filter(function(d){var C,m=d.options;return(m==null?void 0:m.container)===((C=t.options)===null||C===void 0?void 0:C.container)}).length===0&&Vt.set(l,at({width:i!==0?"calc(100% - ".concat(i,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:l})),!jt.test(o)){var c="".concat(o," ").concat(Ir);l.className=c.trim()}he=[].concat(Gt(he),[{target:t.lockTarget,options:t.options}])}}),H(this,"unLock",function(){var r,i=he.find(function(c){var d=c.target;return d===t.lockTarget});if(he=he.filter(function(c){var d=c.target;return d!==t.lockTarget}),!(!i||he.some(function(c){var d,C=c.options;return(C==null?void 0:C.container)===((d=i.options)===null||d===void 0?void 0:d.container)}))){var l=((r=t.options)===null||r===void 0?void 0:r.container)||document.body,o=l.className;jt.test(o)&&(at(Vt.get(l),{element:l}),Vt.delete(l),l.className=l.className.replace(jt,"").trim())}}),this.lockTarget=ga++,this.options=e}),Oe=0,vt=ti(),wt={},Ke=function(e){if(!vt)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(st(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const ha=ee({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:K.any,visible:{type:Boolean,default:void 0}},setup:function(e,t){var r=t.slots,i=O(),l=O(),o=O(),c=new pa({container:Ke(e.getContainer)}),d=function(){var s,v;(s=i.value)===null||s===void 0||(v=s.parentNode)===null||v===void 0||v.removeChild(i.value)},C=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(s||i.value&&!i.value.parentNode){var v=Ke(e.getContainer);return v?(v.appendChild(i.value),!0):!1}return!0},m=function(){return vt?(i.value||(i.value=document.createElement("div"),C(!0)),f(),i.value):null},f=function(){var s=e.wrapperClassName;i.value&&s&&s!==i.value.className&&(i.value.className=s)};Xr(function(){f(),C()});var w=function(){Oe===1&&!Object.keys(wt).length?(Bn(),wt=at({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Oe||(at(wt),wt={},Bn(!0))},u=ur();return ut(function(){var a=!1;de([function(){return e.visible},function(){return e.getContainer}],function(s,v){var h=$e(s,2),y=h[0],b=h[1],p=$e(v,2),S=p[0],I=p[1];if(vt&&Ke(e.getContainer)===document.body&&(y&&!S?Oe+=1:a&&(Oe-=1)),a){var E=typeof b=="function"&&typeof I=="function";(E?b.toString()!==I.toString():b!==I)&&d(),y&&y!==S&&vt&&Ke(b)!==c.getContainer()&&c.reLock({container:Ke(b)})}a=!0},{immediate:!0,flush:"post"}),ct(function(){C()||(o.value=It(function(){u.update()}))})}),dt(function(){var a=e.visible,s=e.getContainer;vt&&Ke(s)===document.body&&(Oe=a&&Oe?Oe-1:Oe),d(),It.cancel(o.value)}),function(){var a=e.forceRender,s=e.visible,v=null,h={getOpenCount:function(){return Oe},getContainer:m,switchScrollingEffect:w,scrollLocker:c};return(a||s||l.value)&&(v=g(ei,{getContainer:m,ref:l},{default:function(){var b;return(b=r.default)===null||b===void 0?void 0:b.call(r,h)}})),v}}});function ya(){var n=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:n,height:e}}function Er(n){var e=n.getBoundingClientRect(),t=document.documentElement;return{left:e.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}function zt(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:K.shape({x:Number,y:Number}).loose,title:K.any,footer:K.any,transitionName:String,maskTransitionName:String,animation:K.any,maskAnimation:K.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:K.any,maskProps:K.any,wrapProps:K.any,getContainer:K.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:K.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function Tn(n,e,t){var r=e;return!r&&t&&(r="".concat(n,"-").concat(t)),r}var zn=-1;function ba(){return zn+=1,zn}function Mn(n,e){var t=n["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if(typeof t!="number"){var i=n.document;t=i.documentElement[r],typeof t!="number"&&(t=i.body[r])}return t}function Ca(n){var e=n.getBoundingClientRect(),t={left:e.left,top:e.top},r=n.ownerDocument,i=r.defaultView||r.parentWindow;return t.left+=Mn(i),t.top+=Mn(i,!0),t}var Rn={width:0,height:0,overflow:"hidden",outline:"none"};const wa=ee({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:k(k({},zt()),{},{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup:function(e,t){var r=t.expose,i=t.slots,l=t.attrs,o=O(),c=O(),d=O();r({focus:function(){var a;(a=o.value)===null||a===void 0||a.focus()},changeActive:function(a){var s=document,v=s.activeElement;a&&v===c.value?o.value.focus():!a&&v===o.value&&c.value.focus()}});var C=O(),m=F(function(){var u=e.width,a=e.height,s={};return u!==void 0&&(s.width=typeof u=="number"?"".concat(u,"px"):u),a!==void 0&&(s.height=typeof a=="number"?"".concat(a,"px"):a),C.value&&(s.transformOrigin=C.value),s}),f=function(){ct(function(){if(d.value){var a=Ca(d.value);C.value=e.mousePosition?"".concat(e.mousePosition.x-a.left,"px ").concat(e.mousePosition.y-a.top,"px"):""}})},w=function(a){e.onVisibleChanged(a)};return function(){var u,a,s,v,h=e.prefixCls,y=e.footer,b=y===void 0?(u=i.footer)===null||u===void 0?void 0:u.call(i):y,p=e.title,S=p===void 0?(a=i.title)===null||a===void 0?void 0:a.call(i):p,I=e.ariaId,E=e.closable,A=e.closeIcon,x=A===void 0?(s=i.closeIcon)===null||s===void 0?void 0:s.call(i):A,_=e.onClose,$=e.bodyStyle,N=e.bodyProps,T=e.onMousedown,D=e.onMouseup,te=e.visible,Q=e.modalRender,ne=Q===void 0?i.modalRender:Q,ae=e.destroyOnClose,oe=e.motionName,le;b&&(le=g("div",{class:"".concat(h,"-footer")},[b]));var L;S&&(L=g("div",{class:"".concat(h,"-header")},[g("div",{class:"".concat(h,"-title"),id:I},[S])]));var J;E&&(J=g("button",{type:"button",onClick:_,"aria-label":"Close",class:"".concat(h,"-close")},[x||g("span",{class:"".concat(h,"-close-x")},null)]));var re=g("div",{class:"".concat(h,"-content")},[J,L,g("div",k({class:"".concat(h,"-body"),style:$},N),[(v=i.default)===null||v===void 0?void 0:v.call(i)]),le]),Z=cr(oe);return g(fr,k(k({},Z),{},{onBeforeEnter:f,onAfterEnter:function(){return w(!0)},onAfterLeave:function(){return w(!1)}}),{default:function(){return[te||!ae?on(g("div",k(k({},l),{},{ref:d,key:"dialog-element",role:"document",style:[m.value,l.style],class:[h,l.class],onMousedown:T,onMouseup:D}),[g("div",{tabindex:0,ref:o,style:Rn,"aria-hidden":"true"},null),ne?ne({originVNode:re}):re,g("div",{tabindex:0,ref:c,style:Rn,"aria-hidden":"true"},null)]),[[dr,te]]):null]}})}}});function Or(n){if(n==null)throw new TypeError("Cannot destructure "+n)}const ka=ee({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:function(e,t){return Or(t),function(){var r=e.prefixCls,i=e.visible,l=e.maskProps,o=e.motionName,c=cr(o);return g(fr,c,{default:function(){return[on(g("div",k({class:"".concat(r,"-mask")},l),null),[[dr,i]])]}})}}}),Dn=ee({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:ot(k(k({},zt()),{},{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),setup:function(e,t){var r=t.attrs,i=t.slots,l=O(),o=O(),c=O(),d=O(e.visible),C=O("vcDialogTitle".concat(ba())),m=function(b){if(b){if(!ri(o.value,document.activeElement)){var p;l.value=document.activeElement,(p=c.value)===null||p===void 0||p.focus()}}else{var S=d.value;if(d.value=!1,e.mask&&l.value&&e.focusTriggerAfterClose){try{l.value.focus({preventScroll:!0})}catch{}l.value=null}if(S){var I;(I=e.afterClose)===null||I===void 0||I.call(e)}}},f=function(b){var p;(p=e.onClose)===null||p===void 0||p.call(e,b)},w=O(!1),u=O(),a=function(){clearTimeout(u.value),w.value=!0},s=function(){u.value=setTimeout(function(){w.value=!1})},v=function(b){if(!e.maskClosable)return null;w.value?w.value=!1:o.value===b.target&&f(b)},h=function(b){if(e.keyboard&&b.keyCode===Et.ESC){b.stopPropagation(),f(b);return}e.visible&&b.keyCode===Et.TAB&&c.value.changeActive(!b.shiftKey)};return de(function(){return e.visible},function(){e.visible&&(d.value=!0)},{flush:"post"}),dt(function(){var y;clearTimeout(u.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),vr(function(){var y;if((y=e.scrollLocker)===null||y===void 0||y.unLock(),d.value){var b;(b=e.scrollLocker)===null||b===void 0||b.lock()}}),function(){var y=e.prefixCls,b=e.mask,p=e.visible,S=e.maskTransitionName,I=e.maskAnimation,E=e.zIndex,A=e.wrapClassName,x=e.rootClassName,_=e.wrapStyle,$=e.closable,N=e.maskProps,T=e.maskStyle,D=e.transitionName,te=e.animation,Q=e.wrapProps,ne=e.title,ae=ne===void 0?i.title:ne,oe=r.style,le=r.class;return g("div",k({class:["".concat(y,"-root"),x]},ni(e,{data:!0})),[g(ka,{prefixCls:y,visible:b&&p,motionName:Tn(y,S,I),style:k({zIndex:E},T),maskProps:N},null),g("div",k({tabIndex:-1,onKeydown:h,class:pe("".concat(y,"-wrap"),A),ref:o,onClick:v,role:"dialog","aria-labelledby":ae?C.value:null,style:k(k({zIndex:E},_),{},{display:d.value?null:"none"})},Q),[g(wa,k(k({},an(e,["scrollLocker"])),{},{style:oe,class:le,onMousedown:a,onMouseup:s,ref:c,closable:$,ariaId:C.value,prefixCls:y,visible:p,onClose:f,onVisibleChanged:m,motionName:Tn(y,D,te)}),i)])])}}});var Sa=zt(),Aa=ee({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:ot(Sa,{visible:!1}),setup:function(e,t){var r=t.attrs,i=t.slots,l=O(e.visible);return ii({},{inTriggerContext:!1}),de(function(){return e.visible},function(){e.visible&&(l.value=!0)},{flush:"post"}),function(){var o=e.visible,c=e.getContainer,d=e.forceRender,C=e.destroyOnClose,m=C===void 0?!1:C,f=e.afterClose,w=k(k(k({},e),r),{},{ref:"_component",key:"dialog"});return c===!1?g(Dn,k(k({},w),{},{getOpenCount:function(){return 2}}),i):!d&&m&&!l.value?null:g(ha,{visible:o,forceRender:d,getContainer:c},{default:function(a){return w=k(k(k({},w),a),{},{afterClose:function(){f==null||f(),l.value=!1}}),g(Dn,w,i)}})}}});const Nr=Aa;function Pa(n){var e=O(null),t=rt(k({},n)),r=O([]),i=function(o){e.value===null&&(r.value=[],e.value=It(function(){var c;r.value.forEach(function(d){c=k(k({},c),d)}),Tt(t,c),e.value=null})),r.value.push(o)};return ut(function(){e.value&&It.cancel(e.value)}),[t,i]}function Ln(n,e,t,r){var i=e+t,l=(t-r)/2;if(t>r){if(e>0)return H({},n,l);if(e<0&&i<r)return H({},n,-l)}else if(e<0||i>r)return H({},n,e<0?l:-l);return{}}function _a(n,e,t,r){var i=ya(),l=i.width,o=i.height,c=null;return n<=l&&e<=o?c={x:0,y:0}:(n>l||e>o)&&(c=k(k({},Ln("x",t,n,l)),Ln("y",r,e,o))),c}var Fn=Symbol("previewGroupContext"),cn={provide:function(e){ai(Fn,e)},inject:function(){return mr(Fn,{isPreviewGroup:O(!1),previewUrls:F(function(){return new Map}),setPreviewUrls:function(){},current:O(null),setCurrent:function(){},setShowPreview:function(){},setMousePosition:function(){},registerImage:null,rootClassName:""})}},xa=ee({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:function(){return{}}}},setup:function(e,t){var r=t.slots,i=F(function(){var A={visible:void 0,onVisibleChange:function(){},getContainer:void 0,current:0};return st(e.preview)==="object"?zr(e.preview,A):A}),l=rt(new Map),o=O(),c=F(function(){return i.value.visible}),d=F(function(){return i.value.getContainer}),C=function(x,_){var $,N;($=(N=i.value).onVisibleChange)===null||$===void 0||$.call(N,x,_)},m=gr(!!c.value,{value:c,onChange:C}),f=$e(m,2),w=f[0],u=f[1],a=O(null),s=F(function(){return c.value!==void 0}),v=F(function(){return Array.from(l.keys())}),h=F(function(){return v.value[i.value.current]}),y=F(function(){return new Map(Array.from(l).filter(function(A){var x=$e(A,2),_=x[1].canPreview;return!!_}).map(function(A){var x=$e(A,2),_=x[0],$=x[1].url;return[_,$]}))}),b=function(x,_){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;l.set(x,{url:_,canPreview:$})},p=function(x){o.value=x},S=function(x){a.value=x},I=function(x,_){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,N=function(){l.delete(x)};return l.set(x,{url:_,canPreview:$}),N},E=function(x){x==null||x.stopPropagation(),u(!1),S(null)};return de(h,function(A){p(A)},{immediate:!0,flush:"post"}),vr(function(){w.value&&s.value&&p(h.value)},{flush:"post"}),cn.provide({isPreviewGroup:O(!0),previewUrls:y,setPreviewUrls:b,current:o,setCurrent:p,setShowPreview:u,setMousePosition:S,registerImage:I}),function(){var A=Tt({},(Or(i.value),i.value));return g(ye,null,[r.default&&r.default(),g(Br,k(k({},A),{},{"ria-hidden":!w.value,visible:w.value,prefixCls:e.previewPrefixCls,onClose:E,mousePosition:a.value,src:y.value.get(o.value),icons:e.icons,getContainer:d.value}),null)])}}});const $r=xa;var Ve={x:0,y:0},Ia=k(k({},zt()),{},{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),Ea=ee({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:Ia,emits:["close","afterClose"],setup:function(e,t){var r=t.emit,i=t.attrs,l=rt(e.icons),o=l.rotateLeft,c=l.rotateRight,d=l.zoomIn,C=l.zoomOut,m=l.close,f=l.left,w=l.right,u=O(1),a=O(0),s=Pa(Ve),v=$e(s,2),h=v[0],y=v[1],b=function(){return r("close")},p=O(),S=rt({originX:0,originY:0,deltaX:0,deltaY:0}),I=O(!1),E=cn.inject(),A=E.previewUrls,x=E.current,_=E.isPreviewGroup,$=E.setCurrent,N=F(function(){return A.value.size}),T=F(function(){return Array.from(A.value.keys())}),D=F(function(){return T.value.indexOf(x.value)}),te=F(function(){return _.value?A.value.get(x.value):e.src}),Q=F(function(){return _.value&&N.value>1}),ne=O({wheelDirection:0}),ae=function(){u.value=1,a.value=0,y(Ve),r("afterClose")},oe=function(){u.value++,y(Ve)},le=function(){u.value>1&&u.value--,y(Ve)},L=function(){a.value+=90},J=function(){a.value-=90},re=function(R){R.preventDefault(),R.stopPropagation(),D.value>0&&$(T.value[D.value-1])},Z=function(R){R.preventDefault(),R.stopPropagation(),D.value<N.value-1&&$(T.value[D.value+1])},Y=pe(H({},"".concat(e.prefixCls,"-moving"),I.value)),se="".concat(e.prefixCls,"-operations-operation"),be="".concat(e.prefixCls,"-operations-icon"),je=[{icon:m,onClick:b,type:"close"},{icon:d,onClick:oe,type:"zoomIn"},{icon:C,onClick:le,type:"zoomOut",disabled:F(function(){return u.value===1})},{icon:c,onClick:L,type:"rotateRight"},{icon:o,onClick:J,type:"rotateLeft"}],Pe=function(){if(e.visible&&I.value){var R=p.value.offsetWidth*u.value,fe=p.value.offsetHeight*u.value,Ie=Er(p.value),me=Ie.left,Ee=Ie.top,ke=a.value%180!==0;I.value=!1;var ze=_a(ke?fe:R,ke?R:fe,me,Ee);ze&&y(k({},ze))}},_e=function(R){R.button===0&&(R.preventDefault(),R.stopPropagation(),S.deltaX=R.pageX-h.x,S.deltaY=R.pageY-h.y,S.originX=h.x,S.originY=h.y,I.value=!0)},xe=function(R){e.visible&&I.value&&y({x:R.pageX-S.deltaX,y:R.pageY-S.deltaY})},j=function(R){if(e.visible){R.preventDefault();var fe=R.deltaY;ne.value={wheelDirection:fe}}},M=function(R){!e.visible||!Q.value||(R.preventDefault(),R.keyCode===Et.LEFT?D.value>0&&$(T.value[D.value-1]):R.keyCode===Et.RIGHT&&D.value<N.value-1&&$(T.value[D.value+1]))},Be=function(){e.visible&&(u.value!==1&&(u.value=1),(h.x!==Ve.x||h.y!==Ve.y)&&y(Ve))},Te=function(){};return ut(function(){de([function(){return e.visible},I],function(){Te();var W,R,fe=Ue(window,"mouseup",Pe,!1),Ie=Ue(window,"mousemove",xe,!1),me=Ue(window,"wheel",j,{passive:!1}),Ee=Ue(window,"keydown",M,!1);try{window.top!==window.self&&(W=Ue(window.top,"mouseup",Pe,!1),R=Ue(window.top,"mousemove",xe,!1))}catch{}Te=function(){fe.remove(),Ie.remove(),me.remove(),Ee.remove(),W&&W.remove(),R&&R.remove()}},{flush:"post",immediate:!0}),de([ne],function(){var W=ne.value.wheelDirection;W>0?le():W<0&&oe()})}),pr(function(){Te()}),function(){var W=e.visible,R=e.prefixCls,fe=e.rootClassName;return g(Nr,k(k({},i),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:R,onClose:b,afterClose:ae,visible:W,wrapClassName:Y,rootClassName:fe,getContainer:e.getContainer}),{default:function(){return[g("ul",{class:"".concat(e.prefixCls,"-operations")},[je.map(function(me){var Ee=me.icon,ke=me.onClick,ze=me.type,Me=me.disabled;return g("li",{class:pe(se,H({},"".concat(e.prefixCls,"-operations-operation-disabled"),Me&&(Me==null?void 0:Me.value))),onClick:ke,key:ze},[xt(Ee,{class:be})])})]),g("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(h.x,"px, ").concat(h.y,"px, 0)")}},[g("img",{onMousedown:_e,onDblclick:Be,ref:p,class:"".concat(e.prefixCls,"-img"),src:te.value,alt:e.alt,style:{transform:"scale3d(".concat(u.value,", ").concat(u.value,", 1) rotate(").concat(a.value,"deg)")}},null)]),Q.value&&g("div",{class:pe("".concat(e.prefixCls,"-switch-left"),H({},"".concat(e.prefixCls,"-switch-left-disabled"),D.value<=0)),onClick:re},[f]),Q.value&&g("div",{class:pe("".concat(e.prefixCls,"-switch-right"),H({},"".concat(e.prefixCls,"-switch-right-disabled"),D.value>=N.value-1)),onClick:Z},[w])]}})}}});const Br=Ea;var Oa=["icons","maskClassName"],Tr=function(){return{src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:K.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}},zr=function(e,t){var r=k({},e);return Object.keys(t).forEach(function(i){e[i]===void 0&&(r[i]=t[i])}),r},Na=0,Mr=ee({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:Tr(),emits:["click","error"],setup:function(e,t){var r=t.attrs,i=t.slots,l=t.emit,o=F(function(){return e.prefixCls}),c=F(function(){return"".concat(o.value,"-preview")}),d=F(function(){var L={visible:void 0,onVisibleChange:function(){},getContainer:void 0};return st(e.preview)==="object"?zr(e.preview,L):L}),C=F(function(){var L;return(L=d.value.src)!==null&&L!==void 0?L:e.src}),m=F(function(){return e.placeholder&&e.placeholder!==!0||i.placeholder}),f=F(function(){return d.value.visible}),w=F(function(){return d.value.getContainer}),u=F(function(){return f.value!==void 0}),a=function(J,re){var Z,Y;(Z=(Y=d.value).onVisibleChange)===null||Z===void 0||Z.call(Y,J,re)},s=gr(!!f.value,{value:f,onChange:a}),v=$e(s,2),h=v[0],y=v[1];de(h,function(L,J){a(L,J)});var b=O(m.value?"loading":"normal");de(function(){return e.src},function(){b.value=m.value?"loading":"normal"});var p=O(null),S=F(function(){return b.value==="error"}),I=cn.inject(),E=I.isPreviewGroup,A=I.setCurrent,x=I.setShowPreview,_=I.setMousePosition,$=I.registerImage,N=O(Na++),T=F(function(){return e.preview&&!S.value}),D=function(){b.value="normal"},te=function(J){b.value="error",l("error",J)},Q=function(J){if(!u.value){var re=Er(J.target),Z=re.left,Y=re.top;E.value?(A(N.value),_({x:Z,y:Y})):p.value={x:Z,y:Y}}E.value?x(!0):y(!0),l("click",J)},ne=function(){y(!1),u.value||(p.value=null)},ae=O(null);de(function(){return ae},function(){b.value==="loading"&&ae.value.complete&&(ae.value.naturalWidth||ae.value.naturalHeight)&&D()});var oe=function(){};ut(function(){de([C,T],function(){if(oe(),!E.value)return function(){};oe=$(N.value,C.value,T.value),T.value||oe()},{flush:"post",immediate:!0})}),pr(function(){oe()});var le=function(J){return oi(J)?J+"px":J};return function(){var L=e.prefixCls,J=e.wrapperClassName,re=e.fallback,Z=e.src,Y=e.placeholder,se=e.wrapperStyle,be=e.rootClassName,je=r.width,Pe=r.height,_e=r.crossorigin,xe=r.decoding,j=r.alt,M=r.sizes,Be=r.srcset,Te=r.usemap,W=r.class,R=r.style,fe=d.value,Ie=fe.icons,me=fe.maskClassName,Ee=lt(fe,Oa),ke=pe(L,J,be,H({},"".concat(L,"-error"),S.value)),ze=S.value&&re?re:C.value,Me={crossorigin:_e,decoding:xe,alt:j,sizes:M,srcset:Be,usemap:Te,class:pe("".concat(L,"-img"),H({},"".concat(L,"-img-placeholder"),Y===!0),W),style:k({height:Pe},R)};return g(ye,null,[g("div",{class:ke,onClick:T.value?Q:function(ve){l("click",ve)},style:k({width:le(je),height:le(Pe)},se)},[g("img",k(k(k({},Me),S.value&&re?{src:re}:{onLoad:D,onError:te,src:Z}),{},{ref:ae}),null),b.value==="loading"&&g("div",{"aria-hidden":"true",class:"".concat(L,"-placeholder")},[Y||i.placeholder&&i.placeholder()]),i.previewMask&&T.value&&g("div",{class:["".concat(L,"-mask"),me]},[i.previewMask()])]),!E.value&&T.value&&g(Br,k(k({},Ee),{},{"aria-hidden":!h.value,visible:h.value,prefixCls:c.value,onClose:ne,mousePosition:p.value,src:ze,alt:j,getContainer:w.value,icons:Ie,rootClassName:be}),null)])}}});Mr.PreviewGroup=$r;const $a=Mr;var Ba={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const Ta=Ba;function Qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){za(n,i,t[i])})}return n}function za(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var dn=function(e,t){var r=Qn({},e,t.attrs);return g(Qe,Qn({},r,{icon:Ta}),null)};dn.displayName="RotateLeftOutlined";dn.inheritAttrs=!1;const Ma=dn;var Ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const Da=Ra;function jn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){La(n,i,t[i])})}return n}function La(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var fn=function(e,t){var r=jn({},e,t.attrs);return g(Qe,jn({},r,{icon:Da}),null)};fn.displayName="RotateRightOutlined";fn.inheritAttrs=!1;const Fa=fn;var Qa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const ja=Qa;function Vn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){Va(n,i,t[i])})}return n}function Va(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var vn=function(e,t){var r=Vn({},e,t.attrs);return g(Qe,Vn({},r,{icon:ja}),null)};vn.displayName="ZoomInOutlined";vn.inheritAttrs=!1;const Ua=vn;var Ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const Ga=Ha;function Un(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){Wa(n,i,t[i])})}return n}function Wa(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var mn=function(e,t){var r=Un({},e,t.attrs);return g(Qe,Un({},r,{icon:Ga}),null)};mn.displayName="ZoomOutOutlined";mn.inheritAttrs=!1;const Ja=mn;var Rr={rotateLeft:g(Ma,null,null),rotateRight:g(Fa,null,null),zoomIn:g(Ua,null,null),zoomOut:g(Ja,null,null),close:g(hr,null,null),left:g(li,null,null),right:g(or,null,null)},Ka=ee({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String},setup:function(e,t){var r=t.attrs,i=t.slots,l=Fe("image",e),o=l.getPrefixCls,c=F(function(){return o("image-preview",e.previewPrefixCls)});return function(){return g($r,k(k({},k(k({},r),e)),{},{icons:Rr,previewPrefixCls:c.value}),i)}}});const Ya=Ka;var He=ee({name:"AImage",inheritAttrs:!1,props:Tr(),setup:function(e,t){var r=t.slots,i=t.attrs,l=Fe("image",e),o=l.prefixCls,c=l.rootPrefixCls,d=l.configProvider,C=F(function(){var m=e.preview;if(m===!1)return m;var f=st(m)==="object"?m:{};return k(k({icons:Rr},f),{},{transitionName:it(c.value,"zoom",f.transitionName),maskTransitionName:it(c.value,"fade",f.maskTransitionName)})});return function(){var m,f=((m=d.locale)===null||m===void 0?void 0:m.Image)||si.Image,w=function(){return g("div",{class:"".concat(o.value,"-mask-info")},[g(ta,null,null),f==null?void 0:f.preview])},u=e.previewMask,a=u===void 0?r.previewMask||w:u;return g($a,k(k({},k(k(k({},i),e),{},{prefixCls:o.value})),{},{preview:C.value}),k(k({},r),{},{previewMask:typeof a=="function"?a:null}))}}});He.PreviewGroup=Ya;He.install=function(n){return n.component(He.name,He),n.component(He.PreviewGroup.name,He.PreviewGroup),n};const qa=He;var Za=["class","style"],Xa=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:K.any,delay:Number,indicator:K.any}},St=null;function eo(n,e){return!!n&&!!e&&!isNaN(Number(e))}function to(n){var e=n.indicator;St=typeof e=="function"?e:function(){return g(e,null,null)}}const pt=ee({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:ot(Xa(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:mr("configProvider",ui)}},data:function(){var e=this.spinning,t=this.delay,r=eo(e,t);return{sSpinning:e&&!r}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;ct(function(){e.debouncifyUpdateSpinning(),e.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var t=e||this.$props,r=t.delay;r&&(this.cancelExistingSpin(),this.updateSpinning=Ot(this.originalUpdateSpinning,r))},updateSpinning:function(){var e=this.spinning,t=this.sSpinning;t!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var t="".concat(e,"-dot"),r=ci(this,"indicator");return r===null?null:(Array.isArray(r)&&(r=r.length===1?r[0]:r),An(r)?xt(r,{class:t}):St&&An(St())?xt(St(),{class:t}):g("span",{class:"".concat(t," ").concat(e,"-dot-spin")},[g("i",{class:"".concat(e,"-dot-item")},null),g("i",{class:"".concat(e,"-dot-item")},null),g("i",{class:"".concat(e,"-dot-item")},null),g("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,t,r,i=this.$props,l=i.size,o=i.prefixCls,c=i.tip,d=c===void 0?(e=(t=this.$slots).tip)===null||e===void 0?void 0:e.call(t):c,C=i.wrapperClassName,m=this.$attrs,f=m.class,w=m.style,u=lt(m,Za),a=this.configProvider,s=a.getPrefixCls,v=a.direction,h=s("spin",o),y=this.sSpinning,b=(r={},H(r,h,!0),H(r,"".concat(h,"-sm"),l==="small"),H(r,"".concat(h,"-lg"),l==="large"),H(r,"".concat(h,"-spinning"),y),H(r,"".concat(h,"-show-text"),!!d),H(r,"".concat(h,"-rtl"),v==="rtl"),H(r,f,!!f),r),p=g("div",k(k({},u),{},{style:w,class:b}),[this.renderIndicator(h),d?g("div",{class:"".concat(h,"-text")},[d]):null]),S=di(this);if(S&&S.length){var I,E=(I={},H(I,"".concat(h,"-container"),!0),H(I,"".concat(h,"-blur"),y),I);return g("div",{class:["".concat(h,"-nested-loading"),C]},[y&&g("div",{key:"loading"},[p]),g("div",{class:E,key:"container"},[S])])}return p}});pt.setDefaultIndicator=to;pt.install=function(n){return n.component(pt.name,pt),n};var no=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],Yt=null,ro=function(e){Yt={x:e.pageX,y:e.pageY},setTimeout(function(){return Yt=null},100)};ea()&&Ue(document.documentElement,"click",ro,!0);var io=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:K.any,closable:{type:Boolean,default:void 0},closeIcon:K.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:K.any,okText:K.any,okType:String,cancelText:K.any,icon:K.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},Ze=[];const ce=ee({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:ot(io(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(e,t){var r=t.emit,i=t.slots,l=t.attrs,o=yr("Modal"),c=$e(o,1),d=c[0],C=Fe("modal",e),m=C.prefixCls,f=C.rootPrefixCls,w=C.direction,u=C.getPopupContainer,a=function(y){r("update:visible",!1),r("cancel",y),r("change",!1)},s=function(y){r("ok",y)},v=function(){var y,b,p=e.okText,S=p===void 0?(y=i.okText)===null||y===void 0?void 0:y.call(i):p,I=e.okType,E=e.cancelText,A=E===void 0?(b=i.cancelText)===null||b===void 0?void 0:b.call(i):E,x=e.confirmLoading;return g(ye,null,[g(Le,k({onClick:a},e.cancelButtonProps),{default:function(){return[A||d.value.cancelText]}}),g(Le,k(k({},Ar(I)),{},{loading:x,onClick:s},e.okButtonProps),{default:function(){return[S||d.value.okText]}})])};return function(){var h,y;e.prefixCls;var b=e.visible,p=e.wrapClassName,S=e.centered,I=e.getContainer,E=e.closeIcon,A=E===void 0?(h=i.closeIcon)===null||h===void 0?void 0:h.call(i):E,x=e.focusTriggerAfterClose,_=x===void 0?!0:x,$=lt(e,no),N=pe(p,(y={},H(y,"".concat(m.value,"-centered"),!!S),H(y,"".concat(m.value,"-wrap-rtl"),w.value==="rtl"),y));return g(Nr,k(k(k({},$),l),{},{getContainer:I||u.value,prefixCls:m.value,wrapClassName:N,visible:b,mousePosition:Yt,onClose:a,focusTriggerAfterClose:_,transitionName:it(f.value,"zoom",e.transitionName),maskTransitionName:it(f.value,"fade",e.maskTransitionName)}),k(k({},i),{},{footer:i.footer||v,closeIcon:function(){return g("span",{class:"".concat(m.value,"-close-x")},[A||g(hr,{class:"".concat(m.value,"-close-icon")},null)])}}))}}});var ao=function(){var e=O(!1);return dt(function(){e.value=!0}),e};const oo=ao;var lo={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Hn(n){return!!(n&&n.then)}const Gn=ee({compatConfig:{MODE:3},name:"ActionButton",props:lo,setup:function(e,t){var r=t.slots,i=O(!1),l=O(),o=O(!1),c,d=oo();ut(function(){e.autofocus&&(c=setTimeout(function(){var f;return(f=l.value.$el)===null||f===void 0?void 0:f.focus()}))}),dt(function(){clearTimeout(c)});var C=function(w){var u=e.close;Hn(w)&&(o.value=!0,w.then(function(){d.value||(o.value=!1),u.apply(void 0,arguments),i.value=!1},function(a){console.error(a),d.value||(o.value=!1),i.value=!1}))},m=function(w){var u=e.actionFn,a=e.close,s=a===void 0?function(){}:a;if(!i.value){if(i.value=!0,!u){s();return}var v;if(e.emitEvent){if(v=u(w),e.quitOnNullishReturnValue&&!Hn(v)){i.value=!1,s(w);return}}else if(u.length)v=u(s),i.value=!1;else if(v=u(),!v){s();return}C(v)}};return function(){var f=e.type,w=e.prefixCls,u=e.buttonProps;return g(Le,k(k(k({},Ar(f)),{},{onClick:m,loading:o.value,prefixCls:w},u),{},{ref:l}),r)}}});function ft(n){return typeof n=="function"?n():n}const so=ee({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(e,t){var r=t.attrs,i=yr("Modal"),l=$e(i,1),o=l[0];return function(){var c=e.icon,d=e.onCancel,C=e.onOk,m=e.close,f=e.closable,w=f===void 0?!1:f,u=e.zIndex,a=e.afterClose,s=e.visible,v=e.keyboard,h=e.centered,y=e.getContainer,b=e.maskStyle,p=e.okButtonProps,S=e.cancelButtonProps,I=e.okCancel,E=I===void 0?!0:I,A=e.width,x=A===void 0?416:A,_=e.mask,$=_===void 0?!0:_,N=e.maskClosable,T=N===void 0?!1:N,D=e.type,te=e.title,Q=e.content,ne=e.direction,ae=e.closeIcon,oe=e.modalRender,le=e.focusTriggerAfterClose,L=e.rootPrefixCls,J=e.bodyStyle,re=e.wrapClassName,Z=e.okType||"primary",Y=e.prefixCls||"ant-modal",se="".concat(Y,"-confirm"),be=r.style||{},je=ft(e.okText)||(E?o.value.okText:o.value.justOkText),Pe=ft(e.cancelText)||o.value.cancelText,_e=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",xe=pe(se,"".concat(se,"-").concat(D),"".concat(Y,"-").concat(D),H({},"".concat(se,"-rtl"),ne==="rtl"),r.class),j=E&&g(Gn,{actionFn:d,close:m,autofocus:_e==="cancel",buttonProps:S,prefixCls:"".concat(L,"-btn")},{default:function(){return[Pe]}});return g(ce,{prefixCls:Y,class:xe,wrapClassName:pe(H({},"".concat(se,"-centered"),!!h),re),onCancel:function(Be){return m({triggerCancel:!0},Be)},visible:s,title:"",footer:"",transitionName:it(L,"zoom",e.transitionName),maskTransitionName:it(L,"fade",e.maskTransitionName),mask:$,maskClosable:T,maskStyle:b,style:be,bodyStyle:J,width:x,zIndex:u,afterClose:a,keyboard:v,centered:h,getContainer:y,closable:w,closeIcon:ae,modalRender:oe,focusTriggerAfterClose:le},{default:function(){return[g("div",{class:"".concat(se,"-body-wrapper")},[g("div",{class:"".concat(se,"-body")},[ft(c),te===void 0?null:g("span",{class:"".concat(se,"-title")},[ft(te)]),g("div",{class:"".concat(se,"-content")},[ft(Q)])]),g("div",{class:"".concat(se,"-btns")},[j,g(Gn,{type:Z,actionFn:C,close:m,autofocus:_e==="ok",buttonProps:p,prefixCls:"".concat(L,"-btn")},{default:function(){return[je]}})])])]}})}}});var uo=function(e){var t=document.createDocumentFragment(),r=k(k({},an(e,["parentContext","appContext"])),{},{close:o,visible:!0}),i=null;function l(){i&&(Pn(null,t),i.component.update(),i=null);for(var m=arguments.length,f=new Array(m),w=0;w<m;w++)f[w]=arguments[w];var u=f.some(function(v){return v&&v.triggerCancel});e.onCancel&&u&&e.onCancel.apply(e,f);for(var a=0;a<Ze.length;a++){var s=Ze[a];if(s===o){Ze.splice(a,1);break}}}function o(){for(var m=this,f=arguments.length,w=new Array(f),u=0;u<f;u++)w[u]=arguments[u];r=k(k({},r),{},{visible:!1,afterClose:function(){typeof e.afterClose=="function"&&e.afterClose(),l.apply(m,w)}}),c(r)}function c(m){typeof m=="function"?r=m(r):r=k(k({},r),m),i&&(Tt(i.component.props,r),i.component.update())}var d=function(f){var w=pi,u=w.prefixCls,a=f.prefixCls||"".concat(u,"-modal");return g(gi,k(k({},w),{},{notUpdateGlobalConfig:!0,prefixCls:u}),{default:function(){return[g(so,k(k({},f),{},{rootPrefixCls:u,prefixCls:a}),null)]}})};function C(m){var f=g(d,k({},m));return f.appContext=e.parentContext||e.appContext||f.appContext,Pn(f,t),f}return i=C(r),Ze.push(o),{destroy:o,update:c}};const bt=uo;function co(n){return k(k({icon:function(){return g(br,null,null)},okCancel:!1},n),{},{type:"warning"})}function fo(n){return k(k({icon:function(){return g(fi,null,null)},okCancel:!1},n),{},{type:"info"})}function vo(n){return k(k({icon:function(){return g(vi,null,null)},okCancel:!1},n),{},{type:"success"})}function mo(n){return k(k({icon:function(){return g(mi,null,null)},okCancel:!1},n),{},{type:"error"})}function go(n){return k(k({icon:function(){return g(br,null,null)},okCancel:!0},n),{},{type:"confirm"})}function Dr(n){return bt(co(n))}ce.info=function(e){return bt(fo(e))};ce.success=function(e){return bt(vo(e))};ce.error=function(e){return bt(mo(e))};ce.warning=Dr;ce.warn=Dr;ce.confirm=function(e){return bt(go(e))};ce.destroyAll=function(){for(;Ze.length;){var e=Ze.pop();e&&e()}};ce.install=function(n){return n.component(ce.name,ce),n};var po={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 ho=po;function Wn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){yo(n,i,t[i])})}return n}function yo(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var gn=function(e,t){var r=Wn({},e,t.attrs);return g(Qe,Wn({},r,{icon:ho}),null)};gn.displayName="FileOutlined";gn.inheritAttrs=!1;const Jn=gn;var bo={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 Co=bo;function Kn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){wo(n,i,t[i])})}return n}function wo(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var pn=function(e,t){var r=Kn({},e,t.attrs);return g(Qe,Kn({},r,{icon:Co}),null)};pn.displayName="FolderOpenOutlined";pn.inheritAttrs=!1;const Yn=pn;function ko(n,e,t){if(!hi(t))return!1;var r=typeof e;return(r=="number"?yi(t)&&bi(e,t.length):r=="string"&&e in t)?Ci(t[e],n):!1}var So=Math.ceil,Ao=Math.max;function Po(n,e,t,r){for(var i=-1,l=Ao(So((e-n)/(t||1)),0),o=Array(l);l--;)o[r?l:++i]=n,n+=t;return o}function _o(n){return function(e,t,r){return r&&typeof r!="number"&&ko(e,t,r)&&(t=r=void 0),e=Dt(e),t===void 0?(t=e,e=0):t=Dt(t),r=r===void 0?e<t?1:-1:Dt(r),Po(e,t,r,n)}}var xo=_o();const Io=xo,qt=(...n)=>{document.addEventListener(...n),dt(()=>document.removeEventListener(...n))},Eo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",kt=new WeakMap,Oo=n=>({useHookShareState:()=>{const t=ur();Nt(t),kt.has(t)||(kt.set(t,rt(n(t))),dt(()=>{kt.delete(t)}));const r=kt.get(t);return Nt(r),{state:r,toRefs(){return wi(r)}}}});var No={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"left-circle",theme:"outlined"};const $o=No;function qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){Bo(n,i,t[i])})}return n}function Bo(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var hn=function(e,t){var r=qn({},e,t.attrs);return g(Qe,qn({},r,{icon:$o}),null)};hn.displayName="LeftCircleOutlined";hn.inheritAttrs=!1;const To=hn;var zo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M666.7 505.5l-246-178A8 8 0 00408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"right-circle",theme:"outlined"};const Mo=zo;function Zn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){Ro(n,i,t[i])})}return n}function Ro(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var yn=function(e,t){var r=Zn({},e,t.attrs);return g(Qe,Zn({},r,{icon:Mo}),null)};yn.displayName="RightCircleOutlined";yn.inheritAttrs=!1;const Do=yn;const Lr={"date-asc":G("sortByDateAscending"),"date-desc":G("sortByDateDescending"),"name-asc":G("sortByNameAscending"),"name-desc":G("sortByNameDescending"),"size-asc":G("sortBySizeAscending"),"size-desc":G("sortBySizeDescending")};var Fr=(n=>(n.DATE_ASC="date-asc",n.DATE_DESC="date-desc",n.NAME_ASC="name-asc",n.NAME_DESC="name-desc",n.SIZE_ASC="size-asc",n.SIZE_DESC="size-desc",n))(Fr||{});const Lo=(n,e)=>{const t=n.type==="dir"?1:0;return(e.type==="dir"?1:0)-t},Xn=(n,e)=>{const t=Date.parse(n.date),r=Date.parse(e.date);return t-r},er=(n,e)=>{const t=n.name.toLowerCase(),r=e.name.toLowerCase();return t.localeCompare(r)},tr=(n,e)=>n.bytes-e.bytes,et=(n,e)=>{const t=(r,i)=>{switch(e){case"date-asc":return Xn(r,i);case"date-desc":return Xn(i,r);case"name-asc":return er(r,i);case"name-desc":return er(i,r);case"size-asc":return tr(r,i);case"size-desc":return tr(i,r);default:throw new Error(`Invalid sort method: ${e}`)}};return n.slice().sort((r,i)=>Lo(r,i)||t(r,i))},mt=async(n,e)=>(await ln.get(`/files/${n}`,{params:{folder_path:e}})).data,Fo=async(n,e)=>(await ln.post(`/delete_files/${n}`,{file_paths:e})).data,Qo=async(n,e,t)=>(await ln.post(`/move_files/${n}`,{file_paths:e,dest:t})).data;function Ae(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function nr(n,e){for(var t="",r=0,i=-1,l=0,o,c=0;c<=n.length;++c){if(c<n.length)o=n.charCodeAt(c);else{if(o===47)break;o=47}if(o===47){if(!(i===c-1||l===1))if(i!==c-1&&l===2){if(t.length<2||r!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var d=t.lastIndexOf("/");if(d!==t.length-1){d===-1?(t="",r=0):(t=t.slice(0,d),r=t.length-1-t.lastIndexOf("/")),i=c,l=0;continue}}else if(t.length===2||t.length===1){t="",r=0,i=c,l=0;continue}}e&&(t.length>0?t+="/..":t="..",r=2)}else t.length>0?t+="/"+n.slice(i+1,c):t=n.slice(i+1,c),r=c-i-1;i=c,l=0}else o===46&&l!==-1?++l:l=-1}return t}function jo(n,e){var t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+r:t+n+r:r}var tt={resolve:function(){for(var e="",t=!1,r,i=arguments.length-1;i>=-1&&!t;i--){var l;i>=0?l=arguments[i]:(r===void 0&&(r=process.cwd()),l=r),Ae(l),l.length!==0&&(e=l+"/"+e,t=l.charCodeAt(0)===47)}return e=nr(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(Ae(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=nr(e,!t),e.length===0&&!t&&(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Ae(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];Ae(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":tt.normalize(e)},relative:function(e,t){if(Ae(e),Ae(t),e===t||(e=tt.resolve(e),t=tt.resolve(t),e===t))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,l=i-r,o=1;o<t.length&&t.charCodeAt(o)===47;++o);for(var c=t.length,d=c-o,C=l<d?l:d,m=-1,f=0;f<=C;++f){if(f===C){if(d>C){if(t.charCodeAt(o+f)===47)return t.slice(o+f+1);if(f===0)return t.slice(o+f)}else l>C&&(e.charCodeAt(r+f)===47?m=f:f===0&&(m=0));break}var w=e.charCodeAt(r+f),u=t.charCodeAt(o+f);if(w!==u)break;w===47&&(m=f)}var a="";for(f=r+m+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(a.length===0?a+="..":a+="/..");return a.length>0?a+t.slice(o+m):(o+=m,t.charCodeAt(o)===47&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(Ae(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,i=-1,l=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!l){i=o;break}}else l=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ae(e);var r=0,i=-1,l=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var c=t.length-1,d=-1;for(o=e.length-1;o>=0;--o){var C=e.charCodeAt(o);if(C===47){if(!l){r=o+1;break}}else d===-1&&(l=!1,d=o+1),c>=0&&(C===t.charCodeAt(c)?--c===-1&&(i=o):(c=-1,i=d))}return r===i?i=d:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!l){r=o+1;break}}else i===-1&&(l=!1,i=o+1);return i===-1?"":e.slice(r,i)}},extname:function(e){Ae(e);for(var t=-1,r=0,i=-1,l=!0,o=0,c=e.length-1;c>=0;--c){var d=e.charCodeAt(c);if(d===47){if(!l){r=c+1;break}continue}i===-1&&(l=!1,i=c+1),d===46?t===-1?t=c:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return jo("/",e)},parse:function(e){Ae(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r=e.charCodeAt(0),i=r===47,l;i?(t.root="/",l=1):l=0;for(var o=-1,c=0,d=-1,C=!0,m=e.length-1,f=0;m>=l;--m){if(r=e.charCodeAt(m),r===47){if(!C){c=m+1;break}continue}d===-1&&(C=!1,d=m+1),r===46?o===-1?o=m:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||d===-1||f===0||f===1&&o===d-1&&o===c+1?d!==-1&&(c===0&&i?t.base=t.name=e.slice(1,d):t.base=t.name=e.slice(c,d)):(c===0&&i?(t.name=e.slice(1,o),t.base=e.slice(1,d)):(t.name=e.slice(c,o),t.base=e.slice(c,d)),t.ext=e.slice(o,d)),c>0?t.dir=e.slice(0,c-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};tt.posix=tt;var nt=tt,Zt={},Vo={get exports(){return Zt},set exports(n){Zt=n}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */(function(n,e){(function(t,r){n.exports=r})(ki,function(){var t={};t.version="0.3.5";var r=t.settings={minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};t.configure=function(a){var s,v;for(s in a)v=a[s],v!==void 0&&a.hasOwnProperty(s)&&(r[s]=v);return this},t.status=null,t.set=function(a){var s=t.isStarted();a=i(a,r.minimum,1),t.status=a===1?null:a;var v=t.render(!s),h=v.querySelector(r.barSelector),y=r.speed,b=r.easing;return v.offsetWidth,c(function(p){r.positionUsing===""&&(r.positionUsing=t.getPositioningCSS()),d(h,o(a,y,b)),a===1?(d(v,{transition:"none",opacity:1}),v.offsetWidth,setTimeout(function(){d(v,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){t.remove(),p()},y)},y)):setTimeout(p,y)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var a=function(){setTimeout(function(){t.status&&(t.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},t.done=function(a){return!a&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(a){var s=t.status;return s?s>1?void 0:(typeof a!="number"&&(s>=0&&s<.2?a=.1:s>=.2&&s<.5?a=.04:s>=.5&&s<.8?a=.02:s>=.8&&s<.99?a=.005:a=0),s=i(s+a,0,.994),t.set(s)):t.start()},t.trickle=function(){return t.inc()},function(){var a=0,s=0;t.promise=function(v){return!v||v.state()==="resolved"?this:(s===0&&t.start(),a++,s++,v.always(function(){s--,s===0?(a=0,t.done()):t.set((a-s)/a)}),this)}}(),t.getElement=function(){var a=t.getParent();if(a){var s=Array.prototype.slice.call(a.querySelectorAll(".nprogress")).filter(function(v){return v.parentElement===a});if(s.length>0)return s[0]}return null},t.getParent=function(){if(r.parent instanceof HTMLElement)return r.parent;if(typeof r.parent=="string")return document.querySelector(r.parent)},t.render=function(a){if(t.isRendered())return t.getElement();m(document.documentElement,"nprogress-busy");var s=document.createElement("div");s.id="nprogress",s.className="nprogress",s.innerHTML=r.template;var v=s.querySelector(r.barSelector),h=a?"-100":l(t.status||0),y=t.getParent(),b;return d(v,{transition:"all 0 linear",transform:"translate3d("+h+"%,0,0)"}),r.showSpinner||(b=s.querySelector(r.spinnerSelector),b&&u(b)),y!=document.body&&m(y,"nprogress-custom-parent"),y.appendChild(s),s},t.remove=function(){t.status=null,f(document.documentElement,"nprogress-busy"),f(t.getParent(),"nprogress-custom-parent");var a=t.getElement();a&&u(a)},t.isRendered=function(){return!!t.getElement()},t.getPositioningCSS=function(){var a=document.body.style,s="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return s+"Perspective"in a?"translate3d":s+"Transform"in a?"translate":"margin"};function i(a,s,v){return a<s?s:a>v?v:a}function l(a){return(-1+a)*100}function o(a,s,v){var h;return r.positionUsing==="translate3d"?h={transform:"translate3d("+l(a)+"%,0,0)"}:r.positionUsing==="translate"?h={transform:"translate("+l(a)+"%,0)"}:h={"margin-left":l(a)+"%"},h.transition="all "+s+"ms "+v,h}var c=function(){var a=[];function s(){var v=a.shift();v&&v(s)}return function(v){a.push(v),a.length==1&&s()}}(),d=function(){var a=["Webkit","O","Moz","ms"],s={};function v(p){return p.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(S,I){return I.toUpperCase()})}function h(p){var S=document.body.style;if(p in S)return p;for(var I=a.length,E=p.charAt(0).toUpperCase()+p.slice(1),A;I--;)if(A=a[I]+E,A in S)return A;return p}function y(p){return p=v(p),s[p]||(s[p]=h(p))}function b(p,S,I){S=y(S),p.style[S]=I}return function(p,S){var I=arguments,E,A;if(I.length==2)for(E in S)A=S[E],A!==void 0&&S.hasOwnProperty(E)&&b(p,E,A);else b(p,I[1],I[2])}}();function C(a,s){var v=typeof a=="string"?a:w(a);return v.indexOf(" "+s+" ")>=0}function m(a,s){var v=w(a),h=v+s;C(v,s)||(a.className=h.substring(1))}function f(a,s){var v=w(a),h;C(a,s)&&(h=v.replace(" "+s+" "," "),a.className=h.substring(1,h.length-1))}function w(a){return(" "+(a&&a.className||"")+" ").replace(/\s+/gi," ")}function u(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return t})})(Vo);const Uo=Zt,Xt=new Map,X=Cr(),Bt=(n,e=!1)=>`/baidu_netdisk/file?filename=${encodeURIComponent(n.fullpath)}${e?`&disposition=${encodeURIComponent(n.name)}`:""}`,Ho=(n,e)=>`/baidu_netdisk/image-thumbnail?path=${encodeURIComponent(n.fullpath)}&size=${e}`,{eventEmitter:Qr,useEventListen:Go}=wr(),{useHookShareState:We}=Oo(()=>{const n=O({tabIdx:-1,paneIdx:-1,target:"local"}),e=F(()=>sn(t.value)),t=O([]),r=F(()=>{var w;return t.value.map(u=>u.curr).slice((w=X.conf)!=null&&w.is_win&&n.value.target==="local"?1:0)}),i=F(()=>nt.join(...r.value)),l=O(Fr.DATE_DESC),o=F(()=>{var s;if(!e.value)return[];const w=((s=e.value)==null?void 0:s.files)??[],u=l.value,{walkFiles:a}=e.value;return n.value.walkMode&&a?a.map(v=>et(v,u)).flat():et(w,u)}),c=O([]),d=O(-1),C=O(!0),m=O();return{spinning:O(!1),canLoadNext:C,multiSelectedIdxs:c,previewIdx:d,basePath:r,currLocation:i,currPage:e,stack:t,sortMethod:l,sortedFiles:o,scroller:O(),stackViewEl:O(),walkModePath:m,props:n,...Wo(),...wr()}}),At=na(),Wo=()=>{const n=O(""),e=Ii(At.checkBaiduyunInstalled,!1),t=O(!1),r=O("");return{installBaiduyunBin:async()=>{var o;try{r.value="",t.value=!0,await Ni(),At.baiduyunInstalled=null,await At.checkBaiduyunInstalled()}catch(c){En(c)&&(r.value=((o=c.response)==null?void 0:o.data.detail)??"error")}finally{t.value=!1}},installedBaiduyun:e,failedHint:r,baiduyunLoading:t,bduss:n,onLoginBtnClick:async()=>{var o,c;if(!t.value)try{t.value=!0,X.user=await $i(n.value)}catch(d){console.error(d),ht.error(En(d)?((c=(o=d.response)==null?void 0:o.data)==null?void 0:c.detail)??G("unknownError"):G("unknownError"))}finally{t.value=!1}}}};function Jo(n){const{scroller:e,sortedFiles:t,previewIdx:r,eventEmitter:i,canLoadNext:l}=We().toRefs(),o=O(!1);let c=null;const d=(w,u)=>{var a;o.value=w,c!=null&&!w&&u&&((a=e.value)==null||a.scrollToItem(c),c=null)},C=()=>{n.walkMode&&n.target==="local"&&!f("next")&&l&&(ht.info(G("loadingNextFolder")),i.value.emit("loadNextDir"))};qt("keydown",w=>{var u;if(o.value){let a=r.value;if(["ArrowDown","ArrowRight"].includes(w.key))for(a++;t.value[a]&&!Ce(t.value[a].name);)a++;else if(["ArrowUp","ArrowLeft"].includes(w.key))for(a--;t.value[a]&&!Ce(t.value[a].name);)a--;if(Ce((u=t.value[a])==null?void 0:u.name)??""){r.value=a;const s=e.value;s&&!(a>=s.$_startIndex&&a<=s.$_endIndex)&&(c=a)}C()}});const m=w=>{var a;let u=r.value;if(w==="next")for(u++;t.value[u]&&!Ce(t.value[u].name);)u++;else if(w==="prev")for(u--;t.value[u]&&!Ce(t.value[u].name);)u--;if(Ce((a=t.value[u])==null?void 0:a.name)??""){r.value=u;const s=e.value;s&&!(u>=s.$_startIndex&&u<=s.$_endIndex)&&(c=u)}C()},f=w=>{var a;let u=r.value;if(w==="next")for(u++;t.value[u]&&!Ce(t.value[u].name);)u++;else if(w==="prev")for(u--;t.value[u]&&!Ce(t.value[u].name);)u--;return Ce((a=t.value[u])==null?void 0:a.name)??""};return{previewIdx:r,onPreviewVisibleChange:d,previewing:o,previewImgMove:m,canPreview:f}}function Ko(n){const e=O(),{installedBaiduyun:t,scroller:r,stackViewEl:i,stack:l,currPage:o,currLocation:c,basePath:d,sortMethod:C,useEventListen:m,walkModePath:f}=We().toRefs();de(()=>l.value.length,Ot((h,y)=>{var b;h!==y&&((b=r.value)==null||b.scrollToItem(0))},300)),ut(async()=>{var h;if(!(n.target==="netdisk"&&t.value)){if(!l.value.length){const y=await mt(n.target,"/");l.value.push({files:y.files,curr:"/"})}if(e.value=new Uo,e.value.configure({parent:i.value}),n.path&&n.path!=="/"){if(await s(n.path),n.walkMode){await ct();const[y]=et(o.value.files,C.value).filter(b=>b.type==="dir");y&&s(y.fullpath)}}else n.target=="local"&&(h=X.conf)!=null&&h.home&&s(X.conf.home)}}),de(()=>n.target==="netdisk"&&t.value&&X.user,async(h,y)=>{if(h&&!y){const b=await mt(n.target,"/");l.value=[{files:b.files,curr:"/"}]}}),de(c,Ot(h=>{const y=X.tabList[n.tabIdx].panes[n.paneIdx];y.path=h,X.recent=X.recent.filter(b=>b.key!==y.key),X.recent.unshift({path:h,target:y.target,key:y.key}),X.recent.length>20&&(X.recent=X.recent.slice(0,20))},300));const w=()=>un(c.value),u=async h=>{var y,b;if(h.type==="dir")try{(y=e.value)==null||y.start();const p=d.value,{files:S}=await mt(n.target,nt.normalize(nt.join(...p,h.name)));l.value.push({files:S,curr:h.name})}finally{(b=e.value)==null||b.done()}},a=h=>{for(;h<l.value.length-1;)l.value.pop()},s=async(h,y=!0)=>{var p,S,I;const b=l.value.slice();try{/^((\w:)|\/)/.test(h)||(h=nt.join(((p=X.conf)==null?void 0:p.sd_cwd)??"/",h));const E=h.split(/\\|\//);(S=X.conf)!=null&&S.is_win&&n.target==="local"?E[0]=E[0]+"/":E.shift();const A=l.value.map(x=>x.curr);for(A.shift();A[0]&&E[0]&&A[0]===E[0];)A.shift(),E.shift();for(let x=0;x<A.length;x++)l.value.pop();if(!E.length&&y)return v();for(const x of E){const _=(I=o.value)==null?void 0:I.files.find($=>$.name===x);Nt(_),await u(_)}}catch(E){throw console.error(h),ht.error(G("moveFailedCheckPath")),l.value=b,E}},v=async()=>{var h,y;try{if((h=e.value)==null||h.start(),f.value){await s(f.value,!1),await Si();const[b]=et(o.value.files,C.value).filter(p=>p.type==="dir");b&&await s(b.fullpath,!1)}else{const{files:b}=await mt(n.target,l.value.length===1?"/":c.value);sn(l.value).files=b}}finally{(y=e.value)==null||y.done()}};return m.value("refresh",v),{refresh:v,copyLocation:w,back:a,openNext:u,currPage:o,currLocation:c,to:s,stack:l,scroller:r}}function Yo(n){const{scroller:e,sortedFiles:t,stack:r,sortMethod:i,currLocation:l,currPage:o,stackViewEl:c,canLoadNext:d}=We().toRefs(),{state:C}=We(),m=O(!1),f=O("grid"),w={line:G("detailList"),grid:G("previewGrid"),"large-size-grid":G("largePreviewGrid")},u={value:A=>A,text:A=>G("sortBy")+" "+Lr[A].toLocaleLowerCase()},a=272,s=64,v=a*2,{width:h}=Ai(c),y=F(()=>{const A=h.value;if(!(f.value==="line"||!A))return~~(A/(f.value==="grid"?a:v))}),b=F(()=>{const A=f.value;if(A==="line")return{first:80,second:void 0};const x=A==="grid"?a:v;return{first:x+s,second:x}}),p=O(!1),S=async()=>{var x;if(p.value||!n.walkMode||!d.value)return;try{p.value=!0;const _=r.value[r.value.length-2],$=et(_.files,i.value),N=$.findIndex(T=>{var D;return T.name===((D=o.value)==null?void 0:D.curr)});if(N!==-1){const T=$[N+1],D=nt.normalize(nt.join(l.value,"../",T.name)),te=await mt(n.target,D),Q=o.value;Q.curr=T.name,Q.walkFiles||(Q.walkFiles=[Q.files]),Q.walkFiles.push(te.files),console.log("curr page files length",(x=o.value)==null?void 0:x.files.length)}}catch{d.value=!1}finally{p.value=!1}const A=e.value;for(;A&&A.$_endIndex>t.value.length-10&&d.value;)await S()};C.useEventListen("loadNextDir",S);const I=Ot(async()=>{const A=e.value;A&&A.$_endIndex>t.value.length-10&&n.walkMode&&S()},300),E=F(()=>f.value==="grid"?[X.gridThumbnailSize,X.gridThumbnailSize].join():[X.largeGridThumbnailSize,X.largeGridThumbnailSize].join());return{gridItems:y,sortedFiles:t,sortMethodConv:u,viewModeMap:w,moreActionsDropdownShow:m,viewMode:f,gridSize:a,sortMethod:i,largeGridSize:v,onScroll:I,loadNextDir:S,loadNextDirLoading:p,canLoadNext:d,itemSize:b,thumbnailSize:E}}function qo(n){const{currLocation:e,sortedFiles:t,currPage:r,multiSelectedIdxs:i,eventEmitter:l}=We().toRefs(),o=()=>{i.value=[]};return qt("click",o),qt("blur",o),de(r,o),{onFileDragStart:(C,m)=>{const f=Yi(t.value[m]);console.log("onFileDragStart set drag file ",C,m,f);const w=[f];let u=f.type==="dir";if(i.value.includes(m)){const a=i.value.map(s=>t.value[s]);w.push(...a),u=a.some(s=>s.type==="dir")}C.dataTransfer.setData("text/plain",JSON.stringify({from:n.target,includeDir:u,loc:e.value,path:ra(w,"fullpath").map(a=>a.fullpath)}))},onDrop:async C=>{var f;const m=JSON.parse(((f=C.dataTransfer)==null?void 0:f.getData("text"))||"{}");if(console.log(m),m.from&&m.path&&typeof m.includeDir<"u"&&m.loc){const w=e.value;if(m.from===n.target&&m.loc===w)return;if(n.target==m.from){const u=we("div",[we("div",`${G("moveSelectedFilesTo")}${w}`),we("ol",m.path.map(a=>a.split(/[/\\]/).pop()).map(a=>we("li",a)))]);ce.confirm({title:G("confirm"),content:u,maskClosable:!0,async onOk(){await Qo(n.target,m.path,w),Qr.emit("removeFiles",[m.path,m.loc]),await l.value.emit("refresh")}})}else{const u=m.from==="local"?"upload":"download",a=u==="upload"?G("upload"):G("download"),s=we("div",[we("div",`${_n.value==="en"?"from":"从"} ${n.target!=="local"?G("local"):G("cloud")} `),we("ol",m.path.map(v=>v.split(/[/\\]/).pop()).map(v=>we("li",v))),we("div",`${a} ${n.target==="local"?G("local"):G("cloud")} ${w}`)]);ce.confirm({title:G("confirmCreateTask",{type:a,more:_n.value==="zh"?", 这是文件夹或者包含文件夹!":",which contains folders!"}),content:s,maskClosable:!0,async onOk(){await X.createTaskRecordPaneIfNotExist(n.tabIdx),console.log("request createNewTask",{send_dirs:m.path,recv_dir:w,type:u}),At.pendingBaiduyunTaskQueue.push({send_dirs:m.path,recv_dir:w,type:u})}})}}},multiSelectedIdxs:i}}function Zo(n,{openNext:e}){const t=O(!1),r=O(""),{sortedFiles:i,previewIdx:l,multiSelectedIdxs:o,stack:c,currLocation:d,spinning:C}=We().toRefs();Go("removeFiles",([u,a])=>{if(a!==d.value)return;const s=sn(c.value);s.files=s.files.filter(v=>!u.includes(v.fullpath)),s.walkFiles&&(s.walkFiles=s.walkFiles.map(v=>v.filter(h=>!u.includes(h.fullpath))))});const m=rt(new Pi);return{onFileItemClick:async(u,a)=>{const v=i.value.findIndex(h=>h.name===a.name);if(l.value=v,u.shiftKey){o.value.push(v),o.value.sort((b,p)=>b-p);const h=o.value[0],y=o.value[o.value.length-1];o.value=Io(h,y+1),console.log(o.value),u.stopPropagation()}else u.ctrlKey||u.metaKey?(o.value.push(v),u.stopPropagation()):await e(a)},onContextMenuClick:async(u,a,s)=>{const v=Bt(a),h=d.value,y=async b=>{if(!C.value)try{C.value=!0,await Ei(a.fullpath),In().querySelector("#bd_hidden_img_update_trigger").click(),Nt(await Oi(),"genInfoCompleted timeout"),In().querySelector(`#bd_hidden_tab_${b}`).click()}catch(p){console.error(p),ht.error("发送图像失败请携带console的错误消息找开发者")}finally{C.value=!1}};switch(u.key){case"previewInNewWindow":return window.open(v);case"download":return window.open(Bt(a,!0));case"copyPreviewUrl":return un(location.host+v);case"send2txt2img":return y("txt2img");case"send2img2img":return y("img2img");case"send2inpaint":return y("inpaint");case"send2extras":return y("extras");case"openInNewTab":{Xt.set(h,c.value);const b=X.tabList[n.tabIdx],p={type:n.target,target:n.target,key:xn(),path:a.fullpath,name:n.target==="local"?G("local"):G("cloud"),stackKey:h};b.panes.push(p),b.key=p.key;break}case"openOnTheRight":{Xt.set(h,c.value);let b=X.tabList[n.tabIdx+1];b||(b=xi({panes:[],key:""}),X.tabList[n.tabIdx+1]=b);const p={type:n.target,target:n.target,key:xn(),path:a.fullpath,name:n.target==="local"?G("local"):G("cloud"),stackKey:h};b.panes.push(p),b.key=p.key;break}case"viewGenInfo":{t.value=!0,r.value=await m.pushAction(()=>_i(a.fullpath)).res;break}case"deleteFiles":{let b=[];o.value.includes(s)?b=o.value.map(p=>i.value[p]):b.push(a),ce.confirm({title:G("confirmDelete"),maskClosable:!0,content:we("ol",{style:"max-height:50vh;overflow:auto;"},b.map(p=>p.fullpath.split(/[/\\]/).pop()).map(p=>we("li",p))),async onOk(){const p=b.map(S=>S.fullpath);await Fo(n.target,p),ht.success(G("deleteSuccess")),Qr.emit("removeFiles",[p,d.value])}})}}},showGenInfo:t,imageGenInfo:r,q:m}}const Xo=ee({__name:"folderNavigator",props:{loc:null},emits:["to"],setup(n,{emit:e}){const t=n,r=Bi(()=>t.loc),i=O(!1),l=()=>{i.value=!1,e("to",r.value)};return(o,c)=>{const d=Sr,C=ce;return V(),ie(ye,null,[g(C,{visible:i.value,"onUpdate:visible":c[1]||(c[1]=m=>i.value=m),title:o.$t("inputAddressAndPressEnter"),onOk:l},{default:z(()=>[g(d,{onPressEnter:l,value:P(r),"onUpdate:value":c[0]||(c[0]=m=>Ye(r)?r.value=m:null),style:{width:"100%"},"allow-clear":""},null,8,["value"])]),_:1},8,["visible","title"]),q("a",{style:{"margin-left":"8px"},onClick:c[2]||(c[2]=m=>i.value=!0)},U(o.$t("go")),1)],64)}}});function el(){var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return parseInt(n.substring(e+5,n.indexOf(".",e)),10);var t=n.indexOf("Trident/");if(t>0){var r=n.indexOf("rv:");return parseInt(n.substring(r+3,n.indexOf(".",r)),10)}var i=n.indexOf("Edge/");return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):-1}let Pt;function en(){en.init||(en.init=!0,Pt=el()!==-1)}var Mt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){en(),ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",Pt&&this.$el.appendChild(n),n.data="about:blank",Pt||this.$el.appendChild(n)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Pt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tl=Mi();Ti("data-v-b329ee4c");const nl={class:"resize-observer",tabindex:"-1"};zi();const rl=tl((n,e,t,r,i,l)=>(V(),ge("div",nl)));Mt.render=rl;Mt.__scopeId="data-v-b329ee4c";Mt.__file="src/components/ResizeObserver.vue";function _t(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_t=function(e){return typeof e}:_t=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(n)}function il(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function rr(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function al(n,e,t){return e&&rr(n.prototype,e),t&&rr(n,t),n}function ir(n){return ol(n)||ll(n)||sl(n)||ul()}function ol(n){if(Array.isArray(n))return tn(n)}function ll(n){if(typeof Symbol<"u"&&Symbol.iterator in Object(n))return Array.from(n)}function sl(n,e){if(n){if(typeof n=="string")return tn(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tn(n,e)}}function tn(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function ul(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cl(n){var e;return typeof n=="function"?e={callback:n}:e=n,e}function dl(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,l,o=function(d){for(var C=arguments.length,m=new Array(C>1?C-1:0),f=1;f<C;f++)m[f-1]=arguments[f];if(l=m,!(r&&d===i)){var w=t.leading;typeof w=="function"&&(w=w(d,i)),(!r||d!==i)&&w&&n.apply(void 0,[d].concat(ir(l))),i=d,clearTimeout(r),r=setTimeout(function(){n.apply(void 0,[d].concat(ir(l))),r=0},e)}};return o._clear=function(){clearTimeout(r),r=null},o}function jr(n,e){if(n===e)return!0;if(_t(n)==="object"){for(var t in n)if(!jr(n[t],e[t]))return!1;return!0}return!1}var fl=function(){function n(e,t,r){il(this,n),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t,r)}return al(n,[{key:"createObserver",value:function(t,r){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=cl(t),this.callback=function(c,d){i.options.callback(c,d),c&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},o=l.leading;this.callback=dl(this.callback,this.options.throttle,{leading:function(d){return o==="both"||o==="visible"&&d||o==="hidden"&&!d}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(c){var d=c[0];if(c.length>1){var C=c.find(function(f){return f.isIntersecting});C&&(d=C)}if(i.callback){var m=d.isIntersecting&&d.intersectionRatio>=i.threshold;if(m===i.oldResult)return;i.oldResult=m,i.callback(m,d)}},this.options.intersection),ct(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),n}();function Vr(n,e,t){var r=e.value;if(r)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new fl(n,r,t);n._vue_visibilityState=i}}function vl(n,e,t){var r=e.value,i=e.oldValue;if(!jr(r,i)){var l=n._vue_visibilityState;if(!r){Ur(n);return}l?l.createObserver(r,t):Vr(n,{value:r},t)}}function Ur(n){var e=n._vue_visibilityState;e&&(e.destroyObserver(),delete n._vue_visibilityState)}var ml={beforeMount:Vr,updated:vl,unmounted:Ur},gl={itemsLimit:1e3},pl=/(auto|scroll)/;function Hr(n,e){return n.parentNode===null?e:Hr(n.parentNode,e.concat([n]))}var Ut=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},hl=function(e){return Ut(e,"overflow")+Ut(e,"overflow-y")+Ut(e,"overflow-x")},yl=function(e){return pl.test(hl(e))};function ar(n){if(n instanceof HTMLElement||n instanceof SVGElement){for(var e=Hr(n.parentNode,[]),t=0;t<e.length;t+=1)if(yl(e[t]))return e[t];return document.scrollingElement||document.documentElement}}function nn(n){return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(n)}var bl={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Cl(){return this.items.length&&nn(this.items[0])!=="object"}var rn=!1;if(typeof window<"u"){rn=!1;try{var wl=Object.defineProperty({},"passive",{get:function(){rn=!0}});window.addEventListener("test",null,wl)}catch{}}let kl=0;var bn={name:"RecycleScroller",components:{ResizeObserver:Mt},directives:{ObserveVisibility:ml},props:{...bl,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const n={"-1":{accumulator:0}},e=this.items,t=this.sizeField,r=this.minItemSize;let i=1e4,l=0,o;for(let c=0,d=e.length;c<d;c++)o=e[c][t]||r,o<i&&(i=o),l+=o,n[c]={accumulator:l,size:o};return this.$_computedMinItemSize=i,n}return[]},simpleArray:Cl,itemIndexByKey(){const{keyField:n,items:e}=this,t={};for(let r=0,i=e.length;r<i;r++)t[e[r][n]]=r;return t}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const n=this.$_lastUpdateScrollPosition;typeof n=="number"&&this.$nextTick(()=>{this.scrollToPosition(n)})},beforeUnmount(){this.removeListeners()},methods:{addView(n,e,t,r,i){const l=Ri({id:kl++,index:e,used:!0,key:r,type:i}),o=Di({item:t,position:0,nr:l});return n.push(o),o},unuseView(n,e=!1){const t=this.$_unusedViews,r=n.nr.type;let i=t.get(r);i||(i=[],t.set(r,i)),i.push(n),e||(n.nr.used=!1,n.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(n){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:t}=this.updateVisibleItems(!1,!0);t||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(n,e){this.ready&&(n||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(n,e=!1){const t=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||t,l=this.$_computedMinItemSize,o=this.typeField,c=this.simpleArray?null:this.keyField,d=this.items,C=d.length,m=this.sizes,f=this.$_views,w=this.$_unusedViews,u=this.pool,a=this.itemIndexByKey;let s,v,h,y,b;if(!C)s=v=y=b=h=0;else if(this.$_prerender)s=y=0,v=b=Math.min(this.prerender,d.length),h=null;else{const _=this.getScroll();if(e){let T=_.start-this.$_lastUpdateScrollPosition;if(T<0&&(T=-T),t===null&&T<l||T<t)return{continuous:!0}}this.$_lastUpdateScrollPosition=_.start;const $=this.buffer;_.start-=$,_.end+=$;let N=0;if(this.$refs.before&&(N=this.$refs.before.scrollHeight,_.start-=N),this.$refs.after){const T=this.$refs.after.scrollHeight;_.end+=T}if(t===null){let T,D=0,te=C-1,Q=~~(C/2),ne;do ne=Q,T=m[Q].accumulator,T<_.start?D=Q:Q<C-1&&m[Q+1].accumulator>_.start&&(te=Q),Q=~~((D+te)/2);while(Q!==ne);for(Q<0&&(Q=0),s=Q,h=m[C-1].accumulator,v=Q;v<C&&m[v].accumulator<_.end;v++);for(v===-1?v=d.length-1:(v++,v>C&&(v=C)),y=s;y<C&&N+m[y].accumulator<_.start;y++);for(b=y;b<C&&N+m[b].accumulator<_.end;b++);}else{s=~~(_.start/t*r);const T=s%r;s-=T,v=Math.ceil(_.end/t*r),y=Math.max(0,Math.floor((_.start-N)/t*r)),b=Math.floor((_.end-N)/t*r),s<0&&(s=0),v>C&&(v=C),y<0&&(y=0),b>C&&(b=C),h=Math.ceil(C/r)*t}}v-s>gl.itemsLimit&&this.itemsLimitError(),this.totalSize=h;let p;const S=s<=this.$_endIndex&&v>=this.$_startIndex;if(S)for(let _=0,$=u.length;_<$;_++)p=u[_],p.nr.used&&(n&&(p.nr.index=a[p.item[c]]),(p.nr.index==null||p.nr.index<s||p.nr.index>=v)&&this.unuseView(p));const I=S?null:new Map;let E,A,x;for(let _=s;_<v;_++){E=d[_];const $=c?E[c]:E;if($==null)throw new Error(`Key is ${$} on item (keyField is '${c}')`);if(p=f.get($),!t&&!m[_].size){p&&this.unuseView(p);continue}A=E[o];let N=w.get(A),T=!1;if(!p)S?N&&N.length?p=N.pop():p=this.addView(u,_,E,$,A):(x=I.get(A)||0,(!N||x>=N.length)&&(p=this.addView(u,_,E,$,A),this.unuseView(p,!0),N=w.get(A)),p=N[x],I.set(A,x+1)),f.delete(p.nr.key),p.nr.used=!0,p.nr.index=_,p.nr.key=$,p.nr.type=A,f.set($,p),T=!0;else if(!p.nr.used&&(p.nr.used=!0,T=!0,N)){const D=N.indexOf(p);D!==-1&&N.splice(D,1)}p.item=E,T&&(_===d.length-1&&this.$emit("scroll-end"),_===0&&this.$emit("scroll-start")),t===null?(p.position=m[_-1].accumulator,p.offset=0):(p.position=Math.floor(_/r)*t,p.offset=_%r*i)}return this.$_startIndex=s,this.$_endIndex=v,this.emitUpdate&&this.$emit("update",s,v,y,b),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:S}},getListenerTarget(){let n=ar(this.$el);return window.document&&(n===window.document.documentElement||n===window.document.body)&&(n=window),n},getScroll(){const{$el:n,direction:e}=this,t=e==="vertical";let r;if(this.pageMode){const i=n.getBoundingClientRect(),l=t?i.height:i.width;let o=-(t?i.top:i.left),c=t?window.innerHeight:window.innerWidth;o<0&&(c+=o,o=0),o+c>l&&(c=l-o),r={start:o,end:o+c}}else t?r={start:n.scrollTop,end:n.scrollTop+n.clientHeight}:r={start:n.scrollLeft,end:n.scrollLeft+n.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,rn?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(n){let e;const t=this.gridItems||1;this.itemSize===null?e=n>0?this.sizes[n-1].accumulator:0:e=Math.floor(n/t)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(n){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let t,r,i;if(this.pageMode){const l=ar(this.$el),o=l.tagName==="HTML"?0:l[e.scroll],c=l.getBoundingClientRect(),C=this.$el.getBoundingClientRect()[e.start]-c[e.start];t=l,r=e.scroll,i=n+o+C}else t=this.$el,r=e.scroll,i=n;t[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((n,e)=>n.nr.index-e.nr.index)}}};const Sl={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Al={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Pl(n,e,t,r,i,l){const o=kr("ResizeObserver"),c=Li("observe-visibility");return on((V(),ie("div",{class:qe(["vue-recycle-scroller",{ready:i.ready,"page-mode":t.pageMode,[`direction-${n.direction}`]:!0}]),onScrollPassive:e[0]||(e[0]=(...d)=>l.handleScroll&&l.handleScroll(...d))},[n.$slots.before?(V(),ie("div",Sl,[Ct(n.$slots,"before")],512)):Ne("v-if",!0),(V(),ge(On(t.listTag),{ref:"wrapper",style:ji({[n.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:qe(["vue-recycle-scroller__item-wrapper",t.listClass])},{default:z(()=>[(V(!0),ie(ye,null,Jt(i.pool,d=>(V(),ge(On(t.itemTag),Fi({key:d.nr.id,style:i.ready?{transform:`translate${n.direction==="vertical"?"Y":"X"}(${d.position}px) translate${n.direction==="vertical"?"X":"Y"}(${d.offset}px)`,width:t.gridItems?`${n.direction==="vertical"&&t.itemSecondarySize||t.itemSize}px`:void 0,height:t.gridItems?`${n.direction==="horizontal"&&t.itemSecondarySize||t.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[t.itemClass,{hover:!t.skipHover&&i.hoverKey===d.nr.key}]]},Qi(t.skipHover?{}:{mouseenter:()=>{i.hoverKey=d.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:z(()=>[Ct(n.$slots,"default",{item:d.item,index:d.nr.index,active:d.nr.used})]),_:2},1040,["style","class"]))),128)),Ct(n.$slots,"empty")]),_:3},8,["style","class"])),n.$slots.after?(V(),ie("div",Al,[Ct(n.$slots,"after")],512)):Ne("v-if",!0),g(o,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[c,l.handleVisibilityChange]])}bn.render=Pl;bn.__file="src/components/RecycleScroller.vue";const _l={key:0,class:"uninstalled-hint"},xl={key:0},Il={class:"hint"},El={class:"location-bar"},Ol={class:"breadcrumb"},Nl=["onClick"],$l={class:"actions"},Bl=["onClick"],Tl={style:{width:"512px",background:"white",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px #aaa",border:"1px solid #aaa"}},zl={key:0,class:"view"},Ml=["onDragstart","onClickCapture"],Rl={key:0},Dl={key:1,class:"preview-icon-wrap"},Ll={class:"profile"},Fl={class:"name line-clamp-1"},Ql={class:"basic-info"},jl={class:"name line-clamp-1"},Vl={class:"basic-info"},Ul={key:0,class:"preview-switch"},Hl=ee({__name:"stackView",props:{target:null,tabIdx:null,paneIdx:null,path:null,walkMode:{type:Boolean},stackKey:null},setup(n){const e=n,t=Cr(),{installBaiduyunBin:r,installedBaiduyun:i,failedHint:l,baiduyunLoading:o,scroller:c,walkModePath:d,stackViewEl:C,props:m,bduss:f,onLoginBtnClick:w,multiSelectedIdxs:u,spinning:a}=We().toRefs(),{currLocation:s,currPage:v,refresh:h,copyLocation:y,back:b,openNext:p,stack:S,to:I}=Ko(e),{gridItems:E,sortMethodConv:A,moreActionsDropdownShow:x,sortedFiles:_,sortMethod:$,viewMode:N,viewModeMap:T,itemSize:D,loadNextDir:te,loadNextDirLoading:Q,canLoadNext:ne,thumbnailSize:ae,onScroll:oe}=Yo(e),{onDrop:le,onFileDragStart:L}=qo(e),{onFileItemClick:J,onContextMenuClick:re,showGenInfo:Z,imageGenInfo:Y,q:se}=Zo(e,{openNext:p}),{previewIdx:be,onPreviewVisibleChange:je,previewing:Pe,previewImgMove:_e,canPreview:xe}=Jo(e);return de(()=>e,()=>{m.value=e,e.walkMode&&(d.value=e.path);const j=Xt.get(e.stackKey??"");j&&(S.value=j.slice())},{immediate:!0}),(j,M)=>{const Be=Gi,Te=Le,W=Sr,R=qi,fe=kr("login-outlined"),Ie=Le,me=De,Ee=Wi,ke=ce,ze=yt,Me=Xe,ve=Ji,Cn=Ht,Rt=Ge,Gr=qa,Wr=pt;return V(),ge(Wr,{spinning:P(a),size:"large"},{default:z(()=>[g(Be,{style:{display:"none"}}),e.target==="netdisk"&&(!P(i)||!P(t).user)?(V(),ie("div",_l,[P(i)?(V(),ge(me,{key:1,layout:"inline"},{default:z(()=>[g(R,{label:"bduss"},{default:z(()=>[g(W,{value:P(f),"onUpdate:value":M[0]||(M[0]=B=>Ye(f)?f.value=B:null),style:{width:"300px"}},null,8,["value"])]),_:1}),g(R,null,{default:z(()=>[g(Ie,{onClick:P(w),type:"primary",loading:P(o)},{icon:z(()=>[g(fe)]),default:z(()=>[ue(" "+U(j.$t("login")),1)]),_:1},8,["onClick","loading"])]),_:1})]),_:1})):(V(),ie(ye,{key:0},[q("div",null,U(j.$t("dependenciesNotInstalled")),1),g(Te,{type:"primary",loading:P(o),onClick:P(r)},{default:z(()=>[ue("点此安装")]),_:1},8,["loading","onClick"]),P(l)?(V(),ie("p",xl,U(P(l)),1)):Ne("",!0)],64))])):(V(),ie("div",{key:1,ref_key:"stackViewEl",ref:C,onDragover:M[15]||(M[15]=Se(()=>{},["prevent"])),onDrop:M[16]||(M[16]=Se(B=>P(le)(B),["prevent"])),class:"container"},[g(ke,{visible:P(Z),"onUpdate:visible":M[2]||(M[2]=B=>Ye(Z)?Z.value=B:null),width:"70vw","mask-closable":"",onOk:M[3]||(M[3]=B=>Z.value=!1)},{cancelText:z(()=>[]),default:z(()=>[g(Ee,{active:"",loading:!P(se).isIdle},{default:z(()=>[q("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:M[1]||(M[1]=B=>P(un)(P(Y),"copied"))},[q("div",Il,U(j.$t("doubleClickToCopy")),1),ue(" "+U(P(Y)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),q("div",El,[q("div",Ol,[g(Me,{style:{flex:"1"}},{default:z(()=>[(V(!0),ie(ye,null,Jt(P(S),(B,Re)=>(V(),ge(ze,{key:Re},{default:z(()=>[q("a",{onClick:Se(Je=>P(b)(Re),["prevent"])},U(B.curr==="/"?j.$t("root"):B.curr.replace(/:\/$/,j.$t("drive"))),9,Nl)]),_:2},1024))),128))]),_:1})]),q("div",$l,[q("a",{class:"opt",onClick:M[4]||(M[4]=Se((...B)=>P(h)&&P(h)(...B),["prevent"]))},U(j.$t("refresh")),1),e.target==="local"?(V(),ge(Rt,{key:0},{overlay:z(()=>[g(Cn,null,{default:z(()=>[(V(!0),ie(ye,null,Jt(P(t).autoCompletedDirList,B=>(V(),ge(ve,{key:B.dir},{default:z(()=>[q("a",{onClick:Se(Re=>P(I)(B.dir),["prevent"])},U(B.zh),9,Bl)]),_:2},1024))),128))]),_:1})]),default:z(()=>[q("a",{class:"opt",onClick:M[5]||(M[5]=Se(()=>{},["prevent"]))},[ue(U(j.$t("quickMove"))+" ",1),g(P(lr))])]),_:1})):Ne("",!0),g(Rt,{trigger:["click"],visible:P(x),"onUpdate:visible":M[12]||(M[12]=B=>Ye(x)?x.value=B:null),placement:"bottomLeft",getPopupContainer:B=>B.parentNode},{overlay:z(()=>[q("div",Tl,[g(me,Vi(Ui({labelCol:{span:6},wrapperCol:{span:18}})),{default:z(()=>[g(R,{label:j.$t("viewMode")},{default:z(()=>[g(P(Nn),{value:P(N),"onUpdate:value":M[7]||(M[7]=B=>Ye(N)?N.value=B:null),onClick:M[8]||(M[8]=Se(()=>{},["stop"])),conv:{value:B=>B,text:B=>P(T)[B]},options:Object.keys(P(T))},null,8,["value","conv","options"])]),_:1},8,["label"]),g(R,{label:j.$t("sortingMethod")},{default:z(()=>[g(P(Nn),{value:P($),"onUpdate:value":M[9]||(M[9]=B=>Ye($)?$.value=B:null),onClick:M[10]||(M[10]=Se(()=>{},["stop"])),conv:P(A),options:Object.keys(P(Lr))},null,8,["value","conv","options"])]),_:1},8,["label"]),g(R,null,{default:z(()=>[q("a",{onClick:M[11]||(M[11]=Se((...B)=>P(y)&&P(y)(...B),["prevent"]))},U(j.$t("copyPath")),1),g(Xo,{loc:P(s),onTo:P(I)},null,8,["loc","onTo"])]),_:1})]),_:1},16)])]),default:z(()=>[q("a",{class:"opt",onClick:M[6]||(M[6]=Se(()=>{},["prevent"]))},U(j.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),P(v)?(V(),ie("div",zl,[g(P(bn),{class:"file-list",items:P(_),prerender:10,ref_key:"scroller",ref:c,onScroll:P(oe),"item-size":P(D).first,"key-field":"fullpath","item-secondary-size":P(D).second,gridItems:P(E)},Hi({default:z(({item:B,index:Re})=>[g(Rt,{trigger:["contextmenu"]},{overlay:z(()=>[g(Cn,{onClick:Je=>P(re)(Je,B,Re)},{default:z(()=>[g(ve,{key:"deleteFiles"},{default:z(()=>[ue(U(j.$t("deleteSelected")),1)]),_:1}),B.type==="dir"?(V(),ie(ye,{key:0},[g(ve,{key:"openInNewTab"},{default:z(()=>[ue(U(j.$t("openInNewTab")),1)]),_:1}),g(ve,{key:"openOnTheRight"},{default:z(()=>[ue(U(j.$t("openOnTheRight")),1)]),_:1})],64)):Ne("",!0),B.type==="file"&&e.target==="local"?(V(),ie(ye,{key:1},[g(ve,{key:"previewInNewWindow"},{default:z(()=>[ue(U(j.$t("previewInNewWindow")),1)]),_:1}),g(ve,{key:"download"},{default:z(()=>[ue(U(j.$t("downloadDirectly")),1)]),_:1}),g(ve,{key:"copyPreviewUrl"},{default:z(()=>[ue(U(j.$t("copySourceFilePreviewLink")),1)]),_:1}),P(Ce)(B.name)?(V(),ie(ye,{key:0},[g(ve,{key:"viewGenInfo"},{default:z(()=>[ue(U(j.$t("viewGenerationInfo")),1)]),_:1}),g(ve,{key:"send2txt2img"},{default:z(()=>[ue(U(j.$t("sendToTxt2img")),1)]),_:1}),g(ve,{key:"send2img2img"},{default:z(()=>[ue(U(j.$t("sendToImg2img")),1)]),_:1}),g(ve,{key:"send2inpaint"},{default:z(()=>[ue(U(j.$t("sendToInpaint")),1)]),_:1}),g(ve,{key:"send2extras"},{default:z(()=>[ue(U(j.$t("sendToExtraFeatures")),1)]),_:1})],64)):Ne("",!0)],64)):Ne("",!0)]),_:2},1032,["onClick"])]),default:z(()=>[(V(),ie("li",{class:qe(["file",{clickable:B.type==="dir",selected:P(u).includes(Re),grid:P(N)==="grid"||P(N)==="large-size-grid","large-grid":P(N)==="large-size-grid"}]),key:B.name,draggable:"true",onDragstart:Je=>P(L)(Je,Re),onClickCapture:Je=>P(J)(Je,B)},[P(N)!=="line"?(V(),ie("div",Rl,[e.target==="local"&&P(Ce)(B.name)?(V(),ge(Gr,{key:B.fullpath,class:qe(`idx-${Re}`),src:P(t).enableThumbnail?P(Ho)(B,P(ae)):P(Bt)(B),fallback:P(Eo),preview:{src:P(_)[P(be)]?P(Bt)(P(_)[P(be)]):"",onVisibleChange:P(je)}},null,8,["class","src","fallback","preview"])):(V(),ie("div",Dl,[B.type==="file"?(V(),ge(P(Jn),{key:0,class:"icon center"})):(V(),ge(P(Yn),{key:1,class:"icon center"}))])),q("div",Ll,[q("div",Fl,U(B.name),1),q("div",Ql,[q("div",null,U(B.size),1),q("div",null,U(B.date),1)])])])):(V(),ie(ye,{key:1},[B.type==="file"?(V(),ge(P(Jn),{key:0,class:"icon"})):(V(),ge(P(Yn),{key:1,class:"icon"})),q("div",jl,U(B.name),1),q("div",Vl,[q("div",null,U(B.size),1),q("div",null,U(B.date),1)])],64))],42,Ml))]),_:2},1024)]),_:2},[e.walkMode?{name:"after",fn:z(()=>[g(Te,{onClick:P(te),loading:P(Q),block:"",type:"primary",disabled:!P(ne),ghost:""},{default:z(()=>[ue(U(j.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])]),key:"0"}:void 0]),1032,["items","onScroll","item-size","item-secondary-size","gridItems"]),P(Pe)?(V(),ie("div",Ul,[g(P(To),{onClick:M[13]||(M[13]=B=>P(_e)("prev")),class:qe({disable:!P(xe)("prev")})},null,8,["class"]),g(P(Do),{onClick:M[14]||(M[14]=B=>P(_e)("next")),class:qe({disable:!P(xe)("next")})},null,8,["class"])])):Ne("",!0)])):Ne("",!0)],544))]),_:1},8,["spinning"])}}});const Xl=Ki(Hl,[["__scopeId","data-v-1acf9a92"]]);export{Xl as default};