diff --git a/javascript/index.js b/javascript/index.js index 3574e3e..bd6452b 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -13,7 +13,7 @@ Promise.resolve().then(async () => { Infinite Image Browsing - + diff --git a/scripts/iib/tool.py b/scripts/iib/tool.py index d2c2317..a5b5c54 100644 --- a/scripts/iib/tool.py +++ b/scripts/iib/tool.py @@ -221,7 +221,7 @@ def get_created_date(folder_path: str): return get_formatted_date(os.path.getctime(folder_path)) -def unique_by(seq, key_func = lambda x: x): +def unique_by(seq, key_func=lambda x: x): seen = set() return [x for x in seq if not (key := key_func(x)) in seen and not seen.add(key)] @@ -229,9 +229,11 @@ def unique_by(seq, key_func = lambda x: x): def find(lst, comparator): return next((item for item in lst if comparator(item)), None) + def findIndex(lst, comparator): return next((i for i, item in enumerate(lst) if comparator(item)), -1) + def get_img_geninfo_txt_path(path: str): txt_path = re.sub(r"\..+$", ".txt", path) if os.path.exists(txt_path): @@ -280,9 +282,9 @@ def read_info_from_image(image, path="") -> str: re_param_code = r'\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^\"])+"|[^,]*)(?:,|$)' re_param = re.compile(re_param_code) re_imagesize = re.compile(r"^(\d+)x(\d+)$") -re_lora_prompt = re.compile("") +re_lora_prompt = re.compile("", re.IGNORECASE) re_lora_extract = re.compile(r"([\w_\s.]+)(?:\d+)?") -re_lyco_prompt = re.compile("") +re_lyco_prompt = re.compile("", re.IGNORECASE) re_parens = re.compile(r"[\\/\[\](){}]+") @@ -296,7 +298,7 @@ def lora_extract(lora: str): def parse_prompt(x: str): x = re.sub( - re_parens, "", x.lower().replace(",", ",").replace("-", " ").replace("_", " ") + re_parens, "", x.replace(",", ",").replace("-", " ").replace("_", " ") ) tag_list = [x.strip() for x in x.split(",")] res = [] @@ -320,10 +322,10 @@ def parse_prompt(x: str): else: tag = tag[0:idx_colon] if len(tag): - res.append(tag) + res.append(tag.lower()) else: - res.append(tag) - return { "pos_prompt": res, "lora": lora_list, "lyco": lyco_list } + res.append(tag.lower()) + return {"pos_prompt": res, "lora": lora_list, "lyco": lyco_list} def parse_generation_parameters(x: str): @@ -332,7 +334,7 @@ def parse_generation_parameters(x: str): negative_prompt = "" done_with_prompt = False if not x: - return {}, [], [], [] + return {"meta": {}, "pos_prompt": [], "lora": [], "lyco": []} *lines, lastline = x.strip().split("\n") if len(re_param.findall(lastline)) < 3: lines.append(lastline) @@ -372,8 +374,8 @@ def parse_generation_parameters(x: str): return { "meta": res, "pos_prompt": unique_by(prompt_parse_res["pos_prompt"]), - "lora": unique_by(lora, lambda x: x["name"]), - "lyco": unique_by(prompt_parse_res["lyco"], lambda x: x["name"]) + "lora": unique_by(lora, lambda x: x["name"].lower()), + "lyco": unique_by(prompt_parse_res["lyco"], lambda x: x["name"].lower()), } diff --git a/vue/dist/assets/ImgSliPagePane-383b23f0.js b/vue/dist/assets/ImgSliPagePane-78be20ff.js similarity index 74% rename from vue/dist/assets/ImgSliPagePane-383b23f0.js rename to vue/dist/assets/ImgSliPagePane-78be20ff.js index 078a4b4..8b973ce 100644 --- a/vue/dist/assets/ImgSliPagePane-383b23f0.js +++ b/vue/dist/assets/ImgSliPagePane-78be20ff.js @@ -1 +1 @@ -import{d as t,o as a,m as r,cE as n}from"./index-77d97794.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,cE as n}from"./index-d9e8fbed.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-810d58f0.js b/vue/dist/assets/MatchedImageGrid-f820d519.js similarity index 91% rename from vue/dist/assets/MatchedImageGrid-810d58f0.js rename to vue/dist/assets/MatchedImageGrid-f820d519.js index dcdf3b5..8dd335d 100644 --- a/vue/dist/assets/MatchedImageGrid-810d58f0.js +++ b/vue/dist/assets/MatchedImageGrid-f820d519.js @@ -1 +1 @@ -import{d as L,l as O,o as r,y as _,c as l,n as a,r as e,s as h,p as y,t as q,v as b,x as Q,m as M,L as j,E as u,N as S,Q as W,R as X,X as H}from"./index-77d97794.js";import{h as J,i as K,L as Y,R as Z,j as ee,S as te}from"./fullScreenContextMenu-4736d6b8.js";import{g as ie}from"./db-7af76374.js";import{u as se}from"./hook-b5d98c21.js";import"./shortcut-e119c30f.js";const le={class:"hint"},ne={key:1,class:"preview-switch"},ae=L({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(V){const m=V,{queue:p,images:i,onContextMenuClickU:g,stackViewEl:D,previewIdx:n,previewing:v,onPreviewVisibleChange:T,previewImgMove:f,canPreview:w,itemSize:I,gridItems:z,showGenInfo:o,imageGenInfo:k,q:F,multiSelectedIdxs:$,onFileItemClick:B,scroller:C,showMenuIdx:d,onFileDragStart:E,onFileDragEnd:G,cellWidth:N}=se();return O(()=>m.selectedTagIds,async()=>{var t;const{res:c}=p.pushAction(()=>ie(m.selectedTagIds));i.value=await c,(t=C.value)==null||t.scrollToItem(0)},{immediate:!0}),(c,t)=>{const R=W,A=X,P=te;return r(),_("div",{class:"container",ref_key:"stackViewEl",ref:D},[l(P,{size:"large",spinning:!e(p).isIdle},{default:a(()=>[l(A,{visible:e(o),"onUpdate:visible":t[1]||(t[1]=s=>h(o)?o.value=s:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=s=>o.value=!1)},{cancelText:a(()=>[]),default:a(()=>[l(R,{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]=s=>e(q)(e(k)))},[y("div",le,b(c.$t("doubleClickToCopy")),1),Q(" "+b(e(k)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(i)?(r(),M(e(J),{key:0,ref_key:"scroller",ref:C,class:"file-list",items:e(i),"item-size":e(I).first,"key-field":"fullpath","item-secondary-size":e(I).second,gridItems:e(z)},{default:a(({item:s,index:x})=>[l(K,{idx:x,file:s,"cell-width":e(N),"show-menu-idx":e(d),"onUpdate:showMenuIdx":t[3]||(t[3]=U=>h(d)?d.value=U:null),onDragstart:e(E),onDragend:e(G),onFileItemClick:e(B),"full-screen-preview-image-url":e(i)[e(n)]?e(j)(e(i)[e(n)]):"",selected:e($).includes(x),onContextMenuClick:e(g),onPreviewVisibleChange:e(T)},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"])):u("",!0),e(v)?(r(),_("div",ne,[l(e(Y),{onClick:t[4]||(t[4]=s=>e(f)("prev")),class:S({disable:!e(w)("prev")})},null,8,["class"]),l(e(Z),{onClick:t[5]||(t[5]=s=>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(ee,{key:0,file:e(i)[e(n)],idx:e(n),onContextMenuClick:e(g)},null,8,["file","idx","onContextMenuClick"])):u("",!0)],512)}}});const me=H(ae,[["__scopeId","data-v-d4722c8d"]]);export{me as default}; +import{d as L,l as O,o as r,y as _,c as l,n as a,r as e,s as h,p as y,t as q,v as b,x as Q,m as M,L as j,E as u,N as S,Q as W,R as X,X as H}from"./index-d9e8fbed.js";import{h as J,i as K,L as Y,R as Z,j as ee,S as te}from"./fullScreenContextMenu-caca4231.js";import{g as ie}from"./db-ea72b770.js";import{u as se}from"./hook-900c55c9.js";import"./shortcut-9b4bff3d.js";const le={class:"hint"},ne={key:1,class:"preview-switch"},ae=L({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(V){const m=V,{queue:p,images:i,onContextMenuClickU:g,stackViewEl:D,previewIdx:n,previewing:v,onPreviewVisibleChange:T,previewImgMove:f,canPreview:w,itemSize:I,gridItems:z,showGenInfo:o,imageGenInfo:k,q:F,multiSelectedIdxs:$,onFileItemClick:B,scroller:C,showMenuIdx:d,onFileDragStart:E,onFileDragEnd:G,cellWidth:N}=se();return O(()=>m.selectedTagIds,async()=>{var t;const{res:c}=p.pushAction(()=>ie(m.selectedTagIds));i.value=await c,(t=C.value)==null||t.scrollToItem(0)},{immediate:!0}),(c,t)=>{const R=W,A=X,P=te;return r(),_("div",{class:"container",ref_key:"stackViewEl",ref:D},[l(P,{size:"large",spinning:!e(p).isIdle},{default:a(()=>[l(A,{visible:e(o),"onUpdate:visible":t[1]||(t[1]=s=>h(o)?o.value=s:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=s=>o.value=!1)},{cancelText:a(()=>[]),default:a(()=>[l(R,{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]=s=>e(q)(e(k)))},[y("div",le,b(c.$t("doubleClickToCopy")),1),Q(" "+b(e(k)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(i)?(r(),M(e(J),{key:0,ref_key:"scroller",ref:C,class:"file-list",items:e(i),"item-size":e(I).first,"key-field":"fullpath","item-secondary-size":e(I).second,gridItems:e(z)},{default:a(({item:s,index:x})=>[l(K,{idx:x,file:s,"cell-width":e(N),"show-menu-idx":e(d),"onUpdate:showMenuIdx":t[3]||(t[3]=U=>h(d)?d.value=U:null),onDragstart:e(E),onDragend:e(G),onFileItemClick:e(B),"full-screen-preview-image-url":e(i)[e(n)]?e(j)(e(i)[e(n)]):"",selected:e($).includes(x),onContextMenuClick:e(g),onPreviewVisibleChange:e(T)},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"])):u("",!0),e(v)?(r(),_("div",ne,[l(e(Y),{onClick:t[4]||(t[4]=s=>e(f)("prev")),class:S({disable:!e(w)("prev")})},null,8,["class"]),l(e(Z),{onClick:t[5]||(t[5]=s=>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(ee,{key:0,file:e(i)[e(n)],idx:e(n),onContextMenuClick:e(g)},null,8,["file","idx","onContextMenuClick"])):u("",!0)],512)}}});const me=H(ae,[["__scopeId","data-v-d4722c8d"]]);export{me as default}; diff --git a/vue/dist/assets/SubstrSearch-a468dd06.js b/vue/dist/assets/SubstrSearch-60b0b870.js similarity index 93% rename from vue/dist/assets/SubstrSearch-a468dd06.js rename to vue/dist/assets/SubstrSearch-60b0b870.js index aed859c..808ebb1 100644 --- a/vue/dist/assets/SubstrSearch-a468dd06.js +++ b/vue/dist/assets/SubstrSearch-60b0b870.js @@ -1 +1 @@ -import{d as X,$,aw as J,bQ as Y,bP as B,o,y as k,c as r,r as e,bT as Z,m,n as d,x as w,v,E as f,s as V,p as A,t as ee,L as ne,N as E,ar as te,ai as se,U as ae,V as ie,Q as le,R as oe,X as re}from"./index-77d97794.js";import{h as de,i as ue,L as ce,R as pe,j as me,S as ve}from"./fullScreenContextMenu-4736d6b8.js";/* empty css */import{b as U,c as fe,e as ge,u as ke}from"./db-7af76374.js";import{u as we}from"./hook-b5d98c21.js";import"./shortcut-e119c30f.js";const ye={key:0,class:"search-bar"},Ie={class:"hint"},Ce={key:1,class:"preview-switch"},xe=X({__name:"SubstrSearch",setup(be){const{queue:l,images:a,onContextMenuClickU:y,stackViewEl:F,previewIdx:u,previewing:I,onPreviewVisibleChange:R,previewImgMove:C,canPreview:x,itemSize:b,gridItems:T,showGenInfo:c,imageGenInfo:h,q:N,multiSelectedIdxs:P,onFileItemClick:L,scroller:_,showMenuIdx:g,onFileDragStart:q,onFileDragEnd:G,cellWidth:K}=we(),p=$(""),t=$();J(async()=>{t.value=await U(),t.value.img_count&&t.value.expired&&S()});const S=Y(()=>l.pushAction(async()=>(await ke(),t.value=await U(),t.value)).res),M=async()=>{var s;a.value=await l.pushAction(()=>ge(p.value)).res,(s=_.value)==null||s.scrollToItem(0),a.value.length||te.info(se("fuzzy-search-noResults"))};return B("returnToIIB",async()=>{const s=await l.pushAction(fe).res;t.value.expired=s.expired}),B("searchIndexExpired",()=>t.value&&(t.value.expired=!0)),(s,n)=>{const O=ae,z=ie,Q=le,j=oe,H=ve;return o(),k("div",{class:"container",ref_key:"stackViewEl",ref:F},[t.value?(o(),k("div",ye,[r(O,{value:p.value,"onUpdate:value":n[0]||(n[0]=i=>p.value=i),placeholder:s.$t("fuzzy-search-placeholder"),disabled:!e(l).isIdle,onKeydown:Z(M,["enter"])},null,8,["value","placeholder","disabled","onKeydown"]),t.value.expired||!t.value.img_count?(o(),m(z,{key:0,onClick:e(S),loading:!e(l).isIdle,type:"primary"},{default:d(()=>[w(v(t.value.img_count===0?s.$t("generateIndexHint"):s.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(o(),m(z,{key:1,type:"primary",onClick:M,loading:!e(l).isIdle,disabled:!p.value},{default:d(()=>[w(v(s.$t("search")),1)]),_:1},8,["loading","disabled"]))])):f("",!0),r(H,{size:"large",spinning:!e(l).isIdle},{default:d(()=>[r(j,{visible:e(c),"onUpdate:visible":n[2]||(n[2]=i=>V(c)?c.value=i:null),width:"70vw","mask-closable":"",onOk:n[3]||(n[3]=i=>c.value=!1)},{cancelText:d(()=>[]),default:d(()=>[r(Q,{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:n[1]||(n[1]=i=>e(ee)(e(h)))},[A("div",Ie,v(s.$t("doubleClickToCopy")),1),w(" "+v(e(h)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(a)?(o(),m(e(de),{key:0,ref_key:"scroller",ref:_,class:"file-list",items:e(a),"item-size":e(b).first,"key-field":"fullpath","item-secondary-size":e(b).second,gridItems:e(T)},{default:d(({item:i,index:D})=>[r(ue,{idx:D,file:i,"show-menu-idx":e(g),"onUpdate:showMenuIdx":n[4]||(n[4]=W=>V(g)?g.value=W:null),onFileItemClick:e(L),"full-screen-preview-image-url":e(a)[e(u)]?e(ne)(e(a)[e(u)]):"","cell-width":e(K),selected:e(P).includes(D),onContextMenuClick:e(y),onDragstart:e(q),onDragend:e(G),onPreviewVisibleChange:e(R)},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"])):f("",!0),e(I)?(o(),k("div",Ce,[r(e(ce),{onClick:n[5]||(n[5]=i=>e(C)("prev")),class:E({disable:!e(x)("prev")})},null,8,["class"]),r(e(pe),{onClick:n[6]||(n[6]=i=>e(C)("next")),class:E({disable:!e(x)("next")})},null,8,["class"])])):f("",!0)]),_:1},8,["spinning"]),e(I)&&e(a)&&e(a)[e(u)]?(o(),m(me,{key:1,file:e(a)[e(u)],idx:e(u),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):f("",!0)],512)}}});const $e=re(xe,[["__scopeId","data-v-01615fdf"]]);export{$e as default}; +import{d as X,$,aw as J,bQ as Y,bP as B,o,y as k,c as r,r as e,bT as Z,m,n as d,x as w,v,E as f,s as V,p as A,t as ee,L as ne,N as E,ar as te,ai as se,U as ae,V as ie,Q as le,R as oe,X as re}from"./index-d9e8fbed.js";import{h as de,i as ue,L as ce,R as pe,j as me,S as ve}from"./fullScreenContextMenu-caca4231.js";/* empty css */import{b as U,c as fe,e as ge,u as ke}from"./db-ea72b770.js";import{u as we}from"./hook-900c55c9.js";import"./shortcut-9b4bff3d.js";const ye={key:0,class:"search-bar"},Ie={class:"hint"},Ce={key:1,class:"preview-switch"},xe=X({__name:"SubstrSearch",setup(be){const{queue:l,images:a,onContextMenuClickU:y,stackViewEl:F,previewIdx:u,previewing:I,onPreviewVisibleChange:R,previewImgMove:C,canPreview:x,itemSize:b,gridItems:T,showGenInfo:c,imageGenInfo:h,q:N,multiSelectedIdxs:P,onFileItemClick:L,scroller:_,showMenuIdx:g,onFileDragStart:q,onFileDragEnd:G,cellWidth:K}=we(),p=$(""),t=$();J(async()=>{t.value=await U(),t.value.img_count&&t.value.expired&&S()});const S=Y(()=>l.pushAction(async()=>(await ke(),t.value=await U(),t.value)).res),M=async()=>{var s;a.value=await l.pushAction(()=>ge(p.value)).res,(s=_.value)==null||s.scrollToItem(0),a.value.length||te.info(se("fuzzy-search-noResults"))};return B("returnToIIB",async()=>{const s=await l.pushAction(fe).res;t.value.expired=s.expired}),B("searchIndexExpired",()=>t.value&&(t.value.expired=!0)),(s,n)=>{const O=ae,z=ie,Q=le,j=oe,H=ve;return o(),k("div",{class:"container",ref_key:"stackViewEl",ref:F},[t.value?(o(),k("div",ye,[r(O,{value:p.value,"onUpdate:value":n[0]||(n[0]=i=>p.value=i),placeholder:s.$t("fuzzy-search-placeholder"),disabled:!e(l).isIdle,onKeydown:Z(M,["enter"])},null,8,["value","placeholder","disabled","onKeydown"]),t.value.expired||!t.value.img_count?(o(),m(z,{key:0,onClick:e(S),loading:!e(l).isIdle,type:"primary"},{default:d(()=>[w(v(t.value.img_count===0?s.$t("generateIndexHint"):s.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(o(),m(z,{key:1,type:"primary",onClick:M,loading:!e(l).isIdle,disabled:!p.value},{default:d(()=>[w(v(s.$t("search")),1)]),_:1},8,["loading","disabled"]))])):f("",!0),r(H,{size:"large",spinning:!e(l).isIdle},{default:d(()=>[r(j,{visible:e(c),"onUpdate:visible":n[2]||(n[2]=i=>V(c)?c.value=i:null),width:"70vw","mask-closable":"",onOk:n[3]||(n[3]=i=>c.value=!1)},{cancelText:d(()=>[]),default:d(()=>[r(Q,{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:n[1]||(n[1]=i=>e(ee)(e(h)))},[A("div",Ie,v(s.$t("doubleClickToCopy")),1),w(" "+v(e(h)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),e(a)?(o(),m(e(de),{key:0,ref_key:"scroller",ref:_,class:"file-list",items:e(a),"item-size":e(b).first,"key-field":"fullpath","item-secondary-size":e(b).second,gridItems:e(T)},{default:d(({item:i,index:D})=>[r(ue,{idx:D,file:i,"show-menu-idx":e(g),"onUpdate:showMenuIdx":n[4]||(n[4]=W=>V(g)?g.value=W:null),onFileItemClick:e(L),"full-screen-preview-image-url":e(a)[e(u)]?e(ne)(e(a)[e(u)]):"","cell-width":e(K),selected:e(P).includes(D),onContextMenuClick:e(y),onDragstart:e(q),onDragend:e(G),onPreviewVisibleChange:e(R)},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"])):f("",!0),e(I)?(o(),k("div",Ce,[r(e(ce),{onClick:n[5]||(n[5]=i=>e(C)("prev")),class:E({disable:!e(x)("prev")})},null,8,["class"]),r(e(pe),{onClick:n[6]||(n[6]=i=>e(C)("next")),class:E({disable:!e(x)("next")})},null,8,["class"])])):f("",!0)]),_:1},8,["spinning"]),e(I)&&e(a)&&e(a)[e(u)]?(o(),m(me,{key:1,file:e(a)[e(u)],idx:e(u),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):f("",!0)],512)}}});const $e=re(xe,[["__scopeId","data-v-01615fdf"]]);export{$e as default}; diff --git a/vue/dist/assets/TagSearch-40aa2de4.js b/vue/dist/assets/TagSearch-649f4f14.js similarity index 52% rename from vue/dist/assets/TagSearch-40aa2de4.js rename to vue/dist/assets/TagSearch-649f4f14.js index e9a546e..e255140 100644 --- a/vue/dist/assets/TagSearch-40aa2de4.js +++ b/vue/dist/assets/TagSearch-649f4f14.js @@ -1 +1 @@ -import{P as D,Z as be,d as ae,bq as ge,aY as _e,$ 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-77d97794.js";/* empty css *//* empty css */import{b as ve,c as Ze,d as ea,r as aa,u as ta}from"./db-7af76374.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(be("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:_e("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,b=y?y(r):v(Pe,{rotate:r.isActive?90:void 0},null);return v("div",null,[$e(Array.isArray(y)?b[0]:b)?se(b,{class:"".concat(g.value,"-arrow")},!1):b])},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),b=y>-1;b?u.splice(y,1):u.push(r)}T(u)},j=function(r,u){var y,b,R;if(!ke(r)){var a=o.value,i=e.accordion,_=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?(b=r.children)===null||b===void 0||(R=b.header)===null||R===void 0?void 0:R.call(b):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:_,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,b=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:b},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,b=e.accordion,R=e.forceRender,a=e.openAnimation,i=e.expandIcon,_=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 _=="function"&&(m=_(e));var L=Ee(v(la,{prefixCls:A,isActive:r,forceRender:R,role:b?"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:b?"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","pos","size","Postprocess upscaler","Postprocess upscale by","Sampler"].reduce((a,i,_)=>(a[i]=_,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,_,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")):((_=n.value)==null||_.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 _,k,O,I;await aa({tag_id:a});const i=((_=n.value)==null?void 0:_.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())),b=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 _=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(_,{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(_,{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=>b(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-f502b717"]]);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-d9e8fbed.js";/* empty css *//* empty css */import{b as ve,c as Ze,d as ea,r as aa,u as ta}from"./db-ea72b770.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/TagSearch-fd85281c.css b/vue/dist/assets/TagSearch-ffd782da.css similarity index 79% rename from vue/dist/assets/TagSearch-fd85281c.css rename to vue/dist/assets/TagSearch-ffd782da.css index c46e9a4..004c8dd 100644 --- a/vue/dist/assets/TagSearch-fd85281c.css +++ b/vue/dist/assets/TagSearch-ffd782da.css @@ -1 +1 @@ -.ant-collapse{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";background-color:#fafafa;border:1px solid #d9d9d9;border-bottom:0;border-radius:2px}.ant-collapse>.ant-collapse-item{border-bottom:1px solid #d9d9d9}.ant-collapse>.ant-collapse-item:last-child,.ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{border-radius:0 0 2px 2px}.ant-collapse>.ant-collapse-item>.ant-collapse-header{position:relative;display:flex;flex-wrap:nowrap;align-items:flex-start;padding:12px 16px;color:#000000d9;line-height:1.5715;cursor:pointer;transition:all .3s,visibility 0s}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{display:inline-block;margin-right:12px;font-size:12px;vertical-align:-1px}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg{transition:transform .24s}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra{margin-left:auto}.ant-collapse>.ant-collapse-item>.ant-collapse-header:focus{outline:none}.ant-collapse>.ant-collapse-item .ant-collapse-header-collapsible-only{cursor:default}.ant-collapse>.ant-collapse-item .ant-collapse-header-collapsible-only .ant-collapse-header-text{cursor:pointer}.ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding-left:12px}.ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header{position:relative;padding:12px 40px 12px 16px}.ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{position:absolute;top:50%;right:16px;left:auto;margin:0;transform:translateY(-50%)}.ant-collapse-content{color:#000000d9;background-color:#fff;border-top:1px solid #d9d9d9}.ant-collapse-content>.ant-collapse-content-box{padding:16px}.ant-collapse-content-hidden{display:none}.ant-collapse-item:last-child>.ant-collapse-content{border-radius:0 0 2px 2px}.ant-collapse-borderless{background-color:#fafafa;border:0}.ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #d9d9d9}.ant-collapse-borderless>.ant-collapse-item:last-child,.ant-collapse-borderless>.ant-collapse-item:last-child .ant-collapse-header{border-radius:0}.ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content{background-color:transparent;border-top:0}.ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:4px}.ant-collapse-ghost{background-color:transparent;border:0}.ant-collapse-ghost>.ant-collapse-item{border-bottom:0}.ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content{background-color:transparent;border-top:0}.ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:12px;padding-bottom:12px}.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header,.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header>.arrow{color:#00000040;cursor:not-allowed}.ant-collapse-rtl{direction:rtl}.ant-collapse-rtl .ant-collapse>.ant-collapse-item>.ant-collapse-header{padding:12px 40px 12px 16px}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{margin-right:0;margin-left:12px}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg{transform:rotate(180deg)}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra{margin-right:auto;margin-left:0}.ant-collapse-rtl.ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding-right:12px;padding-left:0}[data-v-f502b717] .ant-collapse>.ant-collapse-item>.ant-collapse-header{padding:0}.container[data-v-f502b717]{height:var(--pane-max-height);overflow:auto;display:flex;flex-direction:column;align-items:stretch}.container .generate-idx-hint[data-v-f502b717]{margin:64px;padding:64px;font-size:2em;text-align:center;background-color:var(--zp-secondary-background);white-space:pre-line;line-height:2.5em;border-radius:16px}.container .remove[data-v-f502b717]{padding:4px;position:cursor;border-radius:2px}.container .remove[data-v-f502b717]:hover{background-color:var(--zp-secondary-background)}.container .select[data-v-f502b717]{padding:8px}.container .search-bar[data-v-f502b717]{padding:8px;display:flex}.container .search-bar .form-name[data-v-f502b717]{flex-shrink:0;padding:4px 8px;width:128px}.container .list-container[data-v-f502b717]{background-color:var(--zp-secondary-background);overflow:scroll}.container .cat-name[data-v-f502b717]{user-select:none;position:sticky;top:0;padding:4px 16px;background:var(--zp-primary-background);margin:4px;transition:all .3s ease;border-left:4px solid var(--primary-color);cursor:pointer}.container .cat-name[data-v-f502b717]:hover{border-radius:4px;background-color:var(--zp-secondary-background)}.container .cat-name .arrow[data-v-f502b717]{color:var(--primary-color);transition:all .3s ease;margin-right:16px}.container .cat-name .arrow.down[data-v-f502b717]{transform:rotate(90deg)}.container .tag-list[data-v-f502b717]{list-style:none;margin:16px;border-radius:16px;background:var(--zp-primary-background);padding:8px}.container .tag-list .tag[data-v-f502b717]{border:2px solid var(--zp-secondary);color:var(--zp-primary);border-radius:999px;padding:4px 16px;margin:4px;display:inline-block;cursor:pointer;max-width:256px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container .tag-list .tag.selected[data-v-f502b717]{color:var(--primary-color);border:2px solid var(--primary-color)} +.ant-collapse{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";background-color:#fafafa;border:1px solid #d9d9d9;border-bottom:0;border-radius:2px}.ant-collapse>.ant-collapse-item{border-bottom:1px solid #d9d9d9}.ant-collapse>.ant-collapse-item:last-child,.ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{border-radius:0 0 2px 2px}.ant-collapse>.ant-collapse-item>.ant-collapse-header{position:relative;display:flex;flex-wrap:nowrap;align-items:flex-start;padding:12px 16px;color:#000000d9;line-height:1.5715;cursor:pointer;transition:all .3s,visibility 0s}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{display:inline-block;margin-right:12px;font-size:12px;vertical-align:-1px}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg{transition:transform .24s}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra{margin-left:auto}.ant-collapse>.ant-collapse-item>.ant-collapse-header:focus{outline:none}.ant-collapse>.ant-collapse-item .ant-collapse-header-collapsible-only{cursor:default}.ant-collapse>.ant-collapse-item .ant-collapse-header-collapsible-only .ant-collapse-header-text{cursor:pointer}.ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding-left:12px}.ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header{position:relative;padding:12px 40px 12px 16px}.ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{position:absolute;top:50%;right:16px;left:auto;margin:0;transform:translateY(-50%)}.ant-collapse-content{color:#000000d9;background-color:#fff;border-top:1px solid #d9d9d9}.ant-collapse-content>.ant-collapse-content-box{padding:16px}.ant-collapse-content-hidden{display:none}.ant-collapse-item:last-child>.ant-collapse-content{border-radius:0 0 2px 2px}.ant-collapse-borderless{background-color:#fafafa;border:0}.ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #d9d9d9}.ant-collapse-borderless>.ant-collapse-item:last-child,.ant-collapse-borderless>.ant-collapse-item:last-child .ant-collapse-header{border-radius:0}.ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content{background-color:transparent;border-top:0}.ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:4px}.ant-collapse-ghost{background-color:transparent;border:0}.ant-collapse-ghost>.ant-collapse-item{border-bottom:0}.ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content{background-color:transparent;border-top:0}.ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:12px;padding-bottom:12px}.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header,.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header>.arrow{color:#00000040;cursor:not-allowed}.ant-collapse-rtl{direction:rtl}.ant-collapse-rtl .ant-collapse>.ant-collapse-item>.ant-collapse-header{padding:12px 40px 12px 16px}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{margin-right:0;margin-left:12px}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg{transform:rotate(180deg)}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra{margin-right:auto;margin-left:0}.ant-collapse-rtl.ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding-right:12px;padding-left:0}[data-v-d3d0aa40] .ant-collapse>.ant-collapse-item>.ant-collapse-header{padding:0}.container[data-v-d3d0aa40]{height:var(--pane-max-height);overflow:auto;display:flex;flex-direction:column;align-items:stretch}.container .generate-idx-hint[data-v-d3d0aa40]{margin:64px;padding:64px;font-size:2em;text-align:center;background-color:var(--zp-secondary-background);white-space:pre-line;line-height:2.5em;border-radius:16px}.container .remove[data-v-d3d0aa40]{padding:4px;position:cursor;border-radius:2px}.container .remove[data-v-d3d0aa40]:hover{background-color:var(--zp-secondary-background)}.container .select[data-v-d3d0aa40]{padding:8px}.container .search-bar[data-v-d3d0aa40]{padding:8px;display:flex}.container .search-bar .form-name[data-v-d3d0aa40]{flex-shrink:0;padding:4px 8px;width:128px}.container .list-container[data-v-d3d0aa40]{background-color:var(--zp-secondary-background);overflow:scroll}.container .cat-name[data-v-d3d0aa40]{user-select:none;position:sticky;top:0;padding:4px 16px;background:var(--zp-primary-background);margin:4px;transition:all .3s ease;border-left:4px solid var(--primary-color);cursor:pointer}.container .cat-name[data-v-d3d0aa40]:hover{border-radius:4px;background-color:var(--zp-secondary-background)}.container .cat-name .arrow[data-v-d3d0aa40]{color:var(--primary-color);transition:all .3s ease;margin-right:16px}.container .cat-name .arrow.down[data-v-d3d0aa40]{transform:rotate(90deg)}.container .tag-list[data-v-d3d0aa40]{list-style:none;margin:16px;border-radius:16px;background:var(--zp-primary-background);padding:8px}.container .tag-list .tag[data-v-d3d0aa40]{border:2px solid var(--zp-secondary);color:var(--zp-primary);border-radius:999px;padding:4px 16px;margin:4px;display:inline-block;cursor:pointer;max-width:256px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container .tag-list .tag.selected[data-v-d3d0aa40]{color:var(--primary-color);border:2px solid var(--primary-color)} diff --git a/vue/dist/assets/db-7af76374.js b/vue/dist/assets/db-ea72b770.js similarity index 92% rename from vue/dist/assets/db-7af76374.js rename to vue/dist/assets/db-ea72b770.js index aaa6c2b..50c9b4f 100644 --- a/vue/dist/assets/db-7af76374.js +++ b/vue/dist/assets/db-ea72b770.js @@ -1 +1 @@ -import{c4 as t}from"./index-77d97794.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/img_selected_custom_tag",{params:{path:a}})).data,m=async a=>(await t.value.get("/db/search_by_substr",{params:{substr:a}})).data,e="/db/scanned_paths",_=async a=>{await t.value.post(e,{path:a})},b=async a=>{await t.value.delete(e,{data:{path:a}})};export{_ as a,o as b,c,g as d,m as e,b as f,d as g,i as h,p as r,u as t,r as u}; +import{c4 as t}from"./index-d9e8fbed.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/img_selected_custom_tag",{params:{path:a}})).data,m=async a=>(await t.value.get("/db/search_by_substr",{params:{substr:a}})).data,e="/db/scanned_paths",_=async a=>{await t.value.post(e,{path:a})},b=async a=>{await t.value.delete(e,{data:{path:a}})};export{_ as a,o as b,c,g as d,m as e,b as f,d as g,i as h,p as r,u as t,r as u}; diff --git a/vue/dist/assets/emptyStartup-259a7467.js b/vue/dist/assets/emptyStartup-a7ba0694.js similarity index 98% rename from vue/dist/assets/emptyStartup-259a7467.js rename to vue/dist/assets/emptyStartup-a7ba0694.js index 95bfa21..390d7fa 100644 --- a/vue/dist/assets/emptyStartup-259a7467.js +++ b/vue/dist/assets/emptyStartup-a7ba0694.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-77d97794.js";import{a as Qe}from"./db-7af76374.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-d9e8fbed.js";import{a as Qe}from"./db-ea72b770.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-d9fd0485.css b/vue/dist/assets/fullScreenContextMenu-28088cd1.css similarity index 97% rename from vue/dist/assets/fullScreenContextMenu-d9fd0485.css rename to vue/dist/assets/fullScreenContextMenu-28088cd1.css index 701b9b6..64a172c 100644 --- a/vue/dist/assets/fullScreenContextMenu-d9fd0485.css +++ b/vue/dist/assets/fullScreenContextMenu-28088cd1.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}.center[data-v-9824eb37]{display:flex;justify-content:center;align-items:center}.file[data-v-9824eb37]{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-9824eb37]{opacity:1}.file .more[data-v-9824eb37]{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-9824eb37]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-9824eb37] .icon{font-size:8em}.file.grid[data-v-9824eb37] .profile{padding:0 4px}.file.grid[data-v-9824eb37] .profile .name{font-weight:500;padding:0}.file.grid[data-v-9824eb37] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-9824eb37] .ant-image,.file.grid[data-v-9824eb37] .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-9824eb37] img,.file.grid[data-v-9824eb37] .preview-icon-wrap>[role=img]{height:var(--0ff688b3);width:var(--0ff688b3);object-fit:contain}.file.clickable[data-v-9824eb37]{cursor:pointer}.file.selected[data-v-9824eb37]{outline:#0084ff solid 2px}.file .name[data-v-9824eb37]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-9824eb37]{display:flex;flex-direction:column;align-items:flex-end}.full-screen-menu[data-v-d1522950]{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-d1522950]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-d1522950]{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-d1522950]{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-d1522950]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px}.full-screen-menu .gen-info .tags .value[data-v-d1522950]{padding:4px}.full-screen-menu.unset-size[data-v-d1522950]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-d1522950]{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-d1522950]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-d1522950]{display:flex;align-items:center;user-select:none}.full-screen-menu .action-bar .icon[data-v-d1522950]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-d1522950]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-d1522950]{flex-wrap:wrap}.full-screen-menu .action-bar>*[data-v-d1522950]: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}.center[data-v-9824eb37]{display:flex;justify-content:center;align-items:center}.file[data-v-9824eb37]{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-9824eb37]{opacity:1}.file .more[data-v-9824eb37]{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-9824eb37]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-9824eb37] .icon{font-size:8em}.file.grid[data-v-9824eb37] .profile{padding:0 4px}.file.grid[data-v-9824eb37] .profile .name{font-weight:500;padding:0}.file.grid[data-v-9824eb37] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-9824eb37] .ant-image,.file.grid[data-v-9824eb37] .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-9824eb37] img,.file.grid[data-v-9824eb37] .preview-icon-wrap>[role=img]{height:var(--0ff688b3);width:var(--0ff688b3);object-fit:contain}.file.clickable[data-v-9824eb37]{cursor:pointer}.file.selected[data-v-9824eb37]{outline:#0084ff solid 2px}.file .name[data-v-9824eb37]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-9824eb37]{display:flex;flex-direction:column;align-items:flex-end}.full-screen-menu[data-v-38c5e3f9]{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-38c5e3f9]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-38c5e3f9]{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-38c5e3f9]{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-38c5e3f9]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px}.full-screen-menu .gen-info .tags .value[data-v-38c5e3f9]{padding:4px}.full-screen-menu.unset-size[data-v-38c5e3f9]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-38c5e3f9]{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-38c5e3f9]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-38c5e3f9]{display:flex;align-items:center;user-select:none}.full-screen-menu .action-bar .icon[data-v-38c5e3f9]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-38c5e3f9]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-38c5e3f9]{flex-wrap:wrap}.full-screen-menu .action-bar>*[data-v-38c5e3f9]:not(:last-child){margin-right:8px} diff --git a/vue/dist/assets/fullScreenContextMenu-4736d6b8.js b/vue/dist/assets/fullScreenContextMenu-caca4231.js similarity index 99% rename from vue/dist/assets/fullScreenContextMenu-4736d6b8.js rename to vue/dist/assets/fullScreenContextMenu-caca4231.js index 861c46e..10a847a 100644 --- a/vue/dist/assets/fullScreenContextMenu-4736d6b8.js +++ b/vue/dist/assets/fullScreenContextMenu-caca4231.js @@ -1,4 +1,4 @@ -import{P as Pe,bU as fn,a as te,d as pe,bq as Ze,u as jt,c as p,bV as et,_ as Vt,V as le,a0 as Ue,aj as J,bL as gt,a3 as yt,bo as vn,h as ee,bW as pn,b as hn,ay as mn,bX as gn,a2 as bt,bK as yn,aI as bn,bY as wn,ax as tt,aC as fe,bZ as Sn,b_ as He,e as wt,bz as An,ag as ne,b$ as En,aR as kn,c0 as On,c1 as Cn,aM as nt,am as We,bn as In,c2 as _n,c3 as Pn,c4 as be,c5 as xn,c6 as $n,$ as Q,R as ce,ai as j,U as Ln,c7 as Me,x as N,k as Ne,ah as Mn,c8 as Ut,ar as Z,c9 as it,l as ge,aw as Ht,ap as Be,ca as Nn,cb as St,an as Wt,bQ as At,bP as zn,cc as ke,cd as Tn,aD as Bn,bO as ze,ce as Fn,cf as Dn,cg as X,ch as me,t as xe,as as Et,ci as kt,cj as Qn,L as ie,J as jn,ck as Je,al as we,cl as Vn,cm as Un,cn as Hn,co as Wn,at as Jn,au as Rn,o as M,m as W,cp as Yn,cq as qn,cr as Kn,cs as Gn,ct as Xn,a5 as Zn,y as V,cu as Se,E as q,n as _,z as re,A as $e,cv as Ot,bG as ei,cw as ti,B as ni,N as ye,v as L,r as z,W as Jt,cx as ii,cy as Rt,M as Yt,cz as ri,cA as ai,p as Y,cB as li,X as qt,cC as si,q as oi}from"./index-77d97794.js";import{f as ui,a as ci,t as di,h as Kt}from"./db-7af76374.js";import{t as Fe,l as de,g as fi}from"./shortcut-e119c30f.js";var Gt=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}}},De=fn(),vi=function(){return te(te({},Gt()),{},{type:De.type,size:String,htmlType:De.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:Pe.any,title:String,loading:De.loading,onClick:{type:Function}})},pi=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],hi=le.Group;const Le=pe({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ze(vi(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,d=n.emit,f=function(w){d("update:visible",w),d("visibleChange",w)},h=jt("dropdown-button",t),c=h.prefixCls,y=h.direction,k=h.getPopupContainer;return function(){var C,w,m=te(te({},t),r),s=m.type,l=s===void 0?"default":s,a=m.disabled,v=m.loading,g=m.htmlType,u=m.class,o=u===void 0?"":u,b=m.overlay,E=b===void 0?(C=i.overlay)===null||C===void 0?void 0:C.call(i):b,S=m.trigger,P=m.align,T=m.visible;m.onVisibleChange;var I=m.placement,B=I===void 0?y.value==="rtl"?"bottomLeft":"bottomRight":I,O=m.href,x=m.title,U=m.icon,A=U===void 0?((w=i.icon)===null||w===void 0?void 0:w.call(i))||p(et,null,null):U,$=m.mouseEnterDelay,F=m.mouseLeaveDelay,K=m.overlayClassName,H=m.overlayStyle,G=m.destroyPopupOnHide,R=m.onClick;m["onUpdate:visible"];var oe=Vt(m,pi),ue={align:P,disabled:a,trigger:a?[]:S,placement:B,getPopupContainer:k.value,onVisibleChange:f,mouseEnterDelay:$,mouseLeaveDelay:F,visible:T,overlayClassName:K,overlayStyle:H,destroyPopupOnHide:G},ht=p(le,{type:l,disabled:a,loading:v,onClick:R,htmlType:g,href:O,title:x},{default:i.default}),mt=p(le,{type:l,icon:A},null);return p(hi,te(te({},oe),{},{class:Ue(c.value,o)}),{default:function(){return[i.leftButton?i.leftButton({button:ht}):ht,p(se,ue,{default:function(){return[i.rightButton?i.rightButton({button:mt}):mt]},overlay:function(){return E}})]}})}}});var Xt=pe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Ze(Gt(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,d=n.emit,f=jt("dropdown",t),h=f.prefixCls,c=f.rootPrefixCls,y=f.direction,k=f.getPopupContainer,C=J(function(){var l=t.placement,a=l===void 0?"":l,v=t.transitionName;return v!==void 0?v:a.indexOf("top")>=0?"".concat(c.value,"-slide-down"):"".concat(c.value,"-slide-up")}),w=function(){var a,v,g,u=t.overlay||((a=i.overlay)===null||a===void 0?void 0:a.call(i)),o=Array.isArray(u)?u[0]:u;if(!o)return null;var b=o.props||{};gt(!b.mode||b.mode==="vertical","Dropdown",'mode="'.concat(b.mode,`" is not supported for Dropdown's Menu.`));var E=b.selectable,S=E===void 0?!1:E,P=b.expandIcon,T=P===void 0?(v=o.children)===null||v===void 0||(g=v.expandIcon)===null||g===void 0?void 0:g.call(v):P,I=typeof T<"u"&&bt(T)?T:p("span",{class:"".concat(h.value,"-menu-submenu-arrow")},[p(yn,{class:"".concat(h.value,"-menu-submenu-arrow-icon")},null)]),B=bt(o)?yt(o,{mode:"vertical",selectable:S,expandIcon:function(){return I}}):o;return B},m=J(function(){var l=t.placement;if(!l)return y.value==="rtl"?"bottomRight":"bottomLeft";if(l.includes("Center")){var a=l.slice(0,l.indexOf("Center"));return gt(!l.includes("Center"),"Dropdown","You are using '".concat(l,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return l}),s=function(a){d("update:visible",a),d("visibleChange",a)};return function(){var l,a,v=t.arrow,g=t.trigger,u=t.disabled,o=t.overlayClassName,b=(l=i.default)===null||l===void 0?void 0:l.call(i)[0],E=yt(b,vn({class:Ue(b==null||(a=b.props)===null||a===void 0?void 0:a.class,ee({},"".concat(h.value,"-rtl"),y.value==="rtl"),"".concat(h.value,"-trigger"))},u?{disabled:u}:{})),S=Ue(o,ee({},"".concat(h.value,"-rtl"),y.value==="rtl")),P=u?[]:g,T;P&&P.indexOf("contextmenu")!==-1&&(T=!0);var I=pn({arrowPointAtCenter:hn(v)==="object"&&v.pointAtCenter,autoAdjustOverflow:!0}),B=mn(te(te(te({},t),r),{},{builtinPlacements:I,overlayClassName:S,arrow:v,alignPoint:T,prefixCls:h.value,getPopupContainer:k.value,transitionName:C.value,trigger:P,onVisibleChange:s,placement:m.value}),["overlay","onUpdate:visible"]);return p(gn,B,{default:function(){return[E]},overlay:w})}}});Xt.Button=Le;const se=Xt;se.Button=Le;se.install=function(e){return e.component(se.name,se),e.component(Le.name,Le),e};var mi=["class","style"],gi=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Pe.any,delay:Number,indicator:Pe.any}},Oe=null;function yi(e,t){return!!e&&!!t&&!isNaN(Number(t))}function va(e){var t=e.indicator;Oe=typeof t=="function"?t:function(){return p(t,null,null)}}const pa=pe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ze(gi(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:bn("configProvider",wn)}},data:function(){var t=this.spinning,n=this.delay,i=yi(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;tt(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=fe(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=Sn(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),He(i)?wt(i,{class:n}):Oe&&He(Oe())?wt(Oe(),{class:n}):p("span",{class:"".concat(n," ").concat(t,"-dot-spin")},[p("i",{class:"".concat(t,"-dot-item")},null),p("i",{class:"".concat(t,"-dot-item")},null),p("i",{class:"".concat(t,"-dot-item")},null),p("i",{class:"".concat(t,"-dot-item")},null)]))}},render:function(){var t,n,i,r=this.$props,d=r.size,f=r.prefixCls,h=r.tip,c=h===void 0?(t=(n=this.$slots).tip)===null||t===void 0?void 0:t.call(n):h,y=r.wrapperClassName,k=this.$attrs,C=k.class,w=k.style,m=Vt(k,mi),s=this.configProvider,l=s.getPrefixCls,a=s.direction,v=l("spin",f),g=this.sSpinning,u=(i={},ee(i,v,!0),ee(i,"".concat(v,"-sm"),d==="small"),ee(i,"".concat(v,"-lg"),d==="large"),ee(i,"".concat(v,"-spinning"),g),ee(i,"".concat(v,"-show-text"),!!c),ee(i,"".concat(v,"-rtl"),a==="rtl"),ee(i,C,!!C),i),o=p("div",te(te({},m),{},{style:w,class:u}),[this.renderIndicator(v),c?p("div",{class:"".concat(v,"-text")},[c]):null]),b=An(this);if(b&&b.length){var E,S=(E={},ee(E,"".concat(v,"-container"),!0),ee(E,"".concat(v,"-blur"),g),E);return p("div",{class:["".concat(v,"-nested-loading"),y]},[g&&p("div",{key:"loading"},[o]),p("div",{class:S,key:"container"},[b])])}return o}});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 wi=bi;function Ct(e){for(var t=1;t{document.addEventListener(...e),nt(()=>document.removeEventListener(...e))},Ti="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==",Ae=new WeakMap;function Bi(e,t){return{useHookShareState:i=>{const r=Pn();We(r),Ae.has(r)||(Ae.set(r,In(e(r,i??(t==null?void 0:t())))),nt(()=>{Ae.delete(r)}));const d=Ae.get(r);return We(d),{state:d,toRefs(){return _n(d)}}}}}var Fi={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 Di=Fi;function Pt(e){for(var t=1;t(await be.value.get("/files",{params:{folder_path:e}})).data,vr=async e=>(await be.value.post("/delete_files",{file_paths:e})).data,nn=async(e,t,n)=>(await be.value.post("/move_files",{file_paths:e,dest:t,create_dest_folder:n})).data,pr=async(e,t,n)=>(await be.value.post("/copy_files",{file_paths:e,dest:t,create_dest_folder:n})).data,hr=async e=>{await be.value.post("/mkdirs",{dest_folder:e})};var rn={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress +import{P as Pe,bU as fn,a as te,d as pe,bq as Ze,u as jt,c as p,bV as et,_ as Vt,V as le,a0 as Ue,aj as J,bL as gt,a3 as yt,bo as vn,h as ee,bW as pn,b as hn,ay as mn,bX as gn,a2 as bt,bK as yn,aI as bn,bY as wn,ax as tt,aC as fe,bZ as Sn,b_ as He,e as wt,bz as An,ag as ne,b$ as En,aR as kn,c0 as On,c1 as Cn,aM as nt,am as We,bn as In,c2 as _n,c3 as Pn,c4 as be,c5 as xn,c6 as $n,$ as Q,R as ce,ai as j,U as Ln,c7 as Me,x as N,k as Ne,ah as Mn,c8 as Ut,ar as Z,c9 as it,l as ge,aw as Ht,ap as Be,ca as Nn,cb as St,an as Wt,bQ as At,bP as zn,cc as ke,cd as Tn,aD as Bn,bO as ze,ce as Fn,cf as Dn,cg as X,ch as me,t as xe,as as Et,ci as kt,cj as Qn,L as ie,J as jn,ck as Je,al as we,cl as Vn,cm as Un,cn as Hn,co as Wn,at as Jn,au as Rn,o as M,m as W,cp as Yn,cq as qn,cr as Kn,cs as Gn,ct as Xn,a5 as Zn,y as V,cu as Se,E as q,n as _,z as re,A as $e,cv as Ot,bG as ei,cw as ti,B as ni,N as ye,v as L,r as z,W as Jt,cx as ii,cy as Rt,M as Yt,cz as ri,cA as ai,p as Y,cB as li,X as qt,cC as si,q as oi}from"./index-d9e8fbed.js";import{f as ui,a as ci,t as di,h as Kt}from"./db-ea72b770.js";import{t as Fe,l as de,g as fi}from"./shortcut-9b4bff3d.js";var Gt=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}}},De=fn(),vi=function(){return te(te({},Gt()),{},{type:De.type,size:String,htmlType:De.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:Pe.any,title:String,loading:De.loading,onClick:{type:Function}})},pi=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],hi=le.Group;const Le=pe({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ze(vi(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,d=n.emit,f=function(w){d("update:visible",w),d("visibleChange",w)},h=jt("dropdown-button",t),c=h.prefixCls,y=h.direction,k=h.getPopupContainer;return function(){var C,w,m=te(te({},t),r),s=m.type,l=s===void 0?"default":s,a=m.disabled,v=m.loading,g=m.htmlType,u=m.class,o=u===void 0?"":u,b=m.overlay,E=b===void 0?(C=i.overlay)===null||C===void 0?void 0:C.call(i):b,S=m.trigger,P=m.align,T=m.visible;m.onVisibleChange;var I=m.placement,B=I===void 0?y.value==="rtl"?"bottomLeft":"bottomRight":I,O=m.href,x=m.title,U=m.icon,A=U===void 0?((w=i.icon)===null||w===void 0?void 0:w.call(i))||p(et,null,null):U,$=m.mouseEnterDelay,F=m.mouseLeaveDelay,K=m.overlayClassName,H=m.overlayStyle,G=m.destroyPopupOnHide,R=m.onClick;m["onUpdate:visible"];var oe=Vt(m,pi),ue={align:P,disabled:a,trigger:a?[]:S,placement:B,getPopupContainer:k.value,onVisibleChange:f,mouseEnterDelay:$,mouseLeaveDelay:F,visible:T,overlayClassName:K,overlayStyle:H,destroyPopupOnHide:G},ht=p(le,{type:l,disabled:a,loading:v,onClick:R,htmlType:g,href:O,title:x},{default:i.default}),mt=p(le,{type:l,icon:A},null);return p(hi,te(te({},oe),{},{class:Ue(c.value,o)}),{default:function(){return[i.leftButton?i.leftButton({button:ht}):ht,p(se,ue,{default:function(){return[i.rightButton?i.rightButton({button:mt}):mt]},overlay:function(){return E}})]}})}}});var Xt=pe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Ze(Gt(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,d=n.emit,f=jt("dropdown",t),h=f.prefixCls,c=f.rootPrefixCls,y=f.direction,k=f.getPopupContainer,C=J(function(){var l=t.placement,a=l===void 0?"":l,v=t.transitionName;return v!==void 0?v:a.indexOf("top")>=0?"".concat(c.value,"-slide-down"):"".concat(c.value,"-slide-up")}),w=function(){var a,v,g,u=t.overlay||((a=i.overlay)===null||a===void 0?void 0:a.call(i)),o=Array.isArray(u)?u[0]:u;if(!o)return null;var b=o.props||{};gt(!b.mode||b.mode==="vertical","Dropdown",'mode="'.concat(b.mode,`" is not supported for Dropdown's Menu.`));var E=b.selectable,S=E===void 0?!1:E,P=b.expandIcon,T=P===void 0?(v=o.children)===null||v===void 0||(g=v.expandIcon)===null||g===void 0?void 0:g.call(v):P,I=typeof T<"u"&&bt(T)?T:p("span",{class:"".concat(h.value,"-menu-submenu-arrow")},[p(yn,{class:"".concat(h.value,"-menu-submenu-arrow-icon")},null)]),B=bt(o)?yt(o,{mode:"vertical",selectable:S,expandIcon:function(){return I}}):o;return B},m=J(function(){var l=t.placement;if(!l)return y.value==="rtl"?"bottomRight":"bottomLeft";if(l.includes("Center")){var a=l.slice(0,l.indexOf("Center"));return gt(!l.includes("Center"),"Dropdown","You are using '".concat(l,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return l}),s=function(a){d("update:visible",a),d("visibleChange",a)};return function(){var l,a,v=t.arrow,g=t.trigger,u=t.disabled,o=t.overlayClassName,b=(l=i.default)===null||l===void 0?void 0:l.call(i)[0],E=yt(b,vn({class:Ue(b==null||(a=b.props)===null||a===void 0?void 0:a.class,ee({},"".concat(h.value,"-rtl"),y.value==="rtl"),"".concat(h.value,"-trigger"))},u?{disabled:u}:{})),S=Ue(o,ee({},"".concat(h.value,"-rtl"),y.value==="rtl")),P=u?[]:g,T;P&&P.indexOf("contextmenu")!==-1&&(T=!0);var I=pn({arrowPointAtCenter:hn(v)==="object"&&v.pointAtCenter,autoAdjustOverflow:!0}),B=mn(te(te(te({},t),r),{},{builtinPlacements:I,overlayClassName:S,arrow:v,alignPoint:T,prefixCls:h.value,getPopupContainer:k.value,transitionName:C.value,trigger:P,onVisibleChange:s,placement:m.value}),["overlay","onUpdate:visible"]);return p(gn,B,{default:function(){return[E]},overlay:w})}}});Xt.Button=Le;const se=Xt;se.Button=Le;se.install=function(e){return e.component(se.name,se),e.component(Le.name,Le),e};var mi=["class","style"],gi=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Pe.any,delay:Number,indicator:Pe.any}},Oe=null;function yi(e,t){return!!e&&!!t&&!isNaN(Number(t))}function va(e){var t=e.indicator;Oe=typeof t=="function"?t:function(){return p(t,null,null)}}const pa=pe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ze(gi(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:bn("configProvider",wn)}},data:function(){var t=this.spinning,n=this.delay,i=yi(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;tt(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=fe(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=Sn(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),He(i)?wt(i,{class:n}):Oe&&He(Oe())?wt(Oe(),{class:n}):p("span",{class:"".concat(n," ").concat(t,"-dot-spin")},[p("i",{class:"".concat(t,"-dot-item")},null),p("i",{class:"".concat(t,"-dot-item")},null),p("i",{class:"".concat(t,"-dot-item")},null),p("i",{class:"".concat(t,"-dot-item")},null)]))}},render:function(){var t,n,i,r=this.$props,d=r.size,f=r.prefixCls,h=r.tip,c=h===void 0?(t=(n=this.$slots).tip)===null||t===void 0?void 0:t.call(n):h,y=r.wrapperClassName,k=this.$attrs,C=k.class,w=k.style,m=Vt(k,mi),s=this.configProvider,l=s.getPrefixCls,a=s.direction,v=l("spin",f),g=this.sSpinning,u=(i={},ee(i,v,!0),ee(i,"".concat(v,"-sm"),d==="small"),ee(i,"".concat(v,"-lg"),d==="large"),ee(i,"".concat(v,"-spinning"),g),ee(i,"".concat(v,"-show-text"),!!c),ee(i,"".concat(v,"-rtl"),a==="rtl"),ee(i,C,!!C),i),o=p("div",te(te({},m),{},{style:w,class:u}),[this.renderIndicator(v),c?p("div",{class:"".concat(v,"-text")},[c]):null]),b=An(this);if(b&&b.length){var E,S=(E={},ee(E,"".concat(v,"-container"),!0),ee(E,"".concat(v,"-blur"),g),E);return p("div",{class:["".concat(v,"-nested-loading"),y]},[g&&p("div",{key:"loading"},[o]),p("div",{class:S,key:"container"},[b])])}return o}});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 wi=bi;function Ct(e){for(var t=1;t{document.addEventListener(...e),nt(()=>document.removeEventListener(...e))},Ti="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==",Ae=new WeakMap;function Bi(e,t){return{useHookShareState:i=>{const r=Pn();We(r),Ae.has(r)||(Ae.set(r,In(e(r,i??(t==null?void 0:t())))),nt(()=>{Ae.delete(r)}));const d=Ae.get(r);return We(d),{state:d,toRefs(){return _n(d)}}}}}var Fi={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 Di=Fi;function Pt(e){for(var t=1;t(await be.value.get("/files",{params:{folder_path:e}})).data,vr=async e=>(await be.value.post("/delete_files",{file_paths:e})).data,nn=async(e,t,n)=>(await be.value.post("/move_files",{file_paths:e,dest:t,create_dest_folder:n})).data,pr=async(e,t,n)=>(await be.value.post("/copy_files",{file_paths:e,dest:t,create_dest_folder:n})).data,hr=async e=>{await be.value.post("/mkdirs",{dest_folder:e})};var rn={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(e,t){(function(n,i){e.exports=i})(xn,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(s){var l,a;for(l in s)a=s[l],a!==void 0&&s.hasOwnProperty(l)&&(i[l]=a);return this},n.status=null,n.set=function(s){var l=n.isStarted();s=r(s,i.minimum,1),n.status=s===1?null:s;var a=n.render(!l),v=a.querySelector(i.barSelector),g=i.speed,u=i.easing;return a.offsetWidth,h(function(o){i.positionUsing===""&&(i.positionUsing=n.getPositioningCSS()),c(v,f(s,g,u)),s===1?(c(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout(function(){c(a,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){n.remove(),o()},g)},g)):setTimeout(o,g)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var s=function(){setTimeout(function(){n.status&&(n.trickle(),s())},i.trickleSpeed)};return i.trickle&&s(),this},n.done=function(s){return!s&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(s){var l=n.status;return l?l>1?void 0:(typeof s!="number"&&(l>=0&&l<.2?s=.1:l>=.2&&l<.5?s=.04:l>=.5&&l<.8?s=.02:l>=.8&&l<.99?s=.005:s=0),l=r(l+s,0,.994),n.set(l)):n.start()},n.trickle=function(){return n.inc()},function(){var s=0,l=0;n.promise=function(a){return!a||a.state()==="resolved"?this:(l===0&&n.start(),s++,l++,a.always(function(){l--,l===0?(s=0,n.done()):n.set((s-l)/s)}),this)}}(),n.getElement=function(){var s=n.getParent();if(s){var l=Array.prototype.slice.call(s.querySelectorAll(".nprogress")).filter(function(a){return a.parentElement===s});if(l.length>0)return l[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(s){if(n.isRendered())return n.getElement();k(document.documentElement,"nprogress-busy");var l=document.createElement("div");l.id="nprogress",l.className="nprogress",l.innerHTML=i.template;var a=l.querySelector(i.barSelector),v=s?"-100":d(n.status||0),g=n.getParent(),u;return c(a,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),i.showSpinner||(u=l.querySelector(i.spinnerSelector),u&&m(u)),g!=document.body&&k(g,"nprogress-custom-parent"),g.appendChild(l),l},n.remove=function(){n.status=null,C(document.documentElement,"nprogress-busy"),C(n.getParent(),"nprogress-custom-parent");var s=n.getElement();s&&m(s)},n.isRendered=function(){return!!n.getElement()},n.getPositioningCSS=function(){var s=document.body.style,l="WebkitTransform"in s?"Webkit":"MozTransform"in s?"Moz":"msTransform"in s?"ms":"OTransform"in s?"O":"";return l+"Perspective"in s?"translate3d":l+"Transform"in s?"translate":"margin"};function r(s,l,a){return sa?a:s}function d(s){return(-1+s)*100}function f(s,l,a){var v;return i.positionUsing==="translate3d"?v={transform:"translate3d("+d(s)+"%,0,0)"}:i.positionUsing==="translate"?v={transform:"translate("+d(s)+"%,0)"}:v={"margin-left":d(s)+"%"},v.transition="all "+l+"ms "+a,v}var h=function(){var s=[];function l(){var a=s.shift();a&&a(l)}return function(a){s.push(a),s.length==1&&l()}}(),c=function(){var s=["Webkit","O","Moz","ms"],l={};function a(o){return o.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(b,E){return E.toUpperCase()})}function v(o){var b=document.body.style;if(o in b)return o;for(var E=s.length,S=o.charAt(0).toUpperCase()+o.slice(1),P;E--;)if(P=s[E]+S,P in b)return P;return o}function g(o){return o=a(o),l[o]||(l[o]=v(o))}function u(o,b,E){b=g(b),o.style[b]=E}return function(o,b){var E=arguments,S,P;if(E.length==2)for(S in b)P=b[S],P!==void 0&&b.hasOwnProperty(S)&&u(o,S,P);else u(o,E[1],E[2])}}();function y(s,l){var a=typeof s=="string"?s:w(s);return a.indexOf(" "+l+" ")>=0}function k(s,l){var a=w(s),v=a+l;y(a,l)||(s.className=v.substring(1))}function C(s,l){var a=w(s),v;y(s,l)&&(v=a.replace(" "+l+" "," "),s.className=v.substring(1,v.length-1))}function w(s){return(" "+(s&&s.className||"")+" ").replace(/\s+/gi," ")}function m(s){s&&s.parentNode&&s.parentNode.removeChild(s)}return n})})(rn);var mr=rn.exports;const gr=$n(mr),yr=e=>{const t=Q("");return new Promise(n=>{ce.confirm({title:j("inputFolderName"),content:()=>p(Ln,{value:t.value,"onUpdate:value":i=>t.value=i},null),async onOk(){if(!t.value)return;const i=Me(e,t.value);await hr(i),n()}})})},an=()=>p("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[N("Tips: "),j("multiSelectTips")]);function Qe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!He(e)}const je=new Map,D=Ne(),Bt=Mn(),Ee=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:Ce,useEventListen:Re}=Ut(),{useHookShareState:ae}=Bi((e,{images:t})=>{const n=Q({tabIdx:-1,paneIdx:-1}),i=J(()=>de(r.value)),r=Q([]),d=J(()=>{var l;return r.value.map(a=>a.curr).slice((l=D.conf)!=null&&l.is_win?1:0)}),f=J(()=>Me(...d.value)),h=Q(D.defaultSortingMethod),c=J(()=>{var u;if(t.value)return t.value;if(!i.value)return[];const l=((u=i.value)==null?void 0:u.files)??[],a=h.value,{walkFiles:v}=i.value,g=o=>D.onlyFoldersAndImages?o.filter(b=>b.type==="dir"||X(b.name)):o;return n.value.walkModePath?v?v.map(o=>me(g(o),a)).flat():me(g(l),a):me(g(l),a)}),y=Q([]),k=Q(-1),C=Q(!0),w=Q(!1),m=Q(!1),s=()=>D.tabList[n.value.tabIdx].panes[n.value.paneIdx];return{previewing:m,spinning:w,canLoadNext:C,multiSelectedIdxs:y,previewIdx:k,basePath:d,currLocation:f,currPage:i,stack:r,sortMethod:h,sortedFiles:c,scroller:Q(),stackViewEl:Q(),props:n,getPane:s,...Ut()}},()=>({images:Q()}));function ga(e,t){const{previewIdx:n,eventEmitter:i,canLoadNext:r,previewing:d,sortedFiles:f}=ae().toRefs(),{state:h}=ae(),c=J(()=>(t==null?void 0:t.scroller.value)??h.scroller);let y=null;const k=(s,l)=>{var a;d.value=s,y!=null&&!s&&l&&((a=c.value)==null||a.scrollToItem(y),y=null)},C=()=>{e.walkModePath&&!m("next")&&r&&(Z.info(j("loadingNextFolder")),i.value.emit("loadNextDir",!0))};ve("keydown",s=>{var l;if(d.value){let a=n.value;if(["ArrowDown","ArrowRight"].includes(s.key))for(a++;f.value[a]&&!X(f.value[a].name);)a++;else if(["ArrowUp","ArrowLeft"].includes(s.key))for(a--;f.value[a]&&!X(f.value[a].name);)a--;if(X((l=f.value[a])==null?void 0:l.name)??""){n.value=a;const v=c.value;v&&!(a>=v.$_startIndex&&a<=v.$_endIndex)&&(y=a)}C()}});const w=s=>{var a;let l=n.value;if(s==="next")for(l++;f.value[l]&&!X(f.value[l].name);)l++;else if(s==="prev")for(l--;f.value[l]&&!X(f.value[l].name);)l--;if(X((a=f.value[l])==null?void 0:a.name)??""){n.value=l;const v=c.value;v&&!(l>=v.$_startIndex&&l<=v.$_endIndex)&&(y=l)}C()},m=s=>{var a;let l=n.value;if(s==="next")for(l++;f.value[l]&&!X(f.value[l].name);)l++;else if(s==="prev")for(l--;f.value[l]&&!X(f.value[l].name);)l--;return X((a=f.value[l])==null?void 0:a.name)??""};return Re("removeFiles",async()=>{var s;d.value&&!h.sortedFiles[n.value]&&(Z.info(j("manualExitFullScreen"),5),await it(500),(s=document.querySelector(".ant-image-preview-operations-operation .anticon-close"))==null||s.click(),n.value=-1)}),{previewIdx:n,onPreviewVisibleChange:k,previewing:d,previewImgMove:w,canPreview:m}}function ya(e){const t=Q(),{scroller:n,stackViewEl:i,stack:r,currPage:d,currLocation:f,sortMethod:h,useEventListen:c,eventEmitter:y,getPane:k,multiSelectedIdxs:C,sortedFiles:w}=ae().toRefs();ge(()=>r.value.length,fe((A,$)=>{var F;A!==$&&((F=n.value)==null||F.scrollToItem(0))},300));const m=async A=>{if(await g(A),e.walkModePath){await it();const[$]=me(d.value.files,h.value).filter(F=>F.type==="dir");$&&await g($.fullpath),await y.value.emit("loadNextDir")}};Ht(async()=>{var A;if(!r.value.length){const $=await he("/");r.value.push({files:$.files,curr:"/"})}t.value=new gr,t.value.configure({parent:i.value}),e.path&&e.path!=="/"?await m(e.walkModePath??e.path):(A=D.conf)!=null&&A.home&&g(D.conf.home)}),ge(f,fe(A=>{const $=k.value();$.path=A;const F=$.path.split("/").pop(),H=(()=>{var G;if(!e.walkModePath){const R=ke(A);for(const[oe,ue]of Object.entries(D.pathAliasMap))if(R.startsWith(ue))return R.replace(ue,oe);return F}return"Walk: "+(((G=D.quickMovePaths.find(R=>R.dir===$.walkModePath))==null?void 0:G.zh)??F)})();$.name=Be("div",{style:"display:flex;align-items:center"},[Be(Wi),Be("span",{class:"line-clamp-1",style:"max-width: 256px"},H)]),$.nameFallbackStr=H,D.recent=D.recent.filter(G=>G.key!==$.key),D.recent.unshift({path:A,key:$.key}),D.recent.length>20&&(D.recent=D.recent.slice(0,20))},300));const s=()=>xe(f.value),l=async A=>{var $,F;if(A.type==="dir")try{($=t.value)==null||$.start();const{files:K}=await he(A.fullpath);r.value.push({files:K,curr:A.name})}finally{(F=t.value)==null||F.done()}},a=A=>{for(;A(We(D.conf,"global.conf load failed"),D.conf.is_win?A.toLowerCase()==$.toLowerCase():A==$),g=async A=>{var F,K;const $=r.value.slice();try{Nn(A)||(A=Me(((F=D.conf)==null?void 0:F.sd_cwd)??"/",A));const H=St(A),G=r.value.map(R=>R.curr);for(G.shift();G[0]&&H[0]&&v(G[0],H[0]);)G.shift(),H.shift();for(let R=0;Rv(ue.name,R));if(!oe)throw console.error({frags:H,frag:R,stack:Wt(r.value)}),new Error(`${R} not found`);await l(oe)}}catch(H){throw Z.error(j("moveFailedCheckPath")+(H instanceof Error?H.message:"")),console.error(A,St(A),d.value),r.value=$,H}},u=At(async()=>{var A,$,F;try{if((A=t.value)==null||A.start(),e.walkModePath)a(0),await m(e.walkModePath);else{const{files:K}=await he(r.value.length===1?"/":f.value);de(r.value).files=K}($=n.value)==null||$.scrollToItem(0),Z.success(j("refreshCompleted"))}finally{(F=t.value)==null||F.done()}});zn("returnToIIB",At(async()=>{var A,$;if(!e.walkModePath)try{(A=t.value)==null||A.start();const{files:F}=await he(r.value.length===1?"/":f.value);de(r.value).files.map(H=>H.date).join()!==F.map(H=>H.date).join()&&(de(r.value).files=F,Z.success(j("autoUpdate")))}finally{($=t.value)==null||$.done()}})),c.value("refresh",u);const o=A=>{e.walkModePath&&(k.value().walkModePath=A),m(A)},b=J(()=>D.quickMovePaths.map(A=>({...A,path:ke(A.dir)}))),E=J(()=>{const A=ke(f.value);return b.value.find(F=>F.path===A)}),S=async()=>{const A=E.value;if(A){if(!A.can_delete)return;await ui(f.value),Z.success(j("removeComplete"))}else await ci(f.value),Z.success(j("addComplete"));Et.emit("searchIndexExpired"),Et.emit("updateGlobalSetting")},P=Q(!1),T=Q(f.value),I=()=>{P.value=!0,T.value=f.value},B=async()=>{await g(T.value),P.value=!1};ve("click",()=>{P.value=!1});const O=()=>{const A=parent.location,$=A.href.substring(0,A.href.length-A.search.length),F=new URLSearchParams(A.search);F.set("action","open"),F.set("path",f.value);const K=`${$}?${F.toString()}`;xe(K,j("copyLocationUrlSuccessMsg"))},x=()=>{console.log(`select all 0 -> ${w.value.length}`),C.value=en(0,w.value.length)};return c.value("selectAll",x),{locInputValue:T,isLocationEditing:P,onLocEditEnter:B,onEditBtnClick:I,addToSearchScanPathAndQuickMove:S,searchPathInfo:E,refresh:u,copyLocation:s,back:a,openNext:l,currPage:d,currLocation:f,to:g,stack:r,scroller:n,share:O,selectAll:x,quickMoveTo:o,onCreateFloderBtnClick:async()=>{await yr(f.value),await u()}}}function ba(e){const{scroller:t,sortedFiles:n,stack:i,sortMethod:r,currLocation:d,currPage:f,stackViewEl:h,canLoadNext:c,previewIdx:y}=ae().toRefs(),{state:k}=ae(),C=Q(!1),w=Q(D.defaultGridCellWidth),m=J(()=>w.value+16),s=44,{width:l}=Tn(h),a=J(()=>~~(l.value/m.value)),v=J(()=>{const E=m.value;return{first:E+(w.value<=160?0:s),second:E}}),g=Q(!1),u=async()=>{var E;if(!(g.value||!e.walkModePath||!c.value))try{g.value=!0;const S=i.value[i.value.length-2],P=me(S.files,r.value),T=P.findIndex(I=>{var B;return I.name===((B=f.value)==null?void 0:B.curr)});if(T!==-1){const I=P[T+1],B=Me(d.value,"../",I.name),O=await he(B),x=f.value;x.curr=I.name,x.walkFiles||(x.walkFiles=[x.files]),x.walkFiles.push(O.files),console.log("curr page files length",(E=f.value)==null?void 0:E.files.length)}}catch(S){console.error("loadNextDir",S),c.value=!1}finally{g.value=!1}},o=async(E=!1)=>{const S=t.value,P=()=>E?y.value:(S==null?void 0:S.$_endIndex)??0;for(;!n.value.length||P()>n.value.length-20&&c.value;)await it(100),await u()};k.useEventListen("loadNextDir",o);const b=fe(()=>o(),300);return{gridItems:a,sortedFiles:n,sortMethodConv:Bn,moreActionsDropdownShow:C,gridSize:m,sortMethod:r,onScroll:b,loadNextDir:u,loadNextDirLoading:g,canLoadNext:c,itemSize:v,cellWidth:w}}function wa(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:i,eventEmitter:r}=ae().toRefs(),d=()=>{i.value=[]};return ve("click",d),ve("blur",d),ge(n,d),{onFileDragStart:(y,k)=>{const C=Wt(t.value[k]);Bt.fileDragging=!0,console.log("onFileDragStart set drag file ",y,k,C);const w=[C];let m=C.type==="dir";if(i.value.includes(k)){const l=i.value.map(a=>t.value[a]);w.push(...l),m=l.some(a=>a.type==="dir")}const s={includeDir:m,loc:e.value||"search-result",path:kt(w,"fullpath").map(l=>l.fullpath),nodes:kt(w,"fullpath"),__id:"FileTransferData"};y.dataTransfer.setData("text/plain",JSON.stringify(s))},onDrop:async y=>{const k=Qn(y);if(!k)return;const C=e.value;if(k.loc===C)return;const w=ze(),m=async()=>w.pushAction(async()=>{await pr(k.path,C),r.value.emit("refresh"),ce.destroyAll()}),s=()=>w.pushAction(async()=>{await nn(k.path,C),Ce.emit("removeFiles",{paths:k.path,loc:k.loc}),r.value.emit("refresh"),ce.destroyAll()});ce.confirm({title:j("confirm")+"?",width:"60vw",content:()=>{let l,a,v;return p("div",null,[p("div",null,[`${j("moveSelectedFilesTo")}${C}`,p("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[k.path.map(g=>p("li",null,[g.split(/[/\\]/).pop()]))])]),p(an,null,null),p("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[p(le,{onClick:ce.destroyAll},Qe(l=j("cancel"))?l:{default:()=>[l]}),p(le,{type:"primary",loading:!w.isIdle,onClick:m},Qe(a=j("copy"))?a:{default:()=>[a]}),p(le,{type:"primary",loading:!w.isIdle,onClick:s},Qe(v=j("move"))?v:{default:()=>[v]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:i,onFileDragEnd:()=>{Bt.fileDragging=!1}}}function Sa(e,{openNext:t}){const n=Q(!1),i=Q(""),{sortedFiles:r,previewIdx:d,multiSelectedIdxs:f,stack:h,currLocation:c,spinning:y,previewing:k,stackViewEl:C,eventEmitter:w}=ae().toRefs(),m=ke;Re("removeFiles",({paths:g,loc:u})=>{if(m(u)!==m(c.value))return;const o=de(h.value);o&&(o.files=o.files.filter(b=>!g.includes(b.fullpath)),o.walkFiles&&(o.walkFiles=o.walkFiles.map(b=>b.filter(E=>!g.includes(E.fullpath)))))}),Re("addFiles",({files:g,loc:u})=>{if(m(u)!==m(c.value))return;const o=de(h.value);o&&o.files.unshift(...g)});const s=ze(),l=async(g,u,o)=>{d.value=o,D.fullscreenPreviewInitialUrl=ie(u);const b=f.value.indexOf(o);if(g.shiftKey){if(b!==-1)f.value.splice(b,1);else{f.value.push(o),f.value.sort((P,T)=>P-T);const E=f.value[0],S=f.value[f.value.length-1];f.value=en(E,S+1)}g.stopPropagation()}else g.ctrlKey||g.metaKey?(b!==-1?f.value.splice(b,1):f.value.push(o),g.stopPropagation()):await t(u)},a=async(g,u,o)=>{var T,I,B;const b=ie(u),E=c.value,S=()=>{let O=[];return f.value.includes(o)?O=f.value.map(x=>r.value[x]):O.push(u),O},P=async O=>{if(!y.value)try{y.value=!0,await Un(u.fullpath),Ee.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}));const x=setTimeout(()=>Hn.warn({message:j("long_loading"),duration:20}),5e3);await Wn(),clearTimeout(x),Ee.postMessage(JSON.stringify({event:"click_hidden_button",btnEleId:`iib_hidden_tab_${O}`}))}catch(x){console.error(x),Z.error("发送图像失败,请携带console的错误消息找开发者")}finally{y.value=!1}};if(`${g.key}`.startsWith("toggle-tag-")){const O=+`${g.key}`.split("toggle-tag-")[1],{is_remove:x}=await di({tag_id:O,img_path:u.fullpath}),U=(I=(T=D.conf)==null?void 0:T.all_custom_tags.find(A=>A.id===O))==null?void 0:I.name;Z.success(j(x?"removedTagFromImage":"addedTagToImage",{tag:U}));return}switch(g.key){case"previewInNewWindow":return window.open(b);case"download":return window.open(ie(u,!0));case"copyPreviewUrl":return xe(parent.document.location.origin+b);case"send2txt2img":return P("txt2img");case"send2img2img":return P("img2img");case"send2inpaint":return P("inpaint");case"send2extras":return P("extras");case"send2savedDir":{const O=D.quickMovePaths.find(A=>A.key==="outdir_save");if(!O)return Z.error(j("unknownSavedDir"));const x=Vn(O.dir,(B=D.conf)==null?void 0:B.sd_cwd),U=S();await nn(U.map(A=>A.fullpath),x,!0),Ce.emit("removeFiles",{paths:U.map(A=>A.fullpath),loc:c.value}),Ce.emit("addFiles",{files:U,loc:x});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const O=g.key.split("-")[1];Ee.postMessage(JSON.stringify({event:"send_to_control_net",type:O,url:ie(u)}));break}case"send2outpaint":{i.value=await s.pushAction(()=>Je(u.fullpath)).res;const[O,x]=(i.value||"").split(` `);Ee.postMessage(JSON.stringify({event:"send_to_outpaint",url:ie(u),prompt:O,negPrompt:x.slice(17)}));break}case"openWithWalkMode":{je.set(E,h.value);const O=D.tabList[e.tabIdx],x={type:"local",key:we(),path:u.fullpath,name:j("local"),stackKey:E,walkModePath:u.fullpath};O.panes.push(x),O.key=x.key;break}case"openInNewTab":{je.set(E,h.value);const O=D.tabList[e.tabIdx],x={type:"local",key:we(),path:u.fullpath,name:j("local"),stackKey:E};O.panes.push(x),O.key=x.key;break}case"openOnTheRight":{je.set(E,h.value);let O=D.tabList[e.tabIdx+1];O||(O={panes:[],key:"",id:we()},D.tabList[e.tabIdx+1]=O);const x={type:"local",key:we(),path:u.fullpath,name:j("local"),stackKey:E};O.panes.push(x),O.key=x.key;break}case"viewGenInfo":{n.value=!0,i.value=await s.pushAction(()=>Je(u.fullpath)).res;break}case"openWithLocalFileBrowser":{await jn(u.fullpath);break}case"deleteFiles":{const O=S();await new Promise(x=>{ce.confirm({title:j("confirmDelete"),maskClosable:!0,width:"60vw",content:p("div",null,[p("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[O.map(U=>p("li",null,[U.fullpath.split(/[/\\]/).pop()]))]),p(an,null,null)]),async onOk(){const U=O.map(A=>A.fullpath);await vr(U),Z.success(j("deleteSuccess")),Ce.emit("removeFiles",{paths:U,loc:c.value}),x()}})});break}}return{}},{isOutside:v}=Fn(C);return ve("keydown",g=>{var o,b,E;const u=fi(g);if(k.value){const S=(o=Object.entries(D.shortcut).find(P=>P[1]===u&&P[1]))==null?void 0:o[0];if(S){g.stopPropagation(),g.preventDefault();const P=d.value,T=r.value[P];switch(S){case"delete":return ie(T)===D.fullscreenPreviewInitialUrl?Z.warn(j("fullscreenRestriction")):a({key:"deleteFiles"},T,P);default:{const I=(b=/^toggle_tag_(.*)$/.exec(S))==null?void 0:b[1],B=(E=D.conf)==null?void 0:E.all_custom_tags.find(O=>O.name===I);return B?a({key:`toggle-tag-${B.id}`},T,P):void 0}}}}else!v.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(u)&&(g.preventDefault(),g.stopPropagation(),w.value.emit("selectAll"))}),{onFileItemClick:l,onContextMenuClick:a,showGenInfo:n,imageGenInfo:i,q:s}}const Aa=()=>{const{stackViewEl:e}=ae().toRefs(),t=Q(-1);return Dn(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 d=(r=i.dataset)==null?void 0:r.idx;d&&Number.isSafeInteger(+d)&&(t.value=+d);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 Ie;function Ye(){Ye.init||(Ye.init=!0,Ie=br()!==-1)}var Te={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ye(),tt(()=>{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",Ie&&this.$el.appendChild(e),e.data="about:blank",Ie||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&&(!Ie&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wr=Yn();Jn("data-v-b329ee4c");const Sr={class:"resize-observer",tabindex:"-1"};Rn();const Ar=wr((e,t,n,i,r,d)=>(M(),W("div",Sr)));Te.render=Ar;Te.__scopeId="data-v-b329ee4c";Te.__file="src/components/ResizeObserver.vue";function _e(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_e=function(t){return typeof t}:_e=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(e)}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ft(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,d,f=function(c){for(var y=arguments.length,k=new Array(y>1?y-1:0),C=1;C1){var y=h.find(function(C){return C.isIntersecting});y&&(c=y)}if(r.callback){var k=c.isIntersecting&&c.intersectionRatio>=r.threshold;if(k===r.oldResult)return;r.oldResult=k,r.callback(k,c)}},this.options.intersection),tt(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 sn(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 $r(e,i,n);e._vue_visibilityState=r}}function Lr(e,t,n){var i=t.value,r=t.oldValue;if(!ln(i,r)){var d=e._vue_visibilityState;if(!i){on(e);return}d?d.createObserver(i,n):sn(e,{value:i},n)}}function on(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Mr={beforeMount:sn,updated:Lr,unmounted:on},Nr={itemsLimit:1e3},zr=/(auto|scroll)/;function un(e,t){return e.parentNode===null?t:un(e.parentNode,t.concat([e]))}var Ve=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Tr=function(t){return Ve(t,"overflow")+Ve(t,"overflow-y")+Ve(t,"overflow-x")},Br=function(t){return zr.test(Tr(t))};function Qt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=un(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 d=qn({id:jr++,index:t,used:!0,key:i,type:r}),f=Kn({item:n,position:0,nr:d});return e.push(f),f},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,d=this.$_computedMinItemSize,f=this.typeField,h=this.simpleArray?null:this.keyField,c=this.items,y=c.length,k=this.sizes,C=this.$_views,w=this.$_unusedViews,m=this.pool,s=this.itemIndexByKey;let l,a,v,g,u;if(!y)l=a=g=u=v=0;else if(this.$_prerender)l=g=0,a=u=Math.min(this.prerender,c.length),v=null;else{const I=this.getScroll();if(t){let x=I.start-this.$_lastUpdateScrollPosition;if(x<0&&(x=-x),n===null&&xI.start&&(A=$),$=~~((U+A)/2);while($!==F);for($<0&&($=0),l=$,v=k[y-1].accumulator,a=$;ay&&(a=y)),g=l;gy&&(a=y),g<0&&(g=0),u>y&&(u=y),v=Math.ceil(y/i)*n}}a-l>Nr.itemsLimit&&this.itemsLimitError(),this.totalSize=v;let o;const b=l<=this.$_endIndex&&a>=this.$_startIndex;if(b)for(let I=0,B=m.length;I=a)&&this.unuseView(o));const E=b?null:new Map;let S,P,T;for(let I=l;I=O.length)&&(o=this.addView(m,I,S,B,P),this.unuseView(o,!0),O=w.get(P)),o=O[T],E.set(P,T+1)),C.delete(o.nr.key),o.nr.used=!0,o.nr.index=I,o.nr.key=B,o.nr.type=P,C.set(B,o),x=!0;else if(!o.nr.used&&(o.nr.used=!0,o.nr.index=I,x=!0,O)){const U=O.indexOf(o);U!==-1&&O.splice(U,1)}o.item=S,x&&(I===c.length-1&&this.$emit("scroll-end"),I===0&&this.$emit("scroll-start")),n===null?(o.position=k[I-1].accumulator,o.offset=0):(o.position=Math.floor(I/i)*n,o.offset=I%i*r)}return this.$_startIndex=l,this.$_endIndex=a,this.emitUpdate&&this.$emit("update",l,a,g,u),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=Qt(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(),d=n?r.height:r.width;let f=-(n?r.top:r.left),h=n?window.innerHeight:window.innerWidth;f<0&&(h+=f,f=0),f+h>d&&(h=d-f),i={start:f,end:f+h}}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,Ge?{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 d=Qt(this.$el),f=d.tagName==="HTML"?0:d[t.scroll],h=d.getBoundingClientRect(),y=this.$el.getBoundingClientRect()[t.start]-h[t.start];n=d,i=t.scroll,r=e+f+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 Vr={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Ur={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Hr(e,t,n,i,r,d){const f=Gn("ResizeObserver"),h=Xn("observe-visibility");return Zn((M(),V("div",{class:ye(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...c)=>d.handleScroll&&d.handleScroll(...c))},[e.$slots.before?(M(),V("div",Vr,[Se(e.$slots,"before")],512)):q("v-if",!0),(M(),W(Ot(n.listTag),{ref:"wrapper",style:ni({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:ye(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:_(()=>[(M(!0),V(re,null,$e(r.pool,c=>(M(),W(Ot(n.itemTag),ei({key:c.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${c.position}px) translate${e.direction==="vertical"?"X":"Y"}(${c.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===c.nr.key}]]},ti(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=c.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:_(()=>[Se(e.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),Se(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(M(),V("div",Ur,[Se(e.$slots,"after")],512)):q("v-if",!0),p(f,{onNotify:d.handleResize},null,8,["onNotify"])],34)),[[h,d.handleVisibilityChange]])}cn.render=Hr;cn.__file="src/components/RecycleScroller.vue";const Xe=pe({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Ne(),r=J(()=>{var d;return(((d=i.conf)==null?void 0:d.all_custom_tags)??[]).reduce((f,h)=>[...f,{...h,selected:!!n.selectedTag.find(c=>c.id===h.id)}],[])});return(d,f)=>{const h=Jt,c=ii,y=Rt,k=Yt;return M(),W(k,{onClick:f[0]||(f[0]=C=>t("contextMenuClick",C,d.file,d.idx))},{default:_(()=>{var C;return[p(h,{key:"deleteFiles",disabled:d.disableDelete},{default:_(()=>[N(L(d.$t("deleteSelected")),1)]),_:1},8,["disabled"]),d.file.type==="dir"?(M(),V(re,{key:0},[p(h,{key:"openInNewTab"},{default:_(()=>[N(L(d.$t("openInNewTab")),1)]),_:1}),p(h,{key:"openOnTheRight"},{default:_(()=>[N(L(d.$t("openOnTheRight")),1)]),_:1}),p(h,{key:"openWithWalkMode"},{default:_(()=>[N(L(d.$t("openWithWalkMode")),1)]),_:1})],64)):q("",!0),d.file.type==="file"?(M(),V(re,{key:1},[z(X)(d.file.name)?(M(),V(re,{key:0},[p(h,{key:"viewGenInfo"},{default:_(()=>[N(L(d.$t("viewGenerationInfo")),1)]),_:1}),p(c),((C=z(i).conf)==null?void 0:C.launch_mode)!=="server"?(M(),V(re,{key:0},[p(h,{key:"send2txt2img"},{default:_(()=>[N(L(d.$t("sendToTxt2img")),1)]),_:1}),p(h,{key:"send2img2img"},{default:_(()=>[N(L(d.$t("sendToImg2img")),1)]),_:1}),p(h,{key:"send2inpaint"},{default:_(()=>[N(L(d.$t("sendToInpaint")),1)]),_:1}),p(h,{key:"send2extras"},{default:_(()=>[N(L(d.$t("sendToExtraFeatures")),1)]),_:1}),p(y,{key:"sendToThirdPartyExtension",title:d.$t("sendToThirdPartyExtension")},{default:_(()=>[p(h,{key:"send2controlnet-txt2img"},{default:_(()=>[N("ControlNet - "+L(d.$t("t2i")),1)]),_:1}),p(h,{key:"send2controlnet-img2img"},{default:_(()=>[N("ControlNet - "+L(d.$t("i2i")),1)]),_:1}),p(h,{key:"send2outpaint"},{default:_(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),p(h,{key:"send2savedDir"},{default:_(()=>[N(L(d.$t("send2savedDir")),1)]),_:1}),p(c),p(y,{key:"toggle-tag",title:d.$t("toggleTag")},{default:_(()=>[(M(!0),V(re,null,$e(r.value,w=>(M(),W(h,{key:`toggle-tag-${w.id}`},{default:_(()=>[N(L(w.name)+" ",1),w.selected?(M(),W(z(Zt),{key:0})):(M(),W(z(tn),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),p(h,{key:"openWithLocalFileBrowser"},{default:_(()=>[N(L(d.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):q("",!0),p(h,{key:"previewInNewWindow"},{default:_(()=>[N(L(d.$t("previewInNewWindow")),1)]),_:1}),p(h,{key:"download"},{default:_(()=>[N(L(d.$t("download")),1)]),_:1}),p(h,{key:"copyPreviewUrl"},{default:_(()=>[N(L(d.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):q("",!0)]}),_:1})}}}),Wr=["data-idx"],Jr={class:"more"},Rr={key:1,class:"preview-icon-wrap"},Yr={key:2,class:"profile"},qr={class:"name line-clamp-1"},Kr={class:"basic-info"},Gr=pe({__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;ri(c=>({"0ff688b3":c.$props.cellWidth+"px"}));const i=Ne(),r=Q([]),d=()=>{var c;((c=n==null?void 0:n.file)==null?void 0:c.type)==="file"&&f.pushAction(()=>Kt(n.file.fullpath)).res.then(y=>{r.value=y})},f=ze(),h=J(()=>{const c=i.gridThumbnailResolution;return i.enableThumbnail?ai(n.file,[c,c].join("x")):ie(n.file)});return(c,y)=>{const k=se,C=li;return M(),W(k,{trigger:["contextmenu"],visible:z(i).longPressOpenContextMenu?typeof c.idx=="number"&&c.showMenuIdx===c.idx:void 0,"onUpdate:visible":y[5]||(y[5]=w=>typeof c.idx=="number"&&t("update:showMenuIdx",w?c.idx:-1))},{overlay:_(()=>[p(Xe,{file:c.file,idx:c.idx,"selected-tag":r.value,onContextMenuClick:y[4]||(y[4]=(w,m,s)=>t("contextMenuClick",w,m,s))},null,8,["file","idx","selected-tag"])]),default:_(()=>[(M(),V("li",{class:ye(["file file-item-trigger grid",{clickable:c.file.type==="dir",selected:c.selected}]),"data-idx":c.idx,key:c.file.name,draggable:"true",onDragstart:y[1]||(y[1]=w=>t("dragstart",w,c.idx)),onDragend:y[2]||(y[2]=w=>t("dragend",w,c.idx)),onContextmenu:d,onClickCapture:y[3]||(y[3]=w=>t("fileItemClick",w,c.file,c.idx))},[Y("div",null,[p(k,null,{overlay:_(()=>[p(Xe,{file:c.file,idx:c.idx,"selected-tag":r.value,onContextMenuClick:y[0]||(y[0]=(w,m,s)=>t("contextMenuClick",w,m,s))},null,8,["file","idx","selected-tag"])]),default:_(()=>[Y("div",Jr,[p(z(et))])]),_:1}),z(X)(c.file.name)?(M(),W(C,{key:c.file.fullpath,class:ye(`idx-${c.idx}`),src:h.value,fallback:z(Ti),preview:{src:c.fullScreenPreviewImageUrl,onVisibleChange:(w,m)=>t("previewVisibleChange",w,m)}},null,8,["class","src","fallback","preview"])):(M(),V("div",Rr,[c.file.type==="file"?(M(),W(z(Oi),{key:0,class:"icon center"})):(M(),W(z(Pi),{key:1,class:"icon center"}))])),c.cellWidth>128?(M(),V("div",Yr,[Y("div",qr,L(c.file.name),1),Y("div",Kr,[Y("div",null,L(c.file.size),1),Y("div",null,L(c.file.date),1)])])):q("",!0)])],42,Wr))]),_:1},8,["visible"])}}});const Ea=qt(Gr,[["__scopeId","data-v-9824eb37"]]);function Xr(e,t,n,i){const r={x:0,y:0};let d=0,f=0,h=typeof(i==null?void 0:i.width)=="number"?i.width:0,c=typeof(i==null?void 0:i.height)=="number"?i.height:0,y=typeof(i==null?void 0:i.left)=="number"?i.left:0,k=typeof(i==null?void 0:i.top)=="number"?i.top:0,C=!1;const w=u=>{u.stopPropagation(),u.preventDefault(),!(!e.value||!t.value)&&(d=u instanceof MouseEvent?u.clientX:u.touches[0].clientX,f=u instanceof MouseEvent?u.clientY:u.touches[0].clientY,h=e.value.offsetWidth,c=e.value.offsetHeight,r.x=t.value.offsetLeft,r.y=t.value.offsetTop,document.documentElement.addEventListener("mousemove",m),document.documentElement.addEventListener("touchmove",m),document.documentElement.addEventListener("mouseup",s),document.documentElement.addEventListener("touchend",s))},m=u=>{if(!e.value||!t.value)return;let o=h+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-d),b=c+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-f),E=r.x+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-d),S=r.y+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-f);E+t.value.offsetWidth>window.innerWidth&&(E=window.innerWidth-t.value.offsetWidth),e.value.offsetLeft+o>window.innerWidth&&(o=window.innerWidth-e.value.offsetLeft),S+t.value.offsetHeight>window.innerHeight&&(S=window.innerHeight-t.value.offsetHeight),e.value.offsetTop+b>window.innerHeight&&(b=window.innerHeight-e.value.offsetTop),e.value.style.width=`${o}px`,e.value.style.height=`${b}px`,t.value.style.left=`${E}px`,t.value.style.top=`${S}px`,i!=null&&i.onResize&&i.onResize(o,b)},s=()=>{document.documentElement.removeEventListener("mousemove",m),document.documentElement.removeEventListener("touchmove",m),document.documentElement.removeEventListener("mouseup",s),document.documentElement.removeEventListener("touchend",s)},l=u=>{u.stopPropagation(),u.preventDefault(),!(!e.value||!n.value)&&(C=!0,y=e.value.offsetLeft,k=e.value.offsetTop,d=u instanceof MouseEvent?u.clientX:u.touches[0].clientX,f=u instanceof MouseEvent?u.clientY:u.touches[0].clientY,document.documentElement.addEventListener("mousemove",a),document.documentElement.addEventListener("touchmove",a),document.documentElement.addEventListener("mouseup",v),document.documentElement.addEventListener("touchend",v))},a=u=>{if(!e.value||!n.value||!C)return;const o=y+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-d),b=k+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-f);o<0?e.value.style.left="0px":o+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${o}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(o,b)},v=()=>{C=!1,document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v)},g=()=>{if(!e.value||!t.value)return;let u=e.value.offsetLeft,o=e.value.offsetTop,b=e.value.offsetWidth,E=e.value.offsetHeight;u+b>window.innerWidth&&(u=window.innerWidth-b,u<0&&(u=0,b=window.innerWidth)),o+E>window.innerHeight&&(o=window.innerHeight-E,o<0&&(o=0,E=window.innerHeight)),e.value.style.left=`${u}px`,e.value.style.top=`${o}px`,e.value.style.width=`${b}px`,e.value.style.height=`${E}px`};return Ht(()=>{!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`),g(),window.addEventListener("resize",g))}),nt(()=>{document.documentElement.removeEventListener("mousemove",m),document.documentElement.removeEventListener("touchmove",m),document.documentElement.removeEventListener("mouseup",s),document.documentElement.removeEventListener("touchend",s),document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v),window.removeEventListener("resize",g)}),ge(()=>[e.value,t.value,n.value],([u,o,b])=>{u&&o&&(o.addEventListener("mousedown",w),o.addEventListener("touchstart",w)),u&&b&&(b.addEventListener("mousedown",l),b.addEventListener("touchstart",l))}),{handleResizeMouseDown:w,handleDragMouseDown:l}}const Zr={class:"container"},ea={class:"action-bar"},ta={key:0,class:"icon",style:{cursor:"pointer"}},na={key:0,"flex-placeholder":""},ia={key:1,class:"action-bar"},ra={key:0,class:"gen-info"},aa={class:"tags"},la={class:"name"},sa={class:"value"},oa=pe({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Ne(),r=Q(),d=Q([]),f=J(()=>{var a;return(((a=i.conf)==null?void 0:a.all_custom_tags)??[]).reduce((v,g)=>[...v,{...g,selected:!!d.value.find(u=>u.id===g.id)}],[])}),h=Q(""),c=ze(),y=Q("");ge(()=>{var a;return(a=n==null?void 0:n.file)==null?void 0:a.fullpath},async a=>{a&&(c.tasks.forEach(v=>v.cancel()),c.pushAction(()=>Je(a)).res.then(v=>{y.value=v}))},{immediate:!0});const k=a=>{a&&c.pushAction(()=>Kt(n.file.fullpath)).res.then(v=>{d.value=v})},C=Q(),w=Q(),m=si("fullScreenContextMenu.vue-drag",{left:100,top:100,width:512,height:384,expanded:!0});Xr(r,C,w,{...m.value,onDrag:fe(function(a,v){m.value={...m.value,left:a,top:v}},300),onResize:fe(function(a,v){m.value={...m.value,width:a,height:v}},300)});function s(a){return a.parentNode}ve("load",a=>{const v=a.target;v.className==="ant-image-preview-img"&&(h.value=`${v.naturalWidth} x ${v.naturalHeight}`)},{capture:!0});const l=J(()=>{const a=[{name:j("fileName"),val:n.file.name},{name:j("fileSize"),val:n.file.size}];return h.value&&a.push({name:j("resolution"),val:h.value}),a});return(a,v)=>{const g=se,u=le,o=Jt,b=Yt,E=Rt;return M(),V("div",{ref_key:"el",ref:r,class:ye(["full-screen-menu",{"unset-size":!z(m).expanded}]),onWheelCapture:v[5]||(v[5]=oi(()=>{},["stop"]))},[Y("div",Zr,[Y("div",ea,[Y("div",{ref_key:"dragHandle",ref:w,class:"icon",style:{cursor:"grab"}},[p(z(qi))],512),Y("div",{class:"icon",style:{cursor:"pointer"},onClick:v[0]||(v[0]=S=>z(m).expanded=!z(m).expanded)},[z(m).expanded?(M(),W(z(Zi),{key:0})):(M(),W(z(ir),{key:1}))]),p(g,{onVisibleChange:k,"get-popup-container":s},{overlay:_(()=>[p(Xe,{file:a.file,idx:a.idx,"selected-tag":d.value,"disable-delete":z(ie)(a.file)===z(i).fullscreenPreviewInitialUrl,onContextMenuClick:v[1]||(v[1]=(S,P,T)=>t("contextMenuClick",S,P,T))},null,8,["file","idx","selected-tag","disable-delete"])]),default:_(()=>[z(m).expanded?q("",!0):(M(),V("div",ta,[p(z(et))]))]),_:1}),z(m).expanded?(M(),V("div",na)):q("",!0),z(m).expanded?(M(),V("div",ia,[p(g,{trigger:["hover"],"get-popup-container":s,onVisibleChange:k},{overlay:_(()=>[p(b,{onClick:v[2]||(v[2]=S=>t("contextMenuClick",S,a.file,a.idx))},{default:_(()=>[(M(!0),V(re,null,$e(f.value,S=>(M(),W(o,{key:`toggle-tag-${S.id}`},{default:_(()=>[N(L(S.name)+" ",1),S.selected?(M(),W(z(Zt),{key:0})):(M(),W(z(tn),{key:1}))]),_:2},1024))),128))]),_:1})]),default:_(()=>[p(u,null,{default:_(()=>[N(L(a.$t("toggleTag")),1)]),_:1})]),_:1}),p(g,{trigger:["hover"],"get-popup-container":s},{overlay:_(()=>[p(b,{onClick:v[3]||(v[3]=S=>t("contextMenuClick",S,a.file,a.idx))},{default:_(()=>{var S;return[((S=z(i).conf)==null?void 0:S.launch_mode)!=="server"?(M(),V(re,{key:0},[p(o,{key:"send2txt2img"},{default:_(()=>[N(L(a.$t("sendToTxt2img")),1)]),_:1}),p(o,{key:"send2img2img"},{default:_(()=>[N(L(a.$t("sendToImg2img")),1)]),_:1}),p(o,{key:"send2inpaint"},{default:_(()=>[N(L(a.$t("sendToInpaint")),1)]),_:1}),p(o,{key:"send2extras"},{default:_(()=>[N(L(a.$t("sendToExtraFeatures")),1)]),_:1}),p(E,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:_(()=>[p(o,{key:"send2controlnet-txt2img"},{default:_(()=>[N("ControlNet - "+L(a.$t("t2i")),1)]),_:1}),p(o,{key:"send2controlnet-img2img"},{default:_(()=>[N("ControlNet - "+L(a.$t("i2i")),1)]),_:1}),p(o,{key:"send2outpaint"},{default:_(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),p(o,{key:"send2savedDir"},{default:_(()=>[N(L(a.$t("send2savedDir")),1)]),_:1}),p(o,{key:"deleteFiles",disabled:z(ie)(a.file)===z(i).fullscreenPreviewInitialUrl},{default:_(()=>[N(L(a.$t("deleteSelected")),1)]),_:1},8,["disabled"]),p(o,{key:"previewInNewWindow"},{default:_(()=>[N(L(a.$t("previewInNewWindow")),1)]),_:1}),p(o,{key:"download"},{default:_(()=>[N(L(a.$t("download")),1)]),_:1}),p(o,{key:"copyPreviewUrl"},{default:_(()=>[N(L(a.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:_(()=>[p(u,null,{default:_(()=>[N(L(z(j)("openContextMenu")),1)]),_:1})]),_:1}),p(u,{onClick:v[4]||(v[4]=S=>z(xe)(y.value))},{default:_(()=>[N(L(a.$t("copyPrompt")),1)]),_:1})])):q("",!0)]),z(m).expanded?(M(),V("div",ra,[Y("div",aa,[(M(!0),V(re,null,$e(l.value,S=>(M(),V("span",{class:"tag",key:S.name},[Y("span",la,L(S.name),1),Y("span",sa,L(S.val),1)]))),128))]),N(" "+L(y.value),1)])):q("",!0)]),z(m).expanded?(M(),V("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:C},[p(z(ji))],512)):q("",!0)],34)}}});const ka=qt(oa,[["__scopeId","data-v-d1522950"]]);export{se as D,ha as L,ma as R,pa as S,ya as a,ba as b,wa as c,Sa as d,ga as e,Aa as f,je as g,cn as h,Ea as i,ka as j,Re as k,va as s,ae as u}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pr(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function xr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,r,d,f=function(c){for(var y=arguments.length,k=new Array(y>1?y-1:0),C=1;C1){var y=h.find(function(C){return C.isIntersecting});y&&(c=y)}if(r.callback){var k=c.isIntersecting&&c.intersectionRatio>=r.threshold;if(k===r.oldResult)return;r.oldResult=k,r.callback(k,c)}},this.options.intersection),tt(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 sn(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 $r(e,i,n);e._vue_visibilityState=r}}function Lr(e,t,n){var i=t.value,r=t.oldValue;if(!ln(i,r)){var d=e._vue_visibilityState;if(!i){on(e);return}d?d.createObserver(i,n):sn(e,{value:i},n)}}function on(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Mr={beforeMount:sn,updated:Lr,unmounted:on},Nr={itemsLimit:1e3},zr=/(auto|scroll)/;function un(e,t){return e.parentNode===null?t:un(e.parentNode,t.concat([e]))}var Ve=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Tr=function(t){return Ve(t,"overflow")+Ve(t,"overflow-y")+Ve(t,"overflow-x")},Br=function(t){return zr.test(Tr(t))};function Qt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=un(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 d=qn({id:jr++,index:t,used:!0,key:i,type:r}),f=Kn({item:n,position:0,nr:d});return e.push(f),f},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,d=this.$_computedMinItemSize,f=this.typeField,h=this.simpleArray?null:this.keyField,c=this.items,y=c.length,k=this.sizes,C=this.$_views,w=this.$_unusedViews,m=this.pool,s=this.itemIndexByKey;let l,a,v,g,u;if(!y)l=a=g=u=v=0;else if(this.$_prerender)l=g=0,a=u=Math.min(this.prerender,c.length),v=null;else{const I=this.getScroll();if(t){let x=I.start-this.$_lastUpdateScrollPosition;if(x<0&&(x=-x),n===null&&xI.start&&(A=$),$=~~((U+A)/2);while($!==F);for($<0&&($=0),l=$,v=k[y-1].accumulator,a=$;ay&&(a=y)),g=l;gy&&(a=y),g<0&&(g=0),u>y&&(u=y),v=Math.ceil(y/i)*n}}a-l>Nr.itemsLimit&&this.itemsLimitError(),this.totalSize=v;let o;const b=l<=this.$_endIndex&&a>=this.$_startIndex;if(b)for(let I=0,B=m.length;I=a)&&this.unuseView(o));const E=b?null:new Map;let S,P,T;for(let I=l;I=O.length)&&(o=this.addView(m,I,S,B,P),this.unuseView(o,!0),O=w.get(P)),o=O[T],E.set(P,T+1)),C.delete(o.nr.key),o.nr.used=!0,o.nr.index=I,o.nr.key=B,o.nr.type=P,C.set(B,o),x=!0;else if(!o.nr.used&&(o.nr.used=!0,o.nr.index=I,x=!0,O)){const U=O.indexOf(o);U!==-1&&O.splice(U,1)}o.item=S,x&&(I===c.length-1&&this.$emit("scroll-end"),I===0&&this.$emit("scroll-start")),n===null?(o.position=k[I-1].accumulator,o.offset=0):(o.position=Math.floor(I/i)*n,o.offset=I%i*r)}return this.$_startIndex=l,this.$_endIndex=a,this.emitUpdate&&this.$emit("update",l,a,g,u),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=Qt(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(),d=n?r.height:r.width;let f=-(n?r.top:r.left),h=n?window.innerHeight:window.innerWidth;f<0&&(h+=f,f=0),f+h>d&&(h=d-f),i={start:f,end:f+h}}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,Ge?{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 d=Qt(this.$el),f=d.tagName==="HTML"?0:d[t.scroll],h=d.getBoundingClientRect(),y=this.$el.getBoundingClientRect()[t.start]-h[t.start];n=d,i=t.scroll,r=e+f+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 Vr={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Ur={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Hr(e,t,n,i,r,d){const f=Gn("ResizeObserver"),h=Xn("observe-visibility");return Zn((M(),V("div",{class:ye(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...c)=>d.handleScroll&&d.handleScroll(...c))},[e.$slots.before?(M(),V("div",Vr,[Se(e.$slots,"before")],512)):q("v-if",!0),(M(),W(Ot(n.listTag),{ref:"wrapper",style:ni({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:ye(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:_(()=>[(M(!0),V(re,null,$e(r.pool,c=>(M(),W(Ot(n.itemTag),ei({key:c.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${c.position}px) translate${e.direction==="vertical"?"X":"Y"}(${c.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===c.nr.key}]]},ti(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=c.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:_(()=>[Se(e.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),Se(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(M(),V("div",Ur,[Se(e.$slots,"after")],512)):q("v-if",!0),p(f,{onNotify:d.handleResize},null,8,["onNotify"])],34)),[[h,d.handleVisibilityChange]])}cn.render=Hr;cn.__file="src/components/RecycleScroller.vue";const Xe=pe({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Ne(),r=J(()=>{var d;return(((d=i.conf)==null?void 0:d.all_custom_tags)??[]).reduce((f,h)=>[...f,{...h,selected:!!n.selectedTag.find(c=>c.id===h.id)}],[])});return(d,f)=>{const h=Jt,c=ii,y=Rt,k=Yt;return M(),W(k,{onClick:f[0]||(f[0]=C=>t("contextMenuClick",C,d.file,d.idx))},{default:_(()=>{var C;return[p(h,{key:"deleteFiles",disabled:d.disableDelete},{default:_(()=>[N(L(d.$t("deleteSelected")),1)]),_:1},8,["disabled"]),d.file.type==="dir"?(M(),V(re,{key:0},[p(h,{key:"openInNewTab"},{default:_(()=>[N(L(d.$t("openInNewTab")),1)]),_:1}),p(h,{key:"openOnTheRight"},{default:_(()=>[N(L(d.$t("openOnTheRight")),1)]),_:1}),p(h,{key:"openWithWalkMode"},{default:_(()=>[N(L(d.$t("openWithWalkMode")),1)]),_:1})],64)):q("",!0),d.file.type==="file"?(M(),V(re,{key:1},[z(X)(d.file.name)?(M(),V(re,{key:0},[p(h,{key:"viewGenInfo"},{default:_(()=>[N(L(d.$t("viewGenerationInfo")),1)]),_:1}),p(c),((C=z(i).conf)==null?void 0:C.launch_mode)!=="server"?(M(),V(re,{key:0},[p(h,{key:"send2txt2img"},{default:_(()=>[N(L(d.$t("sendToTxt2img")),1)]),_:1}),p(h,{key:"send2img2img"},{default:_(()=>[N(L(d.$t("sendToImg2img")),1)]),_:1}),p(h,{key:"send2inpaint"},{default:_(()=>[N(L(d.$t("sendToInpaint")),1)]),_:1}),p(h,{key:"send2extras"},{default:_(()=>[N(L(d.$t("sendToExtraFeatures")),1)]),_:1}),p(y,{key:"sendToThirdPartyExtension",title:d.$t("sendToThirdPartyExtension")},{default:_(()=>[p(h,{key:"send2controlnet-txt2img"},{default:_(()=>[N("ControlNet - "+L(d.$t("t2i")),1)]),_:1}),p(h,{key:"send2controlnet-img2img"},{default:_(()=>[N("ControlNet - "+L(d.$t("i2i")),1)]),_:1}),p(h,{key:"send2outpaint"},{default:_(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),p(h,{key:"send2savedDir"},{default:_(()=>[N(L(d.$t("send2savedDir")),1)]),_:1}),p(c),p(y,{key:"toggle-tag",title:d.$t("toggleTag")},{default:_(()=>[(M(!0),V(re,null,$e(r.value,w=>(M(),W(h,{key:`toggle-tag-${w.id}`},{default:_(()=>[N(L(w.name)+" ",1),w.selected?(M(),W(z(Zt),{key:0})):(M(),W(z(tn),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),p(h,{key:"openWithLocalFileBrowser"},{default:_(()=>[N(L(d.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):q("",!0),p(h,{key:"previewInNewWindow"},{default:_(()=>[N(L(d.$t("previewInNewWindow")),1)]),_:1}),p(h,{key:"download"},{default:_(()=>[N(L(d.$t("download")),1)]),_:1}),p(h,{key:"copyPreviewUrl"},{default:_(()=>[N(L(d.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):q("",!0)]}),_:1})}}}),Wr=["data-idx"],Jr={class:"more"},Rr={key:1,class:"preview-icon-wrap"},Yr={key:2,class:"profile"},qr={class:"name line-clamp-1"},Kr={class:"basic-info"},Gr=pe({__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;ri(c=>({"0ff688b3":c.$props.cellWidth+"px"}));const i=Ne(),r=Q([]),d=()=>{var c;((c=n==null?void 0:n.file)==null?void 0:c.type)==="file"&&f.pushAction(()=>Kt(n.file.fullpath)).res.then(y=>{r.value=y})},f=ze(),h=J(()=>{const c=i.gridThumbnailResolution;return i.enableThumbnail?ai(n.file,[c,c].join("x")):ie(n.file)});return(c,y)=>{const k=se,C=li;return M(),W(k,{trigger:["contextmenu"],visible:z(i).longPressOpenContextMenu?typeof c.idx=="number"&&c.showMenuIdx===c.idx:void 0,"onUpdate:visible":y[5]||(y[5]=w=>typeof c.idx=="number"&&t("update:showMenuIdx",w?c.idx:-1))},{overlay:_(()=>[p(Xe,{file:c.file,idx:c.idx,"selected-tag":r.value,onContextMenuClick:y[4]||(y[4]=(w,m,s)=>t("contextMenuClick",w,m,s))},null,8,["file","idx","selected-tag"])]),default:_(()=>[(M(),V("li",{class:ye(["file file-item-trigger grid",{clickable:c.file.type==="dir",selected:c.selected}]),"data-idx":c.idx,key:c.file.name,draggable:"true",onDragstart:y[1]||(y[1]=w=>t("dragstart",w,c.idx)),onDragend:y[2]||(y[2]=w=>t("dragend",w,c.idx)),onContextmenu:d,onClickCapture:y[3]||(y[3]=w=>t("fileItemClick",w,c.file,c.idx))},[Y("div",null,[p(k,null,{overlay:_(()=>[p(Xe,{file:c.file,idx:c.idx,"selected-tag":r.value,onContextMenuClick:y[0]||(y[0]=(w,m,s)=>t("contextMenuClick",w,m,s))},null,8,["file","idx","selected-tag"])]),default:_(()=>[Y("div",Jr,[p(z(et))])]),_:1}),z(X)(c.file.name)?(M(),W(C,{key:c.file.fullpath,class:ye(`idx-${c.idx}`),src:h.value,fallback:z(Ti),preview:{src:c.fullScreenPreviewImageUrl,onVisibleChange:(w,m)=>t("previewVisibleChange",w,m)}},null,8,["class","src","fallback","preview"])):(M(),V("div",Rr,[c.file.type==="file"?(M(),W(z(Oi),{key:0,class:"icon center"})):(M(),W(z(Pi),{key:1,class:"icon center"}))])),c.cellWidth>128?(M(),V("div",Yr,[Y("div",qr,L(c.file.name),1),Y("div",Kr,[Y("div",null,L(c.file.size),1),Y("div",null,L(c.file.date),1)])])):q("",!0)])],42,Wr))]),_:1},8,["visible"])}}});const Ea=qt(Gr,[["__scopeId","data-v-9824eb37"]]);function Xr(e,t,n,i){const r={x:0,y:0};let d=0,f=0,h=typeof(i==null?void 0:i.width)=="number"?i.width:0,c=typeof(i==null?void 0:i.height)=="number"?i.height:0,y=typeof(i==null?void 0:i.left)=="number"?i.left:0,k=typeof(i==null?void 0:i.top)=="number"?i.top:0,C=!1;const w=u=>{u.stopPropagation(),u.preventDefault(),!(!e.value||!t.value)&&(d=u instanceof MouseEvent?u.clientX:u.touches[0].clientX,f=u instanceof MouseEvent?u.clientY:u.touches[0].clientY,h=e.value.offsetWidth,c=e.value.offsetHeight,r.x=t.value.offsetLeft,r.y=t.value.offsetTop,document.documentElement.addEventListener("mousemove",m),document.documentElement.addEventListener("touchmove",m),document.documentElement.addEventListener("mouseup",s),document.documentElement.addEventListener("touchend",s))},m=u=>{if(!e.value||!t.value)return;let o=h+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-d),b=c+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-f),E=r.x+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-d),S=r.y+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-f);E+t.value.offsetWidth>window.innerWidth&&(E=window.innerWidth-t.value.offsetWidth),e.value.offsetLeft+o>window.innerWidth&&(o=window.innerWidth-e.value.offsetLeft),S+t.value.offsetHeight>window.innerHeight&&(S=window.innerHeight-t.value.offsetHeight),e.value.offsetTop+b>window.innerHeight&&(b=window.innerHeight-e.value.offsetTop),e.value.style.width=`${o}px`,e.value.style.height=`${b}px`,t.value.style.left=`${E}px`,t.value.style.top=`${S}px`,i!=null&&i.onResize&&i.onResize(o,b)},s=()=>{document.documentElement.removeEventListener("mousemove",m),document.documentElement.removeEventListener("touchmove",m),document.documentElement.removeEventListener("mouseup",s),document.documentElement.removeEventListener("touchend",s)},l=u=>{u.stopPropagation(),u.preventDefault(),!(!e.value||!n.value)&&(C=!0,y=e.value.offsetLeft,k=e.value.offsetTop,d=u instanceof MouseEvent?u.clientX:u.touches[0].clientX,f=u instanceof MouseEvent?u.clientY:u.touches[0].clientY,document.documentElement.addEventListener("mousemove",a),document.documentElement.addEventListener("touchmove",a),document.documentElement.addEventListener("mouseup",v),document.documentElement.addEventListener("touchend",v))},a=u=>{if(!e.value||!n.value||!C)return;const o=y+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-d),b=k+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-f);o<0?e.value.style.left="0px":o+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${o}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(o,b)},v=()=>{C=!1,document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v)},g=()=>{if(!e.value||!t.value)return;let u=e.value.offsetLeft,o=e.value.offsetTop,b=e.value.offsetWidth,E=e.value.offsetHeight;u+b>window.innerWidth&&(u=window.innerWidth-b,u<0&&(u=0,b=window.innerWidth)),o+E>window.innerHeight&&(o=window.innerHeight-E,o<0&&(o=0,E=window.innerHeight)),e.value.style.left=`${u}px`,e.value.style.top=`${o}px`,e.value.style.width=`${b}px`,e.value.style.height=`${E}px`};return Ht(()=>{!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`),g(),window.addEventListener("resize",g))}),nt(()=>{document.documentElement.removeEventListener("mousemove",m),document.documentElement.removeEventListener("touchmove",m),document.documentElement.removeEventListener("mouseup",s),document.documentElement.removeEventListener("touchend",s),document.documentElement.removeEventListener("mousemove",a),document.documentElement.removeEventListener("touchmove",a),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v),window.removeEventListener("resize",g)}),ge(()=>[e.value,t.value,n.value],([u,o,b])=>{u&&o&&(o.addEventListener("mousedown",w),o.addEventListener("touchstart",w)),u&&b&&(b.addEventListener("mousedown",l),b.addEventListener("touchstart",l))}),{handleResizeMouseDown:w,handleDragMouseDown:l}}const Zr={class:"container"},ea={class:"action-bar"},ta={key:0,class:"icon",style:{cursor:"pointer"}},na={key:0,"flex-placeholder":""},ia={key:1,class:"action-bar"},ra={key:0,class:"gen-info"},aa={class:"tags"},la={class:"name"},sa={class:"value"},oa=pe({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Ne(),r=Q(),d=Q([]),f=J(()=>{var a;return(((a=i.conf)==null?void 0:a.all_custom_tags)??[]).reduce((v,g)=>[...v,{...g,selected:!!d.value.find(u=>u.id===g.id)}],[])}),h=Q(""),c=ze(),y=Q("");ge(()=>{var a;return(a=n==null?void 0:n.file)==null?void 0:a.fullpath},async a=>{a&&(c.tasks.forEach(v=>v.cancel()),c.pushAction(()=>Je(a)).res.then(v=>{y.value=v}))},{immediate:!0});const k=a=>{a&&c.pushAction(()=>Kt(n.file.fullpath)).res.then(v=>{d.value=v})},C=Q(),w=Q(),m=si("fullScreenContextMenu.vue-drag",{left:100,top:100,width:512,height:384,expanded:!0});Xr(r,C,w,{...m.value,onDrag:fe(function(a,v){m.value={...m.value,left:a,top:v}},300),onResize:fe(function(a,v){m.value={...m.value,width:a,height:v}},300)});function s(a){return a.parentNode}ve("load",a=>{const v=a.target;v.className==="ant-image-preview-img"&&(h.value=`${v.naturalWidth} x ${v.naturalHeight}`)},{capture:!0});const l=J(()=>{const a=[{name:j("fileName"),val:n.file.name},{name:j("fileSize"),val:n.file.size}];return h.value&&a.push({name:j("resolution"),val:h.value}),a});return(a,v)=>{const g=se,u=le,o=Jt,b=Yt,E=Rt;return M(),V("div",{ref_key:"el",ref:r,class:ye(["full-screen-menu",{"unset-size":!z(m).expanded}]),onWheelCapture:v[5]||(v[5]=oi(()=>{},["stop"]))},[Y("div",Zr,[Y("div",ea,[Y("div",{ref_key:"dragHandle",ref:w,class:"icon",style:{cursor:"grab"}},[p(z(qi))],512),Y("div",{class:"icon",style:{cursor:"pointer"},onClick:v[0]||(v[0]=S=>z(m).expanded=!z(m).expanded)},[z(m).expanded?(M(),W(z(Zi),{key:0})):(M(),W(z(ir),{key:1}))]),p(g,{onVisibleChange:k,"get-popup-container":s},{overlay:_(()=>[p(Xe,{file:a.file,idx:a.idx,"selected-tag":d.value,"disable-delete":z(ie)(a.file)===z(i).fullscreenPreviewInitialUrl,onContextMenuClick:v[1]||(v[1]=(S,P,T)=>t("contextMenuClick",S,P,T))},null,8,["file","idx","selected-tag","disable-delete"])]),default:_(()=>[z(m).expanded?q("",!0):(M(),V("div",ta,[p(z(et))]))]),_:1}),z(m).expanded?(M(),V("div",na)):q("",!0),z(m).expanded?(M(),V("div",ia,[p(g,{trigger:["hover"],"get-popup-container":s,onVisibleChange:k},{overlay:_(()=>[p(b,{onClick:v[2]||(v[2]=S=>t("contextMenuClick",S,a.file,a.idx))},{default:_(()=>[(M(!0),V(re,null,$e(f.value,S=>(M(),W(o,{key:`toggle-tag-${S.id}`},{default:_(()=>[N(L(S.name)+" ",1),S.selected?(M(),W(z(Zt),{key:0})):(M(),W(z(tn),{key:1}))]),_:2},1024))),128))]),_:1})]),default:_(()=>[p(u,null,{default:_(()=>[N(L(a.$t("toggleTag")),1)]),_:1})]),_:1}),p(g,{trigger:["hover"],"get-popup-container":s},{overlay:_(()=>[p(b,{onClick:v[3]||(v[3]=S=>t("contextMenuClick",S,a.file,a.idx))},{default:_(()=>{var S;return[((S=z(i).conf)==null?void 0:S.launch_mode)!=="server"?(M(),V(re,{key:0},[p(o,{key:"send2txt2img"},{default:_(()=>[N(L(a.$t("sendToTxt2img")),1)]),_:1}),p(o,{key:"send2img2img"},{default:_(()=>[N(L(a.$t("sendToImg2img")),1)]),_:1}),p(o,{key:"send2inpaint"},{default:_(()=>[N(L(a.$t("sendToInpaint")),1)]),_:1}),p(o,{key:"send2extras"},{default:_(()=>[N(L(a.$t("sendToExtraFeatures")),1)]),_:1}),p(E,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:_(()=>[p(o,{key:"send2controlnet-txt2img"},{default:_(()=>[N("ControlNet - "+L(a.$t("t2i")),1)]),_:1}),p(o,{key:"send2controlnet-img2img"},{default:_(()=>[N("ControlNet - "+L(a.$t("i2i")),1)]),_:1}),p(o,{key:"send2outpaint"},{default:_(()=>[N("Outpaint")]),_:1})]),_:1},8,["title"])],64)):q("",!0),p(o,{key:"send2savedDir"},{default:_(()=>[N(L(a.$t("send2savedDir")),1)]),_:1}),p(o,{key:"deleteFiles",disabled:z(ie)(a.file)===z(i).fullscreenPreviewInitialUrl},{default:_(()=>[N(L(a.$t("deleteSelected")),1)]),_:1},8,["disabled"]),p(o,{key:"previewInNewWindow"},{default:_(()=>[N(L(a.$t("previewInNewWindow")),1)]),_:1}),p(o,{key:"download"},{default:_(()=>[N(L(a.$t("download")),1)]),_:1}),p(o,{key:"copyPreviewUrl"},{default:_(()=>[N(L(a.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:_(()=>[p(u,null,{default:_(()=>[N(L(z(j)("openContextMenu")),1)]),_:1})]),_:1}),p(u,{onClick:v[4]||(v[4]=S=>z(xe)(y.value))},{default:_(()=>[N(L(a.$t("copyPrompt")),1)]),_:1})])):q("",!0)]),z(m).expanded?(M(),V("div",ra,[Y("div",aa,[(M(!0),V(re,null,$e(l.value,S=>(M(),V("span",{class:"tag",key:S.name},[Y("span",la,L(S.name),1),Y("span",sa,L(S.val),1)]))),128))]),N(" "+L(y.value),1)])):q("",!0)]),z(m).expanded?(M(),V("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:C},[p(z(ji))],512)):q("",!0)],34)}}});const ka=qt(oa,[["__scopeId","data-v-38c5e3f9"]]);export{se as D,ha as L,ma as R,pa as S,ya as a,ba as b,wa as c,Sa as d,ga as e,Aa as f,je as g,cn as h,Ea as i,ka as j,Re as k,va as s,ae as u}; diff --git a/vue/dist/assets/globalSetting-48b5c989.js b/vue/dist/assets/globalSetting-943bde86.js similarity index 97% rename from vue/dist/assets/globalSetting-48b5c989.js rename to vue/dist/assets/globalSetting-943bde86.js index da652ec..b0e7c9d 100644 --- a/vue/dist/assets/globalSetting-48b5c989.js +++ b/vue/dist/assets/globalSetting-943bde86.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-77d97794.js";import{N as W,_ as q,F as ye}from"./numInput-58b5e4bb.js";import{g as Se}from"./shortcut-e119c30f.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-d9e8fbed.js";import{N as W,_ as q,F as ye}from"./numInput-8c720f27.js";import{g as Se}from"./shortcut-9b4bff3d.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-b5d98c21.js b/vue/dist/assets/hook-900c55c9.js similarity index 88% rename from vue/dist/assets/hook-b5d98c21.js rename to vue/dist/assets/hook-900c55c9.js index a616632..5777d3d 100644 --- a/vue/dist/assets/hook-b5d98c21.js +++ b/vue/dist/assets/hook-900c55c9.js @@ -1 +1 @@ -import{$ as c,bO as q,bd as D}from"./index-77d97794.js";import{u as E,b as P,f as z,a as G,c as L,d as O,e as Q,k as R}from"./fullScreenContextMenu-4736d6b8.js";const H=()=>{const e=c(),l=q(),o=c(),s={tabIdx:-1,target:"local",paneIdx:-1,walkMode:!1},{stackViewEl:r,multiSelectedIdxs:u,stack:m}=E({images:e}).toRefs(),{itemSize:d,gridItems:v,cellWidth:f}=P(s),{showMenuIdx:p}=z();G(s);const{onFileDragStart:I,onFileDragEnd:g}=L(),{showGenInfo:w,imageGenInfo:k,q:x,onContextMenuClick:i,onFileItemClick:h}=O(s,{openNext:D}),{previewIdx:F,previewing:M,onPreviewVisibleChange:b,previewImgMove:C,canPreview:S}=Q(s,{scroller:o}),y=async(a,t,n)=>{m.value=[{curr:"",files:e.value}],await i(a,t,n)};return R("removeFiles",async({paths:a})=>{var t;e.value=(t=e.value)==null?void 0:t.filter(n=>!a.includes(n.fullpath))}),{scroller:o,queue:l,images:e,onContextMenuClickU:y,stackViewEl:r,previewIdx:F,previewing:M,onPreviewVisibleChange:b,previewImgMove:C,canPreview:S,itemSize:d,gridItems:v,showGenInfo:w,imageGenInfo:k,q:x,onContextMenuClick:i,onFileItemClick:h,showMenuIdx:p,multiSelectedIdxs:u,onFileDragStart:I,onFileDragEnd:g,cellWidth:f}};export{H as u}; +import{$ as c,bO as q,bd as D}from"./index-d9e8fbed.js";import{u as E,b as P,f as z,a as G,c as L,d as O,e as Q,k as R}from"./fullScreenContextMenu-caca4231.js";const H=()=>{const e=c(),l=q(),o=c(),s={tabIdx:-1,target:"local",paneIdx:-1,walkMode:!1},{stackViewEl:r,multiSelectedIdxs:u,stack:m}=E({images:e}).toRefs(),{itemSize:d,gridItems:v,cellWidth:f}=P(s),{showMenuIdx:p}=z();G(s);const{onFileDragStart:I,onFileDragEnd:g}=L(),{showGenInfo:w,imageGenInfo:k,q:x,onContextMenuClick:i,onFileItemClick:h}=O(s,{openNext:D}),{previewIdx:F,previewing:M,onPreviewVisibleChange:b,previewImgMove:C,canPreview:S}=Q(s,{scroller:o}),y=async(a,t,n)=>{m.value=[{curr:"",files:e.value}],await i(a,t,n)};return R("removeFiles",async({paths:a})=>{var t;e.value=(t=e.value)==null?void 0:t.filter(n=>!a.includes(n.fullpath))}),{scroller:o,queue:l,images:e,onContextMenuClickU:y,stackViewEl:r,previewIdx:F,previewing:M,onPreviewVisibleChange:b,previewImgMove:C,canPreview:S,itemSize:d,gridItems:v,showGenInfo:w,imageGenInfo:k,q:x,onContextMenuClick:i,onFileItemClick:h,showMenuIdx:p,multiSelectedIdxs:u,onFileDragStart:I,onFileDragEnd:g,cellWidth:f}};export{H as u}; diff --git a/vue/dist/assets/index-77d97794.js b/vue/dist/assets/index-d9e8fbed.js similarity index 99% rename from vue/dist/assets/index-77d97794.js rename to vue/dist/assets/index-d9e8fbed.js index a324945..2a91b20 100644 --- a/vue/dist/assets/index-77d97794.js +++ b/vue/dist/assets/index-d9e8fbed.js @@ -125,7 +125,7 @@ summary tabindex target title type usemap value width wmode wrap`,sN=`onCopy onC * (c) 2023 kazuya kawaguchi * Released under the MIT License. */const V8="9.3.0-beta.19";function H8(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(to().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(to().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(to().__INTLIFY_PROD_DEVTOOLS__=!1)}let j1=Ue.__EXTEND_POINT__;const en=()=>++j1,Ct={UNEXPECTED_RETURN_TYPE:j1,INVALID_ARGUMENT:en(),MUST_BE_CALL_SETUP_TOP:en(),NOT_INSTALLED:en(),NOT_AVAILABLE_IN_LEGACY_MODE:en(),REQUIRED_VALUE:en(),INVALID_VALUE:en(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:en(),NOT_INSTALLED_WITH_PROVIDE:en(),UNEXPECTED_ERROR:en(),NOT_COMPATIBLE_LEGACY_VUE_I18N:en(),BRIDGE_SUPPORT_VUE_2_ONLY:en(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:en(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:en(),__EXTEND_POINT__:en()};function Pt(t,...e){return ru(t,null,void 0)}const uf=Aa("__translateVNode"),cf=Aa("__datetimeParts"),ff=Aa("__numberParts"),z1=Aa("__setPluralRules"),W1=Aa("__injectWithOption");function df(t){if(!Je(t))return t;for(const e in t)if(pv(t,e))if(!e.includes("."))Je(t[e])&&df(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i{if("locale"in l&&"resource"in l){const{locale:s,resource:u}=l;s?(o[s]=o[s]||{},no(u,o[s])):no(u,o)}else be(l)&&no(JSON.parse(l),o)}),a==null&&i)for(const l in o)pv(o,l)&&df(o[l]);return o}const gl=t=>!Je(t)||it(t);function no(t,e){if(gl(t)||gl(e))throw Pt(Ct.INVALID_VALUE);for(const n in t)pv(t,n)&&(gl(t[n])||gl(e[n])?e[n]=t[n]:no(t[n],e[n]))}function V1(t){return t.type}function H1(t,e,n){let r=Je(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=iu(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Je(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Je(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function iy(t){return x(Oa,null,t,0)}const oy="__INTLIFY_META__";let ly=0;function sy(t){return(e,n,r,a)=>t(n,r,bt()||void 0,a)}const U8=()=>{const t=bt();let e=null;return t&&(e=V1(t)[oy])?{[oy]:e}:null};function gv(t={},e){const{__root:n}=t,r=n===void 0;let a=Fe(t.inheritLocale)?t.inheritLocale:!0;const i=W(n&&a?n.locale.value:be(t.locale)?t.locale:zo),o=W(n&&a?n.fallbackLocale.value:be(t.fallbackLocale)||it(t.fallbackLocale)||Ie(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),l=W(iu(i.value,t)),s=W(Ie(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=W(Ie(t.numberFormats)?t.numberFormats:{[i.value]:{}});let f=n?n.missingWarn:Fe(t.missingWarn)||Kr(t.missingWarn)?t.missingWarn:!0,v=n?n.fallbackWarn:Fe(t.fallbackWarn)||Kr(t.fallbackWarn)?t.fallbackWarn:!0,h=n?n.fallbackRoot:Fe(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,c=gt(t.missing)?t.missing:null,d=gt(t.missing)?sy(t.missing):null,m=gt(t.postTranslation)?t.postTranslation:null,p=n?n.warnHtmlMessage:Fe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter;const b=n?n.modifiers:Ie(t.modifiers)?t.modifiers:{};let w=t.pluralRules||n&&n.pluralRules,C;C=(()=>{r&&Xg(null);const V={version:V8,locale:i.value,fallbackLocale:o.value,messages:l.value,modifiers:b,pluralRules:w,missing:d===null?void 0:d,missingWarn:f,fallbackWarn:v,fallbackFormat:g,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:p,escapeParameter:y,messageResolver:t.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=s.value,V.numberFormats=u.value,V.__datetimeFormatters=Ie(C)?C.__datetimeFormatters:void 0,V.__numberFormatters=Ie(C)?C.__numberFormatters:void 0;const U=L8(V);return r&&Xg(U),U})(),Fi(C,i.value,o.value);function P(){return[i.value,o.value,l.value,s.value,u.value]}const I=K({get:()=>i.value,set:V=>{i.value=V,C.locale=i.value}}),O=K({get:()=>o.value,set:V=>{o.value=V,C.fallbackLocale=o.value,Fi(C,i.value,V)}}),N=K(()=>l.value),L=K(()=>s.value),F=K(()=>u.value);function j(){return gt(m)?m:null}function z(V){m=V,C.postTranslation=V}function $(){return c}function M(V){V!==null&&(d=sy(V)),c=V,C.missing=d}const A=(V,U,se,ce,we,Pe)=>{P();let Ee;if(__INTLIFY_PROD_DEVTOOLS__)try{Yg(U8()),r||(C.fallbackContext=n?R8():void 0),Ee=V(C)}finally{Yg(null),r||(C.fallbackContext=void 0)}else Ee=V(C);if(St(Ee)&&Ee===au){const[$e,ft]=U();return n&&h?ce(n):we($e)}else{if(Pe(Ee))return Ee;throw Pt(Ct.UNEXPECTED_RETURN_TYPE)}};function k(...V){return A(U=>Reflect.apply(ey,null,[U,...V]),()=>of(...V),"translate",U=>Reflect.apply(U.t,U,[...V]),U=>U,U=>be(U))}function D(...V){const[U,se,ce]=V;if(ce&&!Je(ce))throw Pt(Ct.INVALID_ARGUMENT);return k(U,se,$t({resolvedMessage:!0},ce||{}))}function q(...V){return A(U=>Reflect.apply(ty,null,[U,...V]),()=>lf(...V),"datetime format",U=>Reflect.apply(U.d,U,[...V]),()=>Gg,U=>be(U))}function ee(...V){return A(U=>Reflect.apply(ry,null,[U,...V]),()=>sf(...V),"number format",U=>Reflect.apply(U.n,U,[...V]),()=>Gg,U=>be(U))}function Z(V){return V.map(U=>be(U)||St(U)||Fe(U)?iy(String(U)):U)}const G={normalize:Z,interpolate:V=>V,type:"vnode"};function ne(...V){return A(U=>{let se;const ce=U;try{ce.processor=G,se=Reflect.apply(ey,null,[ce,...V])}finally{ce.processor=null}return se},()=>of(...V),"translate",U=>U[uf](...V),U=>[iy(U)],U=>it(U))}function oe(...V){return A(U=>Reflect.apply(ry,null,[U,...V]),()=>sf(...V),"number format",U=>U[ff](...V),()=>[],U=>be(U)||it(U))}function de(...V){return A(U=>Reflect.apply(ty,null,[U,...V]),()=>lf(...V),"datetime format",U=>U[cf](...V),()=>[],U=>be(U)||it(U))}function me(V){w=V,C.pluralRules=w}function ve(V,U){const se=be(U)?U:i.value,ce=R(se);return C.messageResolver(ce,V)!==null}function he(V){let U=null;const se=I1(C,o.value,i.value);for(let ce=0;ce{a&&(i.value=V,C.locale=V,Fi(C,i.value,o.value))}),pe(n.fallbackLocale,V=>{a&&(o.value=V,C.fallbackLocale=V,Fi(C,i.value,o.value))}));const X={id:ly,locale:I,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(V){a=V,V&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,Fi(C,i.value,o.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:N,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(V){f=V,C.missingWarn=f},get fallbackWarn(){return v},set fallbackWarn(V){v=V,C.fallbackWarn=v},get fallbackRoot(){return h},set fallbackRoot(V){h=V},get fallbackFormat(){return g},set fallbackFormat(V){g=V,C.fallbackFormat=g},get warnHtmlMessage(){return p},set warnHtmlMessage(V){p=V,C.warnHtmlMessage=V},get escapeParameter(){return y},set escapeParameter(V){y=V,C.escapeParameter=V},t:k,getLocaleMessage:R,setLocaleMessage:S,mergeLocaleMessage:E,getPostTranslationHandler:j,setPostTranslationHandler:z,getMissingHandler:$,setMissingHandler:M,[z1]:me};return X.datetimeFormats=L,X.numberFormats=F,X.rt=D,X.te=ve,X.tm=ye,X.d=q,X.n=ee,X.getDateTimeFormat=B,X.setDateTimeFormat=H,X.mergeDateTimeFormat=Q,X.getNumberFormat=ae,X.setNumberFormat=ie,X.mergeNumberFormat=re,X[W1]=t.__injectWithOption,X[uf]=ne,X[cf]=de,X[ff]=oe,X}function K8(t){const e=be(t.locale)?t.locale:zo,n=be(t.fallbackLocale)||it(t.fallbackLocale)||Ie(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=gt(t.missing)?t.missing:void 0,a=Fe(t.silentTranslationWarn)||Kr(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Fe(t.silentFallbackWarn)||Kr(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Fe(t.fallbackRoot)?t.fallbackRoot:!0,l=!!t.formatFallbackMessages,s=Ie(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,f=gt(t.postTranslation)?t.postTranslation:void 0,v=be(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,h=!!t.escapeParameterHtml,g=Fe(t.sync)?t.sync:!0;let c=t.messages;if(Ie(t.sharedMessages)){const C=t.sharedMessages;c=Object.keys(C).reduce((P,I)=>{const O=P[I]||(P[I]={});return $t(O,C[I]),P},c||{})}const{__i18n:d,__root:m,__injectWithOption:p}=t,y=t.datetimeFormats,b=t.numberFormats,w=t.flatJson;return{locale:e,fallbackLocale:n,messages:c,flatJson:w,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:l,modifiers:s,pluralRules:u,postTranslation:f,warnHtmlMessage:v,escapeParameter:h,messageResolver:t.messageResolver,inheritLocale:g,__i18n:d,__root:m,__injectWithOption:p}}function vf(t={},e){{const n=gv(K8(t)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return Fe(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Fe(a)?!a:a},get silentFallbackWarn(){return Fe(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Fe(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,o,l]=a,s={};let u=null,f=null;if(!be(i))throw Pt(Ct.INVALID_ARGUMENT);const v=i;return be(o)?s.locale=o:it(o)?u=o:Ie(o)&&(f=o),it(l)?u=l:Ie(l)&&(f=l),Reflect.apply(n.t,n,[v,u||f||{},s])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,l]=a,s={plural:1};let u=null,f=null;if(!be(i))throw Pt(Ct.INVALID_ARGUMENT);const v=i;return be(o)?s.locale=o:St(o)?s.plural=o:it(o)?u=o:Ie(o)&&(f=o),be(l)?s.locale=l:it(l)?u=l:Ie(l)&&(f=l),Reflect.apply(n.t,n,[v,u||f||{},s])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,r)}};return r}}const yv={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function G8({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>[...r,...a.type===De?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function U1(t){return De}const q8=fe({name:"i18n-t",props:$t({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>St(t)||!isNaN(t)}},yv),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||bv({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(v=>v!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=be(t.plural)?+t.plural:t.plural);const l=G8(e,i),s=a[uf](t.keypath,l,o),u=$t({},r),f=be(t.tag)||Je(t.tag)?t.tag:U1();return wa(f,u,s)}}}),uy=q8;function Y8(t){return it(t)&&!be(t[0])}function K1(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let l={};t.locale&&(o.locale=t.locale),be(t.format)?o.key=t.format:Je(t.format)&&(be(t.format.key)&&(o.key=t.format.key),l=Object.keys(t.format).reduce((h,g)=>n.includes(g)?$t({},h,{[g]:t.format[g]}):h,{}));const s=r(t.value,o,l);let u=[o.key];it(s)?u=s.map((h,g)=>{const c=a[h.type],d=c?c({[h.type]:h.value,index:g,parts:s}):[h.value];return Y8(d)&&(d[0].key=`${h.type}-${g}`),d}):be(s)&&(u=[s]);const f=$t({},i),v=be(t.tag)||Je(t.tag)?t.tag:U1();return wa(v,f,u)}}const X8=fe({name:"i18n-n",props:$t({value:{type:Number,required:!0},format:{type:[String,Object]}},yv),setup(t,e){const n=t.i18n||bv({useScope:"parent",__useComponent:!0});return K1(t,e,B1,(...r)=>n[ff](...r))}}),cy=X8,J8=fe({name:"i18n-d",props:$t({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yv),setup(t,e){const n=t.i18n||bv({useScope:"parent",__useComponent:!0});return K1(t,e,F1,(...r)=>n[cf](...r))}}),fy=J8;function Q8(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Z8(t){const e=o=>{const{instance:l,modifiers:s,value:u}=o;if(!l||!l.$)throw Pt(Ct.UNEXPECTED_ERROR);const f=Q8(t,l.$),v=dy(u);return[Reflect.apply(f.t,f,[...vy(v)]),f]};return{created:(o,l)=>{const[s,u]=e(l);rf&&t.global===u&&(o.__i18nWatcher=pe(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=u,o.textContent=s},unmounted:o=>{rf&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const s=o.__composer,u=dy(l);o.textContent=Reflect.apply(s.t,s,[...vy(u)])}},getSSRProps:o=>{const[l]=e(o);return{textContent:l}}}}function dy(t){if(be(t))return{path:t};if(Ie(t)){if(!("path"in t))throw Pt(Ct.REQUIRED_VALUE,"path");return t}else throw Pt(Ct.INVALID_VALUE)}function vy(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},l=r||{};return be(n)&&(o.locale=n),St(a)&&(o.plural=a),St(i)&&(o.plural=i),[e,l,o]}function e5(t,e,...n){const r=Ie(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Fe(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":uy.name,uy),t.component(cy.name,cy),t.component(fy.name,fy)),t.directive("t",Z8(e))}function t5(t,e,n){return{beforeCreate(){const r=bt();if(!r)throw Pt(Ct.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=py(t,i):(i.__injectWithOption=!0,this.$i18n=vf(i))}else a.__i18n?this===this.$root?this.$i18n=py(t,a):this.$i18n=vf({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&H1(e,a,a),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const r=bt();if(!r)throw Pt(Ct.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function py(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[z1](e.pluralizationRules||t.pluralizationRules);const n=iu(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const n5=Aa("global-vue-i18n");function r5(t={},e){const n=__VUE_I18N_LEGACY_API__&&Fe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Fe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,l]=a5(t,n),s=Aa("");function u(h){return i.get(h)||null}function f(h,g){i.set(h,g)}function v(h){i.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(g,...c){if(g.__VUE_I18N_SYMBOL__=s,g.provide(g.__VUE_I18N_SYMBOL__,h),Ie(c[0])){const m=c[0];h.__composerExtend=m.__composerExtend,h.__vueI18nExtend=m.__vueI18nExtend}!n&&r&&p5(g,h.global),__VUE_I18N_FULL_INSTALL__&&e5(g,h,...c),__VUE_I18N_LEGACY_API__&&n&&g.mixin(t5(l,l.__composer,h));const d=g.unmount;g.unmount=()=>{h.dispose(),d()}},get global(){return l},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:f,__deleteInstance:v};return h}}function bv(t={}){const e=bt();if(e==null)throw Pt(Ct.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Pt(Ct.NOT_INSTALLED);const n=i5(e),r=l5(n),a=V1(e),i=o5(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Pt(Ct.NOT_AVAILABLE_IN_LEGACY_MODE);return f5(e,i,r,t)}if(i==="global")return H1(r,t,a),r;if(i==="parent"){let s=s5(n,e,t.__useComponent);return s==null&&(s=r),s}const o=n;let l=o.__getInstance(e);if(l==null){const s=$t({},t);"__i18n"in a&&(s.__i18n=a.__i18n),r&&(s.__root=r),l=gv(s),o.__composerExtend&&o.__composerExtend(l),c5(o,e),o.__setInstance(e,l)}return l}function a5(t,e,n){const r=Of();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>vf(t)):r.run(()=>gv(t));if(a==null)throw Pt(Ct.UNEXPECTED_ERROR);return[r,a]}}function i5(t){{const e=Ye(t.isCE?n5:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Pt(t.isCE?Ct.NOT_INSTALLED_WITH_PROVIDE:Ct.UNEXPECTED_ERROR);return e}}function o5(t,e){return nu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function l5(t){return t.mode==="composition"?t.global:t.global.__composer}function s5(t,e,n=!1){let r=null;const a=e.root;let i=u5(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[W1]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function u5(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function c5(t,e,n){Re(()=>{},e),on(()=>{t.__deleteInstance(e)},e)}function f5(t,e,n,r={}){const a=e==="local",i=Rn(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Pt(Ct.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Fe(r.inheritLocale)?r.inheritLocale:!be(r.locale),l=W(!a||o?n.locale.value:be(r.locale)?r.locale:zo),s=W(!a||o?n.fallbackLocale.value:be(r.fallbackLocale)||it(r.fallbackLocale)||Ie(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),u=W(iu(l.value,r)),f=W(Ie(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),v=W(Ie(r.numberFormats)?r.numberFormats:{[l.value]:{}}),h=a?n.missingWarn:Fe(r.missingWarn)||Kr(r.missingWarn)?r.missingWarn:!0,g=a?n.fallbackWarn:Fe(r.fallbackWarn)||Kr(r.fallbackWarn)?r.fallbackWarn:!0,c=a?n.fallbackRoot:Fe(r.fallbackRoot)?r.fallbackRoot:!0,d=!!r.fallbackFormat,m=gt(r.missing)?r.missing:null,p=gt(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:Fe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,w=a?n.modifiers:Ie(r.modifiers)?r.modifiers:{},C=r.pluralRules||a&&n.pluralRules;function _(){return[l.value,s.value,u.value,f.value,v.value]}const P=K({get:()=>i.value?i.value.locale.value:l.value,set:E=>{i.value&&(i.value.locale.value=E),l.value=E}}),I=K({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:E=>{i.value&&(i.value.fallbackLocale.value=E),s.value=E}}),O=K(()=>i.value?i.value.messages.value:u.value),N=K(()=>f.value),L=K(()=>v.value);function F(){return i.value?i.value.getPostTranslationHandler():p}function j(E){i.value&&i.value.setPostTranslationHandler(E)}function z(){return i.value?i.value.getMissingHandler():m}function $(E){i.value&&i.value.setMissingHandler(E)}function M(E){return _(),E()}function A(...E){return i.value?M(()=>Reflect.apply(i.value.t,null,[...E])):M(()=>"")}function k(...E){return i.value?Reflect.apply(i.value.rt,null,[...E]):""}function D(...E){return i.value?M(()=>Reflect.apply(i.value.d,null,[...E])):M(()=>"")}function q(...E){return i.value?M(()=>Reflect.apply(i.value.n,null,[...E])):M(()=>"")}function ee(E){return i.value?i.value.tm(E):{}}function Z(E,B){return i.value?i.value.te(E,B):!1}function Y(E){return i.value?i.value.getLocaleMessage(E):{}}function G(E,B){i.value&&(i.value.setLocaleMessage(E,B),u.value[E]=B)}function ne(E,B){i.value&&i.value.mergeLocaleMessage(E,B)}function oe(E){return i.value?i.value.getDateTimeFormat(E):{}}function de(E,B){i.value&&(i.value.setDateTimeFormat(E,B),f.value[E]=B)}function me(E,B){i.value&&i.value.mergeDateTimeFormat(E,B)}function ve(E){return i.value?i.value.getNumberFormat(E):{}}function he(E,B){i.value&&(i.value.setNumberFormat(E,B),v.value[E]=B)}function ye(E,B){i.value&&i.value.mergeNumberFormat(E,B)}const R={get id(){return i.value?i.value.id:-1},locale:P,fallbackLocale:I,messages:O,datetimeFormats:N,numberFormats:L,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(E){i.value&&(i.value.inheritLocale=E)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:w},get pluralRules(){return i.value?i.value.pluralRules:C},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackWarn(){return i.value?i.value.fallbackWarn:g},set fallbackWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackRoot(){return i.value?i.value.fallbackRoot:c},set fallbackRoot(E){i.value&&(i.value.fallbackRoot=E)},get fallbackFormat(){return i.value?i.value.fallbackFormat:d},set fallbackFormat(E){i.value&&(i.value.fallbackFormat=E)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(E){i.value&&(i.value.warnHtmlMessage=E)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(E){i.value&&(i.value.escapeParameter=E)},t:A,getPostTranslationHandler:F,setPostTranslationHandler:j,getMissingHandler:z,setMissingHandler:$,rt:k,d:D,n:q,tm:ee,te:Z,getLocaleMessage:Y,setLocaleMessage:G,mergeLocaleMessage:ne,getDateTimeFormat:oe,setDateTimeFormat:de,mergeDateTimeFormat:me,getNumberFormat:ve,setNumberFormat:he,mergeNumberFormat:ye};function S(E){E.locale.value=l.value,E.fallbackLocale.value=s.value,Object.keys(u.value).forEach(B=>{E.mergeLocaleMessage(B,u.value[B])}),Object.keys(f.value).forEach(B=>{E.mergeDateTimeFormat(B,f.value[B])}),Object.keys(v.value).forEach(B=>{E.mergeNumberFormat(B,v.value[B])}),E.escapeParameter=b,E.fallbackFormat=d,E.fallbackRoot=c,E.fallbackWarn=g,E.missingWarn=h,E.warnHtmlMessage=y}return Bf(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Pt(Ct.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=i.value=t.proxy.$i18n.__composer;e==="global"?(l.value=E.locale.value,s.value=E.fallbackLocale.value,u.value=E.messages.value,f.value=E.datetimeFormats.value,v.value=E.numberFormats.value):a&&S(E)}),R}const d5=["locale","fallbackLocale","availableLocales"],v5=["t","rt","d","n","tm","te"];function p5(t,e){const n=Object.create(null);d5.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw Pt(Ct.UNEXPECTED_ERROR);const i=tt(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,v5.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Pt(Ct.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}M8(F8);N8(v8);k8(I1);H8();if(__INTLIFY_PROD_DEVTOOLS__){const t=to();t.__INTLIFY__=!0,_8(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const h5={errorOccurred:"发生了个错误",useThumbnailPreview:"使用缩略图预览",smallerIntervalMeansMoreNetworkTraffic:"越小对网络压力越大",gridThumbnailWidth:"网格缩略图宽度",largeGridThumbnailWidth:"大尺寸网格缩略图宽度",start:"开始",tip:"提示",startedAt:"开始于:",sortByDateAscending:"修改日期升序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"创建日期升序",sortByCreatedDateDescending:"创建日期降序",sortByNameAscending:"名称升序",sortByNameDescending:"名称降序",sortBySizeAscending:"大小升序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"输入地址回车",go:"前往",unknownError:"未知错误",loadingNextFolder:"即将加载下一个文件夹的文件",moveFailedCheckPath:"移动失败,检查你的路径输入",detailList:"详情列表",previewGrid:"预览网格",largePreviewGrid:"大尺寸预览网格",sortBy:"按照",moveSelectedFilesTo:"下列文件 移动 / 复制 至",confirm:"确定",download:"下载",local:"本地",sendImageFailed:"发送图像失败,请携带console的错误消息找开发者",confirmDelete:"确认删除?",deleteSuccess:"删除成功",doubleClickToCopy:"双击复制",root:"根",drive:"盘",refresh:"刷新",quickMove:"快速移动",more:"更多",viewMode:"查看模式",sortingMethod:"排序方法",copyPath:"复制路径",deleteSelected:"删除",previewInNewWindow:"在新窗口预览",copySourceFilePreviewLink:"复制源文件预览链接",viewGenerationInfo:"查看生成信息(prompt等)",sendToTxt2img:"发送到文生图",sendToImg2img:"发送到图生图",sendToInpaint:"发送到局部重绘",sendToControlNet:"发送到ControlNet",sendToExtraFeatures:"发送到附加功能",loadNextPage:"加载下一页",localFile:"本地文件",globalSettings:"全局设置",welcome:"欢迎",openInNewWindow:"在新页面打开",restoreLastRecord:"还原上次记录",launch:"启动",walkMode:"使用 Walk 模式浏览图片",launchFromQuickMove:"从快速移动启动",recent:"最近",emptyStartPage:"空启动页",t2i:"文生图",i2i:"图生图",saveButtonSavesTo:"保存",extra:"附加",gridImage:"宫格图","i2i-grid":"图生图网格",image:"图像","t2i-grid":"文生图宫格",workingFolder:"工作文件夹",lang:"语言",langChangeReload:"重新加载: 一些变化可能需要在重新加载后生效",hypernetworks:"超网络模型",openOnTheRight:"在右边打开",openInNewTab:"在新标签打开",openWithWalkMode:"使用 Walk 模式打开",longPressOpenContextMenu:"支持使用长按打开右键菜单",searchResults:"搜索结果",imgSearch:"图像搜索",onlyFoldersAndImages:"只显示文件夹和图像",send2savedDir:"发送到保存的文件夹",unknownSavedDir:"找不到保存的文件夹(配置文件中的outdir_save字段)",Model:"模型",Sampler:"采样器",lora:"LoRA",size:"尺寸",pos:"正面提示",generateIndexHint:"生成索引用于搜索图像",UpdateIndex:"更新索引",needGenerateIdx:`你需要先点击按钮生成索引用于搜索图像 -这个过程可能需要消耗几分钟`,search:"搜索",custom:"自定义",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在于其他类型",alreadyExists:"已存在",toggleTag:"切换标签选中 (收藏)",addComplete:"添加完成",removeComplete:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",refreshCompleted:"刷新完成","walk-mode-move-message":"在walk模式下仅允许使用“快速移动”移动位置",long_loading:"已经连续加载超过5秒,这可能在一会后恢复,如果一直发生这种问题请查看FAQ自行解决或者提issue",manualExitFullScreen:"你删除了最后一张图片,也许需要你手动退出全屏预览",copied:"已复制!","index.expired":"索引过期,正在自动更新","auto.refreshed":"自动刷新完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"选择完全匹配的 Tag",selectAnyMatchTag:"可选,选择匹配其中一个或多个的 Tag",selectExcludeTag:"可选,选择需要排除掉的 Tag",faq:"常见问题",autoUpdate:"检测到发生改变自动更新","fuzzy-search":"模糊搜索","fuzzy-search-placeholder":"输入图像信息或者文件名的一部分来进行搜索","fuzzy-search-noResults":"什么都没找到",openWithLocalFileBrowser:"使用本地文件浏览器打开",addToSearchScanPathAndQuickMove:"添加到搜索扫描路径和快速移动",removeFromSearchScanPathAndQuickMove:"从搜索扫描路径和快速移动中移除",serverKeyRequired:"服务器配置了密匙,你必须提供相同的密匙才能继续使用",shortcutKey:"快捷键(仅允许在全屏预览下使用)",shortcutKeyDescription:"点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合",fullscreenRestriction:"受技术限制,当前拓展不允许删除打开全屏预览时的首张图片。",clear:"清除",toggleTagSelection:'切换 "{tag}" 标签选中',changlog:"更新日志",accessControlModeTips:"为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env",dontShowAgain:"不再显示",defaultSortingMethod:"默认排序方法",defaultViewMode:"默认查看模式",showPreviewImage:"显示预览图",copy:"复制",edit:"编辑",document:"文档",multiSelectTips:"您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作",copyLocationUrlSuccessMsg:"复制完成,你可以通过复制的链接直接打开当前文件夹",share:"分享",dragImageHere:"拖拽图像到这里",imgCompare:"图像对比",close:"关闭",fullscreenview:"全屏查看",fileName:"文件名",resolution:"分辨率",fileSize:"文件大小",selectAll:"全选","tauriLaunchConf.readSdWebuiConfigTitle":"读取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享","tauriLaunchConf.selectSdWebuiFolder":"点击选择SD-webui的文件夹","tauriLaunchConf.skipThisConfigTitle":"跳过本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍将可用,你可以在设置页重置","tauriLaunchConf.skipButton":"跳过","tauriLaunchConfMessages.configNotFound":"找不到对应配置,检查选择的文件夹是否正确","tauriLaunchConfMessages.folderNotFound":"找不到对应文件夹,检查选择的文件夹是否正确","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即将重启","tauriLaunchConfMessages.firstTimeUserTitle":"看起来你好像是第一次使用, 需要进行一些配置",inputTargetFolderPath:"输入目标文件夹的绝对路径",pathDoesNotExist:"路径不存在",confirmToAddToQuickMove:"确定添加?如果文件夹过大将会消耗过多时间建立索引。(如果不需要了你可以在文件夹右上角的更多里面移除)",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的“更多”里面进行调整",desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展"},m5={sendToThirdPartyExtension:"Send to third-party extension",createFolder:"Create Folder",inputFolderName:"Input Folder Name",desktop:"Desktop",move:"Move",majorUpdateCustomCellSizeTips:'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.',ImageBrowsingSettings:"Image Browsing Settings",other:"Other",livePreview:"Live Preview",gridCellWidth:"Grid Cell Width (px)",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToQuickMove:"Are you sure you want to add? This may take a lot of time to index if the folder is large. (You can remove it from 'More' in the top right corner of the folder if you no longer need it.)",clientSpecificSettings:"Client-specific settings",initiateSoftwareStartupConfig:"Initiate software startup configuration","tauriLaunchConf.readSdWebuiConfigTitle":"Read Stable Diffusion Webui Config","tauriLaunchConf.readSdWebuiConfigDescription":"If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.","tauriLaunchConf.selectSdWebuiFolder":"Click to select the SD-webui folder","tauriLaunchConf.skipThisConfigTitle":"Skip This Configuration","tauriLaunchConf.skipThisConfigDescription":"All features will still be available and you can reset them in the settings page.","tauriLaunchConf.skipButton":"Skip","tauriLaunchConfMessages.configNotFound":"Cannot find the corresponding configuration. Please check if the selected folder is correct.","tauriLaunchConfMessages.folderNotFound":"Cannot find the corresponding folder. Please check if the selected folder is correct.","tauriLaunchConfMessages.configCompletedMessage":"Configuration completed. The application will restart shortly.","tauriLaunchConfMessages.firstTimeUserTitle":"It looks like this is your first time using the application. Some configuration is required.",selectAll:"Select All",close:"Close",fileName:"File Name",resolution:"Resolution",fileSize:"File Size",fullscreenview:"Fullscreen View",imgCompare:"Image Comparison",share:"Share",dragImageHere:"Drag image here",copyLocationUrlSuccessMsg:"Copy completed, you can directly open the current folder through the copied link",multiSelectTips:"You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations",document:"Document",copy:"Copy",edit:"Edit",defaultSortingMethod:"Default Sorting Method",defaultViewMode:"Default View Mode",showPreviewImage:"Show Preview Image",dontShowAgain:"Don't show again",accessControlModeTips:"To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.",changlog:"Change log",clear:"Clear",toggleTagSelection:'Toggle Selection of Tag "{tag}"',fullscreenRestriction:"Due to technical limitations, the first image cannot be deleted when opening the fullscreen preview.",shortcutKey:"Keyboard Shortcuts (Only Available in full-screen preview mode)",shortcutKeyDescription:"Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.",serverKeyRequired:"The server has configured a key. You must provide the same key to continue using it.",removeFromSearchScanPathAndQuickMove:"Remove from Search Scan Path and Quick Move",addToSearchScanPathAndQuickMove:"Add to Search Scan Path and Quick Move",openWithLocalFileBrowser:"Open with Local File Browser","fuzzy-search-noResults":"Nothing was found","fuzzy-search-placeholder":"Enter a part of the image information or filename to search","fuzzy-search":"Fuzzy search",autoUpdate:"Detected changes, automatically updating",faq:"FAQ",selectExactMatchTag:"Select Exact Match Tags",selectAnyMatchTag:"Optional, Select Any Match Tags",selectExcludeTag:"Optional, Select Exclude Tags",exactMatch:"Exact Match",anyMatch:"Match Any",exclude:"Exclude","auto.refreshed":"Auto refresh completed!",copied:"Copied!","index.expired":"Index expired, updating automatically",manualExitFullScreen:"You have deleted the last image and may need to manually exit full-screen preview",long_loading:"Loading has been taking more than 5 seconds, it may recover shortly. If this issue persists, please check the FAQ for a solution or open an issue.","walk-mode-move-message":"Moving position is only allowed using 'Quick Move' in walk mode",refreshCompleted:"Refresh completed",addedTagToImage:'Tag "{tag}" has been added to this image',removedTagFromImage:'Tag "{tag}" has been removed from this image',openContextMenu:"Open context menu",copyPrompt:"Copy prompt",toggleTag:"Toggle Tag Selection (Favorite)",addComplete:"Add complete",removeComplete:"Remove Complete",existInOtherType:"Already exists in other type",alreadyExists:"Already exists",cancel:"Cancel",submit:"Submit",add:"Add",custom:"Custom",needGenerateIdx:`You need to click the button to generate an index for searching images. +这个过程可能需要消耗几分钟`,search:"搜索",custom:"自定义",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在于其他类型",alreadyExists:"已存在",toggleTag:"切换标签选中 (收藏)",addComplete:"添加完成",removeComplete:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",refreshCompleted:"刷新完成","walk-mode-move-message":"在walk模式下仅允许使用“快速移动”移动位置",long_loading:"已经连续加载超过5秒,这可能在一会后恢复,如果一直发生这种问题请查看FAQ自行解决或者提issue",manualExitFullScreen:"你删除了最后一张图片,也许需要你手动退出全屏预览",copied:"已复制!","index.expired":"索引过期,正在自动更新","auto.refreshed":"自动刷新完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"选择完全匹配的 Tag",selectAnyMatchTag:"可选,选择匹配其中一个或多个的 Tag",selectExcludeTag:"可选,选择需要排除掉的 Tag",faq:"常见问题",autoUpdate:"检测到发生改变自动更新","fuzzy-search":"模糊搜索","fuzzy-search-placeholder":"输入图像信息或者文件名的一部分来进行搜索","fuzzy-search-noResults":"什么都没找到",openWithLocalFileBrowser:"使用本地文件浏览器打开",addToSearchScanPathAndQuickMove:"添加到搜索扫描路径和快速移动",removeFromSearchScanPathAndQuickMove:"从搜索扫描路径和快速移动中移除",serverKeyRequired:"服务器配置了密匙,你必须提供相同的密匙才能继续使用",shortcutKey:"快捷键(仅允许在全屏预览下使用)",shortcutKeyDescription:"点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合",fullscreenRestriction:"受技术限制,当前拓展不允许删除打开全屏预览时的首张图片。",clear:"清除",toggleTagSelection:'切换 "{tag}" 标签选中',changlog:"更新日志",accessControlModeTips:"为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env",dontShowAgain:"不再显示",defaultSortingMethod:"默认排序方法",defaultViewMode:"默认查看模式",showPreviewImage:"显示预览图",copy:"复制",edit:"编辑",document:"文档",multiSelectTips:"您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作",copyLocationUrlSuccessMsg:"复制完成,你可以通过复制的链接直接打开当前文件夹",share:"分享",dragImageHere:"拖拽图像到这里",imgCompare:"图像对比",close:"关闭",fullscreenview:"全屏查看",fileName:"文件名",resolution:"分辨率",fileSize:"文件大小",selectAll:"全选","tauriLaunchConf.readSdWebuiConfigTitle":"读取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享","tauriLaunchConf.selectSdWebuiFolder":"点击选择SD-webui的文件夹","tauriLaunchConf.skipThisConfigTitle":"跳过本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍将可用,你可以在设置页重置","tauriLaunchConf.skipButton":"跳过","tauriLaunchConfMessages.configNotFound":"找不到对应配置,检查选择的文件夹是否正确","tauriLaunchConfMessages.folderNotFound":"找不到对应文件夹,检查选择的文件夹是否正确","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即将重启","tauriLaunchConfMessages.firstTimeUserTitle":"看起来你好像是第一次使用, 需要进行一些配置",inputTargetFolderPath:"输入目标文件夹的绝对路径",pathDoesNotExist:"路径不存在",confirmToAddToQuickMove:"确定添加?如果文件夹过大将会消耗过多时间建立索引。(如果不需要了你可以在文件夹右上角的更多里面移除)",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的“更多”里面进行调整",desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展",lyco:"LyCORIS"},m5={lyco:"LyCORIS",sendToThirdPartyExtension:"Send to third-party extension",createFolder:"Create Folder",inputFolderName:"Input Folder Name",desktop:"Desktop",move:"Move",majorUpdateCustomCellSizeTips:'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.',ImageBrowsingSettings:"Image Browsing Settings",other:"Other",livePreview:"Live Preview",gridCellWidth:"Grid Cell Width (px)",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToQuickMove:"Are you sure you want to add? This may take a lot of time to index if the folder is large. (You can remove it from 'More' in the top right corner of the folder if you no longer need it.)",clientSpecificSettings:"Client-specific settings",initiateSoftwareStartupConfig:"Initiate software startup configuration","tauriLaunchConf.readSdWebuiConfigTitle":"Read Stable Diffusion Webui Config","tauriLaunchConf.readSdWebuiConfigDescription":"If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.","tauriLaunchConf.selectSdWebuiFolder":"Click to select the SD-webui folder","tauriLaunchConf.skipThisConfigTitle":"Skip This Configuration","tauriLaunchConf.skipThisConfigDescription":"All features will still be available and you can reset them in the settings page.","tauriLaunchConf.skipButton":"Skip","tauriLaunchConfMessages.configNotFound":"Cannot find the corresponding configuration. Please check if the selected folder is correct.","tauriLaunchConfMessages.folderNotFound":"Cannot find the corresponding folder. Please check if the selected folder is correct.","tauriLaunchConfMessages.configCompletedMessage":"Configuration completed. The application will restart shortly.","tauriLaunchConfMessages.firstTimeUserTitle":"It looks like this is your first time using the application. Some configuration is required.",selectAll:"Select All",close:"Close",fileName:"File Name",resolution:"Resolution",fileSize:"File Size",fullscreenview:"Fullscreen View",imgCompare:"Image Comparison",share:"Share",dragImageHere:"Drag image here",copyLocationUrlSuccessMsg:"Copy completed, you can directly open the current folder through the copied link",multiSelectTips:"You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations",document:"Document",copy:"Copy",edit:"Edit",defaultSortingMethod:"Default Sorting Method",defaultViewMode:"Default View Mode",showPreviewImage:"Show Preview Image",dontShowAgain:"Don't show again",accessControlModeTips:"To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.",changlog:"Change log",clear:"Clear",toggleTagSelection:'Toggle Selection of Tag "{tag}"',fullscreenRestriction:"Due to technical limitations, the first image cannot be deleted when opening the fullscreen preview.",shortcutKey:"Keyboard Shortcuts (Only Available in full-screen preview mode)",shortcutKeyDescription:"Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.",serverKeyRequired:"The server has configured a key. You must provide the same key to continue using it.",removeFromSearchScanPathAndQuickMove:"Remove from Search Scan Path and Quick Move",addToSearchScanPathAndQuickMove:"Add to Search Scan Path and Quick Move",openWithLocalFileBrowser:"Open with Local File Browser","fuzzy-search-noResults":"Nothing was found","fuzzy-search-placeholder":"Enter a part of the image information or filename to search","fuzzy-search":"Fuzzy search",autoUpdate:"Detected changes, automatically updating",faq:"FAQ",selectExactMatchTag:"Select Exact Match Tags",selectAnyMatchTag:"Optional, Select Any Match Tags",selectExcludeTag:"Optional, Select Exclude Tags",exactMatch:"Exact Match",anyMatch:"Match Any",exclude:"Exclude","auto.refreshed":"Auto refresh completed!",copied:"Copied!","index.expired":"Index expired, updating automatically",manualExitFullScreen:"You have deleted the last image and may need to manually exit full-screen preview",long_loading:"Loading has been taking more than 5 seconds, it may recover shortly. If this issue persists, please check the FAQ for a solution or open an issue.","walk-mode-move-message":"Moving position is only allowed using 'Quick Move' in walk mode",refreshCompleted:"Refresh completed",addedTagToImage:'Tag "{tag}" has been added to this image',removedTagFromImage:'Tag "{tag}" has been removed from this image',openContextMenu:"Open context menu",copyPrompt:"Copy prompt",toggleTag:"Toggle Tag Selection (Favorite)",addComplete:"Add complete",removeComplete:"Remove Complete",existInOtherType:"Already exists in other type",alreadyExists:"Already exists",cancel:"Cancel",submit:"Submit",add:"Add",custom:"Custom",needGenerateIdx:`You need to click the button to generate an index for searching images. This process may take a few minutes to complete.`,search:"Search",UpdateIndex:"Update index",generateIndexHint:"Generate index for search image",Model:"Model",Sampler:"Sampler",lora:"LoRA",size:"Size",pos:"Positive Prompt",unknownSavedDir:"Cannot find the saved folder (outdir_save field in the config)",errorOccurred:"An error occurred",useThumbnailPreview:"Use thumbnail preview",smallerIntervalMeansMoreNetworkTraffic:"Smaller interval means more network traffic",gridThumbnailWidth:"Grid thumbnail width",largeGridThumbnailWidth:"Large grid thumbnail width",start:"Start",tip:"Tip",startedAt:"Started at: ",sortByDateAscending:"Updated date ascending",sortByDateDescending:"UPdated date descending",sortByCreatedDateAscending:"Created date ascending",sortByCreatedDateDescending:"Created date descending",sortByNameAscending:"Name ascending",sortByNameDescending:"Name descending",sortBySizeAscending:"Size ascending",sortBySizeDescending:"Size descending",inputAddressAndPressEnter:"Input address and press Enter",go:"Go",unknownError:"Unknown error",loadingNextFolder:"Loading files from the next folder",moveFailedCheckPath:"Move failed. Check your path input.",detailList:"Detail list",previewGrid:"Preview grid",largePreviewGrid:"Large preview grid",sortBy:"Sort by",moveSelectedFilesTo:"Move / Copy selected files to",confirm:"Confirm",download:"Download",local:"Local",sendImageFailed:"Failed to send image. Please contact the developer with the error message from the console.",confirmDelete:"Are you sure you want to delete?",deleteSuccess:"Deleted successfully",doubleClickToCopy:"Double-click to copy",root:"Root",drive:" drive",refresh:"Refresh",quickMove:"Quick move",more:"More",viewMode:"View mode",sortingMethod:"Sorting method",copyPath:"Copy path",deleteSelected:"Delete",previewInNewWindow:"Open in new window",copySourceFilePreviewLink:"Copy source file preview link",viewGenerationInfo:"View generation information (prompt, etc.)",sendToTxt2img:"Send to txt2img",sendToImg2img:"Send to img2img",sendToInpaint:"Send to Inpaint",sendToExtraFeatures:"Send to Extra",sendToControlNet:"Send to ControlNet",loadNextPage:"Load next page",localFile:"Local file",globalSettings:"Global settings",welcome:"Welcome",openInNewWindow:"Open in new tab",restoreLastRecord:"Restore last record",launch:"Launch",walkMode:"Use Walk mode to browse images",launchFromQuickMove:"Launch from Quick Move",recent:"Recent",emptyStartPage:"Empty start page",t2i:"txt2img",i2i:"img2img",saveButtonSavesTo:"save",extra:"extras",gridImage:"Grid image","i2i-grid":"img2img grid",image:"Image","t2i-grid":"txt2img grid",workingFolder:"working folder",lang:"Language",langChangeReload:"Reload: Some changes may require a reload to take effect",hypernetworks:"hypernetworks",openOnTheRight:"Open on the right",openInNewTab:"Open in a new tab",openWithWalkMode:"Open with Walk Mode",longPressOpenContextMenu:"Support long press to open right-click menu",searchResults:"Search Results",imgSearch:"Image Search",onlyFoldersAndImages:"Only show folders and images",send2savedDir:"Send to saved folder"},g5={serverKeyRequired:"Für die weitere Nutzung ist die Eingabe eines Schlüssels erforderlich, der vom Server konfiguriert wurde.",removeFromSearchScanPathAndQuickMove:"Schnellzugriff entfernen",addToSearchScanPathAndQuickMove:"Schnellzugriff hinzufügen",openWithLocalFileBrowser:"Im lokalen Dateimanager öffnen","fuzzy-search-noResults":"Es wurde nichts gefunden","fuzzy-search-placeholder":"Geben Sie einen Teil der Bildinformationen oder des Dateinamens ein, um passende Ergebnisse zu finden","fuzzy-search":"Schnellsuche",autoUpdate:"Erkannte Änderungen, automatische Aktualisierung wird ausgeführt",faq:"FAQ",selectExactMatchTag:"Wähle Tags für exakte Übereinstimmung aus",selectAnyMatchTag:"(Optional) Wähle Tags für beliebige Übereinstimmung aus",selectExcludeTag:"(Optional) Wähle Tags zum Ausschliessen aus",exactMatch:"Exakte Übereinstimmung",anyMatch:"Beliebige Übereinstimmung",exclude:"Ausschliessen","auto.refreshed":"Automatische Aktualisierung erfolgreich durchgeführt!",copied:"In die Zwischenablage kopiert!","index.expired":"Index abgelaufen, automatische Aktualisierung wird durchgeführt",manualExitFullScreen:"Du hast das letzte Bild gelöscht und musst möglicherweise manuell den Vollbild-Vorschaumodus beenden",long_loading:"Ladezeit beträgt mehr als 5 Sekunden. Es könnte sich in Kürze wieder normalisieren. Falls das Problem bestehen bleibt, überprüfen Sie bitte die FAQ für Lösungen oder reichen Sie eine Fehlermeldung ein.","walk-mode-move-message":"Im Walk-Modus ist das Verschieben des Verzeichnisses nur über 'Schnellzugriff' gestattet",refreshCompleted:"Aktualisierung erfolgreich abgeschlossen",addedTagToImage:"Schlagwort wurde erfolgreich diesem Bild hinzugefügt",removedTagFromImage:"Schlagwort wurde von diesem Bild entfernt",openContextMenu:"Öffne das Kontextmenü",copyPrompt:"Kopiere Prompt-Konfiguration",toggleTag:"(Favorite) Schlagwort hinzufügen/entfernen",addComplete:"Hinzufügen abgeschlossen",removeComplete:"Entfernen abgeschlossen",existInOtherType:"Bereits in anderem Typ vorhanden",alreadyExists:"Bereits vorhanden",cancel:"Abbrechen",submit:"Bestätigen",add:"Hinzufügen",custom:"Benutzerdefiniert",needGenerateIdx:`Klicken Sie auf die Schaltfläche, um einen Index zur Bildersuche zu generieren. Dieser Vorgang kann einige Minuten in Anspruch nehmen.`,search:"Suchen",UpdateIndex:"Index aktualisieren",generateIndexHint:"Index für die Bildersuche generieren",Model:"Modell",Sampler:"Sampler",lora:"LoRA",size:"Grösse",pos:"Positiver Prompt",unknownSavedDir:"Das Speicherverzeichnis konnte nicht gefunden werden (Einstellung für das Speicherverzeichnis in der Konfiguration)",errorOccurred:"Ein Fehler ist aufgetreten",useThumbnailPreview:"Verwende Miniaturansichtsvorschau",smallerIntervalMeansMoreNetworkTraffic:"Kürzeres Intervall bedeutet erhöhten Netzwerkverkehr",gridThumbnailWidth:"Breite der Miniatur-Rasteransicht",largeGridThumbnailWidth:"Breite der grossen Miniatur-Rasteransicht",start:"Start",tip:"Hinweis",startedAt:"Startzeit: ",sortByDateAscending:"Datum aufsteigend",sortByDateDescending:"Datum absteigend",sortByCreatedDateAscending:"Erstellungsdatum aufsteigend",sortByCreatedDateDescending:"Erstellungsdatum absteigend",sortByNameAscending:"Name aufsteigend",sortByNameDescending:"Name absteigend",sortBySizeAscending:"Grösse aufsteigend",sortBySizeDescending:"Grösse absteigend",inputAddressAndPressEnter:"Geben Sie die Adresse ein und drücken Sie Enter",go:"Los",unknownError:"Unbekannter Fehler aufgetreten",loadingNextFolder:"Lade Dateien aus dem nächsten Verzeichnis",moveFailedCheckPath:`Fehler beim Verschieben. Überprüfen Sie den eingegebenen Pfad. `,detailList:"Detailübersicht",previewGrid:"Vorschau-Rasteransicht",largePreviewGrid:"Grosses Vorschau-Rasteransicht",sortBy:"Sortieren nach",moveSelectedFilesTo:"Ausgewählte Dateien verschieben nach",confirm:"Bestätigen",download:"Herunterladen",local:"Lokal",sendImageFailed:"Fehler beim Senden des Bildes. Bitte kontaktieren Sie den Entwickler mit der Fehlermeldung aus der Konsole.",confirmDelete:"Sind Sie sicher, dass Sie dies löschen möchten?",deleteSuccess:"Erfolgreich gelöscht",doubleClickToCopy:"Doppelklick zum Kopieren",root:"Root",drive:" Laufwerk",refresh:"Aktualisieren",quickMove:"Schnellzugriff",more:"Mehr",viewMode:"Ansichtsmodus",sortingMethod:"Sortiermethode",copyPath:"Pfad kopieren",deleteSelected:"Löschen",previewInNewWindow:"In neuem Fenster öffnen",copySourceFilePreviewLink:"Kopiere Dateilink aus dem Verzeichnis",viewGenerationInfo:"Anzeige von Generierungsinformationen (Prompt, etc.)",sendToTxt2img:"Senden an Text-zu-Bild",sendToImg2img:"Senden an Bild-zu-Bild",sendToInpaint:"Senden an Inpaint",sendToExtraFeatures:"Senden an Extras",sendToControlNet:"Senden an ControlNet",loadNextPage:"Nächste Seite laden",localFile:"Lokale Datei",globalSettings:"Globale Einstellungen",welcome:"Willkommen",openInNewWindow:"In neuem Fenster öffnen",restoreLastRecord:"Letztes Verzeichnis wiederherstellen",launch:"Ausführen",walkMode:"Verwende den Walk-Modus, um Bilder zu durchsuchen",launchFromQuickMove:"Ausführen aus Schnellzugriff",recent:"Kürzlich",emptyStartPage:"Leere Startseite",t2i:"Text-zu-Bild",i2i:"Bild-zu-Bild",saveButtonSavesTo:"Speichern",extra:"Extras",gridImage:"Rasterbild","i2i-grid":"Bild-zu-Bild Raster",image:"Bild","t2i-grid":"Text-zu-Bild Raster",workingFolder:"Arbeitsordner",lang:"Sprache",langChangeReload:"Neuladen: Einige Änderungen erfordern ein Neuladen, um wirksam zu werden",hypernetworks:"Hypernetzwerke",openOnTheRight:"Rechts öffnen",openInNewTab:"In neuem Tab öffnen",openWithWalkMode:"Im Walk-Modus öffnen",longPressOpenContextMenu:"Langes Rechtsklicken zur Öffnung des Kontextmenüs unterstützen",searchResults:"Suchergebnisse",imgSearch:"Bildsuche",onlyFoldersAndImages:"Nur Ordner und Bilder anzeigen",send2savedDir:"In den gespeicherten Ordner senden"},G1=()=>{const t=navigator.language.toLowerCase();if(t.startsWith("zh"))return"zh";switch(t){case"de":case"de-de":return"de";default:return"en"}},wv=r5({locale:G1(),fallbackLocale:"en",messages:{zh:h5,en:m5,de:g5},legacy:!1}),{t:Te,locale:m9}=wv.global;/*! js-cookie v3.0.5 | MIT */function yl(t){for(var e=1;e"u")){o=yl({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=a+"="+t.write(i,a)+l}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},l=0;l{const t=new Cv;return{eventEmitter:t,useEventListen:(n,r)=>{t.on(n,r),Qe(()=>t.off(n,r))}}};/*! ***************************************************************************** @@ -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")),D9=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 F9(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 B9(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 j9(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",z9=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-0fcad827.js"),["assets/stackView-0fcad827.js","assets/fullScreenContextMenu-4736d6b8.js","assets/db-7af76374.js","assets/shortcut-e119c30f.js","assets/shortcut-9fed83c2.css","assets/fullScreenContextMenu-d9fd0485.css","assets/numInput-58b5e4bb.js","assets/numInput-a08c6857.css","assets/stackView-132bf7ce.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:Qr(()=>kr(()=>import("./emptyStartup-259a7467.js"),["assets/emptyStartup-259a7467.js","assets/db-7af76374.js","assets/emptyStartup-b6d0892f.css"])),"global-setting":Qr(()=>kr(()=>import("./globalSetting-48b5c989.js"),["assets/globalSetting-48b5c989.js","assets/numInput-58b5e4bb.js","assets/shortcut-e119c30f.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-810d58f0.js"),["assets/MatchedImageGrid-810d58f0.js","assets/fullScreenContextMenu-4736d6b8.js","assets/db-7af76374.js","assets/shortcut-e119c30f.js","assets/shortcut-9fed83c2.css","assets/fullScreenContextMenu-d9fd0485.css","assets/hook-b5d98c21.js","assets/MatchedImageGrid-327925bf.css"])),"tag-search":Qr(()=>kr(()=>import("./TagSearch-40aa2de4.js"),["assets/TagSearch-40aa2de4.js","assets/db-7af76374.js","assets/TagSearch-fd85281c.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":Qr(()=>kr(()=>import("./SubstrSearch-a468dd06.js"),["assets/SubstrSearch-a468dd06.js","assets/fullScreenContextMenu-4736d6b8.js","assets/db-7af76374.js","assets/shortcut-e119c30f.js","assets/shortcut-9fed83c2.css","assets/fullScreenContextMenu-d9fd0485.css","assets/hook-b5d98c21.js","assets/SubstrSearch-75acd20a.css","assets/index-f4bbe4b8.css"])),"img-sli":Qr(()=>kr(()=>import("./ImgSliPagePane-383b23f0.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,N9 as I,M9 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,k9 as aD,Hj as aE,Ao as aF,W_ as aG,g_ as aH,Ye as aI,Z7 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,Wn 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,F9 as bQ,Tk as bR,h4 as bS,K7 as bT,r$ as bU,Jw as bV,Vk as bW,Jk as bX,hI as bY,i0 as bZ,nr 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,Ed as c0,_d as c1,ib as c2,bt as c3,Si as c4,NT as c5,sd as c6,O_ as c7,Y1 as c8,ou as c9,Ny as cA,bF as cB,j9 as cC,Tm as cD,_7 as cE,P_ as ca,L9 as cb,xn as cc,n7 as cd,My as ce,B9 as cf,dz as cg,$9 as ch,S5 as ci,z9 as cj,A9 as ck,R9 as cl,T9 as cm,aI as cn,I9 as co,QS as cp,Cs as cq,DS as cr,wb as cs,yx as ct,Wl as cu,gx as cv,W7 as cw,Gc as cx,Oo as cy,U7 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,D9 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")),D9=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 F9(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 B9(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 j9(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",z9=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-822e6188.js"),["assets/stackView-822e6188.js","assets/fullScreenContextMenu-caca4231.js","assets/db-ea72b770.js","assets/shortcut-9b4bff3d.js","assets/shortcut-9fed83c2.css","assets/fullScreenContextMenu-28088cd1.css","assets/numInput-8c720f27.js","assets/numInput-a08c6857.css","assets/stackView-132bf7ce.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:Qr(()=>kr(()=>import("./emptyStartup-a7ba0694.js"),["assets/emptyStartup-a7ba0694.js","assets/db-ea72b770.js","assets/emptyStartup-b6d0892f.css"])),"global-setting":Qr(()=>kr(()=>import("./globalSetting-943bde86.js"),["assets/globalSetting-943bde86.js","assets/numInput-8c720f27.js","assets/shortcut-9b4bff3d.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-f820d519.js"),["assets/MatchedImageGrid-f820d519.js","assets/fullScreenContextMenu-caca4231.js","assets/db-ea72b770.js","assets/shortcut-9b4bff3d.js","assets/shortcut-9fed83c2.css","assets/fullScreenContextMenu-28088cd1.css","assets/hook-900c55c9.js","assets/MatchedImageGrid-327925bf.css"])),"tag-search":Qr(()=>kr(()=>import("./TagSearch-649f4f14.js"),["assets/TagSearch-649f4f14.js","assets/db-ea72b770.js","assets/TagSearch-ffd782da.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":Qr(()=>kr(()=>import("./SubstrSearch-60b0b870.js"),["assets/SubstrSearch-60b0b870.js","assets/fullScreenContextMenu-caca4231.js","assets/db-ea72b770.js","assets/shortcut-9b4bff3d.js","assets/shortcut-9fed83c2.css","assets/fullScreenContextMenu-28088cd1.css","assets/hook-900c55c9.js","assets/SubstrSearch-75acd20a.css","assets/index-f4bbe4b8.css"])),"img-sli":Qr(()=>kr(()=>import("./ImgSliPagePane-78be20ff.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,N9 as I,M9 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,k9 as aD,Hj as aE,Ao as aF,W_ as aG,g_ as aH,Ye as aI,Z7 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,Wn 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,F9 as bQ,Tk as bR,h4 as bS,K7 as bT,r$ as bU,Jw as bV,Vk as bW,Jk as bX,hI as bY,i0 as bZ,nr 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,Ed as c0,_d as c1,ib as c2,bt as c3,Si as c4,NT as c5,sd as c6,O_ as c7,Y1 as c8,ou as c9,Ny as cA,bF as cB,j9 as cC,Tm as cD,_7 as cE,P_ as ca,L9 as cb,xn as cc,n7 as cd,My as ce,B9 as cf,dz as cg,$9 as ch,S5 as ci,z9 as cj,A9 as ck,R9 as cl,T9 as cm,aI as cn,I9 as co,QS as cp,Cs as cq,DS as cr,wb as cs,yx as ct,Wl as cu,gx as cv,W7 as cw,Gc as cx,Oo as cy,U7 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,D9 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-58b5e4bb.js b/vue/dist/assets/numInput-8c720f27.js similarity index 99% rename from vue/dist/assets/numInput-58b5e4bb.js rename to vue/dist/assets/numInput-8c720f27.js index 525d498..026b2b0 100644 --- a/vue/dist/assets/numInput-58b5e4bb.js +++ b/vue/dist/assets/numInput-8c720f27.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-77d97794.js";import{t as Rn,l as Dn}from"./shortcut-e119c30f.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{cD as s}from"./index-d9e8fbed.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-0fcad827.js b/vue/dist/assets/stackView-822e6188.js similarity index 97% rename from vue/dist/assets/stackView-0fcad827.js rename to vue/dist/assets/stackView-822e6188.js index 27b57ba..a3c83b9 100644 --- a/vue/dist/assets/stackView-0fcad827.js +++ b/vue/dist/assets/stackView-822e6188.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-77d97794.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-4736d6b8.js";import{F,N as Nt,_ as Ft}from"./numInput-58b5e4bb.js";import"./shortcut-e119c30f.js";/* empty css *//* empty css */import"./db-7af76374.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-d9e8fbed.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-caca4231.js";import{F,N as Nt,_ as Ft}from"./numInput-8c720f27.js";import"./shortcut-9b4bff3d.js";/* empty css *//* empty css */import"./db-ea72b770.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 7cc12ff..e0ab631 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/i18n.ts b/vue/src/i18n.ts index 87732ff..c38495a 100644 --- a/vue/src/i18n.ts +++ b/vue/src/i18n.ts @@ -184,11 +184,13 @@ const zh = { move: '移动', inputFolderName: '输入文件夹名', createFolder: '创建文件夹', - sendToThirdPartyExtension: '发送到第三方拓展' + sendToThirdPartyExtension: '发送到第三方拓展', + lyco: 'LyCORIS' } const en: Record = { //! MissingTranslations: "Mark missing translations like this""shortcutKey": "Keyboard Shortcuts", //! MissingTranslations + lyco: 'LyCORIS', sendToThirdPartyExtension: 'Send to third-party extension', createFolder: 'Create Folder', inputFolderName: 'Input Folder Name', diff --git a/vue/src/page/TagSearch/TagSearch.vue b/vue/src/page/TagSearch/TagSearch.vue index fa1c628..a27fa1a 100644 --- a/vue/src/page/TagSearch/TagSearch.vue +++ b/vue/src/page/TagSearch/TagSearch.vue @@ -33,6 +33,7 @@ const classSort = [ 'custom', 'Model', 'lora', + 'lyco', 'pos', 'size', 'Postprocess upscaler',