import{P as Oe,bx as En,a as O,d as ee,bg as et,u as Be,c as a,by as tt,_ as nt,V as ze,Z as ae,ag as B,bm as At,a1 as St,au as it,h as U,bz as Pn,b as Qe,av as $n,bA as In,a0 as Ot,bl as Xt,r as V,bd as ke,ax as De,ar as Et,aE as _n,aC as Kt,bB as qt,as as Se,y as oe,aT as xn,bC as Ln,s as se,bD as Mn,bE as we,bF as en,e as Ge,bG as zn,at as Pt,bH as kn,ae as W,$ as Nn,bI as Bn,bJ as $t,aO as Qn,bK as Dn,bL as Tn,ay as rt,be as Ye,bM as jn,bN as It,bO as Rn,ak as Vn,al as Fn,o as _,z as Y,bP as Un,bQ as Hn,bR as Gn,bS as Yn,bT as Jn,a3 as Wn,l as G,bU as _e,K as ie,m as S,E as lt,bV as _t,bW as Zn,bX as Xn,bY as Kn,O as Ee,x as at,C as Q,t as I,n as z,bZ as tn,U as nn,b_ as qn,b$ as ei,M as rn,bp as ln,q as J,W as an,ao as ti,c0 as ni,c1 as ii,af as ri,B as li,A as ai}from"./index-2ccb5782.js";import{i as oi,t as Je}from"./hook-dadee24a.js";import{f as on}from"./db-89fdf46d.js";var sn=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:Oe.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}}},Ue=En(),si=function(){return O(O({},sn()),{},{type:Ue.type,size:String,htmlType:Ue.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:Oe.any,title:String,loading:Ue.loading,onClick:{type:Function}})},ui=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],ci=ze.Group;const Ne=ee({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:et(si(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(e,n){var i=n.slots,r=n.attrs,l=n.emit,p=function(C){l("update:visible",C),l("visibleChange",C)},o=Be("dropdown-button",e),m=o.prefixCls,u=o.direction,h=o.getPopupContainer;return function(){var w,C,f=O(O({},e),r),v=f.type,d=v===void 0?"default":v,g=f.disabled,y=f.loading,s=f.htmlType,A=f.class,c=A===void 0?"":A,E=f.overlay,M=E===void 0?(w=i.overlay)===null||w===void 0?void 0:w.call(i):E,D=f.trigger,P=f.align,$=f.visible;f.onVisibleChange;var b=f.placement,x=b===void 0?u.value==="rtl"?"bottomLeft":"bottomRight":b,L=f.href,k=f.title,R=f.icon,ue=R===void 0?((C=i.icon)===null||C===void 0?void 0:C.call(i))||a(tt,null,null):R,F=f.mouseEnterDelay,te=f.mouseLeaveDelay,re=f.overlayClassName,le=f.overlayStyle,de=f.destroyPopupOnHide,T=f.onClick;f["onUpdate:visible"];var H=nt(f,ui),Z={align:P,disabled:g,trigger:g?[]:D,placement:x,getPopupContainer:h.value,onVisibleChange:p,mouseEnterDelay:F,mouseLeaveDelay:te,visible:$,overlayClassName:re,overlayStyle:le,destroyPopupOnHide:de},X=a(ze,{type:d,disabled:g,loading:y,onClick:T,htmlType:s,href:L,title:k},{default:i.default}),K=a(ze,{type:d,icon:ue},null);return a(ci,O(O({},H),{},{class:ae(m.value,c)}),{default:function(){return[i.leftButton?i.leftButton({button:X}):X,a(ge,Z,{default:function(){return[i.rightButton?i.rightButton({button:K}):K]},overlay:function(){return M}})]}})}}});var un=ee({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:et(sn(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(e,n){var i=n.slots,r=n.attrs,l=n.emit,p=Be("dropdown",e),o=p.prefixCls,m=p.rootPrefixCls,u=p.direction,h=p.getPopupContainer,w=B(function(){var d=e.placement,g=d===void 0?"":d,y=e.transitionName;return y!==void 0?y:g.indexOf("top")>=0?"".concat(m.value,"-slide-down"):"".concat(m.value,"-slide-up")}),C=function(){var g,y,s,A=e.overlay||((g=i.overlay)===null||g===void 0?void 0:g.call(i)),c=Array.isArray(A)?A[0]:A;if(!c)return null;var E=c.props||{};At(!E.mode||E.mode==="vertical","Dropdown",'mode="'.concat(E.mode,`" is not supported for Dropdown's Menu.`));var M=E.selectable,D=M===void 0?!1:M,P=E.expandIcon,$=P===void 0?(y=c.children)===null||y===void 0||(s=y.expandIcon)===null||s===void 0?void 0:s.call(y):P,b=typeof $<"u"&&Ot($)?$:a("span",{class:"".concat(o.value,"-menu-submenu-arrow")},[a(Xt,{class:"".concat(o.value,"-menu-submenu-arrow-icon")},null)]),x=Ot(c)?St(c,{mode:"vertical",selectable:D,expandIcon:function(){return b}}):c;return x},f=B(function(){var d=e.placement;if(!d)return u.value==="rtl"?"bottomRight":"bottomLeft";if(d.includes("Center")){var g=d.slice(0,d.indexOf("Center"));return At(!d.includes("Center"),"Dropdown","You are using '".concat(d,"' placement in Dropdown, which is deprecated. Try to use '").concat(g,"' instead.")),g}return d}),v=function(g){l("update:visible",g),l("visibleChange",g)};return function(){var d,g,y=e.arrow,s=e.trigger,A=e.disabled,c=e.overlayClassName,E=(d=i.default)===null||d===void 0?void 0:d.call(i)[0],M=St(E,it({class:ae(E==null||(g=E.props)===null||g===void 0?void 0:g.class,U({},"".concat(o.value,"-rtl"),u.value==="rtl"),"".concat(o.value,"-trigger"))},A?{disabled:A}:{})),D=ae(c,U({},"".concat(o.value,"-rtl"),u.value==="rtl")),P=A?[]:s,$;P&&P.indexOf("contextmenu")!==-1&&($=!0);var b=Pn({arrowPointAtCenter:Qe(y)==="object"&&y.pointAtCenter,autoAdjustOverflow:!0}),x=$n(O(O(O({},e),r),{},{builtinPlacements:b,overlayClassName:D,arrow:y,alignPoint:$,prefixCls:o.value,getPopupContainer:h.value,transitionName:w.value,trigger:P,onVisibleChange:v,placement:f.value}),["overlay","onUpdate:visible"]);return a(In,x,{default:function(){return[M]},overlay:C})}}});un.Button=Ne;const ge=un;ge.Button=Ne;ge.install=function(t){return t.component(ge.name,ge),t.component(Ne.name,Ne),t};function di(){var t=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:e}}function cn(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function fi(t){var e=V(null),n=ke(O({},t)),i=V([]),r=function(p){e.value===null&&(i.value=[],e.value=Et(function(){var o;i.value.forEach(function(m){o=O(O({},o),m)}),it(n,o),e.value=null})),i.value.push(p)};return De(function(){e.value&&Et.cancel(e.value)}),[n,r]}function xt(t,e,n,i){var r=e+n,l=(n-i)/2;if(n>i){if(e>0)return U({},t,l);if(e<0&&ri)return U({},t,e<0?l:-l);return{}}function vi(t,e,n,i){var r=di(),l=r.width,p=r.height,o=null;return t<=l&&e<=p?o={x:0,y:0}:(t>l||e>p)&&(o=O(O({},xt("x",n,t,l)),xt("y",i,e,p))),o}var Lt=Symbol("previewGroupContext"),ot={provide:function(e){_n(Lt,e)},inject:function(){return Kt(Lt,{isPreviewGroup:V(!1),previewUrls:B(function(){return new Map}),setPreviewUrls:function(){},current:V(null),setCurrent:function(){},setShowPreview:function(){},setMousePosition:function(){},registerImage:null,rootClassName:""})}},mi=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,n){var i=n.slots,r=B(function(){var P={visible:void 0,onVisibleChange:function(){},getContainer:void 0,current:0};return Qe(e.preview)==="object"?mn(e.preview,P):P}),l=ke(new Map),p=V(),o=B(function(){return r.value.visible}),m=B(function(){return r.value.getContainer}),u=function($,b){var x,L;(x=(L=r.value).onVisibleChange)===null||x===void 0||x.call(L,$,b)},h=qt(!!o.value,{value:o,onChange:u}),w=Se(h,2),C=w[0],f=w[1],v=V(null),d=B(function(){return o.value!==void 0}),g=B(function(){return Array.from(l.keys())}),y=B(function(){return g.value[r.value.current]}),s=B(function(){return new Map(Array.from(l).filter(function(P){var $=Se(P,2),b=$[1].canPreview;return!!b}).map(function(P){var $=Se(P,2),b=$[0],x=$[1].url;return[b,x]}))}),A=function($,b){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;l.set($,{url:b,canPreview:x})},c=function($){p.value=$},E=function($){v.value=$},M=function($,b){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,L=function(){l.delete($)};return l.set($,{url:b,canPreview:x}),L},D=function($){$==null||$.stopPropagation(),f(!1),E(null)};return oe(y,function(P){c(P)},{immediate:!0,flush:"post"}),xn(function(){C.value&&d.value&&c(y.value)},{flush:"post"}),ot.provide({isPreviewGroup:V(!0),previewUrls:s,setPreviewUrls:A,current:p,setCurrent:c,setShowPreview:f,setMousePosition:E,registerImage:M}),function(){var P=it({},(Ln(r.value),r.value));return a(se,null,[i.default&&i.default(),a(fn,O(O({},P),{},{"ria-hidden":!C.value,visible:C.value,prefixCls:e.previewPrefixCls,onClose:D,mousePosition:v.value,src:s.value.get(p.value),icons:e.icons,getContainer:m.value}),null)])}}});const dn=mi;var me={x:0,y:0},pi=O(O({},Mn()),{},{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),gi=ee({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:pi,emits:["close","afterClose"],setup:function(e,n){var i=n.emit,r=n.attrs,l=ke(e.icons),p=l.rotateLeft,o=l.rotateRight,m=l.zoomIn,u=l.zoomOut,h=l.close,w=l.left,C=l.right,f=V(1),v=V(0),d=fi(me),g=Se(d,2),y=g[0],s=g[1],A=function(){return i("close")},c=V(),E=ke({originX:0,originY:0,deltaX:0,deltaY:0}),M=V(!1),D=ot.inject(),P=D.previewUrls,$=D.current,b=D.isPreviewGroup,x=D.setCurrent,L=B(function(){return P.value.size}),k=B(function(){return Array.from(P.value.keys())}),R=B(function(){return k.value.indexOf($.value)}),ue=B(function(){return b.value?P.value.get($.value):e.src}),F=B(function(){return b.value&&L.value>1}),te=V({wheelDirection:0}),re=function(){f.value=1,v.value=0,s(me),i("afterClose")},le=function(){f.value++,s(me)},de=function(){f.value>1&&f.value--,s(me)},T=function(){v.value+=90},H=function(){v.value-=90},Z=function(N){N.preventDefault(),N.stopPropagation(),R.value>0&&x(k.value[R.value-1])},X=function(N){N.preventDefault(),N.stopPropagation(),R.value0&&x(k.value[R.value-1]):N.keyCode===Pt.RIGHT&&R.value0?de():j<0&&le()})}),en(function(){Ae()}),function(){var j=e.visible,N=e.prefixCls,q=e.rootClassName;return a(zn,O(O({},r),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:N,onClose:A,afterClose:re,visible:j,wrapClassName:K,rootClassName:q,getContainer:e.getContainer}),{default:function(){return[a("ul",{class:"".concat(e.prefixCls,"-operations")},[je.map(function(ne){var ve=ne.icon,ce=ne.onClick,ye=ne.type,be=ne.disabled;return a("li",{class:ae(Pe,U({},"".concat(e.prefixCls,"-operations-operation-disabled"),be&&(be==null?void 0:be.value))),onClick:ce,key:ye},[Ge(ve,{class:he})])})]),a("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(y.x,"px, ").concat(y.y,"px, 0)")}},[a("img",{onMousedown:Re,onDblclick:Fe,ref:c,class:"".concat(e.prefixCls,"-img"),src:ue.value,alt:e.alt,style:{transform:"scale3d(".concat(f.value,", ").concat(f.value,", 1) rotate(").concat(v.value,"deg)")}},null)]),F.value&&a("div",{class:ae("".concat(e.prefixCls,"-switch-left"),U({},"".concat(e.prefixCls,"-switch-left-disabled"),R.value<=0)),onClick:Z},[w]),F.value&&a("div",{class:ae("".concat(e.prefixCls,"-switch-right"),U({},"".concat(e.prefixCls,"-switch-right-disabled"),R.value>=L.value-1)),onClick:X},[C])]}})}}});const fn=gi;var hi=["icons","maskClassName"],vn=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:Oe.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}},mn=function(e,n){var i=O({},e);return Object.keys(n).forEach(function(r){e[r]===void 0&&(i[r]=n[r])}),i},yi=0,pn=ee({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:vn(),emits:["click","error"],setup:function(e,n){var i=n.attrs,r=n.slots,l=n.emit,p=B(function(){return e.prefixCls}),o=B(function(){return"".concat(p.value,"-preview")}),m=B(function(){var T={visible:void 0,onVisibleChange:function(){},getContainer:void 0};return Qe(e.preview)==="object"?mn(e.preview,T):T}),u=B(function(){var T;return(T=m.value.src)!==null&&T!==void 0?T:e.src}),h=B(function(){return e.placeholder&&e.placeholder!==!0||r.placeholder}),w=B(function(){return m.value.visible}),C=B(function(){return m.value.getContainer}),f=B(function(){return w.value!==void 0}),v=function(H,Z){var X,K;(X=(K=m.value).onVisibleChange)===null||X===void 0||X.call(K,H,Z)},d=qt(!!w.value,{value:w,onChange:v}),g=Se(d,2),y=g[0],s=g[1];oe(y,function(T,H){v(T,H)});var A=V(h.value?"loading":"normal");oe(function(){return e.src},function(){A.value=h.value?"loading":"normal"});var c=V(null),E=B(function(){return A.value==="error"}),M=ot.inject(),D=M.isPreviewGroup,P=M.setCurrent,$=M.setShowPreview,b=M.setMousePosition,x=M.registerImage,L=V(yi++),k=B(function(){return e.preview&&!E.value}),R=function(){A.value="normal"},ue=function(H){A.value="error",l("error",H)},F=function(H){if(!f.value){var Z=cn(H.target),X=Z.left,K=Z.top;D.value?(P(L.value),b({x:X,y:K})):c.value={x:X,y:K}}D.value?$(!0):s(!0),l("click",H)},te=function(){s(!1),f.value||(c.value=null)},re=V(null);oe(function(){return re},function(){A.value==="loading"&&re.value.complete&&(re.value.naturalWidth||re.value.naturalHeight)&&R()});var le=function(){};De(function(){oe([u,k],function(){if(le(),!D.value)return function(){};le=x(L.value,u.value,k.value),k.value||le()},{flush:"post",immediate:!0})}),en(function(){le()});var de=function(H){return kn(H)?H+"px":H};return function(){var T=e.prefixCls,H=e.wrapperClassName,Z=e.fallback,X=e.src,K=e.placeholder,Pe=e.wrapperStyle,he=e.rootClassName,je=i.width,Ce=i.height,Re=i.crossorigin,$e=i.decoding,Ie=i.alt,Ve=i.sizes,Fe=i.srcset,Ae=i.usemap,j=i.class,N=i.style,q=m.value,fe=q.icons,ne=q.maskClassName,ve=nt(q,hi),ce=ae(T,H,he,U({},"".concat(T,"-error"),E.value)),ye=E.value&&Z?Z:u.value,be={crossorigin:Re,decoding:$e,alt:Ie,sizes:Ve,srcset:Fe,usemap:Ae,class:ae("".concat(T,"-img"),U({},"".concat(T,"-img-placeholder"),K===!0),j),style:O({height:Ce},N)};return a(se,null,[a("div",{class:ce,onClick:k.value?F:function(On){l("click",On)},style:O({width:de(je),height:de(Ce)},Pe)},[a("img",O(O(O({},be),E.value&&Z?{src:Z}:{onLoad:R,onError:ue,src:X}),{},{ref:re}),null),A.value==="loading"&&a("div",{"aria-hidden":"true",class:"".concat(T,"-placeholder")},[K||r.placeholder&&r.placeholder()]),r.previewMask&&k.value&&a("div",{class:["".concat(T,"-mask"),ne]},[r.previewMask()])]),!D.value&&k.value&&a(fn,O(O({},ve),{},{"aria-hidden":!y.value,visible:y.value,prefixCls:o.value,onClose:te,mousePosition:c.value,src:ye,alt:Ie,getContainer:C.value,icons:fe,rootClassName:he}),null)])}}});pn.PreviewGroup=dn;const bi=pn;var wi={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 Ci=wi;function Mt(t){for(var e=1;e0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var r=t.indexOf("Edge/");return r>0?parseInt(t.substring(r+5,t.indexOf(".",r)),10):-1}let Le;function We(){We.init||(We.init=!0,Le=Sr()!==-1)}var Te={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){We(),rt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Le&&this.$el.appendChild(t),t.data="about:blank",Le||this.$el.appendChild(t)},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&&(!Le&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Or=Un();Vn("data-v-b329ee4c");const Er={class:"resize-observer",tabindex:"-1"};Fn();const Pr=Or((t,e,n,i,r,l)=>(_(),Y("div",Er)));Te.render=Pr;Te.__scopeId="data-v-b329ee4c";Te.__file="src/components/ResizeObserver.vue";function Me(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(e){return typeof e}:Me=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(t)}function $r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jt(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:{},i,r,l,p=function(m){for(var u=arguments.length,h=new Array(u>1?u-1:0),w=1;w1){var u=o.find(function(w){return w.isIntersecting});u&&(m=u)}if(r.callback){var h=m.isIntersecting&&m.intersectionRatio>=r.threshold;if(h===r.oldResult)return;r.oldResult=h,r.callback(h,m)}},this.options.intersection),rt(function(){r.observer&&r.observer.observe(r.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}}]),t}();function wn(t,e,n){var i=e.value;if(i)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 r=new Nr(t,i,n);t._vue_visibilityState=r}}function Br(t,e,n){var i=e.value,r=e.oldValue;if(!bn(i,r)){var l=t._vue_visibilityState;if(!i){Cn(t);return}l?l.createObserver(i,n):wn(t,{value:i},n)}}function Cn(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var Qr={beforeMount:wn,updated:Br,unmounted:Cn},Dr={itemsLimit:1e3},Tr=/(auto|scroll)/;function An(t,e){return t.parentNode===null?e:An(t.parentNode,e.concat([t]))}var He=function(e,n){return getComputedStyle(e,null).getPropertyValue(n)},jr=function(e){return He(e,"overflow")+He(e,"overflow-y")+He(e,"overflow-x")},Rr=function(e){return Tr.test(jr(e))};function Zt(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var e=An(t.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,e,n,i,r){const l=Hn({id:Hr++,index:e,used:!0,key:i,type:r}),p=Gn({item:n,position:0,nr:l});return t.push(p),p},unuseView(t,e=!1){const n=this.$_unusedViews,i=t.nr.type;let r=n.get(i);r||(r=[],n.set(i,r)),r.push(t),e||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(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(t,e){this.ready&&(t||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,e=!1){const n=this.itemSize,i=this.gridItems||1,r=this.itemSecondarySize||n,l=this.$_computedMinItemSize,p=this.typeField,o=this.simpleArray?null:this.keyField,m=this.items,u=m.length,h=this.sizes,w=this.$_views,C=this.$_unusedViews,f=this.pool,v=this.itemIndexByKey;let d,g,y,s,A;if(!u)d=g=s=A=y=0;else if(this.$_prerender)d=s=0,g=A=Math.min(this.prerender,m.length),y=null;else{const b=this.getScroll();if(e){let k=b.start-this.$_lastUpdateScrollPosition;if(k<0&&(k=-k),n===null&&kb.start&&(ue=F),F=~~((R+ue)/2);while(F!==te);for(F<0&&(F=0),d=F,y=h[u-1].accumulator,g=F;gu&&(g=u)),s=d;su&&(g=u),s<0&&(s=0),A>u&&(A=u),y=Math.ceil(u/i)*n}}g-d>Dr.itemsLimit&&this.itemsLimitError(),this.totalSize=y;let c;const E=d<=this.$_endIndex&&g>=this.$_startIndex;if(E)for(let b=0,x=f.length;b=g)&&this.unuseView(c));const M=E?null:new Map;let D,P,$;for(let b=d;b=L.length)&&(c=this.addView(f,b,D,x,P),this.unuseView(c,!0),L=C.get(P)),c=L[$],M.set(P,$+1)),w.delete(c.nr.key),c.nr.used=!0,c.nr.index=b,c.nr.key=x,c.nr.type=P,w.set(x,c),k=!0;else if(!c.nr.used&&(c.nr.used=!0,c.nr.index=b,k=!0,L)){const R=L.indexOf(c);R!==-1&&L.splice(R,1)}c.item=D,k&&(b===m.length-1&&this.$emit("scroll-end"),b===0&&this.$emit("scroll-start")),n===null?(c.position=h[b-1].accumulator,c.offset=0):(c.position=Math.floor(b/i)*n,c.offset=b%i*r)}return this.$_startIndex=d,this.$_endIndex=g,this.emitUpdate&&this.$emit("update",d,g,s,A),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:E}},getListenerTarget(){let t=Zt(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:e}=this,n=e==="vertical";let i;if(this.pageMode){const r=t.getBoundingClientRect(),l=n?r.height:r.width;let p=-(n?r.top:r.left),o=n?window.innerHeight:window.innerWidth;p<0&&(o+=p,p=0),p+o>l&&(o=l-p),i={start:p,end:p+o}}else n?i={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:i={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Ke?{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(t){let e;const n=this.gridItems||1;this.itemSize===null?e=t>0?this.sizes[t-1].accumulator:0:e=Math.floor(t/n)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(t){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,r;if(this.pageMode){const l=Zt(this.$el),p=l.tagName==="HTML"?0:l[e.scroll],o=l.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[e.start]-o[e.start];n=l,i=e.scroll,r=t+p+u}else n=this.$el,i=e.scroll,r=t;n[i]=r},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((t,e)=>t.nr.index-e.nr.index)}}};const Gr={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Yr={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Jr(t,e,n,i,r,l){const p=Yn("ResizeObserver"),o=Jn("observe-visibility");return Wn((_(),G("div",{class:Ee(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:e[0]||(e[0]=(...m)=>l.handleScroll&&l.handleScroll(...m))},[t.$slots.before?(_(),G("div",Gr,[_e(t.$slots,"before")],512)):ie("v-if",!0),(_(),Y(_t(n.listTag),{ref:"wrapper",style:Kn({[t.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Ee(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:S(()=>[(_(!0),G(se,null,lt(r.pool,m=>(_(),Y(_t(n.itemTag),Zn({key:m.nr.id,style:r.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${m.position}px) translate${t.direction==="vertical"?"X":"Y"}(${m.offset}px)`,width:n.gridItems?`${t.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${t.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&r.hoverKey===m.nr.key}]]},Xn(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=m.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:S(()=>[_e(t.$slots,"default",{item:m.item,index:m.nr.index,active:m.nr.used})]),_:2},1040,["style","class"]))),128)),_e(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(_(),G("div",Yr,[_e(t.$slots,"after")],512)):ie("v-if",!0),a(p,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[o,l.handleVisibilityChange]])}Sn.render=Jr;Sn.__file="src/components/RecycleScroller.vue";const qe=ee({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(t,{emit:e}){const n=t,i=at(),r=B(()=>{var l;return(((l=i.conf)==null?void 0:l.all_custom_tags)??[]).reduce((p,o)=>[...p,{...o,selected:!!n.selectedTag.find(m=>m.id===o.id)}],[])});return(l,p)=>{const o=nn,m=qn,u=ei,h=rn;return _(),Y(h,{onClick:p[0]||(p[0]=w=>e("contextMenuClick",w,l.file,l.idx))},{default:S(()=>[a(o,{key:"deleteFiles",disabled:l.disableDelete},{default:S(()=>[Q(I(l.$t("deleteSelected")),1)]),_:1},8,["disabled"]),l.file.type==="dir"?(_(),G(se,{key:0},[a(o,{key:"openInNewTab"},{default:S(()=>[Q(I(l.$t("openInNewTab")),1)]),_:1}),a(o,{key:"openOnTheRight"},{default:S(()=>[Q(I(l.$t("openOnTheRight")),1)]),_:1}),a(o,{key:"openWithWalkMode"},{default:S(()=>[Q(I(l.$t("openWithWalkMode")),1)]),_:1})],64)):ie("",!0),l.file.type==="file"?(_(),G(se,{key:1},[z(tn)(l.file.name)?(_(),G(se,{key:0},[a(o,{key:"viewGenInfo"},{default:S(()=>[Q(I(l.$t("viewGenerationInfo")),1)]),_:1}),a(m),a(o,{key:"send2txt2img"},{default:S(()=>[Q(I(l.$t("sendToTxt2img")),1)]),_:1}),a(o,{key:"send2img2img"},{default:S(()=>[Q(I(l.$t("sendToImg2img")),1)]),_:1}),a(o,{key:"send2inpaint"},{default:S(()=>[Q(I(l.$t("sendToInpaint")),1)]),_:1}),a(o,{key:"send2extras"},{default:S(()=>[Q(I(l.$t("sendToExtraFeatures")),1)]),_:1}),a(u,{key:"send2controlnet",title:l.$t("sendToControlNet")},{default:S(()=>[a(o,{key:"send2controlnet-txt2img"},{default:S(()=>[Q(I(l.$t("t2i")),1)]),_:1}),a(o,{key:"send2controlnet-img2img"},{default:S(()=>[Q(I(l.$t("i2i")),1)]),_:1})]),_:1},8,["title"]),a(o,{key:"send2savedDir"},{default:S(()=>[Q(I(l.$t("send2savedDir")),1)]),_:1}),a(m),a(u,{key:"toggle-tag",title:l.$t("toggleTag")},{default:S(()=>[(_(!0),G(se,null,lt(r.value,w=>(_(),Y(o,{key:`toggle-tag-${w.id}`},{default:S(()=>[Q(I(w.name)+" ",1),w.selected?(_(),Y(z(hn),{key:0})):(_(),Y(z(yn),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),a(o,{key:"openWithLocalFileBrowser"},{default:S(()=>[Q(I(l.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):ie("",!0),a(o,{key:"previewInNewWindow"},{default:S(()=>[Q(I(l.$t("previewInNewWindow")),1)]),_:1}),a(o,{key:"download"},{default:S(()=>[Q(I(l.$t("download")),1)]),_:1}),a(o,{key:"copyPreviewUrl"},{default:S(()=>[Q(I(l.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):ie("",!0)]),_:1})}}}),Wr=["data-idx"],Zr={key:0},Xr={class:"more"},Kr={key:1,class:"preview-icon-wrap"},qr={class:"profile"},el={class:"name line-clamp-1"},tl={class:"basic-info"},nl={class:"name line-clamp-1"},il={class:"basic-info"},rl=ee({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},viewMode:{default:"previewGrid"},fullScreenPreviewImageUrl:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","previewVisibleChange","contextMenuClick"],setup(t,{emit:e}){const n=t,i=at(),r=V([]),l=()=>{var u;((u=n==null?void 0:n.file)==null?void 0:u.type)==="file"&&p.pushAction(()=>on(n.file.fullpath)).res.then(h=>{r.value=h})},p=ln(),o=B(()=>n.viewMode==="previewGrid"?[i.gridThumbnailSize,i.gridThumbnailSize].join("x"):[i.largeGridThumbnailSize,i.largeGridThumbnailSize].join("x")),m=B(()=>i.enableThumbnail?oi(n.file,o.value):Je(n.file));return(u,h)=>{const w=ge,C=Di;return _(),Y(w,{trigger:["contextmenu"],visible:z(i).longPressOpenContextMenu?typeof u.idx=="number"&&u.showMenuIdx===u.idx:void 0,"onUpdate:visible":h[4]||(h[4]=f=>typeof u.idx=="number"&&e("update:showMenuIdx",f?u.idx:-1))},{overlay:S(()=>[a(qe,{file:u.file,idx:u.idx,"selected-tag":r.value,onContextMenuClick:h[3]||(h[3]=(f,v,d)=>e("contextMenuClick",f,v,d))},null,8,["file","idx","selected-tag"])]),default:S(()=>[(_(),G("li",{class:Ee(["file file-item-trigger",{clickable:u.file.type==="dir",selected:u.selected,grid:u.viewMode==="previewGrid"||u.viewMode==="largePreviewGrid","large-grid":u.viewMode==="largePreviewGrid"}]),"data-idx":u.idx,key:u.file.name,draggable:"true",onDragstart:h[1]||(h[1]=f=>e("dragstart",f,u.idx)),onContextmenu:l,onClickCapture:h[2]||(h[2]=f=>e("fileItemClick",f,u.file,u.idx))},[u.viewMode!=="detailList"?(_(),G("div",Zr,[a(w,null,{overlay:S(()=>[a(qe,{file:u.file,idx:u.idx,"selected-tag":r.value,onContextMenuClick:h[0]||(h[0]=(f,v,d)=>e("contextMenuClick",f,v,d))},null,8,["file","idx","selected-tag"])]),default:S(()=>[J("div",Xr,[a(z(tt))])]),_:1}),z(tn)(u.file.name)?(_(),Y(C,{key:u.file.fullpath,class:Ee(`idx-${u.idx}`),src:m.value,fallback:z(Xi),preview:{src:u.fullScreenPreviewImageUrl,onVisibleChange:(f,v)=>e("previewVisibleChange",f,v)}},null,8,["class","src","fallback","preview"])):(_(),G("div",Kr,[u.file.type==="file"?(_(),Y(z(Dt),{key:0,class:"icon center"})):(_(),Y(z(jt),{key:1,class:"icon center"}))])),J("div",qr,[J("div",el,I(u.file.name),1),J("div",tl,[J("div",null,I(u.file.size),1),J("div",null,I(u.file.date),1)])])])):(_(),G(se,{key:1},[u.file.type==="file"?(_(),Y(z(Dt),{key:0,class:"icon"})):(_(),Y(z(jt),{key:1,class:"icon"})),J("div",nl,I(u.file.name),1),J("div",il,[J("div",null,I(u.file.size),1),J("div",null,I(u.file.date),1)])],64))],42,Wr))]),_:1},8,["visible"])}}});const wl=an(rl,[["__scopeId","data-v-be32f69f"]]);function ll(t,e,n,i){const r={x:0,y:0};let l=0,p=0,o=typeof(i==null?void 0:i.width)=="number"?i.width:0,m=typeof(i==null?void 0:i.height)=="number"?i.height:0,u=typeof(i==null?void 0:i.left)=="number"?i.left:0,h=typeof(i==null?void 0:i.top)=="number"?i.top:0,w=!1;const C=s=>{s.stopPropagation(),s.preventDefault(),!(!t.value||!e.value)&&(l=s instanceof MouseEvent?s.clientX:s.touches[0].clientX,p=s instanceof MouseEvent?s.clientY:s.touches[0].clientY,o=t.value.offsetWidth,m=t.value.offsetHeight,r.x=e.value.offsetLeft,r.y=e.value.offsetTop,document.documentElement.addEventListener("mousemove",f),document.documentElement.addEventListener("touchmove",f),document.documentElement.addEventListener("mouseup",v),document.documentElement.addEventListener("touchend",v))},f=s=>{if(!t.value||!e.value)return;const A=o+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-l),c=m+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-p),E=r.x+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-l),M=r.y+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-p);t.value.style.width=`${A}px`,t.value.style.height=`${c}px`,e.value.style.left=`${E}px`,e.value.style.top=`${M}px`,i!=null&&i.onResize&&i.onResize(A,c)},v=()=>{document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v)},d=s=>{s.stopPropagation(),s.preventDefault(),!(!t.value||!n.value)&&(w=!0,u=t.value.offsetLeft,h=t.value.offsetTop,l=s instanceof MouseEvent?s.clientX:s.touches[0].clientX,p=s instanceof MouseEvent?s.clientY:s.touches[0].clientY,document.documentElement.addEventListener("mousemove",g),document.documentElement.addEventListener("touchmove",g),document.documentElement.addEventListener("mouseup",y),document.documentElement.addEventListener("touchend",y))},g=s=>{if(!t.value||!n.value||!w)return;const A=u+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-l),c=h+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-p);t.value.style.left=`${A}px`,t.value.style.top=`${c}px`,i!=null&&i.onDrag&&i.onDrag(A,c)},y=()=>{w=!1,document.documentElement.removeEventListener("mousemove",g),document.documentElement.removeEventListener("touchmove",g),document.documentElement.removeEventListener("mouseup",y),document.documentElement.removeEventListener("touchend",y)};return De(()=>{!t.value||!i||(typeof i.width=="number"&&(t.value.style.width=`${i.width}px`),typeof i.height=="number"&&(t.value.style.height=`${i.height}px`),typeof i.left=="number"&&(t.value.style.left=`${i.left}px`),typeof i.top=="number"&&(t.value.style.top=`${i.top}px`))}),ti(()=>{document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v),document.documentElement.removeEventListener("mousemove",g),document.documentElement.removeEventListener("touchmove",g),document.documentElement.removeEventListener("mouseup",y),document.documentElement.removeEventListener("touchend",y)}),oe(()=>[t.value,e.value,n.value],([s,A,c])=>{s&&A&&(A.addEventListener("mousedown",C),A.addEventListener("touchstart",C)),s&&c&&(c.addEventListener("mousedown",d),c.addEventListener("touchstart",d))}),{handleResizeMouseDown:C,handleDragMouseDown:d}}const al={class:"container"},ol={class:"action-bar"},sl={key:0,class:"icon",style:{cursor:"pointer"}},ul={key:0,"flex-placeholder":""},cl={key:1,class:"action-bar"},dl={key:0,class:"gen-info"},fl=ee({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(t,{emit:e}){const n=t,i=at(),r=V(),l=V([]),p=B(()=>{var v;return(((v=i.conf)==null?void 0:v.all_custom_tags)??[]).reduce((d,g)=>[...d,{...g,selected:!!l.value.find(y=>y.id===g.id)}],[])}),o=ln(),m=V("");oe(()=>{var v;return(v=n==null?void 0:n.file)==null?void 0:v.fullpath},async v=>{v&&(o.tasks.forEach(d=>d.cancel()),o.pushAction(()=>ni(v)).res.then(d=>{m.value=d}))},{immediate:!0});const u=v=>{v&&o.pushAction(()=>on(n.file.fullpath)).res.then(d=>{l.value=d})},h=V(),w=V(),C=ii("fullScreenContextMenu.vue-drag",{left:100,top:100,width:512,height:384,expanded:!0});ll(r,h,w,{...C.value,onDrag:Ye(function(v,d){C.value={...C.value,left:v,top:d}},300),onResize:Ye(function(v,d){C.value={...C.value,width:v,height:d}},300)});function f(v){return v.parentNode}return(v,d)=>{const g=ge,y=ze,s=nn,A=rn;return _(),G("div",{ref_key:"el",ref:r,class:Ee(["full-screen-menu",{"unset-size":!z(C).expanded}]),onWheelCapture:d[5]||(d[5]=ai(()=>{},["stop"]))},[J("div",al,[J("div",ol,[J("div",{ref_key:"dragHandle",ref:w,class:"icon",style:{cursor:"grab"}},[a(z(lr))],512),J("div",{class:"icon",style:{cursor:"pointer"},onClick:d[0]||(d[0]=c=>z(C).expanded=!z(C).expanded)},[z(C).expanded?(_(),Y(z(ur),{key:0})):(_(),Y(z(vr),{key:1}))]),a(g,{onVisibleChange:u,"get-popup-container":f},{overlay:S(()=>[a(qe,{file:v.file,idx:v.idx,"selected-tag":l.value,"disable-delete":z(Je)(v.file)===z(i).fullscreenPreviewInitialUrl,onContextMenuClick:d[1]||(d[1]=(c,E,M)=>e("contextMenuClick",c,E,M))},null,8,["file","idx","selected-tag","disable-delete"])]),default:S(()=>[z(C).expanded?ie("",!0):(_(),G("div",sl,[a(z(tt))]))]),_:1}),z(C).expanded?(_(),G("div",ul)):ie("",!0),z(C).expanded?(_(),G("div",cl,[a(g,{trigger:["hover"],"get-popup-container":f,onVisibleChange:u},{overlay:S(()=>[a(A,{onClick:d[2]||(d[2]=c=>e("contextMenuClick",c,v.file,v.idx))},{default:S(()=>[(_(!0),G(se,null,lt(p.value,c=>(_(),Y(s,{key:`toggle-tag-${c.id}`},{default:S(()=>[Q(I(c.name)+" ",1),c.selected?(_(),Y(z(hn),{key:0})):(_(),Y(z(yn),{key:1}))]),_:2},1024))),128))]),_:1})]),default:S(()=>[a(y,null,{default:S(()=>[Q(I(v.$t("toggleTag")),1)]),_:1})]),_:1}),a(g,{trigger:["hover"],"get-popup-container":f},{overlay:S(()=>[a(A,{onClick:d[3]||(d[3]=c=>e("contextMenuClick",c,v.file,v.idx))},{default:S(()=>[a(s,{key:"send2txt2img"},{default:S(()=>[Q(I(v.$t("sendToTxt2img")),1)]),_:1}),a(s,{key:"send2img2img"},{default:S(()=>[Q(I(v.$t("sendToImg2img")),1)]),_:1}),a(s,{key:"send2inpaint"},{default:S(()=>[Q(I(v.$t("sendToInpaint")),1)]),_:1}),a(s,{key:"send2extras"},{default:S(()=>[Q(I(v.$t("sendToExtraFeatures")),1)]),_:1}),a(s,{key:"send2savedDir"},{default:S(()=>[Q(I(v.$t("send2savedDir")),1)]),_:1}),a(s,{key:"deleteFiles",disabled:z(Je)(v.file)===z(i).fullscreenPreviewInitialUrl},{default:S(()=>[Q(I(v.$t("deleteSelected")),1)]),_:1},8,["disabled"]),a(s,{key:"previewInNewWindow"},{default:S(()=>[Q(I(v.$t("previewInNewWindow")),1)]),_:1}),a(s,{key:"download"},{default:S(()=>[Q(I(v.$t("download")),1)]),_:1}),a(s,{key:"copyPreviewUrl"},{default:S(()=>[Q(I(v.$t("copySourceFilePreviewLink")),1)]),_:1})]),_:1})]),default:S(()=>[a(y,null,{default:S(()=>[Q(I(z(ri)("openContextMenu")),1)]),_:1})]),_:1}),a(y,{onClick:d[4]||(d[4]=c=>z(li)(m.value))},{default:S(()=>[Q(I(v.$t("copyPrompt")),1)]),_:1})])):ie("",!0)]),z(C).expanded?(_(),G("div",dl,I(m.value),1)):ie("",!0)]),z(C).expanded?(_(),G("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:h},[a(z(tr))],512)):ie("",!0)],34)}}});const Cl=an(fl,[["__scopeId","data-v-10ae8e66"]]);export{ge as D,yl as L,bl as R,hl as S,Sn as a,Cl as b,wl as f,gl as s};