diff --git a/javascript/index.js b/javascript/index.js index 5de29e2..a5d347b 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -13,7 +13,7 @@ Promise.resolve().then(async () => { Infinite Image Browsing - + diff --git a/vue/dist/assets/ImgSliPagePane-bb445162.js b/vue/dist/assets/ImgSliPagePane-0e185c59.js similarity index 74% rename from vue/dist/assets/ImgSliPagePane-bb445162.js rename to vue/dist/assets/ImgSliPagePane-0e185c59.js index f9cde5e..67381b1 100644 --- a/vue/dist/assets/ImgSliPagePane-bb445162.js +++ b/vue/dist/assets/ImgSliPagePane-0e185c59.js @@ -1 +1 @@ -import{d as t,o as a,m as r,cI as n}from"./index-bd9cfb84.js";const p=t({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(o){return(e,s)=>(a(),r(n,{left:e.left,right:e.right},null,8,["left","right"]))}});export{p as default}; +import{d as t,o as a,m as r,cI as n}from"./index-cb943354.js";const p=t({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(o){return(e,s)=>(a(),r(n,{left:e.left,right:e.right},null,8,["left","right"]))}});export{p as default}; diff --git a/vue/dist/assets/MatchedImageGrid-5aba792b.js b/vue/dist/assets/MatchedImageGrid-e7de9de6.js similarity index 93% rename from vue/dist/assets/MatchedImageGrid-5aba792b.js rename to vue/dist/assets/MatchedImageGrid-e7de9de6.js index a55f221..4908130 100644 --- a/vue/dist/assets/MatchedImageGrid-5aba792b.js +++ b/vue/dist/assets/MatchedImageGrid-e7de9de6.js @@ -1 +1 @@ -import{d as q,l as Q,ax as j,o as r,y as _,c as s,n as a,r as e,s as h,p as y,t as W,v as b,x as X,m as M,L as H,E as u,N as S,Q as J,R as K,X as Y}from"./index-bd9cfb84.js";import{h as Z,i as ee,L as te,R as ie,j as le,S as se}from"./fullScreenContextMenu-c82c54b8.js";import{g as ne}from"./db-a47df277.js";import{u as ae}from"./hook-1cb05846.js";import"./shortcut-6308494d.js";const oe={class:"hint"},re={key:1,class:"preview-switch"},de=q({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(T){const m=T,{queue:p,images:i,onContextMenuClickU:g,stackViewEl:V,previewIdx:n,previewing:v,onPreviewVisibleChange:D,previewImgMove:f,canPreview:w,itemSize:I,gridItems:z,showGenInfo:o,imageGenInfo:k,q:F,multiSelectedIdxs:$,onFileItemClick:B,scroller:x,showMenuIdx:d,onFileDragStart:E,onFileDragEnd:G,cellWidth:N,onScroll:R,updateImageTag:A}=ae();return Q(()=>m.selectedTagIds,async()=>{const{res:c}=p.pushAction(()=>ne(m.selectedTagIds));i.value=await c,await j(),A(),x.value.scrollToItem(0)},{immediate:!0}),(c,t)=>{const P=J,U=K,L=se;return r(),_("div",{class:"container",ref_key:"stackViewEl",ref:V},[s(L,{size:"large",spinning:!e(p).isIdle},{default:a(()=>[s(U,{visible:e(o),"onUpdate:visible":t[1]||(t[1]=l=>h(o)?o.value=l:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=l=>o.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(P,{active:"",loading:!e(F).isIdle},{default:a(()=>[y("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=l=>e(W)(e(k)))},[y("div",oe,b(c.$t("doubleClickToCopy")),1),X(" "+b(e(k)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(i)?(r(),M(e(Z),{key:0,ref_key:"scroller",ref:x,class:"file-list",items:e(i),"item-size":e(I).first,"key-field":"fullpath","item-secondary-size":e(I).second,gridItems:e(z),onScroll:e(R)},{default:a(({item:l,index:C})=>[s(ee,{idx:C,file:l,"cell-width":e(N),"show-menu-idx":e(d),"onUpdate:showMenuIdx":t[3]||(t[3]=O=>h(d)?d.value=O:null),onDragstart:e(E),onDragend:e(G),onFileItemClick:e(B),"full-screen-preview-image-url":e(i)[e(n)]?e(H)(e(i)[e(n)]):"",selected:e($).includes(C),onContextMenuClick:e(g),onPreviewVisibleChange:e(D)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):u("",!0),e(v)?(r(),_("div",re,[s(e(te),{onClick:t[4]||(t[4]=l=>e(f)("prev")),class:S({disable:!e(w)("prev")})},null,8,["class"]),s(e(ie),{onClick:t[5]||(t[5]=l=>e(f)("next")),class:S({disable:!e(w)("next")})},null,8,["class"])])):u("",!0)]),_:1},8,["spinning"]),e(v)&&e(i)&&e(i)[e(n)]?(r(),M(le,{key:0,file:e(i)[e(n)],idx:e(n),onContextMenuClick:e(g)},null,8,["file","idx","onContextMenuClick"])):u("",!0)],512)}}});const ve=Y(de,[["__scopeId","data-v-3c251729"]]);export{ve as default}; +import{d as q,l as Q,ax as j,o as r,y as _,c as s,n as a,r as e,s as h,p as y,t as W,v as b,x as X,m as M,L as H,E as u,N as S,Q as J,R as K,X as Y}from"./index-cb943354.js";import{h as Z,i as ee,L as te,R as ie,j as le,S as se}from"./fullScreenContextMenu-8736e356.js";import{g as ne}from"./db-34982abd.js";import{u as ae}from"./hook-9a09016a.js";import"./shortcut-1308f2ef.js";const oe={class:"hint"},re={key:1,class:"preview-switch"},de=q({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(T){const m=T,{queue:p,images:i,onContextMenuClickU:g,stackViewEl:V,previewIdx:n,previewing:v,onPreviewVisibleChange:D,previewImgMove:f,canPreview:w,itemSize:I,gridItems:z,showGenInfo:o,imageGenInfo:k,q:F,multiSelectedIdxs:$,onFileItemClick:B,scroller:x,showMenuIdx:d,onFileDragStart:E,onFileDragEnd:G,cellWidth:N,onScroll:R,updateImageTag:A}=ae();return Q(()=>m.selectedTagIds,async()=>{const{res:c}=p.pushAction(()=>ne(m.selectedTagIds));i.value=await c,await j(),A(),x.value.scrollToItem(0)},{immediate:!0}),(c,t)=>{const P=J,U=K,L=se;return r(),_("div",{class:"container",ref_key:"stackViewEl",ref:V},[s(L,{size:"large",spinning:!e(p).isIdle},{default:a(()=>[s(U,{visible:e(o),"onUpdate:visible":t[1]||(t[1]=l=>h(o)?o.value=l:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=l=>o.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(P,{active:"",loading:!e(F).isIdle},{default:a(()=>[y("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=l=>e(W)(e(k)))},[y("div",oe,b(c.$t("doubleClickToCopy")),1),X(" "+b(e(k)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(i)?(r(),M(e(Z),{key:0,ref_key:"scroller",ref:x,class:"file-list",items:e(i),"item-size":e(I).first,"key-field":"fullpath","item-secondary-size":e(I).second,gridItems:e(z),onScroll:e(R)},{default:a(({item:l,index:C})=>[s(ee,{idx:C,file:l,"cell-width":e(N),"show-menu-idx":e(d),"onUpdate:showMenuIdx":t[3]||(t[3]=O=>h(d)?d.value=O:null),onDragstart:e(E),onDragend:e(G),onFileItemClick:e(B),"full-screen-preview-image-url":e(i)[e(n)]?e(H)(e(i)[e(n)]):"",selected:e($).includes(C),onContextMenuClick:e(g),onPreviewVisibleChange:e(D)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):u("",!0),e(v)?(r(),_("div",re,[s(e(te),{onClick:t[4]||(t[4]=l=>e(f)("prev")),class:S({disable:!e(w)("prev")})},null,8,["class"]),s(e(ie),{onClick:t[5]||(t[5]=l=>e(f)("next")),class:S({disable:!e(w)("next")})},null,8,["class"])])):u("",!0)]),_:1},8,["spinning"]),e(v)&&e(i)&&e(i)[e(n)]?(r(),M(le,{key:0,file:e(i)[e(n)],idx:e(n),onContextMenuClick:e(g)},null,8,["file","idx","onContextMenuClick"])):u("",!0)],512)}}});const ve=Y(de,[["__scopeId","data-v-3c251729"]]);export{ve as default}; diff --git a/vue/dist/assets/SubstrSearch-e4de2d60.js b/vue/dist/assets/SubstrSearch-d7a02eb2.js similarity index 93% rename from vue/dist/assets/SubstrSearch-e4de2d60.js rename to vue/dist/assets/SubstrSearch-d7a02eb2.js index 62a14da..9deb82f 100644 --- a/vue/dist/assets/SubstrSearch-e4de2d60.js +++ b/vue/dist/assets/SubstrSearch-d7a02eb2.js @@ -1 +1 @@ -import{d as Y,$,aw as Z,bQ as ee,bP as B,o,y as k,c as r,r as e,bT as ae,m,n as d,x as w,v,E as f,s as V,p as A,t as ne,L as te,N as E,ax as le,ar as se,ai as ie,U as oe,V as re,Q as de,R as ue,X as ce}from"./index-bd9cfb84.js";import{h as pe,i as me,L as ve,R as fe,j as ge,S as ke}from"./fullScreenContextMenu-c82c54b8.js";/* empty css */import{b as T,c as we,e as ye,u as Ie}from"./db-a47df277.js";import{u as xe}from"./hook-1cb05846.js";import"./shortcut-6308494d.js";const be={key:0,class:"search-bar"},Ce={class:"hint"},he={key:1,class:"preview-switch"},_e=Y({__name:"SubstrSearch",setup(Se){const{queue:s,images:t,onContextMenuClickU:y,stackViewEl:U,previewIdx:u,previewing:I,onPreviewVisibleChange:F,previewImgMove:x,canPreview:b,itemSize:C,gridItems:R,showGenInfo:c,imageGenInfo:h,q:N,multiSelectedIdxs:P,onFileItemClick:L,scroller:_,showMenuIdx:g,onFileDragStart:q,onFileDragEnd:G,cellWidth:K,onScroll:O,updateImageTag:Q}=xe(),p=$(""),n=$();Z(async()=>{n.value=await T(),n.value.img_count&&n.value.expired&&S()});const S=ee(()=>s.pushAction(async()=>(await Ie(),n.value=await T(),n.value)).res),M=async()=>{t.value=await s.pushAction(()=>ye(p.value)).res,await le(),Q(),_.value.scrollToItem(0),t.value.length||se.info(ie("fuzzy-search-noResults"))};return B("returnToIIB",async()=>{const i=await s.pushAction(we).res;n.value.expired=i.expired}),B("searchIndexExpired",()=>n.value&&(n.value.expired=!0)),(i,a)=>{const j=oe,z=re,H=de,W=ue,X=ke;return o(),k("div",{class:"container",ref_key:"stackViewEl",ref:U},[n.value?(o(),k("div",be,[r(j,{value:p.value,"onUpdate:value":a[0]||(a[0]=l=>p.value=l),placeholder:i.$t("fuzzy-search-placeholder"),disabled:!e(s).isIdle,onKeydown:ae(M,["enter"])},null,8,["value","placeholder","disabled","onKeydown"]),n.value.expired||!n.value.img_count?(o(),m(z,{key:0,onClick:e(S),loading:!e(s).isIdle,type:"primary"},{default:d(()=>[w(v(n.value.img_count===0?i.$t("generateIndexHint"):i.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(o(),m(z,{key:1,type:"primary",onClick:M,loading:!e(s).isIdle,disabled:!p.value},{default:d(()=>[w(v(i.$t("search")),1)]),_:1},8,["loading","disabled"]))])):f("",!0),r(X,{size:"large",spinning:!e(s).isIdle},{default:d(()=>[r(W,{visible:e(c),"onUpdate:visible":a[2]||(a[2]=l=>V(c)?c.value=l:null),width:"70vw","mask-closable":"",onOk:a[3]||(a[3]=l=>c.value=!1)},{cancelText:d(()=>[]),default:d(()=>[r(H,{active:"",loading:!e(N).isIdle},{default:d(()=>[A("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:a[1]||(a[1]=l=>e(ne)(e(h)))},[A("div",Ce,v(i.$t("doubleClickToCopy")),1),w(" "+v(e(h)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(t)?(o(),m(e(pe),{key:0,ref_key:"scroller",ref:_,class:"file-list",items:e(t),"item-size":e(C).first,"key-field":"fullpath","item-secondary-size":e(C).second,gridItems:e(R),onScroll:e(O)},{default:d(({item:l,index:D})=>[r(me,{idx:D,file:l,"show-menu-idx":e(g),"onUpdate:showMenuIdx":a[4]||(a[4]=J=>V(g)?g.value=J:null),onFileItemClick:e(L),"full-screen-preview-image-url":e(t)[e(u)]?e(te)(e(t)[e(u)]):"","cell-width":e(K),selected:e(P).includes(D),onContextMenuClick:e(y),onDragstart:e(q),onDragend:e(G),onPreviewVisibleChange:e(F)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):f("",!0),e(I)?(o(),k("div",he,[r(e(ve),{onClick:a[5]||(a[5]=l=>e(x)("prev")),class:E({disable:!e(b)("prev")})},null,8,["class"]),r(e(fe),{onClick:a[6]||(a[6]=l=>e(x)("next")),class:E({disable:!e(b)("next")})},null,8,["class"])])):f("",!0)]),_:1},8,["spinning"]),e(I)&&e(t)&&e(t)[e(u)]?(o(),m(ge,{key:1,file:e(t)[e(u)],idx:e(u),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):f("",!0)],512)}}});const Ae=ce(_e,[["__scopeId","data-v-905bf6da"]]);export{Ae as default}; +import{d as Y,$,aw as Z,bQ as ee,bP as B,o,y as k,c as r,r as e,bT as ae,m,n as d,x as w,v,E as f,s as V,p as A,t as ne,L as te,N as E,ax as le,ar as se,ai as ie,U as oe,V as re,Q as de,R as ue,X as ce}from"./index-cb943354.js";import{h as pe,i as me,L as ve,R as fe,j as ge,S as ke}from"./fullScreenContextMenu-8736e356.js";/* empty css */import{b as T,c as we,e as ye,u as Ie}from"./db-34982abd.js";import{u as xe}from"./hook-9a09016a.js";import"./shortcut-1308f2ef.js";const be={key:0,class:"search-bar"},Ce={class:"hint"},he={key:1,class:"preview-switch"},_e=Y({__name:"SubstrSearch",setup(Se){const{queue:s,images:t,onContextMenuClickU:y,stackViewEl:U,previewIdx:u,previewing:I,onPreviewVisibleChange:F,previewImgMove:x,canPreview:b,itemSize:C,gridItems:R,showGenInfo:c,imageGenInfo:h,q:N,multiSelectedIdxs:P,onFileItemClick:L,scroller:_,showMenuIdx:g,onFileDragStart:q,onFileDragEnd:G,cellWidth:K,onScroll:O,updateImageTag:Q}=xe(),p=$(""),n=$();Z(async()=>{n.value=await T(),n.value.img_count&&n.value.expired&&S()});const S=ee(()=>s.pushAction(async()=>(await Ie(),n.value=await T(),n.value)).res),M=async()=>{t.value=await s.pushAction(()=>ye(p.value)).res,await le(),Q(),_.value.scrollToItem(0),t.value.length||se.info(ie("fuzzy-search-noResults"))};return B("returnToIIB",async()=>{const i=await s.pushAction(we).res;n.value.expired=i.expired}),B("searchIndexExpired",()=>n.value&&(n.value.expired=!0)),(i,a)=>{const j=oe,z=re,H=de,W=ue,X=ke;return o(),k("div",{class:"container",ref_key:"stackViewEl",ref:U},[n.value?(o(),k("div",be,[r(j,{value:p.value,"onUpdate:value":a[0]||(a[0]=l=>p.value=l),placeholder:i.$t("fuzzy-search-placeholder"),disabled:!e(s).isIdle,onKeydown:ae(M,["enter"])},null,8,["value","placeholder","disabled","onKeydown"]),n.value.expired||!n.value.img_count?(o(),m(z,{key:0,onClick:e(S),loading:!e(s).isIdle,type:"primary"},{default:d(()=>[w(v(n.value.img_count===0?i.$t("generateIndexHint"):i.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(o(),m(z,{key:1,type:"primary",onClick:M,loading:!e(s).isIdle,disabled:!p.value},{default:d(()=>[w(v(i.$t("search")),1)]),_:1},8,["loading","disabled"]))])):f("",!0),r(X,{size:"large",spinning:!e(s).isIdle},{default:d(()=>[r(W,{visible:e(c),"onUpdate:visible":a[2]||(a[2]=l=>V(c)?c.value=l:null),width:"70vw","mask-closable":"",onOk:a[3]||(a[3]=l=>c.value=!1)},{cancelText:d(()=>[]),default:d(()=>[r(H,{active:"",loading:!e(N).isIdle},{default:d(()=>[A("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:a[1]||(a[1]=l=>e(ne)(e(h)))},[A("div",Ce,v(i.$t("doubleClickToCopy")),1),w(" "+v(e(h)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(t)?(o(),m(e(pe),{key:0,ref_key:"scroller",ref:_,class:"file-list",items:e(t),"item-size":e(C).first,"key-field":"fullpath","item-secondary-size":e(C).second,gridItems:e(R),onScroll:e(O)},{default:d(({item:l,index:D})=>[r(me,{idx:D,file:l,"show-menu-idx":e(g),"onUpdate:showMenuIdx":a[4]||(a[4]=J=>V(g)?g.value=J:null),onFileItemClick:e(L),"full-screen-preview-image-url":e(t)[e(u)]?e(te)(e(t)[e(u)]):"","cell-width":e(K),selected:e(P).includes(D),onContextMenuClick:e(y),onDragstart:e(q),onDragend:e(G),onPreviewVisibleChange:e(F)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):f("",!0),e(I)?(o(),k("div",he,[r(e(ve),{onClick:a[5]||(a[5]=l=>e(x)("prev")),class:E({disable:!e(b)("prev")})},null,8,["class"]),r(e(fe),{onClick:a[6]||(a[6]=l=>e(x)("next")),class:E({disable:!e(b)("next")})},null,8,["class"])])):f("",!0)]),_:1},8,["spinning"]),e(I)&&e(t)&&e(t)[e(u)]?(o(),m(ge,{key:1,file:e(t)[e(u)],idx:e(u),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):f("",!0)],512)}}});const Ae=ce(_e,[["__scopeId","data-v-905bf6da"]]);export{Ae as default}; diff --git a/vue/dist/assets/TagSearch-937fcdeb.js b/vue/dist/assets/TagSearch-fade4d8f.js similarity index 99% rename from vue/dist/assets/TagSearch-937fcdeb.js rename to vue/dist/assets/TagSearch-fade4d8f.js index 1d2bb61..d62911b 100644 --- a/vue/dist/assets/TagSearch-937fcdeb.js +++ b/vue/dist/assets/TagSearch-fade4d8f.js @@ -1 +1 @@ -import{P as D,Z as _e,d as ae,bq as ge,aY as be,$ as F,bH as Ce,l as xe,u as he,aj as J,a0 as Z,h as x,c as v,a as W,bI as Ie,b as Ae,f as we,bJ as ke,a3 as se,bK as Pe,a2 as $e,i as Oe,b0 as Se,bL as Be,a5 as Ee,a6 as Ke,a7 as Te,ag as Ne,aT as Re,aR as Me,bM as je,aS as De,bN as Fe,k as Ue,bO as Ve,al as Le,aw as qe,bP as oe,bQ as ze,o as C,y as S,E as q,z as Y,p as M,v as B,r as E,S as te,m as Q,n as V,x as z,A as ie,N as re,bR as Ge,q as ce,a1 as He,ak as Qe,ar as de,ai as ne,R as Je,V as ue,U as We,bS as Xe,X as Ye}from"./index-bd9cfb84.js";/* empty css *//* empty css */import{b as ve,c as Ze,d as ea,r as aa,u as ta}from"./db-a47df277.js";var na=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:D.object,expandIconPosition:D.oneOf(_e("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},me=function(){return{openAnimation:D.object,prefixCls:String,header:D.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:D.any,panelKey:D.oneOfType([D.string,D.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function fe(l){var e=l;if(!Array.isArray(e)){var t=Ae(e);e=t==="number"||t==="string"?[e]:[]}return e.map(function(s){return String(s)})}const X=ae({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:ge(na(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:be("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var s=t.attrs,c=t.slots,n=t.emit,o=F(fe(Ce([e.activeKey,e.defaultActiveKey])));xe(function(){return e.activeKey},function(){o.value=fe(e.activeKey)},{deep:!0});var f=he("collapse",e),g=f.prefixCls,P=f.direction,K=J(function(){var d=e.expandIconPosition;return d!==void 0?d:P.value==="rtl"?"right":"left"}),h=function(r){var u=e.expandIcon,y=u===void 0?c.expandIcon:u,_=y?y(r):v(Pe,{rotate:r.isActive?90:void 0},null);return v("div",null,[$e(Array.isArray(y)?_[0]:_)?se(_,{class:"".concat(g.value,"-arrow")},!1):_])},T=function(r){e.activeKey===void 0&&(o.value=r);var u=e.accordion?r[0]:r;n("update:activeKey",u),n("change",u)},$=function(r){var u=o.value;if(e.accordion)u=u[0]===r?[]:[r];else{u=Oe(u);var y=u.indexOf(r),_=y>-1;_?u.splice(y,1):u.push(r)}T(u)},j=function(r,u){var y,_,R;if(!ke(r)){var a=o.value,i=e.accordion,b=e.destroyInactivePanel,k=e.collapsible,O=e.openAnimation,I=String((y=r.key)!==null&&y!==void 0?y:u),w=r.props||{},A=w.header,p=A===void 0?(_=r.children)===null||_===void 0||(R=_.header)===null||R===void 0?void 0:R.call(_):A,G=w.headerClass,m=w.collapsible,L=w.disabled,U=!1;i?U=a[0]===I:U=a.indexOf(I)>-1;var H=m??k;(L||L==="")&&(H="disabled");var ye={key:I,panelKey:I,header:p,headerClass:G,isActive:U,prefixCls:g.value,destroyInactivePanel:b,openAnimation:O,accordion:i,onItemClick:H==="disabled"?null:$,expandIcon:h,collapsible:H};return se(r,ye)}},N=function(){var r;return we((r=c.default)===null||r===void 0?void 0:r.call(c)).map(j)};return function(){var d,r=e.accordion,u=e.bordered,y=e.ghost,_=Z((d={},x(d,g.value,!0),x(d,"".concat(g.value,"-borderless"),!u),x(d,"".concat(g.value,"-icon-position-").concat(K.value),!0),x(d,"".concat(g.value,"-rtl"),P.value==="rtl"),x(d,"".concat(g.value,"-ghost"),!!y),x(d,s.class,!!s.class),d));return v("div",W(W({class:_},Ie(s)),{},{style:s.style,role:r?"tablist":null}),[N()])}}}),la=ae({compatConfig:{MODE:3},name:"PanelContent",props:me(),setup:function(e,t){var s=t.slots,c=F(!1);return Se(function(){(e.isActive||e.forceRender)&&(c.value=!0)}),function(){var n,o;if(!c.value)return null;var f=e.prefixCls,g=e.isActive,P=e.role;return v("div",{ref:F,class:Z("".concat(f,"-content"),(n={},x(n,"".concat(f,"-content-active"),g),x(n,"".concat(f,"-content-inactive"),!g),n)),role:P},[v("div",{class:"".concat(f,"-content-box")},[(o=s.default)===null||o===void 0?void 0:o.call(s)])])}}}),ee=ae({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:ge(me(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var s=t.slots,c=t.emit,n=t.attrs;Be(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var o=he("collapse",e),f=o.prefixCls,g=function(){c("itemClick",e.panelKey)},P=function(h){(h.key==="Enter"||h.keyCode===13||h.which===13)&&g()};return function(){var K,h,T,$,j=e.header,N=j===void 0?(K=s.header)===null||K===void 0?void 0:K.call(s):j,d=e.headerClass,r=e.isActive,u=e.showArrow,y=e.destroyInactivePanel,_=e.accordion,R=e.forceRender,a=e.openAnimation,i=e.expandIcon,b=i===void 0?s.expandIcon:i,k=e.extra,O=k===void 0?(h=s.extra)===null||h===void 0?void 0:h.call(s):k,I=e.collapsible,w=I==="disabled",A=f.value,p=Z("".concat(A,"-header"),(T={},x(T,d,d),x(T,"".concat(A,"-header-collapsible-only"),I==="header"),T)),G=Z(($={},x($,"".concat(A,"-item"),!0),x($,"".concat(A,"-item-active"),r),x($,"".concat(A,"-item-disabled"),w),x($,"".concat(A,"-no-arrow"),!u),x($,"".concat(n.class),!!n.class),$)),m=v("i",{class:"arrow"},null);u&&typeof b=="function"&&(m=b(e));var L=Ee(v(la,{prefixCls:A,isActive:r,forceRender:R,role:_?"tabpanel":null},{default:s.default}),[[Ke,r]]),U=W({appear:!1,css:!1},a);return v("div",W(W({},n),{},{class:G}),[v("div",{class:p,onClick:function(){return I!=="header"&&g()},role:_?"tab":"button",tabindex:w?-1:0,"aria-expanded":r,onKeypress:P},[u&&m,I==="header"?v("span",{onClick:g,class:"".concat(A,"-header-text")},[N]):N,O&&v("div",{class:"".concat(A,"-extra")},[O])]),v(Te,U,{default:function(){return[!y||r?L:null]}})])}}});X.Panel=ee;X.install=function(l){return l.component(X.name,X),l.component(ee.name,ee),l};var sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const oa=sa;function pe(l){for(var e=1;e!s.isIdle),n=F(),o=F({and_tags:[],or_tags:[],not_tags:[]}),f=J(()=>n.value?n.value.tags.slice().sort((a,i)=>i.count-a.count):[]),g=["custom","Model","lora","lyco","pos","size","Postprocess upscaler","Postprocess upscale by","Sampler"].reduce((a,i,b)=>(a[i]=b,a),{}),P=J(()=>Object.entries(xa(f.value,a=>a.type)).sort((a,i)=>g[a[0]]-g[i[0]])),K=Le(),h=F(P.value.map(a=>a[0]));qe(async()=>{n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value.img_count&&n.value.expired&&T()}),oe("searchIndexExpired",()=>n.value&&(n.value.expired=!0));const T=ze(()=>s.pushAction(async()=>(await ta(),n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value)).res),$=()=>{t.openTagSearchMatchedImageGridInRight(e.tabIdx,K,o.value)};oe("returnToIIB",async()=>{const a=await s.pushAction(Ze).res;n.value.expired=a.expired});const j=(a,i=!1)=>(i?`[${a.type}] `:"")+(a.display_name?`${a.display_name} : ${a.name}`:a.name),N=F(!1),d=F(""),r=async()=>{var i,b,k;if(!d.value){N.value=!1;return}const a=await s.pushAction(()=>ea({tag_name:d.value})).res;a.type!=="custom"&&de.error(ne("existInOtherType")),(i=n.value)!=null&&i.tags.find(O=>O.id===a.id)?de.error(ne("alreadyExists")):((b=n.value)==null||b.tags.push(a),(k=t.conf)==null||k.all_custom_tags.push(a)),d.value="",N.value=!1},u=a=>{Je.confirm({title:ne("confirmDelete"),async onOk(){var b,k,O,I;await aa({tag_id:a});const i=((b=n.value)==null?void 0:b.tags.findIndex(w=>w.id===a))??-1;(k=n.value)==null||k.tags.splice(i,1),(I=t.conf)==null||I.all_custom_tags.splice((O=t.conf)==null?void 0:O.all_custom_tags.findIndex(w=>w.id===a),1)}})},y=J(()=>new Set([o.value.and_tags,o.value.or_tags,o.value.not_tags].flat())),_=a=>{y.value.has(a.id)?(o.value.and_tags=o.value.and_tags.filter(i=>i!==a.id),o.value.or_tags=o.value.or_tags.filter(i=>i!==a.id),o.value.not_tags=o.value.not_tags.filter(i=>i!==a.id)):o.value.and_tags.push(a.id)},R={value:a=>a.id,text:j,optionText:a=>j(a,!0)};return(a,i)=>{const b=ue,k=We,O=ue,I=Xe,w=ee,A=X;return C(),S("div",Ia,[q("",!0),n.value?(C(),S(Y,{key:1},[M("div",null,[M("div",Aa,[M("div",wa,B(a.$t("exactMatch")),1),v(E(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.and_tags,"onUpdate:value":i[0]||(i[0]=p=>o.value.and_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),n.value.expired||!n.value.img_count?(C(),Q(b,{key:0,onClick:E(T),loading:!E(s).isIdle,type:"primary"},{default:V(()=>[z(B(n.value.img_count===0?a.$t("generateIndexHint"):a.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(C(),Q(b,{key:1,type:"primary",onClick:$,loading:!E(s).isIdle,disabled:!o.value.and_tags.length},{default:V(()=>[z(B(a.$t("search")),1)]),_:1},8,["loading","disabled"]))]),M("div",ka,[M("div",Pa,B(a.$t("anyMatch")),1),v(E(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.or_tags,"onUpdate:value":i[1]||(i[1]=p=>o.value.or_tags=p),disabled:!f.value.length,placeholder:a.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"])]),M("div",$a,[M("div",Oa,B(a.$t("exclude")),1),v(E(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.not_tags,"onUpdate:value":i[2]||(i[2]=p=>o.value.not_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])])]),f.value.filter(p=>p.type!=="custom").length?q("",!0):(C(),S("p",Sa,B(a.$t("needGenerateIdx")),1)),M("div",Ba,[(C(!0),S(Y,null,ie(P.value,([p,G])=>(C(),S("ul",{class:"tag-list",key:p},[M("h3",{class:"cat-name",onClick:m=>h.value.includes(p)?h.value.splice(h.value.indexOf(p),1):h.value.push(p)},[v(E(ra),{class:re(["arrow",{down:h.value.includes(p)}])},null,8,["class"]),z(" "+B(a.$t(p)),1)],8,Ea),v(A,{ghost:"",activeKey:h.value,"onUpdate:activeKey":i[5]||(i[5]=m=>h.value=m)},{expandIcon:V(()=>[]),default:V(()=>[(C(),Q(w,{key:p},{default:V(()=>[(C(!0),S(Y,null,ie(G,(m,L)=>(C(),S("li",{key:m.id,class:re(["tag",{selected:y.value.has(m.id)}]),onClick:U=>_(m)},[y.value.has(m.id)?(C(),Q(E(Ge),{key:0})):q("",!0),z(" "+B(j(m))+" ",1),p==="custom"&&L!==0?(C(),S("span",{key:1,class:"remove",onClickCapture:ce(U=>u(m.id),["stop"])},[v(E(He))],40,Ta)):q("",!0)],10,Ka))),128)),p==="custom"?(C(),S("li",{key:0,class:"tag",onClick:i[4]||(i[4]=m=>N.value=!0)},[N.value?(C(),Q(I,{key:0,compact:""},{default:V(()=>[v(k,{value:d.value,"onUpdate:value":i[3]||(i[3]=m=>d.value=m),style:{width:"128px"},loading:c.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),v(O,{size:"small",type:"primary",onClickCapture:ce(r,["stop"]),loading:c.value},{default:V(()=>[z(B(d.value?a.$t("submit"):a.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(C(),S(Y,{key:1},[v(E(Qe)),z(" "+B(a.$t("add")),1)],64))])):q("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])]))),128))])],64)):q("",!0)])}}});const Fa=Ye(Na,[["__scopeId","data-v-d3d0aa40"]]);export{Fa as default}; +import{P as D,Z as _e,d as ae,bq as ge,aY as be,$ as F,bH as Ce,l as xe,u as he,aj as J,a0 as Z,h as x,c as v,a as W,bI as Ie,b as Ae,f as we,bJ as ke,a3 as se,bK as Pe,a2 as $e,i as Oe,b0 as Se,bL as Be,a5 as Ee,a6 as Ke,a7 as Te,ag as Ne,aT as Re,aR as Me,bM as je,aS as De,bN as Fe,k as Ue,bO as Ve,al as Le,aw as qe,bP as oe,bQ as ze,o as C,y as S,E as q,z as Y,p as M,v as B,r as E,S as te,m as Q,n as V,x as z,A as ie,N as re,bR as Ge,q as ce,a1 as He,ak as Qe,ar as de,ai as ne,R as Je,V as ue,U as We,bS as Xe,X as Ye}from"./index-cb943354.js";/* empty css *//* empty css */import{b as ve,c as Ze,d as ea,r as aa,u as ta}from"./db-34982abd.js";var na=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:D.object,expandIconPosition:D.oneOf(_e("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},me=function(){return{openAnimation:D.object,prefixCls:String,header:D.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:D.any,panelKey:D.oneOfType([D.string,D.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function fe(l){var e=l;if(!Array.isArray(e)){var t=Ae(e);e=t==="number"||t==="string"?[e]:[]}return e.map(function(s){return String(s)})}const X=ae({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:ge(na(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:be("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var s=t.attrs,c=t.slots,n=t.emit,o=F(fe(Ce([e.activeKey,e.defaultActiveKey])));xe(function(){return e.activeKey},function(){o.value=fe(e.activeKey)},{deep:!0});var f=he("collapse",e),g=f.prefixCls,P=f.direction,K=J(function(){var d=e.expandIconPosition;return d!==void 0?d:P.value==="rtl"?"right":"left"}),h=function(r){var u=e.expandIcon,y=u===void 0?c.expandIcon:u,_=y?y(r):v(Pe,{rotate:r.isActive?90:void 0},null);return v("div",null,[$e(Array.isArray(y)?_[0]:_)?se(_,{class:"".concat(g.value,"-arrow")},!1):_])},T=function(r){e.activeKey===void 0&&(o.value=r);var u=e.accordion?r[0]:r;n("update:activeKey",u),n("change",u)},$=function(r){var u=o.value;if(e.accordion)u=u[0]===r?[]:[r];else{u=Oe(u);var y=u.indexOf(r),_=y>-1;_?u.splice(y,1):u.push(r)}T(u)},j=function(r,u){var y,_,R;if(!ke(r)){var a=o.value,i=e.accordion,b=e.destroyInactivePanel,k=e.collapsible,O=e.openAnimation,I=String((y=r.key)!==null&&y!==void 0?y:u),w=r.props||{},A=w.header,p=A===void 0?(_=r.children)===null||_===void 0||(R=_.header)===null||R===void 0?void 0:R.call(_):A,G=w.headerClass,m=w.collapsible,L=w.disabled,U=!1;i?U=a[0]===I:U=a.indexOf(I)>-1;var H=m??k;(L||L==="")&&(H="disabled");var ye={key:I,panelKey:I,header:p,headerClass:G,isActive:U,prefixCls:g.value,destroyInactivePanel:b,openAnimation:O,accordion:i,onItemClick:H==="disabled"?null:$,expandIcon:h,collapsible:H};return se(r,ye)}},N=function(){var r;return we((r=c.default)===null||r===void 0?void 0:r.call(c)).map(j)};return function(){var d,r=e.accordion,u=e.bordered,y=e.ghost,_=Z((d={},x(d,g.value,!0),x(d,"".concat(g.value,"-borderless"),!u),x(d,"".concat(g.value,"-icon-position-").concat(K.value),!0),x(d,"".concat(g.value,"-rtl"),P.value==="rtl"),x(d,"".concat(g.value,"-ghost"),!!y),x(d,s.class,!!s.class),d));return v("div",W(W({class:_},Ie(s)),{},{style:s.style,role:r?"tablist":null}),[N()])}}}),la=ae({compatConfig:{MODE:3},name:"PanelContent",props:me(),setup:function(e,t){var s=t.slots,c=F(!1);return Se(function(){(e.isActive||e.forceRender)&&(c.value=!0)}),function(){var n,o;if(!c.value)return null;var f=e.prefixCls,g=e.isActive,P=e.role;return v("div",{ref:F,class:Z("".concat(f,"-content"),(n={},x(n,"".concat(f,"-content-active"),g),x(n,"".concat(f,"-content-inactive"),!g),n)),role:P},[v("div",{class:"".concat(f,"-content-box")},[(o=s.default)===null||o===void 0?void 0:o.call(s)])])}}}),ee=ae({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:ge(me(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var s=t.slots,c=t.emit,n=t.attrs;Be(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var o=he("collapse",e),f=o.prefixCls,g=function(){c("itemClick",e.panelKey)},P=function(h){(h.key==="Enter"||h.keyCode===13||h.which===13)&&g()};return function(){var K,h,T,$,j=e.header,N=j===void 0?(K=s.header)===null||K===void 0?void 0:K.call(s):j,d=e.headerClass,r=e.isActive,u=e.showArrow,y=e.destroyInactivePanel,_=e.accordion,R=e.forceRender,a=e.openAnimation,i=e.expandIcon,b=i===void 0?s.expandIcon:i,k=e.extra,O=k===void 0?(h=s.extra)===null||h===void 0?void 0:h.call(s):k,I=e.collapsible,w=I==="disabled",A=f.value,p=Z("".concat(A,"-header"),(T={},x(T,d,d),x(T,"".concat(A,"-header-collapsible-only"),I==="header"),T)),G=Z(($={},x($,"".concat(A,"-item"),!0),x($,"".concat(A,"-item-active"),r),x($,"".concat(A,"-item-disabled"),w),x($,"".concat(A,"-no-arrow"),!u),x($,"".concat(n.class),!!n.class),$)),m=v("i",{class:"arrow"},null);u&&typeof b=="function"&&(m=b(e));var L=Ee(v(la,{prefixCls:A,isActive:r,forceRender:R,role:_?"tabpanel":null},{default:s.default}),[[Ke,r]]),U=W({appear:!1,css:!1},a);return v("div",W(W({},n),{},{class:G}),[v("div",{class:p,onClick:function(){return I!=="header"&&g()},role:_?"tab":"button",tabindex:w?-1:0,"aria-expanded":r,onKeypress:P},[u&&m,I==="header"?v("span",{onClick:g,class:"".concat(A,"-header-text")},[N]):N,O&&v("div",{class:"".concat(A,"-extra")},[O])]),v(Te,U,{default:function(){return[!y||r?L:null]}})])}}});X.Panel=ee;X.install=function(l){return l.component(X.name,X),l.component(ee.name,ee),l};var sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const oa=sa;function pe(l){for(var e=1;e!s.isIdle),n=F(),o=F({and_tags:[],or_tags:[],not_tags:[]}),f=J(()=>n.value?n.value.tags.slice().sort((a,i)=>i.count-a.count):[]),g=["custom","Model","lora","lyco","pos","size","Postprocess upscaler","Postprocess upscale by","Sampler"].reduce((a,i,b)=>(a[i]=b,a),{}),P=J(()=>Object.entries(xa(f.value,a=>a.type)).sort((a,i)=>g[a[0]]-g[i[0]])),K=Le(),h=F(P.value.map(a=>a[0]));qe(async()=>{n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value.img_count&&n.value.expired&&T()}),oe("searchIndexExpired",()=>n.value&&(n.value.expired=!0));const T=ze(()=>s.pushAction(async()=>(await ta(),n.value=await ve(),h.value=P.value.map(a=>a[0]),n.value)).res),$=()=>{t.openTagSearchMatchedImageGridInRight(e.tabIdx,K,o.value)};oe("returnToIIB",async()=>{const a=await s.pushAction(Ze).res;n.value.expired=a.expired});const j=(a,i=!1)=>(i?`[${a.type}] `:"")+(a.display_name?`${a.display_name} : ${a.name}`:a.name),N=F(!1),d=F(""),r=async()=>{var i,b,k;if(!d.value){N.value=!1;return}const a=await s.pushAction(()=>ea({tag_name:d.value})).res;a.type!=="custom"&&de.error(ne("existInOtherType")),(i=n.value)!=null&&i.tags.find(O=>O.id===a.id)?de.error(ne("alreadyExists")):((b=n.value)==null||b.tags.push(a),(k=t.conf)==null||k.all_custom_tags.push(a)),d.value="",N.value=!1},u=a=>{Je.confirm({title:ne("confirmDelete"),async onOk(){var b,k,O,I;await aa({tag_id:a});const i=((b=n.value)==null?void 0:b.tags.findIndex(w=>w.id===a))??-1;(k=n.value)==null||k.tags.splice(i,1),(I=t.conf)==null||I.all_custom_tags.splice((O=t.conf)==null?void 0:O.all_custom_tags.findIndex(w=>w.id===a),1)}})},y=J(()=>new Set([o.value.and_tags,o.value.or_tags,o.value.not_tags].flat())),_=a=>{y.value.has(a.id)?(o.value.and_tags=o.value.and_tags.filter(i=>i!==a.id),o.value.or_tags=o.value.or_tags.filter(i=>i!==a.id),o.value.not_tags=o.value.not_tags.filter(i=>i!==a.id)):o.value.and_tags.push(a.id)},R={value:a=>a.id,text:j,optionText:a=>j(a,!0)};return(a,i)=>{const b=ue,k=We,O=ue,I=Xe,w=ee,A=X;return C(),S("div",Ia,[q("",!0),n.value?(C(),S(Y,{key:1},[M("div",null,[M("div",Aa,[M("div",wa,B(a.$t("exactMatch")),1),v(E(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.and_tags,"onUpdate:value":i[0]||(i[0]=p=>o.value.and_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),n.value.expired||!n.value.img_count?(C(),Q(b,{key:0,onClick:E(T),loading:!E(s).isIdle,type:"primary"},{default:V(()=>[z(B(n.value.img_count===0?a.$t("generateIndexHint"):a.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(C(),Q(b,{key:1,type:"primary",onClick:$,loading:!E(s).isIdle,disabled:!o.value.and_tags.length},{default:V(()=>[z(B(a.$t("search")),1)]),_:1},8,["loading","disabled"]))]),M("div",ka,[M("div",Pa,B(a.$t("anyMatch")),1),v(E(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.or_tags,"onUpdate:value":i[1]||(i[1]=p=>o.value.or_tags=p),disabled:!f.value.length,placeholder:a.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"])]),M("div",$a,[M("div",Oa,B(a.$t("exclude")),1),v(E(te),{conv:R,mode:"multiple",style:{width:"100%"},options:f.value,value:o.value.not_tags,"onUpdate:value":i[2]||(i[2]=p=>o.value.not_tags=p),disabled:!f.value.length,placeholder:a.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])])]),f.value.filter(p=>p.type!=="custom").length?q("",!0):(C(),S("p",Sa,B(a.$t("needGenerateIdx")),1)),M("div",Ba,[(C(!0),S(Y,null,ie(P.value,([p,G])=>(C(),S("ul",{class:"tag-list",key:p},[M("h3",{class:"cat-name",onClick:m=>h.value.includes(p)?h.value.splice(h.value.indexOf(p),1):h.value.push(p)},[v(E(ra),{class:re(["arrow",{down:h.value.includes(p)}])},null,8,["class"]),z(" "+B(a.$t(p)),1)],8,Ea),v(A,{ghost:"",activeKey:h.value,"onUpdate:activeKey":i[5]||(i[5]=m=>h.value=m)},{expandIcon:V(()=>[]),default:V(()=>[(C(),Q(w,{key:p},{default:V(()=>[(C(!0),S(Y,null,ie(G,(m,L)=>(C(),S("li",{key:m.id,class:re(["tag",{selected:y.value.has(m.id)}]),onClick:U=>_(m)},[y.value.has(m.id)?(C(),Q(E(Ge),{key:0})):q("",!0),z(" "+B(j(m))+" ",1),p==="custom"&&L!==0?(C(),S("span",{key:1,class:"remove",onClickCapture:ce(U=>u(m.id),["stop"])},[v(E(He))],40,Ta)):q("",!0)],10,Ka))),128)),p==="custom"?(C(),S("li",{key:0,class:"tag",onClick:i[4]||(i[4]=m=>N.value=!0)},[N.value?(C(),Q(I,{key:0,compact:""},{default:V(()=>[v(k,{value:d.value,"onUpdate:value":i[3]||(i[3]=m=>d.value=m),style:{width:"128px"},loading:c.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),v(O,{size:"small",type:"primary",onClickCapture:ce(r,["stop"]),loading:c.value},{default:V(()=>[z(B(d.value?a.$t("submit"):a.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(C(),S(Y,{key:1},[v(E(Qe)),z(" "+B(a.$t("add")),1)],64))])):q("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])]))),128))])],64)):q("",!0)])}}});const Fa=Ye(Na,[["__scopeId","data-v-d3d0aa40"]]);export{Fa as default}; diff --git a/vue/dist/assets/db-a47df277.js b/vue/dist/assets/db-34982abd.js similarity index 92% rename from vue/dist/assets/db-a47df277.js rename to vue/dist/assets/db-34982abd.js index d3d0e5b..d9e97cb 100644 --- a/vue/dist/assets/db-a47df277.js +++ b/vue/dist/assets/db-34982abd.js @@ -1 +1 @@ -import{c6 as t}from"./index-bd9cfb84.js";const o=async()=>(await t.value.get("/db/basic_info")).data,c=async()=>(await t.value.get("/db/expired_dirs")).data,r=async()=>{await t.value.post("/db/update_image_data",{},{timeout:1/0})},d=async a=>(await t.value.post("/db/match_images_by_tags",a)).data,g=async a=>(await t.value.post("/db/add_custom_tag",a)).data,u=async a=>(await t.value.post("/db/toggle_custom_tag_to_img",a)).data,p=async a=>{await t.value.post("/db/remove_custom_tag",a)},i=async a=>(await t.value.get("/db/search_by_substr",{params:{substr:a}})).data,e="/db/scanned_paths",m=async a=>{await t.value.post(e,{path:a})},_=async a=>{await t.value.delete(e,{data:{path:a}})},b=async a=>(await t.value.post("/db/get_image_tags",{paths:a})).data;export{m as a,o as b,c,g as d,i as e,b as f,d as g,_ as h,p as r,u as t,r as u}; +import{c6 as t}from"./index-cb943354.js";const o=async()=>(await t.value.get("/db/basic_info")).data,c=async()=>(await t.value.get("/db/expired_dirs")).data,r=async()=>{await t.value.post("/db/update_image_data",{},{timeout:1/0})},d=async a=>(await t.value.post("/db/match_images_by_tags",a)).data,g=async a=>(await t.value.post("/db/add_custom_tag",a)).data,u=async a=>(await t.value.post("/db/toggle_custom_tag_to_img",a)).data,p=async a=>{await t.value.post("/db/remove_custom_tag",a)},i=async a=>(await t.value.get("/db/search_by_substr",{params:{substr:a}})).data,e="/db/scanned_paths",m=async a=>{await t.value.post(e,{path:a})},_=async a=>{await t.value.delete(e,{data:{path:a}})},b=async a=>(await t.value.post("/db/get_image_tags",{paths:a})).data;export{m as a,o as b,c,g as d,i as e,b as f,d as g,_ as h,p as r,u as t,r as u}; diff --git a/vue/dist/assets/emptyStartup-84df7526.js b/vue/dist/assets/emptyStartup-7bc14c2b.js similarity index 98% rename from vue/dist/assets/emptyStartup-84df7526.js rename to vue/dist/assets/emptyStartup-7bc14c2b.js index 7056fcf..6ca10e1 100644 --- a/vue/dist/assets/emptyStartup-84df7526.js +++ b/vue/dist/assets/emptyStartup-7bc14c2b.js @@ -1 +1 @@ -import{Y as he,Z as fe,d as ce,u as me,$ as M,g as L,a0 as ge,h as O,c as d,a1 as _e,a2 as be,a3 as ye,a4 as we,a5 as ke,a6 as Ce,a as Y,a7 as Oe,P as I,a8 as Se,a9 as Ie,aa as xe,ab as $e,ac as Pe,ad as ze,ae as Ae,af as Me,ag as ie,k as De,ah as Te,ai as w,aj as Z,o as u,y as f,p as a,v as c,r as h,E as k,m as J,n as N,q as A,z as H,A as j,x as K,ak as Ee,al as ee,am as Fe,an as Le,ao as Ne,R as te,ap as He,U as je,aq as Be,ar as ne,as as ae,V as Ve,at as qe,au as Re,X as Ue}from"./index-bd9cfb84.js";import{a as Qe}from"./db-a47df277.js";var We={success:Se,info:Ie,error:xe,warning:$e},Ge={success:Pe,info:ze,error:Ae,warning:Me},Xe=fe("success","info","warning","error"),Ye=function(){return{type:I.oneOf(Xe),closable:{type:Boolean,default:void 0},closeText:I.any,message:I.any,description:I.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:I.any,closeIcon:I.any,onClose:Function}},Ze=ce({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ye(),setup:function(t,e){var l=e.slots,p=e.emit,y=e.attrs,x=e.expose,$=me("alert",t),B=$.prefixCls,V=$.direction,C=M(!1),D=M(!1),n=M(),v=function(i){i.preventDefault();var b=n.value;b.style.height="".concat(b.offsetHeight,"px"),b.style.height="".concat(b.offsetHeight,"px"),C.value=!0,p("close",i)},g=function(){var i;C.value=!1,D.value=!0,(i=t.afterClose)===null||i===void 0||i.call(t)};x({animationEnd:g});var m=M({});return function(){var _,i,b=t.banner,o=t.closeIcon,S=o===void 0?(_=l.closeIcon)===null||_===void 0?void 0:_.call(l):o,q=t.closable,P=t.type,z=t.showIcon,R=L(l,t,"closeText"),T=L(l,t,"description"),G=L(l,t,"message"),E=L(l,t,"icon");z=b&&z===void 0?!0:z,P=b&&P===void 0?"warning":P||"info";var re=(T?Ge:We)[P]||null;R&&(q=!0);var r=B.value,ue=ge(r,(i={},O(i,"".concat(r,"-").concat(P),!0),O(i,"".concat(r,"-closing"),C.value),O(i,"".concat(r,"-with-description"),!!T),O(i,"".concat(r,"-no-icon"),!z),O(i,"".concat(r,"-banner"),!!b),O(i,"".concat(r,"-closable"),q),O(i,"".concat(r,"-rtl"),V.value==="rtl"),i)),de=q?d("button",{type:"button",onClick:v,class:"".concat(r,"-close-icon"),tabindex:0},[R?d("span",{class:"".concat(r,"-close-text")},[R]):S===void 0?d(_e,null,null):S]):null,pe=E&&(be(E)?ye(E,{class:"".concat(r,"-icon")}):d("span",{class:"".concat(r,"-icon")},[E]))||d(re,{class:"".concat(r,"-icon")},null),ve=we("".concat(r,"-motion"),{appear:!1,css:!0,onAfterLeave:g,onBeforeLeave:function(F){F.style.maxHeight="".concat(F.offsetHeight,"px")},onLeave:function(F){F.style.maxHeight="0px"}});return D.value?null:d(Oe,ve,{default:function(){return[ke(d("div",Y(Y({role:"alert"},y),{},{style:[y.style,m.value],class:[y.class,ue],"data-show":!C.value,ref:n}),[z?pe:null,d("div",{class:"".concat(r,"-content")},[G?d("div",{class:"".concat(r,"-message")},[G]):null,T?d("div",{class:"".concat(r,"-description")},[T]):null]),de]),[[Ce,!C.value]])]}})}}});const Je=he(Ze);var Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const et=Ke;function se(s){for(var t=1;t(qe("data-v-903b3fda"),s=s(),Re(),s),lt={class:"container"},ct={class:"header"},it={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},rt=W(()=>a("div",{"flex-placeholder":""},null,-1)),ut={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"last-record"},dt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/131",target:"_blank",class:"last-record"},pt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record"},vt={class:"access-mode-message"},ht=W(()=>a("div",{"flex-placeholder":""},null,-1)),ft={class:"access-mode-message"},mt=W(()=>a("div",{"flex-placeholder":""},null,-1)),gt={class:"content"},_t={key:0,class:"feature-item"},bt={key:1,class:"feature-item"},yt={class:"text line-clamp-1"},wt=["onClick"],kt={class:"text line-clamp-1"},Ct={class:"feature-item"},Ot=["onClick"],St={class:"text line-clamp-1"},It={class:"text line-clamp-1"},xt={class:"text line-clamp-1"},$t={class:"text line-clamp-1"},Pt={key:2,class:"feature-item"},zt=["onClick"],At={class:"text line-clamp-1"},Mt=ce({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{}},setup(s){const t=s,e=De(),l=Te(),p={local:w("local"),"tag-search":w("imgSearch"),"fuzzy-search":w("fuzzy-search"),"global-setting":w("globalSettings")},y=(n,v,g=!1)=>{let m;switch(n){case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"fuzzy-search":case"empty":m={type:n,name:p[n],key:Date.now()+ee()};break;case"local":m={type:n,name:p[n],key:Date.now()+ee(),path:v,walkModePath:g?v:void 0}}const _=e.tabList[t.tabIdx];_.panes.splice(t.paneIdx,1,m),_.key=m.key},x=Z(()=>{var n;return(n=e.tabListHistoryRecord)==null?void 0:n[1]}),$=Z(()=>e.quickMovePaths.filter(({key:n})=>n==="outdir_txt2img_samples"||n==="outdir_img2img_samples")),B=window.parent!==window,V=()=>window.parent.open("/infinite_image_browsing"),C=()=>{Fe(x.value),e.tabList=Le(x.value.tabs)},D=async()=>{let n;if({}.TAURI_ARCH){const v=await Ne({directory:!0});if(typeof v=="string")n=v;else return}else n=await new Promise(v=>{const g=M("");te.confirm({title:w("inputTargetFolderPath"),content:()=>He(je,{value:g.value,"onUpdate:value":m=>g.value=m}),async onOk(){const m=g.value;(await Be([m]))[m]?v(g.value):ne.error(w("pathDoesNotExist"))}})});te.confirm({content:w("confirmToAddToQuickMove"),async onOk(){await Qe(n),ne.success(w("addComplete")),ae.emit("searchIndexExpired"),ae.emit("updateGlobalSetting")}})};return(n,v)=>{var _,i,b;const g=Je,m=Ve;return u(),f("div",lt,[a("div",ct,[a("h1",null,c(n.$t("welcome")),1),(_=h(e).conf)!=null&&_.enable_access_control&&h(e).dontShowAgain?(u(),f("div",it,[d(h(le),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):k("",!0),rt,a("a",ut,c(n.$t("document")),1),a("a",dt,c(n.$t("changlog")),1),a("a",pt,c(n.$t("faq")),1)]),(i=h(e).conf)!=null&&i.enable_access_control&&!h(e).dontShowAgain?(u(),J(g,{key:0,"show-icon":""},{message:N(()=>[a("div",vt,[a("div",null,c(n.$t("accessControlModeTips")),1),ht,a("a",{onClick:v[0]||(v[0]=A(o=>h(e).dontShowAgain=!0,["prevent"]))},c(n.$t("dontShowAgain")),1)])]),icon:N(()=>[d(h(le))]),_:1})):k("",!0),h(e).dontShowAgainNewImgOpts?k("",!0):(u(),J(g,{key:1,"show-icon":""},{message:N(()=>[a("div",ft,[a("div",null,c(n.$t("majorUpdateCustomCellSizeTips")),1),mt,a("a",{onClick:v[1]||(v[1]=A(o=>h(e).dontShowAgainNewImgOpts=!0,["prevent"]))},c(n.$t("dontShowAgain")),1)])]),_:1})),a("div",gt,[$.value.length?(u(),f("div",_t,[a("h2",null,c(n.$t("walkMode")),1),a("ul",null,[(u(!0),f(H,null,j($.value,o=>(u(),f("li",{key:o.dir,class:"item"},[d(m,{onClick:S=>y("local",o.dir,!0),ghost:"",type:"primary",block:""},{default:N(()=>[K(c(o.zh),1)]),_:2},1032,["onClick"])]))),128))])])):k("",!0),h(e).quickMovePaths.length?(u(),f("div",bt,[a("h2",null,c(n.$t("launchFromQuickMove")),1),a("ul",null,[a("li",{onClick:D,class:"item",style:{"text-align":""}},[a("span",yt,[d(h(Ee)),K(" "+c(n.$t("add")),1)])]),(u(!0),f(H,null,j(h(e).quickMovePaths,o=>(u(),f("li",{key:o.key,class:"item",onClick:A(S=>y("local",o.dir),["prevent"])},[a("span",kt,c(o.zh),1)],8,wt))),128))])])):k("",!0),a("div",Ct,[a("h2",null,c(n.$t("launch")),1),a("ul",null,[(u(!0),f(H,null,j(Object.keys(p),o=>(u(),f("li",{key:o,class:"item",onClick:A(S=>y(o),["prevent"])},[a("span",St,c(p[o]),1)],8,Ot))),128)),a("li",{class:"item",onClick:v[2]||(v[2]=o=>h(l).opened=!0)},[a("span",It,c(n.$t("imgCompare")),1)]),B?(u(),f("li",{key:0,class:"item",onClick:V},[a("span",xt,c(n.$t("openInNewWindow")),1)])):k("",!0),(b=x.value)!=null&&b.tabs.length?(u(),f("li",{key:1,class:"item",onClick:C},[a("span",$t,c(n.$t("restoreLastRecord")),1)])):k("",!0)])]),h(e).recent.length?(u(),f("div",Pt,[a("h2",null,c(n.$t("recent")),1),a("ul",null,[(u(!0),f(H,null,j(h(e).recent,o=>(u(),f("li",{key:o.key,class:"item",onClick:A(S=>y("local",o.path),["prevent"])},[d(h(nt),{class:"icon"}),a("span",At,c(o.path),1)],8,zt))),128))])])):k("",!0)])])}}});const Et=Ue(Mt,[["__scopeId","data-v-903b3fda"]]);export{Et as default}; +import{Y as he,Z as fe,d as ce,u as me,$ as M,g as L,a0 as ge,h as O,c as d,a1 as _e,a2 as be,a3 as ye,a4 as we,a5 as ke,a6 as Ce,a as Y,a7 as Oe,P as I,a8 as Se,a9 as Ie,aa as xe,ab as $e,ac as Pe,ad as ze,ae as Ae,af as Me,ag as ie,k as De,ah as Te,ai as w,aj as Z,o as u,y as f,p as a,v as c,r as h,E as k,m as J,n as N,q as A,z as H,A as j,x as K,ak as Ee,al as ee,am as Fe,an as Le,ao as Ne,R as te,ap as He,U as je,aq as Be,ar as ne,as as ae,V as Ve,at as qe,au as Re,X as Ue}from"./index-cb943354.js";import{a as Qe}from"./db-34982abd.js";var We={success:Se,info:Ie,error:xe,warning:$e},Ge={success:Pe,info:ze,error:Ae,warning:Me},Xe=fe("success","info","warning","error"),Ye=function(){return{type:I.oneOf(Xe),closable:{type:Boolean,default:void 0},closeText:I.any,message:I.any,description:I.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:I.any,closeIcon:I.any,onClose:Function}},Ze=ce({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ye(),setup:function(t,e){var l=e.slots,p=e.emit,y=e.attrs,x=e.expose,$=me("alert",t),B=$.prefixCls,V=$.direction,C=M(!1),D=M(!1),n=M(),v=function(i){i.preventDefault();var b=n.value;b.style.height="".concat(b.offsetHeight,"px"),b.style.height="".concat(b.offsetHeight,"px"),C.value=!0,p("close",i)},g=function(){var i;C.value=!1,D.value=!0,(i=t.afterClose)===null||i===void 0||i.call(t)};x({animationEnd:g});var m=M({});return function(){var _,i,b=t.banner,o=t.closeIcon,S=o===void 0?(_=l.closeIcon)===null||_===void 0?void 0:_.call(l):o,q=t.closable,P=t.type,z=t.showIcon,R=L(l,t,"closeText"),T=L(l,t,"description"),G=L(l,t,"message"),E=L(l,t,"icon");z=b&&z===void 0?!0:z,P=b&&P===void 0?"warning":P||"info";var re=(T?Ge:We)[P]||null;R&&(q=!0);var r=B.value,ue=ge(r,(i={},O(i,"".concat(r,"-").concat(P),!0),O(i,"".concat(r,"-closing"),C.value),O(i,"".concat(r,"-with-description"),!!T),O(i,"".concat(r,"-no-icon"),!z),O(i,"".concat(r,"-banner"),!!b),O(i,"".concat(r,"-closable"),q),O(i,"".concat(r,"-rtl"),V.value==="rtl"),i)),de=q?d("button",{type:"button",onClick:v,class:"".concat(r,"-close-icon"),tabindex:0},[R?d("span",{class:"".concat(r,"-close-text")},[R]):S===void 0?d(_e,null,null):S]):null,pe=E&&(be(E)?ye(E,{class:"".concat(r,"-icon")}):d("span",{class:"".concat(r,"-icon")},[E]))||d(re,{class:"".concat(r,"-icon")},null),ve=we("".concat(r,"-motion"),{appear:!1,css:!0,onAfterLeave:g,onBeforeLeave:function(F){F.style.maxHeight="".concat(F.offsetHeight,"px")},onLeave:function(F){F.style.maxHeight="0px"}});return D.value?null:d(Oe,ve,{default:function(){return[ke(d("div",Y(Y({role:"alert"},y),{},{style:[y.style,m.value],class:[y.class,ue],"data-show":!C.value,ref:n}),[z?pe:null,d("div",{class:"".concat(r,"-content")},[G?d("div",{class:"".concat(r,"-message")},[G]):null,T?d("div",{class:"".concat(r,"-description")},[T]):null]),de]),[[Ce,!C.value]])]}})}}});const Je=he(Ze);var Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const et=Ke;function se(s){for(var t=1;t(qe("data-v-903b3fda"),s=s(),Re(),s),lt={class:"container"},ct={class:"header"},it={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},rt=W(()=>a("div",{"flex-placeholder":""},null,-1)),ut={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"last-record"},dt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/131",target:"_blank",class:"last-record"},pt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record"},vt={class:"access-mode-message"},ht=W(()=>a("div",{"flex-placeholder":""},null,-1)),ft={class:"access-mode-message"},mt=W(()=>a("div",{"flex-placeholder":""},null,-1)),gt={class:"content"},_t={key:0,class:"feature-item"},bt={key:1,class:"feature-item"},yt={class:"text line-clamp-1"},wt=["onClick"],kt={class:"text line-clamp-1"},Ct={class:"feature-item"},Ot=["onClick"],St={class:"text line-clamp-1"},It={class:"text line-clamp-1"},xt={class:"text line-clamp-1"},$t={class:"text line-clamp-1"},Pt={key:2,class:"feature-item"},zt=["onClick"],At={class:"text line-clamp-1"},Mt=ce({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{}},setup(s){const t=s,e=De(),l=Te(),p={local:w("local"),"tag-search":w("imgSearch"),"fuzzy-search":w("fuzzy-search"),"global-setting":w("globalSettings")},y=(n,v,g=!1)=>{let m;switch(n){case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"fuzzy-search":case"empty":m={type:n,name:p[n],key:Date.now()+ee()};break;case"local":m={type:n,name:p[n],key:Date.now()+ee(),path:v,walkModePath:g?v:void 0}}const _=e.tabList[t.tabIdx];_.panes.splice(t.paneIdx,1,m),_.key=m.key},x=Z(()=>{var n;return(n=e.tabListHistoryRecord)==null?void 0:n[1]}),$=Z(()=>e.quickMovePaths.filter(({key:n})=>n==="outdir_txt2img_samples"||n==="outdir_img2img_samples")),B=window.parent!==window,V=()=>window.parent.open("/infinite_image_browsing"),C=()=>{Fe(x.value),e.tabList=Le(x.value.tabs)},D=async()=>{let n;if({}.TAURI_ARCH){const v=await Ne({directory:!0});if(typeof v=="string")n=v;else return}else n=await new Promise(v=>{const g=M("");te.confirm({title:w("inputTargetFolderPath"),content:()=>He(je,{value:g.value,"onUpdate:value":m=>g.value=m}),async onOk(){const m=g.value;(await Be([m]))[m]?v(g.value):ne.error(w("pathDoesNotExist"))}})});te.confirm({content:w("confirmToAddToQuickMove"),async onOk(){await Qe(n),ne.success(w("addComplete")),ae.emit("searchIndexExpired"),ae.emit("updateGlobalSetting")}})};return(n,v)=>{var _,i,b;const g=Je,m=Ve;return u(),f("div",lt,[a("div",ct,[a("h1",null,c(n.$t("welcome")),1),(_=h(e).conf)!=null&&_.enable_access_control&&h(e).dontShowAgain?(u(),f("div",it,[d(h(le),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):k("",!0),rt,a("a",ut,c(n.$t("document")),1),a("a",dt,c(n.$t("changlog")),1),a("a",pt,c(n.$t("faq")),1)]),(i=h(e).conf)!=null&&i.enable_access_control&&!h(e).dontShowAgain?(u(),J(g,{key:0,"show-icon":""},{message:N(()=>[a("div",vt,[a("div",null,c(n.$t("accessControlModeTips")),1),ht,a("a",{onClick:v[0]||(v[0]=A(o=>h(e).dontShowAgain=!0,["prevent"]))},c(n.$t("dontShowAgain")),1)])]),icon:N(()=>[d(h(le))]),_:1})):k("",!0),h(e).dontShowAgainNewImgOpts?k("",!0):(u(),J(g,{key:1,"show-icon":""},{message:N(()=>[a("div",ft,[a("div",null,c(n.$t("majorUpdateCustomCellSizeTips")),1),mt,a("a",{onClick:v[1]||(v[1]=A(o=>h(e).dontShowAgainNewImgOpts=!0,["prevent"]))},c(n.$t("dontShowAgain")),1)])]),_:1})),a("div",gt,[$.value.length?(u(),f("div",_t,[a("h2",null,c(n.$t("walkMode")),1),a("ul",null,[(u(!0),f(H,null,j($.value,o=>(u(),f("li",{key:o.dir,class:"item"},[d(m,{onClick:S=>y("local",o.dir,!0),ghost:"",type:"primary",block:""},{default:N(()=>[K(c(o.zh),1)]),_:2},1032,["onClick"])]))),128))])])):k("",!0),h(e).quickMovePaths.length?(u(),f("div",bt,[a("h2",null,c(n.$t("launchFromQuickMove")),1),a("ul",null,[a("li",{onClick:D,class:"item",style:{"text-align":""}},[a("span",yt,[d(h(Ee)),K(" "+c(n.$t("add")),1)])]),(u(!0),f(H,null,j(h(e).quickMovePaths,o=>(u(),f("li",{key:o.key,class:"item",onClick:A(S=>y("local",o.dir),["prevent"])},[a("span",kt,c(o.zh),1)],8,wt))),128))])])):k("",!0),a("div",Ct,[a("h2",null,c(n.$t("launch")),1),a("ul",null,[(u(!0),f(H,null,j(Object.keys(p),o=>(u(),f("li",{key:o,class:"item",onClick:A(S=>y(o),["prevent"])},[a("span",St,c(p[o]),1)],8,Ot))),128)),a("li",{class:"item",onClick:v[2]||(v[2]=o=>h(l).opened=!0)},[a("span",It,c(n.$t("imgCompare")),1)]),B?(u(),f("li",{key:0,class:"item",onClick:V},[a("span",xt,c(n.$t("openInNewWindow")),1)])):k("",!0),(b=x.value)!=null&&b.tabs.length?(u(),f("li",{key:1,class:"item",onClick:C},[a("span",$t,c(n.$t("restoreLastRecord")),1)])):k("",!0)])]),h(e).recent.length?(u(),f("div",Pt,[a("h2",null,c(n.$t("recent")),1),a("ul",null,[(u(!0),f(H,null,j(h(e).recent,o=>(u(),f("li",{key:o.key,class:"item",onClick:A(S=>y("local",o.path),["prevent"])},[d(h(nt),{class:"icon"}),a("span",At,c(o.path),1)],8,zt))),128))])])):k("",!0)])])}}});const Et=Ue(Mt,[["__scopeId","data-v-903b3fda"]]);export{Et as default}; diff --git a/vue/dist/assets/fullScreenContextMenu-8736e356.js b/vue/dist/assets/fullScreenContextMenu-8736e356.js new file mode 100644 index 0000000..6f3d44e --- /dev/null +++ b/vue/dist/assets/fullScreenContextMenu-8736e356.js @@ -0,0 +1,4 @@ +import{P as he,bU as bn,a as ne,d as le,bq as nt,u as Ne,c as h,bV as it,_ as Jt,V as se,a0 as Se,aj as H,bL as St,a3 as At,bo as wn,h as R,bW as Sn,b as An,ay as En,bX as kn,a2 as Et,bK as Cn,bY as _n,bZ as On,$ as U,b0 as In,z as ee,aA as Pn,a1 as xn,aI as $n,b_ as Ln,ax as rt,aC as ue,b$ as Mn,c0 as Re,e as kt,bz as Tn,ag as ie,c1 as Nn,aR as zn,c2 as Bn,c3 as Fn,aM as at,am as Je,bn as Yt,c4 as Dn,c5 as Qn,c6 as Ee,c7 as jn,c8 as Vn,R as fe,ai as j,U as Un,c9 as ze,x as N,ca as Hn,bO as Be,cb as Ct,k as Fe,ah as Wn,cc as qt,ar as te,cd as lt,l as ge,aw as Kt,ap as Qe,ce as Rn,cf as _t,an as Gt,bQ as Ot,bP as Jn,cg as Ie,ch as Yn,aD as qn,ci as Kn,cj as Gn,ck as K,cl as be,t as Me,as as It,cm as Pt,cn as Xn,L as re,J as Zn,co as Ye,al as ke,cp as ei,cq as ti,cr as ni,cs as ii,at as ri,au as ai,o as L,m as J,ct as li,cu as si,cv as oi,cw as ui,cx as ci,a5 as di,y as V,cy as Ce,E as q,n as I,A as ve,cz as xt,bG as fi,cA as vi,B as pi,N as Ae,v as T,r as z,W as Xt,cB as hi,cC as Zt,M as en,cD as gi,cE as mi,p as G,cF as yi,X as tn,cG as bi,q as wi}from"./index-cb943354.js";import{t as je,l as pe,g as Si}from"./shortcut-1308f2ef.js";import{f as Ai,h as Ei,a as ki,t as Ci}from"./db-34982abd.js";var nn=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:he.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}}},Ve=bn(),_i=function(){return ne(ne({},nn()),{},{type:Ve.type,size:String,htmlType:Ve.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:he.any,title:String,loading:Ve.loading,onClick:{type:Function}})},Oi=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],Ii=se.Group;const Te=le({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:nt(_i(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,u=n.emit,p=function(S){u("update:visible",S),u("visibleChange",S)},o=Ne("dropdown-button",t),f=o.prefixCls,y=o.direction,A=o.getPopupContainer;return function(){var E,S,v=ne(ne({},t),r),l=v.type,s=l===void 0?"default":l,a=v.disabled,g=v.loading,m=v.htmlType,d=v.class,c=d===void 0?"":d,b=v.overlay,_=b===void 0?(E=i.overlay)===null||E===void 0?void 0:E.call(i):b,P=v.trigger,w=v.align,M=v.visible;v.onVisibleChange;var O=v.placement,B=O===void 0?y.value==="rtl"?"bottomLeft":"bottomRight":O,k=v.href,x=v.title,Q=v.icon,C=Q===void 0?((S=i.icon)===null||S===void 0?void 0:S.call(i))||h(it,null,null):Q,$=v.mouseEnterDelay,F=v.mouseLeaveDelay,X=v.overlayClassName,W=v.overlayStyle,Z=v.destroyPopupOnHide,Y=v.onClick;v["onUpdate:visible"];var ce=Jt(v,Oi),de={align:w,disabled:a,trigger:a?[]:P,placement:B,getPopupContainer:A.value,onVisibleChange:p,mouseEnterDelay:$,mouseLeaveDelay:F,visible:M,overlayClassName:X,overlayStyle:W,destroyPopupOnHide:Z},bt=h(se,{type:s,disabled:a,loading:g,onClick:Y,htmlType:m,href:k,title:x},{default:i.default}),wt=h(se,{type:s,icon:C},null);return h(Ii,ne(ne({},ce),{},{class:Se(f.value,c)}),{default:function(){return[i.leftButton?i.leftButton({button:bt}):bt,h(oe,de,{default:function(){return[i.rightButton?i.rightButton({button:wt}):wt]},overlay:function(){return _}})]}})}}});var rn=le({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:nt(nn(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,u=n.emit,p=Ne("dropdown",t),o=p.prefixCls,f=p.rootPrefixCls,y=p.direction,A=p.getPopupContainer,E=H(function(){var s=t.placement,a=s===void 0?"":s,g=t.transitionName;return g!==void 0?g:a.indexOf("top")>=0?"".concat(f.value,"-slide-down"):"".concat(f.value,"-slide-up")}),S=function(){var a,g,m,d=t.overlay||((a=i.overlay)===null||a===void 0?void 0:a.call(i)),c=Array.isArray(d)?d[0]:d;if(!c)return null;var b=c.props||{};St(!b.mode||b.mode==="vertical","Dropdown",'mode="'.concat(b.mode,`" is not supported for Dropdown's Menu.`));var _=b.selectable,P=_===void 0?!1:_,w=b.expandIcon,M=w===void 0?(g=c.children)===null||g===void 0||(m=g.expandIcon)===null||m===void 0?void 0:m.call(g):w,O=typeof M<"u"&&Et(M)?M:h("span",{class:"".concat(o.value,"-menu-submenu-arrow")},[h(Cn,{class:"".concat(o.value,"-menu-submenu-arrow-icon")},null)]),B=Et(c)?At(c,{mode:"vertical",selectable:P,expandIcon:function(){return O}}):c;return B},v=H(function(){var s=t.placement;if(!s)return y.value==="rtl"?"bottomRight":"bottomLeft";if(s.includes("Center")){var a=s.slice(0,s.indexOf("Center"));return St(!s.includes("Center"),"Dropdown","You are using '".concat(s,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return s}),l=function(a){u("update:visible",a),u("visibleChange",a)};return function(){var s,a,g=t.arrow,m=t.trigger,d=t.disabled,c=t.overlayClassName,b=(s=i.default)===null||s===void 0?void 0:s.call(i)[0],_=At(b,wn({class:Se(b==null||(a=b.props)===null||a===void 0?void 0:a.class,R({},"".concat(o.value,"-rtl"),y.value==="rtl"),"".concat(o.value,"-trigger"))},d?{disabled:d}:{})),P=Se(c,R({},"".concat(o.value,"-rtl"),y.value==="rtl")),w=d?[]:m,M;w&&w.indexOf("contextmenu")!==-1&&(M=!0);var O=Sn({arrowPointAtCenter:An(g)==="object"&&g.pointAtCenter,autoAdjustOverflow:!0}),B=En(ne(ne(ne({},t),r),{},{builtinPlacements:O,overlayClassName:P,arrow:g,alignPoint:M,prefixCls:o.value,getPopupContainer:A.value,transitionName:E.value,trigger:w,onVisibleChange:l,placement:v.value}),["overlay","onUpdate:visible"]);return h(kn,B,{default:function(){return[_]},overlay:S})}}});rn.Button=Te;const oe=rn;var Pi=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},xi=le({compatConfig:{MODE:3},name:"ACheckableTag",props:Pi(),setup:function(t,n){var i=n.slots,r=n.emit,u=Ne("tag",t),p=u.prefixCls,o=function(A){var E=t.checked;r("update:checked",!E),r("change",!E),r("click",A)},f=H(function(){var y;return Se(p.value,(y={},R(y,"".concat(p.value,"-checkable"),!0),R(y,"".concat(p.value,"-checkable-checked"),t.checked),y))});return function(){var y;return h("span",{class:f.value,onClick:o},[(y=i.default)===null||y===void 0?void 0:y.call(i)])}}});const qe=xi;var $i=new RegExp("^(".concat(_n.join("|"),")(-inverse)?$")),Li=new RegExp("^(".concat(On.join("|"),")$")),Mi=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:he.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:he.any}},we=le({compatConfig:{MODE:3},name:"ATag",props:Mi(),slots:["closeIcon","icon"],setup:function(t,n){var i=n.slots,r=n.emit,u=n.attrs,p=Ne("tag",t),o=p.prefixCls,f=p.direction,y=U(!0);In(function(){t.visible!==void 0&&(y.value=t.visible)});var A=function(l){l.stopPropagation(),r("update:visible",!1),r("close",l),!l.defaultPrevented&&t.visible===void 0&&(y.value=!1)},E=H(function(){var v=t.color;return v?$i.test(v)||Li.test(v):!1}),S=H(function(){var v;return Se(o.value,(v={},R(v,"".concat(o.value,"-").concat(t.color),E.value),R(v,"".concat(o.value,"-has-color"),t.color&&!E.value),R(v,"".concat(o.value,"-hidden"),!y.value),R(v,"".concat(o.value,"-rtl"),f.value==="rtl"),v))});return function(){var v,l,s,a=t.icon,g=a===void 0?(v=i.icon)===null||v===void 0?void 0:v.call(i):a,m=t.color,d=t.closeIcon,c=d===void 0?(l=i.closeIcon)===null||l===void 0?void 0:l.call(i):d,b=t.closable,_=b===void 0?!1:b,P=function(){return _?c?h("span",{class:"".concat(o.value,"-close-icon"),onClick:A},[c]):h(xn,{class:"".concat(o.value,"-close-icon"),onClick:A},null):null},w={backgroundColor:m&&!E.value?m:void 0},M=g||null,O=(s=i.default)===null||s===void 0?void 0:s.call(i),B=M?h(ee,null,[M,h("span",null,[O])]):O,k="onClick"in u,x=h("span",{class:S.value,style:w},[B,P()]);return k?h(Pn,null,{default:function(){return[x]}}):x}}});we.CheckableTag=qe;we.install=function(e){return e.component(we.name,we),e.component(qe.name,qe),e};const an=we;oe.Button=Te;oe.install=function(e){return e.component(oe.name,oe),e.component(Te.name,Te),e};var Ti=["class","style"],Ni=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:he.any,delay:Number,indicator:he.any}},Pe=null;function zi(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Ma(e){var t=e.indicator;Pe=typeof t=="function"?t:function(){return h(t,null,null)}}const Ta=le({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:nt(Ni(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:$n("configProvider",Ln)}},data:function(){var t=this.spinning,n=this.delay,i=zi(t,n);return{sSpinning:t&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var t=this;rt(function(){t.debouncifyUpdateSpinning(),t.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(t){var n=t||this.$props,i=n.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=ue(this.originalUpdateSpinning,i))},updateSpinning:function(){var t=this.spinning,n=this.sSpinning;n!==t&&(this.sSpinning=t)},cancelExistingSpin:function(){var t=this.updateSpinning;t&&t.cancel&&t.cancel()},renderIndicator:function(t){var n="".concat(t,"-dot"),i=Mn(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),Re(i)?kt(i,{class:n}):Pe&&Re(Pe())?kt(Pe(),{class:n}):h("span",{class:"".concat(n," ").concat(t,"-dot-spin")},[h("i",{class:"".concat(t,"-dot-item")},null),h("i",{class:"".concat(t,"-dot-item")},null),h("i",{class:"".concat(t,"-dot-item")},null),h("i",{class:"".concat(t,"-dot-item")},null)]))}},render:function(){var t,n,i,r=this.$props,u=r.size,p=r.prefixCls,o=r.tip,f=o===void 0?(t=(n=this.$slots).tip)===null||t===void 0?void 0:t.call(n):o,y=r.wrapperClassName,A=this.$attrs,E=A.class,S=A.style,v=Jt(A,Ti),l=this.configProvider,s=l.getPrefixCls,a=l.direction,g=s("spin",p),m=this.sSpinning,d=(i={},R(i,g,!0),R(i,"".concat(g,"-sm"),u==="small"),R(i,"".concat(g,"-lg"),u==="large"),R(i,"".concat(g,"-spinning"),m),R(i,"".concat(g,"-show-text"),!!f),R(i,"".concat(g,"-rtl"),a==="rtl"),R(i,E,!!E),i),c=h("div",ne(ne({},v),{},{style:S,class:d}),[this.renderIndicator(g),f?h("div",{class:"".concat(g,"-text")},[f]):null]),b=Tn(this);if(b&&b.length){var _,P=(_={},R(_,"".concat(g,"-container"),!0),R(_,"".concat(g,"-blur"),m),_);return h("div",{class:["".concat(g,"-nested-loading"),y]},[m&&h("div",{key:"loading"},[c]),h("div",{class:P,key:"container"},[b])])}return c}});var Bi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Fi=Bi;function $t(e){for(var t=1;t{document.addEventListener(...e),at(()=>document.removeEventListener(...e))},er="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==",_e=new WeakMap;function tr(e,t){return{useHookShareState:i=>{const r=Qn();Je(r),_e.has(r)||(_e.set(r,Yt(e(r,i??(t==null?void 0:t())))),at(()=>{_e.delete(r)}));const u=_e.get(r);return Je(u),{state:u,toRefs(){return Dn(u)}}}}}var nr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const ir=nr;function Tt(e){for(var t=1;t(await Ee.value.get("/files",{params:{folder_path:e}})).data,$r=async e=>(await Ee.value.post("/delete_files",{file_paths:e})).data,un=async(e,t,n)=>(await Ee.value.post("/move_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Lr=async(e,t,n)=>(await Ee.value.post("/copy_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Mr=async e=>{await Ee.value.post("/mkdirs",{dest_folder:e})};var cn={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(n,i){e.exports=i})(jn,function(){var n={};n.version="0.3.5";var i=n.settings={minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(l){var s,a;for(s in l)a=l[s],a!==void 0&&l.hasOwnProperty(s)&&(i[s]=a);return this},n.status=null,n.set=function(l){var s=n.isStarted();l=r(l,i.minimum,1),n.status=l===1?null:l;var a=n.render(!s),g=a.querySelector(i.barSelector),m=i.speed,d=i.easing;return a.offsetWidth,o(function(c){i.positionUsing===""&&(i.positionUsing=n.getPositioningCSS()),f(g,p(l,m,d)),l===1?(f(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout(function(){f(a,{transition:"all "+m+"ms linear",opacity:0}),setTimeout(function(){n.remove(),c()},m)},m)):setTimeout(c,m)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var l=function(){setTimeout(function(){n.status&&(n.trickle(),l())},i.trickleSpeed)};return i.trickle&&l(),this},n.done=function(l){return!l&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(l){var s=n.status;return s?s>1?void 0:(typeof l!="number"&&(s>=0&&s<.2?l=.1:s>=.2&&s<.5?l=.04:s>=.5&&s<.8?l=.02:s>=.8&&s<.99?l=.005:l=0),s=r(s+l,0,.994),n.set(s)):n.start()},n.trickle=function(){return n.inc()},function(){var l=0,s=0;n.promise=function(a){return!a||a.state()==="resolved"?this:(s===0&&n.start(),l++,s++,a.always(function(){s--,s===0?(l=0,n.done()):n.set((l-s)/l)}),this)}}(),n.getElement=function(){var l=n.getParent();if(l){var s=Array.prototype.slice.call(l.querySelectorAll(".nprogress")).filter(function(a){return a.parentElement===l});if(s.length>0)return s[0]}return null},n.getParent=function(){if(i.parent instanceof HTMLElement)return i.parent;if(typeof i.parent=="string")return document.querySelector(i.parent)},n.render=function(l){if(n.isRendered())return n.getElement();A(document.documentElement,"nprogress-busy");var s=document.createElement("div");s.id="nprogress",s.className="nprogress",s.innerHTML=i.template;var a=s.querySelector(i.barSelector),g=l?"-100":u(n.status||0),m=n.getParent(),d;return f(a,{transition:"all 0 linear",transform:"translate3d("+g+"%,0,0)"}),i.showSpinner||(d=s.querySelector(i.spinnerSelector),d&&v(d)),m!=document.body&&A(m,"nprogress-custom-parent"),m.appendChild(s),s},n.remove=function(){n.status=null,E(document.documentElement,"nprogress-busy"),E(n.getParent(),"nprogress-custom-parent");var l=n.getElement();l&&v(l)},n.isRendered=function(){return!!n.getElement()},n.getPositioningCSS=function(){var l=document.body.style,s="WebkitTransform"in l?"Webkit":"MozTransform"in l?"Moz":"msTransform"in l?"ms":"OTransform"in l?"O":"";return s+"Perspective"in l?"translate3d":s+"Transform"in l?"translate":"margin"};function r(l,s,a){return la?a:l}function u(l){return(-1+l)*100}function p(l,s,a){var g;return i.positionUsing==="translate3d"?g={transform:"translate3d("+u(l)+"%,0,0)"}:i.positionUsing==="translate"?g={transform:"translate("+u(l)+"%,0)"}:g={"margin-left":u(l)+"%"},g.transition="all "+s+"ms "+a,g}var o=function(){var l=[];function s(){var a=l.shift();a&&a(s)}return function(a){l.push(a),l.length==1&&s()}}(),f=function(){var l=["Webkit","O","Moz","ms"],s={};function a(c){return c.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(b,_){return _.toUpperCase()})}function g(c){var b=document.body.style;if(c in b)return c;for(var _=l.length,P=c.charAt(0).toUpperCase()+c.slice(1),w;_--;)if(w=l[_]+P,w in b)return w;return c}function m(c){return c=a(c),s[c]||(s[c]=g(c))}function d(c,b,_){b=m(b),c.style[b]=_}return function(c,b){var _=arguments,P,w;if(_.length==2)for(P in b)w=b[P],w!==void 0&&b.hasOwnProperty(P)&&d(c,P,w);else d(c,_[1],_[2])}}();function y(l,s){var a=typeof l=="string"?l:S(l);return a.indexOf(" "+s+" ")>=0}function A(l,s){var a=S(l),g=a+s;y(a,s)||(l.className=g.substring(1))}function E(l,s){var a=S(l),g;y(l,s)&&(g=a.replace(" "+s+" "," "),l.className=g.substring(1,g.length-1))}function S(l){return(" "+(l&&l.className||"")+" ").replace(/\s+/gi," ")}function v(l){l&&l.parentNode&&l.parentNode.removeChild(l)}return n})})(cn);var Tr=cn.exports;const Nr=Vn(Tr),zr=e=>{const t=U("");return new Promise(n=>{fe.confirm({title:j("inputFolderName"),content:()=>h(Un,{value:t.value,"onUpdate:value":i=>t.value=i},null),async onOk(){if(!t.value)return;const i=ze(e,t.value);await Mr(i),n()}})})},dn=()=>h("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[N("Tips: "),j("multiSelectTips")]),Vt=["blue","cyan","gold","green","lime","magenta","orange","pink","purple","red","yellow","error","success","warning","processing","geekblue","volcano"],yt=Hn("useTagStore",()=>{const e=Be(),t=new Set,n=Yt(new Map),i=async o=>{if(o=o.filter(f=>!t.has(f)&&!n.has(f)),!!o.length)try{o.forEach(y=>n.set(y,[]));const f=await Ai(o);for(const y in f)n.set(y,f[y])}finally{o.forEach(f=>t.delete(f))}},r=new Map;return{tagMap:n,q:e,getColor:o=>{let f=r.get(o);if(!f){const y=Ct.hash.sha256.hash(o),A=parseInt(Ct.codec.hex.fromBits(y),16)%Vt.length;f=Vt[A],r.set(o,f)}return f},fetchImageTags:i,refreshTags:async o=>{o.forEach(f=>n.delete(f)),await i(o)}}});function Ue(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Re(e)}const He=new Map,D=Fe(),fn=yt(),Ut=Wn(),Oe=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:xe,useEventListen:Ke}=qt(),{useHookShareState:ae}=tr((e,{images:t})=>{const n=U({tabIdx:-1,paneIdx:-1}),i=H(()=>pe(r.value)),r=U([]),u=H(()=>{var s;return r.value.map(a=>a.curr).slice((s=D.conf)!=null&&s.is_win?1:0)}),p=H(()=>ze(...u.value)),o=U(D.defaultSortingMethod),f=H(()=>{var d;if(t.value)return t.value;if(!i.value)return[];const s=((d=i.value)==null?void 0:d.files)??[],a=o.value,{walkFiles:g}=i.value,m=c=>D.onlyFoldersAndImages?c.filter(b=>b.type==="dir"||K(b.name)):c;return n.value.walkModePath?g?g.map(c=>be(m(c),a)).flat():be(m(s),a):be(m(s),a)}),y=U([]),A=U(-1),E=U(!0),S=U(!1),v=U(!1),l=()=>{var s,a,g;return(g=(a=(s=D.tabList)==null?void 0:s[n.value.tabIdx])==null?void 0:a.panes)==null?void 0:g[n.value.paneIdx]};return{previewing:v,spinning:S,canLoadNext:E,multiSelectedIdxs:y,previewIdx:A,basePath:u,currLocation:p,currPage:i,stack:r,sortMethod:o,sortedFiles:f,scroller:U(),stackViewEl:U(),props:n,getPane:l,...qt()}},()=>({images:U()}));function Ba(e){const{previewIdx:t,eventEmitter:n,canLoadNext:i,previewing:r,sortedFiles:u,scroller:p}=ae().toRefs(),{state:o}=ae();let f=null;const y=(v,l)=>{var s;r.value=v,f!=null&&!v&&l&&((s=p.value)==null||s.scrollToItem(f),f=null)},A=()=>{e.walkModePath&&!S("next")&&i&&(te.info(j("loadingNextFolder")),n.value.emit("loadNextDir",!0))};me("keydown",v=>{var l;if(r.value){let s=t.value;if(["ArrowDown","ArrowRight"].includes(v.key))for(s++;u.value[s]&&!K(u.value[s].name);)s++;else if(["ArrowUp","ArrowLeft"].includes(v.key))for(s--;u.value[s]&&!K(u.value[s].name);)s--;if(K((l=u.value[s])==null?void 0:l.name)??""){t.value=s;const a=p.value;a&&!(s>=a.$_startIndex&&s<=a.$_endIndex)&&(f=s)}A()}});const E=v=>{var s;let l=t.value;if(v==="next")for(l++;u.value[l]&&!K(u.value[l].name);)l++;else if(v==="prev")for(l--;u.value[l]&&!K(u.value[l].name);)l--;if(K((s=u.value[l])==null?void 0:s.name)??""){t.value=l;const a=p.value;a&&!(l>=a.$_startIndex&&l<=a.$_endIndex)&&(f=l)}A()},S=v=>{var s;let l=t.value;if(v==="next")for(l++;u.value[l]&&!K(u.value[l].name);)l++;else if(v==="prev")for(l--;u.value[l]&&!K(u.value[l].name);)l--;return K((s=u.value[l])==null?void 0:s.name)??""};return Ke("removeFiles",async()=>{var v;r.value&&!o.sortedFiles[t.value]&&(te.info(j("manualExitFullScreen"),5),await lt(500),(v=document.querySelector(".ant-image-preview-operations-operation .anticon-close"))==null||v.click(),t.value=-1)}),{previewIdx:t,onPreviewVisibleChange:y,previewing:r,previewImgMove:E,canPreview:S}}function Fa(e){const t=U(),{scroller:n,stackViewEl:i,stack:r,currPage:u,currLocation:p,sortMethod:o,useEventListen:f,eventEmitter:y,getPane:A,multiSelectedIdxs:E,sortedFiles:S}=ae().toRefs();ge(()=>r.value.length,ue((C,$)=>{var F;C!==$&&((F=n.value)==null||F.scrollToItem(0))},300));const v=async C=>{if(await m(C),e.walkModePath){await lt();const[$]=be(u.value.files,o.value).filter(F=>F.type==="dir");$&&await m($.fullpath),await y.value.emit("loadNextDir")}};Kt(async()=>{var C;if(!r.value.length){const $=await ye("/");r.value.push({files:$.files,curr:"/"})}t.value=new Nr,t.value.configure({parent:i.value}),e.path&&e.path!=="/"?await v(e.walkModePath??e.path):(C=D.conf)!=null&&C.home&&m(D.conf.home)}),ge(p,ue(C=>{const $=A.value();if(!$)return;$.path=C;const F=$.path.split("/").pop(),W=(()=>{var Z;if(!e.walkModePath){const Y=Ie(C);for(const[ce,de]of Object.entries(D.pathAliasMap))if(Y.startsWith(de))return Y.replace(de,ce);return F}return"Walk: "+(((Z=D.quickMovePaths.find(Y=>Y.dir===$.walkModePath))==null?void 0:Z.zh)??F)})();$.name=Qe("div",{style:"display:flex;align-items:center"},[Qe(ur),Qe("span",{class:"line-clamp-1",style:"max-width: 256px"},W)]),$.nameFallbackStr=W,D.recent=D.recent.filter(Z=>Z.key!==$.key),D.recent.unshift({path:C,key:$.key}),D.recent.length>20&&(D.recent=D.recent.slice(0,20))},300));const l=()=>Me(p.value),s=async C=>{var $,F;if(C.type==="dir")try{($=t.value)==null||$.start();const{files:X}=await ye(C.fullpath);r.value.push({files:X,curr:C.name})}finally{(F=t.value)==null||F.done()}},a=C=>{for(;C(Je(D.conf,"global.conf load failed"),D.conf.is_win?C.toLowerCase()==$.toLowerCase():C==$),m=async C=>{var F,X;const $=r.value.slice();try{Rn(C)||(C=ze(((F=D.conf)==null?void 0:F.sd_cwd)??"/",C));const W=_t(C),Z=r.value.map(Y=>Y.curr);for(Z.shift();Z[0]&&W[0]&&g(Z[0],W[0]);)Z.shift(),W.shift();for(let Y=0;Yg(de.name,Y));if(!ce)throw console.error({frags:W,frag:Y,stack:Gt(r.value)}),new Error(`${Y} not found`);await s(ce)}}catch(W){throw te.error(j("moveFailedCheckPath")+(W instanceof Error?W.message:"")),console.error(C,_t(C),u.value),r.value=$,W}},d=Ot(async()=>{var C,$,F;try{if((C=t.value)==null||C.start(),e.walkModePath)a(0),await v(e.walkModePath);else{const{files:X}=await ye(r.value.length===1?"/":p.value);pe(r.value).files=X}($=n.value)==null||$.scrollToItem(0),te.success(j("refreshCompleted"))}finally{(F=t.value)==null||F.done()}});Jn("returnToIIB",Ot(async()=>{var C,$;if(!e.walkModePath)try{(C=t.value)==null||C.start();const{files:F}=await ye(r.value.length===1?"/":p.value);pe(r.value).files.map(W=>W.date).join()!==F.map(W=>W.date).join()&&(pe(r.value).files=F,te.success(j("autoUpdate")))}finally{($=t.value)==null||$.done()}})),f.value("refresh",d);const c=C=>{e.walkModePath&&(A.value().walkModePath=C),v(C)},b=H(()=>D.quickMovePaths.map(C=>({...C,path:Ie(C.dir)}))),_=H(()=>{const C=Ie(p.value);return b.value.find(F=>F.path===C)}),P=async()=>{const C=_.value;if(C){if(!C.can_delete)return;await Ei(p.value),te.success(j("removeComplete"))}else await ki(p.value),te.success(j("addComplete"));It.emit("searchIndexExpired"),It.emit("updateGlobalSetting")},w=U(!1),M=U(p.value),O=()=>{w.value=!0,M.value=p.value},B=async()=>{await m(M.value),w.value=!1};me("click",()=>{w.value=!1});const k=()=>{const C=parent.location,$=C.href.substring(0,C.href.length-C.search.length),F=new URLSearchParams(C.search);F.set("action","open"),F.set("path",p.value);const X=`${$}?${F.toString()}`;Me(X,j("copyLocationUrlSuccessMsg"))},x=()=>{console.log(`select all 0 -> ${S.value.length}`),E.value=sn(0,S.value.length)};return f.value("selectAll",x),{locInputValue:M,isLocationEditing:w,onLocEditEnter:B,onEditBtnClick:O,addToSearchScanPathAndQuickMove:P,searchPathInfo:_,refresh:d,copyLocation:l,back:a,openNext:s,currPage:u,currLocation:p,to:m,stack:r,scroller:n,share:k,selectAll:x,quickMoveTo:c,onCreateFloderBtnClick:async()=>{await zr(p.value),await d()}}}function Da(e){const{scroller:t,sortedFiles:n,stack:i,sortMethod:r,currLocation:u,currPage:p,stackViewEl:o,canLoadNext:f,previewIdx:y}=ae().toRefs(),{state:A}=ae(),E=U(!1),S=U(D.defaultGridCellWidth),v=H(()=>S.value+16),l=44,{width:s}=Yn(o),a=H(()=>~~(s.value/v.value)),g=H(()=>{const P=v.value;return{first:P+(S.value<=160?0:l),second:P}}),m=U(!1),d=async()=>{var P;if(!(m.value||!e.walkModePath||!f.value))try{m.value=!0;const w=i.value[i.value.length-2],M=be(w.files,r.value),O=M.findIndex(B=>{var k;return B.name===((k=p.value)==null?void 0:k.curr)});if(O!==-1){const B=M[O+1],k=ze(u.value,"../",B.name),x=await ye(k),Q=p.value;Q.curr=B.name,Q.walkFiles||(Q.walkFiles=[Q.files]),Q.walkFiles.push(x.files),console.log("curr page files length",(P=p.value)==null?void 0:P.files.length)}}catch(w){console.error("loadNextDir",w),f.value=!1}finally{m.value=!1}},c=async(P=!1)=>{const w=t.value,M=()=>P?y.value:(w==null?void 0:w.$_endIndex)??0;for(;!n.value.length||M()>n.value.length-20&&f.value;)await lt(100),await d()};A.useEventListen("loadNextDir",c);const b=()=>{const P=t.value;if(P){const w=n.value.slice(Math.max(P.$_startIndex-10,0),P.$_endIndex+10).filter(M=>M.is_under_scanned_path&&K(M.name)).map(M=>M.fullpath);fn.fetchImageTags(w)}};ge(u,ue(b,150));const _=ue(()=>{c(),b()},300);return{gridItems:a,sortedFiles:n,sortMethodConv:qn,moreActionsDropdownShow:E,gridSize:v,sortMethod:r,onScroll:_,loadNextDir:d,loadNextDirLoading:m,canLoadNext:f,itemSize:g,cellWidth:S,onViewedImagesChange:b}}function Qa(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:i,eventEmitter:r}=ae().toRefs(),u=()=>{i.value=[]};return me("click",u),me("blur",u),ge(n,u),{onFileDragStart:(y,A)=>{const E=Gt(t.value[A]);Ut.fileDragging=!0,console.log("onFileDragStart set drag file ",y,A,E);const S=[E];let v=E.type==="dir";if(i.value.includes(A)){const s=i.value.map(a=>t.value[a]);S.push(...s),v=s.some(a=>a.type==="dir")}const l={includeDir:v,loc:e.value||"search-result",path:Pt(S,"fullpath").map(s=>s.fullpath),nodes:Pt(S,"fullpath"),__id:"FileTransferData"};y.dataTransfer.setData("text/plain",JSON.stringify(l))},onDrop:async y=>{const A=Xn(y);if(!A)return;const E=e.value;if(A.loc===E)return;const S=Be(),v=async()=>S.pushAction(async()=>{await Lr(A.path,E),r.value.emit("refresh"),fe.destroyAll()}),l=()=>S.pushAction(async()=>{await un(A.path,E),xe.emit("removeFiles",{paths:A.path,loc:A.loc}),r.value.emit("refresh"),fe.destroyAll()});fe.confirm({title:j("confirm")+"?",width:"60vw",content:()=>{let s,a,g;return h("div",null,[h("div",null,[`${j("moveSelectedFilesTo")} ${E}`,h("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[A.path.map(m=>h("li",null,[m.split(/[/\\]/).pop()]))])]),h(dn,null,null),h("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[h(se,{onClick:fe.destroyAll},Ue(s=j("cancel"))?s:{default:()=>[s]}),h(se,{type:"primary",loading:!S.isIdle,onClick:v},Ue(a=j("copy"))?a:{default:()=>[a]}),h(se,{type:"primary",loading:!S.isIdle,onClick:l},Ue(g=j("move"))?g:{default:()=>[g]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:i,onFileDragEnd:()=>{Ut.fileDragging=!1}}}function ja(e,{openNext:t}){const n=U(!1),i=U(""),{sortedFiles:r,previewIdx:u,multiSelectedIdxs:p,stack:o,currLocation:f,spinning:y,previewing:A,stackViewEl:E,eventEmitter:S}=ae().toRefs(),v=Ie;Ke("removeFiles",({paths:m,loc:d})=>{if(v(d)!==v(f.value))return;const c=pe(o.value);c&&(c.files=c.files.filter(b=>!m.includes(b.fullpath)),c.walkFiles&&(c.walkFiles=c.walkFiles.map(b=>b.filter(_=>!m.includes(_.fullpath)))))}),Ke("addFiles",({files:m,loc:d})=>{if(v(d)!==v(f.value))return;const c=pe(o.value);c&&c.files.unshift(...m)});const l=Be(),s=async(m,d,c)=>{u.value=c,D.fullscreenPreviewInitialUrl=re(d);const b=p.value.indexOf(c);if(m.shiftKey){if(b!==-1)p.value.splice(b,1);else{p.value.push(c),p.value.sort((w,M)=>w-M);const _=p.value[0],P=p.value[p.value.length-1];p.value=sn(_,P+1)}m.stopPropagation()}else m.ctrlKey||m.metaKey?(b!==-1?p.value.splice(b,1):p.value.push(c),m.stopPropagation()):await t(d)},a=async(m,d,c)=>{var M,O,B;const b=re(d),_=f.value,P=()=>{let k=[];return p.value.includes(c)?k=p.value.map(x=>r.value[x]):k.push(d),k},w=async k=>{if(!y.value)try{y.value=!0,await ti(d.fullpath),Oe.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}));const x=setTimeout(()=>ni.warn({message:j("long_loading"),duration:20}),5e3);await ii(),clearTimeout(x),Oe.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:`iib_hidden_tab_${k}`}))}catch(x){console.error(x),te.error("发送图像失败,请携带console的错误消息找开发者")}finally{y.value=!1}};if(`${m.key}`.startsWith("toggle-tag-")){const k=+`${m.key}`.split("toggle-tag-")[1],{is_remove:x}=await Ci({tag_id:k,img_path:d.fullpath}),Q=(O=(M=D.conf)==null?void 0:M.all_custom_tags.find(C=>C.id===k))==null?void 0:O.name;fn.refreshTags([d.fullpath]),te.success(j(x?"removedTagFromImage":"addedTagToImage",{tag:Q}));return}switch(m.key){case"previewInNewWindow":return window.open(b);case"download":return window.open(re(d,!0));case"copyPreviewUrl":return Me(parent.document.location.origin+b);case"send2txt2img":return w("txt2img");case"send2img2img":return w("img2img");case"send2inpaint":return w("inpaint");case"send2extras":return w("extras");case"send2savedDir":{const k=D.quickMovePaths.find(C=>C.key==="outdir_save");if(!k)return te.error(j("unknownSavedDir"));const x=ei(k.dir,(B=D.conf)==null?void 0:B.sd_cwd),Q=P();await un(Q.map(C=>C.fullpath),x,!0),xe.emit("removeFiles",{paths:Q.map(C=>C.fullpath),loc:f.value}),xe.emit("addFiles",{files:Q,loc:x});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const k=m.key.split("-")[1];Oe.postMessage(JSON.stringify({event:"send_to_control_net",type:k,url:re(d)}));break}case"send2outpaint":{i.value=await l.pushAction(()=>Ye(d.fullpath)).res;const[k,x]=(i.value||"").split(` +`);Oe.postMessage(JSON.stringify({event:"send_to_outpaint",url:re(d),prompt:k,negPrompt:x.slice(17)}));break}case"openWithWalkMode":{He.set(_,o.value);const k=D.tabList[e.tabIdx],x={type:"local",key:ke(),path:d.fullpath,name:j("local"),stackKey:_,walkModePath:d.fullpath};k.panes.push(x),k.key=x.key;break}case"openInNewTab":{He.set(_,o.value);const k=D.tabList[e.tabIdx],x={type:"local",key:ke(),path:d.fullpath,name:j("local"),stackKey:_};k.panes.push(x),k.key=x.key;break}case"openOnTheRight":{He.set(_,o.value);let k=D.tabList[e.tabIdx+1];k||(k={panes:[],key:"",id:ke()},D.tabList[e.tabIdx+1]=k);const x={type:"local",key:ke(),path:d.fullpath,name:j("local"),stackKey:_};k.panes.push(x),k.key=x.key;break}case"viewGenInfo":{n.value=!0,i.value=await l.pushAction(()=>Ye(d.fullpath)).res;break}case"openWithLocalFileBrowser":{await Zn(d.fullpath);break}case"deleteFiles":{const k=P();await new Promise(x=>{fe.confirm({title:j("confirmDelete"),maskClosable:!0,width:"60vw",content:h("div",null,[h("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[k.map(Q=>h("li",null,[Q.fullpath.split(/[/\\]/).pop()]))]),h(dn,null,null)]),async onOk(){const Q=k.map(C=>C.fullpath);await $r(Q),te.success(j("deleteSuccess")),xe.emit("removeFiles",{paths:Q,loc:f.value}),x()}})});break}}return{}},{isOutside:g}=Kn(E);return me("keydown",m=>{var c,b,_;const d=Si(m);if(A.value){const P=(c=Object.entries(D.shortcut).find(w=>w[1]===d&&w[1]))==null?void 0:c[0];if(P){m.stopPropagation(),m.preventDefault();const w=u.value,M=r.value[w];switch(P){case"delete":return re(M)===D.fullscreenPreviewInitialUrl?te.warn(j("fullscreenRestriction")):a({key:"deleteFiles"},M,w);default:{const O=(b=/^toggle_tag_(.*)$/.exec(P))==null?void 0:b[1],B=(_=D.conf)==null?void 0:_.all_custom_tags.find(k=>k.name===O);return B?a({key:`toggle-tag-${B.id}`},M,w):void 0}}}}else!g.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(d)&&(m.preventDefault(),m.stopPropagation(),S.value.emit("selectAll"))}),{onFileItemClick:s,onContextMenuClick:a,showGenInfo:n,imageGenInfo:i,q:l}}const Va=()=>{const{stackViewEl:e}=ae().toRefs(),t=U(-1);return Gn(e,n=>{var r;let i=n.target;for(;i.parentElement;)if(i=i.parentElement,i.tagName.toLowerCase()==="li"&&i.classList.contains("file-item-trigger")){const u=(r=i.dataset)==null?void 0:r.idx;u&&Number.isSafeInteger(+u)&&(t.value=+u);return}}),{showMenuIdx:t}};function Br(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let $e;function Ge(){Ge.init||(Ge.init=!0,$e=Br()!==-1)}var De={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ge(),rt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",$e&&this.$el.appendChild(e),e.data="about:blank",$e||this.$el.appendChild(e)},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&&(!$e&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Fr=li();ri("data-v-b329ee4c");const Dr={class:"resize-observer",tabindex:"-1"};ai();const Qr=Fr((e,t,n,i,r,u)=>(L(),J("div",Dr)));De.render=Qr;De.__scopeId="data-v-b329ee4c";De.__file="src/components/ResizeObserver.vue";function Le(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Le=function(t){return typeof t}:Le=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(e)}function jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},i,r,u,p=function(f){for(var y=arguments.length,A=new Array(y>1?y-1:0),E=1;E1){var y=o.find(function(E){return E.isIntersecting});y&&(f=y)}if(r.callback){var A=f.isIntersecting&&f.intersectionRatio>=r.threshold;if(A===r.oldResult)return;r.oldResult=A,r.callback(A,f)}},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}}]),e}();function pn(e,t,n){var i=t.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 qr(e,i,n);e._vue_visibilityState=r}}function Kr(e,t,n){var i=t.value,r=t.oldValue;if(!vn(i,r)){var u=e._vue_visibilityState;if(!i){hn(e);return}u?u.createObserver(i,n):pn(e,{value:i},n)}}function hn(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Gr={beforeMount:pn,updated:Kr,unmounted:hn},Xr={itemsLimit:1e3},Zr=/(auto|scroll)/;function gn(e,t){return e.parentNode===null?t:gn(e.parentNode,t.concat([e]))}var We=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},ea=function(t){return We(t,"overflow")+We(t,"overflow-y")+We(t,"overflow-x")},ta=function(t){return Zr.test(ea(t))};function Rt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=gn(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,r){const u=si({id:aa++,index:t,used:!0,key:i,type:r}),p=oi({item:n,position:0,nr:u});return e.push(p),p},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let r=n.get(i);r||(r=[],n.set(i,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,r=this.itemSecondarySize||n,u=this.$_computedMinItemSize,p=this.typeField,o=this.simpleArray?null:this.keyField,f=this.items,y=f.length,A=this.sizes,E=this.$_views,S=this.$_unusedViews,v=this.pool,l=this.itemIndexByKey;let s,a,g,m,d;if(!y)s=a=m=d=g=0;else if(this.$_prerender)s=m=0,a=d=Math.min(this.prerender,f.length),g=null;else{const O=this.getScroll();if(t){let x=O.start-this.$_lastUpdateScrollPosition;if(x<0&&(x=-x),n===null&&xO.start&&(C=$),$=~~((Q+C)/2);while($!==F);for($<0&&($=0),s=$,g=A[y-1].accumulator,a=$;ay&&(a=y)),m=s;my&&(a=y),m<0&&(m=0),d>y&&(d=y),g=Math.ceil(y/i)*n}}a-s>Xr.itemsLimit&&this.itemsLimitError(),this.totalSize=g;let c;const b=s<=this.$_endIndex&&a>=this.$_startIndex;if(b)for(let O=0,B=v.length;O=a)&&this.unuseView(c));const _=b?null:new Map;let P,w,M;for(let O=s;O=k.length)&&(c=this.addView(v,O,P,B,w),this.unuseView(c,!0),k=S.get(w)),c=k[M],_.set(w,M+1)),E.delete(c.nr.key),c.nr.used=!0,c.nr.index=O,c.nr.key=B,c.nr.type=w,E.set(B,c),x=!0;else if(!c.nr.used&&(c.nr.used=!0,c.nr.index=O,x=!0,k)){const Q=k.indexOf(c);Q!==-1&&k.splice(Q,1)}c.item=P,x&&(O===f.length-1&&this.$emit("scroll-end"),O===0&&this.$emit("scroll-start")),n===null?(c.position=A[O-1].accumulator,c.offset=0):(c.position=Math.floor(O/i)*n,c.offset=O%i*r)}return this.$_startIndex=s,this.$_endIndex=a,this.emitUpdate&&this.$emit("update",s,a,m,d),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=Rt(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const r=e.getBoundingClientRect(),u=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>u&&(o=u-p),i={start:p,end:p+o}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,et?{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(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,r;if(this.pageMode){const u=Rt(this.$el),p=u.tagName==="HTML"?0:u[t.scroll],o=u.getBoundingClientRect(),y=this.$el.getBoundingClientRect()[t.start]-o[t.start];n=u,i=t.scroll,r=e+p+y}else n=this.$el,i=t.scroll,r=e;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((e,t)=>e.nr.index-t.nr.index)}}};const la={key:0,ref:"before",class:"vue-recycle-scroller__slot"},sa={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function oa(e,t,n,i,r,u){const p=ui("ResizeObserver"),o=ci("observe-visibility");return di((L(),V("div",{class:Ae(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...f)=>u.handleScroll&&u.handleScroll(...f))},[e.$slots.before?(L(),V("div",la,[Ce(e.$slots,"before")],512)):q("v-if",!0),(L(),J(xt(n.listTag),{ref:"wrapper",style:pi({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Ae(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:I(()=>[(L(!0),V(ee,null,ve(r.pool,f=>(L(),J(xt(n.itemTag),fi({key:f.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${f.position}px) translate${e.direction==="vertical"?"X":"Y"}(${f.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&r.hoverKey===f.nr.key}]]},vi(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=f.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:I(()=>[Ce(e.$slots,"default",{item:f.item,index:f.nr.index,active:f.nr.used})]),_:2},1040,["style","class"]))),128)),Ce(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(L(),V("div",sa,[Ce(e.$slots,"after")],512)):q("v-if",!0),h(p,{onNotify:u.handleResize},null,8,["onNotify"])],34)),[[o,u.handleVisibilityChange]])}mn.render=oa;mn.__file="src/components/RecycleScroller.vue";const tt=le({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Fe(),r=H(()=>{var u;return(((u=i.conf)==null?void 0:u.all_custom_tags)??[]).reduce((p,o)=>[...p,{...o,selected:!!n.selectedTag.find(f=>f.id===o.id)}],[])});return(u,p)=>{const o=Xt,f=hi,y=Zt,A=en;return L(),J(A,{onClick:p[0]||(p[0]=E=>t("contextMenuClick",E,u.file,u.idx))},{default:I(()=>{var E;return[h(o,{key:"deleteFiles",disabled:u.disableDelete},{default:I(()=>[N(T(u.$t("deleteSelected")),1)]),_:1},8,["disabled"]),u.file.type==="dir"?(L(),V(ee,{key:0},[h(o,{key:"openInNewTab"},{default:I(()=>[N(T(u.$t("openInNewTab")),1)]),_:1}),h(o,{key:"openOnTheRight"},{default:I(()=>[N(T(u.$t("openOnTheRight")),1)]),_:1}),h(o,{key:"openWithWalkMode"},{default:I(()=>[N(T(u.$t("openWithWalkMode")),1)]),_:1})],64)):q("",!0),u.file.type==="file"?(L(),V(ee,{key:1},[z(K)(u.file.name)?(L(),V(ee,{key:0},[h(o,{key:"viewGenInfo"},{default:I(()=>[N(T(u.$t("viewGenerationInfo")),1)]),_:1}),h(f),((E=z(i).conf)==null?void 0:E.launch_mode)!=="server"?(L(),V(ee,{key:0},[h(o,{key:"send2txt2img"},{default:I(()=>[N(T(u.$t("sendToTxt2img")),1)]),_:1}),h(o,{key:"send2img2img"},{default:I(()=>[N(T(u.$t("sendToImg2img")),1)]),_:1}),h(o,{key:"send2inpaint"},{default:I(()=>[N(T(u.$t("sendToInpaint")),1)]),_:1}),h(o,{key:"send2extras"},{default:I(()=>[N(T(u.$t("sendToExtraFeatures")),1)]),_:1}),h(y,{key:"sendToThirdPartyExtension",title:u.$t("sendToThirdPartyExtension")},{default:I(()=>[h(o,{key:"send2controlnet-txt2img"},{default:I(()=>[N("ControlNet - "+T(u.$t("t2i")),1)]),_:1}),h(o,{key:"send2controlnet-img2img"},{default:I(()=>[N("ControlNet - "+T(u.$t("i2i")),1)]),_:1}),h(o,{key:"send2outpaint"},{default:I(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),h(o,{key:"send2savedDir"},{default:I(()=>[N(T(u.$t("send2savedDir")),1)]),_:1}),h(f),h(y,{key:"toggle-tag",title:u.$t("toggleTag")},{default:I(()=>[(L(!0),V(ee,null,ve(r.value,S=>(L(),J(o,{key:`toggle-tag-${S.id}`},{default:I(()=>[N(T(S.name)+" ",1),S.selected?(L(),J(z(ln),{key:0})):(L(),J(z(on),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),h(o,{key:"openWithLocalFileBrowser"},{default:I(()=>[N(T(u.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):q("",!0),h(o,{key:"previewInNewWindow"},{default:I(()=>[N(T(u.$t("previewInNewWindow")),1)]),_:1}),h(o,{key:"download"},{default:I(()=>[N(T(u.$t("download")),1)]),_:1}),h(o,{key:"copyPreviewUrl"},{default:I(()=>[N(T(u.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):q("",!0)]}),_:1})}}}),ua=["data-idx"],ca={class:"more"},da={key:0,class:"tags-container"},fa={key:1,class:"preview-icon-wrap"},va={key:2,class:"profile"},pa={class:"name line-clamp-1"},ha={class:"basic-info"},ga=le({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick"],setup(e,{emit:t}){const n=e;gi(o=>({"22f86fa4":o.$props.cellWidth+"px"}));const i=Fe(),r=yt(),u=H(()=>r.tagMap.get(n.file.fullpath)??[]),p=H(()=>{const o=i.gridThumbnailResolution;return i.enableThumbnail?mi(n.file,[o,o].join("x")):re(n.file)});return(o,f)=>{const y=oe,A=yi,E=an;return L(),J(y,{trigger:["contextmenu"],visible:z(i).longPressOpenContextMenu?typeof o.idx=="number"&&o.showMenuIdx===o.idx:void 0,"onUpdate:visible":f[5]||(f[5]=S=>typeof o.idx=="number"&&t("update:showMenuIdx",S?o.idx:-1))},{overlay:I(()=>[h(tt,{file:o.file,idx:o.idx,"selected-tag":u.value,onContextMenuClick:f[4]||(f[4]=(S,v,l)=>t("contextMenuClick",S,v,l))},null,8,["file","idx","selected-tag"])]),default:I(()=>[(L(),V("li",{class:Ae(["file file-item-trigger grid",{clickable:o.file.type==="dir",selected:o.selected}]),"data-idx":o.idx,key:o.file.name,draggable:"true",onDragstart:f[1]||(f[1]=S=>t("dragstart",S,o.idx)),onDragend:f[2]||(f[2]=S=>t("dragend",S,o.idx)),onClickCapture:f[3]||(f[3]=S=>t("fileItemClick",S,o.file,o.idx))},[G("div",null,[h(y,null,{overlay:I(()=>[h(tt,{file:o.file,idx:o.idx,"selected-tag":u.value,onContextMenuClick:f[0]||(f[0]=(S,v,l)=>t("contextMenuClick",S,v,l))},null,8,["file","idx","selected-tag"])]),default:I(()=>[G("div",ca,[h(z(it))])]),_:1}),z(K)(o.file.name)?(L(),V("div",{style:{position:"relative"},key:o.file.fullpath,class:Ae(`idx-${o.idx}`)},[h(A,{src:p.value,fallback:z(er),preview:{src:o.fullScreenPreviewImageUrl,onVisibleChange:(S,v)=>t("previewVisibleChange",S,v)}},null,8,["src","fallback","preview"]),u.value&&o.cellWidth>128?(L(),V("div",da,[(L(!0),V(ee,null,ve(u.value,S=>(L(),J(E,{key:S.id,color:z(r).getColor(S.name)},{default:I(()=>[N(T(S.name),1)]),_:2},1032,["color"]))),128))])):q("",!0)],2)):(L(),V("div",fa,[o.file.type==="file"?(L(),J(z(Ui),{key:0,class:"icon center"})):(L(),J(z(Ji),{key:1,class:"icon center"}))])),o.cellWidth>128?(L(),V("div",va,[G("div",pa,T(o.file.name),1),G("div",ha,[G("div",null,T(o.file.size),1),G("div",null,T(o.file.date),1)])])):q("",!0)])],42,ua))]),_:1},8,["visible"])}}});const Ua=tn(ga,[["__scopeId","data-v-fb2cd509"]]);function ma(e,t,n,i){const r={x:0,y:0};let u=0,p=0,o=typeof(i==null?void 0:i.width)=="number"?i.width:0,f=typeof(i==null?void 0:i.height)=="number"?i.height:0,y=typeof(i==null?void 0:i.left)=="number"?i.left:0,A=typeof(i==null?void 0:i.top)=="number"?i.top:0,E=!1;const S=d=>{d.stopPropagation(),d.preventDefault(),!(!e.value||!t.value)&&(u=d instanceof MouseEvent?d.clientX:d.touches[0].clientX,p=d instanceof MouseEvent?d.clientY:d.touches[0].clientY,o=e.value.offsetWidth,f=e.value.offsetHeight,r.x=t.value.offsetLeft,r.y=t.value.offsetTop,document.documentElement.addEventListener("mousemove",v),document.documentElement.addEventListener("touchmove",v),document.documentElement.addEventListener("mouseup",l),document.documentElement.addEventListener("touchend",l))},v=d=>{if(!e.value||!t.value)return;let c=o+((d instanceof MouseEvent?d.clientX:d.touches[0].clientX)-u),b=f+((d instanceof MouseEvent?d.clientY:d.touches[0].clientY)-p),_=r.x+((d instanceof MouseEvent?d.clientX:d.touches[0].clientX)-u),P=r.y+((d instanceof MouseEvent?d.clientY:d.touches[0].clientY)-p);_+t.value.offsetWidth>window.innerWidth&&(_=window.innerWidth-t.value.offsetWidth),e.value.offsetLeft+c>window.innerWidth&&(c=window.innerWidth-e.value.offsetLeft),P+t.value.offsetHeight>window.innerHeight&&(P=window.innerHeight-t.value.offsetHeight),e.value.offsetTop+b>window.innerHeight&&(b=window.innerHeight-e.value.offsetTop),e.value.style.width=`${c}px`,e.value.style.height=`${b}px`,t.value.style.left=`${_}px`,t.value.style.top=`${P}px`,i!=null&&i.onResize&&i.onResize(c,b)},l=()=>{document.documentElement.removeEventListener("mousemove",v),document.documentElement.removeEventListener("touchmove",v),document.documentElement.removeEventListener("mouseup",l),document.documentElement.removeEventListener("touchend",l)},s=d=>{d.stopPropagation(),d.preventDefault(),!(!e.value||!n.value)&&(E=!0,y=e.value.offsetLeft,A=e.value.offsetTop,u=d instanceof MouseEvent?d.clientX:d.touches[0].clientX,p=d instanceof MouseEvent?d.clientY:d.touches[0].clientY,document.documentElement.addEventListener("mousemove",a),document.documentElement.addEventListener("touchmove",a),document.documentElement.addEventListener("mouseup",g),document.documentElement.addEventListener("touchend",g))},a=d=>{if(!e.value||!n.value||!E)return;const c=y+((d instanceof MouseEvent?d.clientX:d.touches[0].clientX)-u),b=A+((d instanceof MouseEvent?d.clientY:d.touches[0].clientY)-p);c<0?e.value.style.left="0px":c+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${c}px`,b<0?e.value.style.top="0px":b+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${b}px`,i!=null&&i.onDrag&&i.onDrag(c,b)},g=()=>{E=!1,document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",g),document.documentElement.removeEventListener("touchend",g)},m=()=>{if(!e.value||!t.value)return;let d=e.value.offsetLeft,c=e.value.offsetTop,b=e.value.offsetWidth,_=e.value.offsetHeight;d+b>window.innerWidth&&(d=window.innerWidth-b,d<0&&(d=0,b=window.innerWidth)),c+_>window.innerHeight&&(c=window.innerHeight-_,c<0&&(c=0,_=window.innerHeight)),e.value.style.left=`${d}px`,e.value.style.top=`${c}px`,e.value.style.width=`${b}px`,e.value.style.height=`${_}px`};return Kt(()=>{!e.value||!i||(typeof i.width=="number"&&(e.value.style.width=`${i.width}px`),typeof i.height=="number"&&(e.value.style.height=`${i.height}px`),typeof i.left=="number"&&(e.value.style.left=`${i.left}px`),typeof i.top=="number"&&(e.value.style.top=`${i.top}px`),m(),window.addEventListener("resize",m))}),at(()=>{document.documentElement.removeEventListener("mousemove",v),document.documentElement.removeEventListener("touchmove",v),document.documentElement.removeEventListener("mouseup",l),document.documentElement.removeEventListener("touchend",l),document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",g),document.documentElement.removeEventListener("touchend",g),window.removeEventListener("resize",m)}),ge(()=>[e.value,t.value,n.value],([d,c,b])=>{d&&c&&(c.addEventListener("mousedown",S),c.addEventListener("touchstart",S)),d&&b&&(b.addEventListener("mousedown",s),b.addEventListener("touchstart",s))}),{handleResizeMouseDown:S,handleDragMouseDown:s}}const ya={class:"container"},ba={class:"action-bar"},wa={key:0,class:"icon",style:{cursor:"pointer"}},Sa={key:0,"flex-placeholder":""},Aa={key:1,class:"action-bar"},Ea={key:0,class:"gen-info"},ka={class:"tags"},Ca={class:"name"},_a={class:"value"},Oa={key:0,class:"tags-container"},Ia=le({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Fe(),r=yt(),u=U(),p=H(()=>r.tagMap.get(n.file.fullpath)??[]),o=H(()=>{var a;return(((a=i.conf)==null?void 0:a.all_custom_tags)??[]).reduce((g,m)=>[...g,{...m,selected:!!p.value.find(d=>d.id===m.id)}],[])}),f=U(""),y=Be(),A=U("");ge(()=>{var a;return(a=n==null?void 0:n.file)==null?void 0:a.fullpath},async a=>{a&&(y.tasks.forEach(g=>g.cancel()),y.pushAction(()=>Ye(a)).res.then(g=>{A.value=g}))},{immediate:!0});const E=U(),S=U(),v=bi("fullScreenContextMenu.vue-drag",{left:100,top:100,width:512,height:384,expanded:!0});ma(u,E,S,{...v.value,onDrag:ue(function(a,g){v.value={...v.value,left:a,top:g}},300),onResize:ue(function(a,g){v.value={...v.value,width:a,height:g}},300)});function l(a){return a.parentNode}me("load",a=>{const g=a.target;g.className==="ant-image-preview-img"&&(f.value=`${g.naturalWidth} x ${g.naturalHeight}`)},{capture:!0});const s=H(()=>{const a=[{name:j("fileName"),val:n.file.name},{name:j("fileSize"),val:n.file.size}];return f.value&&a.push({name:j("resolution"),val:f.value}),a});return(a,g)=>{const m=oe,d=se,c=Xt,b=en,_=Zt,P=an;return L(),V("div",{ref_key:"el",ref:u,class:Ae(["full-screen-menu",{"unset-size":!z(v).expanded}]),onWheelCapture:g[5]||(g[5]=wi(()=>{},["stop"]))},[G("div",ya,[G("div",ba,[G("div",{ref_key:"dragHandle",ref:S,class:"icon",style:{cursor:"grab"}},[h(z(vr))],512),G("div",{class:"icon",style:{cursor:"pointer"},onClick:g[0]||(g[0]=w=>z(v).expanded=!z(v).expanded)},[z(v).expanded?(L(),J(z(mr),{key:0})):(L(),J(z(Sr),{key:1}))]),h(m,{"get-popup-container":l},{overlay:I(()=>[h(tt,{file:a.file,idx:a.idx,"selected-tag":p.value,"disable-delete":z(re)(a.file)===z(i).fullscreenPreviewInitialUrl,onContextMenuClick:g[1]||(g[1]=(w,M,O)=>t("contextMenuClick",w,M,O))},null,8,["file","idx","selected-tag","disable-delete"])]),default:I(()=>[z(v).expanded?q("",!0):(L(),V("div",wa,[h(z(it))]))]),_:1}),z(v).expanded?(L(),V("div",Sa)):q("",!0),z(v).expanded?(L(),V("div",Aa,[h(m,{trigger:["hover"],"get-popup-container":l},{overlay:I(()=>[h(b,{onClick:g[2]||(g[2]=w=>t("contextMenuClick",w,a.file,a.idx))},{default:I(()=>[(L(!0),V(ee,null,ve(o.value,w=>(L(),J(c,{key:`toggle-tag-${w.id}`},{default:I(()=>[N(T(w.name)+" ",1),w.selected?(L(),J(z(ln),{key:0})):(L(),J(z(on),{key:1}))]),_:2},1024))),128))]),_:1})]),default:I(()=>[h(d,null,{default:I(()=>[N(T(a.$t("toggleTag")),1)]),_:1})]),_:1}),h(m,{trigger:["hover"],"get-popup-container":l},{overlay:I(()=>[h(b,{onClick:g[3]||(g[3]=w=>t("contextMenuClick",w,a.file,a.idx))},{default:I(()=>{var w;return[((w=z(i).conf)==null?void 0:w.launch_mode)!=="server"?(L(),V(ee,{key:0},[h(c,{key:"send2txt2img"},{default:I(()=>[N(T(a.$t("sendToTxt2img")),1)]),_:1}),h(c,{key:"send2img2img"},{default:I(()=>[N(T(a.$t("sendToImg2img")),1)]),_:1}),h(c,{key:"send2inpaint"},{default:I(()=>[N(T(a.$t("sendToInpaint")),1)]),_:1}),h(c,{key:"send2extras"},{default:I(()=>[N(T(a.$t("sendToExtraFeatures")),1)]),_:1}),h(_,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:I(()=>[h(c,{key:"send2controlnet-txt2img"},{default:I(()=>[N("ControlNet - "+T(a.$t("t2i")),1)]),_:1}),h(c,{key:"send2controlnet-img2img"},{default:I(()=>[N("ControlNet - "+T(a.$t("i2i")),1)]),_:1}),h(c,{key:"send2outpaint"},{default:I(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),h(c,{key:"send2savedDir"},{default:I(()=>[N(T(a.$t("send2savedDir")),1)]),_:1}),h(c,{key:"deleteFiles",disabled:z(re)(a.file)===z(i).fullscreenPreviewInitialUrl},{default:I(()=>[N(T(a.$t("deleteSelected")),1)]),_:1},8,["disabled"]),h(c,{key:"previewInNewWindow"},{default:I(()=>[N(T(a.$t("previewInNewWindow")),1)]),_:1}),h(c,{key:"download"},{default:I(()=>[N(T(a.$t("download")),1)]),_:1}),h(c,{key:"copyPreviewUrl"},{default:I(()=>[N(T(a.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:I(()=>[h(d,null,{default:I(()=>[N(T(z(j)("openContextMenu")),1)]),_:1})]),_:1}),h(d,{onClick:g[4]||(g[4]=w=>z(Me)(A.value))},{default:I(()=>[N(T(a.$t("copyPrompt")),1)]),_:1})])):q("",!0)]),z(v).expanded?(L(),V("div",Ea,[G("div",ka,[(L(!0),V(ee,null,ve(s.value,w=>(L(),V("span",{class:"tag",key:w.name},[G("span",Ca,T(w.name),1),G("span",_a,T(w.val),1)]))),128))]),p.value?(L(),V("div",Oa,[(L(!0),V(ee,null,ve(p.value,w=>(L(),J(P,{key:w.id,color:z(r).getColor(w.name)},{default:I(()=>[N(T(w.name),1)]),_:2},1032,["color"]))),128))])):q("",!0),N(" "+T(A.value),1)])):q("",!0)]),z(v).expanded?(L(),V("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:E},[h(z(ar))],512)):q("",!0)],34)}}});const Ha=tn(Ia,[["__scopeId","data-v-914c5f17"]]);export{oe as D,Na as L,za as R,Ta as S,Fa as a,Da as b,Qa as c,ja as d,Ba as e,Va as f,He as g,mn as h,Ua as i,Ha as j,yt as k,Ke as l,Ma as s,ae as u}; diff --git a/vue/dist/assets/fullScreenContextMenu-b8773d51.css b/vue/dist/assets/fullScreenContextMenu-c801a9ea.css similarity index 93% rename from vue/dist/assets/fullScreenContextMenu-b8773d51.css rename to vue/dist/assets/fullScreenContextMenu-c801a9ea.css index 5adb62e..76f8e48 100644 --- a/vue/dist/assets/fullScreenContextMenu-b8773d51.css +++ b/vue/dist/assets/fullScreenContextMenu-c801a9ea.css @@ -1 +1 @@ -.ant-spin{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;display:none;color:#d03f0a;text-align:center;vertical-align:middle;opacity:0;transition:transform .3s cubic-bezier(.78,.14,.15,.86)}.ant-spin-spinning{position:static;display:inline-block;opacity:1}.ant-spin-nested-loading{position:relative}.ant-spin-nested-loading>div>.ant-spin{position:absolute;top:0;left:0;z-index:4;display:block;width:100%;height:100%;max-height:400px}.ant-spin-nested-loading>div>.ant-spin .ant-spin-dot{position:absolute;top:50%;left:50%;margin:-10px}.ant-spin-nested-loading>div>.ant-spin .ant-spin-text{position:absolute;top:50%;width:100%;padding-top:5px;text-shadow:0 1px 2px #fff}.ant-spin-nested-loading>div>.ant-spin.ant-spin-show-text .ant-spin-dot{margin-top:-20px}.ant-spin-nested-loading>div>.ant-spin-sm .ant-spin-dot{margin:-7px}.ant-spin-nested-loading>div>.ant-spin-sm .ant-spin-text{padding-top:2px}.ant-spin-nested-loading>div>.ant-spin-sm.ant-spin-show-text .ant-spin-dot{margin-top:-17px}.ant-spin-nested-loading>div>.ant-spin-lg .ant-spin-dot{margin:-16px}.ant-spin-nested-loading>div>.ant-spin-lg .ant-spin-text{padding-top:11px}.ant-spin-nested-loading>div>.ant-spin-lg.ant-spin-show-text .ant-spin-dot{margin-top:-26px}.ant-spin-container{position:relative;transition:opacity .3s}.ant-spin-container:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:none \ ;width:100%;height:100%;background:#fff;opacity:0;transition:all .3s;content:"";pointer-events:none}.ant-spin-blur{clear:both;opacity:.5;user-select:none;pointer-events:none}.ant-spin-blur:after{opacity:.4;pointer-events:auto}.ant-spin-tip{color:#00000073}.ant-spin-dot{position:relative;display:inline-block;font-size:20px;width:1em;height:1em}.ant-spin-dot-item{position:absolute;display:block;width:9px;height:9px;background-color:#d03f0a;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.ant-spin-dot-item:nth-child(1){top:0;left:0}.ant-spin-dot-item:nth-child(2){top:0;right:0;animation-delay:.4s}.ant-spin-dot-item:nth-child(3){right:0;bottom:0;animation-delay:.8s}.ant-spin-dot-item:nth-child(4){bottom:0;left:0;animation-delay:1.2s}.ant-spin-dot-spin{transform:rotate(45deg);animation:antRotate 1.2s infinite linear}.ant-spin-sm .ant-spin-dot{font-size:14px}.ant-spin-sm .ant-spin-dot i{width:6px;height:6px}.ant-spin-lg .ant-spin-dot{font-size:32px}.ant-spin-lg .ant-spin-dot i{width:14px;height:14px}.ant-spin.ant-spin-show-text .ant-spin-text{display:block}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ant-spin-blur{background:#fff;opacity:.5}}@keyframes antSpinMove{to{opacity:1}}@keyframes antRotate{to{transform:rotate(405deg)}}.ant-spin-rtl{direction:rtl}.ant-spin-rtl .ant-spin-dot-spin{transform:rotate(-45deg);animation-name:antRotateRtl}@keyframes antRotateRtl{to{transform:rotate(-405deg)}}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger{color:#ff4d4f}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover{color:#fff;background-color:#ff4d4f}.ant-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-dropdown:before{position:absolute;top:-4px;right:0;bottom:-4px;left:-7px;z-index:-9999;opacity:.0001;content:" "}.ant-dropdown-wrap{position:relative}.ant-dropdown-wrap .ant-btn>.anticon-down{font-size:10px}.ant-dropdown-wrap .anticon-down:before{transition:transform .2s}.ant-dropdown-wrap-open .anticon-down:before{transform:rotate(180deg)}.ant-dropdown-hidden,.ant-dropdown-menu-hidden,.ant-dropdown-menu-submenu-hidden{display:none}.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-topRight{padding-bottom:10px}.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight{padding-top:10px}.ant-dropdown-arrow{position:absolute;z-index:1;display:block;width:8.48528137px;height:8.48528137px;background:transparent;border-style:solid;border-width:4.24264069px;transform:rotate(45deg)}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow,.ant-dropdown-placement-topLeft>.ant-dropdown-arrow,.ant-dropdown-placement-topRight>.ant-dropdown-arrow{bottom:6.2px;border-color:transparent #fff #fff transparent;box-shadow:3px 3px 7px #00000012}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-topLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-topRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow,.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow,.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{top:6px;border-color:#fff transparent transparent #fff;box-shadow:-2px -2px 5px #0000000f}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-menu{position:relative;margin:0;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.ant-dropdown-menu-item-group-title{padding:5px 12px;color:#00000073;transition:all .3s}.ant-dropdown-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;box-shadow:none;transform-origin:0 0}.ant-dropdown-menu-submenu-popup ul,.ant-dropdown-menu-submenu-popup li{list-style:none}.ant-dropdown-menu-submenu-popup ul{margin-right:.3em;margin-left:.3em}.ant-dropdown-menu-item{position:relative;display:flex;align-items:center}.ant-dropdown-menu-item-icon{min-width:12px;margin-right:8px;font-size:12px}.ant-dropdown-menu-title-content{flex:auto;white-space:nowrap}.ant-dropdown-menu-title-content>a{color:inherit;transition:all .3s}.ant-dropdown-menu-title-content>a:hover{color:inherit}.ant-dropdown-menu-title-content>a:after{position:absolute;top:0;right:0;bottom:0;left:0;content:""}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{clear:both;margin:0;padding:5px 12px;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;cursor:pointer;transition:all .3s}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-submenu-title-selected{color:#d03f0a;background-color:#fff1e6}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#f5f5f5}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:#00000040;cursor:not-allowed}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-item-disabled a,.ant-dropdown-menu-submenu-title-disabled a{pointer-events:none}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{height:1px;margin:4px 0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{position:absolute;right:8px}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-right:0!important;color:#00000073;font-size:10px;font-style:normal}.ant-dropdown-menu-item-group-list{margin:0 8px;padding:0;list-style:none}.ant-dropdown-menu-submenu-title{padding-right:24px}.ant-dropdown-menu-submenu-vertical{position:relative}.ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{position:absolute;top:0;left:100%;min-width:100%;margin-left:4px;transform-origin:0 0}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#d03f0a}.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topRight,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-dropdown-trigger>.anticon.anticon-down,.ant-dropdown-link>.anticon.anticon-down,.ant-dropdown-button>.anticon.anticon-down{font-size:10px;vertical-align:baseline}.ant-dropdown-button{white-space:nowrap}.ant-dropdown-button.ant-btn-group>.ant-btn-loading,.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn{cursor:default;pointer-events:none}.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn:before{display:block}.ant-dropdown-button.ant-btn-group>.ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only){padding-right:8px;padding-left:8px}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#001529}.ant-dropdown-menu-dark .ant-dropdown-menu-item,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a .ant-dropdown-menu-submenu-arrow:after{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a:hover{color:#fff;background:transparent}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#d03f0a}.ant-dropdown-rtl{direction:rtl}.ant-dropdown-rtl.ant-dropdown:before{right:-7px;left:0}.ant-dropdown-menu.ant-dropdown-menu-rtl,.ant-dropdown-rtl .ant-dropdown-menu-item-group-title,.ant-dropdown-menu-submenu-rtl .ant-dropdown-menu-item-group-title{direction:rtl;text-align:right}.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl{transform-origin:100% 0}.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li,.ant-dropdown-rtl .ant-dropdown-menu-item,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{text-align:right}.ant-dropdown-rtl .ant-dropdown-menu-item>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-item>span>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>span>.anticon:first-child{margin-right:0;margin-left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{right:auto;left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-left:0!important;transform:scaleX(-1)}.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{padding-right:12px;padding-left:24px}.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{right:100%;left:0;margin-right:4px;margin-left:0}.ant-menu-item-danger.ant-menu-item,.ant-menu-item-danger.ant-menu-item:hover,.ant-menu-item-danger.ant-menu-item-active{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item:active{background:#fff1f0}.ant-menu-item-danger.ant-menu-item-selected{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item-selected>a,.ant-menu-item-danger.ant-menu-item-selected>a:hover{color:#ff4d4f}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{background-color:#fff1f0}.ant-menu-inline .ant-menu-item-danger.ant-menu-item:after{border-right-color:#ff4d4f}.ant-menu-dark .ant-menu-item-danger.ant-menu-item,.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,.ant-menu-dark .ant-menu-item-danger.ant-menu-item>a{color:#ff4d4f}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{color:#fff;background-color:#ff4d4f}.ant-menu{box-sizing:border-box;margin:0;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";padding:0;color:#000000d9;font-size:14px;line-height:0;text-align:left;list-style:none;background:#fff;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:background .3s,width .3s cubic-bezier(.2,0,0,1) 0s}.ant-menu:before{display:table;content:""}.ant-menu:after{display:table;clear:both;content:""}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu ul,.ant-menu ol{margin:0;padding:0;list-style:none}.ant-menu-overflow{display:flex}.ant-menu-overflow-item{flex:none}.ant-menu-hidden,.ant-menu-submenu-hidden{display:none}.ant-menu-item-group-title{height:1.5715;padding:8px 16px;color:#00000073;font-size:14px;line-height:1.5715;transition:all .3s}.ant-menu-horizontal .ant-menu-submenu{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu,.ant-menu-submenu-inline{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#fff1e6}.ant-menu-submenu .ant-menu-sub{cursor:initial;transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-title-content{transition:color .3s}.ant-menu-item a{color:#000000d9}.ant-menu-item a:hover{color:#d03f0a}.ant-menu-item a:before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:""}.ant-menu-item>.ant-badge a{color:#000000d9}.ant-menu-item>.ant-badge a:hover{color:#d03f0a}.ant-menu-item-divider{overflow:hidden;line-height:0;border-color:#f0f0f0;border-style:solid;border-width:1px 0 0}.ant-menu-item-divider-dashed{border-style:dashed}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu{margin-top:-1px}.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-submenu .ant-menu-submenu-title:hover{background-color:transparent}.ant-menu-item-selected,.ant-menu-item-selected a,.ant-menu-item-selected a:hover{color:#d03f0a}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#fff1e6}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #f0f0f0}.ant-menu-vertical-right{border-left:1px solid #f0f0f0}.ant-menu-vertical.ant-menu-sub,.ant-menu-vertical-left.ant-menu-sub,.ant-menu-vertical-right.ant-menu-sub{min-width:160px;max-height:calc(100vh - 100px);padding:0;overflow:hidden;border-right:0}.ant-menu-vertical.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-left.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-right.ant-menu-sub:not([class*="-active"]){overflow-x:hidden;overflow-y:auto}.ant-menu-vertical.ant-menu-sub .ant-menu-item,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-vertical.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after{border-right:0}.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:0 0}.ant-menu-horizontal.ant-menu-sub{min-width:114px}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu-title{transition:border-color .3s,background .3s}.ant-menu-item,.ant-menu-submenu-title{position:relative;display:block;margin:0;padding:0 20px;white-space:nowrap;cursor:pointer;transition:border-color .3s,background .3s,padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item .ant-menu-item-icon,.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-item .anticon,.ant-menu-submenu-title .anticon{min-width:14px;font-size:14px;transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1),color .3s}.ant-menu-item .ant-menu-item-icon+span,.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu-item .anticon+span,.ant-menu-submenu-title .anticon+span{margin-left:10px;opacity:1;transition:opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s}.ant-menu-item .ant-menu-item-icon.svg,.ant-menu-submenu-title .ant-menu-item-icon.svg{vertical-align:-.125em}.ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-submenu-title.ant-menu-item-only-child>.anticon,.ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon{margin-right:0}.ant-menu-item:focus-visible,.ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu>.ant-menu-item-divider{margin:1px 0;padding:0}.ant-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;border-radius:2px;box-shadow:none;transform-origin:0 0}.ant-menu-submenu-popup:before{position:absolute;top:-7px;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;opacity:.0001;content:" "}.ant-menu-submenu-placement-rightTop:before{top:0;left:-7px}.ant-menu-submenu>.ant-menu{background-color:#fff;border-radius:2px}.ant-menu-submenu>.ant-menu-submenu-title:after{transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-popup>.ant-menu{background-color:#fff}.ant-menu-submenu-expand-icon,.ant-menu-submenu-arrow{position:absolute;top:50%;right:16px;width:10px;color:#000000d9;transform:translateY(-50%);transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-arrow:before,.ant-menu-submenu-arrow:after{position:absolute;width:6px;height:1.5px;background-color:currentcolor;border-radius:2px;transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-submenu-arrow:before{transform:rotate(45deg) translateY(-2.5px)}.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translateY(2.5px)}.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-expand-icon,.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{color:#d03f0a}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:before,.ant-menu-submenu-inline .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translate(2.5px)}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline .ant-menu-submenu-arrow:after{transform:rotate(45deg) translate(-2.5px)}.ant-menu-submenu-horizontal .ant-menu-submenu-arrow{display:none}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow{transform:translateY(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translate(-2.5px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{transform:rotate(45deg) translate(2.5px)}.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal{line-height:46px;border:0;border-bottom:1px solid #f0f0f0;box-shadow:none}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu{margin-top:-1px;margin-bottom:0;padding:0 20px}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected:after{border-bottom:2px solid #d03f0a}.ant-menu-horizontal>.ant-menu-item,.ant-menu-horizontal>.ant-menu-submenu{position:relative;top:1px;display:inline-block;vertical-align:bottom}.ant-menu-horizontal>.ant-menu-item:after,.ant-menu-horizontal>.ant-menu-submenu:after{position:absolute;right:20px;bottom:0;left:20px;border-bottom:2px solid transparent;transition:border-color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-horizontal>.ant-menu-submenu>.ant-menu-submenu-title{padding:0}.ant-menu-horizontal>.ant-menu-item a{color:#000000d9}.ant-menu-horizontal>.ant-menu-item a:hover{color:#d03f0a}.ant-menu-horizontal>.ant-menu-item a:before{bottom:-2px}.ant-menu-horizontal>.ant-menu-item-selected a{color:#d03f0a}.ant-menu-horizontal:after{display:block;clear:both;height:0;content:" "}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item{position:relative}.ant-menu-vertical .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-inline .ant-menu-item:after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #d03f0a;transform:scaleY(.0001);opacity:0;transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);content:""}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item,.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{height:40px;margin-top:4px;margin-bottom:4px;padding:0 16px;overflow:hidden;line-height:40px;text-overflow:ellipsis}.ant-menu-vertical .ant-menu-submenu,.ant-menu-vertical-left .ant-menu-submenu,.ant-menu-vertical-right .ant-menu-submenu,.ant-menu-inline .ant-menu-submenu{padding-bottom:.02px}.ant-menu-vertical .ant-menu-item:not(:last-child),.ant-menu-vertical-left .ant-menu-item:not(:last-child),.ant-menu-vertical-right .ant-menu-item:not(:last-child),.ant-menu-inline .ant-menu-item:not(:last-child){margin-bottom:8px}.ant-menu-vertical>.ant-menu-item,.ant-menu-vertical-left>.ant-menu-item,.ant-menu-vertical-right>.ant-menu-item,.ant-menu-inline>.ant-menu-item,.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px}.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline{width:100%}.ant-menu-inline .ant-menu-selected:after,.ant-menu-inline .ant-menu-item-selected:after{transform:scaleY(1);opacity:1;transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title{width:calc(100% + 1px)}.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline.ant-menu-root .ant-menu-item,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title{display:flex;align-items:center;transition:border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1)}.ant-menu-inline.ant-menu-root .ant-menu-item>.ant-menu-title-content,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>.ant-menu-title-content{flex:auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.ant-menu-inline.ant-menu-root .ant-menu-item>*,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>*{flex:none}.ant-menu.ant-menu-inline-collapsed{width:80px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{left:0;padding:0 calc(50% - 8px);text-overflow:clip}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:0}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon{margin:0;font-size:16px;line-height:40px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span{display:inline-block;opacity:0}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed .anticon{display:inline-block}.ant-menu.ant-menu-inline-collapsed-tooltip{pointer-events:none}.ant-menu.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed-tooltip .anticon{display:none}.ant-menu.ant-menu-inline-collapsed-tooltip a{color:#ffffffd9}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-group-title{padding-right:4px;padding-left:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-menu-item-group-list{margin:0;padding:0}.ant-menu-item-group-list .ant-menu-item,.ant-menu-item-group-list .ant-menu-submenu-title{padding:0 16px 0 28px}.ant-menu-root.ant-menu-vertical,.ant-menu-root.ant-menu-vertical-left,.ant-menu-root.ant-menu-vertical-right,.ant-menu-root.ant-menu-inline{box-shadow:none}.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item>.ant-menu-inline-collapsed-noicon,.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon{font-size:16px;text-align:center}.ant-menu-sub.ant-menu-inline{padding:0;background:#fafafa;border:0;border-radius:0;box-shadow:none}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px;list-style-position:inside;list-style-type:disc}.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-left:32px}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:#00000040!important;background:none;cursor:not-allowed}.ant-menu-item-disabled:after,.ant-menu-submenu-disabled:after{border-color:transparent!important}.ant-menu-item-disabled a,.ant-menu-submenu-disabled a{color:#00000040!important;pointer-events:none}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#00000040!important;cursor:not-allowed}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(0,0,0,.25)!important}.ant-layout-header .ant-menu{line-height:inherit}.ant-menu-inline-collapsed-tooltip a,.ant-menu-inline-collapsed-tooltip a:hover{color:#fff}.ant-menu-light .ant-menu-item:hover,.ant-menu-light .ant-menu-item-active,.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,.ant-menu-light .ant-menu-submenu-active,.ant-menu-light .ant-menu-submenu-title:hover{color:#d03f0a}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu-dark .ant-menu-item:focus-visible,.ant-menu-dark .ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu.ant-menu-dark,.ant-menu-dark .ant-menu-sub,.ant-menu.ant-menu-dark .ant-menu-sub{color:#ffffffa6;background:#001529}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:.45;transition:all .3s}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark.ant-menu-submenu-popup{background:transparent}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#000c17}.ant-menu-dark.ant-menu-horizontal{border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{top:0;margin-top:0;padding:0 20px;border-color:#001529;border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item:hover{background-color:#d03f0a}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item>a:before{bottom:0}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a,.ant-menu-dark .ant-menu-item>span>a{color:#ffffffa6}.ant-menu-dark.ant-menu-inline,.ant-menu-dark.ant-menu-vertical,.ant-menu-dark.ant-menu-vertical-left,.ant-menu-dark.ant-menu-vertical-right{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-vertical .ant-menu-item,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title{width:100%}.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fff;background-color:transparent}.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-title:hover>a,.ant-menu-dark .ant-menu-item:hover>span>a,.ant-menu-dark .ant-menu-item-active>span>a,.ant-menu-dark .ant-menu-submenu-active>span>a,.ant-menu-dark .ant-menu-submenu-open>span>a,.ant-menu-dark .ant-menu-submenu-selected>span>a,.ant-menu-dark .ant-menu-submenu-title:hover>span>a{color:#fff}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{opacity:1}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark .ant-menu-item:hover{background-color:transparent}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-selected{color:#fff;border-right:0}.ant-menu-dark .ant-menu-item-selected:after{border-right:0}.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>span>a,.ant-menu-dark .ant-menu-item-selected>a:hover,.ant-menu-dark .ant-menu-item-selected>span>a:hover{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,.ant-menu-dark .ant-menu-item-selected .anticon{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon+span,.ant-menu-dark .ant-menu-item-selected .anticon+span{color:#fff}.ant-menu.ant-menu-dark .ant-menu-item-selected,.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-disabled,.ant-menu-dark .ant-menu-submenu-disabled,.ant-menu-dark .ant-menu-item-disabled>a,.ant-menu-dark .ant-menu-submenu-disabled>a,.ant-menu-dark .ant-menu-item-disabled>span>a,.ant-menu-dark .ant-menu-submenu-disabled>span>a{color:#ffffff59!important;opacity:.8}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#ffffff59!important}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(255,255,255,.35)!important}.ant-menu.ant-menu-rtl{direction:rtl;text-align:right}.ant-menu-rtl .ant-menu-item-group-title{text-align:right}.ant-menu-rtl.ant-menu-inline,.ant-menu-rtl.ant-menu-vertical{border-right:none;border-left:1px solid #f0f0f0}.ant-menu-rtl.ant-menu-dark.ant-menu-inline,.ant-menu-rtl.ant-menu-dark.ant-menu-vertical{border-left:none}.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:top right}.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-rtl .ant-menu-item .anticon,.ant-menu-rtl .ant-menu-submenu-title .anticon{margin-right:auto;margin-left:10px}.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.anticon{margin-left:0}.ant-menu-submenu-rtl.ant-menu-submenu-popup{transform-origin:100% 0}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow{right:auto;left:16px}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translateY(-2px)}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{transform:rotate(45deg) translateY(2px)}.ant-menu-rtl.ant-menu-vertical .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-rtl.ant-menu-inline .ant-menu-item:after{right:auto;left:0}.ant-menu-rtl.ant-menu-vertical .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,.ant-menu-rtl.ant-menu-inline .ant-menu-item,.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{text-align:right}.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{padding-right:0;padding-left:34px}.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title{padding-right:16px;padding-left:34px}.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title{padding:0 calc(50% - 8px)}.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title{padding:0 28px 0 16px}.ant-menu-sub.ant-menu-inline{border:0}.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-right:32px;padding-left:0}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.ant-tag{box-sizing:border-box;margin:0 8px 0 0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;height:auto;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;background:#fafafa;border:1px solid #d9d9d9;border-radius:2px;opacity:1;transition:all .3s}.ant-tag,.ant-tag a,.ant-tag a:hover{color:#000000d9}.ant-tag>a:first-child:last-child{display:inline-block;margin:0 -8px;padding:0 8px}.ant-tag-close-icon{margin-left:3px;color:#00000073;font-size:10px;cursor:pointer;transition:all .3s}.ant-tag-close-icon:hover{color:#000000d9}.ant-tag-has-color{border-color:transparent}.ant-tag-has-color,.ant-tag-has-color a,.ant-tag-has-color a:hover,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover{color:#fff}.ant-tag-checkable{background-color:transparent;border-color:transparent;cursor:pointer}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#d03f0a}.ant-tag-checkable:active,.ant-tag-checkable-checked{color:#fff}.ant-tag-checkable-checked{background-color:#d03f0a}.ant-tag-checkable:active{background-color:#ab2800}.ant-tag-hidden{display:none}.ant-tag-pink{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-pink-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-magenta{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-magenta-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-red{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.ant-tag-red-inverse{color:#fff;background:#f5222d;border-color:#f5222d}.ant-tag-volcano{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.ant-tag-volcano-inverse{color:#fff;background:#fa541c;border-color:#fa541c}.ant-tag-orange{color:#d46b08;background:#fff7e6;border-color:#ffd591}.ant-tag-orange-inverse{color:#fff;background:#fa8c16;border-color:#fa8c16}.ant-tag-yellow{color:#d4b106;background:#feffe6;border-color:#fffb8f}.ant-tag-yellow-inverse{color:#fff;background:#fadb14;border-color:#fadb14}.ant-tag-gold{color:#d48806;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#08979c;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.ant-tag-lime-inverse{color:#fff;background:#a0d911;border-color:#a0d911}.ant-tag-green{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue{color:#096dd9;background:#e6f7ff;border-color:#91d5ff}.ant-tag-blue-inverse{color:#fff;background:#1890ff;border-color:#1890ff}.ant-tag-geekblue{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.ant-tag-geekblue-inverse{color:#fff;background:#2f54eb;border-color:#2f54eb}.ant-tag-purple{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.ant-tag-purple-inverse{color:#fff;background:#722ed1;border-color:#722ed1}.ant-tag-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-processing{color:#d03f0a;background:#fff1e6;border-color:#f7ae83}.ant-tag-error{color:#ff4d4f;background:#fff2f0;border-color:#ffccc7}.ant-tag-warning{color:#faad14;background:#fffbe6;border-color:#ffe58f}.ant-tag>.anticon+span,.ant-tag>span+.anticon{margin-left:7px}.ant-tag.ant-tag-rtl{margin-right:0;margin-left:8px;direction:rtl;text-align:right}.ant-tag-rtl .ant-tag-close-icon{margin-right:3px;margin-left:0}.ant-tag-rtl.ant-tag>.anticon+span,.ant-tag-rtl.ant-tag>span+.anticon{margin-right:7px;margin-left:0}.center[data-v-8d65ebcc]{display:flex;justify-content:center;align-items:center}.tags-container[data-v-8d65ebcc]{position:absolute;right:8px;bottom:8px;display:flex;width:calc(100% - 16px);flex-wrap:wrap-reverse;flex-direction:row-reverse}.tags-container>*[data-v-8d65ebcc]{margin:0 0 4px 4px}.file[data-v-8d65ebcc]{padding:8px 16px;margin:8px;display:flex;align-items:center;background:var(--zp-primary-background);border-radius:8px;box-shadow:0 0 4px var(--zp-secondary-variant-background);position:relative;overflow:hidden}.file:hover .more[data-v-8d65ebcc]{opacity:1}.file .more[data-v-8d65ebcc]{opacity:0;transition:all .3s ease;position:absolute;top:4px;right:4px;cursor:pointer;z-index:100;font-size:500;font-size:1.8em;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:100vh;color:#fff;background:var(--zp-icon-bg)}.file.grid[data-v-8d65ebcc]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-8d65ebcc] .icon{font-size:8em}.file.grid[data-v-8d65ebcc] .profile{padding:0 4px}.file.grid[data-v-8d65ebcc] .profile .name{font-weight:500;padding:0}.file.grid[data-v-8d65ebcc] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-8d65ebcc] .ant-image,.file.grid[data-v-8d65ebcc] .preview-icon-wrap{border:1px solid var(--zp-secondary);background-color:var(--zp-secondary-variant-background);border-radius:8px;overflow:hidden}.file.grid[data-v-8d65ebcc] img,.file.grid[data-v-8d65ebcc] .preview-icon-wrap>[role=img]{height:var(--6fc250a6);width:var(--6fc250a6);object-fit:contain}.file.clickable[data-v-8d65ebcc]{cursor:pointer}.file.selected[data-v-8d65ebcc]{outline:#0084ff solid 2px}.file .name[data-v-8d65ebcc]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-8d65ebcc]{display:flex;flex-direction:column;align-items:flex-end}.full-screen-menu[data-v-08accd51]{position:fixed;z-index:99999;background:var(--zp-primary-background);padding:8px 16px;box-shadow:0 0 4px var(--zp-secondary);border-radius:4px}.full-screen-menu .container[data-v-08accd51]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-08accd51]{flex:1;word-break:break-all;white-space:pre-line;overflow:auto;z-index:1;padding-top:4px;position:relative}.full-screen-menu .gen-info .tags .tag[data-v-08accd51]{display:inline-block;overflow:hidden;border-radius:4px;margin-right:8px;border:2px solid var(--zp-primary)}.full-screen-menu .gen-info .tags .name[data-v-08accd51]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px}.full-screen-menu .gen-info .tags .value[data-v-08accd51]{padding:4px}.full-screen-menu.unset-size[data-v-08accd51]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-08accd51]{position:absolute;bottom:0;right:0;transform:rotate(90deg);cursor:se-resize;z-index:1;background:var(--zp-primary-background);border-radius:2px}.full-screen-menu .mouse-sensor>*[data-v-08accd51]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-08accd51]{display:flex;align-items:center;user-select:none}.full-screen-menu .action-bar .icon[data-v-08accd51]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-08accd51]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-08accd51]{flex-wrap:wrap}.full-screen-menu .action-bar>*[data-v-08accd51]:not(:last-child){margin-right:8px} +.ant-spin{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;display:none;color:#d03f0a;text-align:center;vertical-align:middle;opacity:0;transition:transform .3s cubic-bezier(.78,.14,.15,.86)}.ant-spin-spinning{position:static;display:inline-block;opacity:1}.ant-spin-nested-loading{position:relative}.ant-spin-nested-loading>div>.ant-spin{position:absolute;top:0;left:0;z-index:4;display:block;width:100%;height:100%;max-height:400px}.ant-spin-nested-loading>div>.ant-spin .ant-spin-dot{position:absolute;top:50%;left:50%;margin:-10px}.ant-spin-nested-loading>div>.ant-spin .ant-spin-text{position:absolute;top:50%;width:100%;padding-top:5px;text-shadow:0 1px 2px #fff}.ant-spin-nested-loading>div>.ant-spin.ant-spin-show-text .ant-spin-dot{margin-top:-20px}.ant-spin-nested-loading>div>.ant-spin-sm .ant-spin-dot{margin:-7px}.ant-spin-nested-loading>div>.ant-spin-sm .ant-spin-text{padding-top:2px}.ant-spin-nested-loading>div>.ant-spin-sm.ant-spin-show-text .ant-spin-dot{margin-top:-17px}.ant-spin-nested-loading>div>.ant-spin-lg .ant-spin-dot{margin:-16px}.ant-spin-nested-loading>div>.ant-spin-lg .ant-spin-text{padding-top:11px}.ant-spin-nested-loading>div>.ant-spin-lg.ant-spin-show-text .ant-spin-dot{margin-top:-26px}.ant-spin-container{position:relative;transition:opacity .3s}.ant-spin-container:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:none \ ;width:100%;height:100%;background:#fff;opacity:0;transition:all .3s;content:"";pointer-events:none}.ant-spin-blur{clear:both;opacity:.5;user-select:none;pointer-events:none}.ant-spin-blur:after{opacity:.4;pointer-events:auto}.ant-spin-tip{color:#00000073}.ant-spin-dot{position:relative;display:inline-block;font-size:20px;width:1em;height:1em}.ant-spin-dot-item{position:absolute;display:block;width:9px;height:9px;background-color:#d03f0a;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.ant-spin-dot-item:nth-child(1){top:0;left:0}.ant-spin-dot-item:nth-child(2){top:0;right:0;animation-delay:.4s}.ant-spin-dot-item:nth-child(3){right:0;bottom:0;animation-delay:.8s}.ant-spin-dot-item:nth-child(4){bottom:0;left:0;animation-delay:1.2s}.ant-spin-dot-spin{transform:rotate(45deg);animation:antRotate 1.2s infinite linear}.ant-spin-sm .ant-spin-dot{font-size:14px}.ant-spin-sm .ant-spin-dot i{width:6px;height:6px}.ant-spin-lg .ant-spin-dot{font-size:32px}.ant-spin-lg .ant-spin-dot i{width:14px;height:14px}.ant-spin.ant-spin-show-text .ant-spin-text{display:block}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ant-spin-blur{background:#fff;opacity:.5}}@keyframes antSpinMove{to{opacity:1}}@keyframes antRotate{to{transform:rotate(405deg)}}.ant-spin-rtl{direction:rtl}.ant-spin-rtl .ant-spin-dot-spin{transform:rotate(-45deg);animation-name:antRotateRtl}@keyframes antRotateRtl{to{transform:rotate(-405deg)}}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger{color:#ff4d4f}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover{color:#fff;background-color:#ff4d4f}.ant-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-dropdown:before{position:absolute;top:-4px;right:0;bottom:-4px;left:-7px;z-index:-9999;opacity:.0001;content:" "}.ant-dropdown-wrap{position:relative}.ant-dropdown-wrap .ant-btn>.anticon-down{font-size:10px}.ant-dropdown-wrap .anticon-down:before{transition:transform .2s}.ant-dropdown-wrap-open .anticon-down:before{transform:rotate(180deg)}.ant-dropdown-hidden,.ant-dropdown-menu-hidden,.ant-dropdown-menu-submenu-hidden{display:none}.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-topRight{padding-bottom:10px}.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight{padding-top:10px}.ant-dropdown-arrow{position:absolute;z-index:1;display:block;width:8.48528137px;height:8.48528137px;background:transparent;border-style:solid;border-width:4.24264069px;transform:rotate(45deg)}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow,.ant-dropdown-placement-topLeft>.ant-dropdown-arrow,.ant-dropdown-placement-topRight>.ant-dropdown-arrow{bottom:6.2px;border-color:transparent #fff #fff transparent;box-shadow:3px 3px 7px #00000012}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-topLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-topRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow,.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow,.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{top:6px;border-color:#fff transparent transparent #fff;box-shadow:-2px -2px 5px #0000000f}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow{left:50%;transform:translate(-50%) rotate(45deg)}.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-menu{position:relative;margin:0;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.ant-dropdown-menu-item-group-title{padding:5px 12px;color:#00000073;transition:all .3s}.ant-dropdown-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;box-shadow:none;transform-origin:0 0}.ant-dropdown-menu-submenu-popup ul,.ant-dropdown-menu-submenu-popup li{list-style:none}.ant-dropdown-menu-submenu-popup ul{margin-right:.3em;margin-left:.3em}.ant-dropdown-menu-item{position:relative;display:flex;align-items:center}.ant-dropdown-menu-item-icon{min-width:12px;margin-right:8px;font-size:12px}.ant-dropdown-menu-title-content{flex:auto;white-space:nowrap}.ant-dropdown-menu-title-content>a{color:inherit;transition:all .3s}.ant-dropdown-menu-title-content>a:hover{color:inherit}.ant-dropdown-menu-title-content>a:after{position:absolute;top:0;right:0;bottom:0;left:0;content:""}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{clear:both;margin:0;padding:5px 12px;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;cursor:pointer;transition:all .3s}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-submenu-title-selected{color:#d03f0a;background-color:#fff1e6}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#f5f5f5}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:#00000040;cursor:not-allowed}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-item-disabled a,.ant-dropdown-menu-submenu-title-disabled a{pointer-events:none}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{height:1px;margin:4px 0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{position:absolute;right:8px}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-right:0!important;color:#00000073;font-size:10px;font-style:normal}.ant-dropdown-menu-item-group-list{margin:0 8px;padding:0;list-style:none}.ant-dropdown-menu-submenu-title{padding-right:24px}.ant-dropdown-menu-submenu-vertical{position:relative}.ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{position:absolute;top:0;left:100%;min-width:100%;margin-left:4px;transform-origin:0 0}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#d03f0a}.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topRight,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-dropdown-trigger>.anticon.anticon-down,.ant-dropdown-link>.anticon.anticon-down,.ant-dropdown-button>.anticon.anticon-down{font-size:10px;vertical-align:baseline}.ant-dropdown-button{white-space:nowrap}.ant-dropdown-button.ant-btn-group>.ant-btn-loading,.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn{cursor:default;pointer-events:none}.ant-dropdown-button.ant-btn-group>.ant-btn-loading+.ant-btn:before{display:block}.ant-dropdown-button.ant-btn-group>.ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only){padding-right:8px;padding-left:8px}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#001529}.ant-dropdown-menu-dark .ant-dropdown-menu-item,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a .ant-dropdown-menu-submenu-arrow:after{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a:hover{color:#fff;background:transparent}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#d03f0a}.ant-dropdown-rtl{direction:rtl}.ant-dropdown-rtl.ant-dropdown:before{right:-7px;left:0}.ant-dropdown-menu.ant-dropdown-menu-rtl,.ant-dropdown-rtl .ant-dropdown-menu-item-group-title,.ant-dropdown-menu-submenu-rtl .ant-dropdown-menu-item-group-title{direction:rtl;text-align:right}.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl{transform-origin:100% 0}.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li,.ant-dropdown-rtl .ant-dropdown-menu-item,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{text-align:right}.ant-dropdown-rtl .ant-dropdown-menu-item>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-item>span>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>span>.anticon:first-child{margin-right:0;margin-left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{right:auto;left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-left:0!important;transform:scaleX(-1)}.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{padding-right:12px;padding-left:24px}.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{right:100%;left:0;margin-right:4px;margin-left:0}.ant-menu-item-danger.ant-menu-item,.ant-menu-item-danger.ant-menu-item:hover,.ant-menu-item-danger.ant-menu-item-active{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item:active{background:#fff1f0}.ant-menu-item-danger.ant-menu-item-selected{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item-selected>a,.ant-menu-item-danger.ant-menu-item-selected>a:hover{color:#ff4d4f}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{background-color:#fff1f0}.ant-menu-inline .ant-menu-item-danger.ant-menu-item:after{border-right-color:#ff4d4f}.ant-menu-dark .ant-menu-item-danger.ant-menu-item,.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,.ant-menu-dark .ant-menu-item-danger.ant-menu-item>a{color:#ff4d4f}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{color:#fff;background-color:#ff4d4f}.ant-menu{box-sizing:border-box;margin:0;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";padding:0;color:#000000d9;font-size:14px;line-height:0;text-align:left;list-style:none;background:#fff;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:background .3s,width .3s cubic-bezier(.2,0,0,1) 0s}.ant-menu:before{display:table;content:""}.ant-menu:after{display:table;clear:both;content:""}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu ul,.ant-menu ol{margin:0;padding:0;list-style:none}.ant-menu-overflow{display:flex}.ant-menu-overflow-item{flex:none}.ant-menu-hidden,.ant-menu-submenu-hidden{display:none}.ant-menu-item-group-title{height:1.5715;padding:8px 16px;color:#00000073;font-size:14px;line-height:1.5715;transition:all .3s}.ant-menu-horizontal .ant-menu-submenu{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu,.ant-menu-submenu-inline{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#fff1e6}.ant-menu-submenu .ant-menu-sub{cursor:initial;transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-title-content{transition:color .3s}.ant-menu-item a{color:#000000d9}.ant-menu-item a:hover{color:#d03f0a}.ant-menu-item a:before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:""}.ant-menu-item>.ant-badge a{color:#000000d9}.ant-menu-item>.ant-badge a:hover{color:#d03f0a}.ant-menu-item-divider{overflow:hidden;line-height:0;border-color:#f0f0f0;border-style:solid;border-width:1px 0 0}.ant-menu-item-divider-dashed{border-style:dashed}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu{margin-top:-1px}.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-submenu .ant-menu-submenu-title:hover{background-color:transparent}.ant-menu-item-selected,.ant-menu-item-selected a,.ant-menu-item-selected a:hover{color:#d03f0a}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#fff1e6}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #f0f0f0}.ant-menu-vertical-right{border-left:1px solid #f0f0f0}.ant-menu-vertical.ant-menu-sub,.ant-menu-vertical-left.ant-menu-sub,.ant-menu-vertical-right.ant-menu-sub{min-width:160px;max-height:calc(100vh - 100px);padding:0;overflow:hidden;border-right:0}.ant-menu-vertical.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-left.ant-menu-sub:not([class*="-active"]),.ant-menu-vertical-right.ant-menu-sub:not([class*="-active"]){overflow-x:hidden;overflow-y:auto}.ant-menu-vertical.ant-menu-sub .ant-menu-item,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-vertical.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after{border-right:0}.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:0 0}.ant-menu-horizontal.ant-menu-sub{min-width:114px}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu-title{transition:border-color .3s,background .3s}.ant-menu-item,.ant-menu-submenu-title{position:relative;display:block;margin:0;padding:0 20px;white-space:nowrap;cursor:pointer;transition:border-color .3s,background .3s,padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item .ant-menu-item-icon,.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-item .anticon,.ant-menu-submenu-title .anticon{min-width:14px;font-size:14px;transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1),color .3s}.ant-menu-item .ant-menu-item-icon+span,.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu-item .anticon+span,.ant-menu-submenu-title .anticon+span{margin-left:10px;opacity:1;transition:opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s}.ant-menu-item .ant-menu-item-icon.svg,.ant-menu-submenu-title .ant-menu-item-icon.svg{vertical-align:-.125em}.ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-submenu-title.ant-menu-item-only-child>.anticon,.ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon{margin-right:0}.ant-menu-item:focus-visible,.ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ffd0b0}.ant-menu>.ant-menu-item-divider{margin:1px 0;padding:0}.ant-menu-submenu-popup{position:absolute;z-index:1050;background:transparent;border-radius:2px;box-shadow:none;transform-origin:0 0}.ant-menu-submenu-popup:before{position:absolute;top:-7px;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;opacity:.0001;content:" "}.ant-menu-submenu-placement-rightTop:before{top:0;left:-7px}.ant-menu-submenu>.ant-menu{background-color:#fff;border-radius:2px}.ant-menu-submenu>.ant-menu-submenu-title:after{transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-popup>.ant-menu{background-color:#fff}.ant-menu-submenu-expand-icon,.ant-menu-submenu-arrow{position:absolute;top:50%;right:16px;width:10px;color:#000000d9;transform:translateY(-50%);transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-arrow:before,.ant-menu-submenu-arrow:after{position:absolute;width:6px;height:1.5px;background-color:currentcolor;border-radius:2px;transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-submenu-arrow:before{transform:rotate(45deg) translateY(-2.5px)}.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translateY(2.5px)}.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-expand-icon,.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{color:#d03f0a}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:before,.ant-menu-submenu-inline .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translate(2.5px)}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline .ant-menu-submenu-arrow:after{transform:rotate(45deg) translate(-2.5px)}.ant-menu-submenu-horizontal .ant-menu-submenu-arrow{display:none}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow{transform:translateY(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translate(-2.5px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{transform:rotate(45deg) translate(2.5px)}.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal{line-height:46px;border:0;border-bottom:1px solid #f0f0f0;box-shadow:none}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu{margin-top:-1px;margin-bottom:0;padding:0 20px}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected{color:#d03f0a}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected:after{border-bottom:2px solid #d03f0a}.ant-menu-horizontal>.ant-menu-item,.ant-menu-horizontal>.ant-menu-submenu{position:relative;top:1px;display:inline-block;vertical-align:bottom}.ant-menu-horizontal>.ant-menu-item:after,.ant-menu-horizontal>.ant-menu-submenu:after{position:absolute;right:20px;bottom:0;left:20px;border-bottom:2px solid transparent;transition:border-color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-horizontal>.ant-menu-submenu>.ant-menu-submenu-title{padding:0}.ant-menu-horizontal>.ant-menu-item a{color:#000000d9}.ant-menu-horizontal>.ant-menu-item a:hover{color:#d03f0a}.ant-menu-horizontal>.ant-menu-item a:before{bottom:-2px}.ant-menu-horizontal>.ant-menu-item-selected a{color:#d03f0a}.ant-menu-horizontal:after{display:block;clear:both;height:0;content:" "}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item{position:relative}.ant-menu-vertical .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-inline .ant-menu-item:after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #d03f0a;transform:scaleY(.0001);opacity:0;transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);content:""}.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item,.ant-menu-inline .ant-menu-item,.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{height:40px;margin-top:4px;margin-bottom:4px;padding:0 16px;overflow:hidden;line-height:40px;text-overflow:ellipsis}.ant-menu-vertical .ant-menu-submenu,.ant-menu-vertical-left .ant-menu-submenu,.ant-menu-vertical-right .ant-menu-submenu,.ant-menu-inline .ant-menu-submenu{padding-bottom:.02px}.ant-menu-vertical .ant-menu-item:not(:last-child),.ant-menu-vertical-left .ant-menu-item:not(:last-child),.ant-menu-vertical-right .ant-menu-item:not(:last-child),.ant-menu-inline .ant-menu-item:not(:last-child){margin-bottom:8px}.ant-menu-vertical>.ant-menu-item,.ant-menu-vertical-left>.ant-menu-item,.ant-menu-vertical-right>.ant-menu-item,.ant-menu-inline>.ant-menu-item,.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px}.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline{width:100%}.ant-menu-inline .ant-menu-selected:after,.ant-menu-inline .ant-menu-item-selected:after{transform:scaleY(1);opacity:1;transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title{width:calc(100% + 1px)}.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline.ant-menu-root .ant-menu-item,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title{display:flex;align-items:center;transition:border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1)}.ant-menu-inline.ant-menu-root .ant-menu-item>.ant-menu-title-content,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>.ant-menu-title-content{flex:auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.ant-menu-inline.ant-menu-root .ant-menu-item>*,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>*{flex:none}.ant-menu.ant-menu-inline-collapsed{width:80px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{left:0;padding:0 calc(50% - 8px);text-overflow:clip}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:0}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon{margin:0;font-size:16px;line-height:40px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span{display:inline-block;opacity:0}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed .anticon{display:inline-block}.ant-menu.ant-menu-inline-collapsed-tooltip{pointer-events:none}.ant-menu.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed-tooltip .anticon{display:none}.ant-menu.ant-menu-inline-collapsed-tooltip a{color:#ffffffd9}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-group-title{padding-right:4px;padding-left:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-menu-item-group-list{margin:0;padding:0}.ant-menu-item-group-list .ant-menu-item,.ant-menu-item-group-list .ant-menu-submenu-title{padding:0 16px 0 28px}.ant-menu-root.ant-menu-vertical,.ant-menu-root.ant-menu-vertical-left,.ant-menu-root.ant-menu-vertical-right,.ant-menu-root.ant-menu-inline{box-shadow:none}.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item>.ant-menu-inline-collapsed-noicon,.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon{font-size:16px;text-align:center}.ant-menu-sub.ant-menu-inline{padding:0;background:#fafafa;border:0;border-radius:0;box-shadow:none}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px;list-style-position:inside;list-style-type:disc}.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-left:32px}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:#00000040!important;background:none;cursor:not-allowed}.ant-menu-item-disabled:after,.ant-menu-submenu-disabled:after{border-color:transparent!important}.ant-menu-item-disabled a,.ant-menu-submenu-disabled a{color:#00000040!important;pointer-events:none}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#00000040!important;cursor:not-allowed}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(0,0,0,.25)!important}.ant-layout-header .ant-menu{line-height:inherit}.ant-menu-inline-collapsed-tooltip a,.ant-menu-inline-collapsed-tooltip a:hover{color:#fff}.ant-menu-light .ant-menu-item:hover,.ant-menu-light .ant-menu-item-active,.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,.ant-menu-light .ant-menu-submenu-active,.ant-menu-light .ant-menu-submenu-title:hover{color:#d03f0a}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu-dark .ant-menu-item:focus-visible,.ant-menu-dark .ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #ab2800}.ant-menu.ant-menu-dark,.ant-menu-dark .ant-menu-sub,.ant-menu.ant-menu-dark .ant-menu-sub{color:#ffffffa6;background:#001529}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:.45;transition:all .3s}.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark.ant-menu-submenu-popup{background:transparent}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#000c17}.ant-menu-dark.ant-menu-horizontal{border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{top:0;margin-top:0;padding:0 20px;border-color:#001529;border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item:hover{background-color:#d03f0a}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item>a:before{bottom:0}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a,.ant-menu-dark .ant-menu-item>span>a{color:#ffffffa6}.ant-menu-dark.ant-menu-inline,.ant-menu-dark.ant-menu-vertical,.ant-menu-dark.ant-menu-vertical-left,.ant-menu-dark.ant-menu-vertical-right{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-vertical .ant-menu-item,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title{width:100%}.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fff;background-color:transparent}.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-title:hover>a,.ant-menu-dark .ant-menu-item:hover>span>a,.ant-menu-dark .ant-menu-item-active>span>a,.ant-menu-dark .ant-menu-submenu-active>span>a,.ant-menu-dark .ant-menu-submenu-open>span>a,.ant-menu-dark .ant-menu-submenu-selected>span>a,.ant-menu-dark .ant-menu-submenu-title:hover>span>a{color:#fff}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{opacity:1}.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark .ant-menu-item:hover{background-color:transparent}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-selected{color:#fff;border-right:0}.ant-menu-dark .ant-menu-item-selected:after{border-right:0}.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>span>a,.ant-menu-dark .ant-menu-item-selected>a:hover,.ant-menu-dark .ant-menu-item-selected>span>a:hover{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,.ant-menu-dark .ant-menu-item-selected .anticon{color:#fff}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon+span,.ant-menu-dark .ant-menu-item-selected .anticon+span{color:#fff}.ant-menu.ant-menu-dark .ant-menu-item-selected,.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected{background-color:#d03f0a}.ant-menu-dark .ant-menu-item-disabled,.ant-menu-dark .ant-menu-submenu-disabled,.ant-menu-dark .ant-menu-item-disabled>a,.ant-menu-dark .ant-menu-submenu-disabled>a,.ant-menu-dark .ant-menu-item-disabled>span>a,.ant-menu-dark .ant-menu-submenu-disabled>span>a{color:#ffffff59!important;opacity:.8}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#ffffff59!important}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{background:rgba(255,255,255,.35)!important}.ant-menu.ant-menu-rtl{direction:rtl;text-align:right}.ant-menu-rtl .ant-menu-item-group-title{text-align:right}.ant-menu-rtl.ant-menu-inline,.ant-menu-rtl.ant-menu-vertical{border-right:none;border-left:1px solid #f0f0f0}.ant-menu-rtl.ant-menu-dark.ant-menu-inline,.ant-menu-rtl.ant-menu-dark.ant-menu-vertical{border-left:none}.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu{transform-origin:top right}.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-rtl .ant-menu-item .anticon,.ant-menu-rtl .ant-menu-submenu-title .anticon{margin-right:auto;margin-left:10px}.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.anticon{margin-left:0}.ant-menu-submenu-rtl.ant-menu-submenu-popup{transform-origin:100% 0}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow{right:auto;left:16px}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translateY(-2px)}.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{transform:rotate(45deg) translateY(2px)}.ant-menu-rtl.ant-menu-vertical .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-rtl.ant-menu-inline .ant-menu-item:after{right:auto;left:0}.ant-menu-rtl.ant-menu-vertical .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,.ant-menu-rtl.ant-menu-inline .ant-menu-item,.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{text-align:right}.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{padding-right:0;padding-left:34px}.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title{padding-right:16px;padding-left:34px}.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title{padding:0 calc(50% - 8px)}.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title{padding:0 28px 0 16px}.ant-menu-sub.ant-menu-inline{border:0}.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-right:32px;padding-left:0}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.ant-tag{box-sizing:border-box;margin:0 8px 0 0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;height:auto;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;background:#fafafa;border:1px solid #d9d9d9;border-radius:2px;opacity:1;transition:all .3s}.ant-tag,.ant-tag a,.ant-tag a:hover{color:#000000d9}.ant-tag>a:first-child:last-child{display:inline-block;margin:0 -8px;padding:0 8px}.ant-tag-close-icon{margin-left:3px;color:#00000073;font-size:10px;cursor:pointer;transition:all .3s}.ant-tag-close-icon:hover{color:#000000d9}.ant-tag-has-color{border-color:transparent}.ant-tag-has-color,.ant-tag-has-color a,.ant-tag-has-color a:hover,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover{color:#fff}.ant-tag-checkable{background-color:transparent;border-color:transparent;cursor:pointer}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#d03f0a}.ant-tag-checkable:active,.ant-tag-checkable-checked{color:#fff}.ant-tag-checkable-checked{background-color:#d03f0a}.ant-tag-checkable:active{background-color:#ab2800}.ant-tag-hidden{display:none}.ant-tag-pink{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-pink-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-magenta{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-magenta-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-red{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.ant-tag-red-inverse{color:#fff;background:#f5222d;border-color:#f5222d}.ant-tag-volcano{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.ant-tag-volcano-inverse{color:#fff;background:#fa541c;border-color:#fa541c}.ant-tag-orange{color:#d46b08;background:#fff7e6;border-color:#ffd591}.ant-tag-orange-inverse{color:#fff;background:#fa8c16;border-color:#fa8c16}.ant-tag-yellow{color:#d4b106;background:#feffe6;border-color:#fffb8f}.ant-tag-yellow-inverse{color:#fff;background:#fadb14;border-color:#fadb14}.ant-tag-gold{color:#d48806;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#08979c;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.ant-tag-lime-inverse{color:#fff;background:#a0d911;border-color:#a0d911}.ant-tag-green{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue{color:#096dd9;background:#e6f7ff;border-color:#91d5ff}.ant-tag-blue-inverse{color:#fff;background:#1890ff;border-color:#1890ff}.ant-tag-geekblue{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.ant-tag-geekblue-inverse{color:#fff;background:#2f54eb;border-color:#2f54eb}.ant-tag-purple{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.ant-tag-purple-inverse{color:#fff;background:#722ed1;border-color:#722ed1}.ant-tag-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-processing{color:#d03f0a;background:#fff1e6;border-color:#f7ae83}.ant-tag-error{color:#ff4d4f;background:#fff2f0;border-color:#ffccc7}.ant-tag-warning{color:#faad14;background:#fffbe6;border-color:#ffe58f}.ant-tag>.anticon+span,.ant-tag>span+.anticon{margin-left:7px}.ant-tag.ant-tag-rtl{margin-right:0;margin-left:8px;direction:rtl;text-align:right}.ant-tag-rtl .ant-tag-close-icon{margin-right:3px;margin-left:0}.ant-tag-rtl.ant-tag>.anticon+span,.ant-tag-rtl.ant-tag>span+.anticon{margin-right:7px;margin-left:0}.center[data-v-fb2cd509]{display:flex;justify-content:center;align-items:center}.tags-container[data-v-fb2cd509]{position:absolute;right:8px;bottom:8px;display:flex;width:calc(100% - 16px);flex-wrap:wrap-reverse;flex-direction:row-reverse}.tags-container>*[data-v-fb2cd509]{margin:0 0 4px 4px;font-size:14px;line-height:1.8}.file[data-v-fb2cd509]{padding:8px 16px;margin:8px;display:flex;align-items:center;background:var(--zp-primary-background);border-radius:8px;box-shadow:0 0 4px var(--zp-secondary-variant-background);position:relative;overflow:hidden}.file:hover .more[data-v-fb2cd509]{opacity:1}.file .more[data-v-fb2cd509]{opacity:0;transition:all .3s ease;position:absolute;top:4px;right:4px;cursor:pointer;z-index:100;font-size:500;font-size:1.8em;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:100vh;color:#fff;background:var(--zp-icon-bg)}.file.grid[data-v-fb2cd509]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-fb2cd509] .icon{font-size:8em}.file.grid[data-v-fb2cd509] .profile{padding:0 4px}.file.grid[data-v-fb2cd509] .profile .name{font-weight:500;padding:0}.file.grid[data-v-fb2cd509] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-fb2cd509] .ant-image,.file.grid[data-v-fb2cd509] .preview-icon-wrap{border:1px solid var(--zp-secondary);background-color:var(--zp-secondary-variant-background);border-radius:8px;overflow:hidden}.file.grid[data-v-fb2cd509] img,.file.grid[data-v-fb2cd509] .preview-icon-wrap>[role=img]{height:var(--22f86fa4);width:var(--22f86fa4);object-fit:contain}.file.clickable[data-v-fb2cd509]{cursor:pointer}.file.selected[data-v-fb2cd509]{outline:#0084ff solid 2px}.file .name[data-v-fb2cd509]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-fb2cd509]{display:flex;flex-direction:column;align-items:flex-end}.full-screen-menu[data-v-914c5f17]{position:fixed;z-index:99999;background:var(--zp-primary-background);padding:8px 16px;box-shadow:0 0 4px var(--zp-secondary);border-radius:4px}.full-screen-menu .tags-container>*[data-v-914c5f17]{margin-right:4px;font-size:14px;line-height:1.8}.full-screen-menu .container[data-v-914c5f17]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-914c5f17]{flex:1;word-break:break-all;white-space:pre-line;overflow:auto;z-index:1;padding-top:4px;position:relative}.full-screen-menu .gen-info .tags .tag[data-v-914c5f17]{display:inline-block;overflow:hidden;border-radius:4px;margin-right:8px;border:2px solid var(--zp-primary)}.full-screen-menu .gen-info .tags .name[data-v-914c5f17]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px}.full-screen-menu .gen-info .tags .value[data-v-914c5f17]{padding:4px}.full-screen-menu.unset-size[data-v-914c5f17]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-914c5f17]{position:absolute;bottom:0;right:0;transform:rotate(90deg);cursor:se-resize;z-index:1;background:var(--zp-primary-background);border-radius:2px}.full-screen-menu .mouse-sensor>*[data-v-914c5f17]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-914c5f17]{display:flex;align-items:center;user-select:none}.full-screen-menu .action-bar .icon[data-v-914c5f17]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-914c5f17]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-914c5f17]{flex-wrap:wrap}.full-screen-menu .action-bar>*[data-v-914c5f17]:not(:last-child){margin-right:8px} diff --git a/vue/dist/assets/fullScreenContextMenu-c82c54b8.js b/vue/dist/assets/fullScreenContextMenu-c82c54b8.js deleted file mode 100644 index 91ac4a8..0000000 --- a/vue/dist/assets/fullScreenContextMenu-c82c54b8.js +++ /dev/null @@ -1,4 +0,0 @@ -import{P as pe,bU as gn,a as ne,d as le,bq as nt,u as Ne,c as h,bV as it,_ as Rt,V as se,a0 as we,aj as H,bL as St,a3 as At,bo as yn,h as R,bW as bn,b as wn,ay as Sn,bX as An,a2 as Et,bK as En,bY as kn,bZ as Cn,$ as V,b0 as _n,z as te,aA as On,a1 as In,aI as Pn,b_ as xn,ax as rt,aC as ue,b$ as $n,c0 as Re,e as kt,bz as Ln,ag as ie,c1 as Mn,aR as Tn,c2 as Nn,c3 as zn,aM as at,am as Je,bn as Jt,c4 as Bn,c5 as Fn,c6 as Ee,c7 as Dn,c8 as Qn,R as fe,ai as j,U as jn,c9 as ze,x as N,ca as Vn,bO as Be,cb as Ct,k as Fe,ah as Un,cc as Yt,ar as ee,cd as lt,l as he,aw as qt,ap as Qe,ce as Hn,cf as _t,an as Kt,bQ as Ot,bP as Wn,cg as Ie,ch as Rn,aD as Jn,ci as Yn,cj as qn,ck as K,cl as ye,t as Me,as as It,cm as Pt,cn as Kn,L as re,J as Gn,co as Ye,al as ke,cp as Xn,cq as Zn,cr as ei,cs as ti,at as ni,au as ii,o as M,m as J,ct as ri,cu as ai,cv as li,cw as si,cx as oi,a5 as ui,y as U,cy as Ce,E as q,n as P,A as Se,cz as xt,bG as ci,cA as di,B as fi,N as Ae,v as T,r as z,W as Gt,cB as vi,cC as Xt,M as Zt,cD as pi,cE as hi,p as G,cF as mi,X as en,cG as gi,q as yi}from"./index-bd9cfb84.js";import{t as je,l as ve,g as bi}from"./shortcut-6308494d.js";import{f as wi,h as Si,a as Ai,t as Ei}from"./db-a47df277.js";var tn=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:pe.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}}},Ve=gn(),ki=function(){return ne(ne({},tn()),{},{type:Ve.type,size:String,htmlType:Ve.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:pe.any,title:String,loading:Ve.loading,onClick:{type:Function}})},Ci=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],_i=se.Group;const Te=le({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:nt(ki(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,o=n.emit,p=function(w){o("update:visible",w),o("visibleChange",w)},c=Ne("dropdown-button",t),f=c.prefixCls,g=c.direction,S=c.getPopupContainer;return function(){var E,w,v=ne(ne({},t),r),l=v.type,s=l===void 0?"default":l,a=v.disabled,m=v.loading,y=v.htmlType,d=v.class,u=d===void 0?"":d,b=v.overlay,O=b===void 0?(E=i.overlay)===null||E===void 0?void 0:E.call(i):b,A=v.trigger,_=v.align,L=v.visible;v.onVisibleChange;var I=v.placement,B=I===void 0?g.value==="rtl"?"bottomLeft":"bottomRight":I,k=v.href,x=v.title,Q=v.icon,C=Q===void 0?((w=i.icon)===null||w===void 0?void 0:w.call(i))||h(it,null,null):Q,$=v.mouseEnterDelay,F=v.mouseLeaveDelay,X=v.overlayClassName,W=v.overlayStyle,Z=v.destroyPopupOnHide,Y=v.onClick;v["onUpdate:visible"];var ce=Rt(v,Ci),de={align:_,disabled:a,trigger:a?[]:A,placement:B,getPopupContainer:S.value,onVisibleChange:p,mouseEnterDelay:$,mouseLeaveDelay:F,visible:L,overlayClassName:X,overlayStyle:W,destroyPopupOnHide:Z},bt=h(se,{type:s,disabled:a,loading:m,onClick:Y,htmlType:y,href:k,title:x},{default:i.default}),wt=h(se,{type:s,icon:C},null);return h(_i,ne(ne({},ce),{},{class:we(f.value,u)}),{default:function(){return[i.leftButton?i.leftButton({button:bt}):bt,h(oe,de,{default:function(){return[i.rightButton?i.rightButton({button:wt}):wt]},overlay:function(){return O}})]}})}}});var nn=le({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:nt(tn(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,o=n.emit,p=Ne("dropdown",t),c=p.prefixCls,f=p.rootPrefixCls,g=p.direction,S=p.getPopupContainer,E=H(function(){var s=t.placement,a=s===void 0?"":s,m=t.transitionName;return m!==void 0?m:a.indexOf("top")>=0?"".concat(f.value,"-slide-down"):"".concat(f.value,"-slide-up")}),w=function(){var a,m,y,d=t.overlay||((a=i.overlay)===null||a===void 0?void 0:a.call(i)),u=Array.isArray(d)?d[0]:d;if(!u)return null;var b=u.props||{};St(!b.mode||b.mode==="vertical","Dropdown",'mode="'.concat(b.mode,`" is not supported for Dropdown's Menu.`));var O=b.selectable,A=O===void 0?!1:O,_=b.expandIcon,L=_===void 0?(m=u.children)===null||m===void 0||(y=m.expandIcon)===null||y===void 0?void 0:y.call(m):_,I=typeof L<"u"&&Et(L)?L:h("span",{class:"".concat(c.value,"-menu-submenu-arrow")},[h(En,{class:"".concat(c.value,"-menu-submenu-arrow-icon")},null)]),B=Et(u)?At(u,{mode:"vertical",selectable:A,expandIcon:function(){return I}}):u;return B},v=H(function(){var s=t.placement;if(!s)return g.value==="rtl"?"bottomRight":"bottomLeft";if(s.includes("Center")){var a=s.slice(0,s.indexOf("Center"));return St(!s.includes("Center"),"Dropdown","You are using '".concat(s,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return s}),l=function(a){o("update:visible",a),o("visibleChange",a)};return function(){var s,a,m=t.arrow,y=t.trigger,d=t.disabled,u=t.overlayClassName,b=(s=i.default)===null||s===void 0?void 0:s.call(i)[0],O=At(b,yn({class:we(b==null||(a=b.props)===null||a===void 0?void 0:a.class,R({},"".concat(c.value,"-rtl"),g.value==="rtl"),"".concat(c.value,"-trigger"))},d?{disabled:d}:{})),A=we(u,R({},"".concat(c.value,"-rtl"),g.value==="rtl")),_=d?[]:y,L;_&&_.indexOf("contextmenu")!==-1&&(L=!0);var I=bn({arrowPointAtCenter:wn(m)==="object"&&m.pointAtCenter,autoAdjustOverflow:!0}),B=Sn(ne(ne(ne({},t),r),{},{builtinPlacements:I,overlayClassName:A,arrow:m,alignPoint:L,prefixCls:c.value,getPopupContainer:S.value,transitionName:E.value,trigger:_,onVisibleChange:l,placement:v.value}),["overlay","onUpdate:visible"]);return h(An,B,{default:function(){return[O]},overlay:w})}}});nn.Button=Te;const oe=nn;var Oi=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},Ii=le({compatConfig:{MODE:3},name:"ACheckableTag",props:Oi(),setup:function(t,n){var i=n.slots,r=n.emit,o=Ne("tag",t),p=o.prefixCls,c=function(S){var E=t.checked;r("update:checked",!E),r("change",!E),r("click",S)},f=H(function(){var g;return we(p.value,(g={},R(g,"".concat(p.value,"-checkable"),!0),R(g,"".concat(p.value,"-checkable-checked"),t.checked),g))});return function(){var g;return h("span",{class:f.value,onClick:c},[(g=i.default)===null||g===void 0?void 0:g.call(i)])}}});const qe=Ii;var Pi=new RegExp("^(".concat(kn.join("|"),")(-inverse)?$")),xi=new RegExp("^(".concat(Cn.join("|"),")$")),$i=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:pe.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:pe.any}},be=le({compatConfig:{MODE:3},name:"ATag",props:$i(),slots:["closeIcon","icon"],setup:function(t,n){var i=n.slots,r=n.emit,o=n.attrs,p=Ne("tag",t),c=p.prefixCls,f=p.direction,g=V(!0);_n(function(){t.visible!==void 0&&(g.value=t.visible)});var S=function(l){l.stopPropagation(),r("update:visible",!1),r("close",l),!l.defaultPrevented&&t.visible===void 0&&(g.value=!1)},E=H(function(){var v=t.color;return v?Pi.test(v)||xi.test(v):!1}),w=H(function(){var v;return we(c.value,(v={},R(v,"".concat(c.value,"-").concat(t.color),E.value),R(v,"".concat(c.value,"-has-color"),t.color&&!E.value),R(v,"".concat(c.value,"-hidden"),!g.value),R(v,"".concat(c.value,"-rtl"),f.value==="rtl"),v))});return function(){var v,l,s,a=t.icon,m=a===void 0?(v=i.icon)===null||v===void 0?void 0:v.call(i):a,y=t.color,d=t.closeIcon,u=d===void 0?(l=i.closeIcon)===null||l===void 0?void 0:l.call(i):d,b=t.closable,O=b===void 0?!1:b,A=function(){return O?u?h("span",{class:"".concat(c.value,"-close-icon"),onClick:S},[u]):h(In,{class:"".concat(c.value,"-close-icon"),onClick:S},null):null},_={backgroundColor:y&&!E.value?y:void 0},L=m||null,I=(s=i.default)===null||s===void 0?void 0:s.call(i),B=L?h(te,null,[L,h("span",null,[I])]):I,k="onClick"in o,x=h("span",{class:w.value,style:_},[B,A()]);return k?h(On,null,{default:function(){return[x]}}):x}}});be.CheckableTag=qe;be.install=function(e){return e.component(be.name,be),e.component(qe.name,qe),e};const Li=be;oe.Button=Te;oe.install=function(e){return e.component(oe.name,oe),e.component(Te.name,Te),e};var Mi=["class","style"],Ti=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:pe.any,delay:Number,indicator:pe.any}},Pe=null;function Ni(e,t){return!!e&&!!t&&!isNaN(Number(t))}function $a(e){var t=e.indicator;Pe=typeof t=="function"?t:function(){return h(t,null,null)}}const La=le({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:nt(Ti(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:Pn("configProvider",xn)}},data:function(){var t=this.spinning,n=this.delay,i=Ni(t,n);return{sSpinning:t&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var t=this;rt(function(){t.debouncifyUpdateSpinning(),t.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(t){var n=t||this.$props,i=n.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=ue(this.originalUpdateSpinning,i))},updateSpinning:function(){var t=this.spinning,n=this.sSpinning;n!==t&&(this.sSpinning=t)},cancelExistingSpin:function(){var t=this.updateSpinning;t&&t.cancel&&t.cancel()},renderIndicator:function(t){var n="".concat(t,"-dot"),i=$n(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),Re(i)?kt(i,{class:n}):Pe&&Re(Pe())?kt(Pe(),{class:n}):h("span",{class:"".concat(n," ").concat(t,"-dot-spin")},[h("i",{class:"".concat(t,"-dot-item")},null),h("i",{class:"".concat(t,"-dot-item")},null),h("i",{class:"".concat(t,"-dot-item")},null),h("i",{class:"".concat(t,"-dot-item")},null)]))}},render:function(){var t,n,i,r=this.$props,o=r.size,p=r.prefixCls,c=r.tip,f=c===void 0?(t=(n=this.$slots).tip)===null||t===void 0?void 0:t.call(n):c,g=r.wrapperClassName,S=this.$attrs,E=S.class,w=S.style,v=Rt(S,Mi),l=this.configProvider,s=l.getPrefixCls,a=l.direction,m=s("spin",p),y=this.sSpinning,d=(i={},R(i,m,!0),R(i,"".concat(m,"-sm"),o==="small"),R(i,"".concat(m,"-lg"),o==="large"),R(i,"".concat(m,"-spinning"),y),R(i,"".concat(m,"-show-text"),!!f),R(i,"".concat(m,"-rtl"),a==="rtl"),R(i,E,!!E),i),u=h("div",ne(ne({},v),{},{style:w,class:d}),[this.renderIndicator(m),f?h("div",{class:"".concat(m,"-text")},[f]):null]),b=Ln(this);if(b&&b.length){var O,A=(O={},R(O,"".concat(m,"-container"),!0),R(O,"".concat(m,"-blur"),y),O);return h("div",{class:["".concat(m,"-nested-loading"),g]},[y&&h("div",{key:"loading"},[u]),h("div",{class:A,key:"container"},[b])])}return u}});var zi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Bi=zi;function $t(e){for(var t=1;t{document.addEventListener(...e),at(()=>document.removeEventListener(...e))},Zi="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==",_e=new WeakMap;function er(e,t){return{useHookShareState:i=>{const r=Fn();Je(r),_e.has(r)||(_e.set(r,Jt(e(r,i??(t==null?void 0:t())))),at(()=>{_e.delete(r)}));const o=_e.get(r);return Je(o),{state:o,toRefs(){return Bn(o)}}}}}var tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const nr=tr;function Tt(e){for(var t=1;t(await Ee.value.get("/files",{params:{folder_path:e}})).data,xr=async e=>(await Ee.value.post("/delete_files",{file_paths:e})).data,sn=async(e,t,n)=>(await Ee.value.post("/move_files",{file_paths:e,dest:t,create_dest_folder:n})).data,$r=async(e,t,n)=>(await Ee.value.post("/copy_files",{file_paths:e,dest:t,create_dest_folder:n})).data,Lr=async e=>{await Ee.value.post("/mkdirs",{dest_folder:e})};var on={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,t){(function(n,i){e.exports=i})(Dn,function(){var n={};n.version="0.3.5";var i=n.settings={minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(l){var s,a;for(s in l)a=l[s],a!==void 0&&l.hasOwnProperty(s)&&(i[s]=a);return this},n.status=null,n.set=function(l){var s=n.isStarted();l=r(l,i.minimum,1),n.status=l===1?null:l;var a=n.render(!s),m=a.querySelector(i.barSelector),y=i.speed,d=i.easing;return a.offsetWidth,c(function(u){i.positionUsing===""&&(i.positionUsing=n.getPositioningCSS()),f(m,p(l,y,d)),l===1?(f(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout(function(){f(a,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){n.remove(),u()},y)},y)):setTimeout(u,y)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var l=function(){setTimeout(function(){n.status&&(n.trickle(),l())},i.trickleSpeed)};return i.trickle&&l(),this},n.done=function(l){return!l&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(l){var s=n.status;return s?s>1?void 0:(typeof l!="number"&&(s>=0&&s<.2?l=.1:s>=.2&&s<.5?l=.04:s>=.5&&s<.8?l=.02:s>=.8&&s<.99?l=.005:l=0),s=r(s+l,0,.994),n.set(s)):n.start()},n.trickle=function(){return n.inc()},function(){var l=0,s=0;n.promise=function(a){return!a||a.state()==="resolved"?this:(s===0&&n.start(),l++,s++,a.always(function(){s--,s===0?(l=0,n.done()):n.set((l-s)/l)}),this)}}(),n.getElement=function(){var l=n.getParent();if(l){var s=Array.prototype.slice.call(l.querySelectorAll(".nprogress")).filter(function(a){return a.parentElement===l});if(s.length>0)return s[0]}return null},n.getParent=function(){if(i.parent instanceof HTMLElement)return i.parent;if(typeof i.parent=="string")return document.querySelector(i.parent)},n.render=function(l){if(n.isRendered())return n.getElement();S(document.documentElement,"nprogress-busy");var s=document.createElement("div");s.id="nprogress",s.className="nprogress",s.innerHTML=i.template;var a=s.querySelector(i.barSelector),m=l?"-100":o(n.status||0),y=n.getParent(),d;return f(a,{transition:"all 0 linear",transform:"translate3d("+m+"%,0,0)"}),i.showSpinner||(d=s.querySelector(i.spinnerSelector),d&&v(d)),y!=document.body&&S(y,"nprogress-custom-parent"),y.appendChild(s),s},n.remove=function(){n.status=null,E(document.documentElement,"nprogress-busy"),E(n.getParent(),"nprogress-custom-parent");var l=n.getElement();l&&v(l)},n.isRendered=function(){return!!n.getElement()},n.getPositioningCSS=function(){var l=document.body.style,s="WebkitTransform"in l?"Webkit":"MozTransform"in l?"Moz":"msTransform"in l?"ms":"OTransform"in l?"O":"";return s+"Perspective"in l?"translate3d":s+"Transform"in l?"translate":"margin"};function r(l,s,a){return la?a:l}function o(l){return(-1+l)*100}function p(l,s,a){var m;return i.positionUsing==="translate3d"?m={transform:"translate3d("+o(l)+"%,0,0)"}:i.positionUsing==="translate"?m={transform:"translate("+o(l)+"%,0)"}:m={"margin-left":o(l)+"%"},m.transition="all "+s+"ms "+a,m}var c=function(){var l=[];function s(){var a=l.shift();a&&a(s)}return function(a){l.push(a),l.length==1&&s()}}(),f=function(){var l=["Webkit","O","Moz","ms"],s={};function a(u){return u.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(b,O){return O.toUpperCase()})}function m(u){var b=document.body.style;if(u in b)return u;for(var O=l.length,A=u.charAt(0).toUpperCase()+u.slice(1),_;O--;)if(_=l[O]+A,_ in b)return _;return u}function y(u){return u=a(u),s[u]||(s[u]=m(u))}function d(u,b,O){b=y(b),u.style[b]=O}return function(u,b){var O=arguments,A,_;if(O.length==2)for(A in b)_=b[A],_!==void 0&&b.hasOwnProperty(A)&&d(u,A,_);else d(u,O[1],O[2])}}();function g(l,s){var a=typeof l=="string"?l:w(l);return a.indexOf(" "+s+" ")>=0}function S(l,s){var a=w(l),m=a+s;g(a,s)||(l.className=m.substring(1))}function E(l,s){var a=w(l),m;g(l,s)&&(m=a.replace(" "+s+" "," "),l.className=m.substring(1,m.length-1))}function w(l){return(" "+(l&&l.className||"")+" ").replace(/\s+/gi," ")}function v(l){l&&l.parentNode&&l.parentNode.removeChild(l)}return n})})(on);var Mr=on.exports;const Tr=Qn(Mr),Nr=e=>{const t=V("");return new Promise(n=>{fe.confirm({title:j("inputFolderName"),content:()=>h(jn,{value:t.value,"onUpdate:value":i=>t.value=i},null),async onOk(){if(!t.value)return;const i=ze(e,t.value);await Lr(i),n()}})})},un=()=>h("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[N("Tips: "),j("multiSelectTips")]),yt=Vn("useTagStore",()=>{const e=Be(),t=new Set,n=Jt(new Map),i=async f=>{if(f=f.filter(g=>!t.has(g)&&!n.has(g)),!!f.length)try{f.forEach(S=>n.set(S,[]));const g=await wi(f);for(const S in g)n.set(S,g[S])}finally{f.forEach(g=>t.delete(g))}},r=["pink","red","orange","green","cyan","blue","purple"],o=new Map;return{tagMap:n,q:e,getColor:f=>{let g=o.get(f);if(!g){const S=Ct.hash.sha256.hash(f),E=parseInt(Ct.codec.hex.fromBits(S),16)%r.length;g=r[E],o.set(f,g)}return g},fetchImageTags:i,refreshTags:async f=>{f.forEach(g=>n.delete(g)),await i(f)}}});function Ue(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Re(e)}const He=new Map,D=Fe(),cn=yt(),Vt=Un(),Oe=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:xe,useEventListen:Ke}=Yt(),{useHookShareState:ae}=er((e,{images:t})=>{const n=V({tabIdx:-1,paneIdx:-1}),i=H(()=>ve(r.value)),r=V([]),o=H(()=>{var s;return r.value.map(a=>a.curr).slice((s=D.conf)!=null&&s.is_win?1:0)}),p=H(()=>ze(...o.value)),c=V(D.defaultSortingMethod),f=H(()=>{var d;if(t.value)return t.value;if(!i.value)return[];const s=((d=i.value)==null?void 0:d.files)??[],a=c.value,{walkFiles:m}=i.value,y=u=>D.onlyFoldersAndImages?u.filter(b=>b.type==="dir"||K(b.name)):u;return n.value.walkModePath?m?m.map(u=>ye(y(u),a)).flat():ye(y(s),a):ye(y(s),a)}),g=V([]),S=V(-1),E=V(!0),w=V(!1),v=V(!1),l=()=>{var s,a,m;return(m=(a=(s=D.tabList)==null?void 0:s[n.value.tabIdx])==null?void 0:a.panes)==null?void 0:m[n.value.paneIdx]};return{previewing:v,spinning:w,canLoadNext:E,multiSelectedIdxs:g,previewIdx:S,basePath:o,currLocation:p,currPage:i,stack:r,sortMethod:c,sortedFiles:f,scroller:V(),stackViewEl:V(),props:n,getPane:l,...Yt()}},()=>({images:V()}));function Na(e){const{previewIdx:t,eventEmitter:n,canLoadNext:i,previewing:r,sortedFiles:o,scroller:p}=ae().toRefs(),{state:c}=ae();let f=null;const g=(v,l)=>{var s;r.value=v,f!=null&&!v&&l&&((s=p.value)==null||s.scrollToItem(f),f=null)},S=()=>{e.walkModePath&&!w("next")&&i&&(ee.info(j("loadingNextFolder")),n.value.emit("loadNextDir",!0))};me("keydown",v=>{var l;if(r.value){let s=t.value;if(["ArrowDown","ArrowRight"].includes(v.key))for(s++;o.value[s]&&!K(o.value[s].name);)s++;else if(["ArrowUp","ArrowLeft"].includes(v.key))for(s--;o.value[s]&&!K(o.value[s].name);)s--;if(K((l=o.value[s])==null?void 0:l.name)??""){t.value=s;const a=p.value;a&&!(s>=a.$_startIndex&&s<=a.$_endIndex)&&(f=s)}S()}});const E=v=>{var s;let l=t.value;if(v==="next")for(l++;o.value[l]&&!K(o.value[l].name);)l++;else if(v==="prev")for(l--;o.value[l]&&!K(o.value[l].name);)l--;if(K((s=o.value[l])==null?void 0:s.name)??""){t.value=l;const a=p.value;a&&!(l>=a.$_startIndex&&l<=a.$_endIndex)&&(f=l)}S()},w=v=>{var s;let l=t.value;if(v==="next")for(l++;o.value[l]&&!K(o.value[l].name);)l++;else if(v==="prev")for(l--;o.value[l]&&!K(o.value[l].name);)l--;return K((s=o.value[l])==null?void 0:s.name)??""};return Ke("removeFiles",async()=>{var v;r.value&&!c.sortedFiles[t.value]&&(ee.info(j("manualExitFullScreen"),5),await lt(500),(v=document.querySelector(".ant-image-preview-operations-operation .anticon-close"))==null||v.click(),t.value=-1)}),{previewIdx:t,onPreviewVisibleChange:g,previewing:r,previewImgMove:E,canPreview:w}}function za(e){const t=V(),{scroller:n,stackViewEl:i,stack:r,currPage:o,currLocation:p,sortMethod:c,useEventListen:f,eventEmitter:g,getPane:S,multiSelectedIdxs:E,sortedFiles:w}=ae().toRefs();he(()=>r.value.length,ue((C,$)=>{var F;C!==$&&((F=n.value)==null||F.scrollToItem(0))},300));const v=async C=>{if(await y(C),e.walkModePath){await lt();const[$]=ye(o.value.files,c.value).filter(F=>F.type==="dir");$&&await y($.fullpath),await g.value.emit("loadNextDir")}};qt(async()=>{var C;if(!r.value.length){const $=await ge("/");r.value.push({files:$.files,curr:"/"})}t.value=new Tr,t.value.configure({parent:i.value}),e.path&&e.path!=="/"?await v(e.walkModePath??e.path):(C=D.conf)!=null&&C.home&&y(D.conf.home)}),he(p,ue(C=>{const $=S.value();if(!$)return;$.path=C;const F=$.path.split("/").pop(),W=(()=>{var Z;if(!e.walkModePath){const Y=Ie(C);for(const[ce,de]of Object.entries(D.pathAliasMap))if(Y.startsWith(de))return Y.replace(de,ce);return F}return"Walk: "+(((Z=D.quickMovePaths.find(Y=>Y.dir===$.walkModePath))==null?void 0:Z.zh)??F)})();$.name=Qe("div",{style:"display:flex;align-items:center"},[Qe(or),Qe("span",{class:"line-clamp-1",style:"max-width: 256px"},W)]),$.nameFallbackStr=W,D.recent=D.recent.filter(Z=>Z.key!==$.key),D.recent.unshift({path:C,key:$.key}),D.recent.length>20&&(D.recent=D.recent.slice(0,20))},300));const l=()=>Me(p.value),s=async C=>{var $,F;if(C.type==="dir")try{($=t.value)==null||$.start();const{files:X}=await ge(C.fullpath);r.value.push({files:X,curr:C.name})}finally{(F=t.value)==null||F.done()}},a=C=>{for(;C(Je(D.conf,"global.conf load failed"),D.conf.is_win?C.toLowerCase()==$.toLowerCase():C==$),y=async C=>{var F,X;const $=r.value.slice();try{Hn(C)||(C=ze(((F=D.conf)==null?void 0:F.sd_cwd)??"/",C));const W=_t(C),Z=r.value.map(Y=>Y.curr);for(Z.shift();Z[0]&&W[0]&&m(Z[0],W[0]);)Z.shift(),W.shift();for(let Y=0;Ym(de.name,Y));if(!ce)throw console.error({frags:W,frag:Y,stack:Kt(r.value)}),new Error(`${Y} not found`);await s(ce)}}catch(W){throw ee.error(j("moveFailedCheckPath")+(W instanceof Error?W.message:"")),console.error(C,_t(C),o.value),r.value=$,W}},d=Ot(async()=>{var C,$,F;try{if((C=t.value)==null||C.start(),e.walkModePath)a(0),await v(e.walkModePath);else{const{files:X}=await ge(r.value.length===1?"/":p.value);ve(r.value).files=X}($=n.value)==null||$.scrollToItem(0),ee.success(j("refreshCompleted"))}finally{(F=t.value)==null||F.done()}});Wn("returnToIIB",Ot(async()=>{var C,$;if(!e.walkModePath)try{(C=t.value)==null||C.start();const{files:F}=await ge(r.value.length===1?"/":p.value);ve(r.value).files.map(W=>W.date).join()!==F.map(W=>W.date).join()&&(ve(r.value).files=F,ee.success(j("autoUpdate")))}finally{($=t.value)==null||$.done()}})),f.value("refresh",d);const u=C=>{e.walkModePath&&(S.value().walkModePath=C),v(C)},b=H(()=>D.quickMovePaths.map(C=>({...C,path:Ie(C.dir)}))),O=H(()=>{const C=Ie(p.value);return b.value.find(F=>F.path===C)}),A=async()=>{const C=O.value;if(C){if(!C.can_delete)return;await Si(p.value),ee.success(j("removeComplete"))}else await Ai(p.value),ee.success(j("addComplete"));It.emit("searchIndexExpired"),It.emit("updateGlobalSetting")},_=V(!1),L=V(p.value),I=()=>{_.value=!0,L.value=p.value},B=async()=>{await y(L.value),_.value=!1};me("click",()=>{_.value=!1});const k=()=>{const C=parent.location,$=C.href.substring(0,C.href.length-C.search.length),F=new URLSearchParams(C.search);F.set("action","open"),F.set("path",p.value);const X=`${$}?${F.toString()}`;Me(X,j("copyLocationUrlSuccessMsg"))},x=()=>{console.log(`select all 0 -> ${w.value.length}`),E.value=an(0,w.value.length)};return f.value("selectAll",x),{locInputValue:L,isLocationEditing:_,onLocEditEnter:B,onEditBtnClick:I,addToSearchScanPathAndQuickMove:A,searchPathInfo:O,refresh:d,copyLocation:l,back:a,openNext:s,currPage:o,currLocation:p,to:y,stack:r,scroller:n,share:k,selectAll:x,quickMoveTo:u,onCreateFloderBtnClick:async()=>{await Nr(p.value),await d()}}}function Ba(e){const{scroller:t,sortedFiles:n,stack:i,sortMethod:r,currLocation:o,currPage:p,stackViewEl:c,canLoadNext:f,previewIdx:g}=ae().toRefs(),{state:S}=ae(),E=V(!1),w=V(D.defaultGridCellWidth),v=H(()=>w.value+16),l=44,{width:s}=Rn(c),a=H(()=>~~(s.value/v.value)),m=H(()=>{const A=v.value;return{first:A+(w.value<=160?0:l),second:A}}),y=V(!1),d=async()=>{var A;if(!(y.value||!e.walkModePath||!f.value))try{y.value=!0;const _=i.value[i.value.length-2],L=ye(_.files,r.value),I=L.findIndex(B=>{var k;return B.name===((k=p.value)==null?void 0:k.curr)});if(I!==-1){const B=L[I+1],k=ze(o.value,"../",B.name),x=await ge(k),Q=p.value;Q.curr=B.name,Q.walkFiles||(Q.walkFiles=[Q.files]),Q.walkFiles.push(x.files),console.log("curr page files length",(A=p.value)==null?void 0:A.files.length)}}catch(_){console.error("loadNextDir",_),f.value=!1}finally{y.value=!1}},u=async(A=!1)=>{const _=t.value,L=()=>A?g.value:(_==null?void 0:_.$_endIndex)??0;for(;!n.value.length||L()>n.value.length-20&&f.value;)await lt(100),await d()};S.useEventListen("loadNextDir",u);const b=()=>{const A=t.value;if(A){const _=n.value.slice(Math.max(A.$_startIndex-10,0),A.$_endIndex+10).filter(L=>L.is_under_scanned_path&&K(L.name)).map(L=>L.fullpath);cn.fetchImageTags(_)}};he(o,ue(b,150));const O=ue(()=>{u(),b()},300);return{gridItems:a,sortedFiles:n,sortMethodConv:Jn,moreActionsDropdownShow:E,gridSize:v,sortMethod:r,onScroll:O,loadNextDir:d,loadNextDirLoading:y,canLoadNext:f,itemSize:m,cellWidth:w,onViewedImagesChange:b}}function Fa(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:i,eventEmitter:r}=ae().toRefs(),o=()=>{i.value=[]};return me("click",o),me("blur",o),he(n,o),{onFileDragStart:(g,S)=>{const E=Kt(t.value[S]);Vt.fileDragging=!0,console.log("onFileDragStart set drag file ",g,S,E);const w=[E];let v=E.type==="dir";if(i.value.includes(S)){const s=i.value.map(a=>t.value[a]);w.push(...s),v=s.some(a=>a.type==="dir")}const l={includeDir:v,loc:e.value||"search-result",path:Pt(w,"fullpath").map(s=>s.fullpath),nodes:Pt(w,"fullpath"),__id:"FileTransferData"};g.dataTransfer.setData("text/plain",JSON.stringify(l))},onDrop:async g=>{const S=Kn(g);if(!S)return;const E=e.value;if(S.loc===E)return;const w=Be(),v=async()=>w.pushAction(async()=>{await $r(S.path,E),r.value.emit("refresh"),fe.destroyAll()}),l=()=>w.pushAction(async()=>{await sn(S.path,E),xe.emit("removeFiles",{paths:S.path,loc:S.loc}),r.value.emit("refresh"),fe.destroyAll()});fe.confirm({title:j("confirm")+"?",width:"60vw",content:()=>{let s,a,m;return h("div",null,[h("div",null,[`${j("moveSelectedFilesTo")} ${E}`,h("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[S.path.map(y=>h("li",null,[y.split(/[/\\]/).pop()]))])]),h(un,null,null),h("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[h(se,{onClick:fe.destroyAll},Ue(s=j("cancel"))?s:{default:()=>[s]}),h(se,{type:"primary",loading:!w.isIdle,onClick:v},Ue(a=j("copy"))?a:{default:()=>[a]}),h(se,{type:"primary",loading:!w.isIdle,onClick:l},Ue(m=j("move"))?m:{default:()=>[m]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:i,onFileDragEnd:()=>{Vt.fileDragging=!1}}}function Da(e,{openNext:t}){const n=V(!1),i=V(""),{sortedFiles:r,previewIdx:o,multiSelectedIdxs:p,stack:c,currLocation:f,spinning:g,previewing:S,stackViewEl:E,eventEmitter:w}=ae().toRefs(),v=Ie;Ke("removeFiles",({paths:y,loc:d})=>{if(v(d)!==v(f.value))return;const u=ve(c.value);u&&(u.files=u.files.filter(b=>!y.includes(b.fullpath)),u.walkFiles&&(u.walkFiles=u.walkFiles.map(b=>b.filter(O=>!y.includes(O.fullpath)))))}),Ke("addFiles",({files:y,loc:d})=>{if(v(d)!==v(f.value))return;const u=ve(c.value);u&&u.files.unshift(...y)});const l=Be(),s=async(y,d,u)=>{o.value=u,D.fullscreenPreviewInitialUrl=re(d);const b=p.value.indexOf(u);if(y.shiftKey){if(b!==-1)p.value.splice(b,1);else{p.value.push(u),p.value.sort((_,L)=>_-L);const O=p.value[0],A=p.value[p.value.length-1];p.value=an(O,A+1)}y.stopPropagation()}else y.ctrlKey||y.metaKey?(b!==-1?p.value.splice(b,1):p.value.push(u),y.stopPropagation()):await t(d)},a=async(y,d,u)=>{var L,I,B;const b=re(d),O=f.value,A=()=>{let k=[];return p.value.includes(u)?k=p.value.map(x=>r.value[x]):k.push(d),k},_=async k=>{if(!g.value)try{g.value=!0,await Zn(d.fullpath),Oe.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}));const x=setTimeout(()=>ei.warn({message:j("long_loading"),duration:20}),5e3);await ti(),clearTimeout(x),Oe.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:`iib_hidden_tab_${k}`}))}catch(x){console.error(x),ee.error("发送图像失败,请携带console的错误消息找开发者")}finally{g.value=!1}};if(`${y.key}`.startsWith("toggle-tag-")){const k=+`${y.key}`.split("toggle-tag-")[1],{is_remove:x}=await Ei({tag_id:k,img_path:d.fullpath}),Q=(I=(L=D.conf)==null?void 0:L.all_custom_tags.find(C=>C.id===k))==null?void 0:I.name;cn.refreshTags([d.fullpath]),ee.success(j(x?"removedTagFromImage":"addedTagToImage",{tag:Q}));return}switch(y.key){case"previewInNewWindow":return window.open(b);case"download":return window.open(re(d,!0));case"copyPreviewUrl":return Me(parent.document.location.origin+b);case"send2txt2img":return _("txt2img");case"send2img2img":return _("img2img");case"send2inpaint":return _("inpaint");case"send2extras":return _("extras");case"send2savedDir":{const k=D.quickMovePaths.find(C=>C.key==="outdir_save");if(!k)return ee.error(j("unknownSavedDir"));const x=Xn(k.dir,(B=D.conf)==null?void 0:B.sd_cwd),Q=A();await sn(Q.map(C=>C.fullpath),x,!0),xe.emit("removeFiles",{paths:Q.map(C=>C.fullpath),loc:f.value}),xe.emit("addFiles",{files:Q,loc:x});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const k=y.key.split("-")[1];Oe.postMessage(JSON.stringify({event:"send_to_control_net",type:k,url:re(d)}));break}case"send2outpaint":{i.value=await l.pushAction(()=>Ye(d.fullpath)).res;const[k,x]=(i.value||"").split(` -`);Oe.postMessage(JSON.stringify({event:"send_to_outpaint",url:re(d),prompt:k,negPrompt:x.slice(17)}));break}case"openWithWalkMode":{He.set(O,c.value);const k=D.tabList[e.tabIdx],x={type:"local",key:ke(),path:d.fullpath,name:j("local"),stackKey:O,walkModePath:d.fullpath};k.panes.push(x),k.key=x.key;break}case"openInNewTab":{He.set(O,c.value);const k=D.tabList[e.tabIdx],x={type:"local",key:ke(),path:d.fullpath,name:j("local"),stackKey:O};k.panes.push(x),k.key=x.key;break}case"openOnTheRight":{He.set(O,c.value);let k=D.tabList[e.tabIdx+1];k||(k={panes:[],key:"",id:ke()},D.tabList[e.tabIdx+1]=k);const x={type:"local",key:ke(),path:d.fullpath,name:j("local"),stackKey:O};k.panes.push(x),k.key=x.key;break}case"viewGenInfo":{n.value=!0,i.value=await l.pushAction(()=>Ye(d.fullpath)).res;break}case"openWithLocalFileBrowser":{await Gn(d.fullpath);break}case"deleteFiles":{const k=A();await new Promise(x=>{fe.confirm({title:j("confirmDelete"),maskClosable:!0,width:"60vw",content:h("div",null,[h("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[k.map(Q=>h("li",null,[Q.fullpath.split(/[/\\]/).pop()]))]),h(un,null,null)]),async onOk(){const Q=k.map(C=>C.fullpath);await xr(Q),ee.success(j("deleteSuccess")),xe.emit("removeFiles",{paths:Q,loc:f.value}),x()}})});break}}return{}},{isOutside:m}=Yn(E);return me("keydown",y=>{var u,b,O;const d=bi(y);if(S.value){const A=(u=Object.entries(D.shortcut).find(_=>_[1]===d&&_[1]))==null?void 0:u[0];if(A){y.stopPropagation(),y.preventDefault();const _=o.value,L=r.value[_];switch(A){case"delete":return re(L)===D.fullscreenPreviewInitialUrl?ee.warn(j("fullscreenRestriction")):a({key:"deleteFiles"},L,_);default:{const I=(b=/^toggle_tag_(.*)$/.exec(A))==null?void 0:b[1],B=(O=D.conf)==null?void 0:O.all_custom_tags.find(k=>k.name===I);return B?a({key:`toggle-tag-${B.id}`},L,_):void 0}}}}else!m.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(d)&&(y.preventDefault(),y.stopPropagation(),w.value.emit("selectAll"))}),{onFileItemClick:s,onContextMenuClick:a,showGenInfo:n,imageGenInfo:i,q:l}}const Qa=()=>{const{stackViewEl:e}=ae().toRefs(),t=V(-1);return qn(e,n=>{var r;let i=n.target;for(;i.parentElement;)if(i=i.parentElement,i.tagName.toLowerCase()==="li"&&i.classList.contains("file-item-trigger")){const o=(r=i.dataset)==null?void 0:r.idx;o&&Number.isSafeInteger(+o)&&(t.value=+o);return}}),{showMenuIdx:t}};function zr(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let $e;function Ge(){Ge.init||(Ge.init=!0,$e=zr()!==-1)}var De={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ge(),rt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",$e&&this.$el.appendChild(e),e.data="about:blank",$e||this.$el.appendChild(e)},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&&(!$e&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Br=ri();ni("data-v-b329ee4c");const Fr={class:"resize-observer",tabindex:"-1"};ii();const Dr=Br((e,t,n,i,r,o)=>(M(),J("div",Fr)));De.render=Dr;De.__scopeId="data-v-b329ee4c";De.__file="src/components/ResizeObserver.vue";function Le(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Le=function(t){return typeof t}:Le=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(e)}function Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ut(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},i,r,o,p=function(f){for(var g=arguments.length,S=new Array(g>1?g-1:0),E=1;E1){var g=c.find(function(E){return E.isIntersecting});g&&(f=g)}if(r.callback){var S=f.isIntersecting&&f.intersectionRatio>=r.threshold;if(S===r.oldResult)return;r.oldResult=S,r.callback(S,f)}},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}}]),e}();function fn(e,t,n){var i=t.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 Yr(e,i,n);e._vue_visibilityState=r}}function qr(e,t,n){var i=t.value,r=t.oldValue;if(!dn(i,r)){var o=e._vue_visibilityState;if(!i){vn(e);return}o?o.createObserver(i,n):fn(e,{value:i},n)}}function vn(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Kr={beforeMount:fn,updated:qr,unmounted:vn},Gr={itemsLimit:1e3},Xr=/(auto|scroll)/;function pn(e,t){return e.parentNode===null?t:pn(e.parentNode,t.concat([e]))}var We=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Zr=function(t){return We(t,"overflow")+We(t,"overflow-y")+We(t,"overflow-x")},ea=function(t){return Xr.test(Zr(t))};function Wt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=pn(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,r){const o=ai({id:ra++,index:t,used:!0,key:i,type:r}),p=li({item:n,position:0,nr:o});return e.push(p),p},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let r=n.get(i);r||(r=[],n.set(i,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,r=this.itemSecondarySize||n,o=this.$_computedMinItemSize,p=this.typeField,c=this.simpleArray?null:this.keyField,f=this.items,g=f.length,S=this.sizes,E=this.$_views,w=this.$_unusedViews,v=this.pool,l=this.itemIndexByKey;let s,a,m,y,d;if(!g)s=a=y=d=m=0;else if(this.$_prerender)s=y=0,a=d=Math.min(this.prerender,f.length),m=null;else{const I=this.getScroll();if(t){let x=I.start-this.$_lastUpdateScrollPosition;if(x<0&&(x=-x),n===null&&xI.start&&(C=$),$=~~((Q+C)/2);while($!==F);for($<0&&($=0),s=$,m=S[g-1].accumulator,a=$;ag&&(a=g)),y=s;yg&&(a=g),y<0&&(y=0),d>g&&(d=g),m=Math.ceil(g/i)*n}}a-s>Gr.itemsLimit&&this.itemsLimitError(),this.totalSize=m;let u;const b=s<=this.$_endIndex&&a>=this.$_startIndex;if(b)for(let I=0,B=v.length;I=a)&&this.unuseView(u));const O=b?null:new Map;let A,_,L;for(let I=s;I=k.length)&&(u=this.addView(v,I,A,B,_),this.unuseView(u,!0),k=w.get(_)),u=k[L],O.set(_,L+1)),E.delete(u.nr.key),u.nr.used=!0,u.nr.index=I,u.nr.key=B,u.nr.type=_,E.set(B,u),x=!0;else if(!u.nr.used&&(u.nr.used=!0,u.nr.index=I,x=!0,k)){const Q=k.indexOf(u);Q!==-1&&k.splice(Q,1)}u.item=A,x&&(I===f.length-1&&this.$emit("scroll-end"),I===0&&this.$emit("scroll-start")),n===null?(u.position=S[I-1].accumulator,u.offset=0):(u.position=Math.floor(I/i)*n,u.offset=I%i*r)}return this.$_startIndex=s,this.$_endIndex=a,this.emitUpdate&&this.$emit("update",s,a,y,d),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=Wt(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const r=e.getBoundingClientRect(),o=n?r.height:r.width;let p=-(n?r.top:r.left),c=n?window.innerHeight:window.innerWidth;p<0&&(c+=p,p=0),p+c>o&&(c=o-p),i={start:p,end:p+c}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,et?{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(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,r;if(this.pageMode){const o=Wt(this.$el),p=o.tagName==="HTML"?0:o[t.scroll],c=o.getBoundingClientRect(),g=this.$el.getBoundingClientRect()[t.start]-c[t.start];n=o,i=t.scroll,r=e+p+g}else n=this.$el,i=t.scroll,r=e;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((e,t)=>e.nr.index-t.nr.index)}}};const aa={key:0,ref:"before",class:"vue-recycle-scroller__slot"},la={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function sa(e,t,n,i,r,o){const p=si("ResizeObserver"),c=oi("observe-visibility");return ui((M(),U("div",{class:Ae(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...f)=>o.handleScroll&&o.handleScroll(...f))},[e.$slots.before?(M(),U("div",aa,[Ce(e.$slots,"before")],512)):q("v-if",!0),(M(),J(xt(n.listTag),{ref:"wrapper",style:fi({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Ae(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:P(()=>[(M(!0),U(te,null,Se(r.pool,f=>(M(),J(xt(n.itemTag),ci({key:f.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${f.position}px) translate${e.direction==="vertical"?"X":"Y"}(${f.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&r.hoverKey===f.nr.key}]]},di(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=f.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:P(()=>[Ce(e.$slots,"default",{item:f.item,index:f.nr.index,active:f.nr.used})]),_:2},1040,["style","class"]))),128)),Ce(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(M(),U("div",la,[Ce(e.$slots,"after")],512)):q("v-if",!0),h(p,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[c,o.handleVisibilityChange]])}hn.render=sa;hn.__file="src/components/RecycleScroller.vue";const tt=le({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Fe(),r=H(()=>{var o;return(((o=i.conf)==null?void 0:o.all_custom_tags)??[]).reduce((p,c)=>[...p,{...c,selected:!!n.selectedTag.find(f=>f.id===c.id)}],[])});return(o,p)=>{const c=Gt,f=vi,g=Xt,S=Zt;return M(),J(S,{onClick:p[0]||(p[0]=E=>t("contextMenuClick",E,o.file,o.idx))},{default:P(()=>{var E;return[h(c,{key:"deleteFiles",disabled:o.disableDelete},{default:P(()=>[N(T(o.$t("deleteSelected")),1)]),_:1},8,["disabled"]),o.file.type==="dir"?(M(),U(te,{key:0},[h(c,{key:"openInNewTab"},{default:P(()=>[N(T(o.$t("openInNewTab")),1)]),_:1}),h(c,{key:"openOnTheRight"},{default:P(()=>[N(T(o.$t("openOnTheRight")),1)]),_:1}),h(c,{key:"openWithWalkMode"},{default:P(()=>[N(T(o.$t("openWithWalkMode")),1)]),_:1})],64)):q("",!0),o.file.type==="file"?(M(),U(te,{key:1},[z(K)(o.file.name)?(M(),U(te,{key:0},[h(c,{key:"viewGenInfo"},{default:P(()=>[N(T(o.$t("viewGenerationInfo")),1)]),_:1}),h(f),((E=z(i).conf)==null?void 0:E.launch_mode)!=="server"?(M(),U(te,{key:0},[h(c,{key:"send2txt2img"},{default:P(()=>[N(T(o.$t("sendToTxt2img")),1)]),_:1}),h(c,{key:"send2img2img"},{default:P(()=>[N(T(o.$t("sendToImg2img")),1)]),_:1}),h(c,{key:"send2inpaint"},{default:P(()=>[N(T(o.$t("sendToInpaint")),1)]),_:1}),h(c,{key:"send2extras"},{default:P(()=>[N(T(o.$t("sendToExtraFeatures")),1)]),_:1}),h(g,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:P(()=>[h(c,{key:"send2controlnet-txt2img"},{default:P(()=>[N("ControlNet - "+T(o.$t("t2i")),1)]),_:1}),h(c,{key:"send2controlnet-img2img"},{default:P(()=>[N("ControlNet - "+T(o.$t("i2i")),1)]),_:1}),h(c,{key:"send2outpaint"},{default:P(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),h(c,{key:"send2savedDir"},{default:P(()=>[N(T(o.$t("send2savedDir")),1)]),_:1}),h(f),h(g,{key:"toggle-tag",title:o.$t("toggleTag")},{default:P(()=>[(M(!0),U(te,null,Se(r.value,w=>(M(),J(c,{key:`toggle-tag-${w.id}`},{default:P(()=>[N(T(w.name)+" ",1),w.selected?(M(),J(z(rn),{key:0})):(M(),J(z(ln),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),h(c,{key:"openWithLocalFileBrowser"},{default:P(()=>[N(T(o.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):q("",!0),h(c,{key:"previewInNewWindow"},{default:P(()=>[N(T(o.$t("previewInNewWindow")),1)]),_:1}),h(c,{key:"download"},{default:P(()=>[N(T(o.$t("download")),1)]),_:1}),h(c,{key:"copyPreviewUrl"},{default:P(()=>[N(T(o.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):q("",!0)]}),_:1})}}}),oa=["data-idx"],ua={class:"more"},ca={key:0,class:"tags-container"},da={key:1,class:"preview-icon-wrap"},fa={key:2,class:"profile"},va={class:"name line-clamp-1"},pa={class:"basic-info"},ha=le({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick"],setup(e,{emit:t}){const n=e;pi(c=>({"6fc250a6":c.$props.cellWidth+"px"}));const i=Fe(),r=yt(),o=H(()=>r.tagMap.get(n.file.fullpath)??[]),p=H(()=>{const c=i.gridThumbnailResolution;return i.enableThumbnail?hi(n.file,[c,c].join("x")):re(n.file)});return(c,f)=>{const g=oe,S=mi,E=Li;return M(),J(g,{trigger:["contextmenu"],visible:z(i).longPressOpenContextMenu?typeof c.idx=="number"&&c.showMenuIdx===c.idx:void 0,"onUpdate:visible":f[5]||(f[5]=w=>typeof c.idx=="number"&&t("update:showMenuIdx",w?c.idx:-1))},{overlay:P(()=>[h(tt,{file:c.file,idx:c.idx,"selected-tag":o.value,onContextMenuClick:f[4]||(f[4]=(w,v,l)=>t("contextMenuClick",w,v,l))},null,8,["file","idx","selected-tag"])]),default:P(()=>[(M(),U("li",{class:Ae(["file file-item-trigger grid",{clickable:c.file.type==="dir",selected:c.selected}]),"data-idx":c.idx,key:c.file.name,draggable:"true",onDragstart:f[1]||(f[1]=w=>t("dragstart",w,c.idx)),onDragend:f[2]||(f[2]=w=>t("dragend",w,c.idx)),onClickCapture:f[3]||(f[3]=w=>t("fileItemClick",w,c.file,c.idx))},[G("div",null,[h(g,null,{overlay:P(()=>[h(tt,{file:c.file,idx:c.idx,"selected-tag":o.value,onContextMenuClick:f[0]||(f[0]=(w,v,l)=>t("contextMenuClick",w,v,l))},null,8,["file","idx","selected-tag"])]),default:P(()=>[G("div",ua,[h(z(it))])]),_:1}),z(K)(c.file.name)?(M(),U("div",{style:{position:"relative"},key:c.file.fullpath,class:Ae(`idx-${c.idx}`)},[h(S,{src:p.value,fallback:z(Zi),preview:{src:c.fullScreenPreviewImageUrl,onVisibleChange:(w,v)=>t("previewVisibleChange",w,v)}},null,8,["src","fallback","preview"]),o.value&&c.cellWidth>128?(M(),U("div",ca,[(M(!0),U(te,null,Se(o.value,w=>(M(),J(E,{key:w.id,color:z(r).getColor(w.name)},{default:P(()=>[N(T(w.name),1)]),_:2},1032,["color"]))),128))])):q("",!0)],2)):(M(),U("div",da,[c.file.type==="file"?(M(),J(z(Vi),{key:0,class:"icon center"})):(M(),J(z(Ri),{key:1,class:"icon center"}))])),c.cellWidth>128?(M(),U("div",fa,[G("div",va,T(c.file.name),1),G("div",pa,[G("div",null,T(c.file.size),1),G("div",null,T(c.file.date),1)])])):q("",!0)])],42,oa))]),_:1},8,["visible"])}}});const ja=en(ha,[["__scopeId","data-v-8d65ebcc"]]);function ma(e,t,n,i){const r={x:0,y:0};let o=0,p=0,c=typeof(i==null?void 0:i.width)=="number"?i.width:0,f=typeof(i==null?void 0:i.height)=="number"?i.height:0,g=typeof(i==null?void 0:i.left)=="number"?i.left:0,S=typeof(i==null?void 0:i.top)=="number"?i.top:0,E=!1;const w=d=>{d.stopPropagation(),d.preventDefault(),!(!e.value||!t.value)&&(o=d instanceof MouseEvent?d.clientX:d.touches[0].clientX,p=d instanceof MouseEvent?d.clientY:d.touches[0].clientY,c=e.value.offsetWidth,f=e.value.offsetHeight,r.x=t.value.offsetLeft,r.y=t.value.offsetTop,document.documentElement.addEventListener("mousemove",v),document.documentElement.addEventListener("touchmove",v),document.documentElement.addEventListener("mouseup",l),document.documentElement.addEventListener("touchend",l))},v=d=>{if(!e.value||!t.value)return;let u=c+((d instanceof MouseEvent?d.clientX:d.touches[0].clientX)-o),b=f+((d instanceof MouseEvent?d.clientY:d.touches[0].clientY)-p),O=r.x+((d instanceof MouseEvent?d.clientX:d.touches[0].clientX)-o),A=r.y+((d instanceof MouseEvent?d.clientY:d.touches[0].clientY)-p);O+t.value.offsetWidth>window.innerWidth&&(O=window.innerWidth-t.value.offsetWidth),e.value.offsetLeft+u>window.innerWidth&&(u=window.innerWidth-e.value.offsetLeft),A+t.value.offsetHeight>window.innerHeight&&(A=window.innerHeight-t.value.offsetHeight),e.value.offsetTop+b>window.innerHeight&&(b=window.innerHeight-e.value.offsetTop),e.value.style.width=`${u}px`,e.value.style.height=`${b}px`,t.value.style.left=`${O}px`,t.value.style.top=`${A}px`,i!=null&&i.onResize&&i.onResize(u,b)},l=()=>{document.documentElement.removeEventListener("mousemove",v),document.documentElement.removeEventListener("touchmove",v),document.documentElement.removeEventListener("mouseup",l),document.documentElement.removeEventListener("touchend",l)},s=d=>{d.stopPropagation(),d.preventDefault(),!(!e.value||!n.value)&&(E=!0,g=e.value.offsetLeft,S=e.value.offsetTop,o=d instanceof MouseEvent?d.clientX:d.touches[0].clientX,p=d instanceof MouseEvent?d.clientY:d.touches[0].clientY,document.documentElement.addEventListener("mousemove",a),document.documentElement.addEventListener("touchmove",a),document.documentElement.addEventListener("mouseup",m),document.documentElement.addEventListener("touchend",m))},a=d=>{if(!e.value||!n.value||!E)return;const u=g+((d instanceof MouseEvent?d.clientX:d.touches[0].clientX)-o),b=S+((d instanceof MouseEvent?d.clientY:d.touches[0].clientY)-p);u<0?e.value.style.left="0px":u+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${u}px`,b<0?e.value.style.top="0px":b+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${b}px`,i!=null&&i.onDrag&&i.onDrag(u,b)},m=()=>{E=!1,document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",m),document.documentElement.removeEventListener("touchend",m)},y=()=>{if(!e.value||!t.value)return;let d=e.value.offsetLeft,u=e.value.offsetTop,b=e.value.offsetWidth,O=e.value.offsetHeight;d+b>window.innerWidth&&(d=window.innerWidth-b,d<0&&(d=0,b=window.innerWidth)),u+O>window.innerHeight&&(u=window.innerHeight-O,u<0&&(u=0,O=window.innerHeight)),e.value.style.left=`${d}px`,e.value.style.top=`${u}px`,e.value.style.width=`${b}px`,e.value.style.height=`${O}px`};return qt(()=>{!e.value||!i||(typeof i.width=="number"&&(e.value.style.width=`${i.width}px`),typeof i.height=="number"&&(e.value.style.height=`${i.height}px`),typeof i.left=="number"&&(e.value.style.left=`${i.left}px`),typeof i.top=="number"&&(e.value.style.top=`${i.top}px`),y(),window.addEventListener("resize",y))}),at(()=>{document.documentElement.removeEventListener("mousemove",v),document.documentElement.removeEventListener("touchmove",v),document.documentElement.removeEventListener("mouseup",l),document.documentElement.removeEventListener("touchend",l),document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",m),document.documentElement.removeEventListener("touchend",m),window.removeEventListener("resize",y)}),he(()=>[e.value,t.value,n.value],([d,u,b])=>{d&&u&&(u.addEventListener("mousedown",w),u.addEventListener("touchstart",w)),d&&b&&(b.addEventListener("mousedown",s),b.addEventListener("touchstart",s))}),{handleResizeMouseDown:w,handleDragMouseDown:s}}const ga={class:"container"},ya={class:"action-bar"},ba={key:0,class:"icon",style:{cursor:"pointer"}},wa={key:0,"flex-placeholder":""},Sa={key:1,class:"action-bar"},Aa={key:0,class:"gen-info"},Ea={class:"tags"},ka={class:"name"},Ca={class:"value"},_a=le({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Fe(),r=yt(),o=V(),p=H(()=>r.tagMap.get(n.file.fullpath)??[]),c=H(()=>{var a;return(((a=i.conf)==null?void 0:a.all_custom_tags)??[]).reduce((m,y)=>[...m,{...y,selected:!!p.value.find(d=>d.id===y.id)}],[])}),f=V(""),g=Be(),S=V("");he(()=>{var a;return(a=n==null?void 0:n.file)==null?void 0:a.fullpath},async a=>{a&&(g.tasks.forEach(m=>m.cancel()),g.pushAction(()=>Ye(a)).res.then(m=>{S.value=m}))},{immediate:!0});const E=V(),w=V(),v=gi("fullScreenContextMenu.vue-drag",{left:100,top:100,width:512,height:384,expanded:!0});ma(o,E,w,{...v.value,onDrag:ue(function(a,m){v.value={...v.value,left:a,top:m}},300),onResize:ue(function(a,m){v.value={...v.value,width:a,height:m}},300)});function l(a){return a.parentNode}me("load",a=>{const m=a.target;m.className==="ant-image-preview-img"&&(f.value=`${m.naturalWidth} x ${m.naturalHeight}`)},{capture:!0});const s=H(()=>{const a=[{name:j("fileName"),val:n.file.name},{name:j("fileSize"),val:n.file.size}];return f.value&&a.push({name:j("resolution"),val:f.value}),a});return(a,m)=>{const y=oe,d=se,u=Gt,b=Zt,O=Xt;return M(),U("div",{ref_key:"el",ref:o,class:Ae(["full-screen-menu",{"unset-size":!z(v).expanded}]),onWheelCapture:m[5]||(m[5]=yi(()=>{},["stop"]))},[G("div",ga,[G("div",ya,[G("div",{ref_key:"dragHandle",ref:w,class:"icon",style:{cursor:"grab"}},[h(z(fr))],512),G("div",{class:"icon",style:{cursor:"pointer"},onClick:m[0]||(m[0]=A=>z(v).expanded=!z(v).expanded)},[z(v).expanded?(M(),J(z(mr),{key:0})):(M(),J(z(wr),{key:1}))]),h(y,{"get-popup-container":l},{overlay:P(()=>[h(tt,{file:a.file,idx:a.idx,"selected-tag":p.value,"disable-delete":z(re)(a.file)===z(i).fullscreenPreviewInitialUrl,onContextMenuClick:m[1]||(m[1]=(A,_,L)=>t("contextMenuClick",A,_,L))},null,8,["file","idx","selected-tag","disable-delete"])]),default:P(()=>[z(v).expanded?q("",!0):(M(),U("div",ba,[h(z(it))]))]),_:1}),z(v).expanded?(M(),U("div",wa)):q("",!0),z(v).expanded?(M(),U("div",Sa,[h(y,{trigger:["hover"],"get-popup-container":l},{overlay:P(()=>[h(b,{onClick:m[2]||(m[2]=A=>t("contextMenuClick",A,a.file,a.idx))},{default:P(()=>[(M(!0),U(te,null,Se(c.value,A=>(M(),J(u,{key:`toggle-tag-${A.id}`},{default:P(()=>[N(T(A.name)+" ",1),A.selected?(M(),J(z(rn),{key:0})):(M(),J(z(ln),{key:1}))]),_:2},1024))),128))]),_:1})]),default:P(()=>[h(d,null,{default:P(()=>[N(T(a.$t("toggleTag")),1)]),_:1})]),_:1}),h(y,{trigger:["hover"],"get-popup-container":l},{overlay:P(()=>[h(b,{onClick:m[3]||(m[3]=A=>t("contextMenuClick",A,a.file,a.idx))},{default:P(()=>{var A;return[((A=z(i).conf)==null?void 0:A.launch_mode)!=="server"?(M(),U(te,{key:0},[h(u,{key:"send2txt2img"},{default:P(()=>[N(T(a.$t("sendToTxt2img")),1)]),_:1}),h(u,{key:"send2img2img"},{default:P(()=>[N(T(a.$t("sendToImg2img")),1)]),_:1}),h(u,{key:"send2inpaint"},{default:P(()=>[N(T(a.$t("sendToInpaint")),1)]),_:1}),h(u,{key:"send2extras"},{default:P(()=>[N(T(a.$t("sendToExtraFeatures")),1)]),_:1}),h(O,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:P(()=>[h(u,{key:"send2controlnet-txt2img"},{default:P(()=>[N("ControlNet - "+T(a.$t("t2i")),1)]),_:1}),h(u,{key:"send2controlnet-img2img"},{default:P(()=>[N("ControlNet - "+T(a.$t("i2i")),1)]),_:1}),h(u,{key:"send2outpaint"},{default:P(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),h(u,{key:"send2savedDir"},{default:P(()=>[N(T(a.$t("send2savedDir")),1)]),_:1}),h(u,{key:"deleteFiles",disabled:z(re)(a.file)===z(i).fullscreenPreviewInitialUrl},{default:P(()=>[N(T(a.$t("deleteSelected")),1)]),_:1},8,["disabled"]),h(u,{key:"previewInNewWindow"},{default:P(()=>[N(T(a.$t("previewInNewWindow")),1)]),_:1}),h(u,{key:"download"},{default:P(()=>[N(T(a.$t("download")),1)]),_:1}),h(u,{key:"copyPreviewUrl"},{default:P(()=>[N(T(a.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:P(()=>[h(d,null,{default:P(()=>[N(T(z(j)("openContextMenu")),1)]),_:1})]),_:1}),h(d,{onClick:m[4]||(m[4]=A=>z(Me)(S.value))},{default:P(()=>[N(T(a.$t("copyPrompt")),1)]),_:1})])):q("",!0)]),z(v).expanded?(M(),U("div",Aa,[G("div",Ea,[(M(!0),U(te,null,Se(s.value,A=>(M(),U("span",{class:"tag",key:A.name},[G("span",ka,T(A.name),1),G("span",Ca,T(A.val),1)]))),128))]),N(" "+T(S.value),1)])):q("",!0)]),z(v).expanded?(M(),U("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:E},[h(z(rr))],512)):q("",!0)],34)}}});const Va=en(_a,[["__scopeId","data-v-08accd51"]]);export{oe as D,Ma as L,Ta as R,La as S,za as a,Ba as b,Fa as c,Da as d,Na as e,Qa as f,He as g,hn as h,ja as i,Va as j,yt as k,Ke as l,$a as s,ae as u}; diff --git a/vue/dist/assets/globalSetting-0d8381b8.js b/vue/dist/assets/globalSetting-a9f67420.js similarity index 97% rename from vue/dist/assets/globalSetting-0d8381b8.js rename to vue/dist/assets/globalSetting-a9f67420.js index ad6bb64..ce79b48 100644 --- a/vue/dist/assets/globalSetting-0d8381b8.js +++ b/vue/dist/assets/globalSetting-a9f67420.js @@ -1 +1 @@ -import{Y as ne,Z as te,d as D,j as ae,av as le,w as O,$ as V,aj as E,l as L,u as oe,aw as ue,ax as ie,h as S,c as a,a as U,ay as de,az as se,g as R,aA as ce,P as s,aB as A,k as H,aC as re,o as y,y as I,n as c,r as n,ai as p,m as K,E as F,p as _,z as P,v as C,S as G,aD as he,I as fe,x,q as z,A as me,C as ve,aE as ge,aF as _e,aG as pe,aH as be,V as ke,U as Ce,X as we}from"./index-bd9cfb84.js";import{N as W,_ as q,F as ye}from"./numInput-ac6d6c4c.js";import{g as Se}from"./shortcut-6308494d.js";/* empty css *//* empty css */var Te=te("small","default"),$e=function(){return{id:String,prefixCls:String,size:s.oneOf(Te),disabled:{type:Boolean,default:void 0},checkedChildren:s.any,unCheckedChildren:s.any,tabindex:s.oneOfType([s.string,s.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:s.oneOfType([s.string,s.number,s.looseBool]),checkedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!0),unCheckedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},xe=D({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:$e(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,u){var v=u.attrs,w=u.slots,h=u.expose,r=u.emit,l=ae();le(function(){O(!("defaultChecked"in v),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),O(!("value"in v),"Switch","`value` is not validate prop, do you mean `checked`?")});var t=V(e.checked!==void 0?e.checked:v.defaultChecked),g=E(function(){return t.value===e.checkedValue});L(function(){return e.checked},function(){t.value=e.checked});var m=oe("switch",e),f=m.prefixCls,T=m.direction,M=m.size,b=V(),i=function(){var o;(o=b.value)===null||o===void 0||o.focus()},$=function(){var o;(o=b.value)===null||o===void 0||o.blur()};h({focus:i,blur:$}),ue(function(){ie(function(){e.autofocus&&!e.disabled&&b.value.focus()})});var N=function(o,k){e.disabled||(r("update:checked",o),r("change",o,k),l.onFieldChange())},Y=function(o){r("blur",o)},Z=function(o){i();var k=g.value?e.unCheckedValue:e.checkedValue;N(k,o),r("click",k,o)},J=function(o){o.keyCode===A.LEFT?N(e.unCheckedValue,o):o.keyCode===A.RIGHT&&N(e.checkedValue,o),r("keydown",o)},Q=function(o){var k;(k=b.value)===null||k===void 0||k.blur(),r("mouseup",o)},ee=E(function(){var d;return d={},S(d,"".concat(f.value,"-small"),M.value==="small"),S(d,"".concat(f.value,"-loading"),e.loading),S(d,"".concat(f.value,"-checked"),g.value),S(d,"".concat(f.value,"-disabled"),e.disabled),S(d,f.value,!0),S(d,"".concat(f.value,"-rtl"),T.value==="rtl"),d});return function(){var d;return a(ce,{insertExtraNode:!0},{default:function(){return[a("button",U(U(U({},de(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),v),{},{id:(d=e.id)!==null&&d!==void 0?d:l.id.value,onKeydown:J,onClick:Z,onBlur:Y,onMouseup:Q,type:"button",role:"switch","aria-checked":t.value,disabled:e.disabled||e.loading,class:[v.class,ee.value],ref:b}),[a("div",{class:"".concat(f.value,"-handle")},[e.loading?a(se,{class:"".concat(f.value,"-loading-icon")},null):null]),a("span",{class:"".concat(f.value,"-inner")},[g.value?R(w,e,"checkedChildren"):R(w,e,"unCheckedChildren")])])]}})}}});const X=ne(xe);const j="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",Ie=["width","height","src"],Fe=D({__name:"ImageSetting",setup(B){function e(w,h){return new Promise(r=>{const l=new Image;l.onload=()=>{const t=document.createElement("canvas");t.width=l.width*h,t.height=l.height*h,t.getContext("2d").drawImage(l,0,0,t.width,t.height),r(t.toDataURL())},l.src=w})}const u=H(),v=V("");return L(()=>[u.enableThumbnail,u.gridThumbnailResolution],re(async()=>{u.enableThumbnail&&(v.value=await e(j,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(w,h)=>{const r=q,l=X;return y(),I(P,null,[a(r,{label:n(p)("defaultGridCellWidth")},{default:c(()=>[a(W,{min:64,max:1024,step:32,modelValue:n(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=t=>n(u).defaultGridCellWidth=t)},null,8,["modelValue"])]),_:1},8,["label"]),a(r,{label:n(p)("useThumbnailPreview")},{default:c(()=>[a(l,{checked:n(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=t=>n(u).enableThumbnail=t)},null,8,["checked"])]),_:1},8,["label"]),n(u).enableThumbnail?(y(),K(r,{key:0,label:n(p)("thumbnailResolution")},{default:c(()=>[a(W,{modelValue:n(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=t=>n(u).gridThumbnailResolution=t),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):F("",!0),a(r,{label:n(p)("livePreview")},{default:c(()=>[_("div",null,[_("img",{width:n(u).defaultGridCellWidth,height:n(u).defaultGridCellWidth,src:n(u).enableThumbnail?v.value:n(j)},null,8,Ie)])]),_:1},8,["label"])],64)}}}),Ve={class:"panel"},Be={style:{"margin-top":"0"}},Me={class:"lang-select-wrap"},Ne={class:"col"},Ue={class:"col"},Ke={class:"col"},Pe=D({__name:"globalSetting",setup(B){const e=H(),u=V(!1),v=async()=>{window.location.reload()},w=[{value:"en",text:"English"},{value:"zh",text:"中文"},{value:"de",text:"Deutsch"}],h=(l,t)=>{const g=Se(l);g&&(e.shortcut[t]=g)},r=async()=>{await ge("shutdown_api_server_command"),await _e.removeFile(pe),await be()};return(l,t)=>{const g=X,m=q,f=ke,T=Ce,M=ye;return y(),I("div",Ve,[F("",!0),a(M,null,{default:c(()=>{var b;return[_("h2",Be,C(n(p)("ImageBrowsingSettings")),1),a(Fe),_("h2",null,C(n(p)("other")),1),a(m,{label:l.$t("onlyFoldersAndImages")},{default:c(()=>[a(g,{checked:n(e).onlyFoldersAndImages,"onUpdate:checked":t[0]||(t[0]=i=>n(e).onlyFoldersAndImages=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("defaultSortingMethod")},{default:c(()=>[a(n(G),{value:n(e).defaultSortingMethod,"onUpdate:value":t[1]||(t[1]=i=>n(e).defaultSortingMethod=i),conv:n(he),options:n(fe)},null,8,["value","conv","options"])]),_:1},8,["label"]),a(m,{label:l.$t("longPressOpenContextMenu")},{default:c(()=>[a(g,{checked:n(e).longPressOpenContextMenu,"onUpdate:checked":t[2]||(t[2]=i=>n(e).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("lang")},{default:c(()=>[_("div",Me,[a(n(G),{options:w,value:n(e).lang,"onUpdate:value":t[3]||(t[3]=i=>n(e).lang=i),onChange:t[4]||(t[4]=i=>u.value=!0)},null,8,["value"])]),u.value?(y(),K(f,{key:0,type:"primary",onClick:v,ghost:""},{default:c(()=>[x(C(n(p)("langChangeReload")),1)]),_:1})):F("",!0)]),_:1},8,["label"]),_("h2",null,C(n(p)("shortcutKey")),1),a(m,{label:l.$t("deleteSelected")},{default:c(()=>[_("div",Ne,[a(T,{value:n(e).shortcut.delete,onKeydown:t[5]||(t[5]=z(i=>h(i,"delete"),["stop","prevent"])),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),a(f,{onClick:t[6]||(t[6]=i=>n(e).shortcut.delete=""),class:"clear-btn"},{default:c(()=>[x(C(l.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(y(!0),I(P,null,me(((b=n(e).conf)==null?void 0:b.all_custom_tags)??[],i=>(y(),K(m,{label:l.$t("toggleTagSelection",{tag:i.name}),key:i.id},{default:c(()=>[_("div",Ue,[a(T,{value:n(e).shortcut[`toggle_tag_${i.name}`],onKeydown:z($=>h($,`toggle_tag_${i.name}`),["stop","prevent"]),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),a(f,{onClick:$=>n(e).shortcut[`toggle_tag_${i.name}`]="",class:"clear-btn"},{default:c(()=>[x(C(l.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),n(ve)?(y(),I(P,{key:0},[_("h2",null,C(n(p)("clientSpecificSettings")),1),a(m,null,{default:c(()=>[_("div",Ke,[a(f,{onClick:r,class:"clear-btn"},{default:c(()=>[x(C(l.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):F("",!0)]}),_:1})])}}});const Ge=we(Pe,[["__scopeId","data-v-60bd6962"]]);export{Ge as default}; +import{Y as ne,Z as te,d as D,j as ae,av as le,w as O,$ as V,aj as E,l as L,u as oe,aw as ue,ax as ie,h as S,c as a,a as U,ay as de,az as se,g as R,aA as ce,P as s,aB as A,k as H,aC as re,o as y,y as I,n as c,r as n,ai as p,m as K,E as F,p as _,z as P,v as C,S as G,aD as he,I as fe,x,q as z,A as me,C as ve,aE as ge,aF as _e,aG as pe,aH as be,V as ke,U as Ce,X as we}from"./index-cb943354.js";import{N as W,_ as q,F as ye}from"./numInput-98768867.js";import{g as Se}from"./shortcut-1308f2ef.js";/* empty css *//* empty css */var Te=te("small","default"),$e=function(){return{id:String,prefixCls:String,size:s.oneOf(Te),disabled:{type:Boolean,default:void 0},checkedChildren:s.any,unCheckedChildren:s.any,tabindex:s.oneOfType([s.string,s.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:s.oneOfType([s.string,s.number,s.looseBool]),checkedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!0),unCheckedValue:s.oneOfType([s.string,s.number,s.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},xe=D({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:$e(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,u){var v=u.attrs,w=u.slots,h=u.expose,r=u.emit,l=ae();le(function(){O(!("defaultChecked"in v),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),O(!("value"in v),"Switch","`value` is not validate prop, do you mean `checked`?")});var t=V(e.checked!==void 0?e.checked:v.defaultChecked),g=E(function(){return t.value===e.checkedValue});L(function(){return e.checked},function(){t.value=e.checked});var m=oe("switch",e),f=m.prefixCls,T=m.direction,M=m.size,b=V(),i=function(){var o;(o=b.value)===null||o===void 0||o.focus()},$=function(){var o;(o=b.value)===null||o===void 0||o.blur()};h({focus:i,blur:$}),ue(function(){ie(function(){e.autofocus&&!e.disabled&&b.value.focus()})});var N=function(o,k){e.disabled||(r("update:checked",o),r("change",o,k),l.onFieldChange())},Y=function(o){r("blur",o)},Z=function(o){i();var k=g.value?e.unCheckedValue:e.checkedValue;N(k,o),r("click",k,o)},J=function(o){o.keyCode===A.LEFT?N(e.unCheckedValue,o):o.keyCode===A.RIGHT&&N(e.checkedValue,o),r("keydown",o)},Q=function(o){var k;(k=b.value)===null||k===void 0||k.blur(),r("mouseup",o)},ee=E(function(){var d;return d={},S(d,"".concat(f.value,"-small"),M.value==="small"),S(d,"".concat(f.value,"-loading"),e.loading),S(d,"".concat(f.value,"-checked"),g.value),S(d,"".concat(f.value,"-disabled"),e.disabled),S(d,f.value,!0),S(d,"".concat(f.value,"-rtl"),T.value==="rtl"),d});return function(){var d;return a(ce,{insertExtraNode:!0},{default:function(){return[a("button",U(U(U({},de(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),v),{},{id:(d=e.id)!==null&&d!==void 0?d:l.id.value,onKeydown:J,onClick:Z,onBlur:Y,onMouseup:Q,type:"button",role:"switch","aria-checked":t.value,disabled:e.disabled||e.loading,class:[v.class,ee.value],ref:b}),[a("div",{class:"".concat(f.value,"-handle")},[e.loading?a(se,{class:"".concat(f.value,"-loading-icon")},null):null]),a("span",{class:"".concat(f.value,"-inner")},[g.value?R(w,e,"checkedChildren"):R(w,e,"unCheckedChildren")])])]}})}}});const X=ne(xe);const j="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",Ie=["width","height","src"],Fe=D({__name:"ImageSetting",setup(B){function e(w,h){return new Promise(r=>{const l=new Image;l.onload=()=>{const t=document.createElement("canvas");t.width=l.width*h,t.height=l.height*h,t.getContext("2d").drawImage(l,0,0,t.width,t.height),r(t.toDataURL())},l.src=w})}const u=H(),v=V("");return L(()=>[u.enableThumbnail,u.gridThumbnailResolution],re(async()=>{u.enableThumbnail&&(v.value=await e(j,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(w,h)=>{const r=q,l=X;return y(),I(P,null,[a(r,{label:n(p)("defaultGridCellWidth")},{default:c(()=>[a(W,{min:64,max:1024,step:32,modelValue:n(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=t=>n(u).defaultGridCellWidth=t)},null,8,["modelValue"])]),_:1},8,["label"]),a(r,{label:n(p)("useThumbnailPreview")},{default:c(()=>[a(l,{checked:n(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=t=>n(u).enableThumbnail=t)},null,8,["checked"])]),_:1},8,["label"]),n(u).enableThumbnail?(y(),K(r,{key:0,label:n(p)("thumbnailResolution")},{default:c(()=>[a(W,{modelValue:n(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=t=>n(u).gridThumbnailResolution=t),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):F("",!0),a(r,{label:n(p)("livePreview")},{default:c(()=>[_("div",null,[_("img",{width:n(u).defaultGridCellWidth,height:n(u).defaultGridCellWidth,src:n(u).enableThumbnail?v.value:n(j)},null,8,Ie)])]),_:1},8,["label"])],64)}}}),Ve={class:"panel"},Be={style:{"margin-top":"0"}},Me={class:"lang-select-wrap"},Ne={class:"col"},Ue={class:"col"},Ke={class:"col"},Pe=D({__name:"globalSetting",setup(B){const e=H(),u=V(!1),v=async()=>{window.location.reload()},w=[{value:"en",text:"English"},{value:"zh",text:"中文"},{value:"de",text:"Deutsch"}],h=(l,t)=>{const g=Se(l);g&&(e.shortcut[t]=g)},r=async()=>{await ge("shutdown_api_server_command"),await _e.removeFile(pe),await be()};return(l,t)=>{const g=X,m=q,f=ke,T=Ce,M=ye;return y(),I("div",Ve,[F("",!0),a(M,null,{default:c(()=>{var b;return[_("h2",Be,C(n(p)("ImageBrowsingSettings")),1),a(Fe),_("h2",null,C(n(p)("other")),1),a(m,{label:l.$t("onlyFoldersAndImages")},{default:c(()=>[a(g,{checked:n(e).onlyFoldersAndImages,"onUpdate:checked":t[0]||(t[0]=i=>n(e).onlyFoldersAndImages=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("defaultSortingMethod")},{default:c(()=>[a(n(G),{value:n(e).defaultSortingMethod,"onUpdate:value":t[1]||(t[1]=i=>n(e).defaultSortingMethod=i),conv:n(he),options:n(fe)},null,8,["value","conv","options"])]),_:1},8,["label"]),a(m,{label:l.$t("longPressOpenContextMenu")},{default:c(()=>[a(g,{checked:n(e).longPressOpenContextMenu,"onUpdate:checked":t[2]||(t[2]=i=>n(e).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),a(m,{label:l.$t("lang")},{default:c(()=>[_("div",Me,[a(n(G),{options:w,value:n(e).lang,"onUpdate:value":t[3]||(t[3]=i=>n(e).lang=i),onChange:t[4]||(t[4]=i=>u.value=!0)},null,8,["value"])]),u.value?(y(),K(f,{key:0,type:"primary",onClick:v,ghost:""},{default:c(()=>[x(C(n(p)("langChangeReload")),1)]),_:1})):F("",!0)]),_:1},8,["label"]),_("h2",null,C(n(p)("shortcutKey")),1),a(m,{label:l.$t("deleteSelected")},{default:c(()=>[_("div",Ne,[a(T,{value:n(e).shortcut.delete,onKeydown:t[5]||(t[5]=z(i=>h(i,"delete"),["stop","prevent"])),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),a(f,{onClick:t[6]||(t[6]=i=>n(e).shortcut.delete=""),class:"clear-btn"},{default:c(()=>[x(C(l.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(y(!0),I(P,null,me(((b=n(e).conf)==null?void 0:b.all_custom_tags)??[],i=>(y(),K(m,{label:l.$t("toggleTagSelection",{tag:i.name}),key:i.id},{default:c(()=>[_("div",Ue,[a(T,{value:n(e).shortcut[`toggle_tag_${i.name}`],onKeydown:z($=>h($,`toggle_tag_${i.name}`),["stop","prevent"]),placeholder:l.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),a(f,{onClick:$=>n(e).shortcut[`toggle_tag_${i.name}`]="",class:"clear-btn"},{default:c(()=>[x(C(l.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),n(ve)?(y(),I(P,{key:0},[_("h2",null,C(n(p)("clientSpecificSettings")),1),a(m,null,{default:c(()=>[_("div",Ke,[a(f,{onClick:r,class:"clear-btn"},{default:c(()=>[x(C(l.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):F("",!0)]}),_:1})])}}});const Ge=we(Pe,[["__scopeId","data-v-60bd6962"]]);export{Ge as default}; diff --git a/vue/dist/assets/hook-1cb05846.js b/vue/dist/assets/hook-9a09016a.js similarity index 90% rename from vue/dist/assets/hook-1cb05846.js rename to vue/dist/assets/hook-9a09016a.js index 3a36898..96215b6 100644 --- a/vue/dist/assets/hook-1cb05846.js +++ b/vue/dist/assets/hook-9a09016a.js @@ -1 +1 @@ -import{$ as D,bO as E,bd as P,aC as $}from"./index-bd9cfb84.js";import{k as z,u as G,b as L,f as O,a as Q,c as R,d as V,e as _,l as A}from"./fullScreenContextMenu-c82c54b8.js";const U=()=>{const e=D(),c=E(),u=z(),n={tabIdx:-1,target:"local",paneIdx:-1,walkMode:!1},{stackViewEl:r,multiSelectedIdxs:d,stack:m,scroller:o}=G({images:e}).toRefs(),{itemSize:g,gridItems:p,cellWidth:v}=L(n),{showMenuIdx:I}=O();Q(n);const{onFileDragStart:f,onFileDragEnd:x}=R(),{showGenInfo:h,imageGenInfo:w,q:k,onContextMenuClick:i,onFileItemClick:S}=V(n,{openNext:P}),{previewIdx:M,previewing:b,onPreviewVisibleChange:C,previewImgMove:F,canPreview:y}=_(n),T=async(s,a,t)=>{m.value=[{curr:"",files:e.value}],await i(s,a,t)};A("removeFiles",async({paths:s})=>{var a;e.value=(a=e.value)==null?void 0:a.filter(t=>!s.includes(t.fullpath))});const l=()=>{const s=o.value;if(s&&e.value){const a=e.value.slice(Math.max(s.$_startIndex-10,0),s.$_endIndex+10).map(t=>t.fullpath);u.fetchImageTags(a)}},q=$(l,300);return{scroller:o,queue:c,images:e,onContextMenuClickU:T,stackViewEl:r,previewIdx:M,previewing:b,onPreviewVisibleChange:C,previewImgMove:F,canPreview:y,itemSize:g,gridItems:p,showGenInfo:h,imageGenInfo:w,q:k,onContextMenuClick:i,onFileItemClick:S,showMenuIdx:I,multiSelectedIdxs:d,onFileDragStart:f,onFileDragEnd:x,cellWidth:v,onScroll:q,updateImageTag:l}};export{U as u}; +import{$ as D,bO as E,bd as P,aC as $}from"./index-cb943354.js";import{k as z,u as G,b as L,f as O,a as Q,c as R,d as V,e as _,l as A}from"./fullScreenContextMenu-8736e356.js";const U=()=>{const e=D(),c=E(),u=z(),n={tabIdx:-1,target:"local",paneIdx:-1,walkMode:!1},{stackViewEl:r,multiSelectedIdxs:d,stack:m,scroller:o}=G({images:e}).toRefs(),{itemSize:g,gridItems:p,cellWidth:v}=L(n),{showMenuIdx:I}=O();Q(n);const{onFileDragStart:f,onFileDragEnd:x}=R(),{showGenInfo:h,imageGenInfo:w,q:k,onContextMenuClick:i,onFileItemClick:S}=V(n,{openNext:P}),{previewIdx:M,previewing:b,onPreviewVisibleChange:C,previewImgMove:F,canPreview:y}=_(n),T=async(s,a,t)=>{m.value=[{curr:"",files:e.value}],await i(s,a,t)};A("removeFiles",async({paths:s})=>{var a;e.value=(a=e.value)==null?void 0:a.filter(t=>!s.includes(t.fullpath))});const l=()=>{const s=o.value;if(s&&e.value){const a=e.value.slice(Math.max(s.$_startIndex-10,0),s.$_endIndex+10).map(t=>t.fullpath);u.fetchImageTags(a)}},q=$(l,300);return{scroller:o,queue:c,images:e,onContextMenuClickU:T,stackViewEl:r,previewIdx:M,previewing:b,onPreviewVisibleChange:C,previewImgMove:F,canPreview:y,itemSize:g,gridItems:p,showGenInfo:h,imageGenInfo:w,q:k,onContextMenuClick:i,onFileItemClick:S,showMenuIdx:I,multiSelectedIdxs:d,onFileDragStart:f,onFileDragEnd:x,cellWidth:v,onScroll:q,updateImageTag:l}};export{U as u}; diff --git a/vue/dist/assets/index-bd9cfb84.js b/vue/dist/assets/index-cb943354.js similarity index 99% rename from vue/dist/assets/index-bd9cfb84.js rename to vue/dist/assets/index-cb943354.js index 25b50b3..0447f9c 100644 --- a/vue/dist/assets/index-bd9cfb84.js +++ b/vue/dist/assets/index-cb943354.js @@ -187,4 +187,4 @@ Note that this is not an issue if running this frontend on a browser instead of * pinia v2.1.3 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let E_;const su=t=>E_=t,T_=Symbol();function yf(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ro;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ro||(ro={}));function Zj(){const t=Of(!0),e=t.run(()=>W({}));let n=[],r=[];const a=Cs({install(i){su(a),a._a=i,i.provide(T_,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Qj?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const I_=()=>{};function Sy(t,e,n,r=I_){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Ef()&&Uy(a),a}function Da(t,...e){t.slice().forEach(n=>{n(...e)})}const ez=t=>t();function bf(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];yf(a)&&yf(r)&&t.hasOwnProperty(n)&&!tt(r)&&!wr(r)?t[n]=bf(a,r):t[n]=r}return t}const tz=Symbol();function nz(t){return!yf(t)||!t.hasOwnProperty(tz)}const{assign:Rr}=Object;function rz(t){return!!(tt(t)&&t.effect)}function az(t,e,n,r){const{state:a,actions:i,getters:o}=e,l=n.state.value[t];let s;function u(){l||(n.state.value[t]=a?a():{});const f=ib(n.state.value[t]);return Rr(f,i,Object.keys(o||{}).reduce((v,h)=>(v[h]=Cs(K(()=>{su(n);const g=n._s.get(t);return o[h].call(g,g)})),v),{}))}return s=A_(t,u,e,n,r,!0),s}function A_(t,e,n={},r,a,i){let o;const l=Rr({actions:{}},n),s={deep:!0};let u,f,v=[],h=[],g;const c=r.state.value[t];!i&&!c&&(r.state.value[t]={}),W({});let d;function m(I){let O;u=f=!1,typeof I=="function"?(I(r.state.value[t]),O={type:ro.patchFunction,storeId:t,events:g}):(bf(r.state.value[t],I),O={type:ro.patchObject,payload:I,storeId:t,events:g});const N=d=Symbol();Ke().then(()=>{d===N&&(u=!0)}),f=!0,Da(v,O,r.state.value[t])}const p=i?function(){const{state:O}=n,N=O?O():{};this.$patch(L=>{Rr(L,N)})}:I_;function y(){o.stop(),v=[],h=[],r._s.delete(t)}function b(I,O){return function(){su(r);const N=Array.from(arguments),L=[],F=[];function j(M){L.push(M)}function z(M){F.push(M)}Da(h,{args:N,name:I,store:C,after:j,onError:z});let $;try{$=O.apply(this&&this.$id===t?this:C,N)}catch(M){throw Da(F,M),M}return $ instanceof Promise?$.then(M=>(Da(L,M),M)).catch(M=>(Da(F,M),Promise.reject(M))):(Da(L,$),$)}}const w={_p:r,$id:t,$onAction:Sy.bind(null,h),$patch:m,$reset:p,$subscribe(I,O={}){const N=Sy(v,I,O.detached,()=>L()),L=o.run(()=>pe(()=>r.state.value[t],F=>{(O.flush==="sync"?f:u)&&I({storeId:t,type:ro.direct,events:g},F)},Rr({},s,O)));return N},$dispose:y},C=ot(w);r._s.set(t,C);const _=r._a&&r._a.runWithContext||ez,P=r._e.run(()=>(o=Of(),_(()=>o.run(e))));for(const I in P){const O=P[I];if(tt(O)&&!rz(O)||wr(O))i||(c&&nz(O)&&(tt(O)?O.value=c[I]:bf(O,c[I])),r.state.value[t][I]=O);else if(typeof O=="function"){const N=b(I,O);P[I]=N,l.actions[I]=O}}return Rr(C,P),Rr(Ne(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:I=>{m(O=>{Rr(O,I)})}}),r._p.forEach(I=>{Rr(C,o.run(()=>I({store:C,app:r._a,pinia:r,options:l})))}),c&&i&&n.hydrate&&n.hydrate(C.$state,c),u=!0,f=!0,C}function M_(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(l,s){const u=Ex();return l=l||(u?Ye(T_,null):null),l&&su(l),l=E_,l._s.has(r)||(i?A_(r,e,a,l):az(r,a,l)),l._s.get(r)}return o.$id=r,o}function iz(t){{t=Ne(t);const e={};for(const n in t){const r=t[n];(tt(r)||wr(r))&&(e[n]=Ut(t,n))}return e}}const oz=t=>Yc({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),lz=t=>({...t,panes:t.panes.map(oz)}),Wo=M_("useGlobalStore",()=>{const t=W(),e=W([]),n=W(!0),r=W(512),a=W(Av.CREATED_TIME_DESC),i=W(256),o=()=>({type:"empty",name:Te("emptyStartPage"),key:br()}),l=W([]);Re(()=>{const y=o();l.value.push({panes:[y],key:y.key,id:br()})});const s=W(),u=W(new Array),f=Date.now(),v=W(),h=()=>{var b;const y=Ne(l.value).map(lz);((b=v.value)==null?void 0:b[0].time)!==f?v.value=[{tabs:y,time:f},...v.value??[]]:v.value[0].tabs=y,v.value=v.value.slice(0,2)},g=async(y,b,w)=>{let C=l.value.map(P=>P.panes).flat().find(P=>P.type==="tag-search-matched-image-grid"&&P.id===b);if(C){C.selectedTagIds=Yc(w);return}else C={type:"tag-search-matched-image-grid",id:b,selectedTagIds:Yc(w),key:br(),name:Te("searchResults")};const _=l.value[y+1];_?(_.key=C.key,_.panes.push(C)):l.value.push({panes:[C],key:C.key,id:br()})},c=W(G1());pe(c,y=>wv.global.locale.value=y);const d=W(!1),m=W({delete:""}),p=K(()=>{if(!t.value)return{};const{global_setting:y,sd_cwd:b}=t.value,w={[Te("extra")]:y.outdir_extras_samples,[Te("saveButtonSavesTo")]:y.outdir_save,[Te("t2i")]:y.outdir_txt2img_samples,[Te("i2i")]:y.outdir_img2img_samples,[Te("i2i-grid")]:y.outdir_img2img_grids,[Te("t2i-grid")]:y.outdir_txt2img_grids},C=e.value.map(P=>P.dir),_=Object.keys(w).filter(P=>C.includes(w[P])).map(P=>[P,P_(w[P])?xn(w[P]):O_(b,w[P])]);return Object.fromEntries(_)});return{defaultSortingMethod:a,defaultGridCellWidth:i,pathAliasMap:p,createEmptyPane:o,lang:c,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:s,saveRecord:h,recent:u,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:d,openTagSearchMatchedImageGridInRight:g,onlyFoldersAndImages:W(!0),fullscreenPreviewInitialUrl:W(""),shortcut:m,dontShowAgain:W(!1),dontShowAgainNewImgOpts:W(!1)}},{persist:{paths:["dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","shortcut"]}});function N_(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const sz=()=>{const t=N_().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},uz=()=>{try{N_().querySelector("#tabs").querySelectorAll("button")[sz()].click()}catch(t){console.error(t)}},cz=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),fz=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{});function dz(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const vz=()=>ot(new Io(-1,0,-1,"throw")),F9=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}ya.success(e??Te("copied"))}catch{ya.error("copy failed. maybe it's non-secure environment")}},{useEventListen:pz,eventEmitter:k_}=Y1();function B9(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function hz(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const mz=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),gz=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const i=fz(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save"),o={...i,cwd:e,home:n,desktop:`${n}/Desktop`},l=await Yj(Object.values(o).filter(h=>h)),s={outdir_txt2img_samples:Te("t2i"),outdir_img2img_samples:Te("i2i"),outdir_save:Te("saveButtonSavesTo"),outdir_extras_samples:Te("extra"),outdir_grids:Te("gridImage"),outdir_img2img_grids:Te("i2i-grid"),outdir_samples:Te("image"),outdir_txt2img_grids:Te("t2i-grid"),cwd:Te("workingFolder"),home:"home",desktop:Te("desktop")},u={home:xn(n),[Te("desktop")]:xn(o.desktop),[Te("workingFolder")]:xn(a),[Te("t2i")]:i.outdir_txt2img_samples&&xn(i.outdir_txt2img_samples),[Te("i2i")]:i.outdir_img2img_samples&&xn(i.outdir_img2img_samples)},f=h=>{h=xn(h);const g=[];for(const[c,d]of Object.entries(u))c&&d&&g.push(h.replace(d,"$"+c));return g.sort((c,d)=>c.length-d.length)[0]},v=Object.keys(s).filter(h=>l[o[h]]).map(h=>{const g=h;return{key:g,zh:s[g],dir:o[g],can_delete:!1}}).concat(r.map(h=>({key:h.path,zh:f(h.path),dir:h.path,can_delete:!0})));return S5(v,"key")};const $_={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],l=this.panes[o[0]]||null,s=this.panes[o[1]]||null;const u=l.max<100&&i>=l.max+n.prevPanesSize,f=s.max<100&&i<=100-(s.max+this.sumNextPanesSize(e+1));if(u||f){u?(l.size=l.max,s.size=Math.max(100-l.max-n.prevPanesSize-n.nextPanesSize,0)):(l.size=Math.max(100-s.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),s.size=s.max);return}if(this.pushOtherPanes){const v=this.doPushOtherPanes(n,i);if(!v)return;({sums:n,panesToResize:o}=v),l=this.panes[o[0]]||null,s=this.panes[o[1]]||null}l!==null&&(l.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,l.min),l.max)),s!==null&&(s.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,s.min),s.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return wa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},yz=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},bz={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function wz(t,e,n,r,a,i){return Xe(),dn("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:vi(t.style)},[Wl(t.$slots,"default")],4)}const wf=yz(bz,[["render",wz]]);function Mv(t){return Ef()?(Uy(t),!0):!1}function Nv(t){return typeof t=="function"?t():xe(t)}const R_=typeof window<"u",kv=()=>{};function Cz(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const L_=t=>t();function _z(t=L_){const e=W(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:ws(e),pause:n,resume:r,eventFilter:a}}function Sz(...t){if(t.length!==1)return Ut(...t);const e=t[0];return typeof e=="function"?ws(zS(()=>({get:e,set:kv}))):W(e)}function xz(t,e=!0){bt()?Re(t):e?t():Ke(t)}var xy=Object.getOwnPropertySymbols,Pz=Object.prototype.hasOwnProperty,Oz=Object.prototype.propertyIsEnumerable,Ez=(t,e)=>{var n={};for(var r in t)Pz.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xy)for(var r of xy(t))e.indexOf(r)<0&&Oz.call(t,r)&&(n[r]=t[r]);return n};function Tz(t,e,n={}){const r=n,{eventFilter:a=L_}=r,i=Ez(r,["eventFilter"]);return pe(t,Cz(a,e),i)}var Iz=Object.defineProperty,Az=Object.defineProperties,Mz=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,D_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,Py=(t,e,n)=>e in t?Iz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Nz=(t,e)=>{for(var n in e||(e={}))D_.call(e,n)&&Py(t,n,e[n]);if(vs)for(var n of vs(e))F_.call(e,n)&&Py(t,n,e[n]);return t},kz=(t,e)=>Az(t,Mz(e)),$z=(t,e)=>{var n={};for(var r in t)D_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vs)for(var r of vs(t))e.indexOf(r)<0&&F_.call(t,r)&&(n[r]=t[r]);return n};function Rz(t,e,n={}){const r=n,{eventFilter:a}=r,i=$z(r,["eventFilter"]),{eventFilter:o,pause:l,resume:s,isActive:u}=_z(a);return{stop:Tz(t,e,kz(Nz({},i),{eventFilter:o})),pause:l,resume:s,isActive:u}}function Lz(t,e,n){let r;tt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:l=kv}=r,s=W(!a),u=o?Rn(e):W(e);let f=0;return st(async v=>{if(!s.value)return;f++;const h=f;let g=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const c=await t(d=>{v(()=>{i&&(i.value=!1),g||d()})});h===f&&(u.value=c)}catch(c){l(c)}finally{i&&h===f&&(i.value=!1),g=!0}}),a?K(()=>(s.value=!0,u.value)):u}function Hr(t){var e;const n=Nv(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Sr=R_?window:void 0,Dz=R_?window.document:void 0;function On(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Sr):[e,n,r,a]=t,!e)return kv;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(f=>f()),i.length=0},l=(f,v,h,g)=>(f.addEventListener(v,h,g),()=>f.removeEventListener(v,h,g)),s=pe(()=>[Hr(e),Nv(a)],([f,v])=>{o(),f&&i.push(...n.flatMap(h=>r.map(g=>l(f,h,g,v))))},{immediate:!0,flush:"post"}),u=()=>{s(),o()};return Mv(u),u}const Fz=500;function j9(t,e,n){var r,a;const i=K(()=>Hr(t));let o;function l(){o&&(clearTimeout(o),o=void 0)}function s(f){var v,h,g,c;(v=n==null?void 0:n.modifiers)!=null&&v.self&&f.target!==i.value||(l(),(h=n==null?void 0:n.modifiers)!=null&&h.prevent&&f.preventDefault(),(g=n==null?void 0:n.modifiers)!=null&&g.stop&&f.stopPropagation(),o=setTimeout(()=>e(f),(c=n==null?void 0:n.delay)!=null?c:Fz))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};On(i,"pointerdown",s,u),On(i,"pointerup",l,u),On(i,"pointerleave",l,u)}function Bz(){const t=W(!1);return bt()&&Re(()=>{t.value=!0}),t}function B_(t){const e=Bz();return K(()=>(e.value,!!t()))}function jz(t,e={}){const{window:n=Sr}=e,r=B_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=W(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},l=()=>{r.value&&(o(),a=n.matchMedia(Sz(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",l):a.addListener(l)))};return st(l),Mv(()=>o()),i}const wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cl="__vueuse_ssr_handlers__",zz=Wz();function Wz(){return Cl in wl||(wl[Cl]=wl[Cl]||{}),wl[Cl]}function Vz(t,e){return zz[t]||e}function Hz(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var Uz=Object.defineProperty,Oy=Object.getOwnPropertySymbols,Kz=Object.prototype.hasOwnProperty,Gz=Object.prototype.propertyIsEnumerable,Ey=(t,e,n)=>e in t?Uz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ty=(t,e)=>{for(var n in e||(e={}))Kz.call(e,n)&&Ey(t,n,e[n]);if(Oy)for(var n of Oy(e))Gz.call(e,n)&&Ey(t,n,e[n]);return t};const qz={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Iy="vueuse-storage";function Yz(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:f,window:v=Sr,eventFilter:h,onError:g=I=>{console.error(I)}}=r,c=(f?Rn:W)(e);if(!n)try{n=Vz("getDefaultStorage",()=>{var I;return(I=Sr)==null?void 0:I.localStorage})()}catch(I){g(I)}if(!n)return c;const d=Nv(e),m=Hz(d),p=(a=r.serializer)!=null?a:qz[m],{pause:y,resume:b}=Rz(c,()=>w(c.value),{flush:i,deep:o,eventFilter:h});return v&&l&&(On(v,"storage",P),On(v,Iy,_)),P(),c;function w(I){try{if(I==null)n.removeItem(t);else{const O=p.write(I),N=n.getItem(t);N!==O&&(n.setItem(t,O),v&&v.dispatchEvent(new CustomEvent(Iy,{detail:{key:t,oldValue:N,newValue:O,storageArea:n}})))}}catch(O){g(O)}}function C(I){const O=I?I.newValue:n.getItem(t);if(O==null)return s&&d!==null&&n.setItem(t,p.write(d)),d;if(!I&&u){const N=p.read(O);return typeof u=="function"?u(N,d):m==="object"&&!Array.isArray(N)?Ty(Ty({},d),N):N}else return typeof O!="string"?O:p.read(O)}function _(I){P(I.detail)}function P(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){c.value=d;return}if(!(I&&I.key!==t)){y();try{c.value=C(I)}catch(O){g(O)}finally{I?Ke(b):b()}}}}}function Xz(t){return jz("(prefers-color-scheme: dark)",t)}function Jz({document:t=Dz}={}){if(!t)return W("visible");const e=W(t.visibilityState);return On(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Ay=Object.getOwnPropertySymbols,Qz=Object.prototype.hasOwnProperty,Zz=Object.prototype.propertyIsEnumerable,e7=(t,e)=>{var n={};for(var r in t)Qz.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ay)for(var r of Ay(t))e.indexOf(r)<0&&Zz.call(t,r)&&(n[r]=t[r]);return n};function t7(t,e,n={}){const r=n,{window:a=Sr}=r,i=e7(r,["window"]);let o;const l=B_(()=>a&&"ResizeObserver"in a),s=()=>{o&&(o.disconnect(),o=void 0)},u=K(()=>Array.isArray(t)?t.map(h=>Hr(h)):[Hr(t)]),f=pe(u,h=>{if(s(),l.value&&a){o=new ResizeObserver(e);for(const g of h)g&&o.observe(g,i)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{s(),f()};return Mv(v),{isSupported:l,stop:v}}function n7(t,e={width:0,height:0},n={}){const{window:r=Sr,box:a="content-box"}=n,i=K(()=>{var s,u;return(u=(s=Hr(t))==null?void 0:s.namespaceURI)==null?void 0:u.includes("svg")}),o=W(e.width),l=W(e.height);return t7(t,([s])=>{const u=a==="border-box"?s.borderBoxSize:a==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(r&&i.value){const f=Hr(t);if(f){const v=r.getComputedStyle(f);o.value=parseFloat(v.width),l.value=parseFloat(v.height)}}else if(u){const f=Array.isArray(u)?u:[u];o.value=f.reduce((v,{inlineSize:h})=>v+h,0),l.value=f.reduce((v,{blockSize:h})=>v+h,0)}else o.value=s.contentRect.width,l.value=s.contentRect.height},n),pe(()=>Hr(t),s=>{o.value=s?e.width:0,l.value=s?e.height:0}),{width:o,height:l}}function z9(t,e,n={}){const{window:r=Sr}=n;return Yz(t,e,r==null?void 0:r.localStorage,n)}const r7={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function a7(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Sr,target:o=i,eventFilter:l}=t,s=W(a.x),u=W(a.y),f=W(null),v=typeof e=="function"?e:r7[e],h=p=>{const y=v(p);y&&([s.value,u.value]=y,f.value="mouse")},g=p=>{if(p.touches.length>0){const y=v(p.touches[0]);y&&([s.value,u.value]=y,f.value="touch")}},c=()=>{s.value=a.x,u.value=a.y},d=l?p=>l(()=>h(p),{}):p=>h(p),m=l?p=>l(()=>g(p),{}):p=>g(p);return o&&(On(o,"mousemove",d,{passive:!0}),On(o,"dragover",d,{passive:!0}),n&&e!=="movement"&&(On(o,"touchstart",m,{passive:!0}),On(o,"touchmove",m,{passive:!0}),r&&On(o,"touchend",c,{passive:!0}))),{x:s,y:u,sourceType:f}}function My(t,e={}){const{handleOutside:n=!0,window:r=Sr}=e,{x:a,y:i,sourceType:o}=a7(e),l=W(t??(r==null?void 0:r.document.body)),s=W(0),u=W(0),f=W(0),v=W(0),h=W(0),g=W(0),c=W(!0);let d=()=>{};return r&&(d=pe([l,a,i],()=>{const m=Hr(l);if(!m)return;const{left:p,top:y,width:b,height:w}=m.getBoundingClientRect();f.value=p+r.pageXOffset,v.value=y+r.pageYOffset,h.value=w,g.value=b;const C=a.value-f.value,_=i.value-v.value;c.value=b===0||w===0||C<0||_<0||C>b||_>w,(n||!c.value)&&(s.value=C,u.value=_)},{immediate:!0}),On(document,"mouseleave",()=>{c.value=!0})),{x:a,y:i,sourceType:o,elementX:s,elementY:u,elementPositionX:f,elementPositionY:v,elementHeight:h,elementWidth:g,isOutside:c,stop:d}}const i7={style:{position:"relative"}},o7=fe({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Wo(),r=W(),a=W(),{isOutside:i}=My(a),{isOutside:o}=My(r),l=K(()=>!i.value&&!!n.dragingTab),s=K(()=>!o.value&&!!n.dragingTab&&!l.value),u=(f,v)=>{var g,c,d,m;const h=JSON.parse(((g=f.dataTransfer)==null?void 0:g.getData("text"))??"{}");if(console.log("on-drop",v,h),(h==null?void 0:h.from)==="tab-drag"){if(f.stopPropagation(),n.dragingTab=void 0,v==="insert"&&h.tabIdx===e.tabIdx)return;const p=n.tabList,y=p[h.tabIdx].panes[h.paneIdx];p[h.tabIdx].panes.splice(h.paneIdx,1),v==="add-right"?(p[e.tabIdx].key=((c=p[e.tabIdx].panes[h.paneIdx-1])==null?void 0:c.key)??p[e.tabIdx].panes[0].key,p.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:br()})):(p[h.tabIdx].key=((d=p[h.tabIdx].panes[h.paneIdx-1])==null?void 0:d.key)??((m=p[h.tabIdx].panes[0])==null?void 0:m.key),p[e.tabIdx].panes.push(y),p[e.tabIdx].key=y.key),p[h.tabIdx].panes.length===0&&p.splice(h.tabIdx,1)}};return(f,v)=>(Xe(),dn("div",{class:ba(["wrap",{accept:s.value}]),ref_key:"trigger",ref:r,onDragover:v[2]||(v[2]=Dn(()=>{},["prevent"])),onDrop:v[3]||(v[3]=Dn(h=>u(h,"insert"),["prevent"]))},[Pn("div",{class:ba(["trigger",{accept:l.value}]),ref_key:"edgeTrigger",ref:a,onDragover:v[0]||(v[0]=Dn(()=>{},["prevent"])),onDrop:v[1]||(v[1]=Dn(h=>u(h,"add-right"),["prevent"]))},null,34),Pn("div",i7,[Wl(f.$slots,"default",{},void 0,!0)])],34))}});const uu=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},l7=uu(o7,[["__scopeId","data-v-10c5aba4"]]);const j_=M_("useImgSliStore",()=>{const t=W(!1),e=W(!1),n=W(!1),r=W(),a=W(),i=Wo(),o=K(()=>{var s;const l=i.tabList;for(const u of l)if(((s=u.panes.find(f=>f.key===u.key))==null?void 0:s.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}}),ao=encodeURIComponent,ps=(t,e=!1)=>`${Iv.value}/file?path=${ao(t.fullpath)}&t=${ao(t.date)}${e?`&disposition=${ao(t.name)}`:""}`,Ny=(t,e="512x512")=>`${Iv.value}/image-thumbnail?path=${ao(t.fullpath)}&size=${e}&t=${ao(t.date)}`,z_=t=>typeof t=="object"&&t.__id==="FileTransferData",W9=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return z_(e)?e:null},s7=t=>(db("data-v-e631564f"),t=t(),vb(),t),u7={key:0,class:"dragging-port-wrap"},c7={class:"content"},f7={key:0,class:"img-wrap"},d7={key:1},v7=s7(()=>Pn("div",{style:{padding:"16px"}},null,-1)),p7={key:0,class:"img-wrap"},h7={key:1},m7={class:"actions"},g7=fe({__name:"DraggingPort",setup(t){const e=j_(),n=Wo(),{left:r,right:a}=iz(e),i=async(s,u)=>{var v;const f=JSON.parse(((v=s.dataTransfer)==null?void 0:v.getData("text"))??"{}");if(z_(f)){const h=f.nodes[0];if(!dz(h.name))return;e[u]=h}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},l=()=>{J1(r.value&&a.value);const s={type:"img-sli",left:r.value,right:a.value,name:`${Te("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:br()};n.tabList[0].panes.push(s),n.tabList[0].key=s.key};return(s,u)=>{const f=bF,v=In;return Xe(),Yt(lr,null,{default:_t(()=>[(xe(e).fileDragging||xe(r)||xe(a)||xe(e).opened)&&!xe(e).imgSliActived?(Xe(),dn("div",u7,[Pn("h2",null,gr(s.$t("imgCompare")),1),Pn("div",c7,[Pn("div",{class:"left port",onDragover:u[1]||(u[1]=Dn(()=>{},["prevent"])),onDrop:u[2]||(u[2]=Dn(h=>i(h,"left"),["prevent"]))},[xe(r)?(Xe(),dn("div",f7,[x(f,{src:xe(Ny)(xe(r)),preview:{src:xe(ps)(xe(r))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[0]||(u[0]=h=>r.value=void 0)})])):(Xe(),dn("div",d7,gr(s.$t("dragImageHere")),1))],32),v7,Pn("div",{class:"right port",onDragover:u[4]||(u[4]=Dn(()=>{},["prevent"])),onDrop:u[5]||(u[5]=Dn(h=>i(h,"right"),["prevent"]))},[xe(a)?(Xe(),dn("div",p7,[x(f,{src:xe(Ny)(xe(a)),preview:{src:xe(ps)(xe(a))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[3]||(u[3]=h=>a.value=void 0)})])):(Xe(),dn("div",h7,gr(s.$t("dragImageHere")),1))],32)]),Pn("div",m7,[xe(r)&&xe(a)?(Xe(),Yt(v,{key:0,type:"primary",onClick:u[6]||(u[6]=h=>xe(e).drawerVisible=!0)},{default:_t(()=>[Bn(gr(s.$t("confirm")),1)]),_:1})):qa("",!0),xe(r)&&xe(a)?(Xe(),Yt(v,{key:1,type:"primary",onClick:l},{default:_t(()=>[Bn(gr(s.$t("confirm"))+"("+gr(s.$t("openInNewTab"))+")",1)]),_:1})):qa("",!0),x(v,{style:{"margin-left":"16px"},onClick:o},{default:_t(()=>[Bn(gr(s.$t("close")),1)]),_:1})])])):qa("",!0)]),_:1})}}});const y7=uu(g7,[["__scopeId","data-v-e631564f"]]),b7={class:"container"},w7=["src"],C7=fe({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=K(()=>{let r="";const i=e.containerWidth;return e.side==="left"?r=`calc(50% - ${(e.percent-50)/100*i}px)`:r=`calc(-50% - ${(e.percent-50)/100*i+4}px)`,`${e.maxEdge==="width"?"width:100%":"height:100%"};transform: translate(${r}, -50%)`});return(r,a)=>(Xe(),dn("div",b7,[Pn("img",{class:ba(["img",[r.side]]),style:vi(n.value),src:xe(ps)(r.img),onDragstart:a[0]||(a[0]=Dn(()=>{},["prevent","stop"]))},null,46,w7)]))}});const ky=uu(C7,[["__scopeId","data-v-9aea5307"]]),_7=fe({__name:"ImgSliComparePane",props:{left:{},right:{}},setup(t,{expose:e}){const n=t,r=W(50),a=([{size:u}])=>{r.value=u},i=W(),{width:o}=n7(i);e({requestFullScreen:()=>{var u;(u=i.value)==null||u.requestFullscreen()}});const s=Lz(async()=>{if(!n.left)return"width";const u=await mz(ps(n.left)),f=u.width/u.height,v=document.body.clientWidth/document.body.clientHeight;return f>v?"width":"height"});return(u,f)=>(Xe(),dn("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe($_),{class:"default-theme",onResize:a},{default:_t(()=>[u.left?(Xe(),Yt(xe(wf),{key:0},{default:_t(()=>[x(ky,{side:"left","max-edge":xe(s),"container-width":xe(o),percent:r.value,img:u.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):qa("",!0),u.right?(Xe(),Yt(xe(wf),{key:1},{default:_t(()=>[x(ky,{"max-edge":xe(s),percent:r.value,img:u.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):qa("",!0)]),_:1})],512))}});const S7={class:"actions"},x7=fe({__name:"ImgSliDrawer",setup(t){const e=j_(),n=W();return(r,a)=>{const i=In,o=d4;return Xe(),dn(De,null,[x(o,{width:"100vw",visible:xe(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>xe(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:_t(()=>[Pn("div",S7,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:_t(()=>[Bn(gr(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var s;return(s=n.value)==null?void 0:s.requestFullScreen()})},{default:_t(()=>[Bn(gr(r.$t("fullscreenview")),1)]),_:1})])]),default:_t(()=>[xe(e).left&&xe(e).right?(Xe(),Yt(_7,{key:0,ref_key:"splitpane",ref:n,left:xe(e).left,right:xe(e).right},null,8,["left","right"])):qa("",!0)]),_:1},8,["visible"]),x(y7)],64)}}});const P7=fe({__name:"SplitViewTab",setup(t){const e=Wo(),n={local:Qr(()=>kr(()=>import("./stackView-7827e95e.js"),["assets/stackView-7827e95e.js","assets/fullScreenContextMenu-c82c54b8.js","assets/shortcut-6308494d.js","assets/shortcut-9fed83c2.css","assets/db-a47df277.js","assets/fullScreenContextMenu-b8773d51.css","assets/numInput-ac6d6c4c.js","assets/numInput-a08c6857.css","assets/stackView-132bf7ce.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:Qr(()=>kr(()=>import("./emptyStartup-84df7526.js"),["assets/emptyStartup-84df7526.js","assets/db-a47df277.js","assets/emptyStartup-b6d0892f.css"])),"global-setting":Qr(()=>kr(()=>import("./globalSetting-0d8381b8.js"),["assets/globalSetting-0d8381b8.js","assets/numInput-ac6d6c4c.js","assets/shortcut-6308494d.js","assets/shortcut-9fed83c2.css","assets/numInput-a08c6857.css","assets/globalSetting-272483f3.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":Qr(()=>kr(()=>import("./MatchedImageGrid-5aba792b.js"),["assets/MatchedImageGrid-5aba792b.js","assets/fullScreenContextMenu-c82c54b8.js","assets/shortcut-6308494d.js","assets/shortcut-9fed83c2.css","assets/db-a47df277.js","assets/fullScreenContextMenu-b8773d51.css","assets/hook-1cb05846.js","assets/MatchedImageGrid-50706dba.css"])),"tag-search":Qr(()=>kr(()=>import("./TagSearch-937fcdeb.js"),["assets/TagSearch-937fcdeb.js","assets/db-a47df277.js","assets/TagSearch-ffd782da.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":Qr(()=>kr(()=>import("./SubstrSearch-e4de2d60.js"),["assets/SubstrSearch-e4de2d60.js","assets/fullScreenContextMenu-c82c54b8.js","assets/shortcut-6308494d.js","assets/shortcut-9fed83c2.css","assets/db-a47df277.js","assets/fullScreenContextMenu-b8773d51.css","assets/hook-1cb05846.js","assets/SubstrSearch-eed349e1.css","assets/index-f4bbe4b8.css"])),"img-sli":Qr(()=>kr(()=>import("./ImgSliPagePane-bb445162.js"),[]))},r=(o,l,s)=>{var f,v;const u=e.tabList[o];if(s==="add"){const h={type:"empty",key:br(),name:Te("emptyStartPage")};u.panes.push(h),u.key=h.key}else{const h=u.panes.findIndex(g=>g.key===l);if(u.key===l&&(u.key=((f=u.panes[h-1])==null?void 0:f.key)??((v=u.panes[0])==null?void 0:v.key)),u.panes.splice(h,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const g=e.createEmptyPane();e.tabList.push({panes:[g],key:g.key,id:br()})}}},a=W();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((l,s)=>{Array.from(l.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,f)=>{const v=u;v.setAttribute("draggable","true"),v.setAttribute("tabIdx",s.toString()),v.setAttribute("paneIdx",f.toString()),v.ondragend=()=>{e.dragingTab=void 0},v.ondragstart=h=>{e.dragingTab={tabIdx:s,paneIdx:f},h.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:s,paneIdx:f,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=qc(()=>k_.emit("returnToIIB"),100);return xz(async()=>{const o=window.parent;if(!await cz(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const l=o.get_uiCurrentTabContent();l!=null&&l.id.includes("infinite-image-browsing")&&i()})}),pe(Jz(),o=>o&&i()),(o,l)=>{const s=ls,u=Qi;return Xe(),dn("div",{ref_key:"container",ref:a},[x(xe($_),{class:"default-theme"},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(xe(e).tabList,(f,v)=>(Xe(),Yt(xe(wf),{key:f.id},{default:_t(()=>[x(l7,{tabIdx:v},{default:_t(()=>[x(u,{type:"editable-card",activeKey:f.key,"onUpdate:activeKey":h=>f.key=h,onEdit:(h,g)=>r(v,h,g)},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(f.panes,(h,g)=>(Xe(),Yt(s,{key:h.key,tab:h.name,class:"pane"},{default:_t(()=>[(Xe(),Yt(gx(n[h.type]),Gf({tabIdx:v,paneIdx:g},h),null,16,["tabIdx","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(x7)],512)}}});const O7=uu(P7,[["__scopeId","data-v-9e960f18"]]),E7=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],l={type:"local",path:a,key:br(),name:""};o.panes.unshift(l),o.key=l.key,uz(),hz(["action","path"]);break}}};function $y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!nr(t)}const W_="app.conf.json",io=W(),V_=()=>Ao.writeFile(W_,JSON.stringify(Ne(io.value),null,4)),T7=fe({setup(){const t=async()=>{const e=await w_({directory:!0});if(typeof e=="string"){if(!await Ao.exists(`${e}/config.json`))return ya.error(Te("tauriLaunchConfMessages.configNotFound"));if(!await Ao.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return ya.error(Te("tauriLaunchConfMessages.folderNotFound"));io.value.sdwebui_dir=e,ya.info(Te("tauriLaunchConfMessages.configCompletedMessage")),await V_(),await lu("shutdown_api_server_command"),await ou(1500),await g_()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Te("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Te("tauriLaunchConf.readSdWebuiConfigDescription")]),x(In,{onClick:t,type:"primary"},$y(e=Te("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Te("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Te("tauriLaunchConf.skipThisConfigDescription")]),x(In,{type:"primary",onClick:Xt.destroyAll},$y(n=Te("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),I7=async()=>{try{io.value=JSON.parse(await Ao.readTextFile(W_))}catch{}io.value||(io.value={sdwebui_dir:""},await V_(),Xt.info({title:Te("tauriLaunchConfMessages.firstTimeUserTitle"),content:x(T7,null,null),width:"80vw",okText:Te("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Xt.destroyAll}}))},A7=!!{}.TAURI_ARCH,M7=fe({__name:"App",setup(t){const e=Wo(),n=vz();return pz("updateGlobalSetting",async()=>{await Uj(),console.log(ds.value);const r=await qj();e.conf=r;const a=await gz(r);e.quickMovePaths=a.filter(i=>{var o,l;return(l=(o=i==null?void 0:i.dir)==null?void 0:o.trim)==null?void 0:l.call(o)}),E7(e)}),Re(async()=>{A7&&I7(),k_.emit("updateGlobalSetting")}),(r,a)=>{const i=rn;return Xe(),Yt(i,{loading:!xe(n).isIdle},{default:_t(()=>[x(O7)]),_:1},8,["loading"])}}});function N7(t){return typeof t=="object"&&t!==null}function Ry(t,e){return t=N7(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function k7(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function $7(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function R7(t,e){return e.reduce((n,r)=>{const a=r.split(".");return $7(n,a,k7(t,a))},{})}function Ly(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function Dy(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?R7(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function L7(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>Ry(o,t)):[Ry(r,t)]).map(({storage:o=localStorage,beforeRestore:l=null,afterRestore:s=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:v=null,debug:h=!1})=>{var g;return{storage:o,beforeRestore:l,afterRestore:s,serializer:u,key:((g=t.key)!=null?g:c=>c)(f),paths:v,debug:h}});a.$persist=()=>{i.forEach(o=>{Dy(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(l=>{const{beforeRestore:s,afterRestore:u}=l;o&&(s==null||s(e)),Ly(a,l),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:l,afterRestore:s}=o;l==null||l(e),Ly(a,o),s==null||s(e),a.$subscribe((u,f)=>{Dy(f,o)},{detached:!0})})}}var D7=L7();const H_=Zj();H_.use(D7);AP(M7).use(H_).use(wv).mount("#zanllp_dev_gradio_fe");const F7=Xz(),B7=()=>{try{return parent.location.search.includes("theme=dark")}catch{}return!1};pe([F7,B7],async([t,e])=>{await ou();const n=document.getElementsByTagName("html")[0];if(t||e){document.body.classList.add("dark");const r=document.createElement("style"),{default:a}=await kr(()=>import("./antd.dark-35e9b327.js"),[]);r.innerHTML=a,r.setAttribute("antd-dark",""),n.appendChild(r)}else document.body.classList.remove("dark"),Array.from(n.querySelectorAll("style[antd-dark]")).forEach(r=>r.remove())},{immediate:!0});export{W as $,Xv as A,vi as B,A7 as C,xk as D,qa as E,J7 as F,j7 as G,zx as H,k9 as I,N9 as J,z7 as K,ps as L,Vr as M,ba as N,as as O,J as P,rn as Q,Xt as R,Q1 as S,Gk as T,At as U,In as V,Po as W,uu as X,ko as Y,gi as Z,ut as _,T as a,Rn as a$,ge as a0,Ci as a1,ar as a2,yt as a3,ks as a4,or as a5,Is as a6,lr as a7,yT as a8,_T as a9,t$ as aA,Ce as aB,qc as aC,$9 as aD,Hj as aE,Ao as aF,W_ as aG,g_ as aH,Ye as aI,e9 as aJ,ct as aK,rm as aL,Qe as aM,Q7 as aN,mI as aO,MT as aP,nh as aQ,Ow as aR,KD as aS,Ds as aT,g$ as aU,Zf as aV,_e as aW,ho as aX,F$ as aY,vE as aZ,CP as a_,id as aa,fT as ab,K0 as ac,G0 as ad,Jl as ae,vd as af,lt as ag,j_ as ah,Te as ai,K as aj,XR as ak,br as al,J1 as am,Yc as an,w_ as ao,wa as ap,Yj as aq,ya as ar,k_ as as,db as at,vb as au,Bf as av,Re as aw,Ke as ax,xt as ay,Yl as az,ze as b,i0 as b$,st as b0,cE as b1,X7 as b2,mi as b3,Ne as b4,V$ as b5,Id as b6,_o as b7,gw as b8,_$ as b9,Fa as bA,q7 as bB,Uk as bC,ux as bD,H7 as bE,V7 as bF,Gf as bG,Hc as bH,G7 as bI,o0 as bJ,Qw as bK,Tn as bL,Vn as bM,yC as bN,vz as bO,pz as bP,B9 as bQ,Tk as bR,h4 as bS,K7 as bT,r$ as bU,Jw as bV,Vk as bW,Jk as bX,Bk as bY,Z7 as bZ,hI as b_,C$ as ba,WR as bb,kR as bc,CC as bd,rr as be,Kd as bf,Us as bg,Do as bh,TO as bi,VR as bj,Ks as bk,CL as bl,Nl as bm,ot as bn,kt as bo,BM as bp,Jt as bq,Y7 as br,Yw as bs,Xw as bt,Rw as bu,Le as bv,Kt as bw,Sn as bx,Ew as by,NO as bz,x as c,nr as c0,Wn as c1,Ed as c2,_d as c3,ib as c4,bt as c5,Si as c6,NT as c7,sd as c8,O_ as c9,W7 as cA,Gc as cB,Oo as cC,U7 as cD,Ny as cE,bF as cF,z9 as cG,Tm as cH,_7 as cI,M_ as ca,my as cb,Y1 as cc,ou as cd,P_ as ce,D9 as cf,xn as cg,n7 as ch,My as ci,j9 as cj,dz as ck,R9 as cl,S5 as cm,W9 as cn,M9 as co,L9 as cp,I9 as cq,aI as cr,A9 as cs,QS as ct,Cs as cu,DS as cv,wb as cw,yx as cx,Wl as cy,gx as cz,fe as d,zn as e,pn as f,Wr as g,te as h,He as i,Bd as j,Wo as k,pe as l,Yt as m,_t as n,Xe as o,Pn as p,Dn as q,xe as r,tt as s,F9 as t,Ze as u,gr as v,Ns as w,Bn as x,dn as y,De as z}; + */let E_;const su=t=>E_=t,T_=Symbol();function yf(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ro;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ro||(ro={}));function Zj(){const t=Of(!0),e=t.run(()=>W({}));let n=[],r=[];const a=Cs({install(i){su(a),a._a=i,i.provide(T_,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Qj?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const I_=()=>{};function Sy(t,e,n,r=I_){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Ef()&&Uy(a),a}function Da(t,...e){t.slice().forEach(n=>{n(...e)})}const ez=t=>t();function bf(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];yf(a)&&yf(r)&&t.hasOwnProperty(n)&&!tt(r)&&!wr(r)?t[n]=bf(a,r):t[n]=r}return t}const tz=Symbol();function nz(t){return!yf(t)||!t.hasOwnProperty(tz)}const{assign:Rr}=Object;function rz(t){return!!(tt(t)&&t.effect)}function az(t,e,n,r){const{state:a,actions:i,getters:o}=e,l=n.state.value[t];let s;function u(){l||(n.state.value[t]=a?a():{});const f=ib(n.state.value[t]);return Rr(f,i,Object.keys(o||{}).reduce((v,h)=>(v[h]=Cs(K(()=>{su(n);const g=n._s.get(t);return o[h].call(g,g)})),v),{}))}return s=A_(t,u,e,n,r,!0),s}function A_(t,e,n={},r,a,i){let o;const l=Rr({actions:{}},n),s={deep:!0};let u,f,v=[],h=[],g;const c=r.state.value[t];!i&&!c&&(r.state.value[t]={}),W({});let d;function m(I){let O;u=f=!1,typeof I=="function"?(I(r.state.value[t]),O={type:ro.patchFunction,storeId:t,events:g}):(bf(r.state.value[t],I),O={type:ro.patchObject,payload:I,storeId:t,events:g});const N=d=Symbol();Ke().then(()=>{d===N&&(u=!0)}),f=!0,Da(v,O,r.state.value[t])}const p=i?function(){const{state:O}=n,N=O?O():{};this.$patch(L=>{Rr(L,N)})}:I_;function y(){o.stop(),v=[],h=[],r._s.delete(t)}function b(I,O){return function(){su(r);const N=Array.from(arguments),L=[],F=[];function j(M){L.push(M)}function z(M){F.push(M)}Da(h,{args:N,name:I,store:C,after:j,onError:z});let $;try{$=O.apply(this&&this.$id===t?this:C,N)}catch(M){throw Da(F,M),M}return $ instanceof Promise?$.then(M=>(Da(L,M),M)).catch(M=>(Da(F,M),Promise.reject(M))):(Da(L,$),$)}}const w={_p:r,$id:t,$onAction:Sy.bind(null,h),$patch:m,$reset:p,$subscribe(I,O={}){const N=Sy(v,I,O.detached,()=>L()),L=o.run(()=>pe(()=>r.state.value[t],F=>{(O.flush==="sync"?f:u)&&I({storeId:t,type:ro.direct,events:g},F)},Rr({},s,O)));return N},$dispose:y},C=ot(w);r._s.set(t,C);const _=r._a&&r._a.runWithContext||ez,P=r._e.run(()=>(o=Of(),_(()=>o.run(e))));for(const I in P){const O=P[I];if(tt(O)&&!rz(O)||wr(O))i||(c&&nz(O)&&(tt(O)?O.value=c[I]:bf(O,c[I])),r.state.value[t][I]=O);else if(typeof O=="function"){const N=b(I,O);P[I]=N,l.actions[I]=O}}return Rr(C,P),Rr(Ne(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:I=>{m(O=>{Rr(O,I)})}}),r._p.forEach(I=>{Rr(C,o.run(()=>I({store:C,app:r._a,pinia:r,options:l})))}),c&&i&&n.hydrate&&n.hydrate(C.$state,c),u=!0,f=!0,C}function M_(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(l,s){const u=Ex();return l=l||(u?Ye(T_,null):null),l&&su(l),l=E_,l._s.has(r)||(i?A_(r,e,a,l):az(r,a,l)),l._s.get(r)}return o.$id=r,o}function iz(t){{t=Ne(t);const e={};for(const n in t){const r=t[n];(tt(r)||wr(r))&&(e[n]=Ut(t,n))}return e}}const oz=t=>Yc({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),lz=t=>({...t,panes:t.panes.map(oz)}),Wo=M_("useGlobalStore",()=>{const t=W(),e=W([]),n=W(!0),r=W(512),a=W(Av.CREATED_TIME_DESC),i=W(256),o=()=>({type:"empty",name:Te("emptyStartPage"),key:br()}),l=W([]);Re(()=>{const y=o();l.value.push({panes:[y],key:y.key,id:br()})});const s=W(),u=W(new Array),f=Date.now(),v=W(),h=()=>{var b;const y=Ne(l.value).map(lz);((b=v.value)==null?void 0:b[0].time)!==f?v.value=[{tabs:y,time:f},...v.value??[]]:v.value[0].tabs=y,v.value=v.value.slice(0,2)},g=async(y,b,w)=>{let C=l.value.map(P=>P.panes).flat().find(P=>P.type==="tag-search-matched-image-grid"&&P.id===b);if(C){C.selectedTagIds=Yc(w);return}else C={type:"tag-search-matched-image-grid",id:b,selectedTagIds:Yc(w),key:br(),name:Te("searchResults")};const _=l.value[y+1];_?(_.key=C.key,_.panes.push(C)):l.value.push({panes:[C],key:C.key,id:br()})},c=W(G1());pe(c,y=>wv.global.locale.value=y);const d=W(!1),m=W({delete:""}),p=K(()=>{if(!t.value)return{};const{global_setting:y,sd_cwd:b}=t.value,w={[Te("extra")]:y.outdir_extras_samples,[Te("saveButtonSavesTo")]:y.outdir_save,[Te("t2i")]:y.outdir_txt2img_samples,[Te("i2i")]:y.outdir_img2img_samples,[Te("i2i-grid")]:y.outdir_img2img_grids,[Te("t2i-grid")]:y.outdir_txt2img_grids},C=e.value.map(P=>P.dir),_=Object.keys(w).filter(P=>C.includes(w[P])).map(P=>[P,P_(w[P])?xn(w[P]):O_(b,w[P])]);return Object.fromEntries(_)});return{defaultSortingMethod:a,defaultGridCellWidth:i,pathAliasMap:p,createEmptyPane:o,lang:c,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:s,saveRecord:h,recent:u,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:d,openTagSearchMatchedImageGridInRight:g,onlyFoldersAndImages:W(!0),fullscreenPreviewInitialUrl:W(""),shortcut:m,dontShowAgain:W(!1),dontShowAgainNewImgOpts:W(!1)}},{persist:{paths:["dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","shortcut"]}});function N_(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const sz=()=>{const t=N_().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},uz=()=>{try{N_().querySelector("#tabs").querySelectorAll("button")[sz()].click()}catch(t){console.error(t)}},cz=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),fz=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{});function dz(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const vz=()=>ot(new Io(-1,0,-1,"throw")),F9=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}ya.success(e??Te("copied"))}catch{ya.error("copy failed. maybe it's non-secure environment")}},{useEventListen:pz,eventEmitter:k_}=Y1();function B9(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function hz(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const mz=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),gz=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const i=fz(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save"),o={...i,cwd:e,home:n,desktop:`${n}/Desktop`},l=await Yj(Object.values(o).filter(h=>h)),s={outdir_txt2img_samples:Te("t2i"),outdir_img2img_samples:Te("i2i"),outdir_save:Te("saveButtonSavesTo"),outdir_extras_samples:Te("extra"),outdir_grids:Te("gridImage"),outdir_img2img_grids:Te("i2i-grid"),outdir_samples:Te("image"),outdir_txt2img_grids:Te("t2i-grid"),cwd:Te("workingFolder"),home:"home",desktop:Te("desktop")},u={home:xn(n),[Te("desktop")]:xn(o.desktop),[Te("workingFolder")]:xn(a),[Te("t2i")]:i.outdir_txt2img_samples&&xn(i.outdir_txt2img_samples),[Te("i2i")]:i.outdir_img2img_samples&&xn(i.outdir_img2img_samples)},f=h=>{h=xn(h);const g=[];for(const[c,d]of Object.entries(u))c&&d&&g.push(h.replace(d,"$"+c));return g.sort((c,d)=>c.length-d.length)[0]},v=Object.keys(s).filter(h=>l[o[h]]).map(h=>{const g=h;return{key:g,zh:s[g],dir:o[g],can_delete:!1}}).concat(r.map(h=>({key:h.path,zh:f(h.path),dir:h.path,can_delete:!0})));return S5(v,"key")};const $_={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],l=this.panes[o[0]]||null,s=this.panes[o[1]]||null;const u=l.max<100&&i>=l.max+n.prevPanesSize,f=s.max<100&&i<=100-(s.max+this.sumNextPanesSize(e+1));if(u||f){u?(l.size=l.max,s.size=Math.max(100-l.max-n.prevPanesSize-n.nextPanesSize,0)):(l.size=Math.max(100-s.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),s.size=s.max);return}if(this.pushOtherPanes){const v=this.doPushOtherPanes(n,i);if(!v)return;({sums:n,panesToResize:o}=v),l=this.panes[o[0]]||null,s=this.panes[o[1]]||null}l!==null&&(l.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,l.min),l.max)),s!==null&&(s.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,s.min),s.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),l=o-a.size;t-=l,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return wa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},yz=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},bz={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function wz(t,e,n,r,a,i){return Xe(),dn("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:vi(t.style)},[Wl(t.$slots,"default")],4)}const wf=yz(bz,[["render",wz]]);function Mv(t){return Ef()?(Uy(t),!0):!1}function Nv(t){return typeof t=="function"?t():xe(t)}const R_=typeof window<"u",kv=()=>{};function Cz(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const L_=t=>t();function _z(t=L_){const e=W(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:ws(e),pause:n,resume:r,eventFilter:a}}function Sz(...t){if(t.length!==1)return Ut(...t);const e=t[0];return typeof e=="function"?ws(zS(()=>({get:e,set:kv}))):W(e)}function xz(t,e=!0){bt()?Re(t):e?t():Ke(t)}var xy=Object.getOwnPropertySymbols,Pz=Object.prototype.hasOwnProperty,Oz=Object.prototype.propertyIsEnumerable,Ez=(t,e)=>{var n={};for(var r in t)Pz.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xy)for(var r of xy(t))e.indexOf(r)<0&&Oz.call(t,r)&&(n[r]=t[r]);return n};function Tz(t,e,n={}){const r=n,{eventFilter:a=L_}=r,i=Ez(r,["eventFilter"]);return pe(t,Cz(a,e),i)}var Iz=Object.defineProperty,Az=Object.defineProperties,Mz=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,D_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,Py=(t,e,n)=>e in t?Iz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Nz=(t,e)=>{for(var n in e||(e={}))D_.call(e,n)&&Py(t,n,e[n]);if(vs)for(var n of vs(e))F_.call(e,n)&&Py(t,n,e[n]);return t},kz=(t,e)=>Az(t,Mz(e)),$z=(t,e)=>{var n={};for(var r in t)D_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vs)for(var r of vs(t))e.indexOf(r)<0&&F_.call(t,r)&&(n[r]=t[r]);return n};function Rz(t,e,n={}){const r=n,{eventFilter:a}=r,i=$z(r,["eventFilter"]),{eventFilter:o,pause:l,resume:s,isActive:u}=_z(a);return{stop:Tz(t,e,kz(Nz({},i),{eventFilter:o})),pause:l,resume:s,isActive:u}}function Lz(t,e,n){let r;tt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:l=kv}=r,s=W(!a),u=o?Rn(e):W(e);let f=0;return st(async v=>{if(!s.value)return;f++;const h=f;let g=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const c=await t(d=>{v(()=>{i&&(i.value=!1),g||d()})});h===f&&(u.value=c)}catch(c){l(c)}finally{i&&h===f&&(i.value=!1),g=!0}}),a?K(()=>(s.value=!0,u.value)):u}function Hr(t){var e;const n=Nv(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Sr=R_?window:void 0,Dz=R_?window.document:void 0;function On(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Sr):[e,n,r,a]=t,!e)return kv;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(f=>f()),i.length=0},l=(f,v,h,g)=>(f.addEventListener(v,h,g),()=>f.removeEventListener(v,h,g)),s=pe(()=>[Hr(e),Nv(a)],([f,v])=>{o(),f&&i.push(...n.flatMap(h=>r.map(g=>l(f,h,g,v))))},{immediate:!0,flush:"post"}),u=()=>{s(),o()};return Mv(u),u}const Fz=500;function j9(t,e,n){var r,a;const i=K(()=>Hr(t));let o;function l(){o&&(clearTimeout(o),o=void 0)}function s(f){var v,h,g,c;(v=n==null?void 0:n.modifiers)!=null&&v.self&&f.target!==i.value||(l(),(h=n==null?void 0:n.modifiers)!=null&&h.prevent&&f.preventDefault(),(g=n==null?void 0:n.modifiers)!=null&&g.stop&&f.stopPropagation(),o=setTimeout(()=>e(f),(c=n==null?void 0:n.delay)!=null?c:Fz))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};On(i,"pointerdown",s,u),On(i,"pointerup",l,u),On(i,"pointerleave",l,u)}function Bz(){const t=W(!1);return bt()&&Re(()=>{t.value=!0}),t}function B_(t){const e=Bz();return K(()=>(e.value,!!t()))}function jz(t,e={}){const{window:n=Sr}=e,r=B_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=W(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},l=()=>{r.value&&(o(),a=n.matchMedia(Sz(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",l):a.addListener(l)))};return st(l),Mv(()=>o()),i}const wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cl="__vueuse_ssr_handlers__",zz=Wz();function Wz(){return Cl in wl||(wl[Cl]=wl[Cl]||{}),wl[Cl]}function Vz(t,e){return zz[t]||e}function Hz(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var Uz=Object.defineProperty,Oy=Object.getOwnPropertySymbols,Kz=Object.prototype.hasOwnProperty,Gz=Object.prototype.propertyIsEnumerable,Ey=(t,e,n)=>e in t?Uz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ty=(t,e)=>{for(var n in e||(e={}))Kz.call(e,n)&&Ey(t,n,e[n]);if(Oy)for(var n of Oy(e))Gz.call(e,n)&&Ey(t,n,e[n]);return t};const qz={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Iy="vueuse-storage";function Yz(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:f,window:v=Sr,eventFilter:h,onError:g=I=>{console.error(I)}}=r,c=(f?Rn:W)(e);if(!n)try{n=Vz("getDefaultStorage",()=>{var I;return(I=Sr)==null?void 0:I.localStorage})()}catch(I){g(I)}if(!n)return c;const d=Nv(e),m=Hz(d),p=(a=r.serializer)!=null?a:qz[m],{pause:y,resume:b}=Rz(c,()=>w(c.value),{flush:i,deep:o,eventFilter:h});return v&&l&&(On(v,"storage",P),On(v,Iy,_)),P(),c;function w(I){try{if(I==null)n.removeItem(t);else{const O=p.write(I),N=n.getItem(t);N!==O&&(n.setItem(t,O),v&&v.dispatchEvent(new CustomEvent(Iy,{detail:{key:t,oldValue:N,newValue:O,storageArea:n}})))}}catch(O){g(O)}}function C(I){const O=I?I.newValue:n.getItem(t);if(O==null)return s&&d!==null&&n.setItem(t,p.write(d)),d;if(!I&&u){const N=p.read(O);return typeof u=="function"?u(N,d):m==="object"&&!Array.isArray(N)?Ty(Ty({},d),N):N}else return typeof O!="string"?O:p.read(O)}function _(I){P(I.detail)}function P(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){c.value=d;return}if(!(I&&I.key!==t)){y();try{c.value=C(I)}catch(O){g(O)}finally{I?Ke(b):b()}}}}}function Xz(t){return jz("(prefers-color-scheme: dark)",t)}function Jz({document:t=Dz}={}){if(!t)return W("visible");const e=W(t.visibilityState);return On(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Ay=Object.getOwnPropertySymbols,Qz=Object.prototype.hasOwnProperty,Zz=Object.prototype.propertyIsEnumerable,e7=(t,e)=>{var n={};for(var r in t)Qz.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ay)for(var r of Ay(t))e.indexOf(r)<0&&Zz.call(t,r)&&(n[r]=t[r]);return n};function t7(t,e,n={}){const r=n,{window:a=Sr}=r,i=e7(r,["window"]);let o;const l=B_(()=>a&&"ResizeObserver"in a),s=()=>{o&&(o.disconnect(),o=void 0)},u=K(()=>Array.isArray(t)?t.map(h=>Hr(h)):[Hr(t)]),f=pe(u,h=>{if(s(),l.value&&a){o=new ResizeObserver(e);for(const g of h)g&&o.observe(g,i)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{s(),f()};return Mv(v),{isSupported:l,stop:v}}function n7(t,e={width:0,height:0},n={}){const{window:r=Sr,box:a="content-box"}=n,i=K(()=>{var s,u;return(u=(s=Hr(t))==null?void 0:s.namespaceURI)==null?void 0:u.includes("svg")}),o=W(e.width),l=W(e.height);return t7(t,([s])=>{const u=a==="border-box"?s.borderBoxSize:a==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(r&&i.value){const f=Hr(t);if(f){const v=r.getComputedStyle(f);o.value=parseFloat(v.width),l.value=parseFloat(v.height)}}else if(u){const f=Array.isArray(u)?u:[u];o.value=f.reduce((v,{inlineSize:h})=>v+h,0),l.value=f.reduce((v,{blockSize:h})=>v+h,0)}else o.value=s.contentRect.width,l.value=s.contentRect.height},n),pe(()=>Hr(t),s=>{o.value=s?e.width:0,l.value=s?e.height:0}),{width:o,height:l}}function z9(t,e,n={}){const{window:r=Sr}=n;return Yz(t,e,r==null?void 0:r.localStorage,n)}const r7={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function a7(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Sr,target:o=i,eventFilter:l}=t,s=W(a.x),u=W(a.y),f=W(null),v=typeof e=="function"?e:r7[e],h=p=>{const y=v(p);y&&([s.value,u.value]=y,f.value="mouse")},g=p=>{if(p.touches.length>0){const y=v(p.touches[0]);y&&([s.value,u.value]=y,f.value="touch")}},c=()=>{s.value=a.x,u.value=a.y},d=l?p=>l(()=>h(p),{}):p=>h(p),m=l?p=>l(()=>g(p),{}):p=>g(p);return o&&(On(o,"mousemove",d,{passive:!0}),On(o,"dragover",d,{passive:!0}),n&&e!=="movement"&&(On(o,"touchstart",m,{passive:!0}),On(o,"touchmove",m,{passive:!0}),r&&On(o,"touchend",c,{passive:!0}))),{x:s,y:u,sourceType:f}}function My(t,e={}){const{handleOutside:n=!0,window:r=Sr}=e,{x:a,y:i,sourceType:o}=a7(e),l=W(t??(r==null?void 0:r.document.body)),s=W(0),u=W(0),f=W(0),v=W(0),h=W(0),g=W(0),c=W(!0);let d=()=>{};return r&&(d=pe([l,a,i],()=>{const m=Hr(l);if(!m)return;const{left:p,top:y,width:b,height:w}=m.getBoundingClientRect();f.value=p+r.pageXOffset,v.value=y+r.pageYOffset,h.value=w,g.value=b;const C=a.value-f.value,_=i.value-v.value;c.value=b===0||w===0||C<0||_<0||C>b||_>w,(n||!c.value)&&(s.value=C,u.value=_)},{immediate:!0}),On(document,"mouseleave",()=>{c.value=!0})),{x:a,y:i,sourceType:o,elementX:s,elementY:u,elementPositionX:f,elementPositionY:v,elementHeight:h,elementWidth:g,isOutside:c,stop:d}}const i7={style:{position:"relative"}},o7=fe({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Wo(),r=W(),a=W(),{isOutside:i}=My(a),{isOutside:o}=My(r),l=K(()=>!i.value&&!!n.dragingTab),s=K(()=>!o.value&&!!n.dragingTab&&!l.value),u=(f,v)=>{var g,c,d,m;const h=JSON.parse(((g=f.dataTransfer)==null?void 0:g.getData("text"))??"{}");if(console.log("on-drop",v,h),(h==null?void 0:h.from)==="tab-drag"){if(f.stopPropagation(),n.dragingTab=void 0,v==="insert"&&h.tabIdx===e.tabIdx)return;const p=n.tabList,y=p[h.tabIdx].panes[h.paneIdx];p[h.tabIdx].panes.splice(h.paneIdx,1),v==="add-right"?(p[e.tabIdx].key=((c=p[e.tabIdx].panes[h.paneIdx-1])==null?void 0:c.key)??p[e.tabIdx].panes[0].key,p.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:br()})):(p[h.tabIdx].key=((d=p[h.tabIdx].panes[h.paneIdx-1])==null?void 0:d.key)??((m=p[h.tabIdx].panes[0])==null?void 0:m.key),p[e.tabIdx].panes.push(y),p[e.tabIdx].key=y.key),p[h.tabIdx].panes.length===0&&p.splice(h.tabIdx,1)}};return(f,v)=>(Xe(),dn("div",{class:ba(["wrap",{accept:s.value}]),ref_key:"trigger",ref:r,onDragover:v[2]||(v[2]=Dn(()=>{},["prevent"])),onDrop:v[3]||(v[3]=Dn(h=>u(h,"insert"),["prevent"]))},[Pn("div",{class:ba(["trigger",{accept:l.value}]),ref_key:"edgeTrigger",ref:a,onDragover:v[0]||(v[0]=Dn(()=>{},["prevent"])),onDrop:v[1]||(v[1]=Dn(h=>u(h,"add-right"),["prevent"]))},null,34),Pn("div",i7,[Wl(f.$slots,"default",{},void 0,!0)])],34))}});const uu=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},l7=uu(o7,[["__scopeId","data-v-10c5aba4"]]);const j_=M_("useImgSliStore",()=>{const t=W(!1),e=W(!1),n=W(!1),r=W(),a=W(),i=Wo(),o=K(()=>{var s;const l=i.tabList;for(const u of l)if(((s=u.panes.find(f=>f.key===u.key))==null?void 0:s.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}}),ao=encodeURIComponent,ps=(t,e=!1)=>`${Iv.value}/file?path=${ao(t.fullpath)}&t=${ao(t.date)}${e?`&disposition=${ao(t.name)}`:""}`,Ny=(t,e="512x512")=>`${Iv.value}/image-thumbnail?path=${ao(t.fullpath)}&size=${e}&t=${ao(t.date)}`,z_=t=>typeof t=="object"&&t.__id==="FileTransferData",W9=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return z_(e)?e:null},s7=t=>(db("data-v-e631564f"),t=t(),vb(),t),u7={key:0,class:"dragging-port-wrap"},c7={class:"content"},f7={key:0,class:"img-wrap"},d7={key:1},v7=s7(()=>Pn("div",{style:{padding:"16px"}},null,-1)),p7={key:0,class:"img-wrap"},h7={key:1},m7={class:"actions"},g7=fe({__name:"DraggingPort",setup(t){const e=j_(),n=Wo(),{left:r,right:a}=iz(e),i=async(s,u)=>{var v;const f=JSON.parse(((v=s.dataTransfer)==null?void 0:v.getData("text"))??"{}");if(z_(f)){const h=f.nodes[0];if(!dz(h.name))return;e[u]=h}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},l=()=>{J1(r.value&&a.value);const s={type:"img-sli",left:r.value,right:a.value,name:`${Te("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:br()};n.tabList[0].panes.push(s),n.tabList[0].key=s.key};return(s,u)=>{const f=bF,v=In;return Xe(),Yt(lr,null,{default:_t(()=>[(xe(e).fileDragging||xe(r)||xe(a)||xe(e).opened)&&!xe(e).imgSliActived?(Xe(),dn("div",u7,[Pn("h2",null,gr(s.$t("imgCompare")),1),Pn("div",c7,[Pn("div",{class:"left port",onDragover:u[1]||(u[1]=Dn(()=>{},["prevent"])),onDrop:u[2]||(u[2]=Dn(h=>i(h,"left"),["prevent"]))},[xe(r)?(Xe(),dn("div",f7,[x(f,{src:xe(Ny)(xe(r)),preview:{src:xe(ps)(xe(r))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[0]||(u[0]=h=>r.value=void 0)})])):(Xe(),dn("div",d7,gr(s.$t("dragImageHere")),1))],32),v7,Pn("div",{class:"right port",onDragover:u[4]||(u[4]=Dn(()=>{},["prevent"])),onDrop:u[5]||(u[5]=Dn(h=>i(h,"right"),["prevent"]))},[xe(a)?(Xe(),dn("div",p7,[x(f,{src:xe(Ny)(xe(a)),preview:{src:xe(ps)(xe(a))}},null,8,["src","preview"]),x(xe(Jl),{class:"close",onClick:u[3]||(u[3]=h=>a.value=void 0)})])):(Xe(),dn("div",h7,gr(s.$t("dragImageHere")),1))],32)]),Pn("div",m7,[xe(r)&&xe(a)?(Xe(),Yt(v,{key:0,type:"primary",onClick:u[6]||(u[6]=h=>xe(e).drawerVisible=!0)},{default:_t(()=>[Bn(gr(s.$t("confirm")),1)]),_:1})):qa("",!0),xe(r)&&xe(a)?(Xe(),Yt(v,{key:1,type:"primary",onClick:l},{default:_t(()=>[Bn(gr(s.$t("confirm"))+"("+gr(s.$t("openInNewTab"))+")",1)]),_:1})):qa("",!0),x(v,{style:{"margin-left":"16px"},onClick:o},{default:_t(()=>[Bn(gr(s.$t("close")),1)]),_:1})])])):qa("",!0)]),_:1})}}});const y7=uu(g7,[["__scopeId","data-v-e631564f"]]),b7={class:"container"},w7=["src"],C7=fe({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=K(()=>{let r="";const i=e.containerWidth;return e.side==="left"?r=`calc(50% - ${(e.percent-50)/100*i}px)`:r=`calc(-50% - ${(e.percent-50)/100*i+4}px)`,`${e.maxEdge==="width"?"width:100%":"height:100%"};transform: translate(${r}, -50%)`});return(r,a)=>(Xe(),dn("div",b7,[Pn("img",{class:ba(["img",[r.side]]),style:vi(n.value),src:xe(ps)(r.img),onDragstart:a[0]||(a[0]=Dn(()=>{},["prevent","stop"]))},null,46,w7)]))}});const ky=uu(C7,[["__scopeId","data-v-9aea5307"]]),_7=fe({__name:"ImgSliComparePane",props:{left:{},right:{}},setup(t,{expose:e}){const n=t,r=W(50),a=([{size:u}])=>{r.value=u},i=W(),{width:o}=n7(i);e({requestFullScreen:()=>{var u;(u=i.value)==null||u.requestFullscreen()}});const s=Lz(async()=>{if(!n.left)return"width";const u=await mz(ps(n.left)),f=u.width/u.height,v=document.body.clientWidth/document.body.clientHeight;return f>v?"width":"height"});return(u,f)=>(Xe(),dn("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe($_),{class:"default-theme",onResize:a},{default:_t(()=>[u.left?(Xe(),Yt(xe(wf),{key:0},{default:_t(()=>[x(ky,{side:"left","max-edge":xe(s),"container-width":xe(o),percent:r.value,img:u.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):qa("",!0),u.right?(Xe(),Yt(xe(wf),{key:1},{default:_t(()=>[x(ky,{"max-edge":xe(s),percent:r.value,img:u.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):qa("",!0)]),_:1})],512))}});const S7={class:"actions"},x7=fe({__name:"ImgSliDrawer",setup(t){const e=j_(),n=W();return(r,a)=>{const i=In,o=d4;return Xe(),dn(De,null,[x(o,{width:"100vw",visible:xe(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>xe(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:_t(()=>[Pn("div",S7,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:_t(()=>[Bn(gr(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var s;return(s=n.value)==null?void 0:s.requestFullScreen()})},{default:_t(()=>[Bn(gr(r.$t("fullscreenview")),1)]),_:1})])]),default:_t(()=>[xe(e).left&&xe(e).right?(Xe(),Yt(_7,{key:0,ref_key:"splitpane",ref:n,left:xe(e).left,right:xe(e).right},null,8,["left","right"])):qa("",!0)]),_:1},8,["visible"]),x(y7)],64)}}});const P7=fe({__name:"SplitViewTab",setup(t){const e=Wo(),n={local:Qr(()=>kr(()=>import("./stackView-f7c2deb3.js"),["assets/stackView-f7c2deb3.js","assets/fullScreenContextMenu-8736e356.js","assets/shortcut-1308f2ef.js","assets/shortcut-9fed83c2.css","assets/db-34982abd.js","assets/fullScreenContextMenu-c801a9ea.css","assets/numInput-98768867.js","assets/numInput-a08c6857.css","assets/stackView-132bf7ce.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:Qr(()=>kr(()=>import("./emptyStartup-7bc14c2b.js"),["assets/emptyStartup-7bc14c2b.js","assets/db-34982abd.js","assets/emptyStartup-b6d0892f.css"])),"global-setting":Qr(()=>kr(()=>import("./globalSetting-a9f67420.js"),["assets/globalSetting-a9f67420.js","assets/numInput-98768867.js","assets/shortcut-1308f2ef.js","assets/shortcut-9fed83c2.css","assets/numInput-a08c6857.css","assets/globalSetting-272483f3.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":Qr(()=>kr(()=>import("./MatchedImageGrid-e7de9de6.js"),["assets/MatchedImageGrid-e7de9de6.js","assets/fullScreenContextMenu-8736e356.js","assets/shortcut-1308f2ef.js","assets/shortcut-9fed83c2.css","assets/db-34982abd.js","assets/fullScreenContextMenu-c801a9ea.css","assets/hook-9a09016a.js","assets/MatchedImageGrid-50706dba.css"])),"tag-search":Qr(()=>kr(()=>import("./TagSearch-fade4d8f.js"),["assets/TagSearch-fade4d8f.js","assets/db-34982abd.js","assets/TagSearch-ffd782da.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":Qr(()=>kr(()=>import("./SubstrSearch-d7a02eb2.js"),["assets/SubstrSearch-d7a02eb2.js","assets/fullScreenContextMenu-8736e356.js","assets/shortcut-1308f2ef.js","assets/shortcut-9fed83c2.css","assets/db-34982abd.js","assets/fullScreenContextMenu-c801a9ea.css","assets/hook-9a09016a.js","assets/SubstrSearch-eed349e1.css","assets/index-f4bbe4b8.css"])),"img-sli":Qr(()=>kr(()=>import("./ImgSliPagePane-0e185c59.js"),[]))},r=(o,l,s)=>{var f,v;const u=e.tabList[o];if(s==="add"){const h={type:"empty",key:br(),name:Te("emptyStartPage")};u.panes.push(h),u.key=h.key}else{const h=u.panes.findIndex(g=>g.key===l);if(u.key===l&&(u.key=((f=u.panes[h-1])==null?void 0:f.key)??((v=u.panes[0])==null?void 0:v.key)),u.panes.splice(h,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const g=e.createEmptyPane();e.tabList.push({panes:[g],key:g.key,id:br()})}}},a=W();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((l,s)=>{Array.from(l.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,f)=>{const v=u;v.setAttribute("draggable","true"),v.setAttribute("tabIdx",s.toString()),v.setAttribute("paneIdx",f.toString()),v.ondragend=()=>{e.dragingTab=void 0},v.ondragstart=h=>{e.dragingTab={tabIdx:s,paneIdx:f},h.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:s,paneIdx:f,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=qc(()=>k_.emit("returnToIIB"),100);return xz(async()=>{const o=window.parent;if(!await cz(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const l=o.get_uiCurrentTabContent();l!=null&&l.id.includes("infinite-image-browsing")&&i()})}),pe(Jz(),o=>o&&i()),(o,l)=>{const s=ls,u=Qi;return Xe(),dn("div",{ref_key:"container",ref:a},[x(xe($_),{class:"default-theme"},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(xe(e).tabList,(f,v)=>(Xe(),Yt(xe(wf),{key:f.id},{default:_t(()=>[x(l7,{tabIdx:v},{default:_t(()=>[x(u,{type:"editable-card",activeKey:f.key,"onUpdate:activeKey":h=>f.key=h,onEdit:(h,g)=>r(v,h,g)},{default:_t(()=>[(Xe(!0),dn(De,null,Xv(f.panes,(h,g)=>(Xe(),Yt(s,{key:h.key,tab:h.name,class:"pane"},{default:_t(()=>[(Xe(),Yt(gx(n[h.type]),Gf({tabIdx:v,paneIdx:g},h),null,16,["tabIdx","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(x7)],512)}}});const O7=uu(P7,[["__scopeId","data-v-9e960f18"]]),E7=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],l={type:"local",path:a,key:br(),name:""};o.panes.unshift(l),o.key=l.key,uz(),hz(["action","path"]);break}}};function $y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!nr(t)}const W_="app.conf.json",io=W(),V_=()=>Ao.writeFile(W_,JSON.stringify(Ne(io.value),null,4)),T7=fe({setup(){const t=async()=>{const e=await w_({directory:!0});if(typeof e=="string"){if(!await Ao.exists(`${e}/config.json`))return ya.error(Te("tauriLaunchConfMessages.configNotFound"));if(!await Ao.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return ya.error(Te("tauriLaunchConfMessages.folderNotFound"));io.value.sdwebui_dir=e,ya.info(Te("tauriLaunchConfMessages.configCompletedMessage")),await V_(),await lu("shutdown_api_server_command"),await ou(1500),await g_()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Te("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Te("tauriLaunchConf.readSdWebuiConfigDescription")]),x(In,{onClick:t,type:"primary"},$y(e=Te("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Te("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Te("tauriLaunchConf.skipThisConfigDescription")]),x(In,{type:"primary",onClick:Xt.destroyAll},$y(n=Te("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),I7=async()=>{try{io.value=JSON.parse(await Ao.readTextFile(W_))}catch{}io.value||(io.value={sdwebui_dir:""},await V_(),Xt.info({title:Te("tauriLaunchConfMessages.firstTimeUserTitle"),content:x(T7,null,null),width:"80vw",okText:Te("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Xt.destroyAll}}))},A7=!!{}.TAURI_ARCH,M7=fe({__name:"App",setup(t){const e=Wo(),n=vz();return pz("updateGlobalSetting",async()=>{await Uj(),console.log(ds.value);const r=await qj();e.conf=r;const a=await gz(r);e.quickMovePaths=a.filter(i=>{var o,l;return(l=(o=i==null?void 0:i.dir)==null?void 0:o.trim)==null?void 0:l.call(o)}),E7(e)}),Re(async()=>{A7&&I7(),k_.emit("updateGlobalSetting")}),(r,a)=>{const i=rn;return Xe(),Yt(i,{loading:!xe(n).isIdle},{default:_t(()=>[x(O7)]),_:1},8,["loading"])}}});function N7(t){return typeof t=="object"&&t!==null}function Ry(t,e){return t=N7(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function k7(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function $7(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function R7(t,e){return e.reduce((n,r)=>{const a=r.split(".");return $7(n,a,k7(t,a))},{})}function Ly(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function Dy(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?R7(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function L7(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>Ry(o,t)):[Ry(r,t)]).map(({storage:o=localStorage,beforeRestore:l=null,afterRestore:s=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:v=null,debug:h=!1})=>{var g;return{storage:o,beforeRestore:l,afterRestore:s,serializer:u,key:((g=t.key)!=null?g:c=>c)(f),paths:v,debug:h}});a.$persist=()=>{i.forEach(o=>{Dy(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(l=>{const{beforeRestore:s,afterRestore:u}=l;o&&(s==null||s(e)),Ly(a,l),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:l,afterRestore:s}=o;l==null||l(e),Ly(a,o),s==null||s(e),a.$subscribe((u,f)=>{Dy(f,o)},{detached:!0})})}}var D7=L7();const H_=Zj();H_.use(D7);AP(M7).use(H_).use(wv).mount("#zanllp_dev_gradio_fe");const F7=Xz(),B7=()=>{try{return parent.location.search.includes("theme=dark")}catch{}return!1};pe([F7,B7],async([t,e])=>{await ou();const n=document.getElementsByTagName("html")[0];if(t||e){document.body.classList.add("dark");const r=document.createElement("style"),{default:a}=await kr(()=>import("./antd.dark-35e9b327.js"),[]);r.innerHTML=a,r.setAttribute("antd-dark",""),n.appendChild(r)}else document.body.classList.remove("dark"),Array.from(n.querySelectorAll("style[antd-dark]")).forEach(r=>r.remove())},{immediate:!0});export{W as $,Xv as A,vi as B,A7 as C,xk as D,qa as E,J7 as F,j7 as G,zx as H,k9 as I,N9 as J,z7 as K,ps as L,Vr as M,ba as N,as as O,J as P,rn as Q,Xt as R,Q1 as S,Gk as T,At as U,In as V,Po as W,uu as X,ko as Y,gi as Z,ut as _,T as a,Rn as a$,ge as a0,Ci as a1,ar as a2,yt as a3,ks as a4,or as a5,Is as a6,lr as a7,yT as a8,_T as a9,t$ as aA,Ce as aB,qc as aC,$9 as aD,Hj as aE,Ao as aF,W_ as aG,g_ as aH,Ye as aI,e9 as aJ,ct as aK,rm as aL,Qe as aM,Q7 as aN,mI as aO,MT as aP,nh as aQ,Ow as aR,KD as aS,Ds as aT,g$ as aU,Zf as aV,_e as aW,ho as aX,F$ as aY,vE as aZ,CP as a_,id as aa,fT as ab,K0 as ac,G0 as ad,Jl as ae,vd as af,lt as ag,j_ as ah,Te as ai,K as aj,XR as ak,br as al,J1 as am,Yc as an,w_ as ao,wa as ap,Yj as aq,ya as ar,k_ as as,db as at,vb as au,Bf as av,Re as aw,Ke as ax,xt as ay,Yl as az,ze as b,i0 as b$,st as b0,cE as b1,X7 as b2,mi as b3,Ne as b4,V$ as b5,Id as b6,_o as b7,gw as b8,_$ as b9,Fa as bA,q7 as bB,Uk as bC,ux as bD,H7 as bE,V7 as bF,Gf as bG,Hc as bH,G7 as bI,o0 as bJ,Qw as bK,Tn as bL,Vn as bM,yC as bN,vz as bO,pz as bP,B9 as bQ,Tk as bR,h4 as bS,K7 as bT,r$ as bU,Jw as bV,Vk as bW,Jk as bX,Bk as bY,Z7 as bZ,hI as b_,C$ as ba,WR as bb,kR as bc,CC as bd,rr as be,Kd as bf,Us as bg,Do as bh,TO as bi,VR as bj,Ks as bk,CL as bl,Nl as bm,ot as bn,kt as bo,BM as bp,Jt as bq,Y7 as br,Yw as bs,Xw as bt,Rw as bu,Le as bv,Kt as bw,Sn as bx,Ew as by,NO as bz,x as c,nr as c0,Wn as c1,Ed as c2,_d as c3,ib as c4,bt as c5,Si as c6,NT as c7,sd as c8,O_ as c9,W7 as cA,Gc as cB,Oo as cC,U7 as cD,Ny as cE,bF as cF,z9 as cG,Tm as cH,_7 as cI,M_ as ca,my as cb,Y1 as cc,ou as cd,P_ as ce,D9 as cf,xn as cg,n7 as ch,My as ci,j9 as cj,dz as ck,R9 as cl,S5 as cm,W9 as cn,M9 as co,L9 as cp,I9 as cq,aI as cr,A9 as cs,QS as ct,Cs as cu,DS as cv,wb as cw,yx as cx,Wl as cy,gx as cz,fe as d,zn as e,pn as f,Wr as g,te as h,He as i,Bd as j,Wo as k,pe as l,Yt as m,_t as n,Xe as o,Pn as p,Dn as q,xe as r,tt as s,F9 as t,Ze as u,gr as v,Ns as w,Bn as x,dn as y,De as z}; diff --git a/vue/dist/assets/numInput-ac6d6c4c.js b/vue/dist/assets/numInput-98768867.js similarity index 99% rename from vue/dist/assets/numInput-ac6d6c4c.js rename to vue/dist/assets/numInput-98768867.js index 649cc79..6ba960f 100644 --- a/vue/dist/assets/numInput-ac6d6c4c.js +++ b/vue/dist/assets/numInput-98768867.js @@ -1,4 +1,4 @@ -import{aj as I,aI as Le,$ as Q,aw as ht,aJ as Hr,aK as mt,Z as we,d as ae,u as ye,aL as kt,b as ce,aM as Fe,aN as Mt,a0 as ee,h as M,c as T,a as k,aO as Ur,i as re,aP as He,aQ as me,a2 as Qt,e as Gr,aR as Jt,aS as er,aT as Wr,aU as Kr,aV as zr,aW as tr,z as Re,aX as Xr,l as oe,aY as Yr,aZ as Zr,a_ as Qr,a8 as Jr,ab as en,aa as tn,az as rn,a$ as rr,b0 as nr,b1 as ar,an as je,b2 as nn,b3 as an,P as K,b4 as et,ax as ir,b5 as gt,b6 as ln,b7 as un,b8 as Ot,b9 as on,ba as sn,bb as fn,bc as cn,bd as dn,be as vn,bf as hn,bg as lr,bh as mn,bi as gn,bj as pn,bk as bn,bl as yn,bm as xn,r as ge,bn as wn,bo as Ne,aC as Sn,bp as ur,bq as pt,br as Fn,w as Me,ag as Cn,bs as or,bt as sr,bu as Nn,bv as De,_ as $e,aB as ue,j as fr,D as Vn,ay as kn,a3 as Mn,bw as cr,bx as Ve,by as bt,bz as On,bA as tt,bB as Pn,bC as $n,bD as En,T as An,Y as Tn,bE as In,bF as Bn,o as _n,y as jn,bG as Pt,X as qn}from"./index-bd9cfb84.js";import{t as Rn,l as Dn}from"./shortcut-6308494d.js";var Ln=Symbol("SizeProvider"),Hn=function(e){var t=e?I(function(){return e.size}):Le(Ln,I(function(){return"default"}));return t};function Un(n,e,t){var r=-1,a=n.length;e<0&&(e=-e>a?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0?"".concat(m[0]/-2,"px"):void 0,F=m[1]>0?"".concat(m[1]/-2,"px"):void 0;return d&&(b.marginLeft=d,b.marginRight=d),c.value?b.rowGap="".concat(m[1],"px"):F&&(b.marginTop=F,b.marginBottom=F),b});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});const Qn=Zn;function Jn(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var ea=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const vr=ae({compatConfig:{MODE:3},name:"ACol",props:ea(),setup:function(e,t){var r=t.slots,a=zn(),i=a.gutter,l=a.supportFlexGap,u=a.wrap,o=ye("col",e),c=o.prefixCls,s=o.direction,f=I(function(){var m,b=e.span,d=e.order,F=e.offset,h=e.push,S=e.pull,g=c.value,v={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(p){var N,C={},x=e[p];typeof x=="number"?C.span=x:ce(x)==="object"&&(C=x||{}),v=k(k({},v),{},(N={},M(N,"".concat(g,"-").concat(p,"-").concat(C.span),C.span!==void 0),M(N,"".concat(g,"-").concat(p,"-order-").concat(C.order),C.order||C.order===0),M(N,"".concat(g,"-").concat(p,"-offset-").concat(C.offset),C.offset||C.offset===0),M(N,"".concat(g,"-").concat(p,"-push-").concat(C.push),C.push||C.push===0),M(N,"".concat(g,"-").concat(p,"-pull-").concat(C.pull),C.pull||C.pull===0),M(N,"".concat(g,"-rtl"),s.value==="rtl"),N))}),ee(g,(m={},M(m,"".concat(g,"-").concat(b),b!==void 0),M(m,"".concat(g,"-order-").concat(d),d),M(m,"".concat(g,"-offset-").concat(F),F),M(m,"".concat(g,"-push-").concat(h),h),M(m,"".concat(g,"-pull-").concat(S),S),m),v)}),y=I(function(){var m=e.flex,b=i.value,d={};if(b&&b[0]>0){var F="".concat(b[0]/2,"px");d.paddingLeft=F,d.paddingRight=F}if(b&&b[1]>0&&!l.value){var h="".concat(b[1]/2,"px");d.paddingTop=h,d.paddingBottom=h}return m&&(d.flex=Jn(m),u.value===!1&&!d.minWidth&&(d.minWidth=0)),d});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});function be(){return be=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qe(n,e,t){return ra()?qe=Reflect.construct.bind():qe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),c=new o;return l&&Ee(c,l.prototype),c},qe.apply(null,arguments)}function na(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function nt(n){var e=typeof Map=="function"?new Map:void 0;return nt=function(r){if(r===null||!na(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return qe(r,arguments,rt(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,r)},nt(n)}var aa=/%[sdj%]/g,ia=function(){};typeof process<"u"&&process.env;function at(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function le(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=i)return u;switch(u){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function la(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function te(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||la(e)&&typeof n=="string"&&!n)}function ua(n,e,t){var r=[],a=0,i=n.length;function l(u){r.push.apply(r,u||[]),a++,a===i&&t(r)}n.forEach(function(u){e(u,l)})}function $t(n,e,t){var r=0,a=n.length;function i(l){if(l&&l.length){t(l);return}var u=r;r=r+1,ua?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0?"".concat(m[0]/-2,"px"):void 0,F=m[1]>0?"".concat(m[1]/-2,"px"):void 0;return d&&(b.marginLeft=d,b.marginRight=d),c.value?b.rowGap="".concat(m[1],"px"):F&&(b.marginTop=F,b.marginBottom=F),b});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});const Qn=Zn;function Jn(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var ea=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const vr=ae({compatConfig:{MODE:3},name:"ACol",props:ea(),setup:function(e,t){var r=t.slots,a=zn(),i=a.gutter,l=a.supportFlexGap,u=a.wrap,o=ye("col",e),c=o.prefixCls,s=o.direction,f=I(function(){var m,b=e.span,d=e.order,F=e.offset,h=e.push,S=e.pull,g=c.value,v={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(p){var N,C={},x=e[p];typeof x=="number"?C.span=x:ce(x)==="object"&&(C=x||{}),v=k(k({},v),{},(N={},M(N,"".concat(g,"-").concat(p,"-").concat(C.span),C.span!==void 0),M(N,"".concat(g,"-").concat(p,"-order-").concat(C.order),C.order||C.order===0),M(N,"".concat(g,"-").concat(p,"-offset-").concat(C.offset),C.offset||C.offset===0),M(N,"".concat(g,"-").concat(p,"-push-").concat(C.push),C.push||C.push===0),M(N,"".concat(g,"-").concat(p,"-pull-").concat(C.pull),C.pull||C.pull===0),M(N,"".concat(g,"-rtl"),s.value==="rtl"),N))}),ee(g,(m={},M(m,"".concat(g,"-").concat(b),b!==void 0),M(m,"".concat(g,"-order-").concat(d),d),M(m,"".concat(g,"-offset-").concat(F),F),M(m,"".concat(g,"-push-").concat(h),h),M(m,"".concat(g,"-pull-").concat(S),S),m),v)}),y=I(function(){var m=e.flex,b=i.value,d={};if(b&&b[0]>0){var F="".concat(b[0]/2,"px");d.paddingLeft=F,d.paddingRight=F}if(b&&b[1]>0&&!l.value){var h="".concat(b[1]/2,"px");d.paddingTop=h,d.paddingBottom=h}return m&&(d.flex=Jn(m),u.value===!1&&!d.minWidth&&(d.minWidth=0)),d});return function(){var m;return T("div",{class:f.value,style:y.value},[(m=r.default)===null||m===void 0?void 0:m.call(r)])}}});function be(){return be=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qe(n,e,t){return ra()?qe=Reflect.construct.bind():qe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),c=new o;return l&&Ee(c,l.prototype),c},qe.apply(null,arguments)}function na(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function nt(n){var e=typeof Map=="function"?new Map:void 0;return nt=function(r){if(r===null||!na(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return qe(r,arguments,rt(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,r)},nt(n)}var aa=/%[sdj%]/g,ia=function(){};typeof process<"u"&&process.env;function at(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function le(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=i)return u;switch(u){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function la(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function te(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||la(e)&&typeof n=="string"&&!n)}function ua(n,e,t){var r=[],a=0,i=n.length;function l(u){r.push.apply(r,u||[]),a++,a===i&&t(r)}n.forEach(function(u){e(u,l)})}function $t(n,e,t){var r=0,a=n.length;function i(l){if(l&&l.length){t(l);return}var u=r;r=r+1,u{const n=[];return t.shiftKey&&n.push("Shift"),t.ctrlKey&&n.push("Ctrl"),t.metaKey&&n.push("Cmd"),(t.code.startsWith("Key")||t.code.startsWith("Digit"))&&n.push(t.code),n.join(" + ")};export{h as g,f as l,e as t}; +import{cH as s}from"./index-cb943354.js";var r=1/0,i=17976931348623157e292;function e(t){if(!t)return t===0?t:0;if(t=s(t),t===r||t===-r){var n=t<0?-1:1;return n*i}return t===t?t:0}function f(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}const h=t=>{const n=[];return t.shiftKey&&n.push("Shift"),t.ctrlKey&&n.push("Ctrl"),t.metaKey&&n.push("Cmd"),(t.code.startsWith("Key")||t.code.startsWith("Digit"))&&n.push(t.code),n.join(" + ")};export{h as g,f as l,e as t}; diff --git a/vue/dist/assets/stackView-7827e95e.js b/vue/dist/assets/stackView-f7c2deb3.js similarity index 97% rename from vue/dist/assets/stackView-7827e95e.js rename to vue/dist/assets/stackView-f7c2deb3.js index f66f404..d52b89c 100644 --- a/vue/dist/assets/stackView-7827e95e.js +++ b/vue/dist/assets/stackView-f7c2deb3.js @@ -1 +1 @@ -import{d as Y,u as ie,g as U,_ as xe,c as a,a as re,P as X,D as Se,f as Pe,w as He,b as Je,e as Xe,h as he,M as oe,i as Ye,j as Ze,F as se,k as et,l as tt,o as d,m as N,n as i,p as u,q as k,r as e,s as T,t as nt,v as c,x as O,y as x,z as ne,A as ae,B as at,C as rt,E as L,G as ot,H as st,S as lt,I as it,J as ut,K as dt,L as ct,N as we,O as pt,Q as mt,R as vt,T as ft,U as kt,V as gt,W as bt,X as Ct}from"./index-bd9cfb84.js";import{D as Me,S as q,s as _t,u as yt,a as ht,b as wt,c as It,d as xt,e as St,f as Pt,g as Mt,h as $t,i as At,L as Rt,R as Bt,j as Dt}from"./fullScreenContextMenu-c82c54b8.js";import{F,N as Nt,_ as Ft}from"./numInput-ac6d6c4c.js";import"./shortcut-6308494d.js";/* empty css *//* empty css */import"./db-a47df277.js";var Et=["class","style"],Tt=function(){return{prefixCls:String,href:String,separator:X.any,overlay:X.any,onClick:Function}};const W=Y({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Tt(),slots:["separator","overlay"],setup:function(r,_){var v=_.slots,g=_.attrs,h=ie("breadcrumb",r),y=h.prefixCls,S=function(w,p){var s=U(v,r,"overlay");return s?a(Me,{overlay:s,placement:"bottom"},{default:function(){return[a("span",{class:"".concat(p,"-overlay-link")},[w,a(Se,null,null)])]}}):w};return function(){var P,w=(P=U(v,r,"separator"))!==null&&P!==void 0?P:"/",p=U(v,r),s=g.class,b=g.style,f=xe(g,Et),m;return r.href!==void 0?m=a("a",re({class:"".concat(y.value,"-link"),onClick:r.onClick},f),[p]):m=a("span",re({class:"".concat(y.value,"-link"),onClick:r.onClick},f),[p]),m=S(m,y.value),p?a("span",{class:s,style:b},[m,w&&a("span",{class:"".concat(y.value,"-separator")},[w])]):null}}});var Vt=function(){return{prefixCls:String,routes:{type:Array},params:X.any,separator:X.any,itemRender:{type:Function}}};function zt(o,r){if(!o.breadcrumbName)return null;var _=Object.keys(r).join("|"),v=o.breadcrumbName.replace(new RegExp(":(".concat(_,")"),"g"),function(g,h){return r[h]||g});return v}function Ie(o){var r=o.route,_=o.params,v=o.routes,g=o.paths,h=v.indexOf(r)===v.length-1,y=zt(r,_);return h?a("span",null,[y]):a("a",{href:"#/".concat(g.join("/"))},[y])}const V=Y({compatConfig:{MODE:3},name:"ABreadcrumb",props:Vt(),slots:["separator","itemRender"],setup:function(r,_){var v=_.slots,g=ie("breadcrumb",r),h=g.prefixCls,y=g.direction,S=function(s,b){return s=(s||"").replace(/^\//,""),Object.keys(b).forEach(function(f){s=s.replace(":".concat(f),b[f])}),s},P=function(s,b,f){var m=Ye(s),I=S(b||"",f);return I&&m.push(I),m},w=function(s){var b=s.routes,f=b===void 0?[]:b,m=s.params,I=m===void 0?{}:m,M=s.separator,$=s.itemRender,A=$===void 0?Ie:$,R=[];return f.map(function(C){var B=S(C.path,I);B&&R.push(B);var z=[].concat(R),j=null;return C.children&&C.children.length&&(j=a(oe,null,{default:function(){return[C.children.map(function(E){return a(oe.Item,{key:E.path||E.breadcrumbName},{default:function(){return[A({route:E,params:I,routes:f,paths:P(z,E.path,I)})]}})})]}})),a(W,{overlay:j,separator:M,key:B||C.breadcrumbName},{default:function(){return[A({route:C,params:I,routes:f,paths:z})]}})})};return function(){var p,s,b,f=r.routes,m=r.params,I=m===void 0?{}:m,M=Pe(U(v,r)),$=(p=U(v,r,"separator"))!==null&&p!==void 0?p:"/",A=r.itemRender||v.itemRender||Ie;f&&f.length>0?b=w({routes:f,params:I,separator:$,itemRender:A}):M.length&&(b=M.map(function(C,B){return He(Je(C.type)==="object"&&(C.type.__ANT_BREADCRUMB_ITEM||C.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Xe(C,{separator:$,key:B})}));var R=(s={},he(s,h.value,!0),he(s,"".concat(h.value,"-rtl"),y.value==="rtl"),s);return a("div",{class:R},[b])}}});var jt=["separator","class"],Ot=function(){return{prefixCls:String}};const le=Y({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ot(),setup:function(r,_){var v=_.slots,g=_.attrs,h=ie("breadcrumb",r),y=h.prefixCls;return function(){var S;g.separator;var P=g.class,w=xe(g,jt),p=Pe((S=v.default)===null||S===void 0?void 0:S.call(v));return a("span",re({class:["".concat(y.value,"-separator"),P]},w),[p.length>0?p:"/"])}}});V.Item=W;V.Separator=le;V.install=function(o){return o.component(V.name,V),o.component(W.name,W),o.component(le.name,le),o};F.useInjectFormItemContext=Ze;F.ItemRest=se;F.install=function(o){return o.component(F.name,F),o.component(F.Item.name,F.Item),o.component(se.name,se),o};q.setDefaultIndicator=_t;q.install=function(o){return o.component(q.name,q),o};const Lt={class:"hint"},Ut={class:"location-bar"},qt={key:0},Wt=["onClick"],Gt={key:3,style:{"margin-left":"8px"}},Kt={class:"actions"},Qt=["onClick"],Ht={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},Jt={style:{padding:"4px"}},Xt={style:{padding:"4px"}},Yt={style:{padding:"4px"}},Zt={key:0,class:"view"},en={style:{padding:"16px 0 32px"}},tn={key:0,class:"preview-switch"},nn=Y({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},walkModePath:{},stackKey:{}},setup(o){const r=o,_=et(),{scroller:v,stackViewEl:g,props:h,multiSelectedIdxs:y,spinning:S}=yt().toRefs(),{currLocation:P,currPage:w,refresh:p,copyLocation:s,back:b,openNext:f,stack:m,quickMoveTo:I,addToSearchScanPathAndQuickMove:M,searchPathInfo:$,locInputValue:A,isLocationEditing:R,onLocEditEnter:C,onEditBtnClick:B,share:z,selectAll:j,onCreateFloderBtnClick:G}=ht(r),{gridItems:E,sortMethodConv:ue,moreActionsDropdownShow:Z,sortedFiles:K,sortMethod:ee,itemSize:de,loadNextDir:$e,loadNextDirLoading:Ae,canLoadNext:Re,onScroll:Be,cellWidth:Q}=wt(r),{onDrop:De,onFileDragStart:Ne,onFileDragEnd:Fe}=It(),{onFileItemClick:Ee,onContextMenuClick:ce,showGenInfo:H,imageGenInfo:pe,q:Te}=xt(r,{openNext:f}),{previewIdx:J,onPreviewVisibleChange:Ve,previewing:me,previewImgMove:ve,canPreview:fe}=St(r),{showMenuIdx:te}=Pt();return tt(()=>r,()=>{h.value=r;const l=Mt.get(r.stackKey??"");l&&(m.value=l.slice())},{immediate:!0}),(l,t)=>{const ze=pt,je=mt,Oe=vt,ke=W,ge=V,Le=ft,Ue=kt,be=gt,qe=bt,We=oe,Ce=Me,Ge=Nt,_e=Ft,Ke=F,Qe=q;return d(),N(Qe,{spinning:e(S),size:"large"},{default:i(()=>[a(ze,{style:{display:"none"}}),u("div",{ref_key:"stackViewEl",ref:g,onDragover:t[23]||(t[23]=k(()=>{},["prevent"])),onDrop:t[24]||(t[24]=k(n=>e(De)(n),["prevent"])),class:"container"},[a(Oe,{visible:e(H),"onUpdate:visible":t[1]||(t[1]=n=>T(H)?H.value=n:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=n=>H.value=!1)},{cancelText:i(()=>[]),default:i(()=>[a(je,{active:"",loading:!e(Te).isIdle},{default:i(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:t[0]||(t[0]=n=>e(nt)(e(pe)))},[u("div",Lt,c(l.$t("doubleClickToCopy")),1),O(" "+c(e(pe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),u("div",Ut,[r.walkModePath?(d(),x("div",qt,[a(Le,null,{title:i(()=>[O(c(l.$t("walk-mode-move-message")),1)]),default:i(()=>[a(ge,{style:{flex:"1"}},{default:i(()=>[(d(!0),x(ne,null,ae(e(m),(n,D)=>(d(),N(ke,{key:D},{default:i(()=>[u("span",null,c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),1)]),_:2},1024))),128))]),_:1})]),_:1})])):(d(),x("div",{key:1,class:"breadcrumb",style:at({flex:e(R)?1:""})},[e(R)?(d(),N(Ue,{key:0,style:{flex:"1"},value:e(A),"onUpdate:value":t[3]||(t[3]=n=>T(A)?A.value=n:null),onClick:t[4]||(t[4]=k(()=>{},["stop"])),onPressEnter:e(C)},null,8,["value","onPressEnter"])):(d(),N(ge,{key:1,style:{flex:"1"}},{default:i(()=>[(d(!0),x(ne,null,ae(e(m),(n,D)=>(d(),N(ke,{key:D},{default:i(()=>[u("a",{onClick:k(ye=>e(b)(D),["prevent"])},c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),9,Wt)]),_:2},1024))),128))]),_:1})),e(R)?(d(),N(be,{key:2,size:"small",onClick:e(C),type:"primary"},{default:i(()=>[O(c(l.$t("go")),1)]),_:1},8,["onClick"])):(d(),x("div",Gt,[u("a",{onClick:t[5]||(t[5]=k((...n)=>e(s)&&e(s)(...n),["prevent"])),style:{"margin-right":"4px"}},c(l.$t("copy")),1),u("a",{onClick:t[6]||(t[6]=k((...n)=>e(B)&&e(B)(...n),["prevent","stop"]))},c(l.$t("edit")),1)]))],4)),u("div",Kt,[u("a",{class:"opt",onClick:t[7]||(t[7]=k((...n)=>e(p)&&e(p)(...n),["prevent"]))},c(l.$t("refresh")),1),u("a",{class:"opt",onClick:t[8]||(t[8]=k((...n)=>e(j)&&e(j)(...n),["prevent","stop"]))},c(l.$t("selectAll")),1),e(rt)?L("",!0):(d(),x("a",{key:0,class:"opt",onClick:t[9]||(t[9]=k((...n)=>e(z)&&e(z)(...n),["prevent"]))},c(l.$t("share")),1)),a(Ce,null,{overlay:i(()=>[a(We,null,{default:i(()=>[(d(!0),x(ne,null,ae(e(_).quickMovePaths,n=>(d(),N(qe,{key:n.dir},{default:i(()=>[u("a",{onClick:k(D=>e(I)(n.dir),["prevent"])},c(n.zh),9,Qt)]),_:2},1024))),128))]),_:1})]),default:i(()=>[u("a",{class:"opt",onClick:t[10]||(t[10]=k(()=>{},["prevent"]))},[O(c(l.$t("quickMove"))+" ",1),a(e(Se))])]),_:1}),a(Ce,{trigger:["click"],visible:e(Z),"onUpdate:visible":t[19]||(t[19]=n=>T(Z)?Z.value=n:null),placement:"bottomLeft",getPopupContainer:n=>n.parentNode},{overlay:i(()=>[u("div",Ht,[a(Ke,ot(st({labelCol:{span:6},wrapperCol:{span:18}})),{default:i(()=>[a(_e,{label:l.$t("gridCellWidth")},{default:i(()=>[a(Ge,{modelValue:e(Q),"onUpdate:modelValue":t[12]||(t[12]=n=>T(Q)?Q.value=n:null),max:1024,min:64,step:64},null,8,["modelValue"])]),_:1},8,["label"]),a(_e,{label:l.$t("sortingMethod")},{default:i(()=>[a(e(lt),{value:e(ee),"onUpdate:value":t[13]||(t[13]=n=>T(ee)?ee.value=n:null),onClick:t[14]||(t[14]=k(()=>{},["stop"])),conv:e(ue),options:e(it)},null,8,["value","conv","options"])]),_:1},8,["label"]),u("div",Jt,[e($)?e($).can_delete?(d(),x("a",{key:1,onClick:t[16]||(t[16]=k((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("removeFromSearchScanPathAndQuickMove")),1)):L("",!0):(d(),x("a",{key:0,onClick:t[15]||(t[15]=k((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("addToSearchScanPathAndQuickMove")),1))]),u("div",Xt,[u("a",{onClick:t[17]||(t[17]=k(n=>e(ut)(e(P)+"/"),["prevent"]))},c(l.$t("openWithLocalFileBrowser")),1)]),u("div",Yt,[u("a",{onClick:t[18]||(t[18]=k((...n)=>e(G)&&e(G)(...n),["prevent"]))},c(l.$t("createFolder")),1)])]),_:1},16)])]),default:i(()=>[u("a",{class:"opt",onClick:t[11]||(t[11]=k(()=>{},["prevent"]))},c(l.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(w)?(d(),x("div",Zt,[a(e($t),{class:"file-list",items:e(K),ref_key:"scroller",ref:v,onScroll:e(Be),"item-size":e(de).first,"key-field":"fullpath","item-secondary-size":e(de).second,gridItems:e(E)},dt({default:i(({item:n,index:D})=>[a(At,{idx:D,file:n,"full-screen-preview-image-url":e(K)[e(J)]?e(ct)(e(K)[e(J)]):"","show-menu-idx":e(te),"onUpdate:showMenuIdx":t[20]||(t[20]=ye=>T(te)?te.value=ye:null),selected:e(y).includes(D),"cell-width":e(Q),onFileItemClick:e(Ee),onDragstart:e(Ne),onDragend:e(Fe),onPreviewVisibleChange:e(Ve),onContextMenuClick:e(ce)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick"])]),_:2},[r.walkModePath?{name:"after",fn:i(()=>[u("div",en,[a(be,{onClick:e($e),loading:e(Ae),block:"",type:"primary",disabled:!e(Re),ghost:""},{default:i(()=>[O(c(l.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])])]),key:"0"}:void 0]),1032,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(me)?(d(),x("div",tn,[a(e(Rt),{onClick:t[21]||(t[21]=n=>e(ve)("prev")),class:we({disable:!e(fe)("prev")})},null,8,["class"]),a(e(Bt),{onClick:t[22]||(t[22]=n=>e(ve)("next")),class:we({disable:!e(fe)("next")})},null,8,["class"])])):L("",!0)])):L("",!0)],544),e(me)?(d(),N(Dt,{key:0,file:e(K)[e(J)],idx:e(J),onContextMenuClick:e(ce)},null,8,["file","idx","onContextMenuClick"])):L("",!0)]),_:1},8,["spinning"])}}});const cn=Ct(nn,[["__scopeId","data-v-43659a67"]]);export{cn as default}; +import{d as Y,u as ie,g as U,_ as xe,c as a,a as re,P as X,D as Se,f as Pe,w as He,b as Je,e as Xe,h as he,M as oe,i as Ye,j as Ze,F as se,k as et,l as tt,o as d,m as N,n as i,p as u,q as k,r as e,s as T,t as nt,v as c,x as O,y as x,z as ne,A as ae,B as at,C as rt,E as L,G as ot,H as st,S as lt,I as it,J as ut,K as dt,L as ct,N as we,O as pt,Q as mt,R as vt,T as ft,U as kt,V as gt,W as bt,X as Ct}from"./index-cb943354.js";import{D as Me,S as q,s as _t,u as yt,a as ht,b as wt,c as It,d as xt,e as St,f as Pt,g as Mt,h as $t,i as At,L as Rt,R as Bt,j as Dt}from"./fullScreenContextMenu-8736e356.js";import{F,N as Nt,_ as Ft}from"./numInput-98768867.js";import"./shortcut-1308f2ef.js";/* empty css *//* empty css */import"./db-34982abd.js";var Et=["class","style"],Tt=function(){return{prefixCls:String,href:String,separator:X.any,overlay:X.any,onClick:Function}};const W=Y({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Tt(),slots:["separator","overlay"],setup:function(r,_){var v=_.slots,g=_.attrs,h=ie("breadcrumb",r),y=h.prefixCls,S=function(w,p){var s=U(v,r,"overlay");return s?a(Me,{overlay:s,placement:"bottom"},{default:function(){return[a("span",{class:"".concat(p,"-overlay-link")},[w,a(Se,null,null)])]}}):w};return function(){var P,w=(P=U(v,r,"separator"))!==null&&P!==void 0?P:"/",p=U(v,r),s=g.class,b=g.style,f=xe(g,Et),m;return r.href!==void 0?m=a("a",re({class:"".concat(y.value,"-link"),onClick:r.onClick},f),[p]):m=a("span",re({class:"".concat(y.value,"-link"),onClick:r.onClick},f),[p]),m=S(m,y.value),p?a("span",{class:s,style:b},[m,w&&a("span",{class:"".concat(y.value,"-separator")},[w])]):null}}});var Vt=function(){return{prefixCls:String,routes:{type:Array},params:X.any,separator:X.any,itemRender:{type:Function}}};function zt(o,r){if(!o.breadcrumbName)return null;var _=Object.keys(r).join("|"),v=o.breadcrumbName.replace(new RegExp(":(".concat(_,")"),"g"),function(g,h){return r[h]||g});return v}function Ie(o){var r=o.route,_=o.params,v=o.routes,g=o.paths,h=v.indexOf(r)===v.length-1,y=zt(r,_);return h?a("span",null,[y]):a("a",{href:"#/".concat(g.join("/"))},[y])}const V=Y({compatConfig:{MODE:3},name:"ABreadcrumb",props:Vt(),slots:["separator","itemRender"],setup:function(r,_){var v=_.slots,g=ie("breadcrumb",r),h=g.prefixCls,y=g.direction,S=function(s,b){return s=(s||"").replace(/^\//,""),Object.keys(b).forEach(function(f){s=s.replace(":".concat(f),b[f])}),s},P=function(s,b,f){var m=Ye(s),I=S(b||"",f);return I&&m.push(I),m},w=function(s){var b=s.routes,f=b===void 0?[]:b,m=s.params,I=m===void 0?{}:m,M=s.separator,$=s.itemRender,A=$===void 0?Ie:$,R=[];return f.map(function(C){var B=S(C.path,I);B&&R.push(B);var z=[].concat(R),j=null;return C.children&&C.children.length&&(j=a(oe,null,{default:function(){return[C.children.map(function(E){return a(oe.Item,{key:E.path||E.breadcrumbName},{default:function(){return[A({route:E,params:I,routes:f,paths:P(z,E.path,I)})]}})})]}})),a(W,{overlay:j,separator:M,key:B||C.breadcrumbName},{default:function(){return[A({route:C,params:I,routes:f,paths:z})]}})})};return function(){var p,s,b,f=r.routes,m=r.params,I=m===void 0?{}:m,M=Pe(U(v,r)),$=(p=U(v,r,"separator"))!==null&&p!==void 0?p:"/",A=r.itemRender||v.itemRender||Ie;f&&f.length>0?b=w({routes:f,params:I,separator:$,itemRender:A}):M.length&&(b=M.map(function(C,B){return He(Je(C.type)==="object"&&(C.type.__ANT_BREADCRUMB_ITEM||C.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Xe(C,{separator:$,key:B})}));var R=(s={},he(s,h.value,!0),he(s,"".concat(h.value,"-rtl"),y.value==="rtl"),s);return a("div",{class:R},[b])}}});var jt=["separator","class"],Ot=function(){return{prefixCls:String}};const le=Y({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ot(),setup:function(r,_){var v=_.slots,g=_.attrs,h=ie("breadcrumb",r),y=h.prefixCls;return function(){var S;g.separator;var P=g.class,w=xe(g,jt),p=Pe((S=v.default)===null||S===void 0?void 0:S.call(v));return a("span",re({class:["".concat(y.value,"-separator"),P]},w),[p.length>0?p:"/"])}}});V.Item=W;V.Separator=le;V.install=function(o){return o.component(V.name,V),o.component(W.name,W),o.component(le.name,le),o};F.useInjectFormItemContext=Ze;F.ItemRest=se;F.install=function(o){return o.component(F.name,F),o.component(F.Item.name,F.Item),o.component(se.name,se),o};q.setDefaultIndicator=_t;q.install=function(o){return o.component(q.name,q),o};const Lt={class:"hint"},Ut={class:"location-bar"},qt={key:0},Wt=["onClick"],Gt={key:3,style:{"margin-left":"8px"}},Kt={class:"actions"},Qt=["onClick"],Ht={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},Jt={style:{padding:"4px"}},Xt={style:{padding:"4px"}},Yt={style:{padding:"4px"}},Zt={key:0,class:"view"},en={style:{padding:"16px 0 32px"}},tn={key:0,class:"preview-switch"},nn=Y({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},walkModePath:{},stackKey:{}},setup(o){const r=o,_=et(),{scroller:v,stackViewEl:g,props:h,multiSelectedIdxs:y,spinning:S}=yt().toRefs(),{currLocation:P,currPage:w,refresh:p,copyLocation:s,back:b,openNext:f,stack:m,quickMoveTo:I,addToSearchScanPathAndQuickMove:M,searchPathInfo:$,locInputValue:A,isLocationEditing:R,onLocEditEnter:C,onEditBtnClick:B,share:z,selectAll:j,onCreateFloderBtnClick:G}=ht(r),{gridItems:E,sortMethodConv:ue,moreActionsDropdownShow:Z,sortedFiles:K,sortMethod:ee,itemSize:de,loadNextDir:$e,loadNextDirLoading:Ae,canLoadNext:Re,onScroll:Be,cellWidth:Q}=wt(r),{onDrop:De,onFileDragStart:Ne,onFileDragEnd:Fe}=It(),{onFileItemClick:Ee,onContextMenuClick:ce,showGenInfo:H,imageGenInfo:pe,q:Te}=xt(r,{openNext:f}),{previewIdx:J,onPreviewVisibleChange:Ve,previewing:me,previewImgMove:ve,canPreview:fe}=St(r),{showMenuIdx:te}=Pt();return tt(()=>r,()=>{h.value=r;const l=Mt.get(r.stackKey??"");l&&(m.value=l.slice())},{immediate:!0}),(l,t)=>{const ze=pt,je=mt,Oe=vt,ke=W,ge=V,Le=ft,Ue=kt,be=gt,qe=bt,We=oe,Ce=Me,Ge=Nt,_e=Ft,Ke=F,Qe=q;return d(),N(Qe,{spinning:e(S),size:"large"},{default:i(()=>[a(ze,{style:{display:"none"}}),u("div",{ref_key:"stackViewEl",ref:g,onDragover:t[23]||(t[23]=k(()=>{},["prevent"])),onDrop:t[24]||(t[24]=k(n=>e(De)(n),["prevent"])),class:"container"},[a(Oe,{visible:e(H),"onUpdate:visible":t[1]||(t[1]=n=>T(H)?H.value=n:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=n=>H.value=!1)},{cancelText:i(()=>[]),default:i(()=>[a(je,{active:"",loading:!e(Te).isIdle},{default:i(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:t[0]||(t[0]=n=>e(nt)(e(pe)))},[u("div",Lt,c(l.$t("doubleClickToCopy")),1),O(" "+c(e(pe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),u("div",Ut,[r.walkModePath?(d(),x("div",qt,[a(Le,null,{title:i(()=>[O(c(l.$t("walk-mode-move-message")),1)]),default:i(()=>[a(ge,{style:{flex:"1"}},{default:i(()=>[(d(!0),x(ne,null,ae(e(m),(n,D)=>(d(),N(ke,{key:D},{default:i(()=>[u("span",null,c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),1)]),_:2},1024))),128))]),_:1})]),_:1})])):(d(),x("div",{key:1,class:"breadcrumb",style:at({flex:e(R)?1:""})},[e(R)?(d(),N(Ue,{key:0,style:{flex:"1"},value:e(A),"onUpdate:value":t[3]||(t[3]=n=>T(A)?A.value=n:null),onClick:t[4]||(t[4]=k(()=>{},["stop"])),onPressEnter:e(C)},null,8,["value","onPressEnter"])):(d(),N(ge,{key:1,style:{flex:"1"}},{default:i(()=>[(d(!0),x(ne,null,ae(e(m),(n,D)=>(d(),N(ke,{key:D},{default:i(()=>[u("a",{onClick:k(ye=>e(b)(D),["prevent"])},c(n.curr==="/"?l.$t("root"):n.curr.replace(/:\/$/,l.$t("drive"))),9,Wt)]),_:2},1024))),128))]),_:1})),e(R)?(d(),N(be,{key:2,size:"small",onClick:e(C),type:"primary"},{default:i(()=>[O(c(l.$t("go")),1)]),_:1},8,["onClick"])):(d(),x("div",Gt,[u("a",{onClick:t[5]||(t[5]=k((...n)=>e(s)&&e(s)(...n),["prevent"])),style:{"margin-right":"4px"}},c(l.$t("copy")),1),u("a",{onClick:t[6]||(t[6]=k((...n)=>e(B)&&e(B)(...n),["prevent","stop"]))},c(l.$t("edit")),1)]))],4)),u("div",Kt,[u("a",{class:"opt",onClick:t[7]||(t[7]=k((...n)=>e(p)&&e(p)(...n),["prevent"]))},c(l.$t("refresh")),1),u("a",{class:"opt",onClick:t[8]||(t[8]=k((...n)=>e(j)&&e(j)(...n),["prevent","stop"]))},c(l.$t("selectAll")),1),e(rt)?L("",!0):(d(),x("a",{key:0,class:"opt",onClick:t[9]||(t[9]=k((...n)=>e(z)&&e(z)(...n),["prevent"]))},c(l.$t("share")),1)),a(Ce,null,{overlay:i(()=>[a(We,null,{default:i(()=>[(d(!0),x(ne,null,ae(e(_).quickMovePaths,n=>(d(),N(qe,{key:n.dir},{default:i(()=>[u("a",{onClick:k(D=>e(I)(n.dir),["prevent"])},c(n.zh),9,Qt)]),_:2},1024))),128))]),_:1})]),default:i(()=>[u("a",{class:"opt",onClick:t[10]||(t[10]=k(()=>{},["prevent"]))},[O(c(l.$t("quickMove"))+" ",1),a(e(Se))])]),_:1}),a(Ce,{trigger:["click"],visible:e(Z),"onUpdate:visible":t[19]||(t[19]=n=>T(Z)?Z.value=n:null),placement:"bottomLeft",getPopupContainer:n=>n.parentNode},{overlay:i(()=>[u("div",Ht,[a(Ke,ot(st({labelCol:{span:6},wrapperCol:{span:18}})),{default:i(()=>[a(_e,{label:l.$t("gridCellWidth")},{default:i(()=>[a(Ge,{modelValue:e(Q),"onUpdate:modelValue":t[12]||(t[12]=n=>T(Q)?Q.value=n:null),max:1024,min:64,step:64},null,8,["modelValue"])]),_:1},8,["label"]),a(_e,{label:l.$t("sortingMethod")},{default:i(()=>[a(e(lt),{value:e(ee),"onUpdate:value":t[13]||(t[13]=n=>T(ee)?ee.value=n:null),onClick:t[14]||(t[14]=k(()=>{},["stop"])),conv:e(ue),options:e(it)},null,8,["value","conv","options"])]),_:1},8,["label"]),u("div",Jt,[e($)?e($).can_delete?(d(),x("a",{key:1,onClick:t[16]||(t[16]=k((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("removeFromSearchScanPathAndQuickMove")),1)):L("",!0):(d(),x("a",{key:0,onClick:t[15]||(t[15]=k((...n)=>e(M)&&e(M)(...n),["prevent"]))},c(l.$t("addToSearchScanPathAndQuickMove")),1))]),u("div",Xt,[u("a",{onClick:t[17]||(t[17]=k(n=>e(ut)(e(P)+"/"),["prevent"]))},c(l.$t("openWithLocalFileBrowser")),1)]),u("div",Yt,[u("a",{onClick:t[18]||(t[18]=k((...n)=>e(G)&&e(G)(...n),["prevent"]))},c(l.$t("createFolder")),1)])]),_:1},16)])]),default:i(()=>[u("a",{class:"opt",onClick:t[11]||(t[11]=k(()=>{},["prevent"]))},c(l.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(w)?(d(),x("div",Zt,[a(e($t),{class:"file-list",items:e(K),ref_key:"scroller",ref:v,onScroll:e(Be),"item-size":e(de).first,"key-field":"fullpath","item-secondary-size":e(de).second,gridItems:e(E)},dt({default:i(({item:n,index:D})=>[a(At,{idx:D,file:n,"full-screen-preview-image-url":e(K)[e(J)]?e(ct)(e(K)[e(J)]):"","show-menu-idx":e(te),"onUpdate:showMenuIdx":t[20]||(t[20]=ye=>T(te)?te.value=ye:null),selected:e(y).includes(D),"cell-width":e(Q),onFileItemClick:e(Ee),onDragstart:e(Ne),onDragend:e(Fe),onPreviewVisibleChange:e(Ve),onContextMenuClick:e(ce)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick"])]),_:2},[r.walkModePath?{name:"after",fn:i(()=>[u("div",en,[a(be,{onClick:e($e),loading:e(Ae),block:"",type:"primary",disabled:!e(Re),ghost:""},{default:i(()=>[O(c(l.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])])]),key:"0"}:void 0]),1032,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(me)?(d(),x("div",tn,[a(e(Rt),{onClick:t[21]||(t[21]=n=>e(ve)("prev")),class:we({disable:!e(fe)("prev")})},null,8,["class"]),a(e(Bt),{onClick:t[22]||(t[22]=n=>e(ve)("next")),class:we({disable:!e(fe)("next")})},null,8,["class"])])):L("",!0)])):L("",!0)],544),e(me)?(d(),N(Dt,{key:0,file:e(K)[e(J)],idx:e(J),onContextMenuClick:e(ce)},null,8,["file","idx","onContextMenuClick"])):L("",!0)]),_:1},8,["spinning"])}}});const cn=Ct(nn,[["__scopeId","data-v-43659a67"]]);export{cn as default}; diff --git a/vue/dist/index.html b/vue/dist/index.html index f4ebb4d..a1751e2 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/page/fileTransfer/FileItem.vue b/vue/src/page/fileTransfer/FileItem.vue index 0bf7b74..68bc04c 100644 --- a/vue/src/page/fileTransfer/FileItem.vue +++ b/vue/src/page/fileTransfer/FileItem.vue @@ -118,6 +118,8 @@ const imageSrc = computed(() => { &>* { margin: 0 0 4px 4px; + font-size: 14px; + line-height: 1.8; } } diff --git a/vue/src/page/fileTransfer/fullScreenContextMenu.vue b/vue/src/page/fileTransfer/fullScreenContextMenu.vue index bf082a1..738ce56 100644 --- a/vue/src/page/fileTransfer/fullScreenContextMenu.vue +++ b/vue/src/page/fileTransfer/fullScreenContextMenu.vue @@ -105,6 +105,7 @@ const baseInfoTags = computed(() => { } return tags }) +