From 475764070db26117838278178b4bde602e82e933 Mon Sep 17 00:00:00 2001 From: zanllp Date: Sun, 18 Aug 2024 20:40:07 +0800 Subject: [PATCH] Handle cache issues for video cover and file responses --- javascript/index.js | 2 +- scripts/iib/api.py | 12 ++++++++---- .../{FileItem-e54d55be.js => FileItem-9a94f7dd.js} | 2 +- ...gePane-aaed2b03.js => ImgSliPagePane-c51a65d0.js} | 2 +- ...Grid-b0a804de.js => MatchedImageGrid-30741878.js} | 2 +- ...tKeep-051920f0.js => MultiSelectKeep-e20b5f46.js} | 2 +- ...trSearch-73895ef5.js => SubstrSearch-8ed8bfa5.js} | 2 +- .../{TagSearch-de827449.js => TagSearch-0a65f26b.js} | 2 +- ...ownload-97a88752.js => batchDownload-1a890614.js} | 2 +- ...yStartup-6a115c05.js => emptyStartup-676b6769.js} | 2 +- ...8260c55.js => functionalCallableComp-685da399.js} | 2 +- ...Setting-e2331e68.js => globalSetting-07137205.js} | 2 +- .../{gridView-c1aad9dd.js => gridView-b870c73c.js} | 2 +- .../assets/{hook-9bb60c42.js => hook-983826b5.js} | 2 +- .../assets/{index-4035ad46.js => index-4596f42d.js} | 2 +- .../assets/{index-6e5caf8a.js => index-67a7e5e1.js} | 2 +- .../assets/{index-48c46618.js => index-808a3f6b.js} | 2 +- .../assets/{index-0a648427.js => index-93a218ca.js} | 10 +++++----- .../assets/{index-5fd83ad6.js => index-c7fe1b25.js} | 2 +- .../assets/{index-c4240098.js => index-f60e0de3.js} | 2 +- .../{numInput-229c2aa0.js => numInput-27ba7dc9.js} | 2 +- ...History-245088c4.js => searchHistory-7d99798b.js} | 2 +- .../{shortcut-16cf2087.js => shortcut-ff09b8ec.js} | 2 +- .../{stackView-9d4e5342.js => stackView-8506f68f.js} | 2 +- vue/dist/index.html | 2 +- vue/src/components/functionalCallableComp.tsx | 2 +- vue/src/i18n/en.ts | 1 + vue/src/i18n/zh-hans.ts | 1 + vue/src/i18n/zh-hant.ts | 1 + vue/src/util/file.ts | 2 +- 30 files changed, 41 insertions(+), 34 deletions(-) rename vue/dist/assets/{FileItem-e54d55be.js => FileItem-9a94f7dd.js} (99%) rename vue/dist/assets/{ImgSliPagePane-aaed2b03.js => ImgSliPagePane-c51a65d0.js} (64%) rename vue/dist/assets/{MatchedImageGrid-b0a804de.js => MatchedImageGrid-30741878.js} (90%) rename vue/dist/assets/{MultiSelectKeep-051920f0.js => MultiSelectKeep-e20b5f46.js} (98%) rename vue/dist/assets/{SubstrSearch-73895ef5.js => SubstrSearch-8ed8bfa5.js} (93%) rename vue/dist/assets/{TagSearch-de827449.js => TagSearch-0a65f26b.js} (98%) rename vue/dist/assets/{batchDownload-97a88752.js => batchDownload-1a890614.js} (87%) rename vue/dist/assets/{emptyStartup-6a115c05.js => emptyStartup-676b6769.js} (99%) rename vue/dist/assets/{functionalCallableComp-58260c55.js => functionalCallableComp-685da399.js} (72%) rename vue/dist/assets/{globalSetting-e2331e68.js => globalSetting-07137205.js} (96%) rename vue/dist/assets/{gridView-c1aad9dd.js => gridView-b870c73c.js} (87%) rename vue/dist/assets/{hook-9bb60c42.js => hook-983826b5.js} (93%) rename vue/dist/assets/{index-4035ad46.js => index-4596f42d.js} (98%) rename vue/dist/assets/{index-6e5caf8a.js => index-67a7e5e1.js} (98%) rename vue/dist/assets/{index-48c46618.js => index-808a3f6b.js} (95%) rename vue/dist/assets/{index-0a648427.js => index-93a218ca.js} (98%) rename vue/dist/assets/{index-5fd83ad6.js => index-c7fe1b25.js} (97%) rename vue/dist/assets/{index-c4240098.js => index-f60e0de3.js} (98%) rename vue/dist/assets/{numInput-229c2aa0.js => numInput-27ba7dc9.js} (99%) rename vue/dist/assets/{searchHistory-245088c4.js => searchHistory-7d99798b.js} (95%) rename vue/dist/assets/{shortcut-16cf2087.js => shortcut-ff09b8ec.js} (97%) rename vue/dist/assets/{stackView-9d4e5342.js => stackView-8506f68f.js} (97%) diff --git a/javascript/index.js b/javascript/index.js index 03169b5a..33651dd0 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/api.py b/scripts/iib/api.py index 6b64ba56..e909ae4f 100644 --- a/scripts/iib/api.py +++ b/scripts/iib/api.py @@ -617,7 +617,7 @@ async def stream_video(path: str, request: Request): ) @app.get(api_base + "/video_cover", dependencies=[Depends(verify_secret)]) - async def video_cover(path: str, t: str): + async def video_cover(path: str, mt: str): check_path_trust(path) if not cache_base_dir: return @@ -627,7 +627,7 @@ async def video_cover(path: str, t: str): if not os.path.isfile(path) and get_video_type(path): raise HTTPException(status_code=400, detail=f"{path} is not a video file") # 生成缓存文件的路径 - hash_dir = hashlib.md5((path + t).encode("utf-8")).hexdigest() + hash_dir = hashlib.md5((path + mt).encode("utf-8")).hexdigest() hash = hash_dir cache_dir = os.path.join(cache_base_dir, "iib_cache", "video_cover", hash_dir) cache_path = os.path.join(cache_dir, "cover.webp") @@ -636,7 +636,9 @@ async def video_cover(path: str, t: str): return FileResponse( cache_path, media_type="image/webp", - headers={"ETag": hash}, + headers={ + "Cache-Control": "no-store", + }, ) # 如果缓存文件不存在,则生成缩略图并保存 @@ -654,7 +656,9 @@ async def video_cover(path: str, t: str): return FileResponse( cache_path, media_type="image/webp", - headers={"ETag": hash}, + headers={ + "Cache-Control": "no-store", + }, ) class SetTargetFrameAsCoverReq(BaseModel): diff --git a/vue/dist/assets/FileItem-e54d55be.js b/vue/dist/assets/FileItem-9a94f7dd.js similarity index 99% rename from vue/dist/assets/FileItem-e54d55be.js rename to vue/dist/assets/FileItem-9a94f7dd.js index 40d3c281..499d472b 100644 --- a/vue/dist/assets/FileItem-e54d55be.js +++ b/vue/dist/assets/FileItem-9a94f7dd.js @@ -1,3 +1,3 @@ -var vt=Object.defineProperty;var mt=(i,t,e)=>t in i?vt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var ee=(i,t,e)=>(mt(i,typeof t!="symbol"?t+"":t,e),e);import{d as X,u as Ye,E as V,al as qe,h as K,c as S,ao as yt,cB as bt,r as j,bc as At,X as H,cp as St,P as ze,bM as kt,A as W,bY as It,aY as _t,cC as Ct,cD as wt,cE as ce,L as ge,ak as ke,bf as Et,cc as Tt,cF as Pt,cG as Ot,cA as Dt,cH as Nt,cI as Ge,bA as zt,cJ as ae,cK as $t,aF as Mt,cL as Qt,B as Bt,cM as Ft,n as pe,m as se,aP as Rt,q as Ze,$ as Ie,cf as Xe,aH as Lt,cN as et,cO as jt,N as Ht,v as Vt,aN as tt,aO as nt,ax as it,S as a,a0 as R,cP as xt,cQ as Ut,cR as Jt,cS as Wt,cT as Kt,ar as Yt,T as h,aE as te,Y as A,a1 as I,a6 as J,cU as $e,cV as qt,cW as Gt,a5 as rt,ae as Y,V as _,W as y,a2 as Q,aj as st,cj as Zt,ci as Xt,M as ot,U as u,Z as lt,ce as en,cX as Me,ad as tn,cY as nn,cg as rn,bZ as sn,cZ as on,c_ as de,c$ as ln}from"./index-0a648427.js";import{f as Qe,g as an,h as un}from"./functionalCallableComp-58260c55.js";import{D as G,a as ve}from"./index-c4240098.js";/* empty css */var cn=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},dn=X({compatConfig:{MODE:3},name:"ACheckableTag",props:cn(),setup:function(t,e){var n=e.slots,r=e.emit,o=Ye("tag",t),p=o.prefixCls,d=function(E){var w=t.checked;r("update:checked",!w),r("change",!w),r("click",E)},v=V(function(){var b;return qe(p.value,(b={},K(b,"".concat(p.value,"-checkable"),!0),K(b,"".concat(p.value,"-checkable-checked"),t.checked),b))});return function(){var b;return S("span",{class:v.value,onClick:d},[(b=n.default)===null||b===void 0?void 0:b.call(n)])}}});const me=dn;var fn=new RegExp("^(".concat(yt.join("|"),")(-inverse)?$")),hn=new RegExp("^(".concat(bt.join("|"),")$")),gn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:ze.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:ze.any}},Z=X({compatConfig:{MODE:3},name:"ATag",props:gn(),slots:["closeIcon","icon"],setup:function(t,e){var n=e.slots,r=e.emit,o=e.attrs,p=Ye("tag",t),d=p.prefixCls,v=p.direction,b=j(!0);At(function(){t.visible!==void 0&&(b.value=t.visible)});var E=function(s){s.stopPropagation(),r("update:visible",!1),r("close",s),!s.defaultPrevented&&t.visible===void 0&&(b.value=!1)},w=V(function(){var l=t.color;return l?fn.test(l)||hn.test(l):!1}),T=V(function(){var l;return qe(d.value,(l={},K(l,"".concat(d.value,"-").concat(t.color),w.value),K(l,"".concat(d.value,"-has-color"),t.color&&!w.value),K(l,"".concat(d.value,"-hidden"),!b.value),K(l,"".concat(d.value,"-rtl"),v.value==="rtl"),l))});return function(){var l,s,c,m=t.icon,N=m===void 0?(l=n.icon)===null||l===void 0?void 0:l.call(n):m,O=t.color,z=t.closeIcon,g=z===void 0?(s=n.closeIcon)===null||s===void 0?void 0:s.call(n):z,f=t.closable,C=f===void 0?!1:f,M=function(){return C?g?S("span",{class:"".concat(d.value,"-close-icon"),onClick:E},[g]):S(kt,{class:"".concat(d.value,"-close-icon"),onClick:E},null):null},F={backgroundColor:O&&!w.value?O:void 0},B=N||null,k=(c=n.default)===null||c===void 0?void 0:c.call(n),L=B?S(H,null,[B,S("span",null,[k])]):k,P="onClick"in o,$=S("span",{class:T.value,style:F},[L,M()]);return P?S(St,null,{default:function(){return[$]}}):$}}});Z.CheckableTag=me;Z.install=function(i){return i.component(Z.name,Z),i.component(me.name,me),i};const pn=Z;G.Button=ve;G.install=function(i){return i.component(G.name,G),i.component(ve.name,ve),i};var vn={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 mn=vn;function Be(i){for(var t=1;t{const r=Pt();ge(r),ne.has(r)||(ne.set(r,ke(i(r,n??(t==null?void 0:t())))),Et(()=>{ne.delete(r)}));const o=ne.get(r);return ge(o),{state:o,toRefs(){return Tt(o)}}}}}var Bn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const Fn=Bn;function Le(i){for(var t=1;t{const i=j([]);return{selectdFiles:i,addFiles:e=>{i.value=Dt([...i.value,...e])}}});class oe{constructor(t,e=Nt.CREATED_TIME_DESC){ee(this,"root");ee(this,"execQueue",[]);ee(this,"walkerInitPromsie");this.entryPath=t,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(n=>{Qe([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),n()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const t=e=>e.children.map(n=>{if(n.info.type==="dir")return t(n);if(ae(n.info.name))return n.info}).filter(n=>n).flat(1);return t(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(t){const{files:e}=await an(t.info.fullpath);return t.children=Ge(e,this.sortMethod).map(n=>({info:n,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...t.children.filter(n=>n.info.type==="dir").map(n=>({fn:()=>this.fetchChildren(n),...n}))),t}async next(){await this.walkerInitPromsie;const t=Tn(this.execQueue);if(!t)return null;const e=await t.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const t=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(t.push(o.info),e(o))};e(this.root);const n=await Qe(t.map(r=>r.fullpath));for(const r of t)if(!zt(r,n[r.fullpath]))return!0;return!1}async seamlessRefresh(t,e=j(!1)){const n=performance.now(),r=new oe(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.lengtht in i?vt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var ee=(i,t,e)=>(mt(i,typeof t!="symbol"?t+"":t,e),e);import{d as X,u as Ye,E as V,al as qe,h as K,c as S,ao as yt,cB as bt,r as j,bc as At,X as H,cp as St,P as ze,bM as kt,A as W,bY as It,aY as _t,cC as Ct,cD as wt,cE as ce,L as ge,ak as ke,bf as Et,cc as Tt,cF as Pt,cG as Ot,cA as Dt,cH as Nt,cI as Ge,bA as zt,cJ as ae,cK as $t,aF as Mt,cL as Qt,B as Bt,cM as Ft,n as pe,m as se,aP as Rt,q as Ze,$ as Ie,cf as Xe,aH as Lt,cN as et,cO as jt,N as Ht,v as Vt,aN as tt,aO as nt,ax as it,S as a,a0 as R,cP as xt,cQ as Ut,cR as Jt,cS as Wt,cT as Kt,ar as Yt,T as h,aE as te,Y as A,a1 as I,a6 as J,cU as $e,cV as qt,cW as Gt,a5 as rt,ae as Y,V as _,W as y,a2 as Q,aj as st,cj as Zt,ci as Xt,M as ot,U as u,Z as lt,ce as en,cX as Me,ad as tn,cY as nn,cg as rn,bZ as sn,cZ as on,c_ as de,c$ as ln}from"./index-93a218ca.js";import{f as Qe,g as an,h as un}from"./functionalCallableComp-685da399.js";import{D as G,a as ve}from"./index-f60e0de3.js";/* empty css */var cn=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},dn=X({compatConfig:{MODE:3},name:"ACheckableTag",props:cn(),setup:function(t,e){var n=e.slots,r=e.emit,o=Ye("tag",t),p=o.prefixCls,d=function(E){var w=t.checked;r("update:checked",!w),r("change",!w),r("click",E)},v=V(function(){var b;return qe(p.value,(b={},K(b,"".concat(p.value,"-checkable"),!0),K(b,"".concat(p.value,"-checkable-checked"),t.checked),b))});return function(){var b;return S("span",{class:v.value,onClick:d},[(b=n.default)===null||b===void 0?void 0:b.call(n)])}}});const me=dn;var fn=new RegExp("^(".concat(yt.join("|"),")(-inverse)?$")),hn=new RegExp("^(".concat(bt.join("|"),")$")),gn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:ze.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:ze.any}},Z=X({compatConfig:{MODE:3},name:"ATag",props:gn(),slots:["closeIcon","icon"],setup:function(t,e){var n=e.slots,r=e.emit,o=e.attrs,p=Ye("tag",t),d=p.prefixCls,v=p.direction,b=j(!0);At(function(){t.visible!==void 0&&(b.value=t.visible)});var E=function(s){s.stopPropagation(),r("update:visible",!1),r("close",s),!s.defaultPrevented&&t.visible===void 0&&(b.value=!1)},w=V(function(){var l=t.color;return l?fn.test(l)||hn.test(l):!1}),T=V(function(){var l;return qe(d.value,(l={},K(l,"".concat(d.value,"-").concat(t.color),w.value),K(l,"".concat(d.value,"-has-color"),t.color&&!w.value),K(l,"".concat(d.value,"-hidden"),!b.value),K(l,"".concat(d.value,"-rtl"),v.value==="rtl"),l))});return function(){var l,s,c,m=t.icon,N=m===void 0?(l=n.icon)===null||l===void 0?void 0:l.call(n):m,O=t.color,z=t.closeIcon,g=z===void 0?(s=n.closeIcon)===null||s===void 0?void 0:s.call(n):z,f=t.closable,C=f===void 0?!1:f,M=function(){return C?g?S("span",{class:"".concat(d.value,"-close-icon"),onClick:E},[g]):S(kt,{class:"".concat(d.value,"-close-icon"),onClick:E},null):null},F={backgroundColor:O&&!w.value?O:void 0},B=N||null,k=(c=n.default)===null||c===void 0?void 0:c.call(n),L=B?S(H,null,[B,S("span",null,[k])]):k,P="onClick"in o,$=S("span",{class:T.value,style:F},[L,M()]);return P?S(St,null,{default:function(){return[$]}}):$}}});Z.CheckableTag=me;Z.install=function(i){return i.component(Z.name,Z),i.component(me.name,me),i};const pn=Z;G.Button=ve;G.install=function(i){return i.component(G.name,G),i.component(ve.name,ve),i};var vn={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 mn=vn;function Be(i){for(var t=1;t{const r=Pt();ge(r),ne.has(r)||(ne.set(r,ke(i(r,n??(t==null?void 0:t())))),Et(()=>{ne.delete(r)}));const o=ne.get(r);return ge(o),{state:o,toRefs(){return Tt(o)}}}}}var Bn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const Fn=Bn;function Le(i){for(var t=1;t{const i=j([]);return{selectdFiles:i,addFiles:e=>{i.value=Dt([...i.value,...e])}}});class oe{constructor(t,e=Nt.CREATED_TIME_DESC){ee(this,"root");ee(this,"execQueue",[]);ee(this,"walkerInitPromsie");this.entryPath=t,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(n=>{Qe([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),n()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const t=e=>e.children.map(n=>{if(n.info.type==="dir")return t(n);if(ae(n.info.name))return n.info}).filter(n=>n).flat(1);return t(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(t){const{files:e}=await an(t.info.fullpath);return t.children=Ge(e,this.sortMethod).map(n=>({info:n,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...t.children.filter(n=>n.info.type==="dir").map(n=>({fn:()=>this.fetchChildren(n),...n}))),t}async next(){await this.walkerInitPromsie;const t=Tn(this.execQueue);if(!t)return null;const e=await t.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const t=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(t.push(o.info),e(o))};e(this.root);const n=await Qe(t.map(r=>r.fullpath));for(const r of t)if(!zt(r,n[r.fullpath]))return!0;return!1}async seamlessRefresh(t,e=j(!1)){const n=performance.now(),r=new oe(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.length
'};e.configure=function(s){var c,m;for(c in s)m=s[c],m!==void 0&&s.hasOwnProperty(c)&&(n[c]=m);return this},e.status=null,e.set=function(s){var c=e.isStarted();s=r(s,n.minimum,1),e.status=s===1?null:s;var m=e.render(!c),N=m.querySelector(n.barSelector),O=n.speed,z=n.easing;return m.offsetWidth,d(function(g){n.positionUsing===""&&(n.positionUsing=e.getPositioningCSS()),v(N,p(s,O,z)),s===1?(v(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){v(m,{transition:"all "+O+"ms linear",opacity:0}),setTimeout(function(){e.remove(),g()},O)},O)):setTimeout(g,O)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var s=function(){setTimeout(function(){e.status&&(e.trickle(),s())},n.trickleSpeed)};return n.trickle&&s(),this},e.done=function(s){return!s&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(s){var c=e.status;return c?c>1?void 0:(typeof s!="number"&&(c>=0&&c<.2?s=.1:c>=.2&&c<.5?s=.04:c>=.5&&c<.8?s=.02:c>=.8&&c<.99?s=.005:s=0),c=r(c+s,0,.994),e.set(c)):e.start()},e.trickle=function(){return e.inc()},function(){var s=0,c=0;e.promise=function(m){return!m||m.state()==="resolved"?this:(c===0&&e.start(),s++,c++,m.always(function(){c--,c===0?(s=0,e.done()):e.set((s-c)/s)}),this)}}(),e.getElement=function(){var s=e.getParent();if(s){var c=Array.prototype.slice.call(s.querySelectorAll(".nprogress")).filter(function(m){return m.parentElement===s});if(c.length>0)return c[0]}return null},e.getParent=function(){if(n.parent instanceof HTMLElement)return n.parent;if(typeof n.parent=="string")return document.querySelector(n.parent)},e.render=function(s){if(e.isRendered())return e.getElement();E(document.documentElement,"nprogress-busy");var c=document.createElement("div");c.id="nprogress",c.className="nprogress",c.innerHTML=n.template;var m=c.querySelector(n.barSelector),N=s?"-100":o(e.status||0),O=e.getParent(),z;return v(m,{transition:"all 0 linear",transform:"translate3d("+N+"%,0,0)"}),n.showSpinner||(z=c.querySelector(n.spinnerSelector),z&&l(z)),O!=document.body&&E(O,"nprogress-custom-parent"),O.appendChild(c),c},e.remove=function(){e.status=null,w(document.documentElement,"nprogress-busy"),w(e.getParent(),"nprogress-custom-parent");var s=e.getElement();s&&l(s)},e.isRendered=function(){return!!e.getElement()},e.getPositioningCSS=function(){var s=document.body.style,c="WebkitTransform"in s?"Webkit":"MozTransform"in s?"Moz":"msTransform"in s?"ms":"OTransform"in s?"O":"";return c+"Perspective"in s?"translate3d":c+"Transform"in s?"translate":"margin"};function r(s,c,m){return sm?m:s}function o(s){return(-1+s)*100}function p(s,c,m){var N;return n.positionUsing==="translate3d"?N={transform:"translate3d("+o(s)+"%,0,0)"}:n.positionUsing==="translate"?N={transform:"translate("+o(s)+"%,0)"}:N={"margin-left":o(s)+"%"},N.transition="all "+c+"ms "+m,N}var d=function(){var s=[];function c(){var m=s.shift();m&&m(c)}return function(m){s.push(m),s.length==1&&c()}}(),v=function(){var s=["Webkit","O","Moz","ms"],c={};function m(g){return g.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(f,C){return C.toUpperCase()})}function N(g){var f=document.body.style;if(g in f)return g;for(var C=s.length,M=g.charAt(0).toUpperCase()+g.slice(1),F;C--;)if(F=s[C]+M,F in f)return F;return g}function O(g){return g=m(g),c[g]||(c[g]=N(g))}function z(g,f,C){f=O(f),g.style[f]=C}return function(g,f){var C=arguments,M,F;if(C.length==2)for(M in f)F=f[M],F!==void 0&&f.hasOwnProperty(M)&&z(g,M,F);else z(g,C[1],C[2])}}();function b(s,c){var m=typeof s=="string"?s:T(s);return m.indexOf(" "+c+" ")>=0}function E(s,c){var m=T(s),N=m+c;b(m,c)||(s.className=N.substring(1))}function w(s,c){var m=T(s),N;b(s,c)&&(N=m.replace(" "+c+" "," "),s.className=N.substring(1,N.length-1))}function T(s){return(" "+(s&&s.className||"")+" ").replace(/\s+/gi," ")}function l(s){s&&s.parentNode&&s.parentNode.removeChild(s)}return e})})(ct);var Xn=ct.exports;const ms=Mt(Xn);function ys({fetchNext:i}={}){const{scroller:t,sortedFiles:e,sortMethod:n,currLocation:r,stackViewEl:o,canLoadNext:p,previewIdx:d,props:v,walker:b,getViewableAreaFiles:E}=le().toRefs(),{state:w}=le(),T=j(!1),l=j(q.defaultGridCellWidth),s=V(()=>l.value+16),c=44,{width:m}=Qt(o),N=V(()=>~~(m.value/s.value)),O=ke(new Map),z=V(()=>{const B=s.value;return{first:B+(l.value<=160?0:c),second:B}}),g=j(!1),f=async()=>{var B;if(!(g.value||v.value.mode!=="walk"||!p.value))try{g.value=!0,await((B=b.value)==null?void 0:B.next())}finally{g.value=!1}},C=async(B=!1)=>{const k=t.value,L=()=>B?d.value:(k==null?void 0:k.$_endIndex)??0,P=()=>{const $=e.value.length,x=50;return $?i?L()>$-x:L()>$-x&&p.value:!0};for(;P();){await Ze(30);const $=await(i??f)();if(typeof $=="boolean"&&!$)return}};w.useEventListen("loadNextDir",Bt(async(B=!1)=>{await C(B),v.value.mode==="walk"&&M()})),w.useEventListen("viewableAreaFilesChange",()=>{const B=E.value(),k=B.filter(P=>P.is_under_scanned_path&&ae(P.name)).map(P=>P.fullpath);ei.fetchImageTags(k);const L=B.filter(P=>P.is_under_scanned_path&&P.type==="dir"&&!O.has(P.fullpath)).map(P=>P.fullpath);L.length&&Ft(L).then(P=>{for(const $ in P)if(Object.prototype.hasOwnProperty.call(P,$)){const x=P[$];O.set($,x)}})}),w.useEventListen("refresh",async()=>{w.eventEmitter.emit("viewableAreaFilesChange")});const M=pe(()=>w.eventEmitter.emit("viewableAreaFilesChange"),300);se(r,M);const F=pe(async()=>{await C(),M()},150);return{gridItems:N,sortedFiles:e,sortMethodConv:Rt,moreActionsDropdownShow:T,gridSize:s,sortMethod:n,onScroll:F,loadNextDir:f,loadNextDirLoading:g,canLoadNext:p,itemSize:z,cellWidth:l,dirCoverCache:O}}const bs=new Map,q=Ie(),As=Zn(),ei=Xe(),Ss=Lt(),ks=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:Is,useEventListen:_s}=et(),{useHookShareState:le}=Qn((i,{images:t})=>{const e=j({tabIdx:-1,paneIdx:-1}),n=V(()=>Ht(r.value)),r=j([]),o=V(()=>{var f;return r.value.map(C=>C.curr).slice((f=q.conf)!=null&&f.is_win&&e.value.mode!=="scanned-fixed"?1:0)}),p=V(()=>Vt(...o.value)),d=V(()=>{var f,C;return e.value.mode==="scanned-fixed"?((C=(f=r.value)==null?void 0:f[0])==null?void 0:C.curr)??"":e.value.mode==="walk"?e.value.path??"":r.value.length===1?"/":p.value}),v=j(q.defaultSortingMethod),b=j(e.value.mode=="walk"?new oe(e.value.path,v.value):void 0);se([()=>e.value.mode,()=>e.value.path,v],async([f,C,M])=>{var F;f==="walk"?(b.value=new oe(C,M),r.value=[{files:[],curr:C}],await Ze(),await((F=b.value)==null?void 0:F.reset()),z.eventEmitter.emit("loadNextDir")):b.value=void 0});const E=ke(new Set);se(n,()=>E.clear());const w=V(()=>{var F;if(t.value)return t.value;if(b.value)return b.value.images.filter(B=>!E.has(B.fullpath));if(!n.value)return[];const f=((F=n.value)==null?void 0:F.files)??[],C=v.value;return Ge((B=>q.onlyFoldersAndImages?B.filter(k=>k.type==="dir"||ae(k.name)):B)(f),C).filter(B=>!E.has(B.fullpath))}),T=j([]),l=j(-1),s=V(()=>b.value?!b.value.isCompleted:!1),c=j(!1),m=j(!1),N=j(),O=()=>{var f,C,M;return(M=(C=(f=q.tabList)==null?void 0:f[e.value.tabIdx])==null?void 0:C.panes)==null?void 0:M[e.value.paneIdx]},z=et();z.useEventListen("selectAll",()=>{console.log(`select all 0 -> ${w.value.length}`),T.value=$n(0,w.value.length)});const g=()=>{const f=N.value;if(f){const C=Math.max(f.$_startIndex-10,0);return w.value.slice(C,f.$_endIndex+10)}return[]};return{previewing:m,spinning:c,canLoadNext:s,multiSelectedIdxs:T,previewIdx:l,basePath:o,currLocation:d,currPage:n,stack:r,sortMethod:v,sortedFiles:w,scroller:N,stackViewEl:j(),props:e,getPane:O,walker:b,deletedFiles:E,getViewableAreaFiles:g,...z}},()=>({images:j()}));function Cs(){const{eventEmitter:i,multiSelectedIdxs:t,sortedFiles:e}=le().toRefs();return{onSelectAll:()=>i.value.emit("selectAll"),onReverseSelect:()=>{t.value=e.value.map((p,d)=>d).filter(p=>!t.value.includes(p))},onClearAllSelected:()=>{t.value=[]}}}const ws=()=>{const{stackViewEl:i}=le().toRefs(),t=j(-1);return jt(i,e=>{var r;let n=e.target;for(;n.parentElement;)if(n=n.parentElement,n.tagName.toLowerCase()==="li"&&n.classList.contains("file-item-trigger")){const o=(r=n.dataset)==null?void 0:r.idx;o&&Number.isSafeInteger(+o)&&(t.value=+o);return}}),{showMenuIdx:t}};function ti(){var i=window.navigator.userAgent,t=i.indexOf("MSIE ");if(t>0)return parseInt(i.substring(t+5,i.indexOf(".",t)),10);var e=i.indexOf("Trident/");if(e>0){var n=i.indexOf("rv:");return parseInt(i.substring(n+3,i.indexOf(".",n)),10)}var r=i.indexOf("Edge/");return r>0?parseInt(i.substring(r+5,i.indexOf(".",r)),10):-1}let ie;function ye(){ye.init||(ye.init=!0,ie=ti()!==-1)}var ue={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ye(),it(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const i=document.createElement("object");this._resizeObject=i,i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex",-1),i.onload=this.addResizeHandlers,i.type="text/html",ie&&this.$el.appendChild(i),i.data="about:blank",ie||this.$el.appendChild(i)},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 ni=xt();tt("data-v-b329ee4c");const ii={class:"resize-observer",tabindex:"-1"};nt();const ri=ni((i,t,e,n,r,o)=>(a(),R("div",ii)));ue.render=ri;ue.__scopeId="data-v-b329ee4c";ue.__file="src/components/ResizeObserver.vue";function re(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(t){return typeof t}:re=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(i)}function si(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(i,t){for(var e=0;ei.length)&&(t=i.length);for(var e=0,n=new Array(t);e2&&arguments[2]!==void 0?arguments[2]:{},n,r,o,p=function(v){for(var b=arguments.length,E=new Array(b>1?b-1:0),w=1;w1){var b=d.find(function(w){return w.isIntersecting});b&&(v=b)}if(r.callback){var E=v.isIntersecting&&v.intersectionRatio>=r.threshold;if(E===r.oldResult)return;r.oldResult=E,r.callback(E,v)}},this.options.intersection),it(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}}]),i}();function ft(i,t,e){var n=t.value;if(n)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 hi(i,n,e);i._vue_visibilityState=r}}function gi(i,t,e){var n=t.value,r=t.oldValue;if(!dt(n,r)){var o=i._vue_visibilityState;if(!n){ht(i);return}o?o.createObserver(n,e):ft(i,{value:n},e)}}function ht(i){var t=i._vue_visibilityState;t&&(t.destroyObserver(),delete i._vue_visibilityState)}var pi={beforeMount:ft,updated:gi,unmounted:ht},vi={itemsLimit:1e3},mi=/(auto|scroll)/;function gt(i,t){return i.parentNode===null?t:gt(i.parentNode,t.concat([i]))}var fe=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)},yi=function(t){return fe(t,"overflow")+fe(t,"overflow-y")+fe(t,"overflow-x")},bi=function(t){return mi.test(yi(t))};function We(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var t=gt(i.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const i=this.$_lastUpdateScrollPosition;typeof i=="number"&&this.$nextTick(()=>{this.scrollToPosition(i)})},beforeUnmount(){this.removeListeners()},methods:{addView(i,t,e,n,r){const o=Ut({id:Ii++,index:t,used:!0,key:n,type:r}),p=Jt({item:e,position:0,nr:o});return i.push(p),p},unuseView(i,t=!1){const e=this.$_unusedViews,n=i.nr.type;let r=e.get(n);r||(r=[],e.set(n,r)),r.push(i),t||(i.nr.used=!1,i.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(i){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(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(i,t){this.ready&&(i||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(i,t=!1){const e=this.itemSize,n=this.gridItems||1,r=this.itemSecondarySize||e,o=this.$_computedMinItemSize,p=this.typeField,d=this.simpleArray?null:this.keyField,v=this.items,b=v.length,E=this.sizes,w=this.$_views,T=this.$_unusedViews,l=this.pool,s=this.itemIndexByKey;let c,m,N,O,z;if(!b)c=m=O=z=N=0;else if(this.$_prerender)c=O=0,m=z=Math.min(this.prerender,v.length),N=null;else{const k=this.getScroll();if(t){let $=k.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),e===null&&$k.start&&(De=U),U=~~((x+De)/2);while(U!==Ne);for(U<0&&(U=0),c=U,N=E[b-1].accumulator,m=U;mb&&(m=b)),O=c;Ob&&(m=b),O<0&&(O=0),z>b&&(z=b),N=Math.ceil(b/n)*e}}m-c>vi.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let g;const f=c<=this.$_endIndex&&m>=this.$_startIndex;if(f)for(let k=0,L=l.length;k=m)&&this.unuseView(g));const C=f?null:new Map;let M,F,B;for(let k=c;k=P.length)&&(g=this.addView(l,k,M,L,F),this.unuseView(g,!0),P=T.get(F)),g=P[B],C.set(F,B+1)),w.delete(g.nr.key),g.nr.used=!0,g.nr.index=k,g.nr.key=L,g.nr.type=F,w.set(L,g),$=!0;else if(!g.nr.used&&(g.nr.used=!0,g.nr.index=k,$=!0,P)){const x=P.indexOf(g);x!==-1&&P.splice(x,1)}g.item=M,$&&(k===v.length-1&&this.$emit("scroll-end"),k===0&&this.$emit("scroll-start")),e===null?(g.position=E[k-1].accumulator,g.offset=0):(g.position=Math.floor(k/n)*e,g.offset=k%n*r)}return this.$_startIndex=c,this.$_endIndex=m,this.emitUpdate&&this.$emit("update",c,m,O,z),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:f}},getListenerTarget(){let i=We(this.$el);return window.document&&(i===window.document.documentElement||i===window.document.body)&&(i=window),i},getScroll(){const{$el:i,direction:t}=this,e=t==="vertical";let n;if(this.pageMode){const r=i.getBoundingClientRect(),o=e?r.height:r.width;let p=-(e?r.top:r.left),d=e?window.innerHeight:window.innerWidth;p<0&&(d+=p,p=0),p+d>o&&(d=o-p),n={start:p,end:p+d}}else e?n={start:i.scrollTop,end:i.scrollTop+i.clientHeight}:n={start:i.scrollLeft,end:i.scrollLeft+i.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Se?{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(i){let t;const e=this.gridItems||1;this.itemSize===null?t=i>0?this.sizes[i-1].accumulator:0:t=Math.floor(i/e)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(i){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,r;if(this.pageMode){const o=We(this.$el),p=o.tagName==="HTML"?0:o[t.scroll],d=o.getBoundingClientRect(),b=this.$el.getBoundingClientRect()[t.start]-d[t.start];e=o,n=t.scroll,r=i+p+b}else e=this.$el,n=t.scroll,r=i;e[n]=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((i,t)=>i.nr.index-t.nr.index)}}};const _i={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Ci={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function wi(i,t,e,n,r,o){const p=Wt("ResizeObserver"),d=Kt("observe-visibility");return Yt((a(),h("div",{class:Y(["vue-recycle-scroller",{ready:r.ready,"page-mode":e.pageMode,[`direction-${i.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...v)=>o.handleScroll&&o.handleScroll(...v))},[i.$slots.before?(a(),h("div",_i,[te(i.$slots,"before")],512)):A("v-if",!0),(a(),R($e(e.listTag),{ref:"wrapper",style:rt({[i.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:I(()=>[(a(!0),h(H,null,J(r.pool,v=>(a(),R($e(e.itemTag),qt({key:v.nr.id,style:r.ready?{transform:`translate${i.direction==="vertical"?"Y":"X"}(${v.position}px) translate${i.direction==="vertical"?"X":"Y"}(${v.offset}px)`,width:e.gridItems?`${i.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${i.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&r.hoverKey===v.nr.key}]]},Gt(e.skipHover?{}:{mouseenter:()=>{r.hoverKey=v.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:I(()=>[te(i.$slots,"default",{item:v.item,index:v.nr.index,active:v.nr.used})]),_:2},1040,["style","class"]))),128)),te(i.$slots,"empty")]),_:3},8,["style","class"])),i.$slots.after?(a(),h("div",Ci,[te(i.$slots,"after")],512)):A("v-if",!0),S(p,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[d,o.handleVisibilityChange]])}pt.render=wi;pt.__file="src/components/RecycleScroller.vue";const Ke=X({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},isSelectedMutilFiles:{type:Boolean}},emits:["contextMenuClick"],setup(i,{emit:t}){const e=i,n=Ie(),r=V(()=>{var o;return(((o=n.conf)==null?void 0:o.all_custom_tags)??[]).reduce((p,d)=>[...p,{...d,selected:!!e.selectedTag.find(v=>v.id===d.id)}],[])});return(o,p)=>{const d=st,v=Zt,b=Xt,E=ot;return a(),R(E,{onClick:p[0]||(p[0]=w=>t("contextMenuClick",w,o.file,o.idx))},{default:I(()=>{var w;return[S(d,{key:"deleteFiles"},{default:I(()=>[_(y(o.$t("deleteSelected")),1)]),_:1}),S(d,{key:"openWithDefaultApp"},{default:I(()=>[_(y(o.$t("openWithDefaultApp")),1)]),_:1}),S(d,{key:"saveSelectedAsJson"},{default:I(()=>[_(y(o.$t("saveSelectedAsJson")),1)]),_:1}),o.file.type==="dir"?(a(),h(H,{key:0},[S(d,{key:"openInNewTab"},{default:I(()=>[_(y(o.$t("openInNewTab")),1)]),_:1}),S(d,{key:"openOnTheRight"},{default:I(()=>[_(y(o.$t("openOnTheRight")),1)]),_:1}),S(d,{key:"openWithWalkMode"},{default:I(()=>[_(y(o.$t("openWithWalkMode")),1)]),_:1})],64)):A("",!0),o.file.type==="file"?(a(),h(H,{key:1},[Q(ae)(o.file.name)?(a(),h(H,{key:0},[S(d,{key:"viewGenInfo"},{default:I(()=>[_(y(o.$t("viewGenerationInfo")),1)]),_:1}),S(v),((w=Q(n).conf)==null?void 0:w.launch_mode)!=="server"?(a(),h(H,{key:0},[S(d,{key:"send2txt2img"},{default:I(()=>[_(y(o.$t("sendToTxt2img")),1)]),_:1}),S(d,{key:"send2img2img"},{default:I(()=>[_(y(o.$t("sendToImg2img")),1)]),_:1}),S(d,{key:"send2inpaint"},{default:I(()=>[_(y(o.$t("sendToInpaint")),1)]),_:1}),S(d,{key:"send2extras"},{default:I(()=>[_(y(o.$t("sendToExtraFeatures")),1)]),_:1}),S(b,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:I(()=>[S(d,{key:"send2controlnet-txt2img"},{default:I(()=>[_("ControlNet - "+y(o.$t("t2i")),1)]),_:1}),S(d,{key:"send2controlnet-img2img"},{default:I(()=>[_("ControlNet - "+y(o.$t("i2i")),1)]),_:1}),S(d,{key:"send2outpaint"},{default:I(()=>[_("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):A("",!0),S(d,{key:"send2BatchDownload"},{default:I(()=>[_(y(o.$t("sendToBatchDownload")),1)]),_:1}),S(b,{key:"copy2target",title:o.$t("copyTo")},{default:I(()=>[(a(!0),h(H,null,J(Q(n).quickMovePaths,T=>(a(),R(d,{key:`copy-to-${T.dir}`},{default:I(()=>[_(y(T.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),S(b,{key:"move2target",title:o.$t("moveTo")},{default:I(()=>[(a(!0),h(H,null,J(Q(n).quickMovePaths,T=>(a(),R(d,{key:`move-to-${T.dir}`},{default:I(()=>[_(y(T.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),S(v),o.isSelectedMutilFiles?(a(),h(H,{key:1},[S(b,{key:"batch-add-tag",title:o.$t("batchAddTag")},{default:I(()=>[(a(!0),h(H,null,J(r.value,T=>(a(),R(d,{key:`batch-add-tag-${T.id}`},{default:I(()=>[_(y(T.name),1)]),_:2},1024))),128))]),_:1},8,["title"]),S(b,{key:"batch-remove-tag",title:o.$t("batchRemoveTag")},{default:I(()=>[(a(!0),h(H,null,J(r.value,T=>(a(),R(d,{key:`batch-remove-tag-${T.id}`},{default:I(()=>[_(y(T.name),1)]),_:2},1024))),128))]),_:1},8,["title"])],64)):(a(),R(b,{key:"toggle-tag",title:o.$t("toggleTag")},{default:I(()=>[(a(!0),h(H,null,J(r.value,T=>(a(),R(d,{key:`toggle-tag-${T.id}`},{default:I(()=>[_(y(T.name)+" ",1),T.selected?(a(),R(Q(at),{key:0})):(a(),R(Q(ut),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"])),S(v),S(d,{key:"openFileLocationInNewTab"},{default:I(()=>[_(y(o.$t("openFileLocationInNewTab")),1)]),_:1}),S(d,{key:"openWithLocalFileBrowser"},{default:I(()=>[_(y(o.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):A("",!0),S(v),S(d,{key:"rename"},{default:I(()=>[_(y(o.$t("rename")),1)]),_:1}),S(d,{key:"previewInNewWindow"},{default:I(()=>[_(y(o.$t("previewInNewWindow")),1)]),_:1}),S(d,{key:"download"},{default:I(()=>[_(y(o.$t("download")),1)]),_:1}),S(d,{key:"copyPreviewUrl"},{default:I(()=>[_(y(o.$t("copySourceFilePreviewLink")),1)]),_:1}),S(d,{key:"copyFilePath"},{default:I(()=>[_(y(o.$t("copyFilePath")),1)]),_:1})],64)):A("",!0)]}),_:1})}}}),D=i=>(tt("data-v-78cd67a3"),i=i(),nt(),i),Ei={class:"changeIndicatorWrapper"},Ti={key:0,class:"changeIndicatorsLeft changeIndicators"},Pi={key:0,class:"promptChangeIndicator changeIndicator"},Oi={key:1,class:"negpromptChangeIndicator changeIndicator"},Di={key:2,class:"seedChangeIndicator changeIndicator"},Ni={key:3,class:"stepsChangeIndicator changeIndicator"},zi={key:4,class:"cfgChangeIndicator changeIndicator"},$i={key:5,class:"sizeChangeIndicator changeIndicator"},Mi={key:6,class:"modelChangeIndicator changeIndicator"},Qi={key:7,class:"samplerChangeIndicator changeIndicator"},Bi={key:8,class:"otherChangeIndicator changeIndicator"},Fi={class:"hoverOverlay"},Ri=D(()=>u("strong",null,"This file",-1)),Li=D(()=>u("br",null,null,-1)),ji=D(()=>u("br",null,null,-1)),Hi={key:0},Vi=D(()=>u("td",null,[u("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),xi={key:1},Ui=D(()=>u("td",null,[u("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),Ji={key:2},Wi=D(()=>u("td",null,[u("span",{class:"seedChangeIndicator"},"Seed")],-1)),Ki={key:3},Yi=D(()=>u("td",null,[u("span",{class:"stepsChangeIndicator"},"Steps")],-1)),qi={key:4},Gi=D(()=>u("td",null,[u("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),Zi={key:5},Xi=D(()=>u("td",null,[u("span",{class:"sizeChangeIndicator"},"Size")],-1)),er={key:6},tr=D(()=>u("td",null,[u("span",{class:"modelChangeIndicator"},"Model")],-1)),nr=D(()=>u("br",null,null,-1)),ir={key:7},rr=D(()=>u("td",null,[u("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),sr=D(()=>u("br",null,null,-1)),or=D(()=>u("br",null,null,-1)),lr={key:0},ar=D(()=>u("span",{class:"otherChangeIndicator"},"Other",-1)),ur=D(()=>u("br",null,null,-1)),cr=D(()=>u("br",null,null,-1)),dr={key:1,class:"changeIndicatorsRight changeIndicators"},fr={key:0,class:"promptChangeIndicator changeIndicator"},hr={key:1,class:"negpromptChangeIndicator changeIndicator"},gr={key:2,class:"seedChangeIndicator changeIndicator"},pr={key:3,class:"stepsChangeIndicator changeIndicator"},vr={key:4,class:"cfgChangeIndicator changeIndicator"},mr={key:5,class:"sizeChangeIndicator changeIndicator"},yr={key:6,class:"modelChangeIndicator changeIndicator"},br={key:7,class:"samplerChangeIndicator changeIndicator"},Ar={key:8,class:"otherChangeIndicator changeIndicator"},Sr={class:"hoverOverlay"},kr=D(()=>u("strong",null,"This file",-1)),Ir=D(()=>u("br",null,null,-1)),_r=D(()=>u("br",null,null,-1)),Cr={key:0},wr=D(()=>u("td",null,[u("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),Er={key:1},Tr=D(()=>u("td",null,[u("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),Pr={key:2},Or=D(()=>u("td",null,[u("span",{class:"seedChangeIndicator"},"Seed")],-1)),Dr={key:3},Nr=D(()=>u("td",null,[u("span",{class:"stepsChangeIndicator"},"Steps")],-1)),zr={key:4},$r=D(()=>u("td",null,[u("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),Mr={key:5},Qr=D(()=>u("td",null,[u("span",{class:"sizeChangeIndicator"},"Size")],-1)),Br={key:6},Fr=D(()=>u("td",null,[u("span",{class:"modelChangeIndicator"},"Model")],-1)),Rr=D(()=>u("br",null,null,-1)),Lr={key:7},jr=D(()=>u("td",null,[u("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),Hr=D(()=>u("br",null,null,-1)),Vr=D(()=>u("br",null,null,-1)),xr={key:0},Ur=D(()=>u("span",{class:"otherChangeIndicator"},"Other",-1)),Jr=D(()=>u("br",null,null,-1)),Wr=D(()=>u("br",null,null,-1)),Kr=X({__name:"ChangeIndicator",props:{genDiffToPrevious:{},genDiffToNext:{},genInfo:{}},setup(i){function t(n){const r=["prompt","negativePrompt","seed","steps","cfgScale","size","Model","others"],o=Object.keys(n).filter(p=>!r.includes(p));return Object.fromEntries(o.map(p=>[p,n[p]]))}function e(n){return Object.keys(t(n)).length>0}return(n,r)=>(a(),h("div",Ei,[n.genDiffToPrevious.empty?A("",!0):(a(),h("div",Ti,["prompt"in n.genDiffToPrevious.diff?(a(),h("div",Pi,"P+")):A("",!0),"negativePrompt"in n.genDiffToPrevious.diff?(a(),h("div",Oi,"P-")):A("",!0),"seed"in n.genDiffToPrevious.diff?(a(),h("div",Di,"Se")):A("",!0),"steps"in n.genDiffToPrevious.diff?(a(),h("div",Ni,"St")):A("",!0),"cfgScale"in n.genDiffToPrevious.diff?(a(),h("div",zi,"Cf")):A("",!0),"size"in n.genDiffToPrevious.diff?(a(),h("div",$i,"Si")):A("",!0),"Model"in n.genDiffToPrevious.diff?(a(),h("div",Mi,"Mo")):A("",!0),"Sampler"in n.genDiffToPrevious.diff?(a(),h("div",Qi,"Sa")):A("",!0),e(n.genDiffToPrevious.diff)?(a(),h("div",Bi,"Ot")):A("",!0)])),u("div",Fi,[u("small",null,[S(Q(je)),Ri,_(" vs "+y(n.genDiffToPrevious.otherFile)+" ",1),Li,ji,u("table",null,["prompt"in n.genDiffToPrevious.diff?(a(),h("tr",Hi,[Vi,u("td",null,y(n.genDiffToPrevious.diff.prompt)+" tokens changed",1)])):A("",!0),"negativePrompt"in n.genDiffToPrevious.diff?(a(),h("tr",xi,[Ui,u("td",null,y(n.genDiffToPrevious.diff.negativePrompt)+" tokens changed",1)])):A("",!0),"seed"in n.genDiffToPrevious.diff?(a(),h("tr",Ji,[Wi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.seed[0]),1),_(" vs "+y(n.genDiffToPrevious.diff.seed[1]),1)])])):A("",!0),"steps"in n.genDiffToPrevious.diff?(a(),h("tr",Ki,[Yi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.steps[0]),1),_(" vs "+y(n.genDiffToPrevious.diff.steps[1]),1)])])):A("",!0),"cfgScale"in n.genDiffToPrevious.diff?(a(),h("tr",qi,[Gi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.cfgScale[0]),1),_(" vs "+y(n.genDiffToPrevious.diff.cfgScale[1]),1)])])):A("",!0),"size"in n.genDiffToPrevious.diff?(a(),h("tr",Zi,[Xi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.size[0]),1),_(" vs "+y(n.genDiffToPrevious.diff.size[1]),1)])])):A("",!0),"Model"in n.genDiffToPrevious.diff?(a(),h("tr",er,[tr,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.Model[0]),1),nr,_(" vs "+y(n.genDiffToPrevious.diff.Model[1]),1)])])):A("",!0),"Sampler"in n.genDiffToPrevious.diff?(a(),h("tr",ir,[rr,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.Sampler[0]),1),sr,_(" vs "+y(n.genDiffToPrevious.diff.Sampler[1]),1)])])):A("",!0)]),or,e(n.genDiffToPrevious.diff)?(a(),h("div",lr,[ar,_(" props that changed:"),ur,cr,u("ul",null,[(a(!0),h(H,null,J(t(n.genDiffToPrevious.diff),(o,p)=>(a(),h("li",null,y(p),1))),256))])])):A("",!0)])]),n.genDiffToNext.empty?A("",!0):(a(),h("div",dr,["prompt"in n.genDiffToNext.diff?(a(),h("div",fr,"P+")):A("",!0),"negativePrompt"in n.genDiffToNext.diff?(a(),h("div",hr,"P-")):A("",!0),"seed"in n.genDiffToNext.diff?(a(),h("div",gr,"Se")):A("",!0),"steps"in n.genDiffToNext.diff?(a(),h("div",pr,"St")):A("",!0),"cfgScale"in n.genDiffToNext.diff?(a(),h("div",vr,"Cf")):A("",!0),"size"in n.genDiffToNext.diff?(a(),h("div",mr,"Si")):A("",!0),"Model"in n.genDiffToNext.diff?(a(),h("div",yr,"Mo")):A("",!0),"Sampler"in n.genDiffToNext.diff?(a(),h("div",br,"Sa")):A("",!0),e(n.genDiffToNext.diff)?(a(),h("div",Ar,"Ot")):A("",!0)])),u("div",Sr,[u("small",null,[S(Q(je)),kr,_(" vs "+y(n.genDiffToNext.otherFile)+" ",1),Ir,_r,u("table",null,["prompt"in n.genDiffToNext.diff?(a(),h("tr",Cr,[wr,u("td",null,y(n.genDiffToNext.diff.prompt)+" tokens changed",1)])):A("",!0),"negativePrompt"in n.genDiffToNext.diff?(a(),h("tr",Er,[Tr,u("td",null,y(n.genDiffToNext.diff.negativePrompt)+" tokens changed",1)])):A("",!0),"seed"in n.genDiffToNext.diff?(a(),h("tr",Pr,[Or,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.seed[0]),1),_(" vs "+y(n.genDiffToNext.diff.seed[1]),1)])])):A("",!0),"steps"in n.genDiffToNext.diff?(a(),h("tr",Dr,[Nr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.steps[0]),1),_(" vs "+y(n.genDiffToNext.diff.steps[1]),1)])])):A("",!0),"cfgScale"in n.genDiffToNext.diff?(a(),h("tr",zr,[$r,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.cfgScale[0]),1),_(" vs "+y(n.genDiffToNext.diff.cfgScale[1]),1)])])):A("",!0),"size"in n.genDiffToNext.diff?(a(),h("tr",Mr,[Qr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.size[0]),1),_(" vs "+y(n.genDiffToNext.diff.size[1]),1)])])):A("",!0),"Model"in n.genDiffToNext.diff?(a(),h("tr",Br,[Fr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.Model[0]),1),Rr,_(" vs "+y(n.genDiffToNext.diff.Model[1]),1)])])):A("",!0),"Sampler"in n.genDiffToNext.diff?(a(),h("tr",Lr,[jr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.Sampler[0]),1),Hr,_(" vs "+y(n.genDiffToNext.diff.Sampler[1]),1)])])):A("",!0)]),Vr,e(n.genDiffToNext.diff)?(a(),h("div",xr,[Ur,_(" props that changed:"),Jr,Wr,u("ul",null,[(a(!0),h(H,null,J(t(n.genDiffToNext.diff),(o,p)=>(a(),h("li",null,y(p),1))),256))])])):A("",!0)])])]))}});const Yr=lt(Kr,[["__scopeId","data-v-78cd67a3"]]),qr=["data-idx"],Gr={key:1,class:"more"},Zr={class:"float-btn-wrap"},Xr={key:1,class:"tags-container"},es=["url"],ts={class:"play-icon"},ns=["src"],is={key:0,class:"tags-container"},rs={key:4,class:"preview-icon-wrap"},ss={key:1,class:"dir-cover-container"},os=["src"],ls={key:5,class:"profile"},as=["title"],us={class:"basic-info"},cs={style:{"margin-right":"4px"}},he=160,ds=X({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1},isSelectedMutilFiles:{type:Boolean},genInfo:{},enableChangeIndicator:{type:Boolean},extraTags:{},coverFiles:{},getGenDiff:{},getGenDiffWatchDep:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click"],setup(i,{emit:t}){const e=i;en(l=>({"6b392466":l.$props.cellWidth+"px"}));const n=Ie(),r=Xe(),o=j(),p=j(),d=pe(()=>{const{getGenDiff:l,file:s,idx:c}=e;l&&(p.value=l(s.gen_info_obj,c,1,s),o.value=l(s.gen_info_obj,c,-1,s))},200+100*Math.random());se(()=>{var l;return(l=e.getGenDiffWatchDep)==null?void 0:l.call(e,e.idx)},()=>{d()},{immediate:!0,deep:!0});const v=V(()=>r.tagMap.get(e.file.fullpath)??[]),b=V(()=>{const l=n.gridThumbnailResolution;return n.enableThumbnail?Me(e.file,[l,l].join("x")):tn(e.file)}),E=V(()=>{var l;return(((l=n.conf)==null?void 0:l.all_custom_tags)??[]).reduce((s,c)=>[...s,{...c,selected:!!v.value.find(m=>m.id===c.id)}],[])}),w=V(()=>E.value.find(l=>l.type==="custom"&&l.name==="like")),T=()=>{ge(w.value),t("contextMenuClick",{key:`toggle-tag-${w.value.id}`},e.file,e.idx)};return(l,s)=>{const c=G,m=st,N=ot,O=ln,z=pn;return a(),R(c,{trigger:["contextmenu"],visible:Q(n).longPressOpenContextMenu?typeof l.idx=="number"&&l.showMenuIdx===l.idx:void 0,"onUpdate:visible":s[8]||(s[8]=g=>typeof l.idx=="number"&&t("update:showMenuIdx",g?l.idx:-1))},{overlay:I(()=>[l.enableRightClickMenu?(a(),R(Ke,{key:0,file:l.file,idx:l.idx,"selected-tag":v.value,onContextMenuClick:s[7]||(s[7]=(g,f,C)=>t("contextMenuClick",g,f,C)),"is-selected-mutil-files":l.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])):A("",!0)]),default:I(()=>{var g;return[(a(),h("li",{class:Y(["file file-item-trigger grid",{clickable:l.file.type==="dir",selected:l.selected}]),"data-idx":l.idx,key:l.file.name,draggable:"true",onDragstart:s[4]||(s[4]=f=>t("dragstart",f,l.idx)),onDragend:s[5]||(s[5]=f=>t("dragend",f,l.idx)),onClickCapture:s[6]||(s[6]=f=>t("fileItemClick",f,l.file,l.idx))},[u("div",null,[l.enableCloseIcon?(a(),h("div",{key:0,class:"close-icon",onClick:s[0]||(s[0]=f=>t("close-icon-click"))},[S(Q(nn))])):A("",!0),l.enableRightClickMenu?(a(),h("div",Gr,[S(c,null,{overlay:I(()=>[S(Ke,{file:l.file,idx:l.idx,"selected-tag":v.value,onContextMenuClick:s[1]||(s[1]=(f,C,M)=>t("contextMenuClick",f,C,M)),"is-selected-mutil-files":l.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])]),default:I(()=>[u("div",Zr,[S(Q(rn))])]),_:1}),l.file.type==="file"?(a(),R(c,{key:0},{overlay:I(()=>[E.value.length>1?(a(),R(N,{key:0,onClick:s[2]||(s[2]=f=>t("contextMenuClick",f,l.file,l.idx))},{default:I(()=>[(a(!0),h(H,null,J(E.value,f=>(a(),R(m,{key:`toggle-tag-${f.id}`},{default:I(()=>[_(y(f.name)+" ",1),f.selected?(a(),R(Q(at),{key:0})):(a(),R(Q(ut),{key:1}))]),_:2},1024))),128))]),_:1})):A("",!0)]),default:I(()=>{var f,C;return[u("div",{class:Y(["float-btn-wrap",{"like-selected":(f=w.value)==null?void 0:f.selected}]),onClick:T},[(C=w.value)!=null&&C.selected?(a(),R(Q(Vn),{key:0})):(a(),R(Q(Wn),{key:1}))],2)]}),_:1})):A("",!0)])):A("",!0),Q(sn)(l.file.name)?(a(),h("div",{key:l.file.fullpath,class:Y(`idx-${l.idx} item-content`)},[l.enableChangeIndicator&&p.value&&o.value?(a(),R(Yr,{key:0,"gen-diff-to-next":p.value,"gen-diff-to-previous":o.value},null,8,["gen-diff-to-next","gen-diff-to-previous"])):A("",!0),S(O,{src:b.value,fallback:Q(Mn),preview:{src:l.fullScreenPreviewImageUrl,onVisibleChange:(f,C)=>t("previewVisibleChange",f,C)}},null,8,["src","fallback","preview"]),v.value&&l.cellWidth>he?(a(),h("div",Xr,[(a(!0),h(H,null,J(l.extraTags??v.value,f=>(a(),R(z,{key:f.id,color:Q(r).getColor(f.name)},{default:I(()=>[_(y(f.name),1)]),_:2},1032,["color"]))),128))])):A("",!0)],2)):Q(on)(l.file.name)?(a(),h("div",{key:3,class:Y(`idx-${l.idx} item-content video`),url:Q(de)(l.file),style:rt({"background-image":`url('${l.file.cover_url??Q(de)(l.file)}')`}),onClick:s[3]||(s[3]=f=>Q(un)(l.file,C=>t("contextMenuClick",{key:`toggle-tag-${C}`},l.file,l.idx)))},[u("div",ts,[u("img",{src:Q(Gn),style:{width:"40px",height:"40px"}},null,8,ns)]),v.value&&l.cellWidth>he?(a(),h("div",is,[(a(!0),h(H,null,J(v.value,f=>(a(),R(z,{key:f.id,color:Q(r).getColor(f.name)},{default:I(()=>[_(y(f.name),1)]),_:2},1032,["color"]))),128))])):A("",!0)],14,es)):(a(),h("div",rs,[l.file.type==="file"?(a(),R(Q(kn),{key:0,class:"icon center"})):(g=l.coverFiles)!=null&&g.length&&l.cellWidth>160?(a(),h("div",ss,[(a(!0),h(H,null,J(l.coverFiles,f=>(a(),h("img",{class:"dir-cover-item",src:f.media_type==="image"?Q(Me)(f):Q(de)(f),key:f.fullpath},null,8,os))),128))])):(a(),R(Q(wn),{key:2,class:"icon center"}))])),l.cellWidth>he?(a(),h("div",ls,[u("div",{class:"name line-clamp-1",title:l.file.name},y(l.file.name),9,as),u("div",us,[u("div",cs,y(l.file.type)+" "+y(l.file.size),1),u("div",null,y(l.file.date),1)])])):A("",!0)])],42,qr))]}),_:1},8,["visible"])}}});const Es=lt(ds,[["__scopeId","data-v-9a0c2829"]]);export{Es as F,ms as N,Ke as _,ys as a,ws as b,Cs as c,pt as d,_s as e,Ss as f,q as g,Is as h,As as i,ks as j,Zn as k,$n as r,bs as s,ei as t,le as u}; diff --git a/vue/dist/assets/ImgSliPagePane-aaed2b03.js b/vue/dist/assets/ImgSliPagePane-c51a65d0.js similarity index 64% rename from vue/dist/assets/ImgSliPagePane-aaed2b03.js rename to vue/dist/assets/ImgSliPagePane-c51a65d0.js index 24322f89..09477fb6 100644 --- a/vue/dist/assets/ImgSliPagePane-aaed2b03.js +++ b/vue/dist/assets/ImgSliPagePane-c51a65d0.js @@ -1 +1 @@ -import{d as a,S as t,T as s,c as n,cx as _,Z as o}from"./index-0a648427.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; +import{d as a,S as t,T as s,c as n,cx as _,Z as o}from"./index-93a218ca.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; diff --git a/vue/dist/assets/MatchedImageGrid-b0a804de.js b/vue/dist/assets/MatchedImageGrid-30741878.js similarity index 90% rename from vue/dist/assets/MatchedImageGrid-b0a804de.js rename to vue/dist/assets/MatchedImageGrid-30741878.js index 5844e62f..71ac014b 100644 --- a/vue/dist/assets/MatchedImageGrid-b0a804de.js +++ b/vue/dist/assets/MatchedImageGrid-30741878.js @@ -1 +1 @@ -import{d as ce,m as F,ax as re,$ as pe,S as p,T as I,c as s,a2 as e,a1 as n,a4 as R,U as d,J as ue,W as o,V as m,a0 as V,ad as me,Y as k,ae as G,ag as ge,R as fe,ai as z,aN as ve,aO as he,bD as Ie,Z as ke}from"./index-0a648427.js";import{S as _e}from"./index-5fd83ad6.js";import{L as Ce,R as we,f as Se,M as be}from"./MultiSelectKeep-051920f0.js";import{c as xe,d as ye,F as Me}from"./FileItem-e54d55be.js";import{c as Ae,u as De}from"./hook-9bb60c42.js";import{a as Te}from"./functionalCallableComp-58260c55.js";import"./shortcut-16cf2087.js";import"./index-4035ad46.js";/* empty css */import"./index-c4240098.js";const $e=c=>(ve("data-v-caebce58"),c=c(),he(),c),Fe={class:"hint"},Re={class:"action-bar"},Ve=$e(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Ge={key:1},ze={class:"no-res-hint"},Be={class:"hint"},Ne={key:2,class:"preview-switch"},Ue=ce({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(c){const g=c,f=Ae(t=>Ie(g.selectedTagIds,t)),{queue:B,images:i,onContextMenuClickU:_,stackViewEl:N,previewIdx:r,previewing:C,onPreviewVisibleChange:U,previewImgMove:w,canPreview:S,itemSize:b,gridItems:J,showGenInfo:u,imageGenInfo:x,q:E,multiSelectedIdxs:v,onFileItemClick:L,scroller:y,showMenuIdx:h,onFileDragStart:O,onFileDragEnd:P,cellWidth:K,onScroll:M,saveAllFileAsJson:W,props:q,saveLoadedFileAsJson:Q,changeIndchecked:Y,seedChangeChecked:Z,getGenDiff:j,getGenDiffWatchDep:H}=De(f);F(()=>g.selectedTagIds,async()=>{var t;await f.reset(),await re(),(t=y.value)==null||t.scrollToItem(0),M()},{immediate:!0}),F(()=>g,async t=>{q.value=t},{deep:!0,immediate:!0});const X=pe(),{onClearAllSelected:ee,onSelectAll:te,onReverseSelect:le}=xe();return(t,l)=>{const se=be,ne=ge,ae=fe,A=z,ie=z,oe=_e;return p(),I("div",{class:"container",ref_key:"stackViewEl",ref:N},[s(se,{show:!!e(v).length||e(X).keepMultiSelect,onClearAllSelected:e(ee),onSelectAll:e(te),onReverseSelect:e(le)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(oe,{size:"large",spinning:!e(B).isIdle},{default:n(()=>{var D,T;return[s(ae,{visible:e(u),"onUpdate:visible":l[1]||(l[1]=a=>R(u)?u.value=a:null),width:"70vw","mask-closable":"",onOk:l[2]||(l[2]=a=>u.value=!1)},{cancelText:n(()=>[]),default:n(()=>[s(ne,{active:"",loading:!e(E).isIdle},{default:n(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[0]||(l[0]=a=>e(ue)(e(x)))},[d("div",Fe,o(t.$t("doubleClickToCopy")),1),m(" "+o(e(x)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Re,[s(A,{onClick:e(Q)},{default:n(()=>[m(o(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),s(A,{onClick:e(W)},{default:n(()=>[m(o(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(D=e(i))!=null&&D.length?(p(),V(e(ye),{key:0,ref_key:"scroller",ref:y,class:"file-list",items:e(i),"item-size":e(b).first,"key-field":"fullpath","item-secondary-size":e(b).second,gridItems:e(J),onScroll:e(M)},{after:n(()=>[Ve]),default:n(({item:a,index:$})=>[s(Me,{idx:$,file:a,"cell-width":e(K),"show-menu-idx":e(h),"onUpdate:showMenuIdx":l[3]||(l[3]=de=>R(h)?h.value=de:null),onDragstart:e(O),onDragend:e(P),onFileItemClick:e(L),"full-screen-preview-image-url":e(i)[e(r)]?e(me)(e(i)[e(r)]):"",selected:e(v).includes($),onContextMenuClick:e(_),onPreviewVisibleChange:e(U),"is-selected-mutil-files":e(v).length>1,"enable-change-indicator":e(Y),"seed-change-checked":e(Z),"get-gen-diff":e(j),"get-gen-diff-watch-dep":e(H)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(f).load&&t.selectedTagIds.and_tags.length===1&&!((T=t.selectedTagIds.folder_paths_str)!=null&&T.trim())?(p(),I("div",Ge,[d("div",ze,[d("p",Be,o(t.$t("tagSearchNoResultsMessage")),1),s(ie,{onClick:l[4]||(l[4]=a=>e(Te)()),type:"primary"},{default:n(()=>[m(o(t.$t("rebuildImageIndex")),1)]),_:1})])])):k("",!0),e(C)?(p(),I("div",Ne,[s(e(Ce),{onClick:l[5]||(l[5]=a=>e(w)("prev")),class:G({disable:!e(S)("prev")})},null,8,["class"]),s(e(we),{onClick:l[6]||(l[6]=a=>e(w)("next")),class:G({disable:!e(S)("next")})},null,8,["class"])])):k("",!0)]}),_:1},8,["spinning"]),e(C)&&e(i)&&e(i)[e(r)]?(p(),V(Se,{key:0,file:e(i)[e(r)],idx:e(r),onContextMenuClick:e(_)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)}}});const Ze=ke(Ue,[["__scopeId","data-v-caebce58"]]);export{Ze as default}; +import{d as ce,m as F,ax as re,$ as pe,S as p,T as I,c as s,a2 as e,a1 as n,a4 as R,U as d,J as ue,W as o,V as m,a0 as V,ad as me,Y as k,ae as G,ag as ge,R as fe,ai as z,aN as ve,aO as he,bD as Ie,Z as ke}from"./index-93a218ca.js";import{S as _e}from"./index-c7fe1b25.js";import{L as Ce,R as we,f as Se,M as be}from"./MultiSelectKeep-e20b5f46.js";import{c as xe,d as ye,F as Me}from"./FileItem-9a94f7dd.js";import{c as Ae,u as De}from"./hook-983826b5.js";import{a as Te}from"./functionalCallableComp-685da399.js";import"./shortcut-ff09b8ec.js";import"./index-4596f42d.js";/* empty css */import"./index-f60e0de3.js";const $e=c=>(ve("data-v-caebce58"),c=c(),he(),c),Fe={class:"hint"},Re={class:"action-bar"},Ve=$e(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Ge={key:1},ze={class:"no-res-hint"},Be={class:"hint"},Ne={key:2,class:"preview-switch"},Ue=ce({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(c){const g=c,f=Ae(t=>Ie(g.selectedTagIds,t)),{queue:B,images:i,onContextMenuClickU:_,stackViewEl:N,previewIdx:r,previewing:C,onPreviewVisibleChange:U,previewImgMove:w,canPreview:S,itemSize:b,gridItems:J,showGenInfo:u,imageGenInfo:x,q:E,multiSelectedIdxs:v,onFileItemClick:L,scroller:y,showMenuIdx:h,onFileDragStart:O,onFileDragEnd:P,cellWidth:K,onScroll:M,saveAllFileAsJson:W,props:q,saveLoadedFileAsJson:Q,changeIndchecked:Y,seedChangeChecked:Z,getGenDiff:j,getGenDiffWatchDep:H}=De(f);F(()=>g.selectedTagIds,async()=>{var t;await f.reset(),await re(),(t=y.value)==null||t.scrollToItem(0),M()},{immediate:!0}),F(()=>g,async t=>{q.value=t},{deep:!0,immediate:!0});const X=pe(),{onClearAllSelected:ee,onSelectAll:te,onReverseSelect:le}=xe();return(t,l)=>{const se=be,ne=ge,ae=fe,A=z,ie=z,oe=_e;return p(),I("div",{class:"container",ref_key:"stackViewEl",ref:N},[s(se,{show:!!e(v).length||e(X).keepMultiSelect,onClearAllSelected:e(ee),onSelectAll:e(te),onReverseSelect:e(le)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(oe,{size:"large",spinning:!e(B).isIdle},{default:n(()=>{var D,T;return[s(ae,{visible:e(u),"onUpdate:visible":l[1]||(l[1]=a=>R(u)?u.value=a:null),width:"70vw","mask-closable":"",onOk:l[2]||(l[2]=a=>u.value=!1)},{cancelText:n(()=>[]),default:n(()=>[s(ne,{active:"",loading:!e(E).isIdle},{default:n(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[0]||(l[0]=a=>e(ue)(e(x)))},[d("div",Fe,o(t.$t("doubleClickToCopy")),1),m(" "+o(e(x)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Re,[s(A,{onClick:e(Q)},{default:n(()=>[m(o(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),s(A,{onClick:e(W)},{default:n(()=>[m(o(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(D=e(i))!=null&&D.length?(p(),V(e(ye),{key:0,ref_key:"scroller",ref:y,class:"file-list",items:e(i),"item-size":e(b).first,"key-field":"fullpath","item-secondary-size":e(b).second,gridItems:e(J),onScroll:e(M)},{after:n(()=>[Ve]),default:n(({item:a,index:$})=>[s(Me,{idx:$,file:a,"cell-width":e(K),"show-menu-idx":e(h),"onUpdate:showMenuIdx":l[3]||(l[3]=de=>R(h)?h.value=de:null),onDragstart:e(O),onDragend:e(P),onFileItemClick:e(L),"full-screen-preview-image-url":e(i)[e(r)]?e(me)(e(i)[e(r)]):"",selected:e(v).includes($),onContextMenuClick:e(_),onPreviewVisibleChange:e(U),"is-selected-mutil-files":e(v).length>1,"enable-change-indicator":e(Y),"seed-change-checked":e(Z),"get-gen-diff":e(j),"get-gen-diff-watch-dep":e(H)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(f).load&&t.selectedTagIds.and_tags.length===1&&!((T=t.selectedTagIds.folder_paths_str)!=null&&T.trim())?(p(),I("div",Ge,[d("div",ze,[d("p",Be,o(t.$t("tagSearchNoResultsMessage")),1),s(ie,{onClick:l[4]||(l[4]=a=>e(Te)()),type:"primary"},{default:n(()=>[m(o(t.$t("rebuildImageIndex")),1)]),_:1})])])):k("",!0),e(C)?(p(),I("div",Ne,[s(e(Ce),{onClick:l[5]||(l[5]=a=>e(w)("prev")),class:G({disable:!e(S)("prev")})},null,8,["class"]),s(e(we),{onClick:l[6]||(l[6]=a=>e(w)("next")),class:G({disable:!e(S)("next")})},null,8,["class"])])):k("",!0)]}),_:1},8,["spinning"]),e(C)&&e(i)&&e(i)[e(r)]?(p(),V(Se,{key:0,file:e(i)[e(r)],idx:e(r),onContextMenuClick:e(_)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)}}});const Ze=ke(Ue,[["__scopeId","data-v-caebce58"]]);export{Ze as default}; diff --git a/vue/dist/assets/MultiSelectKeep-051920f0.js b/vue/dist/assets/MultiSelectKeep-e20b5f46.js similarity index 98% rename from vue/dist/assets/MultiSelectKeep-051920f0.js rename to vue/dist/assets/MultiSelectKeep-e20b5f46.js index 2ccc760a..9878edde 100644 --- a/vue/dist/assets/MultiSelectKeep-051920f0.js +++ b/vue/dist/assets/MultiSelectKeep-e20b5f46.js @@ -1,3 +1,3 @@ -import{bY as gt,n as ge,bf as ot,c,A as ce,bZ as X,y as Z,z as T,m as ie,x as Pe,b_ as Ge,b$ as ht,bN as Te,R as pe,ai as se,c0 as yt,r as K,N as Se,c1 as st,G as Xe,ad as ae,c2 as _t,c3 as wt,V as C,ac as bt,c4 as Fe,O as ye,K as kt,c5 as Ot,J as me,c6 as Et,c7 as Lt,bX as $t,c8 as Pt,c9 as St,q as Ie,ca as Ft,cb as xe,o as it,ax as It,$ as Ae,I as Ce,ak as xt,E as Q,cc as Ct,cd as Mt,Q as Dt,d as rt,ce as Tt,cf as At,S as k,T as x,a2 as g,Y as B,U as A,a0 as oe,a1 as b,cg as zt,X as Y,W as E,a6 as ve,ae as Ye,a5 as jt,a4 as _e,ch as Oe,a3 as Nt,aj as Wt,ci as Bt,cj as Ht,M as Ut,aL as Vt,ck as qt,cl as Gt,aN as Xt,aO as Yt,Z as ct}from"./index-0a648427.js";import{u as he,e as Me,g as W,f as Ke,h as te,r as Kt,t as Ee,i as Jt,s as Je,j as we,_ as Qt}from"./FileItem-e54d55be.js";import{M as ut,c as dt,m as De,b as Zt,d as Rt,e as en}from"./functionalCallableComp-58260c55.js";import{C as tn,g as nn}from"./shortcut-16cf2087.js";/* empty css */import{_ as ln}from"./index-4035ad46.js";import{D as an}from"./index-c4240098.js";var on="Expected a function";function sn(e,t,n){var l=!0,i=!0;if(typeof e!="function")throw new TypeError(on);return gt(n)&&(l="leading"in n?!!n.leading:l,i="trailing"in n?!!n.trailing:i),ge(e,t,{leading:l,maxWait:t,trailing:i})}const re=(...e)=>{document.addEventListener(...e),ot(()=>document.removeEventListener(...e))};var rn={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 cn=rn;function Qe(e){for(var t=1;t{const e=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(t=>t.style.display!=="none");e?(console.log("closeImageFullscreenPreview success"),xn(e)):console.log("closeImageFullscreenPreview not found")};function xn(e){if(!(e instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:e});e.dispatchEvent(t)}const Cn=(e,t)=>{const n=t.querySelector(`.idx-${e} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",e,t)};function Sl(e){const{previewIdx:t,eventEmitter:n,canLoadNext:l,previewing:i,sortedFiles:u,scroller:S,props:M}=he().toRefs(),{state:F}=he();let y=null;const _=(w,d)=>{var r;i.value=w,y!=null&&!w&&d&&((r=S.value)==null||r.scrollToItem(y),y=null)},I=()=>{if(!$("next")){if(e!=null&&e.loadNext)return e.loadNext();M.value.mode==="walk"&&l.value&&(Z.info(T("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};re("keydown",w=>{var d;if(i.value){let r=t.value;if(["ArrowDown","ArrowRight"].includes(w.key))for(r++;u.value[r]&&!X(u.value[r].name);)r++;else if(["ArrowUp","ArrowLeft"].includes(w.key))for(r--;u.value[r]&&!X(u.value[r].name);)r--;if(X((d=u.value[r])==null?void 0:d.name)??""){t.value=r;const P=S.value;P&&!(r>=P.$_startIndex&&r<=P.$_endIndex)&&(y=r)}I()}});const h=w=>{var r;let d=t.value;if(w==="next")for(d++;u.value[d]&&!X(u.value[d].name);)d++;else if(w==="prev")for(d--;u.value[d]&&!X(u.value[d].name);)d--;if(X((r=u.value[d])==null?void 0:r.name)??""){t.value=d;const P=S.value;P&&!(d>=P.$_startIndex&&d<=P.$_endIndex)&&(y=d)}I()},$=w=>{var r;let d=t.value;if(w==="next")for(d++;u.value[d]&&!X(u.value[d].name);)d++;else if(w==="prev")for(d--;u.value[d]&&!X(u.value[d].name);)d--;return X((r=u.value[d])==null?void 0:r.name)};return Me("removeFiles",async()=>{i.value&&!F.sortedFiles[t.value]&&be()}),{previewIdx:t,onPreviewVisibleChange:_,previewing:i,previewImgMove:h,canPreview:$}}function Le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!yt(e)}function Fl(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:l,eventEmitter:i,walker:u}=he().toRefs(),S=()=>{l.value=[]};return re("click",()=>{W.keepMultiSelect||S()}),re("blur",()=>{W.keepMultiSelect||S()}),ie(n,S),{onFileDragStart:(_,I)=>{const h=Pe(t.value[I]);Ke.fileDragging=!0,console.log("onFileDragStart set drag file ",_,I,h);const $=[h];let w=h.type==="dir";if(l.value.includes(I)){const r=l.value.map(P=>t.value[P]);$.push(...r),w=r.some(P=>P.type==="dir")}const d={includeDir:w,loc:e.value||"search-result",path:Ge($,"fullpath").map(r=>r.fullpath),nodes:Ge($,"fullpath"),__id:"FileTransferData"};_.dataTransfer.setData("text/plain",JSON.stringify(d))},onDrop:async _=>{if(u.value)return;const I=ht(_);if(!I)return;const h=e.value;if(I.loc===h)return;const $=Te(),w=async()=>$.pushAction(async()=>{await dt(I.path,h),i.value.emit("refresh"),pe.destroyAll()}),d=()=>$.pushAction(async()=>{await De(I.path,h),te.emit("removeFiles",{paths:I.path,loc:I.loc}),i.value.emit("refresh"),pe.destroyAll()});pe.confirm({title:T("confirm")+"?",width:"60vw",content:()=>{let r,P,D;return c("div",null,[c("div",null,[`${T("moveSelectedFilesTo")} ${h}`,c("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[I.path.map(L=>c("li",null,[L.split(/[/\\]/).pop()]))])]),c(ut,null,null),c("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[c(se,{onClick:pe.destroyAll},Le(r=T("cancel"))?r:{default:()=>[r]}),c(se,{type:"primary",loading:!$.isIdle,onClick:w},Le(P=T("copy"))?P:{default:()=>[P]}),c(se,{type:"primary",loading:!$.isIdle,onClick:d},Le(D=T("move"))?D:{default:()=>[D]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:l,onFileDragEnd:()=>{Ke.fileDragging=!1}}}function Il({openNext:e}){const t=K(!1),n=K(""),{sortedFiles:l,previewIdx:i,multiSelectedIdxs:u,stack:S,currLocation:M,spinning:F,previewing:y,stackViewEl:_,eventEmitter:I,props:h,deletedFiles:$}=he().toRefs(),w=Xe;Me("removeFiles",({paths:L,loc:o})=>{w(o)!==w(M.value)||!Se(S.value)||(L.forEach(v=>$.value.add(v)),L.filter(X).forEach(v=>$.value.add(v.replace(/\.\w+$/,".txt"))))}),Me("addFiles",({files:L,loc:o})=>{if(w(o)!==w(M.value))return;const m=Se(S.value);m&&m.files.unshift(...L)});const d=Te(),r=async(L,o,m)=>{i.value=m,W.fullscreenPreviewInitialUrl=ae(o);const v=u.value.indexOf(m);if(L.shiftKey){if(v!==-1)u.value.splice(v,1);else{u.value.push(m),u.value.sort((z,U)=>z-U);const N=u.value[0],q=u.value[u.value.length-1];u.value=Kt(N,q+1)}L.stopPropagation()}else L.ctrlKey||L.metaKey?(v!==-1?u.value.splice(v,1):u.value.push(m),L.stopPropagation()):await e(o)},P=async(L,o,m)=>{var R,ne,de;const v=ae(o),N=M.value,q={IIB_container_id:parent.IIB_container_id},z=()=>{let f=[];return u.value.includes(m)?f=u.value.map(p=>l.value[p]):f.push(o),f},U=async f=>{if(!F.value)try{F.value=!0,await Pt(o.fullpath),we.postMessage({...q,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await St(),we.postMessage({...q,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${f}`})}catch(p){console.error(p),Z.error("发送图像失败,请携带console的错误消息找开发者")}finally{F.value=!1}},H=`${L.key}`;if(H.startsWith("toggle-tag-")){const f=+H.split("toggle-tag-")[1],{is_remove:p}=await _t({tag_id:f,img_path:o.fullpath}),a=(ne=(R=W.conf)==null?void 0:R.all_custom_tags.find(s=>s.id===f))==null?void 0:ne.name;await Ee.refreshTags([o.fullpath]),Z.success(T(p?"removedTagFromImage":"addedTagToImage",{tag:a}));return}else if(H.startsWith("batch-add-tag-")||H.startsWith("batch-remove-tag-")){const f=+H.split("-tag-")[1],p=H.includes("add")?"add":"remove",a=z().map(s=>s.fullpath);await wt({tag_id:f,img_paths:a,action:p}),await Ee.refreshTags(a),Z.success(T(p==="add"?"addCompleted":"removeCompleted"));return}else if(H.startsWith("copy-to-")){const f=H.split("copy-to-")[1],p=z(),a=p.map(s=>s.fullpath);await dt(a,f,!0),te.emit("addFiles",{files:p,loc:f}),Z.success(T("copySuccess"));return}else if(H.startsWith("move-to-")){const f=H.split("move-to-")[1],p=z(),a=p.map(s=>s.fullpath);await De(a,f,!0),te.emit("removeFiles",{paths:a,loc:M.value}),te.emit("addFiles",{files:p,loc:f}),Z.success(T("moveSuccess"));return}switch(L.key){case"previewInNewWindow":return window.open(v);case"copyFilePath":return me(o.fullpath);case"saveSelectedAsJson":return $t(z());case"openWithDefaultApp":return Lt(o.fullpath);case"download":{const f=z();Et(f.map(p=>ae(p,!0)));break}case"copyPreviewUrl":return me(parent.document.location.origin+v);case"rename":{let f=await Zt(o.fullpath);f=Xe(f);const p=Ee.tagMap;p.set(f,p.get(o.fullpath)??[]),p.delete(o.fullpath),o.fullpath=f,o.name=f.split(/[\\/]/).pop()??"";return}case"send2txt2img":return U("txt2img");case"send2img2img":return U("img2img");case"send2inpaint":return U("inpaint");case"send2extras":return U("extras");case"send2savedDir":{const f=W.quickMovePaths.find(s=>s.key==="outdir_save");if(!f)return Z.error(T("unknownSavedDir"));const p=Ot(f.dir,(de=W.conf)==null?void 0:de.sd_cwd),a=z();await De(a.map(s=>s.fullpath),p,!0),te.emit("removeFiles",{paths:a.map(s=>s.fullpath),loc:M.value}),te.emit("addFiles",{files:a,loc:p});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const f=L.key.split("-")[1];we.postMessage({...q,event:"send_to_control_net",type:f,url:ae(o)});break}case"send2outpaint":{n.value=await d.pushAction(()=>Fe(o.fullpath)).res;const[f,p]=(n.value||"").split(` +import{bY as gt,n as ge,bf as ot,c,A as ce,bZ as X,y as Z,z as T,m as ie,x as Pe,b_ as Ge,b$ as ht,bN as Te,R as pe,ai as se,c0 as yt,r as K,N as Se,c1 as st,G as Xe,ad as ae,c2 as _t,c3 as wt,V as C,ac as bt,c4 as Fe,O as ye,K as kt,c5 as Ot,J as me,c6 as Et,c7 as Lt,bX as $t,c8 as Pt,c9 as St,q as Ie,ca as Ft,cb as xe,o as it,ax as It,$ as Ae,I as Ce,ak as xt,E as Q,cc as Ct,cd as Mt,Q as Dt,d as rt,ce as Tt,cf as At,S as k,T as x,a2 as g,Y as B,U as A,a0 as oe,a1 as b,cg as zt,X as Y,W as E,a6 as ve,ae as Ye,a5 as jt,a4 as _e,ch as Oe,a3 as Nt,aj as Wt,ci as Bt,cj as Ht,M as Ut,aL as Vt,ck as qt,cl as Gt,aN as Xt,aO as Yt,Z as ct}from"./index-93a218ca.js";import{u as he,e as Me,g as W,f as Ke,h as te,r as Kt,t as Ee,i as Jt,s as Je,j as we,_ as Qt}from"./FileItem-9a94f7dd.js";import{M as ut,c as dt,m as De,b as Zt,d as Rt,e as en}from"./functionalCallableComp-685da399.js";import{C as tn,g as nn}from"./shortcut-ff09b8ec.js";/* empty css */import{_ as ln}from"./index-4596f42d.js";import{D as an}from"./index-f60e0de3.js";var on="Expected a function";function sn(e,t,n){var l=!0,i=!0;if(typeof e!="function")throw new TypeError(on);return gt(n)&&(l="leading"in n?!!n.leading:l,i="trailing"in n?!!n.trailing:i),ge(e,t,{leading:l,maxWait:t,trailing:i})}const re=(...e)=>{document.addEventListener(...e),ot(()=>document.removeEventListener(...e))};var rn={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 cn=rn;function Qe(e){for(var t=1;t{const e=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(t=>t.style.display!=="none");e?(console.log("closeImageFullscreenPreview success"),xn(e)):console.log("closeImageFullscreenPreview not found")};function xn(e){if(!(e instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:e});e.dispatchEvent(t)}const Cn=(e,t)=>{const n=t.querySelector(`.idx-${e} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",e,t)};function Sl(e){const{previewIdx:t,eventEmitter:n,canLoadNext:l,previewing:i,sortedFiles:u,scroller:S,props:M}=he().toRefs(),{state:F}=he();let y=null;const _=(w,d)=>{var r;i.value=w,y!=null&&!w&&d&&((r=S.value)==null||r.scrollToItem(y),y=null)},I=()=>{if(!$("next")){if(e!=null&&e.loadNext)return e.loadNext();M.value.mode==="walk"&&l.value&&(Z.info(T("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};re("keydown",w=>{var d;if(i.value){let r=t.value;if(["ArrowDown","ArrowRight"].includes(w.key))for(r++;u.value[r]&&!X(u.value[r].name);)r++;else if(["ArrowUp","ArrowLeft"].includes(w.key))for(r--;u.value[r]&&!X(u.value[r].name);)r--;if(X((d=u.value[r])==null?void 0:d.name)??""){t.value=r;const P=S.value;P&&!(r>=P.$_startIndex&&r<=P.$_endIndex)&&(y=r)}I()}});const h=w=>{var r;let d=t.value;if(w==="next")for(d++;u.value[d]&&!X(u.value[d].name);)d++;else if(w==="prev")for(d--;u.value[d]&&!X(u.value[d].name);)d--;if(X((r=u.value[d])==null?void 0:r.name)??""){t.value=d;const P=S.value;P&&!(d>=P.$_startIndex&&d<=P.$_endIndex)&&(y=d)}I()},$=w=>{var r;let d=t.value;if(w==="next")for(d++;u.value[d]&&!X(u.value[d].name);)d++;else if(w==="prev")for(d--;u.value[d]&&!X(u.value[d].name);)d--;return X((r=u.value[d])==null?void 0:r.name)};return Me("removeFiles",async()=>{i.value&&!F.sortedFiles[t.value]&&be()}),{previewIdx:t,onPreviewVisibleChange:_,previewing:i,previewImgMove:h,canPreview:$}}function Le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!yt(e)}function Fl(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:l,eventEmitter:i,walker:u}=he().toRefs(),S=()=>{l.value=[]};return re("click",()=>{W.keepMultiSelect||S()}),re("blur",()=>{W.keepMultiSelect||S()}),ie(n,S),{onFileDragStart:(_,I)=>{const h=Pe(t.value[I]);Ke.fileDragging=!0,console.log("onFileDragStart set drag file ",_,I,h);const $=[h];let w=h.type==="dir";if(l.value.includes(I)){const r=l.value.map(P=>t.value[P]);$.push(...r),w=r.some(P=>P.type==="dir")}const d={includeDir:w,loc:e.value||"search-result",path:Ge($,"fullpath").map(r=>r.fullpath),nodes:Ge($,"fullpath"),__id:"FileTransferData"};_.dataTransfer.setData("text/plain",JSON.stringify(d))},onDrop:async _=>{if(u.value)return;const I=ht(_);if(!I)return;const h=e.value;if(I.loc===h)return;const $=Te(),w=async()=>$.pushAction(async()=>{await dt(I.path,h),i.value.emit("refresh"),pe.destroyAll()}),d=()=>$.pushAction(async()=>{await De(I.path,h),te.emit("removeFiles",{paths:I.path,loc:I.loc}),i.value.emit("refresh"),pe.destroyAll()});pe.confirm({title:T("confirm")+"?",width:"60vw",content:()=>{let r,P,D;return c("div",null,[c("div",null,[`${T("moveSelectedFilesTo")} ${h}`,c("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[I.path.map(L=>c("li",null,[L.split(/[/\\]/).pop()]))])]),c(ut,null,null),c("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[c(se,{onClick:pe.destroyAll},Le(r=T("cancel"))?r:{default:()=>[r]}),c(se,{type:"primary",loading:!$.isIdle,onClick:w},Le(P=T("copy"))?P:{default:()=>[P]}),c(se,{type:"primary",loading:!$.isIdle,onClick:d},Le(D=T("move"))?D:{default:()=>[D]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:l,onFileDragEnd:()=>{Ke.fileDragging=!1}}}function Il({openNext:e}){const t=K(!1),n=K(""),{sortedFiles:l,previewIdx:i,multiSelectedIdxs:u,stack:S,currLocation:M,spinning:F,previewing:y,stackViewEl:_,eventEmitter:I,props:h,deletedFiles:$}=he().toRefs(),w=Xe;Me("removeFiles",({paths:L,loc:o})=>{w(o)!==w(M.value)||!Se(S.value)||(L.forEach(v=>$.value.add(v)),L.filter(X).forEach(v=>$.value.add(v.replace(/\.\w+$/,".txt"))))}),Me("addFiles",({files:L,loc:o})=>{if(w(o)!==w(M.value))return;const m=Se(S.value);m&&m.files.unshift(...L)});const d=Te(),r=async(L,o,m)=>{i.value=m,W.fullscreenPreviewInitialUrl=ae(o);const v=u.value.indexOf(m);if(L.shiftKey){if(v!==-1)u.value.splice(v,1);else{u.value.push(m),u.value.sort((z,U)=>z-U);const N=u.value[0],q=u.value[u.value.length-1];u.value=Kt(N,q+1)}L.stopPropagation()}else L.ctrlKey||L.metaKey?(v!==-1?u.value.splice(v,1):u.value.push(m),L.stopPropagation()):await e(o)},P=async(L,o,m)=>{var R,ne,de;const v=ae(o),N=M.value,q={IIB_container_id:parent.IIB_container_id},z=()=>{let f=[];return u.value.includes(m)?f=u.value.map(p=>l.value[p]):f.push(o),f},U=async f=>{if(!F.value)try{F.value=!0,await Pt(o.fullpath),we.postMessage({...q,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await St(),we.postMessage({...q,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${f}`})}catch(p){console.error(p),Z.error("发送图像失败,请携带console的错误消息找开发者")}finally{F.value=!1}},H=`${L.key}`;if(H.startsWith("toggle-tag-")){const f=+H.split("toggle-tag-")[1],{is_remove:p}=await _t({tag_id:f,img_path:o.fullpath}),a=(ne=(R=W.conf)==null?void 0:R.all_custom_tags.find(s=>s.id===f))==null?void 0:ne.name;await Ee.refreshTags([o.fullpath]),Z.success(T(p?"removedTagFromImage":"addedTagToImage",{tag:a}));return}else if(H.startsWith("batch-add-tag-")||H.startsWith("batch-remove-tag-")){const f=+H.split("-tag-")[1],p=H.includes("add")?"add":"remove",a=z().map(s=>s.fullpath);await wt({tag_id:f,img_paths:a,action:p}),await Ee.refreshTags(a),Z.success(T(p==="add"?"addCompleted":"removeCompleted"));return}else if(H.startsWith("copy-to-")){const f=H.split("copy-to-")[1],p=z(),a=p.map(s=>s.fullpath);await dt(a,f,!0),te.emit("addFiles",{files:p,loc:f}),Z.success(T("copySuccess"));return}else if(H.startsWith("move-to-")){const f=H.split("move-to-")[1],p=z(),a=p.map(s=>s.fullpath);await De(a,f,!0),te.emit("removeFiles",{paths:a,loc:M.value}),te.emit("addFiles",{files:p,loc:f}),Z.success(T("moveSuccess"));return}switch(L.key){case"previewInNewWindow":return window.open(v);case"copyFilePath":return me(o.fullpath);case"saveSelectedAsJson":return $t(z());case"openWithDefaultApp":return Lt(o.fullpath);case"download":{const f=z();Et(f.map(p=>ae(p,!0)));break}case"copyPreviewUrl":return me(parent.document.location.origin+v);case"rename":{let f=await Zt(o.fullpath);f=Xe(f);const p=Ee.tagMap;p.set(f,p.get(o.fullpath)??[]),p.delete(o.fullpath),o.fullpath=f,o.name=f.split(/[\\/]/).pop()??"";return}case"send2txt2img":return U("txt2img");case"send2img2img":return U("img2img");case"send2inpaint":return U("inpaint");case"send2extras":return U("extras");case"send2savedDir":{const f=W.quickMovePaths.find(s=>s.key==="outdir_save");if(!f)return Z.error(T("unknownSavedDir"));const p=Ot(f.dir,(de=W.conf)==null?void 0:de.sd_cwd),a=z();await De(a.map(s=>s.fullpath),p,!0),te.emit("removeFiles",{paths:a.map(s=>s.fullpath),loc:M.value}),te.emit("addFiles",{files:a,loc:p});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const f=L.key.split("-")[1];we.postMessage({...q,event:"send_to_control_net",type:f,url:ae(o)});break}case"send2outpaint":{n.value=await d.pushAction(()=>Fe(o.fullpath)).res;const[f,p]=(n.value||"").split(` `);we.postMessage({...q,event:"send_to_outpaint",url:ae(o),prompt:f,negPrompt:p.slice(17)});break}case"openWithWalkMode":{Je.set(N,S.value);const f=W.tabList[h.value.tabIdx],p={type:"local",key:ye(),path:o.fullpath,name:T("local"),stackKey:N,mode:"walk"};f.panes.push(p),f.key=p.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const f=W.tabList[h.value.tabIdx],p={type:"local",key:ye(),path:L.key==="openInNewTab"?o.fullpath:kt(o.fullpath),name:T("local"),mode:"scanned-fixed"};f.panes.push(p),f.key=p.key;break}case"openOnTheRight":{Je.set(N,S.value);let f=W.tabList[h.value.tabIdx+1];f||(f={panes:[],key:"",id:ye()},W.tabList[h.value.tabIdx+1]=f);const p={type:"local",key:ye(),path:o.fullpath,name:T("local"),stackKey:N};f.panes.push(p),f.key=p.key;break}case"send2BatchDownload":{Jt.addFiles(z());break}case"viewGenInfo":{t.value=!0,n.value=await d.pushAction(()=>Fe(o.fullpath)).res;break}case"openWithLocalFileBrowser":{await bt(o.fullpath);break}case"deleteFiles":{const f=z(),p=async()=>{const a=f.map(s=>s.fullpath);if(await Rt(a),Z.success(T("deleteSuccess")),y.value){const s=ae(o)===W.fullscreenPreviewInitialUrl,ee=i.value===l.value.length-1;if((s||ee)&&(be(),await Ie(100),s&&l.value.length>1)){const J=i.value;Ie(0).then(()=>Cn(J,_.value))}}te.emit("removeFiles",{paths:a,loc:M.value})};if(f.length===1&&W.ignoredConfirmActions.deleteOneOnly)return p();await new Promise(a=>{pe.confirm({title:T("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>c("div",null,[c("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[f.map(s=>c("li",null,[s.fullpath.split(/[/\\]/).pop()]))]),c(ut,null,null),c(tn,{checked:W.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":s=>W.ignoredConfirmActions.deleteOneOnly=s},{default:()=>[T("deleteOneOnlySkipConfirm"),C(" ("),T("resetOnGlobalSettingsPage"),C(")")]})]),async onOk(){await p(),a()}})});break}}return{}},{isOutside:D}=st(_);return re("keydown",L=>{var m,v,N;const o=nn(L);if(y.value){o==="Esc"&&be();const q=(m=Object.entries(W.shortcut).find(z=>z[1]===o&&z[1]))==null?void 0:m[0];if(q){L.stopPropagation(),L.preventDefault();const z=i.value,U=l.value[z];switch(q){case"delete":return P({key:"deleteFiles"},U,z);case"download":return P({key:"download"},U,z);default:{const H=(v=/^toggle_tag_(.*)$/.exec(q))==null?void 0:v[1],R=(N=W.conf)==null?void 0:N.all_custom_tags.find(ne=>ne.name===H);return R?P({key:`toggle-tag-${R.id}`},U,z):void 0}}}}else!D.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(o)&&(L.preventDefault(),L.stopPropagation(),I.value.emit("selectAll"))}),{onFileItemClick:r,onContextMenuClick:P,showGenInfo:t,imageGenInfo:n,q:d}}const $e=new Map,xl=()=>{const{useEventListen:e,sortedFiles:t,getViewableAreaFiles:n}=he().toRefs(),l=K(W.defaultChangeIndchecked),i=K(W.defaultSeedChangeChecked),u=async()=>{if(await Ie(100),!l.value)return;const F=n.value().filter(_=>X(_.fullpath)&&!_.gen_info_obj);if(!F.length)return;const y=await Ft(F.map(_=>_.fullpath).filter(_=>!$e.has(_)));F.forEach(_=>{const I=y[_.fullpath]||$e.get(_.fullpath)||"";$e.set(_.fullpath,I),_.gen_info_obj=xe(I),_.gen_info_raw=I})};e.value("viewableAreaFilesChange",u);const S=F=>{const y=t.value;return[F,i.value,y[F-1],y[F],y[F+1]]};function M(F,y,_,I){const h={diff:{},empty:!0,ownFile:"",otherFile:""};if(y+_<0||y+_>=t.value.length||t.value[y]==null||!("gen_info_obj"in t.value[y])||!("gen_info_obj"in t.value[y+_]))return h;const $=F,w=t.value[y+_].gen_info_obj;if(w==null)return h;const d=["hashes","resources"];h.diff={},h.ownFile=I.name,h.otherFile=t.value[y+_].name,h.empty=!1,i.value||d.push("seed");for(const r in $)if(!d.includes(r)){if(!(r in w)){h.diff[r]="+";continue}if($[r]!=w[r])if(r.includes("rompt")&&$[r]!=""&&w[r]!=""){const P=$[r].split(","),D=w[r].split(",");let L=0;for(const o in P)P[o]!=D[o]&&L++;h.diff[r]=L}else h.diff[r]=[$[r],w[r]]}return h}return{getGenDiff:M,changeIndchecked:l,seedChangeChecked:i,getRawGenParams:()=>u(),getGenDiffWatchDep:S}};function Mn(e,t,n,l){let i=0,u=0,S=typeof(l==null?void 0:l.width)=="number"?l.width:0,M=typeof(l==null?void 0:l.height)=="number"?l.height:0,F=typeof(l==null?void 0:l.left)=="number"?l.left:0,y=typeof(l==null?void 0:l.top)=="number"?l.top:0,_=!1;const I=o=>{o.stopPropagation(),o.preventDefault(),!(!e.value||!t.value)&&(i=o instanceof MouseEvent?o.clientX:o.touches[0].clientX,u=o instanceof MouseEvent?o.clientY:o.touches[0].clientY,S=e.value.offsetWidth,M=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",h),document.documentElement.addEventListener("touchmove",h),document.documentElement.addEventListener("mouseup",$),document.documentElement.addEventListener("touchend",$))},h=o=>{if(!e.value||!t.value)return;let m=S+((o instanceof MouseEvent?o.clientX:o.touches[0].clientX)-i),v=M+((o instanceof MouseEvent?o.clientY:o.touches[0].clientY)-u);e.value.offsetLeft+m>window.innerWidth&&(m=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+v>window.innerHeight&&(v=window.innerHeight-e.value.offsetTop),e.value.style.width=`${m}px`,e.value.style.height=`${v}px`,l!=null&&l.onResize&&l.onResize(m,v)},$=()=>{document.documentElement.removeEventListener("mousemove",h),document.documentElement.removeEventListener("touchmove",h),document.documentElement.removeEventListener("mouseup",$),document.documentElement.removeEventListener("touchend",$)},w=o=>{o.stopPropagation(),o.preventDefault(),!(!e.value||!n.value)&&(_=!0,F=e.value.offsetLeft,y=e.value.offsetTop,i=o instanceof MouseEvent?o.clientX:o.touches[0].clientX,u=o instanceof MouseEvent?o.clientY:o.touches[0].clientY,document.documentElement.addEventListener("mousemove",d),document.documentElement.addEventListener("touchmove",d),document.documentElement.addEventListener("mouseup",r),document.documentElement.addEventListener("touchend",r))},d=o=>{if(!e.value||!n.value||!_)return;const m=F+((o instanceof MouseEvent?o.clientX:o.touches[0].clientX)-i),v=y+((o instanceof MouseEvent?o.clientY:o.touches[0].clientY)-u);m<0?e.value.style.left="0px":m+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${m}px`,v<0?e.value.style.top="0px":v+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${v}px`,l!=null&&l.onDrag&&l.onDrag(m,v)},r=()=>{_=!1,document.documentElement.removeEventListener("mousemove",d),document.documentElement.removeEventListener("touchmove",d),document.documentElement.removeEventListener("mouseup",r),document.documentElement.removeEventListener("touchend",r)},P=()=>{if(!e.value||!t.value)return;let o=e.value.offsetLeft,m=e.value.offsetTop,v=e.value.offsetWidth,N=e.value.offsetHeight;o+v>window.innerWidth&&(o=window.innerWidth-v,o<0&&(o=0,v=window.innerWidth)),m+N>window.innerHeight&&(m=window.innerHeight-N,m<0&&(m=0,N=window.innerHeight)),e.value.style.left=`${o}px`,e.value.style.top=`${m}px`,e.value.style.width=`${v}px`,e.value.style.height=`${N}px`},D=()=>{!e.value||!l||(typeof l.width=="number"&&(e.value.style.width=`${l.width}px`),typeof l.height=="number"&&(e.value.style.height=`${l.height}px`),typeof l.left=="number"&&(e.value.style.left=`${l.left}px`),typeof l.top=="number"&&(e.value.style.top=`${l.top}px`),P(),window.addEventListener("resize",P))},L=()=>{document.documentElement.removeEventListener("mousemove",h),document.documentElement.removeEventListener("touchmove",h),document.documentElement.removeEventListener("mouseup",$),document.documentElement.removeEventListener("touchend",$),document.documentElement.removeEventListener("mousemove",d),document.documentElement.removeEventListener("touchmove",d),document.documentElement.removeEventListener("mouseup",r),document.documentElement.removeEventListener("touchend",r),window.removeEventListener("resize",P)};return it(D),ot(L),ie(()=>l==null?void 0:l.disbaled,async o=>{await It(),o!==void 0&&(o?L():D())}),ie(()=>[e.value,t.value,n.value],([o,m,v])=>{o&&m&&(m.addEventListener("mousedown",I),m.addEventListener("touchstart",I)),o&&v&&(v.addEventListener("mousedown",w),v.addEventListener("touchstart",w))}),{handleResizeMouseDown:I,handleDragMouseDown:w}}let lt=null;const Dn=()=>{var F,y;const e=Ae(),t=Ce(Dt+"fullscreen_layout",{enable:!1,panelWidth:384,alwaysOn:!0}),n=xt(lt??((y=(F=e.conf)==null?void 0:F.app_fe_setting)==null?void 0:y.fullscreen_layout)??Pe(t.value)),l="--iib-lr-layout-info-panel-width",i=Q(()=>n.alwaysOn&&n.enable?n.panelWidth:0);ie(n,_=>{t.value=Pe(_),at(n,l,i),Tn(n),lt=n},{deep:!0}),it(()=>at(n,l,i));const{enable:u,panelWidth:S,alwaysOn:M}=Ct(n);return{state:n,isLeftRightLayout:u,panelwidtrhStyleVarName:l,lrLayoutInfoPanelWidth:S,lrMenuAlwaysOn:M}},Tn=ge(e=>Mt("fullscreen_layout",e),300),at=ge((e,t,n)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${n.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300),ue=e=>(Xt("data-v-a9e90b6a"),e=e(),Yt(),e),An={key:0},zn={class:"container"},jn={class:"action-bar"},Nn=["title"],Wn=["title"],Bn=["title"],Hn=["src"],Un={key:0,class:"icon",style:{cursor:"pointer"}},Vn={key:2,"flex-placeholder":""},qn={key:3,class:"action-bar"},Gn={key:0,class:"gen-info"},Xn={class:"info-tags"},Yn={class:"name"},Kn={class:"value"},Jn={key:0,class:"tags-container"},Qn=["onClick"],Zn={class:"lr-layout-control"},Rn={class:"ctrl-item"},el={class:"ctrl-item"},tl={class:"ctrl-item"},nl=ue(()=>A("br",null,null,-1)),ll=ue(()=>A("h3",null,"Prompt",-1)),al=["innerHTML"],ol=ue(()=>A("br",null,null,-1)),sl=ue(()=>A("h3",null,"Negative Prompt",-1)),il=["innerHTML"],rl=ue(()=>A("br",null,null,-1)),cl=ue(()=>A("h3",null,"Params",-1)),ul={style:{"font-weight":"600","text-transform":"capitalize"}},dl=["onDblclick"],fl=["onDblclick"],vl=["title"],pl=rt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e;Tt(a=>({edcc2c4a:g(m)?0:"46px","95805fe4":g(o)+"px","5cbd8d52":`calc(100vw - ${g(o)}px)`}));const l=Ae(),i=At(),u=K(),S=Q(()=>i.tagMap.get(n.file.fullpath)??[]),M=K(""),F=Te(),y=K(""),_=Q(()=>y.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),I=Q(()=>_.value.split(` `)),h=Q(()=>xe(_.value)),$=Q(()=>{let a=xe(_.value);return delete a.prompt,delete a.negativePrompt,a});ie(()=>{var a;return(a=n==null?void 0:n.file)==null?void 0:a.fullpath},async a=>{a&&(F.tasks.forEach(s=>s.cancel()),F.pushAction(()=>Fe(a)).res.then(s=>{y.value=s}))},{immediate:!0});const w=Ce("iib@fullScreenContextMenu.prompt-tab","structedData"),d=K(),r=K(),P={left:100,top:100,width:512,height:384,expanded:!0},D=Ce("fullScreenContextMenu.vue-drag",P);D.value&&(D.value.left<0||D.value.top<0)&&(D.value={...P});const{isLeftRightLayout:L,lrLayoutInfoPanelWidth:o,lrMenuAlwaysOn:m}=Dn(),v=L;Mn(u,d,r,{disbaled:v,...D.value,onDrag:ge(function(a,s){D.value={...D.value,left:a,top:s}},300),onResize:ge(function(a,s){D.value={...D.value,width:a,height:s}},300)});const N=K(!1),{isOutside:q}=st(Q(()=>!v.value||m.value?null:N.value?u.value:Se(document.querySelectorAll(".iib-tab-edge-trigger"))));ie(q,sn(a=>{N.value=!a},300));function z(a){return a.parentNode}function U(a){if(!a)return"";const s=[],ee="BREAK",J=a.replace(/\sBREAK\s/g,","+ee+",").split(/[\n,]+/).map(G=>G.trim()).filter(G=>G);let j=!1;for(let G=0;GBREAK
');continue}const le=J[G];j||(j=le.includes("("));const fe=["tag"];j&&fe.push("has-parentheses"),le.length<32&&fe.push("short-tag"),s.push(`${le}`),j&&(j=!le.includes(")"))}return s.join(l.showCommaInInfoPanel?",":" ")}re("load",a=>{const s=a.target;s.className==="ant-image-preview-img"&&(M.value=`${s.naturalWidth} x ${s.naturalHeight}`)},{capture:!0});const H=Q(()=>{const a=[{name:T("fileName"),val:n.file.name},{name:T("fileSize"),val:n.file.size}];return M.value&&a.push({name:T("resolution"),val:M.value}),a}),R=()=>{const a="Negative prompt:",s=y.value.includes(a)?y.value.split(a)[0]:I.value[0]??"";me(Oe(s.trim()))},ne=()=>document.body.requestFullscreen(),de=a=>{me(typeof a=="object"?JSON.stringify(a,null,4):a)},f=a=>{a.key.startsWith("Arrow")?(a.stopPropagation(),a.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",a))):a.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};re("dblclick",a=>{var s;((s=a.target)==null?void 0:s.className)==="ant-image-preview-img"&&be()});const p=Q(()=>v.value||D.value.expanded);return(a,s)=>{var qe;const ee=an,J=se,j=Wt,G=Bt,le=Ht,fe=Ut,ft=se,Ue=ln,vt=en,pt=Vt,Ve=qt,mt=Gt;return k(),x("div",{ref_key:"el",ref:u,class:Ye(["full-screen-menu",{"unset-size":!g(D).expanded,lr:g(v),"always-on":g(m),"mouse-in":N.value}]),onWheelCapture:s[9]||(s[9]=Nt(()=>{},["stop"])),onKeydownCapture:f},[g(v)?(k(),x("div",An)):B("",!0),A("div",zn,[A("div",jn,[g(v)?B("",!0):(k(),x("div",{key:0,ref_key:"dragHandle",ref:r,class:"icon",style:{cursor:"grab"},title:g(T)("dragToMovePanel")},[c(g(mn))],8,Nn)),g(v)?B("",!0):(k(),x("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:s[0]||(s[0]=O=>g(D).expanded=!g(D).expanded),title:g(T)("clickToToggleMaximizeMinimize")},[p.value?(k(),oe(g(_n),{key:0})):(k(),oe(g(On),{key:1}))],8,Wn)),A("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:g(T)("fullscreenview"),onClick:ne},[A("img",{src:g(In),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Hn)],8,Bn),c(ee,{"get-popup-container":z},{overlay:b(()=>[c(Qt,{file:a.file,idx:a.idx,"selected-tag":S.value,onContextMenuClick:s[1]||(s[1]=(O,V,ke)=>t("contextMenuClick",O,V,ke))},null,8,["file","idx","selected-tag"])]),default:b(()=>[g(D).expanded?B("",!0):(k(),x("div",Un,[c(g(zt))]))]),_:1}),p.value?(k(),x("div",Vn)):B("",!0),p.value?(k(),x("div",qn,[c(ee,{trigger:["hover"],"get-popup-container":z},{overlay:b(()=>[c(fe,{onClick:s[2]||(s[2]=O=>t("contextMenuClick",O,a.file,a.idx))},{default:b(()=>{var O;return[((O=g(l).conf)==null?void 0:O.launch_mode)!=="server"?(k(),x(Y,{key:0},[c(j,{key:"send2txt2img"},{default:b(()=>[C(E(a.$t("sendToTxt2img")),1)]),_:1}),c(j,{key:"send2img2img"},{default:b(()=>[C(E(a.$t("sendToImg2img")),1)]),_:1}),c(j,{key:"send2inpaint"},{default:b(()=>[C(E(a.$t("sendToInpaint")),1)]),_:1}),c(j,{key:"send2extras"},{default:b(()=>[C(E(a.$t("sendToExtraFeatures")),1)]),_:1}),c(G,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:b(()=>[c(j,{key:"send2controlnet-txt2img"},{default:b(()=>[C("ControlNet - "+E(a.$t("t2i")),1)]),_:1}),c(j,{key:"send2controlnet-img2img"},{default:b(()=>[C("ControlNet - "+E(a.$t("i2i")),1)]),_:1}),c(j,{key:"send2outpaint"},{default:b(()=>[C("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):B("",!0),c(j,{key:"send2BatchDownload"},{default:b(()=>[C(E(a.$t("sendToBatchDownload")),1)]),_:1}),c(G,{key:"copy2target",title:a.$t("copyTo")},{default:b(()=>[(k(!0),x(Y,null,ve(g(l).quickMovePaths,V=>(k(),oe(j,{key:`copy-to-${V.dir}`},{default:b(()=>[C(E(V.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),c(G,{key:"move2target",title:a.$t("moveTo")},{default:b(()=>[(k(!0),x(Y,null,ve(g(l).quickMovePaths,V=>(k(),oe(j,{key:`move-to-${V.dir}`},{default:b(()=>[C(E(V.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),c(le),c(j,{key:"deleteFiles"},{default:b(()=>[C(E(a.$t("deleteSelected")),1)]),_:1}),c(j,{key:"previewInNewWindow"},{default:b(()=>[C(E(a.$t("previewInNewWindow")),1)]),_:1}),c(j,{key:"copyPreviewUrl"},{default:b(()=>[C(E(a.$t("copySourceFilePreviewLink")),1)]),_:1}),c(j,{key:"copyFilePath"},{default:b(()=>[C(E(a.$t("copyFilePath")),1)]),_:1})]}),_:1})]),default:b(()=>[c(J,null,{default:b(()=>[C(E(g(T)("openContextMenu")),1)]),_:1})]),_:1}),c(ft,{onClick:s[3]||(s[3]=O=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:b(()=>[C(E(a.$t("download")),1)]),_:1}),y.value?(k(),oe(J,{key:0,onClick:s[4]||(s[4]=O=>g(me)(y.value))},{default:b(()=>[C(E(a.$t("copyPrompt")),1)]),_:1})):B("",!0),y.value?(k(),oe(J,{key:1,onClick:R},{default:b(()=>[C(E(a.$t("copyPositivePrompt")),1)]),_:1})):B("",!0)])):B("",!0)]),p.value?(k(),x("div",Gn,[A("div",Xn,[(k(!0),x(Y,null,ve(H.value,O=>(k(),x("span",{class:"info-tag",key:O.name},[A("span",Yn,E(O.name),1),A("span",Kn,E(O.val),1)]))),128))]),(qe=g(l).conf)!=null&&qe.all_custom_tags?(k(),x("div",Jn,[(k(!0),x(Y,null,ve(g(l).conf.all_custom_tags,O=>(k(),x("div",{class:Ye(["tag",{selected:S.value.some(V=>V.id===O.id)}]),onClick:V=>t("contextMenuClick",{key:`toggle-tag-${O.id}`},a.file,a.idx),key:O.id,style:jt({"--tag-color":g(i).getColor(O.name)})},E(O.name),15,Qn))),128))])):B("",!0),A("div",Zn,[A("div",Rn,[C(E(a.$t("experimentalLRLayout"))+": ",1),c(Ue,{checked:g(v),"onUpdate:checked":s[5]||(s[5]=O=>_e(v)?v.value=O:null),size:"small"},null,8,["checked"])]),g(v)?(k(),x(Y,{key:0},[A("div",el,[C(E(a.$t("width"))+": ",1),c(vt,{value:g(o),"onUpdate:value":s[6]||(s[6]=O=>_e(o)?o.value=O:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),c(pt,{title:a.$t("alwaysOnTooltipInfo")},{default:b(()=>[A("div",tl,[C(E(a.$t("alwaysOn"))+": ",1),c(Ue,{checked:g(m),"onUpdate:checked":s[7]||(s[7]=O=>_e(m)?m.value=O:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):B("",!0)]),c(mt,{activeKey:g(w),"onUpdate:activeKey":s[8]||(s[8]=O=>_e(w)?w.value=O:null)},{default:b(()=>[c(Ve,{key:"structedData",tab:a.$t("structuredData")},{default:b(()=>[A("div",null,[h.value.prompt?(k(),x(Y,{key:0},[nl,ll,A("code",{innerHTML:U(h.value.prompt??"")},null,8,al)],64)):B("",!0),h.value.negativePrompt?(k(),x(Y,{key:1},[ol,sl,A("code",{innerHTML:U(h.value.negativePrompt??"")},null,8,il)],64)):B("",!0)]),Object.keys($.value).length?(k(),x(Y,{key:0},[rl,cl,A("table",null,[(k(!0),x(Y,null,ve($.value,(O,V)=>(k(),x("tr",{key:V,class:"gen-info-frag"},[A("td",ul,E(V),1),typeof O=="object"?(k(),x("td",{key:0,style:{cursor:"pointer"},onDblclick:ke=>de(O)},[A("code",null,E(O),1)],40,dl)):(k(),x("td",{key:1,style:{cursor:"pointer"},onDblclick:ke=>de(g(Oe)(O))},E(g(Oe)(O)),41,fl))]))),128))])],64)):B("",!0)]),_:1},8,["tab"]),c(Ve,{key:"sourceText",tab:a.$t("sourceText")},{default:b(()=>[A("code",null,E(y.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):B("",!0)]),g(D).expanded&&!g(v)?(k(),x("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:d,title:g(T)("dragToResizePanel")},[c(g(dn))],8,vl)):B("",!0)],34)}}});const Cl=ct(pl,[["__scopeId","data-v-a9e90b6a"]]),ml={key:0,class:"float-panel"},gl={key:0,class:"select-actions"},hl={key:1},yl=rt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=Ae(),l=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},i=()=>{n.keepMultiSelect=!0};return(u,S)=>{const M=se;return u.show?(k(),x("div",ml,[g(n).keepMultiSelect?(k(),x("div",gl,[c(M,{size:"small",onClick:S[0]||(S[0]=F=>t("selectAll"))},{default:b(()=>[C(E(u.$t("select-all")),1)]),_:1}),c(M,{size:"small",onClick:S[1]||(S[1]=F=>t("reverseSelect"))},{default:b(()=>[C(E(u.$t("rerverse-select")),1)]),_:1}),c(M,{size:"small",onClick:S[2]||(S[2]=F=>t("clearAllSelected"))},{default:b(()=>[C(E(u.$t("clear-all-selected")),1)]),_:1}),c(M,{size:"small",onClick:l},{default:b(()=>[C(E(u.$t("exit")),1)]),_:1})])):(k(),x("div",hl,[c(M,{size:"small",type:"primary",onClick:i},{default:b(()=>[C(E(u.$t("keep-multi-selected")),1)]),_:1})]))])):B("",!0)}}});const Ml=ct(yl,[["__scopeId","data-v-b04c3508"]]);export{$l as L,Ml as M,Pl as R,Fl as a,Il as b,Sl as c,xl as d,Cl as f,re as u}; diff --git a/vue/dist/assets/SubstrSearch-73895ef5.js b/vue/dist/assets/SubstrSearch-8ed8bfa5.js similarity index 93% rename from vue/dist/assets/SubstrSearch-73895ef5.js rename to vue/dist/assets/SubstrSearch-8ed8bfa5.js index 1dcae99e..1e23c185 100644 --- a/vue/dist/assets/SubstrSearch-73895ef5.js +++ b/vue/dist/assets/SubstrSearch-8ed8bfa5.js @@ -1 +1 @@ -import{d as $e,r as y,o as Ae,bO as W,m as Me,B as ze,ax as De,y as Fe,z as Ue,C as Q,bP as Be,$ as Ve,S as c,T as I,c as s,a1 as t,a2 as e,U as d,V as i,W as o,a0 as g,Y as f,a3 as X,bV as Ee,ae as F,a4 as Y,J as Te,ad as He,X as Ke,R as Z,ah as Ge,ai as j,bS as Oe,ag as Je,aN as Le,aO as Ne,bW as Pe,bU as qe,Z as We}from"./index-0a648427.js";import{S as Qe}from"./index-5fd83ad6.js";/* empty css */import"./index-6e5caf8a.js";import{c as Xe,d as Ye,F as Ze}from"./FileItem-e54d55be.js";import{M as je,L as et,R as tt,f as st}from"./MultiSelectKeep-051920f0.js";import{c as at,u as lt}from"./hook-9bb60c42.js";import{f as R,H as ee,_ as nt,a as ot}from"./searchHistory-245088c4.js";import"./functionalCallableComp-58260c55.js";/* empty css */import"./index-c4240098.js";import"./shortcut-16cf2087.js";import"./index-4035ad46.js";const it="/infinite_image_browsing/fe-static/assets/regex-a447f877.svg",U=b=>(Le("data-v-8a9796fb"),b=b(),Ne(),b),rt={style:{"padding-right":"16px"}},dt=U(()=>d("div",null,null,-1)),ut=["src"],ct={class:"search-bar"},pt={class:"form-name"},ft={class:"search-bar last actions"},vt={class:"hint"},gt={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},mt={style:{margin:"16px 32px 16px"}},_t={style:{"padding-right":"16px"}},ht=U(()=>d("div",null,null,-1)),kt=U(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),yt={key:2,class:"preview-switch"},bt=$e({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(b){const $=b,m=y(!1),_=y(""),h=y($.searchScope??""),w=y(!1),B=y(0),A=at(a=>{const l={cursor:a,regexp:m.value?_.value:"",surstr:m.value?"":_.value,folder_paths:(h.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r)};return Pe(l)}),{queue:k,images:p,onContextMenuClickU:V,stackViewEl:te,previewIdx:S,previewing:E,onPreviewVisibleChange:se,previewImgMove:T,canPreview:H,itemSize:K,gridItems:ae,showGenInfo:x,imageGenInfo:G,q:le,multiSelectedIdxs:M,onFileItemClick:ne,scroller:O,showMenuIdx:z,onFileDragStart:oe,onFileDragEnd:ie,cellWidth:re,onScroll:J,saveAllFileAsJson:de,saveLoadedFileAsJson:ue,props:ce,changeIndchecked:pe,seedChangeChecked:fe,getGenDiff:ve,getGenDiffWatchDep:ge}=lt(A),u=y();Ae(async()=>{u.value=await W(),u.value.img_count&&u.value.expired&&await L(),$.searchScope&&await C()}),Me(()=>$,async a=>{ce.value=a},{deep:!0,immediate:!0});const L=ze(()=>k.pushAction(async()=>(await qe(),u.value=await W(),u.value)).res),N=a=>{_.value=a.substr,h.value=a.folder_paths_str,m.value=a.isRegex,w.value=!1,C()},C=async()=>{B.value++,R.value.add({substr:_.value,folder_paths_str:h.value,isRegex:m.value}),await A.reset({refetch:!0}),await De(),J(),O.value.scrollToItem(0),p.value.length||Fe.info(Ue("fuzzy-search-noResults"))};Q("returnToIIB",async()=>{const a=await k.pushAction(Be).res;u.value.expired=a.expired}),Q("searchIndexExpired",()=>u.value&&(u.value.expired=!0));const me=()=>{m.value=!m.value},_e=Ve(),{onClearAllSelected:he,onSelectAll:ke,onReverseSelect:ye}=Xe();return(a,l)=>{const r=nt,v=ot,be=Z,we=Ge,P=j,Se=Oe,D=j,xe=Je,Ce=Z,Ie=Qe;return c(),I(Ke,null,[s(be,{visible:w.value,"onUpdate:visible":l[0]||(l[0]=n=>w.value=n),width:"70vw","mask-closable":"",onOk:l[1]||(l[1]=n=>w.value=!1)},{default:t(()=>[s(ee,{records:e(R),onReuseRecord:N},{default:t(({record:n})=>[d("div",rt,[s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsSubstr"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),g(v,{key:0},{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("searchScope"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):f("",!0),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsisRegex"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("time"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),dt])]),_:1},8,["records"])]),_:1},8,["visible"]),d("div",{class:"container",ref_key:"stackViewEl",ref:te},[s(je,{show:!!e(M).length||e(_e).keepMultiSelect,onClearAllSelected:e(he),onSelectAll:e(ke),onReverseSelect:e(ye)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),u.value?(c(),I("div",{key:0,class:"search-bar",onKeydown:l[4]||(l[4]=X(()=>{},["stop"]))},[s(we,{value:_.value,"onUpdate:value":l[2]||(l[2]=n=>_.value=n),placeholder:a.$t("fuzzy-search-placeholder")+" "+a.$t("regexSearchEnabledHint"),disabled:!e(k).isIdle,onKeydown:Ee(C,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),d("div",{class:F(["regex-icon",{selected:m.value}]),onKeydown:l[3]||(l[3]=X(()=>{},["stop"])),onClick:me,title:"Use Regular Expression"},[d("img",{src:e(it)},null,8,ut)],34),u.value.expired||!u.value.img_count?(c(),g(P,{key:0,onClick:e(L),loading:!e(k).isIdle,type:"primary"},{default:t(()=>[i(o(u.value.img_count===0?a.$t("generateIndexHint"):a.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(c(),g(P,{key:1,type:"primary",onClick:C,loading:!e(k).isIdle||e(A).loading,disabled:!_.value&&!h.value},{default:t(()=>[i(o(a.$t("search")),1)]),_:1},8,["loading","disabled"]))],32)):f("",!0),d("div",ct,[d("div",pt,o(a.$t("searchScope")),1),s(Se,{"auto-size":{maxRows:8},value:h.value,"onUpdate:value":l[5]||(l[5]=n=>h.value=n),placeholder:a.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),d("div",ft,[e(p).length?(c(),g(D,{key:0,onClick:e(ue)},{default:t(()=>[i(o(a.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):f("",!0),e(p).length?(c(),g(D,{key:1,onClick:e(de)},{default:t(()=>[i(o(a.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):f("",!0),s(D,{onClick:l[6]||(l[6]=n=>w.value=!0)},{default:t(()=>[i(o(a.$t("history")),1)]),_:1})]),s(Ie,{size:"large",spinning:!e(k).isIdle},{default:t(()=>[s(Ce,{visible:e(x),"onUpdate:visible":l[8]||(l[8]=n=>Y(x)?x.value=n:null),width:"70vw","mask-closable":"",onOk:l[9]||(l[9]=n=>x.value=!1)},{cancelText:t(()=>[]),default:t(()=>[s(xe,{active:"",loading:!e(le).isIdle},{default:t(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[7]||(l[7]=n=>e(Te)(e(G)))},[d("div",vt,o(a.$t("doubleClickToCopy")),1),i(" "+o(e(G)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),B.value===0&&!e(p).length&&e(R).getRecords().length?(c(),I("div",gt,[d("h2",mt,o(a.$t("restoreFromHistory")),1),s(ee,{records:e(R),onReuseRecord:N},{default:t(({record:n})=>[d("div",_t,[s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsSubstr"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),g(v,{key:0},{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("searchScope"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):f("",!0),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsisRegex"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("time"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),ht])]),_:1},8,["records"])])):f("",!0),e(p)?(c(),g(e(Ye),{key:1,ref_key:"scroller",ref:O,class:"file-list",items:e(p),"item-size":e(K).first,"key-field":"fullpath","item-secondary-size":e(K).second,gridItems:e(ae),onScroll:e(J)},{after:t(()=>[kt]),default:t(({item:n,index:q})=>[s(Ze,{idx:q,file:n,"show-menu-idx":e(z),"onUpdate:showMenuIdx":l[10]||(l[10]=Re=>Y(z)?z.value=Re:null),onFileItemClick:e(ne),"full-screen-preview-image-url":e(p)[e(S)]?e(He)(e(p)[e(S)]):"","cell-width":e(re),selected:e(M).includes(q),onContextMenuClick:e(V),onDragstart:e(oe),onDragend:e(ie),"enable-change-indicator":e(pe),"seed-change-checked":e(fe),"get-gen-diff":e(ve),"get-gen-diff-watch-dep":e(ge),"is-selected-mutil-files":e(M).length>1,onPreviewVisibleChange:e(se)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):f("",!0),e(E)?(c(),I("div",yt,[s(e(et),{onClick:l[11]||(l[11]=n=>e(T)("prev")),class:F({disable:!e(H)("prev")})},null,8,["class"]),s(e(tt),{onClick:l[12]||(l[12]=n=>e(T)("next")),class:F({disable:!e(H)("next")})},null,8,["class"])])):f("",!0)]),_:1},8,["spinning"]),e(E)&&e(p)&&e(p)[e(S)]?(c(),g(st,{key:1,file:e(p)[e(S)],idx:e(S),onContextMenuClick:e(V)},null,8,["file","idx","onContextMenuClick"])):f("",!0)],512)],64)}}});const Bt=We(bt,[["__scopeId","data-v-8a9796fb"]]);export{Bt as default}; +import{d as $e,r as y,o as Ae,bO as W,m as Me,B as ze,ax as De,y as Fe,z as Ue,C as Q,bP as Be,$ as Ve,S as c,T as I,c as s,a1 as t,a2 as e,U as d,V as i,W as o,a0 as g,Y as f,a3 as X,bV as Ee,ae as F,a4 as Y,J as Te,ad as He,X as Ke,R as Z,ah as Ge,ai as j,bS as Oe,ag as Je,aN as Le,aO as Ne,bW as Pe,bU as qe,Z as We}from"./index-93a218ca.js";import{S as Qe}from"./index-c7fe1b25.js";/* empty css */import"./index-67a7e5e1.js";import{c as Xe,d as Ye,F as Ze}from"./FileItem-9a94f7dd.js";import{M as je,L as et,R as tt,f as st}from"./MultiSelectKeep-e20b5f46.js";import{c as at,u as lt}from"./hook-983826b5.js";import{f as R,H as ee,_ as nt,a as ot}from"./searchHistory-7d99798b.js";import"./functionalCallableComp-685da399.js";/* empty css */import"./index-f60e0de3.js";import"./shortcut-ff09b8ec.js";import"./index-4596f42d.js";const it="/infinite_image_browsing/fe-static/assets/regex-a447f877.svg",U=b=>(Le("data-v-8a9796fb"),b=b(),Ne(),b),rt={style:{"padding-right":"16px"}},dt=U(()=>d("div",null,null,-1)),ut=["src"],ct={class:"search-bar"},pt={class:"form-name"},ft={class:"search-bar last actions"},vt={class:"hint"},gt={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},mt={style:{margin:"16px 32px 16px"}},_t={style:{"padding-right":"16px"}},ht=U(()=>d("div",null,null,-1)),kt=U(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),yt={key:2,class:"preview-switch"},bt=$e({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(b){const $=b,m=y(!1),_=y(""),h=y($.searchScope??""),w=y(!1),B=y(0),A=at(a=>{const l={cursor:a,regexp:m.value?_.value:"",surstr:m.value?"":_.value,folder_paths:(h.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r)};return Pe(l)}),{queue:k,images:p,onContextMenuClickU:V,stackViewEl:te,previewIdx:S,previewing:E,onPreviewVisibleChange:se,previewImgMove:T,canPreview:H,itemSize:K,gridItems:ae,showGenInfo:x,imageGenInfo:G,q:le,multiSelectedIdxs:M,onFileItemClick:ne,scroller:O,showMenuIdx:z,onFileDragStart:oe,onFileDragEnd:ie,cellWidth:re,onScroll:J,saveAllFileAsJson:de,saveLoadedFileAsJson:ue,props:ce,changeIndchecked:pe,seedChangeChecked:fe,getGenDiff:ve,getGenDiffWatchDep:ge}=lt(A),u=y();Ae(async()=>{u.value=await W(),u.value.img_count&&u.value.expired&&await L(),$.searchScope&&await C()}),Me(()=>$,async a=>{ce.value=a},{deep:!0,immediate:!0});const L=ze(()=>k.pushAction(async()=>(await qe(),u.value=await W(),u.value)).res),N=a=>{_.value=a.substr,h.value=a.folder_paths_str,m.value=a.isRegex,w.value=!1,C()},C=async()=>{B.value++,R.value.add({substr:_.value,folder_paths_str:h.value,isRegex:m.value}),await A.reset({refetch:!0}),await De(),J(),O.value.scrollToItem(0),p.value.length||Fe.info(Ue("fuzzy-search-noResults"))};Q("returnToIIB",async()=>{const a=await k.pushAction(Be).res;u.value.expired=a.expired}),Q("searchIndexExpired",()=>u.value&&(u.value.expired=!0));const me=()=>{m.value=!m.value},_e=Ve(),{onClearAllSelected:he,onSelectAll:ke,onReverseSelect:ye}=Xe();return(a,l)=>{const r=nt,v=ot,be=Z,we=Ge,P=j,Se=Oe,D=j,xe=Je,Ce=Z,Ie=Qe;return c(),I(Ke,null,[s(be,{visible:w.value,"onUpdate:visible":l[0]||(l[0]=n=>w.value=n),width:"70vw","mask-closable":"",onOk:l[1]||(l[1]=n=>w.value=!1)},{default:t(()=>[s(ee,{records:e(R),onReuseRecord:N},{default:t(({record:n})=>[d("div",rt,[s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsSubstr"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),g(v,{key:0},{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("searchScope"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):f("",!0),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsisRegex"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("time"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),dt])]),_:1},8,["records"])]),_:1},8,["visible"]),d("div",{class:"container",ref_key:"stackViewEl",ref:te},[s(je,{show:!!e(M).length||e(_e).keepMultiSelect,onClearAllSelected:e(he),onSelectAll:e(ke),onReverseSelect:e(ye)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),u.value?(c(),I("div",{key:0,class:"search-bar",onKeydown:l[4]||(l[4]=X(()=>{},["stop"]))},[s(we,{value:_.value,"onUpdate:value":l[2]||(l[2]=n=>_.value=n),placeholder:a.$t("fuzzy-search-placeholder")+" "+a.$t("regexSearchEnabledHint"),disabled:!e(k).isIdle,onKeydown:Ee(C,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),d("div",{class:F(["regex-icon",{selected:m.value}]),onKeydown:l[3]||(l[3]=X(()=>{},["stop"])),onClick:me,title:"Use Regular Expression"},[d("img",{src:e(it)},null,8,ut)],34),u.value.expired||!u.value.img_count?(c(),g(P,{key:0,onClick:e(L),loading:!e(k).isIdle,type:"primary"},{default:t(()=>[i(o(u.value.img_count===0?a.$t("generateIndexHint"):a.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(c(),g(P,{key:1,type:"primary",onClick:C,loading:!e(k).isIdle||e(A).loading,disabled:!_.value&&!h.value},{default:t(()=>[i(o(a.$t("search")),1)]),_:1},8,["loading","disabled"]))],32)):f("",!0),d("div",ct,[d("div",pt,o(a.$t("searchScope")),1),s(Se,{"auto-size":{maxRows:8},value:h.value,"onUpdate:value":l[5]||(l[5]=n=>h.value=n),placeholder:a.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),d("div",ft,[e(p).length?(c(),g(D,{key:0,onClick:e(ue)},{default:t(()=>[i(o(a.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):f("",!0),e(p).length?(c(),g(D,{key:1,onClick:e(de)},{default:t(()=>[i(o(a.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):f("",!0),s(D,{onClick:l[6]||(l[6]=n=>w.value=!0)},{default:t(()=>[i(o(a.$t("history")),1)]),_:1})]),s(Ie,{size:"large",spinning:!e(k).isIdle},{default:t(()=>[s(Ce,{visible:e(x),"onUpdate:visible":l[8]||(l[8]=n=>Y(x)?x.value=n:null),width:"70vw","mask-closable":"",onOk:l[9]||(l[9]=n=>x.value=!1)},{cancelText:t(()=>[]),default:t(()=>[s(xe,{active:"",loading:!e(le).isIdle},{default:t(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[7]||(l[7]=n=>e(Te)(e(G)))},[d("div",vt,o(a.$t("doubleClickToCopy")),1),i(" "+o(e(G)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),B.value===0&&!e(p).length&&e(R).getRecords().length?(c(),I("div",gt,[d("h2",mt,o(a.$t("restoreFromHistory")),1),s(ee,{records:e(R),onReuseRecord:N},{default:t(({record:n})=>[d("div",_t,[s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsSubstr"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),g(v,{key:0},{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("searchScope"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):f("",!0),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("historyRecordsisRegex"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),s(v,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(a.$t("time"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),ht])]),_:1},8,["records"])])):f("",!0),e(p)?(c(),g(e(Ye),{key:1,ref_key:"scroller",ref:O,class:"file-list",items:e(p),"item-size":e(K).first,"key-field":"fullpath","item-secondary-size":e(K).second,gridItems:e(ae),onScroll:e(J)},{after:t(()=>[kt]),default:t(({item:n,index:q})=>[s(Ze,{idx:q,file:n,"show-menu-idx":e(z),"onUpdate:showMenuIdx":l[10]||(l[10]=Re=>Y(z)?z.value=Re:null),onFileItemClick:e(ne),"full-screen-preview-image-url":e(p)[e(S)]?e(He)(e(p)[e(S)]):"","cell-width":e(re),selected:e(M).includes(q),onContextMenuClick:e(V),onDragstart:e(oe),onDragend:e(ie),"enable-change-indicator":e(pe),"seed-change-checked":e(fe),"get-gen-diff":e(ve),"get-gen-diff-watch-dep":e(ge),"is-selected-mutil-files":e(M).length>1,onPreviewVisibleChange:e(se)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):f("",!0),e(E)?(c(),I("div",yt,[s(e(et),{onClick:l[11]||(l[11]=n=>e(T)("prev")),class:F({disable:!e(H)("prev")})},null,8,["class"]),s(e(tt),{onClick:l[12]||(l[12]=n=>e(T)("next")),class:F({disable:!e(H)("next")})},null,8,["class"])])):f("",!0)]),_:1},8,["spinning"]),e(E)&&e(p)&&e(p)[e(S)]?(c(),g(st,{key:1,file:e(p)[e(S)],idx:e(S),onContextMenuClick:e(V)},null,8,["file","idx","onContextMenuClick"])):f("",!0)],512)],64)}}});const Bt=We(bt,[["__scopeId","data-v-8a9796fb"]]);export{Bt as default}; diff --git a/vue/dist/assets/TagSearch-de827449.js b/vue/dist/assets/TagSearch-0a65f26b.js similarity index 98% rename from vue/dist/assets/TagSearch-de827449.js rename to vue/dist/assets/TagSearch-0a65f26b.js index c91c78d7..f7ee2f77 100644 --- a/vue/dist/assets/TagSearch-de827449.js +++ b/vue/dist/assets/TagSearch-0a65f26b.js @@ -1 +1 @@ -import{P as z,aw as Ke,d as ne,bB as Ae,b4 as De,r as F,bE as Fe,m as we,u as ke,E as ee,al as oe,h as k,c as r,a as ae,bF as Ue,b as je,f as Le,bG as ze,an as fe,bH as He,aX as Ve,i as Ge,bc as qe,bI as Xe,ar as Qe,as as We,aq as Ye,A as Ze,a_ as Je,aY as ea,bJ as aa,aZ as ta,bK as na,S as b,T,U as C,W as y,a0 as L,a2 as K,bL as la,Y as D,a3 as ce,bM as oa,ae as xe,Z as Se,$ as sa,bN as ia,ak as ra,n as da,x as ca,O as ua,o as va,bO as ge,q as pa,ax as fa,C as me,B as ga,bP as ma,a1 as h,V as A,X as J,aa as re,a6 as _e,aK as _a,bQ as ha,y as he,z as de,R as ye,bR as ya,ai as be,bS as ba,ah as Ca,bT as Ia,aN as $a,aO as Aa,bU as wa}from"./index-0a648427.js";import{S as ka}from"./index-5fd83ad6.js";/* empty css *//* empty css */import{t as Ce,_ as xa,a as Sa,H as Oa}from"./searchHistory-245088c4.js";import"./index-6e5caf8a.js";var Pa=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:z.object,expandIconPosition:z.oneOf(Ke("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},Oe=function(){return{openAnimation:z.object,prefixCls:String,header:z.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:z.any,panelKey:z.oneOfType([z.string,z.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function Ie(o){var a=o;if(!Array.isArray(a)){var t=je(a);a=t==="number"||t==="string"?[a]:[]}return a.map(function(l){return String(l)})}const te=ne({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ae(Pa(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:De("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(a,t){var l=t.attrs,c=t.slots,s=t.emit,f=F(Ie(Fe([a.activeKey,a.defaultActiveKey])));we(function(){return a.activeKey},function(){f.value=Ie(a.activeKey)},{deep:!0});var d=ke("collapse",a),g=d.prefixCls,B=d.direction,N=ee(function(){var p=a.expandIconPosition;return p!==void 0?p:B.value==="rtl"?"right":"left"}),E=function(v){var m=a.expandIcon,w=m===void 0?c.expandIcon:m,I=w?w(v):r(He,{rotate:v.isActive?90:void 0},null);return r("div",null,[Ve(Array.isArray(w)?I[0]:I)?fe(I,{class:"".concat(g.value,"-arrow")},!1):I])},U=function(v){a.activeKey===void 0&&(f.value=v);var m=a.accordion?v[0]:v;s("update:activeKey",m),s("change",m)},O=function(v){var m=f.value;if(a.accordion)m=m[0]===v?[]:[v];else{m=Ge(m);var w=m.indexOf(v),I=w>-1;I?m.splice(w,1):m.push(v)}U(m)},H=function(v,m){var w,I,j;if(!ze(v)){var R=f.value,V=a.accordion,W=a.destroyInactivePanel,G=a.collapsible,Y=a.openAnimation,P=String((w=v.key)!==null&&w!==void 0?w:m),M=v.props||{},x=M.header,q=x===void 0?(I=v.children)===null||I===void 0||(j=I.header)===null||j===void 0?void 0:j.call(I):x,e=M.headerClass,n=M.collapsible,u=M.disabled,_=!1;V?_=R[0]===P:_=R.indexOf(P)>-1;var S=n??G;(u||u==="")&&(S="disabled");var Z={key:P,panelKey:P,header:q,headerClass:e,isActive:_,prefixCls:g.value,destroyInactivePanel:W,openAnimation:Y,accordion:V,onItemClick:S==="disabled"?null:O,expandIcon:E,collapsible:S};return fe(v,Z)}},Q=function(){var v;return Le((v=c.default)===null||v===void 0?void 0:v.call(c)).map(H)};return function(){var p,v=a.accordion,m=a.bordered,w=a.ghost,I=oe((p={},k(p,g.value,!0),k(p,"".concat(g.value,"-borderless"),!m),k(p,"".concat(g.value,"-icon-position-").concat(N.value),!0),k(p,"".concat(g.value,"-rtl"),B.value==="rtl"),k(p,"".concat(g.value,"-ghost"),!!w),k(p,l.class,!!l.class),p));return r("div",ae(ae({class:I},Ue(l)),{},{style:l.style,role:v?"tablist":null}),[Q()])}}}),Ta=ne({compatConfig:{MODE:3},name:"PanelContent",props:Oe(),setup:function(a,t){var l=t.slots,c=F(!1);return qe(function(){(a.isActive||a.forceRender)&&(c.value=!0)}),function(){var s,f;if(!c.value)return null;var d=a.prefixCls,g=a.isActive,B=a.role;return r("div",{ref:F,class:oe("".concat(d,"-content"),(s={},k(s,"".concat(d,"-content-active"),g),k(s,"".concat(d,"-content-inactive"),!g),s)),role:B},[r("div",{class:"".concat(d,"-content-box")},[(f=l.default)===null||f===void 0?void 0:f.call(l)])])}}}),se=ne({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ae(Oe(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(a,t){var l=t.slots,c=t.emit,s=t.attrs;Xe(a.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var f=ke("collapse",a),d=f.prefixCls,g=function(){c("itemClick",a.panelKey)},B=function(E){(E.key==="Enter"||E.keyCode===13||E.which===13)&&g()};return function(){var N,E,U,O,H=a.header,Q=H===void 0?(N=l.header)===null||N===void 0?void 0:N.call(l):H,p=a.headerClass,v=a.isActive,m=a.showArrow,w=a.destroyInactivePanel,I=a.accordion,j=a.forceRender,R=a.openAnimation,V=a.expandIcon,W=V===void 0?l.expandIcon:V,G=a.extra,Y=G===void 0?(E=l.extra)===null||E===void 0?void 0:E.call(l):G,P=a.collapsible,M=P==="disabled",x=d.value,q=oe("".concat(x,"-header"),(U={},k(U,p,p),k(U,"".concat(x,"-header-collapsible-only"),P==="header"),U)),e=oe((O={},k(O,"".concat(x,"-item"),!0),k(O,"".concat(x,"-item-active"),v),k(O,"".concat(x,"-item-disabled"),M),k(O,"".concat(x,"-no-arrow"),!m),k(O,"".concat(s.class),!!s.class),O)),n=r("i",{class:"arrow"},null);m&&typeof W=="function"&&(n=W(a));var u=Qe(r(Ta,{prefixCls:x,isActive:v,forceRender:j,role:I?"tabpanel":null},{default:l.default}),[[We,v]]),_=ae({appear:!1,css:!1},R);return r("div",ae(ae({},s),{},{class:e}),[r("div",{class:q,onClick:function(){return P!=="header"&&g()},role:I?"tab":"button",tabindex:M?-1:0,"aria-expanded":v,onKeypress:B},[m&&n,P==="header"?r("span",{onClick:g,class:"".concat(x,"-header-text")},[Q]):Q,Y&&r("div",{class:"".concat(x,"-extra")},[Y])]),r(Ye,_,{default:function(){return[!w||v?u:null]}})])}}});te.Panel=se;te.install=function(o){return o.component(te.name,te),o.component(se.name,se),o};var Na={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 Ea=Na;function $e(o){for(var a=1;a(l?`[${t.type}] `:"")+(t.display_name?`${t.display_name} : ${t.name}`:t.name);return(t,l)=>(b(),T("div",Wa,[C("div",Ya,[C("div",{onClick:l[0]||(l[0]=c=>t.$emit("toggleAnd"))},y(t.$t("exactMatch")),1),C("div",{onClick:l[1]||(l[1]=c=>t.$emit("toggleOr"))},y(t.$t("anyMatch")),1),C("div",{onClick:l[2]||(l[2]=c=>t.$emit("toggleNot"))},y(t.$t("exclude")),1)]),C("li",{class:xe(["tag",{selected:t.selected}]),title:a(t.tag),onClick:l[4]||(l[4]=c=>t.$emit("click"))},[t.selected?(b(),L(K(la),{key:0})):D("",!0),C("div",Ja,y(a(t.tag)),1),t.name==="custom"&&t.idx!==0?(b(),T("span",{key:1,class:"remove",onClickCapture:l[3]||(l[3]=ce(c=>t.$emit("remove"),["stop"]))},[r(K(oa))],32)):D("",!0)],10,Za)]))}});const at=Se(et,[["__scopeId","data-v-3aaf060d"]]),Pe=o=>($a("data-v-494e8b82"),o=o(),Aa(),o),tt={class:"container"},nt={style:{"padding-right":"16px"}},lt=Pe(()=>C("div",null,null,-1)),ot={class:"search-bar"},st={class:"form-name"},it={class:"search-bar"},rt={class:"form-name"},dt=Pe(()=>C("div",{style:{"padding-left":"4px"}},null,-1)),ct={class:"search-bar"},ut={class:"form-name"},vt={class:"search-bar"},pt={class:"form-name"},ft={key:0,class:"generate-idx-hint"},gt={class:"list-container"},mt={key:0,class:"tag-list"},_t=["onClick"],ht={key:1},yt={key:2,class:"spin-container"},bt=ne({__name:"TagSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(o){const a=o,t=sa(),l=ia(),c=ee(()=>!l.isIdle),s=F(),f=F(!1),d=F({and_tags:[],or_tags:[],not_tags:[],folder_paths_str:a.searchScope}),g=ee(()=>s.value?s.value.tags.slice().sort((e,n)=>n.count-e.count):[]),B=["custom","Source Identifier","Model","Media Type","lora","lyco","pos","size","Sampler","Postprocess upscaler","Postprocess upscale by"].reduce((e,n,u)=>(e[n]=u,e),{}),N=ee(()=>Object.entries(Qa(g.value,e=>e.type)).sort((e,n)=>{const u=B[e[0]]!==void 0?B[e[0]]:Number.MAX_SAFE_INTEGER,_=B[n[0]]!==void 0?B[n[0]]:Number.MAX_SAFE_INTEGER;return u-_})),E=ra(new Map),U=e=>E.get(e)??512,O=F({}),H=F({});we(O,da(e=>{H.value=ca(e)},300),{deep:!0});const Q=ua(),p=F(N.value.map(e=>e[0]));va(async()=>{console.log(new Date().toLocaleString()),s.value=await ge(),await pa(20),console.log(new Date().toLocaleString()),p.value=N.value.map(e=>e[0]),fa(()=>{console.log(new Date().toLocaleString())}),s.value.img_count&&s.value.expired&&await v(),a.searchScope&&m()}),me("searchIndexExpired",()=>s.value&&(s.value.expired=!0));const v=ga(()=>l.pushAction(async()=>(await wa(),s.value=await ge(),p.value=N.value.map(e=>e[0]),s.value)).res),m=()=>{Ce.value.add(d.value),t.openTagSearchMatchedImageGridInRight(a.tabIdx,Q,d.value)},w=e=>{d.value=e,f.value=!1,m()};me("returnToIIB",async()=>{const e=await l.pushAction(ma).res;s.value.expired=e.expired});const I=(e,n=!1)=>(n?`[${e.type}] `:"")+(e.display_name?`${e.display_name} : ${e.name}`:e.name),j=F(!1),R=F(""),V=async()=>{var n,u,_;if(!R.value){j.value=!1;return}const e=await l.pushAction(()=>ha({tag_name:R.value})).res;e.type!=="custom"&&he.error(de("existInOtherType")),(n=s.value)!=null&&n.tags.find(S=>S.id===e.id)?he.error(de("alreadyExists")):((u=s.value)==null||u.tags.push(e),(_=t.conf)==null||_.all_custom_tags.push(e)),R.value="",j.value=!1},W=e=>{ye.confirm({title:de("confirmDelete"),async onOk(){var u,_,S,Z;await ya({tag_id:e});const n=((u=s.value)==null?void 0:u.tags.findIndex(X=>X.id===e))??-1;(_=s.value)==null||_.tags.splice(n,1),(Z=t.conf)==null||Z.all_custom_tags.splice((S=t.conf)==null?void 0:S.all_custom_tags.findIndex(X=>X.id===e),1)}})},G=ee(()=>new Set([d.value.and_tags,d.value.or_tags,d.value.not_tags].flat())),Y=e=>{G.value.has(e.id)?(d.value.and_tags=d.value.and_tags.filter(n=>n!==e.id),d.value.or_tags=d.value.or_tags.filter(n=>n!==e.id),d.value.not_tags=d.value.not_tags.filter(n=>n!==e.id)):d.value.and_tags.push(e.id)},P={value:e=>e.id,text:I,optionText:e=>I(e,!0)},M=(e,n)=>{const u=n.indexOf(e);u===-1?n.push(e):n.splice(u,1)},x=(e,n)=>{const u=U(n);let _=H.value[n];return _&&(_=_.trim(),e=e.filter(S=>I(S).toLowerCase().includes(_.toLowerCase()))),e.slice(0,u)},q=e=>e.map(n=>{var u;return(u=g.value.find(_=>_.id===n))==null?void 0:u.name}).join(", ");return(e,n)=>{const u=xa,_=Sa,S=Oa,Z=ye,X=be,Te=ba,ve=Ca,pe=be,Ne=Ia,Ee=se,Be=te,Re=ka;return b(),T("div",tt,[r(Z,{visible:f.value,"onUpdate:visible":n[0]||(n[0]=i=>f.value=i),width:"70vw","mask-closable":"",onOk:n[1]||(n[1]=i=>f.value=!1)},{default:h(()=>[r(S,{records:K(Ce),onReuseRecord:w},{default:h(({record:i})=>[C("div",nt,[i.and_tags.length?(b(),L(_,{key:0},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("exactMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(q(i.and_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.or_tags.length?(b(),L(_,{key:1},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("anyMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(q(i.or_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.not_tags.length?(b(),L(_,{key:2},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("exclude"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(q(i.not_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.folder_paths_str?(b(),L(_,{key:3},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("searchScope"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(i.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):D("",!0),r(_,null,{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("time"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(i.time),1)]),_:2},1024)]),_:2},1024),lt])]),_:1},8,["records"])]),_:1},8,["visible"]),D("",!0),s.value?(b(),T(J,{key:1},[C("div",null,[C("div",ot,[C("div",st,y(e.$t("exactMatch")),1),r(K(re),{conv:P,mode:"multiple",style:{width:"100%"},options:g.value,value:d.value.and_tags,"onUpdate:value":n[2]||(n[2]=i=>d.value.and_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),s.value.expired||!s.value.img_count?(b(),L(X,{key:0,onClick:K(v),loading:!K(l).isIdle,type:"primary"},{default:h(()=>[A(y(s.value.img_count===0?e.$t("generateIndexHint"):e.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(b(),L(X,{key:1,type:"primary",onClick:m,loading:!K(l).isIdle},{default:h(()=>[A(y(e.$t("search")),1)]),_:1},8,["loading"]))]),C("div",it,[C("div",rt,y(e.$t("anyMatch")),1),r(K(re),{conv:P,mode:"multiple",style:{width:"100%"},options:g.value,value:d.value.or_tags,"onUpdate:value":n[3]||(n[3]=i=>d.value.or_tags=i),disabled:!g.value.length,placeholder:e.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"]),dt,r(X,{onClick:n[4]||(n[4]=i=>f.value=!0)},{default:h(()=>[A(y(e.$t("history")),1)]),_:1})]),C("div",ct,[C("div",ut,y(e.$t("exclude")),1),r(K(re),{conv:P,mode:"multiple",style:{width:"100%"},options:g.value,value:d.value.not_tags,"onUpdate:value":n[5]||(n[5]=i=>d.value.not_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])]),C("div",vt,[C("div",pt,y(e.$t("searchScope")),1),r(Te,{"auto-size":{maxRows:8},value:d.value.folder_paths_str,"onUpdate:value":n[6]||(n[6]=i=>d.value.folder_paths_str=i),placeholder:e.$t("specifiedSearchFolder")},null,8,["value","placeholder"])])]),g.value.filter(i=>i.type!=="custom").length?D("",!0):(b(),T("p",ft,y(e.$t("needGenerateIdx")),1)),C("div",gt,[(b(!0),T(J,null,_e(N.value,([i,ie])=>(b(),T(J,{key:i},[i!=="Media Type"||ie.length>1?(b(),T("ul",mt,[C("h3",{class:"cat-name",onClick:$=>p.value.includes(i)?p.value.splice(p.value.indexOf(i),1):p.value.push(i)},[r(K(Ra),{class:xe(["arrow",{down:p.value.includes(i)}])},null,8,["class"]),A(" "+y(e.$t(i))+" ",1),C("div",{onClick:n[7]||(n[7]=ce(()=>{},["stop","prevent"])),class:"filter-input"},[r(ve,{value:O.value[i],"onUpdate:value":$=>O.value[i]=$,size:"small",allowClear:"",placeholder:e.$t("filterByKeyword")},null,8,["value","onUpdate:value","placeholder"])])],8,_t),r(Be,{ghost:"",activeKey:p.value,"onUpdate:activeKey":n[10]||(n[10]=$=>p.value=$)},{expandIcon:h(()=>[]),default:h(()=>[(b(),L(Ee,{key:i},{default:h(()=>[(b(!0),T(J,null,_e(x(ie,i),($,Me)=>(b(),L(at,{onClick:le=>Y($),onRemove:le=>W($.id),onToggleAnd:le=>M($.id,d.value.and_tags),onToggleOr:le=>M($.id,d.value.or_tags),onToggleNot:le=>M($.id,d.value.not_tags),key:$.id,idx:Me,name:i,tag:$,selected:G.value.has($.id)},null,8,["onClick","onRemove","onToggleAnd","onToggleOr","onToggleNot","idx","name","tag","selected"]))),128)),i==="custom"?(b(),T("li",{key:0,class:"tag",onClick:n[9]||(n[9]=$=>j.value=!0)},[j.value?(b(),L(Ne,{key:0,compact:""},{default:h(()=>[r(ve,{value:R.value,"onUpdate:value":n[8]||(n[8]=$=>R.value=$),style:{width:"128px"},loading:c.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),r(pe,{size:"small",type:"primary",onClickCapture:ce(V,["stop"]),loading:c.value},{default:h(()=>[A(y(R.value?e.$t("submit"):e.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(b(),T(J,{key:1},[r(K(_a)),A(" "+y(e.$t("add")),1)],64))])):D("",!0),U(i)E.set(i,U(i)+512)},{default:h(()=>[A(y(e.$t("loadmore")),1)]),_:2},1032,["onClick"])])):D("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])])):D("",!0)],64))),128))])],64)):(b(),T("div",yt,[r(Re,{size:"large"})]))])}}});const xt=Se(bt,[["__scopeId","data-v-494e8b82"]]);export{xt as default}; +import{P as z,aw as Ke,d as ne,bB as Ae,b4 as De,r as F,bE as Fe,m as we,u as ke,E as ee,al as oe,h as k,c as r,a as ae,bF as Ue,b as je,f as Le,bG as ze,an as fe,bH as He,aX as Ve,i as Ge,bc as qe,bI as Xe,ar as Qe,as as We,aq as Ye,A as Ze,a_ as Je,aY as ea,bJ as aa,aZ as ta,bK as na,S as b,T,U as C,W as y,a0 as L,a2 as K,bL as la,Y as D,a3 as ce,bM as oa,ae as xe,Z as Se,$ as sa,bN as ia,ak as ra,n as da,x as ca,O as ua,o as va,bO as ge,q as pa,ax as fa,C as me,B as ga,bP as ma,a1 as h,V as A,X as J,aa as re,a6 as _e,aK as _a,bQ as ha,y as he,z as de,R as ye,bR as ya,ai as be,bS as ba,ah as Ca,bT as Ia,aN as $a,aO as Aa,bU as wa}from"./index-93a218ca.js";import{S as ka}from"./index-c7fe1b25.js";/* empty css *//* empty css */import{t as Ce,_ as xa,a as Sa,H as Oa}from"./searchHistory-7d99798b.js";import"./index-67a7e5e1.js";var Pa=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:z.object,expandIconPosition:z.oneOf(Ke("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},Oe=function(){return{openAnimation:z.object,prefixCls:String,header:z.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:z.any,panelKey:z.oneOfType([z.string,z.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function Ie(o){var a=o;if(!Array.isArray(a)){var t=je(a);a=t==="number"||t==="string"?[a]:[]}return a.map(function(l){return String(l)})}const te=ne({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ae(Pa(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:De("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(a,t){var l=t.attrs,c=t.slots,s=t.emit,f=F(Ie(Fe([a.activeKey,a.defaultActiveKey])));we(function(){return a.activeKey},function(){f.value=Ie(a.activeKey)},{deep:!0});var d=ke("collapse",a),g=d.prefixCls,B=d.direction,N=ee(function(){var p=a.expandIconPosition;return p!==void 0?p:B.value==="rtl"?"right":"left"}),E=function(v){var m=a.expandIcon,w=m===void 0?c.expandIcon:m,I=w?w(v):r(He,{rotate:v.isActive?90:void 0},null);return r("div",null,[Ve(Array.isArray(w)?I[0]:I)?fe(I,{class:"".concat(g.value,"-arrow")},!1):I])},U=function(v){a.activeKey===void 0&&(f.value=v);var m=a.accordion?v[0]:v;s("update:activeKey",m),s("change",m)},O=function(v){var m=f.value;if(a.accordion)m=m[0]===v?[]:[v];else{m=Ge(m);var w=m.indexOf(v),I=w>-1;I?m.splice(w,1):m.push(v)}U(m)},H=function(v,m){var w,I,j;if(!ze(v)){var R=f.value,V=a.accordion,W=a.destroyInactivePanel,G=a.collapsible,Y=a.openAnimation,P=String((w=v.key)!==null&&w!==void 0?w:m),M=v.props||{},x=M.header,q=x===void 0?(I=v.children)===null||I===void 0||(j=I.header)===null||j===void 0?void 0:j.call(I):x,e=M.headerClass,n=M.collapsible,u=M.disabled,_=!1;V?_=R[0]===P:_=R.indexOf(P)>-1;var S=n??G;(u||u==="")&&(S="disabled");var Z={key:P,panelKey:P,header:q,headerClass:e,isActive:_,prefixCls:g.value,destroyInactivePanel:W,openAnimation:Y,accordion:V,onItemClick:S==="disabled"?null:O,expandIcon:E,collapsible:S};return fe(v,Z)}},Q=function(){var v;return Le((v=c.default)===null||v===void 0?void 0:v.call(c)).map(H)};return function(){var p,v=a.accordion,m=a.bordered,w=a.ghost,I=oe((p={},k(p,g.value,!0),k(p,"".concat(g.value,"-borderless"),!m),k(p,"".concat(g.value,"-icon-position-").concat(N.value),!0),k(p,"".concat(g.value,"-rtl"),B.value==="rtl"),k(p,"".concat(g.value,"-ghost"),!!w),k(p,l.class,!!l.class),p));return r("div",ae(ae({class:I},Ue(l)),{},{style:l.style,role:v?"tablist":null}),[Q()])}}}),Ta=ne({compatConfig:{MODE:3},name:"PanelContent",props:Oe(),setup:function(a,t){var l=t.slots,c=F(!1);return qe(function(){(a.isActive||a.forceRender)&&(c.value=!0)}),function(){var s,f;if(!c.value)return null;var d=a.prefixCls,g=a.isActive,B=a.role;return r("div",{ref:F,class:oe("".concat(d,"-content"),(s={},k(s,"".concat(d,"-content-active"),g),k(s,"".concat(d,"-content-inactive"),!g),s)),role:B},[r("div",{class:"".concat(d,"-content-box")},[(f=l.default)===null||f===void 0?void 0:f.call(l)])])}}}),se=ne({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ae(Oe(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(a,t){var l=t.slots,c=t.emit,s=t.attrs;Xe(a.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var f=ke("collapse",a),d=f.prefixCls,g=function(){c("itemClick",a.panelKey)},B=function(E){(E.key==="Enter"||E.keyCode===13||E.which===13)&&g()};return function(){var N,E,U,O,H=a.header,Q=H===void 0?(N=l.header)===null||N===void 0?void 0:N.call(l):H,p=a.headerClass,v=a.isActive,m=a.showArrow,w=a.destroyInactivePanel,I=a.accordion,j=a.forceRender,R=a.openAnimation,V=a.expandIcon,W=V===void 0?l.expandIcon:V,G=a.extra,Y=G===void 0?(E=l.extra)===null||E===void 0?void 0:E.call(l):G,P=a.collapsible,M=P==="disabled",x=d.value,q=oe("".concat(x,"-header"),(U={},k(U,p,p),k(U,"".concat(x,"-header-collapsible-only"),P==="header"),U)),e=oe((O={},k(O,"".concat(x,"-item"),!0),k(O,"".concat(x,"-item-active"),v),k(O,"".concat(x,"-item-disabled"),M),k(O,"".concat(x,"-no-arrow"),!m),k(O,"".concat(s.class),!!s.class),O)),n=r("i",{class:"arrow"},null);m&&typeof W=="function"&&(n=W(a));var u=Qe(r(Ta,{prefixCls:x,isActive:v,forceRender:j,role:I?"tabpanel":null},{default:l.default}),[[We,v]]),_=ae({appear:!1,css:!1},R);return r("div",ae(ae({},s),{},{class:e}),[r("div",{class:q,onClick:function(){return P!=="header"&&g()},role:I?"tab":"button",tabindex:M?-1:0,"aria-expanded":v,onKeypress:B},[m&&n,P==="header"?r("span",{onClick:g,class:"".concat(x,"-header-text")},[Q]):Q,Y&&r("div",{class:"".concat(x,"-extra")},[Y])]),r(Ye,_,{default:function(){return[!w||v?u:null]}})])}}});te.Panel=se;te.install=function(o){return o.component(te.name,te),o.component(se.name,se),o};var Na={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 Ea=Na;function $e(o){for(var a=1;a(l?`[${t.type}] `:"")+(t.display_name?`${t.display_name} : ${t.name}`:t.name);return(t,l)=>(b(),T("div",Wa,[C("div",Ya,[C("div",{onClick:l[0]||(l[0]=c=>t.$emit("toggleAnd"))},y(t.$t("exactMatch")),1),C("div",{onClick:l[1]||(l[1]=c=>t.$emit("toggleOr"))},y(t.$t("anyMatch")),1),C("div",{onClick:l[2]||(l[2]=c=>t.$emit("toggleNot"))},y(t.$t("exclude")),1)]),C("li",{class:xe(["tag",{selected:t.selected}]),title:a(t.tag),onClick:l[4]||(l[4]=c=>t.$emit("click"))},[t.selected?(b(),L(K(la),{key:0})):D("",!0),C("div",Ja,y(a(t.tag)),1),t.name==="custom"&&t.idx!==0?(b(),T("span",{key:1,class:"remove",onClickCapture:l[3]||(l[3]=ce(c=>t.$emit("remove"),["stop"]))},[r(K(oa))],32)):D("",!0)],10,Za)]))}});const at=Se(et,[["__scopeId","data-v-3aaf060d"]]),Pe=o=>($a("data-v-494e8b82"),o=o(),Aa(),o),tt={class:"container"},nt={style:{"padding-right":"16px"}},lt=Pe(()=>C("div",null,null,-1)),ot={class:"search-bar"},st={class:"form-name"},it={class:"search-bar"},rt={class:"form-name"},dt=Pe(()=>C("div",{style:{"padding-left":"4px"}},null,-1)),ct={class:"search-bar"},ut={class:"form-name"},vt={class:"search-bar"},pt={class:"form-name"},ft={key:0,class:"generate-idx-hint"},gt={class:"list-container"},mt={key:0,class:"tag-list"},_t=["onClick"],ht={key:1},yt={key:2,class:"spin-container"},bt=ne({__name:"TagSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(o){const a=o,t=sa(),l=ia(),c=ee(()=>!l.isIdle),s=F(),f=F(!1),d=F({and_tags:[],or_tags:[],not_tags:[],folder_paths_str:a.searchScope}),g=ee(()=>s.value?s.value.tags.slice().sort((e,n)=>n.count-e.count):[]),B=["custom","Source Identifier","Model","Media Type","lora","lyco","pos","size","Sampler","Postprocess upscaler","Postprocess upscale by"].reduce((e,n,u)=>(e[n]=u,e),{}),N=ee(()=>Object.entries(Qa(g.value,e=>e.type)).sort((e,n)=>{const u=B[e[0]]!==void 0?B[e[0]]:Number.MAX_SAFE_INTEGER,_=B[n[0]]!==void 0?B[n[0]]:Number.MAX_SAFE_INTEGER;return u-_})),E=ra(new Map),U=e=>E.get(e)??512,O=F({}),H=F({});we(O,da(e=>{H.value=ca(e)},300),{deep:!0});const Q=ua(),p=F(N.value.map(e=>e[0]));va(async()=>{console.log(new Date().toLocaleString()),s.value=await ge(),await pa(20),console.log(new Date().toLocaleString()),p.value=N.value.map(e=>e[0]),fa(()=>{console.log(new Date().toLocaleString())}),s.value.img_count&&s.value.expired&&await v(),a.searchScope&&m()}),me("searchIndexExpired",()=>s.value&&(s.value.expired=!0));const v=ga(()=>l.pushAction(async()=>(await wa(),s.value=await ge(),p.value=N.value.map(e=>e[0]),s.value)).res),m=()=>{Ce.value.add(d.value),t.openTagSearchMatchedImageGridInRight(a.tabIdx,Q,d.value)},w=e=>{d.value=e,f.value=!1,m()};me("returnToIIB",async()=>{const e=await l.pushAction(ma).res;s.value.expired=e.expired});const I=(e,n=!1)=>(n?`[${e.type}] `:"")+(e.display_name?`${e.display_name} : ${e.name}`:e.name),j=F(!1),R=F(""),V=async()=>{var n,u,_;if(!R.value){j.value=!1;return}const e=await l.pushAction(()=>ha({tag_name:R.value})).res;e.type!=="custom"&&he.error(de("existInOtherType")),(n=s.value)!=null&&n.tags.find(S=>S.id===e.id)?he.error(de("alreadyExists")):((u=s.value)==null||u.tags.push(e),(_=t.conf)==null||_.all_custom_tags.push(e)),R.value="",j.value=!1},W=e=>{ye.confirm({title:de("confirmDelete"),async onOk(){var u,_,S,Z;await ya({tag_id:e});const n=((u=s.value)==null?void 0:u.tags.findIndex(X=>X.id===e))??-1;(_=s.value)==null||_.tags.splice(n,1),(Z=t.conf)==null||Z.all_custom_tags.splice((S=t.conf)==null?void 0:S.all_custom_tags.findIndex(X=>X.id===e),1)}})},G=ee(()=>new Set([d.value.and_tags,d.value.or_tags,d.value.not_tags].flat())),Y=e=>{G.value.has(e.id)?(d.value.and_tags=d.value.and_tags.filter(n=>n!==e.id),d.value.or_tags=d.value.or_tags.filter(n=>n!==e.id),d.value.not_tags=d.value.not_tags.filter(n=>n!==e.id)):d.value.and_tags.push(e.id)},P={value:e=>e.id,text:I,optionText:e=>I(e,!0)},M=(e,n)=>{const u=n.indexOf(e);u===-1?n.push(e):n.splice(u,1)},x=(e,n)=>{const u=U(n);let _=H.value[n];return _&&(_=_.trim(),e=e.filter(S=>I(S).toLowerCase().includes(_.toLowerCase()))),e.slice(0,u)},q=e=>e.map(n=>{var u;return(u=g.value.find(_=>_.id===n))==null?void 0:u.name}).join(", ");return(e,n)=>{const u=xa,_=Sa,S=Oa,Z=ye,X=be,Te=ba,ve=Ca,pe=be,Ne=Ia,Ee=se,Be=te,Re=ka;return b(),T("div",tt,[r(Z,{visible:f.value,"onUpdate:visible":n[0]||(n[0]=i=>f.value=i),width:"70vw","mask-closable":"",onOk:n[1]||(n[1]=i=>f.value=!1)},{default:h(()=>[r(S,{records:K(Ce),onReuseRecord:w},{default:h(({record:i})=>[C("div",nt,[i.and_tags.length?(b(),L(_,{key:0},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("exactMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(q(i.and_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.or_tags.length?(b(),L(_,{key:1},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("anyMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(q(i.or_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.not_tags.length?(b(),L(_,{key:2},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("exclude"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(q(i.not_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.folder_paths_str?(b(),L(_,{key:3},{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("searchScope"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(i.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):D("",!0),r(_,null,{default:h(()=>[r(u,{span:4},{default:h(()=>[A(y(e.$t("time"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[A(y(i.time),1)]),_:2},1024)]),_:2},1024),lt])]),_:1},8,["records"])]),_:1},8,["visible"]),D("",!0),s.value?(b(),T(J,{key:1},[C("div",null,[C("div",ot,[C("div",st,y(e.$t("exactMatch")),1),r(K(re),{conv:P,mode:"multiple",style:{width:"100%"},options:g.value,value:d.value.and_tags,"onUpdate:value":n[2]||(n[2]=i=>d.value.and_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),s.value.expired||!s.value.img_count?(b(),L(X,{key:0,onClick:K(v),loading:!K(l).isIdle,type:"primary"},{default:h(()=>[A(y(s.value.img_count===0?e.$t("generateIndexHint"):e.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(b(),L(X,{key:1,type:"primary",onClick:m,loading:!K(l).isIdle},{default:h(()=>[A(y(e.$t("search")),1)]),_:1},8,["loading"]))]),C("div",it,[C("div",rt,y(e.$t("anyMatch")),1),r(K(re),{conv:P,mode:"multiple",style:{width:"100%"},options:g.value,value:d.value.or_tags,"onUpdate:value":n[3]||(n[3]=i=>d.value.or_tags=i),disabled:!g.value.length,placeholder:e.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"]),dt,r(X,{onClick:n[4]||(n[4]=i=>f.value=!0)},{default:h(()=>[A(y(e.$t("history")),1)]),_:1})]),C("div",ct,[C("div",ut,y(e.$t("exclude")),1),r(K(re),{conv:P,mode:"multiple",style:{width:"100%"},options:g.value,value:d.value.not_tags,"onUpdate:value":n[5]||(n[5]=i=>d.value.not_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])]),C("div",vt,[C("div",pt,y(e.$t("searchScope")),1),r(Te,{"auto-size":{maxRows:8},value:d.value.folder_paths_str,"onUpdate:value":n[6]||(n[6]=i=>d.value.folder_paths_str=i),placeholder:e.$t("specifiedSearchFolder")},null,8,["value","placeholder"])])]),g.value.filter(i=>i.type!=="custom").length?D("",!0):(b(),T("p",ft,y(e.$t("needGenerateIdx")),1)),C("div",gt,[(b(!0),T(J,null,_e(N.value,([i,ie])=>(b(),T(J,{key:i},[i!=="Media Type"||ie.length>1?(b(),T("ul",mt,[C("h3",{class:"cat-name",onClick:$=>p.value.includes(i)?p.value.splice(p.value.indexOf(i),1):p.value.push(i)},[r(K(Ra),{class:xe(["arrow",{down:p.value.includes(i)}])},null,8,["class"]),A(" "+y(e.$t(i))+" ",1),C("div",{onClick:n[7]||(n[7]=ce(()=>{},["stop","prevent"])),class:"filter-input"},[r(ve,{value:O.value[i],"onUpdate:value":$=>O.value[i]=$,size:"small",allowClear:"",placeholder:e.$t("filterByKeyword")},null,8,["value","onUpdate:value","placeholder"])])],8,_t),r(Be,{ghost:"",activeKey:p.value,"onUpdate:activeKey":n[10]||(n[10]=$=>p.value=$)},{expandIcon:h(()=>[]),default:h(()=>[(b(),L(Ee,{key:i},{default:h(()=>[(b(!0),T(J,null,_e(x(ie,i),($,Me)=>(b(),L(at,{onClick:le=>Y($),onRemove:le=>W($.id),onToggleAnd:le=>M($.id,d.value.and_tags),onToggleOr:le=>M($.id,d.value.or_tags),onToggleNot:le=>M($.id,d.value.not_tags),key:$.id,idx:Me,name:i,tag:$,selected:G.value.has($.id)},null,8,["onClick","onRemove","onToggleAnd","onToggleOr","onToggleNot","idx","name","tag","selected"]))),128)),i==="custom"?(b(),T("li",{key:0,class:"tag",onClick:n[9]||(n[9]=$=>j.value=!0)},[j.value?(b(),L(Ne,{key:0,compact:""},{default:h(()=>[r(ve,{value:R.value,"onUpdate:value":n[8]||(n[8]=$=>R.value=$),style:{width:"128px"},loading:c.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),r(pe,{size:"small",type:"primary",onClickCapture:ce(V,["stop"]),loading:c.value},{default:h(()=>[A(y(R.value?e.$t("submit"):e.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(b(),T(J,{key:1},[r(K(_a)),A(" "+y(e.$t("add")),1)],64))])):D("",!0),U(i)E.set(i,U(i)+512)},{default:h(()=>[A(y(e.$t("loadmore")),1)]),_:2},1032,["onClick"])])):D("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])])):D("",!0)],64))),128))])],64)):(b(),T("div",yt,[r(Re,{size:"large"})]))])}}});const xt=Se(bt,[["__scopeId","data-v-494e8b82"]]);export{xt as default}; diff --git a/vue/dist/assets/batchDownload-97a88752.js b/vue/dist/assets/batchDownload-1a890614.js similarity index 87% rename from vue/dist/assets/batchDownload-97a88752.js rename to vue/dist/assets/batchDownload-1a890614.js index 37f44bac..8afb88a9 100644 --- a/vue/dist/assets/batchDownload-97a88752.js +++ b/vue/dist/assets/batchDownload-1a890614.js @@ -1 +1 @@ -import{d as v,cy as C,bN as I,S as l,T as _,U as f,c,a1 as r,V as h,W as d,a2 as e,a0 as z,ad as F,b$ as B,cz as $,ai as x,Z as S}from"./index-0a648427.js";import{u as R,a as V,k as E,F as T,d as A}from"./FileItem-e54d55be.js";import"./functionalCallableComp-58260c55.js";/* empty css */import"./index-c4240098.js";const N={class:"actions-panel actions"},U={key:0,class:"file-list"},L={class:"hint"},H=v({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(W){const{stackViewEl:w}=R().toRefs(),{itemSize:p,gridItems:k,cellWidth:b}=V(),n=E(),{selectdFiles:i}=C(n),u=I(),y=async t=>{const s=B(t);s&&n.addFiles(s.nodes)},D=async()=>{u.pushAction(async()=>{const t=await $.value.post("/zip",{paths:i.value.map(o=>o.fullpath)},{responseType:"blob"}),s=window.URL.createObjectURL(new Blob([t.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(a),a.click()})},g=t=>{i.value.splice(t,1)};return(t,s)=>{const a=x;return l(),_("div",{class:"container",ref_key:"stackViewEl",ref:w,onDrop:y},[f("div",N,[c(a,{onClick:s[0]||(s[0]=o=>e(n).selectdFiles=[])},{default:r(()=>[h(d(t.$t("clear")),1)]),_:1}),c(a,{onClick:D,type:"primary",loading:!e(u).isIdle},{default:r(()=>[h(d(t.$t("zipDownload")),1)]),_:1},8,["loading"])]),e(i).length?(l(),z(e(A),{key:1,ref:"scroller",class:"file-list",items:e(i).slice(),"item-size":e(p).first,"key-field":"fullpath","item-secondary-size":e(p).second,gridItems:e(k)},{default:r(({item:o,index:m})=>[c(T,{idx:m,file:o,"cell-width":e(b),"enable-close-icon":"",onCloseIconClick:j=>g(m),"full-screen-preview-image-url":e(F)(o),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(l(),_("div",U,[f("p",L,d(t.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const J=S(H,[["__scopeId","data-v-aab31da2"]]);export{J as default}; +import{d as v,cy as C,bN as I,S as l,T as _,U as f,c,a1 as r,V as h,W as d,a2 as e,a0 as z,ad as F,b$ as B,cz as $,ai as x,Z as S}from"./index-93a218ca.js";import{u as R,a as V,k as E,F as T,d as A}from"./FileItem-9a94f7dd.js";import"./functionalCallableComp-685da399.js";/* empty css */import"./index-f60e0de3.js";const N={class:"actions-panel actions"},U={key:0,class:"file-list"},L={class:"hint"},H=v({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(W){const{stackViewEl:w}=R().toRefs(),{itemSize:p,gridItems:k,cellWidth:b}=V(),n=E(),{selectdFiles:i}=C(n),u=I(),y=async t=>{const s=B(t);s&&n.addFiles(s.nodes)},D=async()=>{u.pushAction(async()=>{const t=await $.value.post("/zip",{paths:i.value.map(o=>o.fullpath)},{responseType:"blob"}),s=window.URL.createObjectURL(new Blob([t.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(a),a.click()})},g=t=>{i.value.splice(t,1)};return(t,s)=>{const a=x;return l(),_("div",{class:"container",ref_key:"stackViewEl",ref:w,onDrop:y},[f("div",N,[c(a,{onClick:s[0]||(s[0]=o=>e(n).selectdFiles=[])},{default:r(()=>[h(d(t.$t("clear")),1)]),_:1}),c(a,{onClick:D,type:"primary",loading:!e(u).isIdle},{default:r(()=>[h(d(t.$t("zipDownload")),1)]),_:1},8,["loading"])]),e(i).length?(l(),z(e(A),{key:1,ref:"scroller",class:"file-list",items:e(i).slice(),"item-size":e(p).first,"key-field":"fullpath","item-secondary-size":e(p).second,gridItems:e(k)},{default:r(({item:o,index:m})=>[c(T,{idx:m,file:o,"cell-width":e(b),"enable-close-icon":"",onCloseIconClick:j=>g(m),"full-screen-preview-image-url":e(F)(o),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(l(),_("div",U,[f("p",L,d(t.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const J=S(H,[["__scopeId","data-v-aab31da2"]]);export{J as default}; diff --git a/vue/dist/assets/emptyStartup-6a115c05.js b/vue/dist/assets/emptyStartup-676b6769.js similarity index 99% rename from vue/dist/assets/emptyStartup-6a115c05.js rename to vue/dist/assets/emptyStartup-676b6769.js index 6286d911..d291b7d9 100644 --- a/vue/dist/assets/emptyStartup-6a115c05.js +++ b/vue/dist/assets/emptyStartup-676b6769.js @@ -1,3 +1,3 @@ -import{d as J,E as L,ak as Mr,r as H,m as xe,H as Wr,a as k,c as h,al as le,u as pe,_ as je,am as Kr,an as Tr,P as Z,ao as Jr,h as D,g as Zr,f as Qr,b as Xr,ap as Yr,aq as et,ar as rt,as as tt,j as Er,at as fr,au as st,av as ot,aw as nt,ax as at,A as $e,$ as br,R as ye,z as C,p as I,a7 as Ce,ai as vr,ah as _r,y as ce,ay as it,az as ct,aA as Ee,aB as lt,aC as ut,aD as pt,S as w,a0 as ve,a1 as U,V as $,W as b,aE as dt,aj as gt,M as mt,aF as ht,q as Tt,aG as Et,aH as ft,aI as bt,o as vt,aJ as _t,T as O,U as E,a2 as T,Y as B,a4 as wt,a3 as W,aK as Ke,X as K,a6 as se,O as Oe,L as yt,x as Je,aL as kt,aM as Pt,aN as Gt,aO as Ot,Z as St}from"./index-0a648427.js";import{V as At,_ as Rt}from"./index-4035ad46.js";/* empty css */import{D as Ct}from"./index-c4240098.js";function Ze(r){var e=r.prefixCls,t=r.value,s=r.current,o=r.offset,a=o===void 0?0:o,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),h("p",{style:n,class:le("".concat(e,"-only-unit"),{current:s})},[t])}function Ft(r,e,t){for(var s=r,o=0;(s+10)%10!==e;)s+=t,o+=t;return o}const Ut=J({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=L(function(){return Number(e.value)}),s=L(function(){return Math.abs(e.count)}),o=Mr({prevValue:t.value,prevCount:s.value}),a=function(){o.prevValue=t.value,o.prevCount=s.value},n=H();return xe(t,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Wr(function(){clearTimeout(n.value)}),function(){var i,l={},p=t.value;if(o.prevValue===p||Number.isNaN(p)||Number.isNaN(o.prevValue))i=[Ze(k(k({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var g=p+10,u=[],f=p;f<=g;f+=1)u.push(f);var y=u.findIndex(function(A){return A%10===o.prevValue});i=u.map(function(A,v){var R=A%10;return Ze(k(k({},e),{},{value:R,offset:v-y,current:v===y}))});var S=o.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),p=L(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),g=L(function(){return l.value==="0"||l.value===0}),u=L(function(){return e.dot&&!g.value}),f=L(function(){return u.value?"":l.value}),y=L(function(){var c=f.value===null||f.value===void 0||f.value==="";return(c||g.value&&!e.showZero)&&!u.value}),S=H(e.count),A=H(f.value),v=H(u.value);xe([function(){return e.count},f,u],function(){y.value||(S.value=e.count,A.value=f.value,v.value=u.value)},{immediate:!0});var R=L(function(){var c;return c={},D(c,"".concat(n.value,"-status-dot"),p.value),D(c,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(c,"".concat(n.value,"-status-").concat(e.color),he(e.color)),c}),q=L(function(){return e.color&&!he(e.color)?{background:e.color}:{}}),x=L(function(){var c;return c={},D(c,"".concat(n.value,"-dot"),v.value),D(c,"".concat(n.value,"-count"),!v.value),D(c,"".concat(n.value,"-count-sm"),e.size==="small"),D(c,"".concat(n.value,"-multiple-words"),!v.value&&A.value&&A.value.toString().length>1),D(c,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(c,"".concat(n.value,"-status-").concat(e.color),he(e.color)),c});return function(){var c,m,P,_=e.offset,G=e.title,N=e.color,ee=o.style,Q=Zr(s,e,"text"),j=n.value,V=S.value,M=Qr((c=s.default)===null||c===void 0?void 0:c.call(s));M=M.length?M:null;var re=!!(!y.value||s.count),X=function(){if(!_)return k({},ee);var be={marginTop:qt(_[1])?"".concat(_[1],"px"):_[1]};return i.value==="rtl"?be.left="".concat(parseInt(_[0],10),"px"):be.right="".concat(-parseInt(_[0],10),"px"),k(k({},be),ee)}(),d=G??(typeof V=="string"||typeof V=="number"?V:void 0),F=re||!Q?null:h("span",{class:"".concat(j,"-status-text")},[Q]),te=Xr(V)==="object"||V===void 0&&s.count?Tr(V??((m=s.count)===null||m===void 0?void 0:m.call(s)),{style:X},!1):null,We=le(j,(P={},D(P,"".concat(j,"-status"),p.value),D(P,"".concat(j,"-not-a-wrapper"),!M),D(P,"".concat(j,"-rtl"),i.value==="rtl"),P),o.class);if(!M&&p.value){var Nr=X.color;return h("span",k(k({},o),{},{class:We,style:X}),[h("span",{class:R.value,style:q.value},null),h("span",{style:{color:Nr},class:"".concat(j,"-status-text")},[Q])])}var Vr=Yr(M?"".concat(j,"-zoom"):"",{appear:!1}),fe=k(k({},X),e.numberStyle);return N&&!he(N)&&(fe=fe||{},fe.background=N),h("span",k(k({},o),{},{class:We}),[M,h(et,Vr,{default:function(){return[rt(h(It,{prefixCls:e.scrollNumberPrefixCls,show:re,class:x.value,count:A.value,title:d,style:fe,key:"scrollNumber"},{default:function(){return[te]}}),[[tt,re]])]}}),F])}}});_e.install=function(r){return r.component(_e.name,_e),r.component(Fe.name,Fe),r};var Ht=["prefixCls","id"],wr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Z.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const z=J({compatConfig:{MODE:3},name:"ARadio",props:wr(),setup:function(e,t){var s=t.emit,o=t.expose,a=t.slots,n=Er(),i=H(),l=fr("radioGroupContext",void 0),p=pe("radio",e),g=p.prefixCls,u=p.direction,f=function(){i.value.focus()},y=function(){i.value.blur()};o({focus:f,blur:y});var S=function(R){var q=R.target.checked;s("update:checked",q),s("update:value",q),s("change",R),n.onFieldChange()},A=function(R){s("change",R),l&&l.onRadioChange&&l.onRadioChange(R)};return function(){var v,R=l;e.prefixCls;var q=e.id,x=q===void 0?n.id.value:q,c=je(e,Ht),m=k({prefixCls:g.value,id:x},st(c,["onUpdate:checked","onUpdate:value"]));R?(m.name=R.props.name,m.onChange=A,m.checked=e.value===R.stateValue.value,m.disabled=e.disabled||R.props.disabled):m.onChange=S;var P=le((v={},D(v,"".concat(g.value,"-wrapper"),!0),D(v,"".concat(g.value,"-wrapper-checked"),m.checked),D(v,"".concat(g.value,"-wrapper-disabled"),m.disabled),D(v,"".concat(g.value,"-wrapper-rtl"),u.value==="rtl"),v));return h("label",{class:P},[h(At,k(k({},m),{},{type:"radio",ref:i}),null),a.default&&h("span",null,[a.default()])])}}});var zt=nt("large","default","small"),Nt=function(){return{prefixCls:String,value:Z.any,size:Z.oneOf(zt),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const qe=J({compatConfig:{MODE:3},name:"ARadioGroup",props:Nt(),setup:function(e,t){var s=t.slots,o=t.emit,a=Er(),n=pe("radio",e),i=n.prefixCls,l=n.direction,p=n.size,g=H(e.value),u=H(!1);xe(function(){return e.value},function(y){g.value=y,u.value=!1});var f=function(S){var A=g.value,v=S.target.value;"value"in e||(g.value=v),!u.value&&v!==A&&(u.value=!0,o("update:value",v),o("change",S),a.onFieldChange()),at(function(){u.value=!1})};return ot("radioGroupContext",{onRadioChange:f,stateValue:g,props:e}),function(){var y,S=e.options,A=e.optionType,v=e.buttonStyle,R=e.id,q=R===void 0?a.id.value:R,x="".concat(i.value,"-group"),c=le(x,"".concat(x,"-").concat(v),(y={},D(y,"".concat(x,"-").concat(p.value),p.value),D(y,"".concat(x,"-rtl"),l.value==="rtl"),y)),m=null;if(S&&S.length>0){var P=A==="button"?"".concat(i.value,"-button"):i.value;m=S.map(function(G){if(typeof G=="string"||typeof G=="number")return h(z,{key:G,prefixCls:P,disabled:e.disabled,value:G,checked:g.value===G},{default:function(){return[G]}});var N=G.value,ee=G.disabled,Q=G.label;return h(z,{key:"radio-group-value-options-".concat(N),prefixCls:P,disabled:ee||e.disabled,value:N,checked:g.value===N},{default:function(){return[Q]}})})}else{var _;m=(_=s.default)===null||_===void 0?void 0:_.call(s)}return h("div",{class:c,id:q},[m])}}}),Te=J({compatConfig:{MODE:3},name:"ARadioButton",props:wr(),setup:function(e,t){var s=t.slots,o=pe("radio-button",e),a=o.prefixCls,n=fr("radioGroupContext",void 0);return function(){var i,l=k(k({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),h(z,l,{default:function(){return[(i=s.default)===null||i===void 0?void 0:i.call(s)]}})}}});z.Group=qe;z.Button=Te;z.install=function(r){return r.component(z.name,z),r.component(z.Group.name,z.Group),r.component(z.Button.name,z.Button),r};var Vt={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 Mt=Vt;function Qe(r){for(var e=1;e{const t=br(),s=H(e??""),o=H(r),a=async()=>{const n=await pt({directory:!0,defaultPath:e});if(typeof n=="string")s.value=n;else return};s.value=await new Promise(n=>{ye.confirm({title:C("inputTargetFolderPath"),width:"800px",content:()=>{var i;return I("div",[(i=t.conf)!=null&&i.enable_access_control?I("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",Ce?I(vr,{onClick:a,style:{margin:"4px 0"}},C("selectFolder")):"",I(_r,{value:s.value,"onUpdate:value":l=>s.value=l}),I("div",[I("span",C("type")+": "),I(qe,{value:o.value,"onUpdate:value":l=>o.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[I(Te,{value:"walk"},"Walk"),I(Te,{value:"scanned"},"Normal"),I(Te,{value:"scanned-fixed"},"Fixed")])]),I("p","Walk: "+C("walkModeDoc")),I("p","Normal: "+C("normalModelDoc")),I("p","Fixed: "+C("fixedModeDoc"))])},async onOk(){if(!s.value)throw ce.error(C("pathIsEmpty")),new Error("pathIsEmpty");(await it([s.value]))[s.value]?n(s.value):ce.error(C("pathDoesNotExist"))}})}),ye.confirm({content:C("confirmToAddToExtraPath"),async onOk(){await ct({types:[o.value],path:s.value}),ce.success(C("addCompleted")),Ee.emit("searchIndexExpired"),Ee.emit("updateGlobalSetting")}})},rr=(r,e)=>{ye.confirm({content:C("confirmDelete"),closable:!0,async onOk(){await lt({types:[e],path:r}),ce.success(C("removeCompleted")),Ee.emit("searchIndexExpired"),Ee.emit("updateGlobalSetting")}})},tr=r=>{const e=H("");ye.confirm({title:C("inputAlias"),content:()=>I("div",[I("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),I(_r,{value:e.value,"onUpdate:value":t=>e.value=t})]),async onOk(){await ut({alias:e.value,path:r}),ce.success(C("addAliasCompleted")),Ee.emit("updateGlobalSetting")}})},sr=J({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const t=s=>{switch(s.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(s,o)=>{const a=gt,n=mt,i=Ct;return w(),ve(i,{trigger:["contextmenu"]},{overlay:U(()=>[h(n,{onClick:t},{default:U(()=>[h(a,{key:"openOnTheRight"},{default:U(()=>[$(b(s.$t("openOnTheRight")),1)]),_:1}),h(a,{key:"openInNewTab"},{default:U(()=>[$(b(s.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:U(()=>[dt(s.$slots,"default")]),_:3})}}});function ke(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Pe={exports:{}},ts=yr;function yr(r,e,t,s){if(typeof t!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce(function(o,a){return yr.bind(null,r,a,o,s)},t)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(o,a){return a.hook.bind(null,o,s)},t)():t(s)})}var ss=os;function os(r,e,t,s){var o=s;r.registry[t]||(r.registry[t]=[]),e==="before"&&(s=function(a,n){return Promise.resolve().then(o.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(s=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,o(i,n)}).then(function(){return i})}),e==="error"&&(s=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return o(i,n)})}),r.registry[t].push({hook:s,orig:o})}var ns=as;function as(r,e,t){if(r.registry[e]){var s=r.registry[e].map(function(o){return o.orig}).indexOf(t);s!==-1&&r.registry[e].splice(s,1)}}var kr=ts,is=ss,cs=ns,or=Function.bind,nr=or.bind(or);function Pr(r,e,t){var s=nr(cs,null).apply(null,t?[e,t]:[e]);r.api={remove:s},r.remove=s,["before","error","after","wrap"].forEach(function(o){var a=t?[e,o,t]:[e,o];r[o]=r.api[o]=nr(is,null).apply(null,a)})}function ls(){var r="h",e={registry:{}},t=kr.bind(null,e,r);return Pr(t,e,r),t}function Gr(){var r={registry:{}},e=kr.bind(null,r);return Pr(e,r),e}var ar=!1;function de(){return ar||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),ar=!0),Gr()}de.Singular=ls.bind();de.Collection=Gr.bind();Pe.exports=de;Pe.exports.Hook=de;Pe.exports.Singular=de.Singular;var us=Pe.exports.Collection=de.Collection,ps="9.0.5",ds=`octokit-endpoint.js/${ps} ${ke()}`,gs={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ds},mediaType:{format:""}};function ms(r){return r?Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=r[t],e),{}):{}}function hs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Or(r,e){const t=Object.assign({},r);return Object.keys(e).forEach(s=>{hs(e[s])?s in r?t[s]=Or(r[s],e[s]):Object.assign(t,{[s]:e[s]}):Object.assign(t,{[s]:e[s]})}),t}function ir(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function Ue(r,e,t){var o;if(typeof e=="string"){let[a,n]=e.split(" ");t=Object.assign(n?{method:a,url:n}:{url:a},t)}else t=Object.assign({},e);t.headers=ms(t.headers),ir(t),ir(t.headers);const s=Or(r||{},t);return t.url==="/graphql"&&(r&&((o=r.mediaType.previews)!=null&&o.length)&&(s.mediaType.previews=r.mediaType.previews.filter(a=>!s.mediaType.previews.includes(a)).concat(s.mediaType.previews)),s.mediaType.previews=(s.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),s}function Ts(r,e){const t=/\?/.test(r)?"&":"?",s=Object.keys(e);return s.length===0?r:r+t+s.map(o=>o==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${o}=${encodeURIComponent(e[o])}`).join("&")}var Es=/\{[^}]+\}/g;function fs(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function bs(r){const e=r.match(Es);return e?e.map(fs).reduce((t,s)=>t.concat(s),[]):[]}function cr(r,e){const t={__proto__:null};for(const s of Object.keys(r))e.indexOf(s)===-1&&(t[s]=r[s]);return t}function Sr(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ie(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function ge(r,e,t){return e=r==="+"||r==="#"?Sr(e):ie(e),t?ie(t)+"="+e:e}function oe(r){return r!=null}function Ae(r){return r===";"||r==="&"||r==="?"}function vs(r,e,t,s){var o=r[t],a=[];if(oe(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),s&&s!=="*"&&(o=o.substring(0,parseInt(s,10))),a.push(ge(e,o,Ae(e)?t:""));else if(s==="*")Array.isArray(o)?o.filter(oe).forEach(function(n){a.push(ge(e,n,Ae(e)?t:""))}):Object.keys(o).forEach(function(n){oe(o[n])&&a.push(ge(e,o[n],n))});else{const n=[];Array.isArray(o)?o.filter(oe).forEach(function(i){n.push(ge(e,i))}):Object.keys(o).forEach(function(i){oe(o[i])&&(n.push(ie(i)),n.push(ge(e,o[i].toString())))}),Ae(e)?a.push(ie(t)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?oe(o)&&a.push(ie(t)):o===""&&(e==="&"||e==="?")?a.push(ie(t)+"="):o===""&&a.push("");return a}function _s(r){return{expand:ws.bind(null,r)}}function ws(r,e){var t=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(s,o,a){if(o){let i="";const l=[];if(t.indexOf(o.charAt(0))!==-1&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(p){var g=/([^:\*]*)(?::(\d+)|(\*))?/.exec(p);l.push(vs(e,i,g[1],g[2]||g[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return Sr(a)}),r==="/"?r:r.replace(/\/$/,"")}function Ar(r){var g;let e=r.method.toUpperCase(),t=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},r.headers),o,a=cr(r,["method","baseUrl","url","headers","request","mediaType"]);const n=bs(t);t=_s(t).expand(a),/^http/.test(t)||(t=r.baseUrl+t);const i=Object.keys(r).filter(u=>n.includes(u)).concat("baseUrl"),l=cr(a,i);if(!/application\/octet-stream/i.test(s.accept)&&(r.mediaType.format&&(s.accept=s.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&(g=r.mediaType.previews)!=null&&g.length)){const u=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=u.concat(r.mediaType.previews).map(f=>{const y=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${y}`}).join(",")}return["GET","HEAD"].includes(e)?t=Ts(t,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),!s["content-type"]&&typeof o<"u"&&(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof o>"u"&&(o=""),Object.assign({method:e,url:t,headers:s},typeof o<"u"?{body:o}:null,r.request?{request:r.request}:null)}function ys(r,e,t){return Ar(Ue(r,e,t))}function Rr(r,e){const t=Ue(r,e),s=ys.bind(null,t);return Object.assign(s,{DEFAULTS:t,defaults:Rr.bind(null,t),merge:Ue.bind(null,t),parse:Ar})}var ks=Rr(null,gs);class lr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Ne={exports:{}},Ps=Cr;function Cr(r,e){if(r&&e)return Cr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(s){t[s]=r[s]}),t;function t(){for(var s=new Array(arguments.length),o=0;oconsole.warn(r)),Ss=Dr(r=>console.warn(r)),me=class extends Error{constructor(r,e,t){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let s;"headers"in t&&typeof t.headers<"u"&&(s=t.headers),"response"in t&&(this.response=t.response,s=t.response.headers);const o=Object.assign({},t.request);t.request.headers.authorization&&(o.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o,Object.defineProperty(this,"code",{get(){return Os(new lr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return Ss(new lr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}})}},As="8.4.0";function Rs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Cs(r){return r.arrayBuffer()}function ur(r){var i,l,p,g;const e=r.request&&r.request.log?r.request.log:console,t=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(Rs(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let s={},o,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(p=r.request)==null?void 0:p.redirect,headers:r.headers,signal:(g=r.request)==null?void 0:g.signal,...r.body&&{duplex:"half"}}).then(async u=>{a=u.url,o=u.status;for(const f of u.headers)s[f[0]]=f[1];if("deprecation"in s){const f=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/),y=f&&f.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${y?`. See ${y}`:""}`)}if(!(o===204||o===205)){if(r.method==="HEAD"){if(o<400)return;throw new me(u.statusText,o,{response:{url:a,status:o,headers:s,data:void 0},request:r})}if(o===304)throw new me("Not modified",o,{response:{url:a,status:o,headers:s,data:await Re(u)},request:r});if(o>=400){const f=await Re(u);throw new me(Fs(f),o,{response:{url:a,status:o,headers:s,data:f},request:r})}return t?await Re(u):u.body}}).then(u=>({status:o,url:a,headers:s,data:u})).catch(u=>{if(u instanceof me)throw u;if(u.name==="AbortError")throw u;let f=u.message;throw u.name==="TypeError"&&"cause"in u&&(u.cause instanceof Error?f=u.cause.message:typeof u.cause=="string"&&(f=u.cause)),new me(f,500,{request:r})})}async function Re(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():Cs(r)}function Fs(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function De(r,e){const t=r.defaults(e);return Object.assign(function(o,a){const n=t.merge(o,a);if(!n.request||!n.request.hook)return ur(t.parse(n));const i=(l,p)=>ur(t.parse(t.merge(l,p)));return Object.assign(i,{endpoint:t,defaults:De.bind(null,t)}),n.request.hook(i,n)},{endpoint:t,defaults:De.bind(null,t)})}var Le=De(ks,{headers:{"user-agent":`octokit-request.js/${As} ${ke()}`}}),Us="7.1.0";function Ds(r){return`Request failed due to following response errors: +import{d as J,E as L,ak as Mr,r as H,m as xe,H as Wr,a as k,c as h,al as le,u as pe,_ as je,am as Kr,an as Tr,P as Z,ao as Jr,h as D,g as Zr,f as Qr,b as Xr,ap as Yr,aq as et,ar as rt,as as tt,j as Er,at as fr,au as st,av as ot,aw as nt,ax as at,A as $e,$ as br,R as ye,z as C,p as I,a7 as Ce,ai as vr,ah as _r,y as ce,ay as it,az as ct,aA as Ee,aB as lt,aC as ut,aD as pt,S as w,a0 as ve,a1 as U,V as $,W as b,aE as dt,aj as gt,M as mt,aF as ht,q as Tt,aG as Et,aH as ft,aI as bt,o as vt,aJ as _t,T as O,U as E,a2 as T,Y as B,a4 as wt,a3 as W,aK as Ke,X as K,a6 as se,O as Oe,L as yt,x as Je,aL as kt,aM as Pt,aN as Gt,aO as Ot,Z as St}from"./index-93a218ca.js";import{V as At,_ as Rt}from"./index-4596f42d.js";/* empty css */import{D as Ct}from"./index-f60e0de3.js";function Ze(r){var e=r.prefixCls,t=r.value,s=r.current,o=r.offset,a=o===void 0?0:o,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),h("p",{style:n,class:le("".concat(e,"-only-unit"),{current:s})},[t])}function Ft(r,e,t){for(var s=r,o=0;(s+10)%10!==e;)s+=t,o+=t;return o}const Ut=J({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=L(function(){return Number(e.value)}),s=L(function(){return Math.abs(e.count)}),o=Mr({prevValue:t.value,prevCount:s.value}),a=function(){o.prevValue=t.value,o.prevCount=s.value},n=H();return xe(t,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Wr(function(){clearTimeout(n.value)}),function(){var i,l={},p=t.value;if(o.prevValue===p||Number.isNaN(p)||Number.isNaN(o.prevValue))i=[Ze(k(k({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var g=p+10,u=[],f=p;f<=g;f+=1)u.push(f);var y=u.findIndex(function(A){return A%10===o.prevValue});i=u.map(function(A,v){var R=A%10;return Ze(k(k({},e),{},{value:R,offset:v-y,current:v===y}))});var S=o.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),p=L(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),g=L(function(){return l.value==="0"||l.value===0}),u=L(function(){return e.dot&&!g.value}),f=L(function(){return u.value?"":l.value}),y=L(function(){var c=f.value===null||f.value===void 0||f.value==="";return(c||g.value&&!e.showZero)&&!u.value}),S=H(e.count),A=H(f.value),v=H(u.value);xe([function(){return e.count},f,u],function(){y.value||(S.value=e.count,A.value=f.value,v.value=u.value)},{immediate:!0});var R=L(function(){var c;return c={},D(c,"".concat(n.value,"-status-dot"),p.value),D(c,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(c,"".concat(n.value,"-status-").concat(e.color),he(e.color)),c}),q=L(function(){return e.color&&!he(e.color)?{background:e.color}:{}}),x=L(function(){var c;return c={},D(c,"".concat(n.value,"-dot"),v.value),D(c,"".concat(n.value,"-count"),!v.value),D(c,"".concat(n.value,"-count-sm"),e.size==="small"),D(c,"".concat(n.value,"-multiple-words"),!v.value&&A.value&&A.value.toString().length>1),D(c,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(c,"".concat(n.value,"-status-").concat(e.color),he(e.color)),c});return function(){var c,m,P,_=e.offset,G=e.title,N=e.color,ee=o.style,Q=Zr(s,e,"text"),j=n.value,V=S.value,M=Qr((c=s.default)===null||c===void 0?void 0:c.call(s));M=M.length?M:null;var re=!!(!y.value||s.count),X=function(){if(!_)return k({},ee);var be={marginTop:qt(_[1])?"".concat(_[1],"px"):_[1]};return i.value==="rtl"?be.left="".concat(parseInt(_[0],10),"px"):be.right="".concat(-parseInt(_[0],10),"px"),k(k({},be),ee)}(),d=G??(typeof V=="string"||typeof V=="number"?V:void 0),F=re||!Q?null:h("span",{class:"".concat(j,"-status-text")},[Q]),te=Xr(V)==="object"||V===void 0&&s.count?Tr(V??((m=s.count)===null||m===void 0?void 0:m.call(s)),{style:X},!1):null,We=le(j,(P={},D(P,"".concat(j,"-status"),p.value),D(P,"".concat(j,"-not-a-wrapper"),!M),D(P,"".concat(j,"-rtl"),i.value==="rtl"),P),o.class);if(!M&&p.value){var Nr=X.color;return h("span",k(k({},o),{},{class:We,style:X}),[h("span",{class:R.value,style:q.value},null),h("span",{style:{color:Nr},class:"".concat(j,"-status-text")},[Q])])}var Vr=Yr(M?"".concat(j,"-zoom"):"",{appear:!1}),fe=k(k({},X),e.numberStyle);return N&&!he(N)&&(fe=fe||{},fe.background=N),h("span",k(k({},o),{},{class:We}),[M,h(et,Vr,{default:function(){return[rt(h(It,{prefixCls:e.scrollNumberPrefixCls,show:re,class:x.value,count:A.value,title:d,style:fe,key:"scrollNumber"},{default:function(){return[te]}}),[[tt,re]])]}}),F])}}});_e.install=function(r){return r.component(_e.name,_e),r.component(Fe.name,Fe),r};var Ht=["prefixCls","id"],wr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Z.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const z=J({compatConfig:{MODE:3},name:"ARadio",props:wr(),setup:function(e,t){var s=t.emit,o=t.expose,a=t.slots,n=Er(),i=H(),l=fr("radioGroupContext",void 0),p=pe("radio",e),g=p.prefixCls,u=p.direction,f=function(){i.value.focus()},y=function(){i.value.blur()};o({focus:f,blur:y});var S=function(R){var q=R.target.checked;s("update:checked",q),s("update:value",q),s("change",R),n.onFieldChange()},A=function(R){s("change",R),l&&l.onRadioChange&&l.onRadioChange(R)};return function(){var v,R=l;e.prefixCls;var q=e.id,x=q===void 0?n.id.value:q,c=je(e,Ht),m=k({prefixCls:g.value,id:x},st(c,["onUpdate:checked","onUpdate:value"]));R?(m.name=R.props.name,m.onChange=A,m.checked=e.value===R.stateValue.value,m.disabled=e.disabled||R.props.disabled):m.onChange=S;var P=le((v={},D(v,"".concat(g.value,"-wrapper"),!0),D(v,"".concat(g.value,"-wrapper-checked"),m.checked),D(v,"".concat(g.value,"-wrapper-disabled"),m.disabled),D(v,"".concat(g.value,"-wrapper-rtl"),u.value==="rtl"),v));return h("label",{class:P},[h(At,k(k({},m),{},{type:"radio",ref:i}),null),a.default&&h("span",null,[a.default()])])}}});var zt=nt("large","default","small"),Nt=function(){return{prefixCls:String,value:Z.any,size:Z.oneOf(zt),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const qe=J({compatConfig:{MODE:3},name:"ARadioGroup",props:Nt(),setup:function(e,t){var s=t.slots,o=t.emit,a=Er(),n=pe("radio",e),i=n.prefixCls,l=n.direction,p=n.size,g=H(e.value),u=H(!1);xe(function(){return e.value},function(y){g.value=y,u.value=!1});var f=function(S){var A=g.value,v=S.target.value;"value"in e||(g.value=v),!u.value&&v!==A&&(u.value=!0,o("update:value",v),o("change",S),a.onFieldChange()),at(function(){u.value=!1})};return ot("radioGroupContext",{onRadioChange:f,stateValue:g,props:e}),function(){var y,S=e.options,A=e.optionType,v=e.buttonStyle,R=e.id,q=R===void 0?a.id.value:R,x="".concat(i.value,"-group"),c=le(x,"".concat(x,"-").concat(v),(y={},D(y,"".concat(x,"-").concat(p.value),p.value),D(y,"".concat(x,"-rtl"),l.value==="rtl"),y)),m=null;if(S&&S.length>0){var P=A==="button"?"".concat(i.value,"-button"):i.value;m=S.map(function(G){if(typeof G=="string"||typeof G=="number")return h(z,{key:G,prefixCls:P,disabled:e.disabled,value:G,checked:g.value===G},{default:function(){return[G]}});var N=G.value,ee=G.disabled,Q=G.label;return h(z,{key:"radio-group-value-options-".concat(N),prefixCls:P,disabled:ee||e.disabled,value:N,checked:g.value===N},{default:function(){return[Q]}})})}else{var _;m=(_=s.default)===null||_===void 0?void 0:_.call(s)}return h("div",{class:c,id:q},[m])}}}),Te=J({compatConfig:{MODE:3},name:"ARadioButton",props:wr(),setup:function(e,t){var s=t.slots,o=pe("radio-button",e),a=o.prefixCls,n=fr("radioGroupContext",void 0);return function(){var i,l=k(k({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),h(z,l,{default:function(){return[(i=s.default)===null||i===void 0?void 0:i.call(s)]}})}}});z.Group=qe;z.Button=Te;z.install=function(r){return r.component(z.name,z),r.component(z.Group.name,z.Group),r.component(z.Button.name,z.Button),r};var Vt={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 Mt=Vt;function Qe(r){for(var e=1;e{const t=br(),s=H(e??""),o=H(r),a=async()=>{const n=await pt({directory:!0,defaultPath:e});if(typeof n=="string")s.value=n;else return};s.value=await new Promise(n=>{ye.confirm({title:C("inputTargetFolderPath"),width:"800px",content:()=>{var i;return I("div",[(i=t.conf)!=null&&i.enable_access_control?I("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",Ce?I(vr,{onClick:a,style:{margin:"4px 0"}},C("selectFolder")):"",I(_r,{value:s.value,"onUpdate:value":l=>s.value=l}),I("div",[I("span",C("type")+": "),I(qe,{value:o.value,"onUpdate:value":l=>o.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[I(Te,{value:"walk"},"Walk"),I(Te,{value:"scanned"},"Normal"),I(Te,{value:"scanned-fixed"},"Fixed")])]),I("p","Walk: "+C("walkModeDoc")),I("p","Normal: "+C("normalModelDoc")),I("p","Fixed: "+C("fixedModeDoc"))])},async onOk(){if(!s.value)throw ce.error(C("pathIsEmpty")),new Error("pathIsEmpty");(await it([s.value]))[s.value]?n(s.value):ce.error(C("pathDoesNotExist"))}})}),ye.confirm({content:C("confirmToAddToExtraPath"),async onOk(){await ct({types:[o.value],path:s.value}),ce.success(C("addCompleted")),Ee.emit("searchIndexExpired"),Ee.emit("updateGlobalSetting")}})},rr=(r,e)=>{ye.confirm({content:C("confirmDelete"),closable:!0,async onOk(){await lt({types:[e],path:r}),ce.success(C("removeCompleted")),Ee.emit("searchIndexExpired"),Ee.emit("updateGlobalSetting")}})},tr=r=>{const e=H("");ye.confirm({title:C("inputAlias"),content:()=>I("div",[I("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),I(_r,{value:e.value,"onUpdate:value":t=>e.value=t})]),async onOk(){await ut({alias:e.value,path:r}),ce.success(C("addAliasCompleted")),Ee.emit("updateGlobalSetting")}})},sr=J({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const t=s=>{switch(s.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(s,o)=>{const a=gt,n=mt,i=Ct;return w(),ve(i,{trigger:["contextmenu"]},{overlay:U(()=>[h(n,{onClick:t},{default:U(()=>[h(a,{key:"openOnTheRight"},{default:U(()=>[$(b(s.$t("openOnTheRight")),1)]),_:1}),h(a,{key:"openInNewTab"},{default:U(()=>[$(b(s.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:U(()=>[dt(s.$slots,"default")]),_:3})}}});function ke(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Pe={exports:{}},ts=yr;function yr(r,e,t,s){if(typeof t!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce(function(o,a){return yr.bind(null,r,a,o,s)},t)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(o,a){return a.hook.bind(null,o,s)},t)():t(s)})}var ss=os;function os(r,e,t,s){var o=s;r.registry[t]||(r.registry[t]=[]),e==="before"&&(s=function(a,n){return Promise.resolve().then(o.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(s=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,o(i,n)}).then(function(){return i})}),e==="error"&&(s=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return o(i,n)})}),r.registry[t].push({hook:s,orig:o})}var ns=as;function as(r,e,t){if(r.registry[e]){var s=r.registry[e].map(function(o){return o.orig}).indexOf(t);s!==-1&&r.registry[e].splice(s,1)}}var kr=ts,is=ss,cs=ns,or=Function.bind,nr=or.bind(or);function Pr(r,e,t){var s=nr(cs,null).apply(null,t?[e,t]:[e]);r.api={remove:s},r.remove=s,["before","error","after","wrap"].forEach(function(o){var a=t?[e,o,t]:[e,o];r[o]=r.api[o]=nr(is,null).apply(null,a)})}function ls(){var r="h",e={registry:{}},t=kr.bind(null,e,r);return Pr(t,e,r),t}function Gr(){var r={registry:{}},e=kr.bind(null,r);return Pr(e,r),e}var ar=!1;function de(){return ar||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),ar=!0),Gr()}de.Singular=ls.bind();de.Collection=Gr.bind();Pe.exports=de;Pe.exports.Hook=de;Pe.exports.Singular=de.Singular;var us=Pe.exports.Collection=de.Collection,ps="9.0.5",ds=`octokit-endpoint.js/${ps} ${ke()}`,gs={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ds},mediaType:{format:""}};function ms(r){return r?Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=r[t],e),{}):{}}function hs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Or(r,e){const t=Object.assign({},r);return Object.keys(e).forEach(s=>{hs(e[s])?s in r?t[s]=Or(r[s],e[s]):Object.assign(t,{[s]:e[s]}):Object.assign(t,{[s]:e[s]})}),t}function ir(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function Ue(r,e,t){var o;if(typeof e=="string"){let[a,n]=e.split(" ");t=Object.assign(n?{method:a,url:n}:{url:a},t)}else t=Object.assign({},e);t.headers=ms(t.headers),ir(t),ir(t.headers);const s=Or(r||{},t);return t.url==="/graphql"&&(r&&((o=r.mediaType.previews)!=null&&o.length)&&(s.mediaType.previews=r.mediaType.previews.filter(a=>!s.mediaType.previews.includes(a)).concat(s.mediaType.previews)),s.mediaType.previews=(s.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),s}function Ts(r,e){const t=/\?/.test(r)?"&":"?",s=Object.keys(e);return s.length===0?r:r+t+s.map(o=>o==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${o}=${encodeURIComponent(e[o])}`).join("&")}var Es=/\{[^}]+\}/g;function fs(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function bs(r){const e=r.match(Es);return e?e.map(fs).reduce((t,s)=>t.concat(s),[]):[]}function cr(r,e){const t={__proto__:null};for(const s of Object.keys(r))e.indexOf(s)===-1&&(t[s]=r[s]);return t}function Sr(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ie(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function ge(r,e,t){return e=r==="+"||r==="#"?Sr(e):ie(e),t?ie(t)+"="+e:e}function oe(r){return r!=null}function Ae(r){return r===";"||r==="&"||r==="?"}function vs(r,e,t,s){var o=r[t],a=[];if(oe(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),s&&s!=="*"&&(o=o.substring(0,parseInt(s,10))),a.push(ge(e,o,Ae(e)?t:""));else if(s==="*")Array.isArray(o)?o.filter(oe).forEach(function(n){a.push(ge(e,n,Ae(e)?t:""))}):Object.keys(o).forEach(function(n){oe(o[n])&&a.push(ge(e,o[n],n))});else{const n=[];Array.isArray(o)?o.filter(oe).forEach(function(i){n.push(ge(e,i))}):Object.keys(o).forEach(function(i){oe(o[i])&&(n.push(ie(i)),n.push(ge(e,o[i].toString())))}),Ae(e)?a.push(ie(t)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?oe(o)&&a.push(ie(t)):o===""&&(e==="&"||e==="?")?a.push(ie(t)+"="):o===""&&a.push("");return a}function _s(r){return{expand:ws.bind(null,r)}}function ws(r,e){var t=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(s,o,a){if(o){let i="";const l=[];if(t.indexOf(o.charAt(0))!==-1&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(p){var g=/([^:\*]*)(?::(\d+)|(\*))?/.exec(p);l.push(vs(e,i,g[1],g[2]||g[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return Sr(a)}),r==="/"?r:r.replace(/\/$/,"")}function Ar(r){var g;let e=r.method.toUpperCase(),t=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},r.headers),o,a=cr(r,["method","baseUrl","url","headers","request","mediaType"]);const n=bs(t);t=_s(t).expand(a),/^http/.test(t)||(t=r.baseUrl+t);const i=Object.keys(r).filter(u=>n.includes(u)).concat("baseUrl"),l=cr(a,i);if(!/application\/octet-stream/i.test(s.accept)&&(r.mediaType.format&&(s.accept=s.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&(g=r.mediaType.previews)!=null&&g.length)){const u=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=u.concat(r.mediaType.previews).map(f=>{const y=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${y}`}).join(",")}return["GET","HEAD"].includes(e)?t=Ts(t,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),!s["content-type"]&&typeof o<"u"&&(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof o>"u"&&(o=""),Object.assign({method:e,url:t,headers:s},typeof o<"u"?{body:o}:null,r.request?{request:r.request}:null)}function ys(r,e,t){return Ar(Ue(r,e,t))}function Rr(r,e){const t=Ue(r,e),s=ys.bind(null,t);return Object.assign(s,{DEFAULTS:t,defaults:Rr.bind(null,t),merge:Ue.bind(null,t),parse:Ar})}var ks=Rr(null,gs);class lr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Ne={exports:{}},Ps=Cr;function Cr(r,e){if(r&&e)return Cr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(s){t[s]=r[s]}),t;function t(){for(var s=new Array(arguments.length),o=0;oconsole.warn(r)),Ss=Dr(r=>console.warn(r)),me=class extends Error{constructor(r,e,t){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let s;"headers"in t&&typeof t.headers<"u"&&(s=t.headers),"response"in t&&(this.response=t.response,s=t.response.headers);const o=Object.assign({},t.request);t.request.headers.authorization&&(o.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o,Object.defineProperty(this,"code",{get(){return Os(new lr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return Ss(new lr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}})}},As="8.4.0";function Rs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Cs(r){return r.arrayBuffer()}function ur(r){var i,l,p,g;const e=r.request&&r.request.log?r.request.log:console,t=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(Rs(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let s={},o,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(p=r.request)==null?void 0:p.redirect,headers:r.headers,signal:(g=r.request)==null?void 0:g.signal,...r.body&&{duplex:"half"}}).then(async u=>{a=u.url,o=u.status;for(const f of u.headers)s[f[0]]=f[1];if("deprecation"in s){const f=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/),y=f&&f.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${y?`. See ${y}`:""}`)}if(!(o===204||o===205)){if(r.method==="HEAD"){if(o<400)return;throw new me(u.statusText,o,{response:{url:a,status:o,headers:s,data:void 0},request:r})}if(o===304)throw new me("Not modified",o,{response:{url:a,status:o,headers:s,data:await Re(u)},request:r});if(o>=400){const f=await Re(u);throw new me(Fs(f),o,{response:{url:a,status:o,headers:s,data:f},request:r})}return t?await Re(u):u.body}}).then(u=>({status:o,url:a,headers:s,data:u})).catch(u=>{if(u instanceof me)throw u;if(u.name==="AbortError")throw u;let f=u.message;throw u.name==="TypeError"&&"cause"in u&&(u.cause instanceof Error?f=u.cause.message:typeof u.cause=="string"&&(f=u.cause)),new me(f,500,{request:r})})}async function Re(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():Cs(r)}function Fs(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function De(r,e){const t=r.defaults(e);return Object.assign(function(o,a){const n=t.merge(o,a);if(!n.request||!n.request.hook)return ur(t.parse(n));const i=(l,p)=>ur(t.parse(t.merge(l,p)));return Object.assign(i,{endpoint:t,defaults:De.bind(null,t)}),n.request.hook(i,n)},{endpoint:t,defaults:De.bind(null,t)})}var Le=De(ks,{headers:{"user-agent":`octokit-request.js/${As} ${ke()}`}}),Us="7.1.0";function Ds(r){return`Request failed due to following response errors: `+r.errors.map(e=>` - ${e.message}`).join(` `)}var Ls=class extends Error{constructor(r,e,t){super(Ds(t)),this.request=r,this.headers=e,this.response=t,this.name="GraphqlResponseError",this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Is=["method","baseUrl","url","headers","request","query","mediaType"],xs=["query","method","url"],pr=/\/api\/v3\/?$/;function js(r,e,t){if(t){if(typeof e=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const n in t)if(xs.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}const s=typeof e=="string"?Object.assign({query:e},t):e,o=Object.keys(s).reduce((n,i)=>Is.includes(i)?(n[i]=s[i],n):(n.variables||(n.variables={}),n.variables[i]=s[i],n),{}),a=s.baseUrl||r.endpoint.DEFAULTS.baseUrl;return pr.test(a)&&(o.url=a.replace(pr,"/api/graphql")),r(o).then(n=>{if(n.data.errors){const i={};for(const l of Object.keys(n.headers))i[l]=n.headers[l];throw new Ls(o,i,n.data)}return n.data.data})}function Ve(r,e){const t=r.defaults(e);return Object.assign((o,a)=>js(t,o,a),{defaults:Ve.bind(null,t),endpoint:t.endpoint})}Ve(Le,{headers:{"user-agent":`octokit-graphql.js/${Us} ${ke()}`},method:"POST",url:"/graphql"});function $s(r){return Ve(r,{method:"POST",url:"/graphql"})}var qs=/^v1\./,Bs=/^ghs_/,Hs=/^ghu_/;async function zs(r){const e=r.split(/\./).length===3,t=qs.test(r)||Bs.test(r),s=Hs.test(r);return{type:"token",token:r,tokenType:e?"app":t?"installation":s?"user-to-server":"oauth"}}function Ns(r){return r.split(/\./).length===3?`bearer ${r}`:`token ${r}`}async function Vs(r,e,t,s){const o=e.endpoint.merge(t,s);return o.headers.authorization=Ns(r),e(o)}var Ms=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(zs.bind(null,e),{hook:Vs.bind(null,e)})},Lr="5.2.0",dr=()=>{},Ws=console.warn.bind(console),Ks=console.error.bind(console),gr=`octokit-core.js/${Lr} ${ke()}`,ue,Js=(ue=class{static defaults(e){return class extends this{constructor(...s){const o=s[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var o;const t=this.plugins;return o=class extends this{},(()=>{o.plugins=t.concat(e.filter(n=>!t.includes(n)))})(),o}constructor(e={}){const t=new us,s={baseUrl:Le.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${gr}`:gr,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Le.defaults(s),this.graphql=$s(this.request).defaults(s),this.log=Object.assign({debug:dr,info:dr,warn:Ws,error:Ks},e.log),this.hook=t,e.authStrategy){const{authStrategy:a,...n}=e,i=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const a=Ms(e.auth);t.wrap("request",a.hook),this.auth=a}const o=this.constructor;for(let a=0;a{ue.VERSION=Lr})(),(()=>{ue.plugins=[]})(),ue),Zs="4.0.1";function Ir(r){r.hook.wrap("request",(e,t)=>{r.log.debug("request",t);const s=Date.now(),o=r.request.endpoint.parse(t),a=o.url.replace(t.baseUrl,"");return e(t).then(n=>(r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n)).catch(n=>{throw r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n})})}Ir.VERSION=Zs;var Qs="11.3.1";function Xs(r){if(!r.data)return{...r,data:[]};if(!("total_count"in r.data&&!("url"in r.data)))return r;const t=r.data.incomplete_results,s=r.data.repository_selection,o=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],n=r.data[a];return r.data=n,typeof t<"u"&&(r.data.incomplete_results=t),typeof s<"u"&&(r.data.repository_selection=s),r.data.total_count=o,r}function Me(r,e,t){const s=typeof e=="function"?e.endpoint(t):r.request.endpoint(e,t),o=typeof e=="function"?e:r.request,a=s.method,n=s.headers;let i=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!i)return{done:!0};try{const l=await o({method:a,url:i,headers:n}),p=Xs(l);return i=((p.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:p}}catch(l){if(l.status!==409)throw l;return i="",{value:{status:200,headers:{},data:[]}}}}})}}function xr(r,e,t,s){return typeof t=="function"&&(s=t,t=void 0),jr(r,[],Me(r,e,t)[Symbol.asyncIterator](),s)}function jr(r,e,t,s){return t.next().then(o=>{if(o.done)return e;let a=!1;function n(){a=!0}return e=e.concat(s?s(o.value,n):o.value.data),a?e:jr(r,e,t,s)})}Object.assign(xr,{iterator:Me});function $r(r){return{paginate:Object.assign(xr.bind(null,r),{iterator:Me.bind(null,r)})}}$r.VERSION=Qs;var Ys="13.2.2",eo={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},ro=eo,Y=new Map;for(const[r,e]of Object.entries(ro))for(const[t,s]of Object.entries(e)){const[o,a,n]=s,[i,l]=o.split(/ /),p=Object.assign({method:i,url:l},a);Y.has(r)||Y.set(r,new Map),Y.get(r).set(t,{scope:r,methodName:t,endpointDefaults:p,decorations:n})}var to={has({scope:r},e){return Y.get(r).has(e)},getOwnPropertyDescriptor(r,e){return{value:this.get(r,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(r,e,t){return Object.defineProperty(r.cache,e,t),!0},deleteProperty(r,e){return delete r.cache[e],!0},ownKeys({scope:r}){return[...Y.get(r).keys()]},set(r,e,t){return r.cache[e]=t},get({octokit:r,scope:e,cache:t},s){if(t[s])return t[s];const o=Y.get(e).get(s);if(!o)return;const{endpointDefaults:a,decorations:n}=o;return n?t[s]=oo(r,e,s,a,n):t[s]=r.request.defaults(a),t[s]}};function so(r){const e={};for(const t of Y.keys())e[t]=new Proxy({octokit:r,scope:t,cache:{}},to);return e}function oo(r,e,t,s,o){const a=r.request.defaults(s);function n(...i){let l=a.endpoint.merge(...i);if(o.mapToData)return l=Object.assign({},l,{data:l[o.mapToData],[o.mapToData]:void 0}),a(l);if(o.renamed){const[p,g]=o.renamed;r.log.warn(`octokit.${e}.${t}() has been renamed to octokit.${p}.${g}()`)}if(o.deprecated&&r.log.warn(o.deprecated),o.renamedParameters){const p=a.endpoint.merge(...i);for(const[g,u]of Object.entries(o.renamedParameters))g in p&&(r.log.warn(`"${g}" parameter is deprecated for "octokit.${e}.${t}()". Use "${u}" instead`),u in p||(p[u]=p[g]),delete p[g]);return a(p)}return a(...i)}return Object.assign(n,a)}function qr(r){const e=so(r);return{...e,rest:e}}qr.VERSION=Ys;var no="20.1.1",ao=Js.plugin(Ir,qr,$r).defaults({userAgent:`octokit-rest.js/${no}`});const io={beforeDevCommand:"yarn dev",beforeBuildCommand:"yarn build",devPath:"http://localhost:5173",distDir:"../dist",withGlobalTauri:!1},co={allowlist:{all:!0,fs:{all:!0,scope:["**"]},shell:{all:!0,open:!0,sidecar:!0,scope:[{name:"iib_api_server",sidecar:!0}]}},bundle:{active:!0,targets:"all",identifier:"com.zanllp.iib",icon:["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"],externalBin:["iib_api_server"]},security:{csp:null},windows:[{fullscreen:!1,resizable:!0,fileDropEnabled:!1,title:"Infinite Image Browsing",width:800,height:600,maximized:!0}]},lo={build:io,package:{productName:"Infinite Image Browsing",version:"1.0.0"},tauri:co},Br=new ao,uo="v"+lo.package.version,ne=H(),Ie=H(""),Hr=H(""),zr=H(""),ae=L(()=>({tag:zr.value||uo,hash:Hr.value})),po=L(()=>Ie.value?Ie.value!==ae.value.tag:!1);async function go(r,e){try{return(await Br.repos.listCommits({owner:r,repo:e,per_page:1})).data[0]}catch(t){console.error("Error fetching the latest commit:",t)}}async function mo(r,e){try{return(await Br.repos.getLatestRelease({owner:r,repo:e})).data}catch(t){console.error("Error fetching the latest release:",t)}}const mr="zanllp",hr="sd-webui-infinite-image-browsing";Tt(500+500*Math.random()).then(async()=>{Et().then(e=>{zr.value=e.tag??"",Hr.value=e.hash??""}),ne.value=await go(mr,hr);const r=await mo(mr,hr);Ie.value=(r==null?void 0:r.tag_name)??""});const Ge=r=>(Gt("data-v-29c5fa3e"),r=r(),Ot(),r),ho={class:"container"},To={class:"header"},Eo={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},fo=Ge(()=>E("div",{"flex-placeholder":""},null,-1)),bo=Ge(()=>E("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"quick-action"},"Github",-1)),vo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"quick-action"},_o=Ge(()=>E("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/releases",target:"_blank",class:"quick-action"},"Releases",-1)),wo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"quick-action"},yo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"quick-action"},ko={key:1,class:"quick-action"},Po={class:"access-mode-message"},Go=Ge(()=>E("div",{"flex-placeholder":""},null,-1)),Oo={class:"content"},So={class:"feature-item"},Ao={class:"text line-clamp-1"},Ro=["onClick"],Co={class:"text line-clamp-2"},Fo={key:0,class:"feature-item"},Uo={class:"text line-clamp-1"},Do=["onClick"],Lo={class:"text line-clamp-2"},Io={key:0,class:"fixed"},xo={class:"feature-item"},jo=["onClick"],$o={class:"text line-clamp-1"},qo={class:"text line-clamp-1"},Bo={class:"text line-clamp-1"},Ho={class:"text line-clamp-1"},zo=["onClick"],No={class:"text line-clamp-1"},Vo={key:1,class:"feature-item recent"},Mo={class:"title"},Wo=["onClick"],Ko={class:"text line-clamp-1"},Jo={key:0},Zo={key:1},Qo={key:2},Xo={key:3},Yo=J({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{},popAddPathModal:{}},setup(r){const e=r,t=br(),s=ft(),o=bt();vt(()=>{e.popAddPathModal&&Se(e.popAddPathModal.type,e.popAddPathModal.path)});const a=_t(),n={local:C("local"),"tag-search":C("imgSearch"),"fuzzy-search":C("fuzzy-search"),"batch-download":C("batchDownload")+" / "+C("archive"),"workspace-snapshot":C("WorkspaceSnapshot"),"global-setting":C("globalSettings")},i=(c,m,P)=>{let _;switch(c){case"grid-view":case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"workspace-snapshot":case"fuzzy-search":case"empty":_={type:c,name:n[c],key:Date.now()+Oe()};break;case"local":_={type:c,name:n[c],key:Date.now()+Oe(),path:m,mode:P==="scanned-fixed"||P==="walk"?P:"scanned"}}return _},l=(c,m,P)=>{const _=i(c,m,P);if(!_)return;const G=t.tabList[e.tabIdx];G.panes.splice(e.paneIdx,1,_),G.key=_.key},p=(c,m,P)=>{const _=i(c,m,P);if(!_)return;t.tabList[e.tabIdx].panes.push(_)},g=(c,m,P)=>{const _=i(c,m,P);if(!_)return;let G=t.tabList[e.tabIdx+1];G||(G={panes:[],key:"",id:Oe()},t.tabList[e.tabIdx+1]=G),G.panes.push(_),G.key=_.key},u=L(()=>{var c;return(c=t.tabListHistoryRecord)==null?void 0:c[1]}),f=L(()=>t.quickMovePaths.filter(({key:c,types:m})=>c==="outdir_txt2img_samples"||c==="outdir_img2img_samples"||c==="outdir_txt2img_grids"||c==="outdir_img2img_grids"||m.includes("walk"))),y=window.parent!==window,S=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),A=()=>{yt(u.value),t.tabList=Je(u.value.tabs)},v=c=>{t.tabList=Je(c.tabs)},R=L(()=>{var c;return Ce?"desktop application":((c=t.conf)==null?void 0:c.launch_mode)==="sd"?"sd-webui extension":"standalone"}),q=c=>!c||c==="scanned"?"":c==="walk"?"Walk: ":"Fixed: ",x=L(()=>{var m,P;const c=[];return(m=t.conf)!=null&&m.enable_access_control&&c.push("accessLimited"),(P=t.conf)!=null&&P.is_readonly&&c.push("readonly"),c.map(_=>C(_)).join(" + ")});return(c,m)=>{var V,M,re,X;const P=_e,_=kt,G=Rt,N=Te,ee=qe,Q=Pt,j=vr;return w(),O("div",ho,[E("div",To,[E("h1",null,b(c.$t("welcome")),1),(V=T(t).conf)!=null&&V.enable_access_control&&T(t).dontShowAgain?(w(),O("div",Eo,[h(T(Ye),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):B("",!0),fo,bo,E("a",vo,b(c.$t("privacyAndSecurity")),1),h(P,{count:T(po)?"new":null,offset:[2,0],color:"geekblue"},{default:U(()=>[_o]),_:1},8,["count"]),E("a",wo,b(c.$t("changlog")),1),E("a",yo,b(c.$t("faq")),1),T(Ce)?B("",!0):(w(),O("div",ko,[$(b(c.$t("sync"))+" ",1),h(_,{title:c.$t("syncDesc")},{default:U(()=>[h(T(rs))]),_:1},8,["title"]),$(" : "),h(G,{checked:T(a),"onUpdate:checked":m[0]||(m[0]=d=>wt(a)?a.value=d:null)},null,8,["checked"])])),h(ee,{value:T(t).darkModeControl,"onUpdate:value":m[1]||(m[1]=d=>T(t).darkModeControl=d),"button-style":"solid"},{default:U(()=>[h(N,{value:"light"},{default:U(()=>[$("Light")]),_:1}),h(N,{value:"auto"},{default:U(()=>[$("Auto")]),_:1}),h(N,{value:"dark"},{default:U(()=>[$("Dark")]),_:1})]),_:1},8,["value"])]),(M=T(t).conf)!=null&&M.enable_access_control&&!T(t).dontShowAgain?(w(),ve(Q,{key:0,"show-icon":""},{message:U(()=>[E("div",Po,[E("div",null,b(c.$t("accessControlModeTips")),1),Go,E("a",{onClick:m[2]||(m[2]=W(d=>T(t).dontShowAgain=!0,["prevent"]))},b(c.$t("dontShowAgain")),1)])]),icon:U(()=>[h(T(Ye))]),_:1})):B("",!0),E("div",Oo,[E("div",So,[E("h2",null,b(c.$t("walkMode")),1),E("ul",null,[E("li",{onClick:m[3]||(m[3]=d=>T(Se)("walk")),class:"item"},[E("span",Ao,[h(T(Ke)),$(" "+b(c.$t("add")),1)])]),(w(!0),O(K,null,se(f.value,d=>(w(),ve(sr,{key:d.key,onOpenInNewTab:F=>p("local",d.dir,"walk"),onOpenOnTheRight:F=>g("local",d.dir,"walk")},{default:U(()=>[E("li",{class:"item rem",onClick:W(F=>l("local",d.dir,"walk"),["prevent"])},[E("span",Co,b(d.zh),1),d.can_delete?(w(),O(K,{key:0},[h(j,{type:"link",onClick:W(F=>T(tr)(d.dir),["stop"])},{default:U(()=>[$(b(c.$t("alias")),1)]),_:2},1032,["onClick"]),h(j,{type:"link",onClick:W(F=>T(rr)(d.dir,"walk"),["stop"])},{default:U(()=>[$(b(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):B("",!0)],8,Ro)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))])]),T(t).quickMovePaths.length?(w(),O("div",Fo,[E("h2",null,b(c.$t("launchFromNormalAndFixed")),1),E("ul",null,[E("li",{onClick:m[4]||(m[4]=d=>T(Se)("scanned")),class:"item"},[E("span",Uo,[h(T(Ke)),$(" "+b(c.$t("add")),1)])]),(w(!0),O(K,null,se(T(t).quickMovePaths.filter(({types:d})=>d.includes("cli_access_only")||d.includes("preset")||d.includes("scanned")||d.includes("scanned-fixed")),d=>(w(),O(K,{key:d.key},[(w(!0),O(K,null,se(d.types.filter(F=>F!=="walk"),F=>(w(),ve(sr,{key:F,onOpenInNewTab:te=>p("local",d.dir,F),onOpenOnTheRight:te=>g("local",d.dir,F)},{default:U(()=>[E("li",{class:"item rem",onClick:W(te=>l("local",d.dir,F),["prevent"])},[E("span",Lo,[F=="scanned-fixed"?(w(),O("span",Io,"Fixed")):B("",!0),$(b(d.zh),1)]),d.can_delete&&(F==="scanned-fixed"||F==="scanned")?(w(),O(K,{key:0},[h(j,{type:"link",onClick:W(te=>T(tr)(d.dir),["stop"])},{default:U(()=>[$(b(c.$t("alias")),1)]),_:2},1032,["onClick"]),h(j,{type:"link",onClick:W(te=>T(rr)(d.dir,F),["stop"])},{default:U(()=>[$(b(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):B("",!0)],8,Do)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))],64))),128))])])):B("",!0),E("div",xo,[E("h2",null,b(c.$t("launch")),1),E("ul",null,[(w(!0),O(K,null,se(Object.keys(n),d=>(w(),O("li",{key:d,class:"item",onClick:W(F=>l(d),["prevent"])},[E("span",$o,b(n[d]),1)],8,jo))),128)),E("li",{class:"item",onClick:m[5]||(m[5]=d=>T(s).opened=!0)},[E("span",qo,b(c.$t("imgCompare")),1)]),y?(w(),O("li",{key:0,class:"item",onClick:S},[E("span",Bo,b(c.$t("openThisAppInNewWindow")),1)])):B("",!0),(re=u.value)!=null&&re.tabs.length?(w(),O("li",{key:1,class:"item",onClick:A},[E("span",Ho,b(c.$t("restoreLastWorkspaceState")),1)])):B("",!0),(w(!0),O(K,null,se(T(o).snapshots,d=>(w(),O("li",{class:"item",key:d.id,onClick:F=>v(d)},[E("span",No,b(c.$t("restoreWorkspaceSnapshot",[d.name])),1)],8,zo))),128))])]),T(t).recent.length?(w(),O("div",Vo,[E("div",Mo,[E("h2",null,b(c.$t("recent")),1),h(j,{onClick:m[6]||(m[6]=d=>T(t).recent=[]),type:"link"},{default:U(()=>[$(b(c.$t("clear")),1)]),_:1})]),E("ul",null,[(w(!0),O(K,null,se(T(t).recent,d=>(w(),O("li",{key:d.key,class:"item",onClick:W(F=>l("local",d.path,d.mode),["prevent"])},[h(T(Kt),{class:"icon"}),E("span",Ko,b(q(d.mode))+b(T(t).getShortPath(d.path)),1)],8,Wo))),128))])])):B("",!0)]),E("div",{class:"ver-info",onDblclick:m[7]||(m[7]=d=>T(ce).info("Ciallo~(∠・ω< )⌒☆"))},[x.value?(w(),O("div",Jo," Mode: "+b(x.value),1)):B("",!0),E("div",null," Version: "+b(T(ae).tag)+" ("+b(R.value)+") ",1),T(ae).hash?(w(),O("div",Zo," Hash: "+b(T(ae).hash),1)):B("",!0),T(ne)&&T(ae).hash&&T(ne).sha!==T(ae).hash?(w(),O("div",Qo," Not the latest commit ")):B("",!0),T(ne)?(w(),O("div",Xo," Latest Commit: "+b(T(ne).sha)+" (Updated at "+b((X=T(ne).commit.author)==null?void 0:X.date)+") ",1)):B("",!0)],32)])}}});const nn=St(Yo,[["__scopeId","data-v-29c5fa3e"]]);export{nn as default}; diff --git a/vue/dist/assets/functionalCallableComp-58260c55.js b/vue/dist/assets/functionalCallableComp-685da399.js similarity index 72% rename from vue/dist/assets/functionalCallableComp-58260c55.js rename to vue/dist/assets/functionalCallableComp-685da399.js index f6c9deab..db922036 100644 --- a/vue/dist/assets/functionalCallableComp-58260c55.js +++ b/vue/dist/assets/functionalCallableComp-685da399.js @@ -1 +1 @@ -import{c as y,A as Ze,d3 as et,d4 as tt,h as m,d as X,r as _,bf as Se,d5 as Bt,al as z,a as p,bd as Tt,d6 as xe,b as $e,E as re,b2 as Ft,m as ie,_ as he,cq as K,bz as Pt,j as at,u as nt,D as $t,au as Et,an as It,P as F,w as rt,aX as Ot,d7 as it,o as Dt,d8 as ve,i as Q,d9 as Ee,bB as ot,cw as _t,da as Te,db as Ht,dc as At,dd as Lt,aL as Rt,cn as Ut,de as jt,df as Gt,S as zt,T as Kt,cV as Re,cz as se,L as qt,cf as Wt,$ as Xt,R as Ce,dg as Yt,dh as Jt,ai as Ue,c6 as Qt,ad as Zt,z as Z,di as ea,aA as ta,y as st,dj as aa,ah as lt,v as na,V as ra,dk as ia}from"./index-0a648427.js";/* empty css */var oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const sa=oa;function je(r){for(var e=1;eNumber.MAX_SAFE_INTEGER)return String(Fe()?BigInt(r).toString():Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new r(Number.MAX_SAFE_INTEGER);if(n0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":De(this.number):this.origin}}]),r}(),ca=function(){function r(e){if(tt(this,r),m(this,"origin",""),ut(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var t=e;if(Oe(t)&&(t=Number(t)),t=typeof t=="string"?t:De(t),_e(t)){var a=fe(t);this.negative=a.negative;var n=a.trimStr.split(".");this.integer=BigInt(n[0]);var i=n[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return et(r,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var a="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(a)}},{key:"negate",value:function(){var t=new r(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new r(t);var a=new r(t);if(a.isInvalidate())return this;var n=Math.max(this.getDecimalStr().length,a.getDecimalStr().length),i=this.alignDecimal(n),s=a.alignDecimal(n),o=(i+s).toString(),l=fe(o),d=l.negativeStr,c=l.trimStr,u="".concat(d).concat(c.padStart(n+1,"0"));return new r("".concat(u.slice(0,-n),".").concat(u.slice(-n)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),r}();function W(r){return Fe()?new ca(r):new da(r)}function Pe(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r==="")return"";var n=fe(r),i=n.negativeStr,s=n.integerStr,o=n.decimalStr,l="".concat(e).concat(o),d="".concat(i).concat(s);if(t>=0){var c=Number(o[t]);if(c>=5&&!a){var u=W(r).add("".concat(i,"0.").concat("0".repeat(t)).concat(10-c));return Pe(u.toString(),e,t,a)}return t===0?d:"".concat(d).concat(e).concat(o.padEnd(t,"0").slice(0,t))}return l===".0"?d:"".concat(d).concat(l)}var va=200,fa=600;const ha=X({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var a=t.slots,n=t.emit,i=_(),s=function(d,c){d.preventDefault(),n("step",c);function u(){n("step",c),i.value=setTimeout(u,va)}i.value=setTimeout(u,fa)},o=function(){clearTimeout(i.value)};return Se(function(){o()}),function(){if(Bt())return null;var l=e.prefixCls,d=e.upDisabled,c=e.downDisabled,u="".concat(l,"-handler"),x=z(u,"".concat(u,"-up"),m({},"".concat(u,"-up-disabled"),d)),N=z(u,"".concat(u,"-down"),m({},"".concat(u,"-down-disabled"),c)),w={unselectable:"on",role:"button",onMouseup:o,onMouseleave:o},M=a.upNode,P=a.downNode;return y("div",{class:"".concat(u,"-wrap")},[y("span",p(p({},w),{},{onMousedown:function(b){s(b,!0)},"aria-label":"Increase Value","aria-disabled":d,class:x}),[(M==null?void 0:M())||y("span",{unselectable:"on",class:"".concat(l,"-handler-up-inner")},null)]),y("span",p(p({},w),{},{onMousedown:function(b){s(b,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:N}),[(P==null?void 0:P())||y("span",{unselectable:"on",class:"".concat(l,"-handler-down-inner")},null)])])}}});function ma(r,e){var t=_(null);function a(){try{var i=r.value,s=i.selectionStart,o=i.selectionEnd,l=i.value,d=l.substring(0,s),c=l.substring(o);t.value={start:s,end:o,value:l,beforeTxt:d,afterTxt:c}}catch{}}function n(){if(r.value&&t.value&&e.value)try{var i=r.value.value,s=t.value,o=s.beforeTxt,l=s.afterTxt,d=s.start,c=i.length;if(i.endsWith(l))c=i.length-t.value.afterTxt.length;else if(i.startsWith(o))c=o.length;else{var u=o[d-1],x=i.indexOf(u,d-1);x!==-1&&(c=x+1)}r.value.setSelectionRange(c,c)}catch(N){Tt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(N.message))}}return[a,n]}const pa=function(){var r=_(0),e=function(){xe.cancel(r.value)};return Se(function(){e()}),function(t){e(),r.value=xe(function(){t()})}};var ga=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],Ge=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},ze=function(e){var t=W(e);return t.isInvalidate()?null:t},dt=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const ba=X({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:p(p({},dt()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var a=t.attrs,n=t.slots,i=t.emit,s=t.expose,o=_(),l=_(!1),d=_(!1),c=_(!1),u=_(W(e.value));function x(k){e.value===void 0&&(u.value=k)}var N=function(v,T){if(!T)return e.precision>=0?e.precision:Math.max(me(v),me(e.step))},w=function(v){var T=String(v);if(e.parser)return e.parser(T);var h=T;return e.decimalSeparator&&(h=h.replace(e.decimalSeparator,".")),h.replace(/[^\w.-]+/g,"")},M=_(""),P=function(v,T){if(e.formatter)return e.formatter(v,{userTyping:T,input:String(M.value)});var h=typeof v=="number"?De(v):v;if(!T){var j=N(h,T);if(_e(h)&&(e.decimalSeparator||j>=0)){var A=e.decimalSeparator||".";h=Pe(h,A,j)}}return h},V=function(){var k=e.value;return u.value.isInvalidate()&&["string","number"].includes($e(k))?Number.isNaN(k)?"":k:P(u.value.toString(),!1)}();M.value=V;function b(k,v){M.value=P(k.isInvalidate()?k.toString(!1):k.toString(!v),v)}var S=re(function(){return ze(e.max)}),C=re(function(){return ze(e.min)}),g=re(function(){return!S.value||!u.value||u.value.isInvalidate()?!1:S.value.lessEquals(u.value)}),I=re(function(){return!C.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals(C.value)}),B=ma(o,l),f=Ft(B,2),$=f[0],D=f[1],E=function(v){return S.value&&!v.lessEquals(S.value)?S.value:C.value&&!C.value.lessEquals(v)?C.value:null},L=function(v){return!E(v)},H=function(v,T){var h=v,j=L(h)||h.isEmpty();if(!h.isEmpty()&&!T&&(h=E(h)||h,j=!0),!e.readonly&&!e.disabled&&j){var A=h.toString(),q=N(A,T);if(q>=0&&(h=W(Pe(A,".",q))),!h.equals(u.value)){var J;x(h),(J=e.onChange)===null||J===void 0||J.call(e,h.isEmpty()?null:Ge(e.stringMode,h)),e.value===void 0&&b(h,T)}return h}return u.value},G=pa(),R=function k(v){var T;if($(),M.value=v,!c.value){var h=w(v),j=W(h);j.isNaN()||H(j,!0)}(T=e.onInput)===null||T===void 0||T.call(e,v),G(function(){var A=v;e.parser||(A=v.replace(/。/g,".")),A!==v&&k(A)})},U=function(){c.value=!0},Y=function(){c.value=!1,R(o.value.value)},ee=function(v){R(v.target.value)},te=function(v){var T,h;if(!(v&&g.value||!v&&I.value)){d.value=!1;var j=W(e.step);v||(j=j.negate());var A=(u.value||W(0)).add(j.toString()),q=H(A,!1);(T=e.onStep)===null||T===void 0||T.call(e,Ge(e.stringMode,q),{offset:e.step,type:v?"up":"down"}),(h=o.value)===null||h===void 0||h.focus()}},le=function(v){var T=W(w(M.value)),h=T;T.isNaN()?h=u.value:h=H(T,v),e.value!==void 0?b(u.value,!1):h.isNaN()||b(h,!1)},ue=function(v){var T=v.which;if(d.value=!0,T===K.ENTER){var h;c.value||(d.value=!1),le(!1),(h=e.onPressEnter)===null||h===void 0||h.call(e,v)}e.keyboard!==!1&&!c.value&&[K.UP,K.DOWN].includes(T)&&(te(K.UP===T),v.preventDefault())},O=function(){d.value=!1},ne=function(v){le(!1),l.value=!1,d.value=!1,i("blur",v)};return ie(function(){return e.precision},function(){u.value.isInvalidate()||b(u.value,!1)},{flush:"post"}),ie(function(){return e.value},function(){var k=W(e.value);u.value=k;var v=W(w(M.value));(!k.equals(v)||!d.value||e.formatter)&&b(k,d.value)},{flush:"post"}),ie(M,function(){e.formatter&&D()},{flush:"post"}),ie(function(){return e.disabled},function(k){k&&(l.value=!1)}),s({focus:function(){var v;(v=o.value)===null||v===void 0||v.focus()},blur:function(){var v;(v=o.value)===null||v===void 0||v.blur()}}),function(){var k,v=p(p({},a),e),T=v.prefixCls,h=T===void 0?"rc-input-number":T,j=v.min,A=v.max,q=v.step,J=q===void 0?1:q;v.defaultValue,v.value;var pe=v.disabled,ge=v.readonly;v.keyboard;var be=v.controls,ke=be===void 0?!0:be,ye=v.autofocus;v.stringMode,v.parser,v.formatter,v.precision,v.decimalSeparator,v.onChange,v.onInput,v.onPressEnter,v.onStep;var St=v.lazy,Ct=v.class,kt=v.style,Nt=he(v,ga),wt=n.upHandler,Vt=n.downHandler,Le="".concat(h,"-input"),Ne={};return St?Ne.onChange=ee:Ne.onInput=ee,y("div",{class:z(h,Ct,(k={},m(k,"".concat(h,"-focused"),l.value),m(k,"".concat(h,"-disabled"),pe),m(k,"".concat(h,"-readonly"),ge),m(k,"".concat(h,"-not-a-number"),u.value.isNaN()),m(k,"".concat(h,"-out-of-range"),!u.value.isInvalidate()&&!L(u.value)),k)),style:kt,onKeydown:ue,onKeyup:O},[ke&&y(ha,{prefixCls:h,upDisabled:g.value,downDisabled:I.value,onStep:te},{upNode:wt,downNode:Vt}),y("div",{class:"".concat(Le,"-wrap")},[y("input",p(p(p({autofocus:ye,autocomplete:"off",role:"spinbutton","aria-valuemin":j,"aria-valuemax":A,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:J},Nt),{},{ref:o,class:Le,value:M.value,disabled:pe,readonly:ge,onFocus:function(Mt){l.value=!0,i("focus",Mt)}},Ne),{},{onBlur:ne,onCompositionstart:U,onCompositionend:Y}),null)])])}}});function we(r){return r!=null}var ya=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Ke=dt(),xa=function(){return p(p({},Ke),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:F.any,addonAfter:F.any,prefix:F.any,"onUpdate:value":Ke.onChange,valueModifiers:Object})},Ve=X({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:xa(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var a=t.emit,n=t.expose,i=t.attrs,s=t.slots,o=at(),l=nt("input-number",e),d=l.prefixCls,c=l.size,u=l.direction,x=_(e.value===void 0?e.defaultValue:e.value),N=_(!1);ie(function(){return e.value},function(){x.value=e.value});var w=_(null),M=function(){var g;(g=w.value)===null||g===void 0||g.focus()},P=function(){var g;(g=w.value)===null||g===void 0||g.blur()};n({focus:M,blur:P});var V=function(g){e.value===void 0&&(x.value=g),a("update:value",g),a("change",g),o.onFieldChange()},b=function(g){N.value=!1,a("blur",g),o.onFieldBlur()},S=function(g){N.value=!0,a("focus",g)};return function(){var C,g,I,B,f=p(p({},i),e),$=f.class,D=f.bordered,E=f.readonly,L=f.style,H=f.addonBefore,G=H===void 0?(C=s.addonBefore)===null||C===void 0?void 0:C.call(s):H,R=f.addonAfter,U=R===void 0?(g=s.addonAfter)===null||g===void 0?void 0:g.call(s):R,Y=f.prefix,ee=Y===void 0?(I=s.prefix)===null||I===void 0?void 0:I.call(s):Y,te=f.valueModifiers,le=te===void 0?{}:te,ue=he(f,ya),O=d.value,ne=c.value,k=z((B={},m(B,"".concat(O,"-lg"),ne==="large"),m(B,"".concat(O,"-sm"),ne==="small"),m(B,"".concat(O,"-rtl"),u.value==="rtl"),m(B,"".concat(O,"-readonly"),E),m(B,"".concat(O,"-borderless"),!D),B),$),v=y(ba,p(p({},Et(ue,["size","defaultValue"])),{},{ref:w,lazy:!!le.lazy,value:x.value,class:k,prefixCls:O,readonly:E,onChange:V,onBlur:b,onFocus:S}),{upHandler:function(){return y(ua,{class:"".concat(O,"-handler-up-inner")},null)},downHandler:function(){return y($t,{class:"".concat(O,"-handler-down-inner")},null)}}),T=we(G)||we(U);if(we(ee)){var h,j=z("".concat(O,"-affix-wrapper"),(h={},m(h,"".concat(O,"-affix-wrapper-focused"),N.value),m(h,"".concat(O,"-affix-wrapper-disabled"),e.disabled),m(h,"".concat(O,"-affix-wrapper-rtl"),u.value==="rtl"),m(h,"".concat(O,"-affix-wrapper-readonly"),E),m(h,"".concat(O,"-affix-wrapper-borderless"),!D),m(h,"".concat($),!T&&$),h));v=y("div",{class:j,style:L,onMouseup:function(){return w.value.focus()}},[y("span",{class:"".concat(O,"-prefix")},[ee]),v])}if(T){var A,q="".concat(O,"-group"),J="".concat(q,"-addon"),pe=G?y("div",{class:J},[G]):null,ge=U?y("div",{class:J},[U]):null,be=z("".concat(O,"-wrapper"),q,m({},"".concat(q,"-rtl"),u.value==="rtl")),ke=z("".concat(O,"-group-wrapper"),(A={},m(A,"".concat(O,"-group-wrapper-sm"),ne==="small"),m(A,"".concat(O,"-group-wrapper-lg"),ne==="large"),m(A,"".concat(O,"-group-wrapper-rtl"),u.value==="rtl"),A),$);v=y("div",{class:ke,style:L},[y("div",{class:be},[pe,v,ge])])}return It(v,{style:L})}}});const Sa=Pt(Ve,{install:function(e){return e.component(Ve.name,Ve),e}});var ct=function(e,t){var a,n,i=t.attrs,s=i.included,o=i.vertical,l=i.style,d=i.class,c=i.length,u=i.offset,x=i.reverse;c<0&&(x=!x,c=Math.abs(c),u=100-u);var N=o?(a={},m(a,x?"top":"bottom","".concat(u,"%")),m(a,x?"bottom":"top","auto"),m(a,"height","".concat(c,"%")),a):(n={},m(n,x?"right":"left","".concat(u,"%")),m(n,x?"left":"right","auto"),m(n,"width","".concat(c,"%")),n),w=p(p({},l),N);return s?y("div",{class:d,style:w},null):null};ct.inheritAttrs=!1;const vt=ct;var Ca=function(e,t,a,n,i,s){rt(a?n>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var o=Object.keys(t).map(parseFloat).sort(function(d,c){return d-c});if(a&&n)for(var l=i;l<=s;l+=n)o.indexOf(l)===-1&&o.push(l);return o},ft=function(e,t){var a=t.attrs,n=a.prefixCls,i=a.vertical,s=a.reverse,o=a.marks,l=a.dots,d=a.step,c=a.included,u=a.lowerBound,x=a.upperBound,N=a.max,w=a.min,M=a.dotStyle,P=a.activeDotStyle,V=N-w,b=Ca(i,o,l,d,w,N).map(function(S){var C,g="".concat(Math.abs(S-w)/V*100,"%"),I=!c&&S===x||c&&S<=x&&S>=u,B=i?p(p({},M),{},m({},s?"top":"bottom",g)):p(p({},M),{},m({},s?"right":"left",g));I&&(B=p(p({},B),P));var f=z((C={},m(C,"".concat(n,"-dot"),!0),m(C,"".concat(n,"-dot-active"),I),m(C,"".concat(n,"-dot-reverse"),s),C));return y("span",{class:f,style:B,key:S},null)});return y("div",{class:"".concat(n,"-step")},[b])};ft.inheritAttrs=!1;const ka=ft;var ht=function(e,t){var a=t.attrs,n=t.slots,i=a.class,s=a.vertical,o=a.reverse,l=a.marks,d=a.included,c=a.upperBound,u=a.lowerBound,x=a.max,N=a.min,w=a.onClickLabel,M=Object.keys(l),P=n.mark,V=x-N,b=M.map(parseFloat).sort(function(S,C){return S-C}).map(function(S){var C,g=typeof l[S]=="function"?l[S]():l[S],I=$e(g)==="object"&&!Ot(g),B=I?g.label:g;if(!B&&B!==0)return null;P&&(B=P({point:S,label:B}));var f=!d&&S===c||d&&S<=c&&S>=u,$=z((C={},m(C,"".concat(i,"-text"),!0),m(C,"".concat(i,"-text-active"),f),C)),D=m({marginBottom:"-50%"},o?"top":"bottom","".concat((S-N)/V*100,"%")),E=m({transform:"translateX(".concat(o?"50%":"-50%",")"),msTransform:"translateX(".concat(o?"50%":"-50%",")")},o?"right":"left","".concat((S-N)/V*100,"%")),L=s?D:E,H=I?p(p({},L),g.style):L,G=m({},it?"onTouchstartPassive":"onTouchstart",function(R){return w(R,S)});return y("span",p({class:$,style:H,key:S,onMousedown:function(U){return w(U,S)}},G),[B])});return y("div",{class:i},[b])};ht.inheritAttrs=!1;const Na=ht,mt=X({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:F.oneOfType([F.number,F.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(e,t){var a=t.attrs,n=t.emit,i=t.expose,s=_(!1),o=_(),l=function(){document.activeElement===o.value&&(s.value=!0)},d=function(b){s.value=!1,n("blur",b)},c=function(){s.value=!1},u=function(){var b;(b=o.value)===null||b===void 0||b.focus()},x=function(){var b;(b=o.value)===null||b===void 0||b.blur()},N=function(){s.value=!0,u()},w=function(b){b.preventDefault(),u(),n("mousedown",b)};i({focus:u,blur:x,clickFocus:N,ref:o});var M=null;Dt(function(){M=ve(document,"mouseup",l)}),Se(function(){var V;(V=M)===null||V===void 0||V.remove()});var P=re(function(){var V,b,S=e.vertical,C=e.offset,g=e.reverse;return S?(V={},m(V,g?"top":"bottom","".concat(C,"%")),m(V,g?"bottom":"top","auto"),m(V,"transform",g?null:"translateY(+50%)"),V):(b={},m(b,g?"right":"left","".concat(C,"%")),m(b,g?"left":"right","auto"),m(b,"transform","translateX(".concat(g?"+":"-","50%)")),b)});return function(){var V=e.prefixCls,b=e.disabled,S=e.min,C=e.max,g=e.value,I=e.tabindex,B=e.ariaLabel,f=e.ariaLabelledBy,$=e.ariaValueTextFormatter,D=e.onMouseenter,E=e.onMouseleave,L=z(a.class,m({},"".concat(V,"-handle-click-focused"),s.value)),H={"aria-valuemin":S,"aria-valuemax":C,"aria-valuenow":g,"aria-disabled":!!b},G=[a.style,P.value],R=I||0;(b||I===null)&&(R=null);var U;$&&(U=$(g));var Y=p(p(p({},a),{},{role:"slider",tabindex:R},H),{},{class:L,onBlur:d,onKeydown:c,onMousedown:w,onMouseenter:D,onMouseleave:E,ref:o,style:G});return y("div",p(p({},Y),{},{"aria-label":B,"aria-labelledby":f,"aria-valuetext":U}),null)}}});function Me(r,e){try{return Object.keys(e).some(function(t){return r.target===e[t].ref})}catch{return!1}}function pt(r,e){var t=e.min,a=e.max;return ra}function qe(r){return r.touches.length>1||r.type.toLowerCase()==="touchend"&&r.touches.length>0}function We(r,e){var t=e.marks,a=e.step,n=e.min,i=e.max,s=Object.keys(t).map(parseFloat);if(a!==null){var o=Math.pow(10,gt(a)),l=Math.floor((i*o-n*o)/(a*o)),d=Math.min((r-n)/a,l),c=Math.round(d)*a+n;s.push(c)}var u=s.map(function(x){return Math.abs(r-x)});return s[u.indexOf(Math.min.apply(Math,Q(u)))]}function gt(r){var e=r.toString(),t=0;return e.indexOf(".")>=0&&(t=e.length-e.indexOf(".")-1),t}function Xe(r,e){var t=1;return window.visualViewport&&(t=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(r?e.clientY:e.pageX)/t}function Ye(r,e){var t=1;return window.visualViewport&&(t=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(r?e.touches[0].clientY:e.touches[0].pageX)/t}function Je(r,e){var t=e.getBoundingClientRect();return r?t.top+t.height*.5:window.pageXOffset+t.left+t.width*.5}function He(r,e){var t=e.max,a=e.min;return r<=a?a:r>=t?t:r}function bt(r,e){var t=e.step,a=isFinite(We(r,e))?We(r,e):0;return t===null?a:parseFloat(a.toFixed(gt(t)))}function oe(r){r.stopPropagation(),r.preventDefault()}function wa(r,e,t){var a={increase:function(o,l){return o+l},decrease:function(o,l){return o-l}},n=a[r](Object.keys(t.marks).indexOf(JSON.stringify(e)),1),i=Object.keys(t.marks)[n];return t.step?a[r](e,t.step):Object.keys(t.marks).length&&t.marks[i]?t.marks[i]:e}function yt(r,e,t){var a="increase",n="decrease",i=a;switch(r.keyCode){case K.UP:i=e&&t?n:a;break;case K.RIGHT:i=!e&&t?n:a;break;case K.DOWN:i=e&&t?a:n;break;case K.LEFT:i=!e&&t?a:n;break;case K.END:return function(s,o){return o.max};case K.HOME:return function(s,o){return o.min};case K.PAGE_UP:return function(s,o){return s+o.step*2};case K.PAGE_DOWN:return function(s,o){return s-o.step*2};default:return}return function(s,o){return wa(i,s,o)}}var Va=["index","directives","className","style"];function ae(){}function xt(r){var e={id:String,min:Number,max:Number,step:Number,marks:F.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:F.object,maximumTrackStyle:F.object,handleStyle:F.oneOfType([F.object,F.arrayOf(F.object)]),trackStyle:F.oneOfType([F.object,F.arrayOf(F.object)]),railStyle:F.object,dotStyle:F.object,activeDotStyle:F.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return X({compatConfig:{MODE:3},name:"CreateSlider",mixins:[Ee,r],inheritAttrs:!1,slots:["mark"],props:ot(e,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var a=this.step,n=this.max,i=this.min,s=isFinite(n-i)?(n-i)%a===0:!0;return rt(a&&Math.floor(a)===a?s:!0,"Slider[max] - Slider[min] (".concat(n-i,") should be a multiple of Slider[step] (").concat(a,")")),this.handlesRefs={},{}},mounted:function(){var a=this;this.$nextTick(function(){a.document=a.sliderRef&&a.sliderRef.ownerDocument;var n=a.autofocus,i=a.disabled;n&&!i&&a.focus()})},beforeUnmount:function(){var a=this;this.$nextTick(function(){a.removeDocumentEvents()})},methods:{defaultHandle:function(a){var n=a.index;a.directives;var i=a.className,s=a.style,o=he(a,Va);if(delete o.dragging,o.value===null)return null;var l=p(p({},o),{},{class:i,style:s,key:n});return y(mt,l,null)},onDown:function(a,n){var i=n,s=this.$props,o=s.draggableTrack,l=s.vertical,d=this.$data.bounds,c=o&&this.positionGetValue?this.positionGetValue(i)||[]:[],u=Me(a,this.handlesRefs);if(this.dragTrack=o&&d.length>=2&&!u&&!c.map(function(N,w){var M=w?!0:N>=d[w];return w===c.length-1?N<=d[w]:M}).some(function(N){return!N}),this.dragTrack)this.dragOffset=i,this.startBounds=Q(d);else{if(!u)this.dragOffset=0;else{var x=Je(l,a.target);this.dragOffset=i-x,i=x}this.onStart(i)}},onMouseDown:function(a){if(a.button===0){this.removeDocumentEvents();var n=this.$props.vertical,i=Xe(n,a);this.onDown(a,i),this.addDocumentMouseEvents()}},onTouchStart:function(a){if(!qe(a)){var n=this.vertical,i=Ye(n,a);this.onDown(a,i),this.addDocumentTouchEvents(),oe(a)}},onFocus:function(a){var n=this.vertical;if(Me(a,this.handlesRefs)&&!this.dragTrack){var i=Je(n,a.target);this.dragOffset=0,this.onStart(i),oe(a),this.$emit("focus",a)}},onBlur:function(a){this.dragTrack||this.onEnd(),this.$emit("blur",a)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(a){if(!this.sliderRef){this.onEnd();return}var n=Xe(this.vertical,a);this.onMove(a,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(a){if(qe(a)||!this.sliderRef){this.onEnd();return}var n=Ye(this.vertical,a);this.onMove(a,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(a){this.sliderRef&&Me(a,this.handlesRefs)&&this.onKeyboard(a)},onClickMarkLabel:function(a,n){var i=this;a.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return i.onEnd(!0)})},getSliderStart:function(){var a=this.sliderRef,n=this.vertical,i=this.reverse,s=a.getBoundingClientRect();return n?i?s.bottom:s.top:window.pageXOffset+(i?s.right:s.left)},getSliderLength:function(){var a=this.sliderRef;if(!a)return 0;var n=a.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=ve(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=ve(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=ve(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=ve(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var a;this.$props.disabled||(a=this.handlesRefs[0])===null||a===void 0||a.focus()},blur:function(){var a=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var i,s;(i=a.handlesRefs[n])===null||i===void 0||(s=i.blur)===null||s===void 0||s.call(i)})},calcValue:function(a){var n=this.vertical,i=this.min,s=this.max,o=Math.abs(Math.max(a,0)/this.getSliderLength()),l=n?(1-o)*(s-i)+i:o*(s-i)+i;return l},calcValueByPos:function(a){var n=this.reverse?-1:1,i=n*(a-this.getSliderStart()),s=this.trimAlignValue(this.calcValue(i));return s},calcOffset:function(a){var n=this.min,i=this.max,s=(a-n)/(i-n);return Math.max(0,s*100)},saveSlider:function(a){this.sliderRef=a},saveHandle:function(a,n){this.handlesRefs[a]=n}},render:function(){var a,n=this.prefixCls,i=this.marks,s=this.dots,o=this.step,l=this.included,d=this.disabled,c=this.vertical,u=this.reverse,x=this.min,N=this.max,w=this.maximumTrackStyle,M=this.railStyle,P=this.dotStyle,V=this.activeDotStyle,b=this.id,S=this.$attrs,C=S.class,g=S.style,I=this.renderSlider(),B=I.tracks,f=I.handles,$=z(n,C,(a={},m(a,"".concat(n,"-with-marks"),Object.keys(i).length),m(a,"".concat(n,"-disabled"),d),m(a,"".concat(n,"-vertical"),c),a)),D={vertical:c,marks:i,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:N,min:x,reverse:u,class:"".concat(n,"-mark"),onClickLabel:d?ae:this.onClickMarkLabel},E=m({},it?"onTouchstartPassive":"onTouchstart",d?ae:this.onTouchStart);return y("div",p(p({id:b,ref:this.saveSlider,tabindex:"-1",class:$},E),{},{onMousedown:d?ae:this.onMouseDown,onMouseup:d?ae:this.onMouseUp,onKeydown:d?ae:this.onKeyDown,onFocus:d?ae:this.onFocus,onBlur:d?ae:this.onBlur,style:g}),[y("div",{class:"".concat(n,"-rail"),style:p(p({},w),M)},null),B,y(ka,{prefixCls:n,vertical:c,reverse:u,marks:i,dots:s,step:o,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:N,min:x,dotStyle:P,activeDotStyle:V},null),f,y(Na,D,{mark:this.$slots.mark}),_t(this)])}})}var Ma=X({compatConfig:{MODE:3},name:"Slider",mixins:[Ee],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:F.oneOfType([F.number,F.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler:function(e){this.setChangeValue(e)},deep:!0},min:function(){var e=this.sValue;this.setChangeValue(e)},max:function(){var e=this.sValue;this.setChangeValue(e)}},methods:{setChangeValue:function(e){var t=e!==void 0?e:this.sValue,a=this.trimAlignValue(t,this.$props);a!==this.sValue&&(this.setState({sValue:a}),pt(t,this.$props)&&this.$emit("change",a))},onChange:function(e){var t=!Te(this,"value"),a=e.sValue>this.max?p(p({},e),{},{sValue:this.max}):e;t&&this.setState(a);var n=a.sValue;this.$emit("change",n)},onStart:function(e){this.setState({dragging:!0});var t=this.sValue;this.$emit("beforeChange",t);var a=this.calcValueByPos(e);this.startValue=a,this.startPosition=e,a!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:a}))},onEnd:function(e){var t=this.dragging;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(e,t){oe(e);var a=this.sValue,n=this.calcValueByPos(t);n!==a&&this.onChange({sValue:n})},onKeyboard:function(e){var t=this.$props,a=t.reverse,n=t.vertical,i=yt(e,n,a);if(i){oe(e);var s=this.sValue,o=i(s,this.$props),l=this.trimAlignValue(o);if(l===s)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;var a=p(p({},this.$props),t),n=He(e,a);return bt(n,a)},getTrack:function(e){var t=e.prefixCls,a=e.reverse,n=e.vertical,i=e.included,s=e.minimumTrackStyle,o=e.mergedTrackStyle,l=e.length,d=e.offset;return y(vt,{class:"".concat(t,"-track"),vertical:n,included:i,offset:d,reverse:a,length:l,style:p(p({},s),o)},null)},renderSlider:function(){var e=this,t=this.prefixCls,a=this.vertical,n=this.included,i=this.disabled,s=this.minimumTrackStyle,o=this.trackStyle,l=this.handleStyle,d=this.tabindex,c=this.ariaLabelForHandle,u=this.ariaLabelledByForHandle,x=this.ariaValueTextFormatterForHandle,N=this.min,w=this.max,M=this.startPoint,P=this.reverse,V=this.handle,b=this.defaultHandle,S=V||b,C=this.sValue,g=this.dragging,I=this.calcOffset(C),B=S({class:"".concat(t,"-handle"),prefixCls:t,vertical:a,offset:I,value:C,dragging:g,disabled:i,min:N,max:w,reverse:P,index:0,tabindex:d,ariaLabel:c,ariaLabelledBy:u,ariaValueTextFormatter:x,style:l[0]||l,ref:function(E){return e.saveHandle(0,E)},onFocus:this.onFocus,onBlur:this.onBlur}),f=M!==void 0?this.calcOffset(M):0,$=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:P,vertical:a,included:n,offset:f,minimumTrackStyle:s,mergedTrackStyle:$,length:I-f}),handles:B}}}});const Ba=xt(Ma);var de=function(e){var t=e.value,a=e.handle,n=e.bounds,i=e.props,s=i.allowCross,o=i.pushable,l=Number(o),d=He(t,i),c=d;return!s&&a!=null&&n!==void 0&&(a>0&&d<=n[a-1]+l&&(c=n[a-1]+l),a=n[a+1]-l&&(c=n[a+1]-l)),bt(c,i)},Ta={defaultValue:F.arrayOf(F.number),value:F.arrayOf(F.number),count:Number,pushable:Ht(F.oneOfType([F.looseBool,F.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:F.arrayOf(F.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},Fa=X({compatConfig:{MODE:3},name:"Range",mixins:[Ee],inheritAttrs:!1,props:ot(Ta,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var e=this,t=this.count,a=this.min,n=this.max,i=Array.apply(void 0,Q(Array(t+1))).map(function(){return a}),s=Te(this,"defaultValue")?this.defaultValue:i,o=this.value;o===void 0&&(o=s);var l=o.map(function(c,u){return de({value:c,handle:u,props:e.$props})}),d=l[0]===n?0:l.length-1;return{sHandle:null,recent:d,bounds:l}},watch:{value:{handler:function(e){var t=this.bounds;this.setChangeValue(e||t)},deep:!0},min:function(){var e=this.value;this.setChangeValue(e||this.bounds)},max:function(){var e=this.value;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue:function(e){var t=this,a=this.bounds,n=e.map(function(s,o){return de({value:s,handle:o,bounds:a,props:t.$props})});if(a.length===n.length){if(n.every(function(s,o){return s===a[o]}))return null}else n=e.map(function(s,o){return de({value:s,handle:o,props:t.$props})});if(this.setState({bounds:n}),e.some(function(s){return pt(s,t.$props)})){var i=e.map(function(s){return He(s,t.$props)});this.$emit("change",i)}},onChange:function(e){var t=!Te(this,"value");if(t)this.setState(e);else{var a={};["sHandle","recent"].forEach(function(s){e[s]!==void 0&&(a[s]=e[s])}),Object.keys(a).length&&this.setState(a)}var n=p(p({},this.$data),e),i=n.bounds;this.$emit("change",i)},positionGetValue:function(e){var t=this.getValue(),a=this.calcValueByPos(e),n=this.getClosestBound(a),i=this.getBoundNeedMoving(a,n),s=t[i];if(a===s)return null;var o=Q(t);return o[i]=a,o},onStart:function(e){var t=this.bounds;this.$emit("beforeChange",t);var a=this.calcValueByPos(e);this.startValue=a,this.startPosition=e;var n=this.getClosestBound(a);this.prevMovedHandleIndex=this.getBoundNeedMoving(a,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var i=t[this.prevMovedHandleIndex];if(a!==i){var s=Q(t);s[this.prevMovedHandleIndex]=a,this.onChange({bounds:s})}},onEnd:function(e){var t=this.sHandle;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(e,t,a,n){oe(e);var i=this.$data,s=this.$props,o=s.max||100,l=s.min||0;if(a){var d=s.vertical?-t:t;d=s.reverse?-d:d;var c=o-Math.max.apply(Math,Q(n)),u=l-Math.min.apply(Math,Q(n)),x=Math.min(Math.max(d/(this.getSliderLength()/100),u),c),N=n.map(function(b){return Math.floor(Math.max(Math.min(b+x,o),l))});i.bounds.map(function(b,S){return b===N[S]}).some(function(b){return!b})&&this.onChange({bounds:N});return}var w=this.bounds,M=this.sHandle,P=this.calcValueByPos(t),V=w[M];P!==V&&this.moveTo(P)},onKeyboard:function(e){var t=this.$props,a=t.reverse,n=t.vertical,i=yt(e,n,a);if(i){oe(e);var s=this.bounds,o=this.sHandle,l=s[o===null?this.recent:o],d=i(l,this.$props),c=de({value:d,handle:o,bounds:s,props:this.$props});if(c===l)return;var u=!0;this.moveTo(c,u)}},getClosestBound:function(e){for(var t=this.bounds,a=0,n=1;n=t[n]&&(a=n);return Math.abs(t[a+1]-e)=n.length||s<0)return!1;var o=t+a,l=n[s],d=this.pushable,c=Number(d),u=a*(e[o]-l);return this.pushHandle(e,o,a,c-u)?(e[t]=l,!0):!1},trimAlignValue:function(e){var t=this.sHandle,a=this.bounds;return de({value:e,handle:t,bounds:a,props:this.$props})},ensureValueNotConflict:function(e,t,a){var n=a.allowCross,i=a.pushable,s=this.$data||{},o=s.bounds;if(e=e===void 0?s.sHandle:e,i=Number(i),!n&&e!=null&&o!==void 0){if(e>0&&t<=o[e-1]+i)return o[e-1]+i;if(e=o[e+1]-i)return o[e+1]-i}return t},getTrack:function(e){var t=e.bounds,a=e.prefixCls,n=e.reverse,i=e.vertical,s=e.included,o=e.offsets,l=e.trackStyle;return t.slice(0,-1).map(function(d,c){var u,x=c+1,N=z((u={},m(u,"".concat(a,"-track"),!0),m(u,"".concat(a,"-track-").concat(x),!0),u));return y(vt,{class:N,vertical:i,reverse:n,included:s,offset:o[x-1],length:o[x]-o[x-1],style:l[c],key:x},null)})},renderSlider:function(){var e=this,t=this.sHandle,a=this.bounds,n=this.prefixCls,i=this.vertical,s=this.included,o=this.disabled,l=this.min,d=this.max,c=this.reverse,u=this.handle,x=this.defaultHandle,N=this.trackStyle,w=this.handleStyle,M=this.tabindex,P=this.ariaLabelGroupForHandles,V=this.ariaLabelledByGroupForHandles,b=this.ariaValueTextFormatterGroupForHandles,S=u||x,C=a.map(function(B){return e.calcOffset(B)}),g="".concat(n,"-handle"),I=a.map(function(B,f){var $,D=M[f]||0;(o||M[f]===null)&&(D=null);var E=t===f;return S({class:z(($={},m($,g,!0),m($,"".concat(g,"-").concat(f+1),!0),m($,"".concat(g,"-dragging"),E),$)),prefixCls:n,vertical:i,dragging:E,offset:C[f],value:B,index:f,tabindex:D,min:l,max:d,reverse:c,disabled:o,style:w[f],ref:function(H){return e.saveHandle(f,H)},onFocus:e.onFocus,onBlur:e.onBlur,ariaLabel:P[f],ariaLabelledBy:V[f],ariaValueTextFormatter:b[f]})});return{tracks:this.getTrack({bounds:a,prefixCls:n,reverse:c,vertical:i,included:s,offsets:C,trackStyle:N}),handles:I}}}});const Pa=xt(Fa),$a=X({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:At(),setup:function(e,t){var a=t.attrs,n=t.slots,i=_(null),s=_(null);function o(){xe.cancel(s.value),s.value=null}function l(){s.value=xe(function(){var c;(c=i.value)===null||c===void 0||c.forcePopupAlign(),s.value=null})}var d=function(){o(),e.visible&&l()};return ie([function(){return e.visible},function(){return e.title}],function(){d()},{flush:"post",immediate:!0}),Lt(function(){d()}),Se(function(){o()}),function(){return y(Rt,p(p({ref:i},e),a),n)}}});var Ea=["value","dragging","index"],Ia=["tooltipPrefixCls","range","id"],Oa=function(e){return typeof e=="number"?e.toString():""},Da=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return Oa}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},_a=X({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:Da(),slots:["mark"],setup:function(e,t){var a=t.attrs,n=t.slots,i=t.emit,s=t.expose,o=nt("slider",e),l=o.prefixCls,d=o.rootPrefixCls,c=o.direction,u=o.getPopupContainer,x=o.configProvider,N=at(),w=_(),M=_({}),P=function(f,$){M.value[f]=$},V=re(function(){return e.tooltipPlacement?e.tooltipPlacement:e.vertical?c.value==="rtl"?"left":"right":"top"}),b=function(){var f;(f=w.value)===null||f===void 0||f.focus()},S=function(){var f;(f=w.value)===null||f===void 0||f.blur()},C=function(f){i("update:value",f),i("change",f),N.onFieldChange()},g=function(f){i("blur",f)};s({focus:b,blur:S});var I=function(f){var $=f.tooltipPrefixCls,D=f.info,E=D.value,L=D.dragging,H=D.index,G=he(D,Ea),R=e.tipFormatter,U=e.tooltipVisible,Y=e.getTooltipPopupContainer,ee=R?M.value[H]||L:!1,te=U||U===void 0&ⅇreturn y($a,{prefixCls:$,title:R?R(E):"",visible:te,placement:V.value,transitionName:"".concat(d.value,"-zoom-down"),key:H,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:Y||u.value},{default:function(){return[y(mt,p(p({},G),{},{value:E,onMouseenter:function(){return P(H,!0)},onMouseleave:function(){return P(H,!1)}}),null)]}})};return function(){var B=e.tooltipPrefixCls,f=e.range,$=e.id,D=$===void 0?N.id.value:$,E=he(e,Ia),L=x.getPrefixCls("tooltip",B),H=z(a.class,m({},"".concat(l.value,"-rtl"),c.value==="rtl"));c.value==="rtl"&&!E.vertical&&(E.reverse=!E.reverse);var G;return $e(f)==="object"&&(G=f.draggableTrack),f?y(Pa,p(p({},E),{},{step:E.step,draggableTrack:G,class:H,ref:w,handle:function(U){return I({tooltipPrefixCls:L,prefixCls:l.value,info:U})},prefixCls:l.value,onChange:C,onBlur:g}),{mark:n.mark}):y(Ba,p(p({},E),{},{id:D,step:E.step,class:H,ref:w,handle:function(U){return I({tooltipPrefixCls:L,prefixCls:l.value,info:U})},prefixCls:l.value,onChange:C,onBlur:g}),{mark:n.mark})}}});const Ha=Ut(_a);var Aa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const La=Aa;function Qe(r){for(var e=1;e{const i=Sa,s=Ha;return zt(),Kt("div",ja,[y(i,Re({value:t.value,"onUpdate:value":n[0]||(n[0]=o=>t.value=o)},e),null,16,["value"]),y(s,Re({value:t.value,"onUpdate:value":n[1]||(n[1]=o=>t.value=o)},e,{class:"slide"}),null,16,["value"])])}}});const Ja=async r=>(await se.value.get("/files",{params:{folder_path:r}})).data,Qa=async r=>(await se.value.post("/delete_files",{file_paths:r})).data,Za=async(r,e,t)=>(await se.value.post("/move_files",{file_paths:r,dest:e,create_dest_folder:t})).data,en=async(r,e,t)=>(await se.value.post("/copy_files",{file_paths:r,dest:e,create_dest_folder:t})).data,Ga=async r=>{await se.value.post("/mkdirs",{dest_folder:r})},tn=async r=>(await se.value.post("/batch_get_files_info",{paths:r})).data;let ce,Be;const za=async(r,e,t="image/webp")=>{const n=await(await fetch(r)).arrayBuffer();return new File([n],e,{type:t})},Ka=(r,e="image/webp")=>{if(!Be){ce=document.createElement("canvas");const n=ce.getContext("2d");qt(n),Be=n}const{videoHeight:t,videoWidth:a}=r;return ce.width=a,ce.height=t,Be.drawImage(r,0,0,a,t),ce.toDataURL(e)},an=r=>{const e=_("");return new Promise(t=>{Ce.confirm({title:Z("inputFolderName"),content:()=>y(lt,{value:e.value,"onUpdate:value":a=>e.value=a},null),async onOk(){if(!e.value)return;const a=na(r,e.value);await Ga(a),t()}})})},nn=()=>y("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[ra("Tips: "),Z("multiSelectTips")]),rn=(r,e)=>{const t=Wt(),a=Xt(),n=o=>{var l;return!!((l=t.tagMap.get(r.fullpath))!=null&&l.some(d=>d.id===o))},i=_(null),s=async()=>{if(!i.value)return;const o=i.value;o.pause();const l=Ka(o);await aa({path:r.fullpath,base64_img:l,updated_time:r.date}),r.cover_url=URL.createObjectURL(await za(l,"cover")),st.success(Z("success")+"!")};Ce.confirm({width:"80vw",title:r.name,icon:null,content:()=>y("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[y("video",{ref:i,style:{maxHeight:Yt?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:Jt(r),controls:!0,autoplay:!0},null),y("div",{style:{marginTop:"4px"}},[a.conf.all_custom_tags.map(o=>y("div",{key:o.id,onClick:()=>e==null?void 0:e(o.id),style:{background:n(o.id)?t.getColor(o.name):"var(--zp-primary-background)",color:n(o.id)?"white":t.getColor(o.name),margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease",border:`2px solid ${t.getColor(o.name)}`,"user-select":"none"}},[o.name]))]),y("div",{class:"actions",style:{marginTop:"16px"}},[y(Ue,{onClick:()=>Qt([Zt(r,!0)])},{icon:y(Ua,null,null),default:Z("download")}),y(Ue,{onClick:s},{default:Z("setCurrFrameAsVideoPoster")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},on=()=>{Ce.confirm({title:Z("confirmRebuildImageIndex"),onOk:async()=>{await ea(),ta.emit("searchIndexExpired"),st.success(Z("rebuildComplete"))}})},sn=r=>{const e=_(r.split(/[\\/]/).pop()??"");return new Promise(t=>{Ce.confirm({title:Z("rename"),content:()=>y(lt,{value:e.value,"onUpdate:value":a=>e.value=a},null),async onOk(){if(!e.value)return;const a=await ia({path:r,name:e.value});t(a.new_path)}})})};export{nn as M,Ya as _,on as a,sn as b,en as c,Qa as d,Sa as e,tn as f,Ja as g,rn as h,Za as m,an as o}; +import{c as y,A as Ze,d3 as et,d4 as tt,h as m,d as X,r as _,bf as Se,d5 as Bt,al as z,a as p,bd as Tt,d6 as xe,b as Ee,E as re,b2 as Ft,m as ie,_ as he,cq as K,bz as Pt,j as at,u as nt,D as Et,au as $t,an as It,P as F,w as rt,aX as Ot,d7 as it,o as Dt,d8 as ve,i as Z,d9 as $e,bB as ot,cw as _t,da as Te,db as Ht,dc as At,dd as Lt,aL as Rt,cn as Ut,de as jt,df as Gt,S as zt,T as Kt,cV as Re,cz as se,L as qt,cf as Wt,$ as Xt,R as Ce,dg as Yt,dh as Jt,ai as Ue,c6 as Qt,ad as Zt,z as Y,di as ea,aA as ta,y as st,dj as aa,ah as lt,v as na,V as ra,dk as ia}from"./index-93a218ca.js";/* empty css */var oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const sa=oa;function je(r){for(var e=1;eNumber.MAX_SAFE_INTEGER)return String(Fe()?BigInt(r).toString():Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new r(Number.MAX_SAFE_INTEGER);if(n0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":De(this.number):this.origin}}]),r}(),da=function(){function r(e){if(tt(this,r),m(this,"origin",""),ut(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var t=e;if(Oe(t)&&(t=Number(t)),t=typeof t=="string"?t:De(t),_e(t)){var a=fe(t);this.negative=a.negative;var n=a.trimStr.split(".");this.integer=BigInt(n[0]);var i=n[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return et(r,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var a="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(a)}},{key:"negate",value:function(){var t=new r(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new r(t);var a=new r(t);if(a.isInvalidate())return this;var n=Math.max(this.getDecimalStr().length,a.getDecimalStr().length),i=this.alignDecimal(n),s=a.alignDecimal(n),o=(i+s).toString(),l=fe(o),c=l.negativeStr,d=l.trimStr,u="".concat(c).concat(d.padStart(n+1,"0"));return new r("".concat(u.slice(0,-n),".").concat(u.slice(-n)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),r}();function W(r){return Fe()?new da(r):new ca(r)}function Pe(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r==="")return"";var n=fe(r),i=n.negativeStr,s=n.integerStr,o=n.decimalStr,l="".concat(e).concat(o),c="".concat(i).concat(s);if(t>=0){var d=Number(o[t]);if(d>=5&&!a){var u=W(r).add("".concat(i,"0.").concat("0".repeat(t)).concat(10-d));return Pe(u.toString(),e,t,a)}return t===0?c:"".concat(c).concat(e).concat(o.padEnd(t,"0").slice(0,t))}return l===".0"?c:"".concat(c).concat(l)}var va=200,fa=600;const ha=X({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var a=t.slots,n=t.emit,i=_(),s=function(c,d){c.preventDefault(),n("step",d);function u(){n("step",d),i.value=setTimeout(u,va)}i.value=setTimeout(u,fa)},o=function(){clearTimeout(i.value)};return Se(function(){o()}),function(){if(Bt())return null;var l=e.prefixCls,c=e.upDisabled,d=e.downDisabled,u="".concat(l,"-handler"),x=z(u,"".concat(u,"-up"),m({},"".concat(u,"-up-disabled"),c)),N=z(u,"".concat(u,"-down"),m({},"".concat(u,"-down-disabled"),d)),w={unselectable:"on",role:"button",onMouseup:o,onMouseleave:o},M=a.upNode,P=a.downNode;return y("div",{class:"".concat(u,"-wrap")},[y("span",p(p({},w),{},{onMousedown:function(b){s(b,!0)},"aria-label":"Increase Value","aria-disabled":c,class:x}),[(M==null?void 0:M())||y("span",{unselectable:"on",class:"".concat(l,"-handler-up-inner")},null)]),y("span",p(p({},w),{},{onMousedown:function(b){s(b,!1)},"aria-label":"Decrease Value","aria-disabled":d,class:N}),[(P==null?void 0:P())||y("span",{unselectable:"on",class:"".concat(l,"-handler-down-inner")},null)])])}}});function ma(r,e){var t=_(null);function a(){try{var i=r.value,s=i.selectionStart,o=i.selectionEnd,l=i.value,c=l.substring(0,s),d=l.substring(o);t.value={start:s,end:o,value:l,beforeTxt:c,afterTxt:d}}catch{}}function n(){if(r.value&&t.value&&e.value)try{var i=r.value.value,s=t.value,o=s.beforeTxt,l=s.afterTxt,c=s.start,d=i.length;if(i.endsWith(l))d=i.length-t.value.afterTxt.length;else if(i.startsWith(o))d=o.length;else{var u=o[c-1],x=i.indexOf(u,c-1);x!==-1&&(d=x+1)}r.value.setSelectionRange(d,d)}catch(N){Tt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(N.message))}}return[a,n]}const pa=function(){var r=_(0),e=function(){xe.cancel(r.value)};return Se(function(){e()}),function(t){e(),r.value=xe(function(){t()})}};var ga=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],Ge=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},ze=function(e){var t=W(e);return t.isInvalidate()?null:t},ct=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const ba=X({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:p(p({},ct()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var a=t.attrs,n=t.slots,i=t.emit,s=t.expose,o=_(),l=_(!1),c=_(!1),d=_(!1),u=_(W(e.value));function x(k){e.value===void 0&&(u.value=k)}var N=function(v,T){if(!T)return e.precision>=0?e.precision:Math.max(me(v),me(e.step))},w=function(v){var T=String(v);if(e.parser)return e.parser(T);var h=T;return e.decimalSeparator&&(h=h.replace(e.decimalSeparator,".")),h.replace(/[^\w.-]+/g,"")},M=_(""),P=function(v,T){if(e.formatter)return e.formatter(v,{userTyping:T,input:String(M.value)});var h=typeof v=="number"?De(v):v;if(!T){var j=N(h,T);if(_e(h)&&(e.decimalSeparator||j>=0)){var A=e.decimalSeparator||".";h=Pe(h,A,j)}}return h},V=function(){var k=e.value;return u.value.isInvalidate()&&["string","number"].includes(Ee(k))?Number.isNaN(k)?"":k:P(u.value.toString(),!1)}();M.value=V;function b(k,v){M.value=P(k.isInvalidate()?k.toString(!1):k.toString(!v),v)}var S=re(function(){return ze(e.max)}),C=re(function(){return ze(e.min)}),g=re(function(){return!S.value||!u.value||u.value.isInvalidate()?!1:S.value.lessEquals(u.value)}),I=re(function(){return!C.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals(C.value)}),B=ma(o,l),f=Ft(B,2),E=f[0],D=f[1],$=function(v){return S.value&&!v.lessEquals(S.value)?S.value:C.value&&!C.value.lessEquals(v)?C.value:null},L=function(v){return!$(v)},H=function(v,T){var h=v,j=L(h)||h.isEmpty();if(!h.isEmpty()&&!T&&(h=$(h)||h,j=!0),!e.readonly&&!e.disabled&&j){var A=h.toString(),q=N(A,T);if(q>=0&&(h=W(Pe(A,".",q))),!h.equals(u.value)){var Q;x(h),(Q=e.onChange)===null||Q===void 0||Q.call(e,h.isEmpty()?null:Ge(e.stringMode,h)),e.value===void 0&&b(h,T)}return h}return u.value},G=pa(),R=function k(v){var T;if(E(),M.value=v,!d.value){var h=w(v),j=W(h);j.isNaN()||H(j,!0)}(T=e.onInput)===null||T===void 0||T.call(e,v),G(function(){var A=v;e.parser||(A=v.replace(/。/g,".")),A!==v&&k(A)})},U=function(){d.value=!0},J=function(){d.value=!1,R(o.value.value)},ee=function(v){R(v.target.value)},te=function(v){var T,h;if(!(v&&g.value||!v&&I.value)){c.value=!1;var j=W(e.step);v||(j=j.negate());var A=(u.value||W(0)).add(j.toString()),q=H(A,!1);(T=e.onStep)===null||T===void 0||T.call(e,Ge(e.stringMode,q),{offset:e.step,type:v?"up":"down"}),(h=o.value)===null||h===void 0||h.focus()}},le=function(v){var T=W(w(M.value)),h=T;T.isNaN()?h=u.value:h=H(T,v),e.value!==void 0?b(u.value,!1):h.isNaN()||b(h,!1)},ue=function(v){var T=v.which;if(c.value=!0,T===K.ENTER){var h;d.value||(c.value=!1),le(!1),(h=e.onPressEnter)===null||h===void 0||h.call(e,v)}e.keyboard!==!1&&!d.value&&[K.UP,K.DOWN].includes(T)&&(te(K.UP===T),v.preventDefault())},O=function(){c.value=!1},ne=function(v){le(!1),l.value=!1,c.value=!1,i("blur",v)};return ie(function(){return e.precision},function(){u.value.isInvalidate()||b(u.value,!1)},{flush:"post"}),ie(function(){return e.value},function(){var k=W(e.value);u.value=k;var v=W(w(M.value));(!k.equals(v)||!c.value||e.formatter)&&b(k,c.value)},{flush:"post"}),ie(M,function(){e.formatter&&D()},{flush:"post"}),ie(function(){return e.disabled},function(k){k&&(l.value=!1)}),s({focus:function(){var v;(v=o.value)===null||v===void 0||v.focus()},blur:function(){var v;(v=o.value)===null||v===void 0||v.blur()}}),function(){var k,v=p(p({},a),e),T=v.prefixCls,h=T===void 0?"rc-input-number":T,j=v.min,A=v.max,q=v.step,Q=q===void 0?1:q;v.defaultValue,v.value;var pe=v.disabled,ge=v.readonly;v.keyboard;var be=v.controls,ke=be===void 0?!0:be,ye=v.autofocus;v.stringMode,v.parser,v.formatter,v.precision,v.decimalSeparator,v.onChange,v.onInput,v.onPressEnter,v.onStep;var St=v.lazy,Ct=v.class,kt=v.style,Nt=he(v,ga),wt=n.upHandler,Vt=n.downHandler,Le="".concat(h,"-input"),Ne={};return St?Ne.onChange=ee:Ne.onInput=ee,y("div",{class:z(h,Ct,(k={},m(k,"".concat(h,"-focused"),l.value),m(k,"".concat(h,"-disabled"),pe),m(k,"".concat(h,"-readonly"),ge),m(k,"".concat(h,"-not-a-number"),u.value.isNaN()),m(k,"".concat(h,"-out-of-range"),!u.value.isInvalidate()&&!L(u.value)),k)),style:kt,onKeydown:ue,onKeyup:O},[ke&&y(ha,{prefixCls:h,upDisabled:g.value,downDisabled:I.value,onStep:te},{upNode:wt,downNode:Vt}),y("div",{class:"".concat(Le,"-wrap")},[y("input",p(p(p({autofocus:ye,autocomplete:"off",role:"spinbutton","aria-valuemin":j,"aria-valuemax":A,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:Q},Nt),{},{ref:o,class:Le,value:M.value,disabled:pe,readonly:ge,onFocus:function(Mt){l.value=!0,i("focus",Mt)}},Ne),{},{onBlur:ne,onCompositionstart:U,onCompositionend:J}),null)])])}}});function we(r){return r!=null}var ya=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Ke=ct(),xa=function(){return p(p({},Ke),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:F.any,addonAfter:F.any,prefix:F.any,"onUpdate:value":Ke.onChange,valueModifiers:Object})},Ve=X({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:xa(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var a=t.emit,n=t.expose,i=t.attrs,s=t.slots,o=at(),l=nt("input-number",e),c=l.prefixCls,d=l.size,u=l.direction,x=_(e.value===void 0?e.defaultValue:e.value),N=_(!1);ie(function(){return e.value},function(){x.value=e.value});var w=_(null),M=function(){var g;(g=w.value)===null||g===void 0||g.focus()},P=function(){var g;(g=w.value)===null||g===void 0||g.blur()};n({focus:M,blur:P});var V=function(g){e.value===void 0&&(x.value=g),a("update:value",g),a("change",g),o.onFieldChange()},b=function(g){N.value=!1,a("blur",g),o.onFieldBlur()},S=function(g){N.value=!0,a("focus",g)};return function(){var C,g,I,B,f=p(p({},i),e),E=f.class,D=f.bordered,$=f.readonly,L=f.style,H=f.addonBefore,G=H===void 0?(C=s.addonBefore)===null||C===void 0?void 0:C.call(s):H,R=f.addonAfter,U=R===void 0?(g=s.addonAfter)===null||g===void 0?void 0:g.call(s):R,J=f.prefix,ee=J===void 0?(I=s.prefix)===null||I===void 0?void 0:I.call(s):J,te=f.valueModifiers,le=te===void 0?{}:te,ue=he(f,ya),O=c.value,ne=d.value,k=z((B={},m(B,"".concat(O,"-lg"),ne==="large"),m(B,"".concat(O,"-sm"),ne==="small"),m(B,"".concat(O,"-rtl"),u.value==="rtl"),m(B,"".concat(O,"-readonly"),$),m(B,"".concat(O,"-borderless"),!D),B),E),v=y(ba,p(p({},$t(ue,["size","defaultValue"])),{},{ref:w,lazy:!!le.lazy,value:x.value,class:k,prefixCls:O,readonly:$,onChange:V,onBlur:b,onFocus:S}),{upHandler:function(){return y(ua,{class:"".concat(O,"-handler-up-inner")},null)},downHandler:function(){return y(Et,{class:"".concat(O,"-handler-down-inner")},null)}}),T=we(G)||we(U);if(we(ee)){var h,j=z("".concat(O,"-affix-wrapper"),(h={},m(h,"".concat(O,"-affix-wrapper-focused"),N.value),m(h,"".concat(O,"-affix-wrapper-disabled"),e.disabled),m(h,"".concat(O,"-affix-wrapper-rtl"),u.value==="rtl"),m(h,"".concat(O,"-affix-wrapper-readonly"),$),m(h,"".concat(O,"-affix-wrapper-borderless"),!D),m(h,"".concat(E),!T&&E),h));v=y("div",{class:j,style:L,onMouseup:function(){return w.value.focus()}},[y("span",{class:"".concat(O,"-prefix")},[ee]),v])}if(T){var A,q="".concat(O,"-group"),Q="".concat(q,"-addon"),pe=G?y("div",{class:Q},[G]):null,ge=U?y("div",{class:Q},[U]):null,be=z("".concat(O,"-wrapper"),q,m({},"".concat(q,"-rtl"),u.value==="rtl")),ke=z("".concat(O,"-group-wrapper"),(A={},m(A,"".concat(O,"-group-wrapper-sm"),ne==="small"),m(A,"".concat(O,"-group-wrapper-lg"),ne==="large"),m(A,"".concat(O,"-group-wrapper-rtl"),u.value==="rtl"),A),E);v=y("div",{class:ke,style:L},[y("div",{class:be},[pe,v,ge])])}return It(v,{style:L})}}});const Sa=Pt(Ve,{install:function(e){return e.component(Ve.name,Ve),e}});var dt=function(e,t){var a,n,i=t.attrs,s=i.included,o=i.vertical,l=i.style,c=i.class,d=i.length,u=i.offset,x=i.reverse;d<0&&(x=!x,d=Math.abs(d),u=100-u);var N=o?(a={},m(a,x?"top":"bottom","".concat(u,"%")),m(a,x?"bottom":"top","auto"),m(a,"height","".concat(d,"%")),a):(n={},m(n,x?"right":"left","".concat(u,"%")),m(n,x?"left":"right","auto"),m(n,"width","".concat(d,"%")),n),w=p(p({},l),N);return s?y("div",{class:c,style:w},null):null};dt.inheritAttrs=!1;const vt=dt;var Ca=function(e,t,a,n,i,s){rt(a?n>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var o=Object.keys(t).map(parseFloat).sort(function(c,d){return c-d});if(a&&n)for(var l=i;l<=s;l+=n)o.indexOf(l)===-1&&o.push(l);return o},ft=function(e,t){var a=t.attrs,n=a.prefixCls,i=a.vertical,s=a.reverse,o=a.marks,l=a.dots,c=a.step,d=a.included,u=a.lowerBound,x=a.upperBound,N=a.max,w=a.min,M=a.dotStyle,P=a.activeDotStyle,V=N-w,b=Ca(i,o,l,c,w,N).map(function(S){var C,g="".concat(Math.abs(S-w)/V*100,"%"),I=!d&&S===x||d&&S<=x&&S>=u,B=i?p(p({},M),{},m({},s?"top":"bottom",g)):p(p({},M),{},m({},s?"right":"left",g));I&&(B=p(p({},B),P));var f=z((C={},m(C,"".concat(n,"-dot"),!0),m(C,"".concat(n,"-dot-active"),I),m(C,"".concat(n,"-dot-reverse"),s),C));return y("span",{class:f,style:B,key:S},null)});return y("div",{class:"".concat(n,"-step")},[b])};ft.inheritAttrs=!1;const ka=ft;var ht=function(e,t){var a=t.attrs,n=t.slots,i=a.class,s=a.vertical,o=a.reverse,l=a.marks,c=a.included,d=a.upperBound,u=a.lowerBound,x=a.max,N=a.min,w=a.onClickLabel,M=Object.keys(l),P=n.mark,V=x-N,b=M.map(parseFloat).sort(function(S,C){return S-C}).map(function(S){var C,g=typeof l[S]=="function"?l[S]():l[S],I=Ee(g)==="object"&&!Ot(g),B=I?g.label:g;if(!B&&B!==0)return null;P&&(B=P({point:S,label:B}));var f=!c&&S===d||c&&S<=d&&S>=u,E=z((C={},m(C,"".concat(i,"-text"),!0),m(C,"".concat(i,"-text-active"),f),C)),D=m({marginBottom:"-50%"},o?"top":"bottom","".concat((S-N)/V*100,"%")),$=m({transform:"translateX(".concat(o?"50%":"-50%",")"),msTransform:"translateX(".concat(o?"50%":"-50%",")")},o?"right":"left","".concat((S-N)/V*100,"%")),L=s?D:$,H=I?p(p({},L),g.style):L,G=m({},it?"onTouchstartPassive":"onTouchstart",function(R){return w(R,S)});return y("span",p({class:E,style:H,key:S,onMousedown:function(U){return w(U,S)}},G),[B])});return y("div",{class:i},[b])};ht.inheritAttrs=!1;const Na=ht,mt=X({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:F.oneOfType([F.number,F.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(e,t){var a=t.attrs,n=t.emit,i=t.expose,s=_(!1),o=_(),l=function(){document.activeElement===o.value&&(s.value=!0)},c=function(b){s.value=!1,n("blur",b)},d=function(){s.value=!1},u=function(){var b;(b=o.value)===null||b===void 0||b.focus()},x=function(){var b;(b=o.value)===null||b===void 0||b.blur()},N=function(){s.value=!0,u()},w=function(b){b.preventDefault(),u(),n("mousedown",b)};i({focus:u,blur:x,clickFocus:N,ref:o});var M=null;Dt(function(){M=ve(document,"mouseup",l)}),Se(function(){var V;(V=M)===null||V===void 0||V.remove()});var P=re(function(){var V,b,S=e.vertical,C=e.offset,g=e.reverse;return S?(V={},m(V,g?"top":"bottom","".concat(C,"%")),m(V,g?"bottom":"top","auto"),m(V,"transform",g?null:"translateY(+50%)"),V):(b={},m(b,g?"right":"left","".concat(C,"%")),m(b,g?"left":"right","auto"),m(b,"transform","translateX(".concat(g?"+":"-","50%)")),b)});return function(){var V=e.prefixCls,b=e.disabled,S=e.min,C=e.max,g=e.value,I=e.tabindex,B=e.ariaLabel,f=e.ariaLabelledBy,E=e.ariaValueTextFormatter,D=e.onMouseenter,$=e.onMouseleave,L=z(a.class,m({},"".concat(V,"-handle-click-focused"),s.value)),H={"aria-valuemin":S,"aria-valuemax":C,"aria-valuenow":g,"aria-disabled":!!b},G=[a.style,P.value],R=I||0;(b||I===null)&&(R=null);var U;E&&(U=E(g));var J=p(p(p({},a),{},{role:"slider",tabindex:R},H),{},{class:L,onBlur:c,onKeydown:d,onMousedown:w,onMouseenter:D,onMouseleave:$,ref:o,style:G});return y("div",p(p({},J),{},{"aria-label":B,"aria-labelledby":f,"aria-valuetext":U}),null)}}});function Me(r,e){try{return Object.keys(e).some(function(t){return r.target===e[t].ref})}catch{return!1}}function pt(r,e){var t=e.min,a=e.max;return ra}function qe(r){return r.touches.length>1||r.type.toLowerCase()==="touchend"&&r.touches.length>0}function We(r,e){var t=e.marks,a=e.step,n=e.min,i=e.max,s=Object.keys(t).map(parseFloat);if(a!==null){var o=Math.pow(10,gt(a)),l=Math.floor((i*o-n*o)/(a*o)),c=Math.min((r-n)/a,l),d=Math.round(c)*a+n;s.push(d)}var u=s.map(function(x){return Math.abs(r-x)});return s[u.indexOf(Math.min.apply(Math,Z(u)))]}function gt(r){var e=r.toString(),t=0;return e.indexOf(".")>=0&&(t=e.length-e.indexOf(".")-1),t}function Xe(r,e){var t=1;return window.visualViewport&&(t=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(r?e.clientY:e.pageX)/t}function Ye(r,e){var t=1;return window.visualViewport&&(t=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(r?e.touches[0].clientY:e.touches[0].pageX)/t}function Je(r,e){var t=e.getBoundingClientRect();return r?t.top+t.height*.5:window.pageXOffset+t.left+t.width*.5}function He(r,e){var t=e.max,a=e.min;return r<=a?a:r>=t?t:r}function bt(r,e){var t=e.step,a=isFinite(We(r,e))?We(r,e):0;return t===null?a:parseFloat(a.toFixed(gt(t)))}function oe(r){r.stopPropagation(),r.preventDefault()}function wa(r,e,t){var a={increase:function(o,l){return o+l},decrease:function(o,l){return o-l}},n=a[r](Object.keys(t.marks).indexOf(JSON.stringify(e)),1),i=Object.keys(t.marks)[n];return t.step?a[r](e,t.step):Object.keys(t.marks).length&&t.marks[i]?t.marks[i]:e}function yt(r,e,t){var a="increase",n="decrease",i=a;switch(r.keyCode){case K.UP:i=e&&t?n:a;break;case K.RIGHT:i=!e&&t?n:a;break;case K.DOWN:i=e&&t?a:n;break;case K.LEFT:i=!e&&t?a:n;break;case K.END:return function(s,o){return o.max};case K.HOME:return function(s,o){return o.min};case K.PAGE_UP:return function(s,o){return s+o.step*2};case K.PAGE_DOWN:return function(s,o){return s-o.step*2};default:return}return function(s,o){return wa(i,s,o)}}var Va=["index","directives","className","style"];function ae(){}function xt(r){var e={id:String,min:Number,max:Number,step:Number,marks:F.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:F.object,maximumTrackStyle:F.object,handleStyle:F.oneOfType([F.object,F.arrayOf(F.object)]),trackStyle:F.oneOfType([F.object,F.arrayOf(F.object)]),railStyle:F.object,dotStyle:F.object,activeDotStyle:F.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return X({compatConfig:{MODE:3},name:"CreateSlider",mixins:[$e,r],inheritAttrs:!1,slots:["mark"],props:ot(e,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var a=this.step,n=this.max,i=this.min,s=isFinite(n-i)?(n-i)%a===0:!0;return rt(a&&Math.floor(a)===a?s:!0,"Slider[max] - Slider[min] (".concat(n-i,") should be a multiple of Slider[step] (").concat(a,")")),this.handlesRefs={},{}},mounted:function(){var a=this;this.$nextTick(function(){a.document=a.sliderRef&&a.sliderRef.ownerDocument;var n=a.autofocus,i=a.disabled;n&&!i&&a.focus()})},beforeUnmount:function(){var a=this;this.$nextTick(function(){a.removeDocumentEvents()})},methods:{defaultHandle:function(a){var n=a.index;a.directives;var i=a.className,s=a.style,o=he(a,Va);if(delete o.dragging,o.value===null)return null;var l=p(p({},o),{},{class:i,style:s,key:n});return y(mt,l,null)},onDown:function(a,n){var i=n,s=this.$props,o=s.draggableTrack,l=s.vertical,c=this.$data.bounds,d=o&&this.positionGetValue?this.positionGetValue(i)||[]:[],u=Me(a,this.handlesRefs);if(this.dragTrack=o&&c.length>=2&&!u&&!d.map(function(N,w){var M=w?!0:N>=c[w];return w===d.length-1?N<=c[w]:M}).some(function(N){return!N}),this.dragTrack)this.dragOffset=i,this.startBounds=Z(c);else{if(!u)this.dragOffset=0;else{var x=Je(l,a.target);this.dragOffset=i-x,i=x}this.onStart(i)}},onMouseDown:function(a){if(a.button===0){this.removeDocumentEvents();var n=this.$props.vertical,i=Xe(n,a);this.onDown(a,i),this.addDocumentMouseEvents()}},onTouchStart:function(a){if(!qe(a)){var n=this.vertical,i=Ye(n,a);this.onDown(a,i),this.addDocumentTouchEvents(),oe(a)}},onFocus:function(a){var n=this.vertical;if(Me(a,this.handlesRefs)&&!this.dragTrack){var i=Je(n,a.target);this.dragOffset=0,this.onStart(i),oe(a),this.$emit("focus",a)}},onBlur:function(a){this.dragTrack||this.onEnd(),this.$emit("blur",a)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(a){if(!this.sliderRef){this.onEnd();return}var n=Xe(this.vertical,a);this.onMove(a,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(a){if(qe(a)||!this.sliderRef){this.onEnd();return}var n=Ye(this.vertical,a);this.onMove(a,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(a){this.sliderRef&&Me(a,this.handlesRefs)&&this.onKeyboard(a)},onClickMarkLabel:function(a,n){var i=this;a.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return i.onEnd(!0)})},getSliderStart:function(){var a=this.sliderRef,n=this.vertical,i=this.reverse,s=a.getBoundingClientRect();return n?i?s.bottom:s.top:window.pageXOffset+(i?s.right:s.left)},getSliderLength:function(){var a=this.sliderRef;if(!a)return 0;var n=a.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=ve(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=ve(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=ve(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=ve(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var a;this.$props.disabled||(a=this.handlesRefs[0])===null||a===void 0||a.focus()},blur:function(){var a=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var i,s;(i=a.handlesRefs[n])===null||i===void 0||(s=i.blur)===null||s===void 0||s.call(i)})},calcValue:function(a){var n=this.vertical,i=this.min,s=this.max,o=Math.abs(Math.max(a,0)/this.getSliderLength()),l=n?(1-o)*(s-i)+i:o*(s-i)+i;return l},calcValueByPos:function(a){var n=this.reverse?-1:1,i=n*(a-this.getSliderStart()),s=this.trimAlignValue(this.calcValue(i));return s},calcOffset:function(a){var n=this.min,i=this.max,s=(a-n)/(i-n);return Math.max(0,s*100)},saveSlider:function(a){this.sliderRef=a},saveHandle:function(a,n){this.handlesRefs[a]=n}},render:function(){var a,n=this.prefixCls,i=this.marks,s=this.dots,o=this.step,l=this.included,c=this.disabled,d=this.vertical,u=this.reverse,x=this.min,N=this.max,w=this.maximumTrackStyle,M=this.railStyle,P=this.dotStyle,V=this.activeDotStyle,b=this.id,S=this.$attrs,C=S.class,g=S.style,I=this.renderSlider(),B=I.tracks,f=I.handles,E=z(n,C,(a={},m(a,"".concat(n,"-with-marks"),Object.keys(i).length),m(a,"".concat(n,"-disabled"),c),m(a,"".concat(n,"-vertical"),d),a)),D={vertical:d,marks:i,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:N,min:x,reverse:u,class:"".concat(n,"-mark"),onClickLabel:c?ae:this.onClickMarkLabel},$=m({},it?"onTouchstartPassive":"onTouchstart",c?ae:this.onTouchStart);return y("div",p(p({id:b,ref:this.saveSlider,tabindex:"-1",class:E},$),{},{onMousedown:c?ae:this.onMouseDown,onMouseup:c?ae:this.onMouseUp,onKeydown:c?ae:this.onKeyDown,onFocus:c?ae:this.onFocus,onBlur:c?ae:this.onBlur,style:g}),[y("div",{class:"".concat(n,"-rail"),style:p(p({},w),M)},null),B,y(ka,{prefixCls:n,vertical:d,reverse:u,marks:i,dots:s,step:o,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:N,min:x,dotStyle:P,activeDotStyle:V},null),f,y(Na,D,{mark:this.$slots.mark}),_t(this)])}})}var Ma=X({compatConfig:{MODE:3},name:"Slider",mixins:[$e],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:F.oneOfType([F.number,F.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler:function(e){this.setChangeValue(e)},deep:!0},min:function(){var e=this.sValue;this.setChangeValue(e)},max:function(){var e=this.sValue;this.setChangeValue(e)}},methods:{setChangeValue:function(e){var t=e!==void 0?e:this.sValue,a=this.trimAlignValue(t,this.$props);a!==this.sValue&&(this.setState({sValue:a}),pt(t,this.$props)&&this.$emit("change",a))},onChange:function(e){var t=!Te(this,"value"),a=e.sValue>this.max?p(p({},e),{},{sValue:this.max}):e;t&&this.setState(a);var n=a.sValue;this.$emit("change",n)},onStart:function(e){this.setState({dragging:!0});var t=this.sValue;this.$emit("beforeChange",t);var a=this.calcValueByPos(e);this.startValue=a,this.startPosition=e,a!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:a}))},onEnd:function(e){var t=this.dragging;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(e,t){oe(e);var a=this.sValue,n=this.calcValueByPos(t);n!==a&&this.onChange({sValue:n})},onKeyboard:function(e){var t=this.$props,a=t.reverse,n=t.vertical,i=yt(e,n,a);if(i){oe(e);var s=this.sValue,o=i(s,this.$props),l=this.trimAlignValue(o);if(l===s)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;var a=p(p({},this.$props),t),n=He(e,a);return bt(n,a)},getTrack:function(e){var t=e.prefixCls,a=e.reverse,n=e.vertical,i=e.included,s=e.minimumTrackStyle,o=e.mergedTrackStyle,l=e.length,c=e.offset;return y(vt,{class:"".concat(t,"-track"),vertical:n,included:i,offset:c,reverse:a,length:l,style:p(p({},s),o)},null)},renderSlider:function(){var e=this,t=this.prefixCls,a=this.vertical,n=this.included,i=this.disabled,s=this.minimumTrackStyle,o=this.trackStyle,l=this.handleStyle,c=this.tabindex,d=this.ariaLabelForHandle,u=this.ariaLabelledByForHandle,x=this.ariaValueTextFormatterForHandle,N=this.min,w=this.max,M=this.startPoint,P=this.reverse,V=this.handle,b=this.defaultHandle,S=V||b,C=this.sValue,g=this.dragging,I=this.calcOffset(C),B=S({class:"".concat(t,"-handle"),prefixCls:t,vertical:a,offset:I,value:C,dragging:g,disabled:i,min:N,max:w,reverse:P,index:0,tabindex:c,ariaLabel:d,ariaLabelledBy:u,ariaValueTextFormatter:x,style:l[0]||l,ref:function($){return e.saveHandle(0,$)},onFocus:this.onFocus,onBlur:this.onBlur}),f=M!==void 0?this.calcOffset(M):0,E=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:P,vertical:a,included:n,offset:f,minimumTrackStyle:s,mergedTrackStyle:E,length:I-f}),handles:B}}}});const Ba=xt(Ma);var ce=function(e){var t=e.value,a=e.handle,n=e.bounds,i=e.props,s=i.allowCross,o=i.pushable,l=Number(o),c=He(t,i),d=c;return!s&&a!=null&&n!==void 0&&(a>0&&c<=n[a-1]+l&&(d=n[a-1]+l),a=n[a+1]-l&&(d=n[a+1]-l)),bt(d,i)},Ta={defaultValue:F.arrayOf(F.number),value:F.arrayOf(F.number),count:Number,pushable:Ht(F.oneOfType([F.looseBool,F.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:F.arrayOf(F.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},Fa=X({compatConfig:{MODE:3},name:"Range",mixins:[$e],inheritAttrs:!1,props:ot(Ta,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var e=this,t=this.count,a=this.min,n=this.max,i=Array.apply(void 0,Z(Array(t+1))).map(function(){return a}),s=Te(this,"defaultValue")?this.defaultValue:i,o=this.value;o===void 0&&(o=s);var l=o.map(function(d,u){return ce({value:d,handle:u,props:e.$props})}),c=l[0]===n?0:l.length-1;return{sHandle:null,recent:c,bounds:l}},watch:{value:{handler:function(e){var t=this.bounds;this.setChangeValue(e||t)},deep:!0},min:function(){var e=this.value;this.setChangeValue(e||this.bounds)},max:function(){var e=this.value;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue:function(e){var t=this,a=this.bounds,n=e.map(function(s,o){return ce({value:s,handle:o,bounds:a,props:t.$props})});if(a.length===n.length){if(n.every(function(s,o){return s===a[o]}))return null}else n=e.map(function(s,o){return ce({value:s,handle:o,props:t.$props})});if(this.setState({bounds:n}),e.some(function(s){return pt(s,t.$props)})){var i=e.map(function(s){return He(s,t.$props)});this.$emit("change",i)}},onChange:function(e){var t=!Te(this,"value");if(t)this.setState(e);else{var a={};["sHandle","recent"].forEach(function(s){e[s]!==void 0&&(a[s]=e[s])}),Object.keys(a).length&&this.setState(a)}var n=p(p({},this.$data),e),i=n.bounds;this.$emit("change",i)},positionGetValue:function(e){var t=this.getValue(),a=this.calcValueByPos(e),n=this.getClosestBound(a),i=this.getBoundNeedMoving(a,n),s=t[i];if(a===s)return null;var o=Z(t);return o[i]=a,o},onStart:function(e){var t=this.bounds;this.$emit("beforeChange",t);var a=this.calcValueByPos(e);this.startValue=a,this.startPosition=e;var n=this.getClosestBound(a);this.prevMovedHandleIndex=this.getBoundNeedMoving(a,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var i=t[this.prevMovedHandleIndex];if(a!==i){var s=Z(t);s[this.prevMovedHandleIndex]=a,this.onChange({bounds:s})}},onEnd:function(e){var t=this.sHandle;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(e,t,a,n){oe(e);var i=this.$data,s=this.$props,o=s.max||100,l=s.min||0;if(a){var c=s.vertical?-t:t;c=s.reverse?-c:c;var d=o-Math.max.apply(Math,Z(n)),u=l-Math.min.apply(Math,Z(n)),x=Math.min(Math.max(c/(this.getSliderLength()/100),u),d),N=n.map(function(b){return Math.floor(Math.max(Math.min(b+x,o),l))});i.bounds.map(function(b,S){return b===N[S]}).some(function(b){return!b})&&this.onChange({bounds:N});return}var w=this.bounds,M=this.sHandle,P=this.calcValueByPos(t),V=w[M];P!==V&&this.moveTo(P)},onKeyboard:function(e){var t=this.$props,a=t.reverse,n=t.vertical,i=yt(e,n,a);if(i){oe(e);var s=this.bounds,o=this.sHandle,l=s[o===null?this.recent:o],c=i(l,this.$props),d=ce({value:c,handle:o,bounds:s,props:this.$props});if(d===l)return;var u=!0;this.moveTo(d,u)}},getClosestBound:function(e){for(var t=this.bounds,a=0,n=1;n=t[n]&&(a=n);return Math.abs(t[a+1]-e)=n.length||s<0)return!1;var o=t+a,l=n[s],c=this.pushable,d=Number(c),u=a*(e[o]-l);return this.pushHandle(e,o,a,d-u)?(e[t]=l,!0):!1},trimAlignValue:function(e){var t=this.sHandle,a=this.bounds;return ce({value:e,handle:t,bounds:a,props:this.$props})},ensureValueNotConflict:function(e,t,a){var n=a.allowCross,i=a.pushable,s=this.$data||{},o=s.bounds;if(e=e===void 0?s.sHandle:e,i=Number(i),!n&&e!=null&&o!==void 0){if(e>0&&t<=o[e-1]+i)return o[e-1]+i;if(e=o[e+1]-i)return o[e+1]-i}return t},getTrack:function(e){var t=e.bounds,a=e.prefixCls,n=e.reverse,i=e.vertical,s=e.included,o=e.offsets,l=e.trackStyle;return t.slice(0,-1).map(function(c,d){var u,x=d+1,N=z((u={},m(u,"".concat(a,"-track"),!0),m(u,"".concat(a,"-track-").concat(x),!0),u));return y(vt,{class:N,vertical:i,reverse:n,included:s,offset:o[x-1],length:o[x]-o[x-1],style:l[d],key:x},null)})},renderSlider:function(){var e=this,t=this.sHandle,a=this.bounds,n=this.prefixCls,i=this.vertical,s=this.included,o=this.disabled,l=this.min,c=this.max,d=this.reverse,u=this.handle,x=this.defaultHandle,N=this.trackStyle,w=this.handleStyle,M=this.tabindex,P=this.ariaLabelGroupForHandles,V=this.ariaLabelledByGroupForHandles,b=this.ariaValueTextFormatterGroupForHandles,S=u||x,C=a.map(function(B){return e.calcOffset(B)}),g="".concat(n,"-handle"),I=a.map(function(B,f){var E,D=M[f]||0;(o||M[f]===null)&&(D=null);var $=t===f;return S({class:z((E={},m(E,g,!0),m(E,"".concat(g,"-").concat(f+1),!0),m(E,"".concat(g,"-dragging"),$),E)),prefixCls:n,vertical:i,dragging:$,offset:C[f],value:B,index:f,tabindex:D,min:l,max:c,reverse:d,disabled:o,style:w[f],ref:function(H){return e.saveHandle(f,H)},onFocus:e.onFocus,onBlur:e.onBlur,ariaLabel:P[f],ariaLabelledBy:V[f],ariaValueTextFormatter:b[f]})});return{tracks:this.getTrack({bounds:a,prefixCls:n,reverse:d,vertical:i,included:s,offsets:C,trackStyle:N}),handles:I}}}});const Pa=xt(Fa),Ea=X({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:At(),setup:function(e,t){var a=t.attrs,n=t.slots,i=_(null),s=_(null);function o(){xe.cancel(s.value),s.value=null}function l(){s.value=xe(function(){var d;(d=i.value)===null||d===void 0||d.forcePopupAlign(),s.value=null})}var c=function(){o(),e.visible&&l()};return ie([function(){return e.visible},function(){return e.title}],function(){c()},{flush:"post",immediate:!0}),Lt(function(){c()}),Se(function(){o()}),function(){return y(Rt,p(p({ref:i},e),a),n)}}});var $a=["value","dragging","index"],Ia=["tooltipPrefixCls","range","id"],Oa=function(e){return typeof e=="number"?e.toString():""},Da=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return Oa}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},_a=X({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:Da(),slots:["mark"],setup:function(e,t){var a=t.attrs,n=t.slots,i=t.emit,s=t.expose,o=nt("slider",e),l=o.prefixCls,c=o.rootPrefixCls,d=o.direction,u=o.getPopupContainer,x=o.configProvider,N=at(),w=_(),M=_({}),P=function(f,E){M.value[f]=E},V=re(function(){return e.tooltipPlacement?e.tooltipPlacement:e.vertical?d.value==="rtl"?"left":"right":"top"}),b=function(){var f;(f=w.value)===null||f===void 0||f.focus()},S=function(){var f;(f=w.value)===null||f===void 0||f.blur()},C=function(f){i("update:value",f),i("change",f),N.onFieldChange()},g=function(f){i("blur",f)};s({focus:b,blur:S});var I=function(f){var E=f.tooltipPrefixCls,D=f.info,$=D.value,L=D.dragging,H=D.index,G=he(D,$a),R=e.tipFormatter,U=e.tooltipVisible,J=e.getTooltipPopupContainer,ee=R?M.value[H]||L:!1,te=U||U===void 0&ⅇreturn y(Ea,{prefixCls:E,title:R?R($):"",visible:te,placement:V.value,transitionName:"".concat(c.value,"-zoom-down"),key:H,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:J||u.value},{default:function(){return[y(mt,p(p({},G),{},{value:$,onMouseenter:function(){return P(H,!0)},onMouseleave:function(){return P(H,!1)}}),null)]}})};return function(){var B=e.tooltipPrefixCls,f=e.range,E=e.id,D=E===void 0?N.id.value:E,$=he(e,Ia),L=x.getPrefixCls("tooltip",B),H=z(a.class,m({},"".concat(l.value,"-rtl"),d.value==="rtl"));d.value==="rtl"&&!$.vertical&&($.reverse=!$.reverse);var G;return Ee(f)==="object"&&(G=f.draggableTrack),f?y(Pa,p(p({},$),{},{step:$.step,draggableTrack:G,class:H,ref:w,handle:function(U){return I({tooltipPrefixCls:L,prefixCls:l.value,info:U})},prefixCls:l.value,onChange:C,onBlur:g}),{mark:n.mark}):y(Ba,p(p({},$),{},{id:D,step:$.step,class:H,ref:w,handle:function(U){return I({tooltipPrefixCls:L,prefixCls:l.value,info:U})},prefixCls:l.value,onChange:C,onBlur:g}),{mark:n.mark})}}});const Ha=Ut(_a);var Aa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const La=Aa;function Qe(r){for(var e=1;e{const i=Sa,s=Ha;return zt(),Kt("div",ja,[y(i,Re({value:t.value,"onUpdate:value":n[0]||(n[0]=o=>t.value=o)},e),null,16,["value"]),y(s,Re({value:t.value,"onUpdate:value":n[1]||(n[1]=o=>t.value=o)},e,{class:"slide"}),null,16,["value"])])}}});const Ja=async r=>(await se.value.get("/files",{params:{folder_path:r}})).data,Qa=async r=>(await se.value.post("/delete_files",{file_paths:r})).data,Za=async(r,e,t)=>(await se.value.post("/move_files",{file_paths:r,dest:e,create_dest_folder:t})).data,en=async(r,e,t)=>(await se.value.post("/copy_files",{file_paths:r,dest:e,create_dest_folder:t})).data,Ga=async r=>{await se.value.post("/mkdirs",{dest_folder:r})},tn=async r=>(await se.value.post("/batch_get_files_info",{paths:r})).data;let de,Be;const za=async(r,e,t="image/webp")=>{const n=await(await fetch(r)).arrayBuffer();return new File([n],e,{type:t})},Ka=(r,e="image/webp")=>{if(!Be){de=document.createElement("canvas");const n=de.getContext("2d");qt(n),Be=n}const{videoHeight:t,videoWidth:a}=r;return de.width=a,de.height=t,Be.drawImage(r,0,0,a,t),de.toDataURL(e)},an=r=>{const e=_("");return new Promise(t=>{Ce.confirm({title:Y("inputFolderName"),content:()=>y(lt,{value:e.value,"onUpdate:value":a=>e.value=a},null),async onOk(){if(!e.value)return;const a=na(r,e.value);await Ga(a),t()}})})},nn=()=>y("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[ra("Tips: "),Y("multiSelectTips")]),rn=(r,e)=>{const t=Wt(),a=Xt(),n=o=>{var l;return!!((l=t.tagMap.get(r.fullpath))!=null&&l.some(c=>c.id===o))},i=_(null),s=async()=>{if(!i.value)return;const o=i.value;o.pause();const l=Ka(o);await aa({path:r.fullpath,base64_img:l,updated_time:r.date}),r.cover_url=URL.createObjectURL(await za(l,"cover")),st.success(Y("success")+"! "+Y("clearCacheIfNotTakeEffect"))};Ce.confirm({width:"80vw",title:r.name,icon:null,content:()=>y("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[y("video",{ref:i,style:{maxHeight:Yt?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:Jt(r),controls:!0,autoplay:!0},null),y("div",{style:{marginTop:"4px"}},[a.conf.all_custom_tags.map(o=>y("div",{key:o.id,onClick:()=>e==null?void 0:e(o.id),style:{background:n(o.id)?t.getColor(o.name):"var(--zp-primary-background)",color:n(o.id)?"white":t.getColor(o.name),margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease",border:`2px solid ${t.getColor(o.name)}`,"user-select":"none"}},[o.name]))]),y("div",{class:"actions",style:{marginTop:"16px"}},[y(Ue,{onClick:()=>Qt([Zt(r,!0)])},{icon:y(Ua,null,null),default:Y("download")}),y(Ue,{onClick:s},{default:Y("setCurrFrameAsVideoPoster")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},on=()=>{Ce.confirm({title:Y("confirmRebuildImageIndex"),onOk:async()=>{await ea(),ta.emit("searchIndexExpired"),st.success(Y("rebuildComplete"))}})},sn=r=>{const e=_(r.split(/[\\/]/).pop()??"");return new Promise(t=>{Ce.confirm({title:Y("rename"),content:()=>y(lt,{value:e.value,"onUpdate:value":a=>e.value=a},null),async onOk(){if(!e.value)return;const a=await ia({path:r,name:e.value});t(a.new_path)}})})};export{nn as M,Ya as _,on as a,sn as b,en as c,Qa as d,Sa as e,tn as f,Ja as g,rn as h,Za as m,an as o}; diff --git a/vue/dist/assets/globalSetting-e2331e68.js b/vue/dist/assets/globalSetting-07137205.js similarity index 96% rename from vue/dist/assets/globalSetting-e2331e68.js rename to vue/dist/assets/globalSetting-07137205.js index e3d7d6f9..68c0fece 100644 --- a/vue/dist/assets/globalSetting-e2331e68.js +++ b/vue/dist/assets/globalSetting-07137205.js @@ -1 +1 @@ -import{d as B,$ as K,r as D,m as X,n as Y,S as f,T as y,c as t,a1 as o,a2 as e,z as i,a0 as k,Y as v,U as p,X as M,aI as Z,E as j,W as h,V as _,aa as P,aP as q,ab as J,a6 as x,a3 as T,a7 as ee,aQ as te,aR as le,aS as ae,aT as ne,aM as oe,ai as F,ah as se,Z as de}from"./index-0a648427.js";import{_ as R,a as N,F as ue}from"./numInput-229c2aa0.js";import"./index-6e5caf8a.js";/* empty css *//* empty css */import{_ as O}from"./index-4035ad46.js";/* empty css */import{g as ie,C as re}from"./shortcut-16cf2087.js";import{a as ce}from"./functionalCallableComp-58260c55.js";const A="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",me=["width","height","src"],pe=B({__name:"ImageSetting",setup(G){function a($,r){return new Promise(m=>{const g=new Image;g.onload=()=>{const u=document.createElement("canvas");u.width=g.width*r,u.height=g.height*r,u.getContext("2d").drawImage(g,0,0,u.width,u.height),m(u.toDataURL())},g.src=$})}const d=K(),w=D("");return X(()=>[d.enableThumbnail,d.gridThumbnailResolution],Y(async()=>{d.enableThumbnail&&(w.value=await a(A,d.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),($,r)=>{const m=N,g=O;return f(),y(M,null,[t(m,{label:e(i)("defaultGridCellWidth")},{default:o(()=>[t(R,{min:64,max:1024,step:16,modelValue:e(d).defaultGridCellWidth,"onUpdate:modelValue":r[0]||(r[0]=u=>e(d).defaultGridCellWidth=u)},null,8,["modelValue"])]),_:1},8,["label"]),t(m,{label:e(i)("useThumbnailPreview")},{default:o(()=>[t(g,{checked:e(d).enableThumbnail,"onUpdate:checked":r[1]||(r[1]=u=>e(d).enableThumbnail=u)},null,8,["checked"])]),_:1},8,["label"]),e(d).enableThumbnail?(f(),k(m,{key:0,label:e(i)("thumbnailResolution")},{default:o(()=>[t(R,{modelValue:e(d).gridThumbnailResolution,"onUpdate:modelValue":r[2]||(r[2]=u=>e(d).gridThumbnailResolution=u),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):v("",!0),t(m,{label:e(i)("livePreview")},{default:o(()=>[p("div",null,[p("img",{width:e(d).defaultGridCellWidth,height:e(d).defaultGridCellWidth,src:e(d).enableThumbnail?w.value:e(A)},null,8,me)])]),_:1},8,["label"]),t(m,{label:e(i)("defaultShowChangeIndicators")},{default:o(()=>[t(g,{checked:e(d).defaultChangeIndchecked,"onUpdate:checked":r[3]||(r[3]=u=>e(d).defaultChangeIndchecked=u)},null,8,["checked"])]),_:1},8,["label"]),e(d).defaultChangeIndchecked?(f(),k(m,{key:1,label:e(i)("defaultSeedAsChange")},{default:o(()=>[t(g,{checked:e(d).defaultSeedChangeChecked,"onUpdate:checked":r[4]||(r[4]=u=>e(d).defaultSeedChangeChecked=u)},null,8,["checked"])]),_:1},8,["label"])):v("",!0),t(m,{label:e(i)("previewMaskBackgroundOpacity")},{default:o(()=>[t(R,{min:0,max:1,step:.05,modelValue:e(d).previewBgOpacity,"onUpdate:modelValue":r[5]||(r[5]=u=>e(d).previewBgOpacity=u)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),he={class:"panel"},ge={style:{"margin-top":"0"}},fe={class:"lang-select-wrap"},be={class:"col"},_e={class:"col"},ke={class:"col"},ve={class:"col"},we=B({__name:"globalSetting",setup(G){const a=K(),d=Z(),w=D(!1),$=async()=>{window.location.reload()},r=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],m=(s,l)=>{const I=ie(s);I&&(a.shortcut[l]=I)},g=async()=>{await te("shutdown_api_server_command"),await le.removeFile(ae),await ne()},u=j(()=>[{value:"empty",text:i("emptyStartPage")},{value:"last-workspace-state",text:i("restoreLastWorkspaceState")},...d.snapshots.map(l=>({value:`workspace_snapshot_${l.id}`,text:i("restoreWorkspaceSnapshot",[l.name])}))]);return(s,l)=>{var V;const I=oe,L=F,c=N,C=O,E=R,S=F,z=re,U=se,H=ue;return f(),y("div",he,[(V=e(a).conf)!=null&&V.is_readonly?(f(),k(I,{key:0,message:s.$t("readonlyModeSettingPageDesc"),type:"warning"},null,8,["message"])):v("",!0),v("",!0),t(H,null,{default:o(()=>{var W;return[p("h2",ge,h(e(i)("ImageBrowsingSettings")),1),t(pe),p("h2",null,h(e(i)("imgSearch")),1),t(c,{label:s.$t("rebuildImageIndex")},{default:o(()=>[t(L,{onClick:e(ce)},{default:o(()=>[_(h(s.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),p("h2",null,h(e(i)("autoRefresh")),1),t(c,{label:s.$t("autoRefreshWalkMode")},{default:o(()=>[t(C,{checked:e(a).autoRefreshWalkMode,"onUpdate:checked":l[0]||(l[0]=n=>e(a).autoRefreshWalkMode=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("autoRefreshNormalFixedMode")},{default:o(()=>[t(C,{checked:e(a).autoRefreshNormalFixedMode,"onUpdate:checked":l[1]||(l[1]=n=>e(a).autoRefreshNormalFixedMode=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:e(i)("autoRefreshWalkModePosLimit")},{default:o(()=>[t(E,{min:0,max:1024,step:16,modelValue:e(a).autoRefreshWalkModePosLimit,"onUpdate:modelValue":l[2]||(l[2]=n=>e(a).autoRefreshWalkModePosLimit=n)},null,8,["modelValue"])]),_:1},8,["label"]),p("h2",null,h(e(i)("other")),1),t(c,{label:s.$t("lang")},{default:o(()=>[p("div",fe,[t(e(P),{options:r,value:e(a).lang,"onUpdate:value":l[3]||(l[3]=n=>e(a).lang=n),onChange:l[4]||(l[4]=n=>w.value=!0)},null,8,["value"])]),w.value?(f(),k(S,{key:0,type:"primary",onClick:$,ghost:""},{default:o(()=>[_(h(e(i)("langChangeReload")),1)]),_:1})):v("",!0)]),_:1},8,["label"]),t(c,{label:s.$t("onlyFoldersAndImages")},{default:o(()=>[t(C,{checked:e(a).onlyFoldersAndImages,"onUpdate:checked":l[5]||(l[5]=n=>e(a).onlyFoldersAndImages=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("showCommaInGenInfoPanel")},{default:o(()=>[t(C,{checked:e(a).showCommaInInfoPanel,"onUpdate:checked":l[6]||(l[6]=n=>e(a).showCommaInInfoPanel=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("defaultSortingMethod")},{default:o(()=>[t(e(P),{value:e(a).defaultSortingMethod,"onUpdate:value":l[7]||(l[7]=n=>e(a).defaultSortingMethod=n),conv:e(q),options:e(J)},null,8,["value","conv","options"])]),_:1},8,["label"]),t(c,{label:s.$t("longPressOpenContextMenu")},{default:o(()=>[t(C,{checked:e(a).longPressOpenContextMenu,"onUpdate:checked":l[8]||(l[8]=n=>e(a).longPressOpenContextMenu=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("openOnAppStart")},{default:o(()=>[t(e(P),{value:e(a).defaultInitinalPage,"onUpdate:value":l[9]||(l[9]=n=>e(a).defaultInitinalPage=n),options:u.value},null,8,["value","options"])]),_:1},8,["label"]),(f(!0),y(M,null,x(e(a).ignoredConfirmActions,(n,b)=>(f(),k(c,{label:s.$t(b+"SkipConfirm"),key:b},{default:o(()=>[t(z,{checked:e(a).ignoredConfirmActions[b],"onUpdate:checked":Q=>e(a).ignoredConfirmActions[b]=Q},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),p("h2",null,h(e(i)("shortcutKey")),1),t(c,{label:s.$t("download")},{default:o(()=>[p("div",be,[t(U,{value:e(a).shortcut.download,onKeydown:l[10]||(l[10]=T(n=>m(n,"download"),["stop","prevent"])),placeholder:s.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),t(S,{onClick:l[11]||(l[11]=n=>e(a).shortcut.download=""),class:"clear-btn"},{default:o(()=>[_(h(s.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),t(c,{label:s.$t("deleteSelected")},{default:o(()=>[p("div",_e,[t(U,{value:e(a).shortcut.delete,onKeydown:l[12]||(l[12]=T(n=>m(n,"delete"),["stop","prevent"])),placeholder:s.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),t(S,{onClick:l[13]||(l[13]=n=>e(a).shortcut.delete=""),class:"clear-btn"},{default:o(()=>[_(h(s.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(f(!0),y(M,null,x(((W=e(a).conf)==null?void 0:W.all_custom_tags)??[],n=>(f(),k(c,{label:s.$t("toggleTagSelection",{tag:n.name}),key:n.id},{default:o(()=>[p("div",ke,[t(U,{value:e(a).shortcut[`toggle_tag_${n.name}`],onKeydown:T(b=>m(b,`toggle_tag_${n.name}`),["stop","prevent"]),placeholder:s.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),t(S,{onClick:b=>e(a).shortcut[`toggle_tag_${n.name}`]="",class:"clear-btn"},{default:o(()=>[_(h(s.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),e(ee)?(f(),y(M,{key:0},[p("h2",null,h(e(i)("clientSpecificSettings")),1),t(c,null,{default:o(()=>[p("div",ve,[t(S,{onClick:g,class:"clear-btn"},{default:o(()=>[_(h(s.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):v("",!0)]}),_:1})])}}});const Te=de(we,[["__scopeId","data-v-8a6b0808"]]);export{Te as default}; +import{d as B,$ as K,r as D,m as X,n as Y,S as f,T as y,c as t,a1 as o,a2 as e,z as i,a0 as k,Y as v,U as p,X as M,aI as Z,E as j,W as h,V as _,aa as P,aP as q,ab as J,a6 as x,a3 as T,a7 as ee,aQ as te,aR as le,aS as ae,aT as ne,aM as oe,ai as F,ah as se,Z as de}from"./index-93a218ca.js";import{_ as R,a as N,F as ue}from"./numInput-27ba7dc9.js";import"./index-67a7e5e1.js";/* empty css *//* empty css */import{_ as O}from"./index-4596f42d.js";/* empty css */import{g as ie,C as re}from"./shortcut-ff09b8ec.js";import{a as ce}from"./functionalCallableComp-685da399.js";const A="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",me=["width","height","src"],pe=B({__name:"ImageSetting",setup(G){function a($,r){return new Promise(m=>{const g=new Image;g.onload=()=>{const u=document.createElement("canvas");u.width=g.width*r,u.height=g.height*r,u.getContext("2d").drawImage(g,0,0,u.width,u.height),m(u.toDataURL())},g.src=$})}const d=K(),w=D("");return X(()=>[d.enableThumbnail,d.gridThumbnailResolution],Y(async()=>{d.enableThumbnail&&(w.value=await a(A,d.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),($,r)=>{const m=N,g=O;return f(),y(M,null,[t(m,{label:e(i)("defaultGridCellWidth")},{default:o(()=>[t(R,{min:64,max:1024,step:16,modelValue:e(d).defaultGridCellWidth,"onUpdate:modelValue":r[0]||(r[0]=u=>e(d).defaultGridCellWidth=u)},null,8,["modelValue"])]),_:1},8,["label"]),t(m,{label:e(i)("useThumbnailPreview")},{default:o(()=>[t(g,{checked:e(d).enableThumbnail,"onUpdate:checked":r[1]||(r[1]=u=>e(d).enableThumbnail=u)},null,8,["checked"])]),_:1},8,["label"]),e(d).enableThumbnail?(f(),k(m,{key:0,label:e(i)("thumbnailResolution")},{default:o(()=>[t(R,{modelValue:e(d).gridThumbnailResolution,"onUpdate:modelValue":r[2]||(r[2]=u=>e(d).gridThumbnailResolution=u),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):v("",!0),t(m,{label:e(i)("livePreview")},{default:o(()=>[p("div",null,[p("img",{width:e(d).defaultGridCellWidth,height:e(d).defaultGridCellWidth,src:e(d).enableThumbnail?w.value:e(A)},null,8,me)])]),_:1},8,["label"]),t(m,{label:e(i)("defaultShowChangeIndicators")},{default:o(()=>[t(g,{checked:e(d).defaultChangeIndchecked,"onUpdate:checked":r[3]||(r[3]=u=>e(d).defaultChangeIndchecked=u)},null,8,["checked"])]),_:1},8,["label"]),e(d).defaultChangeIndchecked?(f(),k(m,{key:1,label:e(i)("defaultSeedAsChange")},{default:o(()=>[t(g,{checked:e(d).defaultSeedChangeChecked,"onUpdate:checked":r[4]||(r[4]=u=>e(d).defaultSeedChangeChecked=u)},null,8,["checked"])]),_:1},8,["label"])):v("",!0),t(m,{label:e(i)("previewMaskBackgroundOpacity")},{default:o(()=>[t(R,{min:0,max:1,step:.05,modelValue:e(d).previewBgOpacity,"onUpdate:modelValue":r[5]||(r[5]=u=>e(d).previewBgOpacity=u)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),he={class:"panel"},ge={style:{"margin-top":"0"}},fe={class:"lang-select-wrap"},be={class:"col"},_e={class:"col"},ke={class:"col"},ve={class:"col"},we=B({__name:"globalSetting",setup(G){const a=K(),d=Z(),w=D(!1),$=async()=>{window.location.reload()},r=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],m=(s,l)=>{const I=ie(s);I&&(a.shortcut[l]=I)},g=async()=>{await te("shutdown_api_server_command"),await le.removeFile(ae),await ne()},u=j(()=>[{value:"empty",text:i("emptyStartPage")},{value:"last-workspace-state",text:i("restoreLastWorkspaceState")},...d.snapshots.map(l=>({value:`workspace_snapshot_${l.id}`,text:i("restoreWorkspaceSnapshot",[l.name])}))]);return(s,l)=>{var V;const I=oe,L=F,c=N,C=O,E=R,S=F,z=re,U=se,H=ue;return f(),y("div",he,[(V=e(a).conf)!=null&&V.is_readonly?(f(),k(I,{key:0,message:s.$t("readonlyModeSettingPageDesc"),type:"warning"},null,8,["message"])):v("",!0),v("",!0),t(H,null,{default:o(()=>{var W;return[p("h2",ge,h(e(i)("ImageBrowsingSettings")),1),t(pe),p("h2",null,h(e(i)("imgSearch")),1),t(c,{label:s.$t("rebuildImageIndex")},{default:o(()=>[t(L,{onClick:e(ce)},{default:o(()=>[_(h(s.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),p("h2",null,h(e(i)("autoRefresh")),1),t(c,{label:s.$t("autoRefreshWalkMode")},{default:o(()=>[t(C,{checked:e(a).autoRefreshWalkMode,"onUpdate:checked":l[0]||(l[0]=n=>e(a).autoRefreshWalkMode=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("autoRefreshNormalFixedMode")},{default:o(()=>[t(C,{checked:e(a).autoRefreshNormalFixedMode,"onUpdate:checked":l[1]||(l[1]=n=>e(a).autoRefreshNormalFixedMode=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:e(i)("autoRefreshWalkModePosLimit")},{default:o(()=>[t(E,{min:0,max:1024,step:16,modelValue:e(a).autoRefreshWalkModePosLimit,"onUpdate:modelValue":l[2]||(l[2]=n=>e(a).autoRefreshWalkModePosLimit=n)},null,8,["modelValue"])]),_:1},8,["label"]),p("h2",null,h(e(i)("other")),1),t(c,{label:s.$t("lang")},{default:o(()=>[p("div",fe,[t(e(P),{options:r,value:e(a).lang,"onUpdate:value":l[3]||(l[3]=n=>e(a).lang=n),onChange:l[4]||(l[4]=n=>w.value=!0)},null,8,["value"])]),w.value?(f(),k(S,{key:0,type:"primary",onClick:$,ghost:""},{default:o(()=>[_(h(e(i)("langChangeReload")),1)]),_:1})):v("",!0)]),_:1},8,["label"]),t(c,{label:s.$t("onlyFoldersAndImages")},{default:o(()=>[t(C,{checked:e(a).onlyFoldersAndImages,"onUpdate:checked":l[5]||(l[5]=n=>e(a).onlyFoldersAndImages=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("showCommaInGenInfoPanel")},{default:o(()=>[t(C,{checked:e(a).showCommaInInfoPanel,"onUpdate:checked":l[6]||(l[6]=n=>e(a).showCommaInInfoPanel=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("defaultSortingMethod")},{default:o(()=>[t(e(P),{value:e(a).defaultSortingMethod,"onUpdate:value":l[7]||(l[7]=n=>e(a).defaultSortingMethod=n),conv:e(q),options:e(J)},null,8,["value","conv","options"])]),_:1},8,["label"]),t(c,{label:s.$t("longPressOpenContextMenu")},{default:o(()=>[t(C,{checked:e(a).longPressOpenContextMenu,"onUpdate:checked":l[8]||(l[8]=n=>e(a).longPressOpenContextMenu=n)},null,8,["checked"])]),_:1},8,["label"]),t(c,{label:s.$t("openOnAppStart")},{default:o(()=>[t(e(P),{value:e(a).defaultInitinalPage,"onUpdate:value":l[9]||(l[9]=n=>e(a).defaultInitinalPage=n),options:u.value},null,8,["value","options"])]),_:1},8,["label"]),(f(!0),y(M,null,x(e(a).ignoredConfirmActions,(n,b)=>(f(),k(c,{label:s.$t(b+"SkipConfirm"),key:b},{default:o(()=>[t(z,{checked:e(a).ignoredConfirmActions[b],"onUpdate:checked":Q=>e(a).ignoredConfirmActions[b]=Q},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),p("h2",null,h(e(i)("shortcutKey")),1),t(c,{label:s.$t("download")},{default:o(()=>[p("div",be,[t(U,{value:e(a).shortcut.download,onKeydown:l[10]||(l[10]=T(n=>m(n,"download"),["stop","prevent"])),placeholder:s.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),t(S,{onClick:l[11]||(l[11]=n=>e(a).shortcut.download=""),class:"clear-btn"},{default:o(()=>[_(h(s.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),t(c,{label:s.$t("deleteSelected")},{default:o(()=>[p("div",_e,[t(U,{value:e(a).shortcut.delete,onKeydown:l[12]||(l[12]=T(n=>m(n,"delete"),["stop","prevent"])),placeholder:s.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),t(S,{onClick:l[13]||(l[13]=n=>e(a).shortcut.delete=""),class:"clear-btn"},{default:o(()=>[_(h(s.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(f(!0),y(M,null,x(((W=e(a).conf)==null?void 0:W.all_custom_tags)??[],n=>(f(),k(c,{label:s.$t("toggleTagSelection",{tag:n.name}),key:n.id},{default:o(()=>[p("div",ke,[t(U,{value:e(a).shortcut[`toggle_tag_${n.name}`],onKeydown:T(b=>m(b,`toggle_tag_${n.name}`),["stop","prevent"]),placeholder:s.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),t(S,{onClick:b=>e(a).shortcut[`toggle_tag_${n.name}`]="",class:"clear-btn"},{default:o(()=>[_(h(s.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),e(ee)?(f(),y(M,{key:0},[p("h2",null,h(e(i)("clientSpecificSettings")),1),t(c,null,{default:o(()=>[p("div",ve,[t(S,{onClick:g,class:"clear-btn"},{default:o(()=>[_(h(s.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):v("",!0)]}),_:1})])}}});const Te=de(we,[["__scopeId","data-v-8a6b0808"]]);export{Te as default}; diff --git a/vue/dist/assets/gridView-c1aad9dd.js b/vue/dist/assets/gridView-b870c73c.js similarity index 87% rename from vue/dist/assets/gridView-c1aad9dd.js rename to vue/dist/assets/gridView-b870c73c.js index 325ca9a3..9f0ae80b 100644 --- a/vue/dist/assets/gridView-c1aad9dd.js +++ b/vue/dist/assets/gridView-b870c73c.js @@ -1 +1 @@ -import{u as w,a as y,F as k,d as x}from"./FileItem-e54d55be.js";import{d as b,$ as F,cf as h,r as D,bc as I,bg as C,S as E,T as S,c,a1 as V,a2 as e,ad as z,b$ as B,cA as $,Z as A}from"./index-0a648427.js";import"./functionalCallableComp-58260c55.js";/* empty css */import"./index-c4240098.js";const R=b({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,d=F(),{stackViewEl:m}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=h(),a=D(o.files??[]),_=async s=>{const l=B(s);o.allowDragAndDrop&&l&&(a.value=$([...a.value,...l.nodes]))},v=s=>{a.value.splice(s,1)};return I(()=>{d.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(a.value),setFiles:s=>a.value=s})}),(s,l)=>(E(),S("div",{class:"container",ref_key:"stackViewEl",ref:m,onDrop:_},[c(e(x),{ref:"scroller",class:"file-list",items:a.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:V(({item:t,index:r})=>{var n;return[c(k,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:T=>v(r),"full-screen-preview-image-url":e(z)(t),"extra-tags":(n=t==null?void 0:t.tags)==null?void 0:n.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const N=A(R,[["__scopeId","data-v-f35f4802"]]);export{N as default}; +import{u as w,a as y,F as k,d as x}from"./FileItem-9a94f7dd.js";import{d as b,$ as F,cf as h,r as D,bc as I,bg as C,S as E,T as S,c,a1 as V,a2 as e,ad as z,b$ as B,cA as $,Z as A}from"./index-93a218ca.js";import"./functionalCallableComp-685da399.js";/* empty css */import"./index-f60e0de3.js";const R=b({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,d=F(),{stackViewEl:m}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=h(),a=D(o.files??[]),_=async s=>{const l=B(s);o.allowDragAndDrop&&l&&(a.value=$([...a.value,...l.nodes]))},v=s=>{a.value.splice(s,1)};return I(()=>{d.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(a.value),setFiles:s=>a.value=s})}),(s,l)=>(E(),S("div",{class:"container",ref_key:"stackViewEl",ref:m,onDrop:_},[c(e(x),{ref:"scroller",class:"file-list",items:a.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:V(({item:t,index:r})=>{var n;return[c(k,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:T=>v(r),"full-screen-preview-image-url":e(z)(t),"extra-tags":(n=t==null?void 0:t.tags)==null?void 0:n.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const N=A(R,[["__scopeId","data-v-f35f4802"]]);export{N as default}; diff --git a/vue/dist/assets/hook-9bb60c42.js b/vue/dist/assets/hook-983826b5.js similarity index 93% rename from vue/dist/assets/hook-9bb60c42.js rename to vue/dist/assets/hook-983826b5.js index a189aff2..82a1fada 100644 --- a/vue/dist/assets/hook-9bb60c42.js +++ b/vue/dist/assets/hook-983826b5.js @@ -1 +1 @@ -import{ak as k,r as g,l as R,k as b,L as A,E as q,bN as G,bp as L,bX as z}from"./index-0a648427.js";import{u as O,a as Q,b as j,e as H}from"./FileItem-e54d55be.js";import{a as T,b as U,c as W,d as X}from"./MultiSelectKeep-051920f0.js";let B=0;const K=()=>++B,V=(n,i,{dataUpdateStrategy:l="replace"}={})=>{const a=k([""]),c=g(!1),t=g(),o=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(A((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>b(void 0,void 0,void 0,function*(){if(o.value||c.value&&typeof e>"u")return!1;o.value=!0;const s=K();f.value=s;try{let r;if(typeof e=="number"){if(r=a[e],typeof r!="string")return!1}else r=a[a.length-1];const h=yield n(r);if(v.has(s))return v.delete(s),!1;w(i(h));const u=h.cursor;if((e===a.length-1||typeof e!="number")&&(c.value=!u.has_next,u.has_next)){const y=u.next_cursor||u.next;A(typeof y=="string"),a.push(y)}}finally{f.value===s&&(o.value=!1)}return!0}),m=()=>{v.add(f.value),o.value=!1},x=(e=!1)=>b(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&m(),A(!o.value),a.splice(0,a.length,""),o.value=!1,t.value=void 0,c.value=!1,s&&(yield d())}),I=()=>({next:()=>b(void 0,void 0,void 0,function*(){if(o.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return R({abort:m,load:c,next:d,res:t,loading:o,cursorStack:a,reset:x,[Symbol.asyncIterator]:I,iter:{[Symbol.asyncIterator]:I}})},te=n=>k(V(n,i=>i.files,{dataUpdateStrategy:"merge"})),se=n=>{const i=k(new Set),l=q(()=>(n.res??[]).filter(p=>!i.has(p.fullpath))),a=G(),{stackViewEl:c,multiSelectedIdxs:t,stack:o,scroller:f,props:v}=O({images:l}).toRefs(),{itemSize:w,gridItems:d,cellWidth:m,onScroll:x}=Q({fetchNext:()=>n.next()}),{showMenuIdx:I}=j(),{onFileDragStart:e,onFileDragEnd:s}=T(),{showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:y,onFileItemClick:C}=U({openNext:L}),{previewIdx:E,previewing:_,onPreviewVisibleChange:M,previewImgMove:N,canPreview:D}=W({loadNext:()=>n.next()}),J=async(p,S,P)=>{o.value=[{curr:"",files:l.value}],await y(p,S,P)};H("removeFiles",async({paths:p})=>{p.forEach(S=>i.add(S))});const F=()=>{z(l.value)};return{images:l,scroller:f,queue:a,iter:n,onContextMenuClickU:J,stackViewEl:c,previewIdx:E,previewing:_,onPreviewVisibleChange:M,previewImgMove:N,canPreview:D,itemSize:w,gridItems:d,showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:y,onFileItemClick:C,showMenuIdx:I,multiSelectedIdxs:t,onFileDragStart:e,onFileDragEnd:s,cellWidth:m,onScroll:x,saveLoadedFileAsJson:F,saveAllFileAsJson:async()=>{for(;!n.load;)await n.next();F()},props:v,...X()}};export{te as c,se as u}; +import{ak as k,r as g,l as R,k as b,L as A,E as q,bN as G,bp as L,bX as z}from"./index-93a218ca.js";import{u as O,a as Q,b as j,e as H}from"./FileItem-9a94f7dd.js";import{a as T,b as U,c as W,d as X}from"./MultiSelectKeep-e20b5f46.js";let B=0;const K=()=>++B,V=(n,i,{dataUpdateStrategy:l="replace"}={})=>{const a=k([""]),c=g(!1),t=g(),o=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(A((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>b(void 0,void 0,void 0,function*(){if(o.value||c.value&&typeof e>"u")return!1;o.value=!0;const s=K();f.value=s;try{let r;if(typeof e=="number"){if(r=a[e],typeof r!="string")return!1}else r=a[a.length-1];const h=yield n(r);if(v.has(s))return v.delete(s),!1;w(i(h));const u=h.cursor;if((e===a.length-1||typeof e!="number")&&(c.value=!u.has_next,u.has_next)){const y=u.next_cursor||u.next;A(typeof y=="string"),a.push(y)}}finally{f.value===s&&(o.value=!1)}return!0}),m=()=>{v.add(f.value),o.value=!1},x=(e=!1)=>b(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&m(),A(!o.value),a.splice(0,a.length,""),o.value=!1,t.value=void 0,c.value=!1,s&&(yield d())}),I=()=>({next:()=>b(void 0,void 0,void 0,function*(){if(o.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return R({abort:m,load:c,next:d,res:t,loading:o,cursorStack:a,reset:x,[Symbol.asyncIterator]:I,iter:{[Symbol.asyncIterator]:I}})},te=n=>k(V(n,i=>i.files,{dataUpdateStrategy:"merge"})),se=n=>{const i=k(new Set),l=q(()=>(n.res??[]).filter(p=>!i.has(p.fullpath))),a=G(),{stackViewEl:c,multiSelectedIdxs:t,stack:o,scroller:f,props:v}=O({images:l}).toRefs(),{itemSize:w,gridItems:d,cellWidth:m,onScroll:x}=Q({fetchNext:()=>n.next()}),{showMenuIdx:I}=j(),{onFileDragStart:e,onFileDragEnd:s}=T(),{showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:y,onFileItemClick:C}=U({openNext:L}),{previewIdx:E,previewing:_,onPreviewVisibleChange:M,previewImgMove:N,canPreview:D}=W({loadNext:()=>n.next()}),J=async(p,S,P)=>{o.value=[{curr:"",files:l.value}],await y(p,S,P)};H("removeFiles",async({paths:p})=>{p.forEach(S=>i.add(S))});const F=()=>{z(l.value)};return{images:l,scroller:f,queue:a,iter:n,onContextMenuClickU:J,stackViewEl:c,previewIdx:E,previewing:_,onPreviewVisibleChange:M,previewImgMove:N,canPreview:D,itemSize:w,gridItems:d,showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:y,onFileItemClick:C,showMenuIdx:I,multiSelectedIdxs:t,onFileDragStart:e,onFileDragEnd:s,cellWidth:m,onScroll:x,saveLoadedFileAsJson:F,saveAllFileAsJson:async()=>{for(;!n.load;)await n.next();F()},props:v,...X()}};export{te as c,se as u}; diff --git a/vue/dist/assets/index-4035ad46.js b/vue/dist/assets/index-4596f42d.js similarity index 98% rename from vue/dist/assets/index-4035ad46.js rename to vue/dist/assets/index-4596f42d.js index 0331e948..df6f7eb5 100644 --- a/vue/dist/assets/index-4035ad46.js +++ b/vue/dist/assets/index-4596f42d.js @@ -1 +1 @@ -import{d as q,bB as H,r as w,m as A,_ as L,a as i,al as G,h as f,c as h,P as c,cn as J,aw as Q,j as X,co as Y,w as j,E as D,u as Z,o as ee,ax as ne,au as ae,ba as te,g as I,cp as ce,cq as M}from"./index-0a648427.js";var ue=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],le={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:c.any,required:Boolean};const se=q({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:H(le,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(e,s){var l=s.attrs,C=s.emit,p=s.expose,o=w(e.checked===void 0?e.defaultChecked:e.checked),v=w();A(function(){return e.checked},function(){o.value=e.checked}),p({focus:function(){var a;(a=v.value)===null||a===void 0||a.focus()},blur:function(){var a;(a=v.value)===null||a===void 0||a.blur()}});var k=w(),b=function(a){if(!e.disabled){e.checked===void 0&&(o.value=a.target.checked),a.shiftKey=k.value;var g={target:i(i({},e),{},{checked:a.target.checked}),stopPropagation:function(){a.stopPropagation()},preventDefault:function(){a.preventDefault()},nativeEvent:a};e.checked!==void 0&&(v.value.checked=!!e.checked),C("change",g),k.value=!1}},y=function(a){C("click",a),k.value=a.shiftKey};return function(){var u,a=e.prefixCls,g=e.name,r=e.id,S=e.type,B=e.disabled,m=e.readonly,_=e.tabindex,K=e.autofocus,F=e.value,N=e.required,P=L(e,ue),t=l.class,n=l.onFocus,d=l.onBlur,E=l.onKeydown,$=l.onKeypress,z=l.onKeyup,O=i(i({},P),l),R=Object.keys(O).reduce(function(T,x){return(x.substr(0,5)==="aria-"||x.substr(0,5)==="data-"||x==="role")&&(T[x]=O[x]),T},{}),U=G(a,t,(u={},f(u,"".concat(a,"-checked"),o.value),f(u,"".concat(a,"-disabled"),B),u)),W=i(i({name:g,id:r,type:S,readonly:m,disabled:B,tabindex:_,class:"".concat(a,"-input"),checked:!!o.value,autofocus:K,value:F},R),{},{onChange:b,onClick:y,onFocus:n,onBlur:d,onKeydown:E,onKeypress:$,onKeyup:z,required:N});return h("span",{class:U},[h("input",i({ref:v},W),null),h("span",{class:"".concat(a,"-inner")},null)])}}});var oe=Q("small","default"),de=function(){return{id:String,prefixCls:String,size:c.oneOf(oe),disabled:{type:Boolean,default:void 0},checkedChildren:c.any,unCheckedChildren:c.any,tabindex:c.oneOfType([c.string,c.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:c.oneOfType([c.string,c.number,c.looseBool]),checkedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!0),unCheckedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},ie=q({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:de(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,s){var l=s.attrs,C=s.slots,p=s.expose,o=s.emit,v=X();Y(function(){j(!("defaultChecked"in l),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),j(!("value"in l),"Switch","`value` is not validate prop, do you mean `checked`?")});var k=w(e.checked!==void 0?e.checked:l.defaultChecked),b=D(function(){return k.value===e.checkedValue});A(function(){return e.checked},function(){k.value=e.checked});var y=Z("switch",e),u=y.prefixCls,a=y.direction,g=y.size,r=w(),S=function(){var n;(n=r.value)===null||n===void 0||n.focus()},B=function(){var n;(n=r.value)===null||n===void 0||n.blur()};p({focus:S,blur:B}),ee(function(){ne(function(){e.autofocus&&!e.disabled&&r.value.focus()})});var m=function(n,d){e.disabled||(o("update:checked",n),o("change",n,d),v.onFieldChange())},_=function(n){o("blur",n)},K=function(n){S();var d=b.value?e.unCheckedValue:e.checkedValue;m(d,n),o("click",d,n)},F=function(n){n.keyCode===M.LEFT?m(e.unCheckedValue,n):n.keyCode===M.RIGHT&&m(e.checkedValue,n),o("keydown",n)},N=function(n){var d;(d=r.value)===null||d===void 0||d.blur(),o("mouseup",n)},P=D(function(){var t;return t={},f(t,"".concat(u.value,"-small"),g.value==="small"),f(t,"".concat(u.value,"-loading"),e.loading),f(t,"".concat(u.value,"-checked"),b.value),f(t,"".concat(u.value,"-disabled"),e.disabled),f(t,u.value,!0),f(t,"".concat(u.value,"-rtl"),a.value==="rtl"),t});return function(){var t;return h(ce,{insertExtraNode:!0},{default:function(){return[h("button",i(i(i({},ae(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),l),{},{id:(t=e.id)!==null&&t!==void 0?t:v.id.value,onKeydown:F,onClick:K,onBlur:_,onMouseup:N,type:"button",role:"switch","aria-checked":k.value,disabled:e.disabled||e.loading,class:[l.class,P.value],ref:r}),[h("div",{class:"".concat(u.value,"-handle")},[e.loading?h(te,{class:"".concat(u.value,"-loading-icon")},null):null]),h("span",{class:"".concat(u.value,"-inner")},[b.value?I(C,e,"checkedChildren"):I(C,e,"unCheckedChildren")])])]}})}}});const fe=J(ie);export{se as V,fe as _}; +import{d as q,bB as H,r as w,m as A,_ as L,a as i,al as G,h as f,c as h,P as c,cn as J,aw as Q,j as X,co as Y,w as j,E as D,u as Z,o as ee,ax as ne,au as ae,ba as te,g as I,cp as ce,cq as M}from"./index-93a218ca.js";var ue=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],le={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:c.any,required:Boolean};const se=q({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:H(le,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(e,s){var l=s.attrs,C=s.emit,p=s.expose,o=w(e.checked===void 0?e.defaultChecked:e.checked),v=w();A(function(){return e.checked},function(){o.value=e.checked}),p({focus:function(){var a;(a=v.value)===null||a===void 0||a.focus()},blur:function(){var a;(a=v.value)===null||a===void 0||a.blur()}});var k=w(),b=function(a){if(!e.disabled){e.checked===void 0&&(o.value=a.target.checked),a.shiftKey=k.value;var g={target:i(i({},e),{},{checked:a.target.checked}),stopPropagation:function(){a.stopPropagation()},preventDefault:function(){a.preventDefault()},nativeEvent:a};e.checked!==void 0&&(v.value.checked=!!e.checked),C("change",g),k.value=!1}},y=function(a){C("click",a),k.value=a.shiftKey};return function(){var u,a=e.prefixCls,g=e.name,r=e.id,S=e.type,B=e.disabled,m=e.readonly,_=e.tabindex,K=e.autofocus,F=e.value,N=e.required,P=L(e,ue),t=l.class,n=l.onFocus,d=l.onBlur,E=l.onKeydown,$=l.onKeypress,z=l.onKeyup,O=i(i({},P),l),R=Object.keys(O).reduce(function(T,x){return(x.substr(0,5)==="aria-"||x.substr(0,5)==="data-"||x==="role")&&(T[x]=O[x]),T},{}),U=G(a,t,(u={},f(u,"".concat(a,"-checked"),o.value),f(u,"".concat(a,"-disabled"),B),u)),W=i(i({name:g,id:r,type:S,readonly:m,disabled:B,tabindex:_,class:"".concat(a,"-input"),checked:!!o.value,autofocus:K,value:F},R),{},{onChange:b,onClick:y,onFocus:n,onBlur:d,onKeydown:E,onKeypress:$,onKeyup:z,required:N});return h("span",{class:U},[h("input",i({ref:v},W),null),h("span",{class:"".concat(a,"-inner")},null)])}}});var oe=Q("small","default"),de=function(){return{id:String,prefixCls:String,size:c.oneOf(oe),disabled:{type:Boolean,default:void 0},checkedChildren:c.any,unCheckedChildren:c.any,tabindex:c.oneOfType([c.string,c.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:c.oneOfType([c.string,c.number,c.looseBool]),checkedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!0),unCheckedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},ie=q({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:de(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,s){var l=s.attrs,C=s.slots,p=s.expose,o=s.emit,v=X();Y(function(){j(!("defaultChecked"in l),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),j(!("value"in l),"Switch","`value` is not validate prop, do you mean `checked`?")});var k=w(e.checked!==void 0?e.checked:l.defaultChecked),b=D(function(){return k.value===e.checkedValue});A(function(){return e.checked},function(){k.value=e.checked});var y=Z("switch",e),u=y.prefixCls,a=y.direction,g=y.size,r=w(),S=function(){var n;(n=r.value)===null||n===void 0||n.focus()},B=function(){var n;(n=r.value)===null||n===void 0||n.blur()};p({focus:S,blur:B}),ee(function(){ne(function(){e.autofocus&&!e.disabled&&r.value.focus()})});var m=function(n,d){e.disabled||(o("update:checked",n),o("change",n,d),v.onFieldChange())},_=function(n){o("blur",n)},K=function(n){S();var d=b.value?e.unCheckedValue:e.checkedValue;m(d,n),o("click",d,n)},F=function(n){n.keyCode===M.LEFT?m(e.unCheckedValue,n):n.keyCode===M.RIGHT&&m(e.checkedValue,n),o("keydown",n)},N=function(n){var d;(d=r.value)===null||d===void 0||d.blur(),o("mouseup",n)},P=D(function(){var t;return t={},f(t,"".concat(u.value,"-small"),g.value==="small"),f(t,"".concat(u.value,"-loading"),e.loading),f(t,"".concat(u.value,"-checked"),b.value),f(t,"".concat(u.value,"-disabled"),e.disabled),f(t,u.value,!0),f(t,"".concat(u.value,"-rtl"),a.value==="rtl"),t});return function(){var t;return h(ce,{insertExtraNode:!0},{default:function(){return[h("button",i(i(i({},ae(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),l),{},{id:(t=e.id)!==null&&t!==void 0?t:v.id.value,onKeydown:F,onClick:K,onBlur:_,onMouseup:N,type:"button",role:"switch","aria-checked":k.value,disabled:e.disabled||e.loading,class:[l.class,P.value],ref:r}),[h("div",{class:"".concat(u.value,"-handle")},[e.loading?h(te,{class:"".concat(u.value,"-loading-icon")},null):null]),h("span",{class:"".concat(u.value,"-inner")},[b.value?I(C,e,"checkedChildren"):I(C,e,"unCheckedChildren")])])]}})}}});const fe=J(ie);export{se as V,fe as _}; diff --git a/vue/dist/assets/index-6e5caf8a.js b/vue/dist/assets/index-67a7e5e1.js similarity index 98% rename from vue/dist/assets/index-6e5caf8a.js rename to vue/dist/assets/index-67a7e5e1.js index 1dd7053f..1d561193 100644 --- a/vue/dist/assets/index-6e5caf8a.js +++ b/vue/dist/assets/index-67a7e5e1.js @@ -1 +1 @@ -import{r as F,o as P,cr as K,at as L,E as i,av as T,aw as I,d as E,u as $,cs as _,b as y,bf as V,ct as A,al as B,h as c,c as M,a as G}from"./index-0a648427.js";const W=function(){var o=F(!1);return P(function(){o.value=K()}),o};var D=Symbol("rowContextKey"),U=function(r){T(D,r)},k=function(){return L(D,{gutter:i(function(){}),wrap:i(function(){}),supportFlexGap:i(function(){})})};I("top","middle","bottom","stretch");I("start","end","center","space-around","space-between");var q=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},H=E({compatConfig:{MODE:3},name:"ARow",props:q(),setup:function(r,N){var m=N.slots,v=$("row",r),d=v.prefixCls,h=v.direction,j,x=F({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),w=W();P(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),V(function(){_.unsubscribe(j)});var S=i(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(l,b){if(y(l)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return M("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});const Y=H;function J(o){return typeof o=="number"?"".concat(o," ").concat(o," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(o)?"0 0 ".concat(o):o}var Q=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 Z=E({compatConfig:{MODE:3},name:"ACol",props:Q(),setup:function(r,N){var m=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=$("col",r),w=x.prefixCls,S=x.direction,R=i(function(){var e,t=r.span,n=r.order,s=r.offset,l=r.push,b=r.pull,a=w.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(g){var f,u={},C=r[g];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},c(f,"".concat(a,"-").concat(g,"-").concat(u.span),u.span!==void 0),c(f,"".concat(a,"-").concat(g,"-order-").concat(u.order),u.order||u.order===0),c(f,"".concat(a,"-").concat(g,"-offset-").concat(u.offset),u.offset||u.offset===0),c(f,"".concat(a,"-").concat(g,"-push-").concat(u.push),u.push||u.push===0),c(f,"".concat(a,"-").concat(g,"-pull-").concat(u.pull),u.pull||u.pull===0),c(f,"".concat(a,"-rtl"),S.value==="rtl"),f))}),B(a,(e={},c(e,"".concat(a,"-").concat(t),t!==void 0),c(e,"".concat(a,"-order-").concat(n),n),c(e,"".concat(a,"-offset-").concat(s),s),c(e,"".concat(a,"-push-").concat(l),l),c(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=i(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var l="".concat(t[1]/2,"px");n.paddingTop=l,n.paddingBottom=l}return e&&(n.flex=J(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return M("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});export{Z as C,Y as R}; +import{r as F,o as P,cr as K,at as L,E as i,av as T,aw as I,d as E,u as $,cs as _,b as y,bf as V,ct as A,al as B,h as c,c as M,a as G}from"./index-93a218ca.js";const W=function(){var o=F(!1);return P(function(){o.value=K()}),o};var D=Symbol("rowContextKey"),U=function(r){T(D,r)},k=function(){return L(D,{gutter:i(function(){}),wrap:i(function(){}),supportFlexGap:i(function(){})})};I("top","middle","bottom","stretch");I("start","end","center","space-around","space-between");var q=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},H=E({compatConfig:{MODE:3},name:"ARow",props:q(),setup:function(r,N){var m=N.slots,v=$("row",r),d=v.prefixCls,h=v.direction,j,x=F({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),w=W();P(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),V(function(){_.unsubscribe(j)});var S=i(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(l,b){if(y(l)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return M("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});const Y=H;function J(o){return typeof o=="number"?"".concat(o," ").concat(o," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(o)?"0 0 ".concat(o):o}var Q=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 Z=E({compatConfig:{MODE:3},name:"ACol",props:Q(),setup:function(r,N){var m=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=$("col",r),w=x.prefixCls,S=x.direction,R=i(function(){var e,t=r.span,n=r.order,s=r.offset,l=r.push,b=r.pull,a=w.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(g){var f,u={},C=r[g];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},c(f,"".concat(a,"-").concat(g,"-").concat(u.span),u.span!==void 0),c(f,"".concat(a,"-").concat(g,"-order-").concat(u.order),u.order||u.order===0),c(f,"".concat(a,"-").concat(g,"-offset-").concat(u.offset),u.offset||u.offset===0),c(f,"".concat(a,"-").concat(g,"-push-").concat(u.push),u.push||u.push===0),c(f,"".concat(a,"-").concat(g,"-pull-").concat(u.pull),u.pull||u.pull===0),c(f,"".concat(a,"-rtl"),S.value==="rtl"),f))}),B(a,(e={},c(e,"".concat(a,"-").concat(t),t!==void 0),c(e,"".concat(a,"-order-").concat(n),n),c(e,"".concat(a,"-offset-").concat(s),s),c(e,"".concat(a,"-push-").concat(l),l),c(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=i(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var l="".concat(t[1]/2,"px");n.paddingTop=l,n.paddingBottom=l}return e&&(n.flex=J(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return M("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});export{Z as C,Y as R}; diff --git a/vue/dist/assets/index-48c46618.js b/vue/dist/assets/index-808a3f6b.js similarity index 95% rename from vue/dist/assets/index-48c46618.js rename to vue/dist/assets/index-808a3f6b.js index 7f68309d..caa32973 100644 --- a/vue/dist/assets/index-48c46618.js +++ b/vue/dist/assets/index-808a3f6b.js @@ -1 +1 @@ -import{d as x,$,aI as g,dl as b,r as w,S as p,T as d,U as a,c as r,a1 as i,V as u,W as n,X as I,a6 as B,a2 as m,x as V,y as _,z as v,ah as W,ai as D,dm as N,Z as R}from"./index-0a648427.js";/* empty css */const F={class:"container"},L={class:"actions"},T={class:"uni-desc"},U={class:"snapshot"},q=x({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(z){const h=$(),t=g(),f=e=>{h.tabList=V(e.tabs)},k=b(async e=>{await N(`workspace_snapshot_${e.id}`),t.snapshots=t.snapshots.filter(c=>c.id!==e.id),_.success(v("deleteSuccess"))}),o=w(""),y=async()=>{if(!o.value){_.error(v("nameRequired"));return}const e=t.createSnapshot(o.value);await t.addSnapshot(e),_.success(v("saveCompleted"))};return(e,c)=>{const C=W,l=D;return p(),d("div",F,[a("div",L,[r(C,{value:o.value,"onUpdate:value":c[0]||(c[0]=s=>o.value=s),placeholder:e.$t("name"),style:{"max-width":"300px"}},null,8,["value","placeholder"]),r(l,{type:"primary",onClick:y},{default:i(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",T,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",U,[(p(!0),d(I,null,B(m(t).snapshots,s=>(p(),d("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[r(l,{onClick:S=>f(s)},{default:i(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),r(l,{onClick:S=>m(k)(s)},{default:i(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const G=R(q,[["__scopeId","data-v-2c44013c"]]);export{G as default}; +import{d as x,$,aI as g,dl as b,r as w,S as p,T as d,U as a,c as r,a1 as i,V as u,W as n,X as I,a6 as B,a2 as m,x as V,y as _,z as v,ah as W,ai as D,dm as N,Z as R}from"./index-93a218ca.js";/* empty css */const F={class:"container"},L={class:"actions"},T={class:"uni-desc"},U={class:"snapshot"},q=x({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(z){const h=$(),t=g(),f=e=>{h.tabList=V(e.tabs)},k=b(async e=>{await N(`workspace_snapshot_${e.id}`),t.snapshots=t.snapshots.filter(c=>c.id!==e.id),_.success(v("deleteSuccess"))}),o=w(""),y=async()=>{if(!o.value){_.error(v("nameRequired"));return}const e=t.createSnapshot(o.value);await t.addSnapshot(e),_.success(v("saveCompleted"))};return(e,c)=>{const C=W,l=D;return p(),d("div",F,[a("div",L,[r(C,{value:o.value,"onUpdate:value":c[0]||(c[0]=s=>o.value=s),placeholder:e.$t("name"),style:{"max-width":"300px"}},null,8,["value","placeholder"]),r(l,{type:"primary",onClick:y},{default:i(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",T,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",U,[(p(!0),d(I,null,B(m(t).snapshots,s=>(p(),d("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[r(l,{onClick:S=>f(s)},{default:i(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),r(l,{onClick:S=>m(k)(s)},{default:i(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const G=R(q,[["__scopeId","data-v-2c44013c"]]);export{G as default}; diff --git a/vue/dist/assets/index-0a648427.js b/vue/dist/assets/index-93a218ca.js similarity index 98% rename from vue/dist/assets/index-0a648427.js rename to vue/dist/assets/index-93a218ca.js index b580b19c..051a3912 100644 --- a/vue/dist/assets/index-0a648427.js +++ b/vue/dist/assets/index-93a218ca.js @@ -124,15 +124,15 @@ summary tabindex target title type usemap value width wmode wrap`,KR=`onCopy onC * vue-i18n v9.3.0-beta.19 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const D5="9.3.0-beta.19";function F5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(mo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(mo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mo().__INTLIFY_PROD_DEVTOOLS__=!1)}let YC=qe.__EXTEND_POINT__;const an=()=>++YC,xt={UNEXPECTED_RETURN_TYPE:YC,INVALID_ARGUMENT:an(),MUST_BE_CALL_SETUP_TOP:an(),NOT_INSTALLED:an(),NOT_AVAILABLE_IN_LEGACY_MODE:an(),REQUIRED_VALUE:an(),INVALID_VALUE:an(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:an(),NOT_INSTALLED_WITH_PROVIDE:an(),UNEXPECTED_ERROR:an(),NOT_COMPATIBLE_LEGACY_VUE_I18N:an(),BRIDGE_SUPPORT_VUE_2_ONLY:an(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:an(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:an(),__EXTEND_POINT__:an()};function Tt(t,...e){return Iu(t,null,void 0)}const Lf=Wa("__translateVNode"),Df=Wa("__datetimeParts"),Ff=Wa("__numberParts"),XC=Wa("__setPluralRules"),JC=Wa("__injectWithOption");function Bf(t){if(!tt(t))return t;for(const e in t)if(Kv(t,e))if(!e.includes("."))tt(t[e])&&Bf(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},go(u,o[l])):go(u,o)}else Ce(s)&&go(JSON.parse(s),o)}),a==null&&i)for(const s in o)Kv(o,s)&&Bf(o[s]);return o}const Ds=t=>!tt(t)||ft(t);function go(t,e){if(Ds(t)||Ds(e))throw Tt(xt.INVALID_VALUE);for(const n in t)Kv(t,n)&&(Ds(t[n])||Ds(e[n])?e[n]=t[n]:go(t[n],e[n]))}function ZC(t){return t.type}function QC(t,e,n){let r=tt(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Mu(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(tt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(tt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Ky(t){return x(La,null,t,0)}const Gy="__INTLIFY_META__";let qy=0;function Yy(t){return(e,n,r,a)=>t(n,r,Ct()||void 0,a)}const B5=()=>{const t=Ct();let e=null;return t&&(e=ZC(t)[Gy])?{[Gy]:e}:null};function Yv(t={},e){const{__root:n}=t,r=n===void 0;let a=Be(t.inheritLocale)?t.inheritLocale:!0;const i=z(n&&a?n.locale.value:Ce(t.locale)?t.locale:os),o=z(n&&a?n.fallbackLocale.value:Ce(t.fallbackLocale)||ft(t.fallbackLocale)||ke(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=z(Mu(i.value,t)),l=z(ke(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=z(ke(t.numberFormats)?t.numberFormats:{[i.value]:{}});let c=n?n.missingWarn:Be(t.missingWarn)||ia(t.missingWarn)?t.missingWarn:!0,d=n?n.fallbackWarn:Be(t.fallbackWarn)||ia(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:Be(t.fallbackRoot)?t.fallbackRoot:!0,h=!!t.fallbackFormat,f=_t(t.missing)?t.missing:null,p=_t(t.missing)?Yy(t.missing):null,g=_t(t.postTranslation)?t.postTranslation:null,m=n?n.warnHtmlMessage:Be(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter;const b=n?n.modifiers:ke(t.modifiers)?t.modifiers:{};let w=t.pluralRules||n&&n.pluralRules,_;_=(()=>{r&&Dy(null);const H={version:D5,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:b,pluralRules:w,missing:p===null?void 0:p,missingWarn:c,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:m,escapeParameter:y,messageResolver:t.messageResolver,__meta:{framework:"vue"}};H.datetimeFormats=l.value,H.numberFormats=u.value,H.__datetimeFormatters=ke(_)?_.__datetimeFormatters:void 0,H.__numberFormatters=ke(_)?_.__numberFormatters:void 0;const q=A5(H);return r&&Dy(q),q})(),Ji(_,i.value,o.value);function O(){return[i.value,o.value,s.value,l.value,u.value]}const A=G({get:()=>i.value,set:H=>{i.value=H,_.locale=i.value}}),E=G({get:()=>o.value,set:H=>{o.value=H,_.fallbackLocale=o.value,Ji(_,i.value,H)}}),N=G(()=>s.value),R=G(()=>l.value),D=G(()=>u.value);function B(){return _t(g)?g:null}function j(H){g=H,_.postTranslation=H}function $(){return f}function T(H){H!==null&&(p=Yy(H)),f=H,_.missing=p}const P=(H,q,ue,ae,ce,me)=>{O();let we;if(__INTLIFY_PROD_DEVTOOLS__)try{Ly(B5()),r||(_.fallbackContext=n?I5():void 0),we=H(_)}finally{Ly(null),r||(_.fallbackContext=void 0)}else we=H(_);if(Ot(we)&&we===Au){const[Se,Ve]=q();return n&&v?ae(n):ce(Se)}else{if(me(we))return we;throw Tt(xt.UNEXPECTED_RETURN_TYPE)}};function k(...H){return P(q=>Reflect.apply(zy,null,[q,...H]),()=>Nf(...H),"translate",q=>Reflect.apply(q.t,q,[...H]),q=>q,q=>Ce(q))}function L(...H){const[q,ue,ae]=H;if(ae&&!tt(ae))throw Tt(xt.INVALID_ARGUMENT);return k(q,ue,Dt({resolvedMessage:!0},ae||{}))}function K(...H){return P(q=>Reflect.apply(Wy,null,[q,...H]),()=>Rf(...H),"datetime format",q=>Reflect.apply(q.d,q,[...H]),()=>Ry,q=>Ce(q))}function X(...H){return P(q=>Reflect.apply(Vy,null,[q,...H]),()=>$f(...H),"number format",q=>Reflect.apply(q.n,q,[...H]),()=>Ry,q=>Ce(q))}function ee(H){return H.map(q=>Ce(q)||Ot(q)||Be(q)?Ky(String(q)):q)}const Y={normalize:ee,interpolate:H=>H,type:"vnode"};function ne(...H){return P(q=>{let ue;const ae=q;try{ae.processor=Y,ue=Reflect.apply(zy,null,[ae,...H])}finally{ae.processor=null}return ue},()=>Nf(...H),"translate",q=>q[Lf](...H),q=>[Ky(q)],q=>ft(q))}function se(...H){return P(q=>Reflect.apply(Vy,null,[q,...H]),()=>$f(...H),"number format",q=>q[Ff](...H),()=>[],q=>Ce(q)||ft(q))}function pe(...H){return P(q=>Reflect.apply(Wy,null,[q,...H]),()=>Rf(...H),"datetime format",q=>q[Df](...H),()=>[],q=>Ce(q)||ft(q))}function ye(H){w=H,_.pluralRules=w}function he(H,q){const ue=Ce(q)?q:i.value,ae=F(ue);return _.messageResolver(ae,H)!==null}function ge(H){let q=null;const ue=FC(_,o.value,i.value);for(let ae=0;ae{a&&(i.value=H,_.locale=H,Ji(_,i.value,o.value))}),ve(n.fallbackLocale,H=>{a&&(o.value=H,_.fallbackLocale=H,Ji(_,i.value,o.value))}));const Z={id:qy,locale:A,fallbackLocale:E,get inheritLocale(){return a},set inheritLocale(H){a=H,H&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,Ji(_,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:N,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return c},set missingWarn(H){c=H,_.missingWarn=c},get fallbackWarn(){return d},set fallbackWarn(H){d=H,_.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(H){v=H},get fallbackFormat(){return h},set fallbackFormat(H){h=H,_.fallbackFormat=h},get warnHtmlMessage(){return m},set warnHtmlMessage(H){m=H,_.warnHtmlMessage=H},get escapeParameter(){return y},set escapeParameter(H){y=H,_.escapeParameter=H},t:k,getLocaleMessage:F,setLocaleMessage:S,mergeLocaleMessage:I,getPostTranslationHandler:B,setPostTranslationHandler:j,getMissingHandler:$,setMissingHandler:T,[XC]:ye};return Z.datetimeFormats=R,Z.numberFormats=D,Z.rt=L,Z.te=he,Z.tm=_e,Z.d=K,Z.n=X,Z.getDateTimeFormat=W,Z.setDateTimeFormat=U,Z.mergeDateTimeFormat=V,Z.getNumberFormat=oe,Z.setNumberFormat=ie,Z.mergeNumberFormat=re,Z[JC]=t.__injectWithOption,Z[Lf]=ne,Z[Df]=pe,Z[Ff]=se,Z}function j5(t){const e=Ce(t.locale)?t.locale:os,n=Ce(t.fallbackLocale)||ft(t.fallbackLocale)||ke(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=_t(t.missing)?t.missing:void 0,a=Be(t.silentTranslationWarn)||ia(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Be(t.silentFallbackWarn)||ia(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Be(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=ke(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=_t(t.postTranslation)?t.postTranslation:void 0,d=Ce(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,v=!!t.escapeParameterHtml,h=Be(t.sync)?t.sync:!0;let f=t.messages;if(ke(t.sharedMessages)){const _=t.sharedMessages;f=Object.keys(_).reduce((O,A)=>{const E=O[A]||(O[A]={});return Dt(E,_[A]),O},f||{})}const{__i18n:p,__root:g,__injectWithOption:m}=t,y=t.datetimeFormats,b=t.numberFormats,w=t.flatJson;return{locale:e,fallbackLocale:n,messages:f,flatJson:w,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:v,messageResolver:t.messageResolver,inheritLocale:h,__i18n:p,__root:g,__injectWithOption:m}}function jf(t={},e){{const n=Yv(j5(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 Be(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Be(a)?!a:a},get silentFallbackWarn(){return Be(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Be(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,s]=a,l={};let u=null,c=null;if(!Ce(i))throw Tt(xt.INVALID_ARGUMENT);const d=i;return Ce(o)?l.locale=o:ft(o)?u=o:ke(o)&&(c=o),ft(s)?u=s:ke(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,c=null;if(!Ce(i))throw Tt(xt.INVALID_ARGUMENT);const d=i;return Ce(o)?l.locale=o:Ot(o)?l.plural=o:ft(o)?u=o:ke(o)&&(c=o),Ce(s)?l.locale=s:ft(s)?u=s:ke(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},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 Xv={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function z5({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>[...r,...a.type===Ae?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function eS(t){return Ae}const W5=de({name:"i18n-t",props:Dt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ot(t)||!isNaN(t)}},Xv),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||Jv({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=Ce(t.plural)?+t.plural:t.plural);const s=z5(e,i),l=a[Lf](t.keypath,s,o),u=Dt({},r),c=Ce(t.tag)||tt(t.tag)?t.tag:eS();return aa(c,u,l)}}}),Xy=W5;function H5(t){return ft(t)&&!Ce(t[0])}function tS(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),Ce(t.format)?o.key=t.format:tt(t.format)&&(Ce(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((v,h)=>n.includes(h)?Dt({},v,{[h]:t.format[h]}):v,{}));const l=r(t.value,o,s);let u=[o.key];ft(l)?u=l.map((v,h)=>{const f=a[v.type],p=f?f({[v.type]:v.value,index:h,parts:l}):[v.value];return H5(p)&&(p[0].key=`${v.type}-${h}`),p}):Ce(l)&&(u=[l]);const c=Dt({},i),d=Ce(t.tag)||tt(t.tag)?t.tag:eS();return aa(d,c,u)}}const V5=de({name:"i18n-n",props:Dt({value:{type:Number,required:!0},format:{type:[String,Object]}},Xv),setup(t,e){const n=t.i18n||Jv({useScope:"parent",__useComponent:!0});return tS(t,e,qC,(...r)=>n[Ff](...r))}}),Jy=V5,U5=de({name:"i18n-d",props:Dt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xv),setup(t,e){const n=t.i18n||Jv({useScope:"parent",__useComponent:!0});return tS(t,e,GC,(...r)=>n[Df](...r))}}),Zy=U5;function K5(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 G5(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Tt(xt.UNEXPECTED_ERROR);const c=K5(t,s.$),d=Qy(u);return[Reflect.apply(c.t,c,[...eb(d)]),c]};return{created:(o,s)=>{const[l,u]=e(s);Mf&&t.global===u&&(o.__i18nWatcher=ve(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Mf&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Qy(s);o.textContent=Reflect.apply(l.t,l,[...eb(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Qy(t){if(Ce(t))return{path:t};if(ke(t)){if(!("path"in t))throw Tt(xt.REQUIRED_VALUE,"path");return t}else throw Tt(xt.INVALID_VALUE)}function eb(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},s=r||{};return Ce(n)&&(o.locale=n),Ot(a)&&(o.plural=a),Ot(i)&&(o.plural=i),[e,s,o]}function q5(t,e,...n){const r=ke(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Be(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":Xy.name,Xy),t.component(Jy.name,Jy),t.component(Zy.name,Zy)),t.directive("t",G5(e))}function Y5(t,e,n){return{beforeCreate(){const r=Ct();if(!r)throw Tt(xt.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=tb(t,i):(i.__injectWithOption=!0,this.$i18n=jf(i))}else a.__i18n?this===this.$root?this.$i18n=tb(t,a):this.$i18n=jf({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&QC(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=Ct();if(!r)throw Tt(xt.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 tb(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[XC](e.pluralizationRules||t.pluralizationRules);const n=Mu(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 X5=Wa("global-vue-i18n");function J5(t={},e){const n=__VUE_I18N_LEGACY_API__&&Be(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Be(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,s]=Z5(t,n),l=Wa("");function u(v){return i.get(v)||null}function c(v,h){i.set(v,h)}function d(v){i.delete(v)}{const v={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...f){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,v),ke(f[0])){const g=f[0];v.__composerExtend=g.__composerExtend,v.__vueI18nExtend=g.__vueI18nExtend}!n&&r&&lz(h,v.global),__VUE_I18N_FULL_INSTALL__&&q5(h,v,...f),__VUE_I18N_LEGACY_API__&&n&&h.mixin(Y5(s,s.__composer,v));const p=h.unmount;h.unmount=()=>{v.dispose(),p()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:c,__deleteInstance:d};return v}}function Jv(t={}){const e=Ct();if(e==null)throw Tt(xt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Tt(xt.NOT_INSTALLED);const n=Q5(e),r=tz(n),a=ZC(e),i=ez(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Tt(xt.NOT_AVAILABLE_IN_LEGACY_MODE);return iz(e,i,r,t)}if(i==="global")return QC(r,t,a),r;if(i==="parent"){let l=nz(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(e);if(s==null){const l=Dt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=Yv(l),o.__composerExtend&&o.__composerExtend(s),az(o,e),o.__setInstance(e,s)}return s}function Z5(t,e,n){const r=ad();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>jf(t)):r.run(()=>Yv(t));if(a==null)throw Tt(xt.UNEXPECTED_ERROR);return[r,a]}}function Q5(t){{const e=Je(t.isCE?X5:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Tt(t.isCE?xt.NOT_INSTALLED_WITH_PROVIDE:xt.UNEXPECTED_ERROR);return e}}function ez(t,e){return Tu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function tz(t){return t.mode==="composition"?t.global:t.global.__composer}function nz(t,e,n=!1){let r=null;const a=e.root;let i=rz(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(r=s.__composer,n&&r&&!r[JC]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function rz(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function az(t,e,n){De(()=>{},e),cn(()=>{t.__deleteInstance(e)},e)}function iz(t,e,n,r={}){const a=e==="local",i=Wn(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Tt(xt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Be(r.inheritLocale)?r.inheritLocale:!Ce(r.locale),s=z(!a||o?n.locale.value:Ce(r.locale)?r.locale:os),l=z(!a||o?n.fallbackLocale.value:Ce(r.fallbackLocale)||ft(r.fallbackLocale)||ke(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=z(Mu(s.value,r)),c=z(ke(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=z(ke(r.numberFormats)?r.numberFormats:{[s.value]:{}}),v=a?n.missingWarn:Be(r.missingWarn)||ia(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:Be(r.fallbackWarn)||ia(r.fallbackWarn)?r.fallbackWarn:!0,f=a?n.fallbackRoot:Be(r.fallbackRoot)?r.fallbackRoot:!0,p=!!r.fallbackFormat,g=_t(r.missing)?r.missing:null,m=_t(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:Be(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,w=a?n.modifiers:ke(r.modifiers)?r.modifiers:{},_=r.pluralRules||a&&n.pluralRules;function C(){return[s.value,l.value,u.value,c.value,d.value]}const O=G({get:()=>i.value?i.value.locale.value:s.value,set:I=>{i.value&&(i.value.locale.value=I),s.value=I}}),A=G({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),l.value=I}}),E=G(()=>i.value?i.value.messages.value:u.value),N=G(()=>c.value),R=G(()=>d.value);function D(){return i.value?i.value.getPostTranslationHandler():m}function B(I){i.value&&i.value.setPostTranslationHandler(I)}function j(){return i.value?i.value.getMissingHandler():g}function $(I){i.value&&i.value.setMissingHandler(I)}function T(I){return C(),I()}function P(...I){return i.value?T(()=>Reflect.apply(i.value.t,null,[...I])):T(()=>"")}function k(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function L(...I){return i.value?T(()=>Reflect.apply(i.value.d,null,[...I])):T(()=>"")}function K(...I){return i.value?T(()=>Reflect.apply(i.value.n,null,[...I])):T(()=>"")}function X(I){return i.value?i.value.tm(I):{}}function ee(I,W){return i.value?i.value.te(I,W):!1}function J(I){return i.value?i.value.getLocaleMessage(I):{}}function Y(I,W){i.value&&(i.value.setLocaleMessage(I,W),u.value[I]=W)}function ne(I,W){i.value&&i.value.mergeLocaleMessage(I,W)}function se(I){return i.value?i.value.getDateTimeFormat(I):{}}function pe(I,W){i.value&&(i.value.setDateTimeFormat(I,W),c.value[I]=W)}function ye(I,W){i.value&&i.value.mergeDateTimeFormat(I,W)}function he(I){return i.value?i.value.getNumberFormat(I):{}}function ge(I,W){i.value&&(i.value.setNumberFormat(I,W),d.value[I]=W)}function _e(I,W){i.value&&i.value.mergeNumberFormat(I,W)}const F={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:A,messages:E,datetimeFormats:N,numberFormats:R,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},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:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:f},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:p},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:P,getPostTranslationHandler:D,setPostTranslationHandler:B,getMissingHandler:j,setMissingHandler:$,rt:k,d:L,n:K,tm:X,te:ee,getLocaleMessage:J,setLocaleMessage:Y,mergeLocaleMessage:ne,getDateTimeFormat:se,setDateTimeFormat:pe,mergeDateTimeFormat:ye,getNumberFormat:he,setNumberFormat:ge,mergeNumberFormat:_e};function S(I){I.locale.value=s.value,I.fallbackLocale.value=l.value,Object.keys(u.value).forEach(W=>{I.mergeLocaleMessage(W,u.value[W])}),Object.keys(c.value).forEach(W=>{I.mergeDateTimeFormat(W,c.value[W])}),Object.keys(d.value).forEach(W=>{I.mergeNumberFormat(W,d.value[W])}),I.escapeParameter=b,I.fallbackFormat=p,I.fallbackRoot=f,I.fallbackWarn=h,I.missingWarn=v,I.warnHtmlMessage=y}return gd(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Tt(xt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=I.locale.value,l.value=I.fallbackLocale.value,u.value=I.messages.value,c.value=I.datetimeFormats.value,d.value=I.numberFormats.value):a&&S(I)}),F}const oz=["locale","fallbackLocale","availableLocales"],sz=["t","rt","d","n","tm","te"];function lz(t,e){const n=Object.create(null);oz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw Tt(xt.UNEXPECTED_ERROR);const i=it(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,sz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Tt(xt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}E5(k5);O5(s5);P5(FC);F5();if(__INTLIFY_PROD_DEVTOOLS__){const t=mo();t.__INTLIFY__=!0,m5(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const nb={success:"成功",setCurrFrameAsVideoPoster:"设置当前帧为视频封面",sync:"同步",syncDesc:"当你需要实现多设备或者多用户之间的简单设置隔离时你可以关闭这个选项, IIB的大部分设置将只会保存到当前浏览器上(跨域的情况下也是隔离),不会同步到服务器",readonlyModeSettingPageDesc:"当前为只读模式,你可以调整调整设置,但这些更改不会被保存",syncHistoryToLocal:"同步历史到本地",showCommaInGenInfoPanel:"在生成信息面板中显示逗号",walkModeAutoRefreshDisabled:"Walk模式下自动刷新已停用",disable:"停用",autoRefresh:"自动刷新",autoRefreshNormalFixedMode:"启用自动刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"启用自动刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下触发自动刷新的位置极限",pollRefresh:"轮询刷新",pollInterval:"轮询间隔",stopPollRefresh:"停止轮询刷新",pollRefreshTip:"默认情况下你从其他TAB返回IIB时或者IIB的可见性发生改变时IIB都会自动刷新。这个功能是为了让你一直呆在IIB内时他也能自动刷新,请慎重使用",restoreLastWorkspaceStateSuccess:"成功恢复上次工作区状态",restoreWorkspaceSnapshotSuccess:"成功恢复工作区快照",openOnAppStart:"启动时打开",confirmThisAction:"确认这个操作?",saveWorkspaceSnapshot:"保存工作区快照",WorkspaceSnapshot:"工作区快照",restoreLastWorkspaceState:"恢复上次工作区状态",restoreWorkspaceSnapshot:"恢复工作区快照: {0}",WorkspaceSnapshotDesc:`使用工作区快照功能你可以保存当前工作区的状态,以便下次打开IIB时快速恢复到当前状态。 + */const D5="9.3.0-beta.19";function F5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(mo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(mo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mo().__INTLIFY_PROD_DEVTOOLS__=!1)}let YC=qe.__EXTEND_POINT__;const an=()=>++YC,xt={UNEXPECTED_RETURN_TYPE:YC,INVALID_ARGUMENT:an(),MUST_BE_CALL_SETUP_TOP:an(),NOT_INSTALLED:an(),NOT_AVAILABLE_IN_LEGACY_MODE:an(),REQUIRED_VALUE:an(),INVALID_VALUE:an(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:an(),NOT_INSTALLED_WITH_PROVIDE:an(),UNEXPECTED_ERROR:an(),NOT_COMPATIBLE_LEGACY_VUE_I18N:an(),BRIDGE_SUPPORT_VUE_2_ONLY:an(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:an(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:an(),__EXTEND_POINT__:an()};function Tt(t,...e){return Iu(t,null,void 0)}const Lf=Wa("__translateVNode"),Df=Wa("__datetimeParts"),Ff=Wa("__numberParts"),XC=Wa("__setPluralRules"),JC=Wa("__injectWithOption");function Bf(t){if(!tt(t))return t;for(const e in t)if(Kv(t,e))if(!e.includes("."))tt(t[e])&&Bf(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},go(u,o[l])):go(u,o)}else Ce(s)&&go(JSON.parse(s),o)}),a==null&&i)for(const s in o)Kv(o,s)&&Bf(o[s]);return o}const Ds=t=>!tt(t)||ft(t);function go(t,e){if(Ds(t)||Ds(e))throw Tt(xt.INVALID_VALUE);for(const n in t)Kv(t,n)&&(Ds(t[n])||Ds(e[n])?e[n]=t[n]:go(t[n],e[n]))}function ZC(t){return t.type}function QC(t,e,n){let r=tt(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Mu(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(tt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(tt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Ky(t){return x(La,null,t,0)}const Gy="__INTLIFY_META__";let qy=0;function Yy(t){return(e,n,r,a)=>t(n,r,Ct()||void 0,a)}const B5=()=>{const t=Ct();let e=null;return t&&(e=ZC(t)[Gy])?{[Gy]:e}:null};function Yv(t={},e){const{__root:n}=t,r=n===void 0;let a=Be(t.inheritLocale)?t.inheritLocale:!0;const i=z(n&&a?n.locale.value:Ce(t.locale)?t.locale:os),o=z(n&&a?n.fallbackLocale.value:Ce(t.fallbackLocale)||ft(t.fallbackLocale)||ke(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=z(Mu(i.value,t)),l=z(ke(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=z(ke(t.numberFormats)?t.numberFormats:{[i.value]:{}});let c=n?n.missingWarn:Be(t.missingWarn)||ia(t.missingWarn)?t.missingWarn:!0,d=n?n.fallbackWarn:Be(t.fallbackWarn)||ia(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:Be(t.fallbackRoot)?t.fallbackRoot:!0,h=!!t.fallbackFormat,f=_t(t.missing)?t.missing:null,p=_t(t.missing)?Yy(t.missing):null,g=_t(t.postTranslation)?t.postTranslation:null,m=n?n.warnHtmlMessage:Be(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter;const b=n?n.modifiers:ke(t.modifiers)?t.modifiers:{};let w=t.pluralRules||n&&n.pluralRules,_;_=(()=>{r&&Dy(null);const H={version:D5,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:b,pluralRules:w,missing:p===null?void 0:p,missingWarn:c,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:m,escapeParameter:y,messageResolver:t.messageResolver,__meta:{framework:"vue"}};H.datetimeFormats=l.value,H.numberFormats=u.value,H.__datetimeFormatters=ke(_)?_.__datetimeFormatters:void 0,H.__numberFormatters=ke(_)?_.__numberFormatters:void 0;const q=A5(H);return r&&Dy(q),q})(),Ji(_,i.value,o.value);function O(){return[i.value,o.value,s.value,l.value,u.value]}const A=G({get:()=>i.value,set:H=>{i.value=H,_.locale=i.value}}),E=G({get:()=>o.value,set:H=>{o.value=H,_.fallbackLocale=o.value,Ji(_,i.value,H)}}),N=G(()=>s.value),R=G(()=>l.value),D=G(()=>u.value);function B(){return _t(g)?g:null}function j(H){g=H,_.postTranslation=H}function $(){return f}function T(H){H!==null&&(p=Yy(H)),f=H,_.missing=p}const P=(H,q,ue,ae,ce,me)=>{O();let we;if(__INTLIFY_PROD_DEVTOOLS__)try{Ly(B5()),r||(_.fallbackContext=n?I5():void 0),we=H(_)}finally{Ly(null),r||(_.fallbackContext=void 0)}else we=H(_);if(Ot(we)&&we===Au){const[Se,Ve]=q();return n&&v?ae(n):ce(Se)}else{if(me(we))return we;throw Tt(xt.UNEXPECTED_RETURN_TYPE)}};function k(...H){return P(q=>Reflect.apply(zy,null,[q,...H]),()=>Nf(...H),"translate",q=>Reflect.apply(q.t,q,[...H]),q=>q,q=>Ce(q))}function L(...H){const[q,ue,ae]=H;if(ae&&!tt(ae))throw Tt(xt.INVALID_ARGUMENT);return k(q,ue,Dt({resolvedMessage:!0},ae||{}))}function K(...H){return P(q=>Reflect.apply(Wy,null,[q,...H]),()=>Rf(...H),"datetime format",q=>Reflect.apply(q.d,q,[...H]),()=>Ry,q=>Ce(q))}function X(...H){return P(q=>Reflect.apply(Vy,null,[q,...H]),()=>$f(...H),"number format",q=>Reflect.apply(q.n,q,[...H]),()=>Ry,q=>Ce(q))}function ee(H){return H.map(q=>Ce(q)||Ot(q)||Be(q)?Ky(String(q)):q)}const Y={normalize:ee,interpolate:H=>H,type:"vnode"};function ne(...H){return P(q=>{let ue;const ae=q;try{ae.processor=Y,ue=Reflect.apply(zy,null,[ae,...H])}finally{ae.processor=null}return ue},()=>Nf(...H),"translate",q=>q[Lf](...H),q=>[Ky(q)],q=>ft(q))}function se(...H){return P(q=>Reflect.apply(Vy,null,[q,...H]),()=>$f(...H),"number format",q=>q[Ff](...H),()=>[],q=>Ce(q)||ft(q))}function pe(...H){return P(q=>Reflect.apply(Wy,null,[q,...H]),()=>Rf(...H),"datetime format",q=>q[Df](...H),()=>[],q=>Ce(q)||ft(q))}function ye(H){w=H,_.pluralRules=w}function he(H,q){const ue=Ce(q)?q:i.value,ae=F(ue);return _.messageResolver(ae,H)!==null}function ge(H){let q=null;const ue=FC(_,o.value,i.value);for(let ae=0;ae{a&&(i.value=H,_.locale=H,Ji(_,i.value,o.value))}),ve(n.fallbackLocale,H=>{a&&(o.value=H,_.fallbackLocale=H,Ji(_,i.value,o.value))}));const Z={id:qy,locale:A,fallbackLocale:E,get inheritLocale(){return a},set inheritLocale(H){a=H,H&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,Ji(_,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:N,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return c},set missingWarn(H){c=H,_.missingWarn=c},get fallbackWarn(){return d},set fallbackWarn(H){d=H,_.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(H){v=H},get fallbackFormat(){return h},set fallbackFormat(H){h=H,_.fallbackFormat=h},get warnHtmlMessage(){return m},set warnHtmlMessage(H){m=H,_.warnHtmlMessage=H},get escapeParameter(){return y},set escapeParameter(H){y=H,_.escapeParameter=H},t:k,getLocaleMessage:F,setLocaleMessage:S,mergeLocaleMessage:I,getPostTranslationHandler:B,setPostTranslationHandler:j,getMissingHandler:$,setMissingHandler:T,[XC]:ye};return Z.datetimeFormats=R,Z.numberFormats=D,Z.rt=L,Z.te=he,Z.tm=_e,Z.d=K,Z.n=X,Z.getDateTimeFormat=W,Z.setDateTimeFormat=U,Z.mergeDateTimeFormat=V,Z.getNumberFormat=oe,Z.setNumberFormat=ie,Z.mergeNumberFormat=re,Z[JC]=t.__injectWithOption,Z[Lf]=ne,Z[Df]=pe,Z[Ff]=se,Z}function j5(t){const e=Ce(t.locale)?t.locale:os,n=Ce(t.fallbackLocale)||ft(t.fallbackLocale)||ke(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=_t(t.missing)?t.missing:void 0,a=Be(t.silentTranslationWarn)||ia(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Be(t.silentFallbackWarn)||ia(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Be(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=ke(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=_t(t.postTranslation)?t.postTranslation:void 0,d=Ce(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,v=!!t.escapeParameterHtml,h=Be(t.sync)?t.sync:!0;let f=t.messages;if(ke(t.sharedMessages)){const _=t.sharedMessages;f=Object.keys(_).reduce((O,A)=>{const E=O[A]||(O[A]={});return Dt(E,_[A]),O},f||{})}const{__i18n:p,__root:g,__injectWithOption:m}=t,y=t.datetimeFormats,b=t.numberFormats,w=t.flatJson;return{locale:e,fallbackLocale:n,messages:f,flatJson:w,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:v,messageResolver:t.messageResolver,inheritLocale:h,__i18n:p,__root:g,__injectWithOption:m}}function jf(t={},e){{const n=Yv(j5(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 Be(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Be(a)?!a:a},get silentFallbackWarn(){return Be(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Be(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,s]=a,l={};let u=null,c=null;if(!Ce(i))throw Tt(xt.INVALID_ARGUMENT);const d=i;return Ce(o)?l.locale=o:ft(o)?u=o:ke(o)&&(c=o),ft(s)?u=s:ke(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,c=null;if(!Ce(i))throw Tt(xt.INVALID_ARGUMENT);const d=i;return Ce(o)?l.locale=o:Ot(o)?l.plural=o:ft(o)?u=o:ke(o)&&(c=o),Ce(s)?l.locale=s:ft(s)?u=s:ke(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},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 Xv={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function z5({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>[...r,...a.type===Ae?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function eS(t){return Ae}const W5=de({name:"i18n-t",props:Dt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ot(t)||!isNaN(t)}},Xv),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||Jv({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=Ce(t.plural)?+t.plural:t.plural);const s=z5(e,i),l=a[Lf](t.keypath,s,o),u=Dt({},r),c=Ce(t.tag)||tt(t.tag)?t.tag:eS();return aa(c,u,l)}}}),Xy=W5;function H5(t){return ft(t)&&!Ce(t[0])}function tS(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),Ce(t.format)?o.key=t.format:tt(t.format)&&(Ce(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((v,h)=>n.includes(h)?Dt({},v,{[h]:t.format[h]}):v,{}));const l=r(t.value,o,s);let u=[o.key];ft(l)?u=l.map((v,h)=>{const f=a[v.type],p=f?f({[v.type]:v.value,index:h,parts:l}):[v.value];return H5(p)&&(p[0].key=`${v.type}-${h}`),p}):Ce(l)&&(u=[l]);const c=Dt({},i),d=Ce(t.tag)||tt(t.tag)?t.tag:eS();return aa(d,c,u)}}const V5=de({name:"i18n-n",props:Dt({value:{type:Number,required:!0},format:{type:[String,Object]}},Xv),setup(t,e){const n=t.i18n||Jv({useScope:"parent",__useComponent:!0});return tS(t,e,qC,(...r)=>n[Ff](...r))}}),Jy=V5,U5=de({name:"i18n-d",props:Dt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xv),setup(t,e){const n=t.i18n||Jv({useScope:"parent",__useComponent:!0});return tS(t,e,GC,(...r)=>n[Df](...r))}}),Zy=U5;function K5(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 G5(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Tt(xt.UNEXPECTED_ERROR);const c=K5(t,s.$),d=Qy(u);return[Reflect.apply(c.t,c,[...eb(d)]),c]};return{created:(o,s)=>{const[l,u]=e(s);Mf&&t.global===u&&(o.__i18nWatcher=ve(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Mf&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Qy(s);o.textContent=Reflect.apply(l.t,l,[...eb(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Qy(t){if(Ce(t))return{path:t};if(ke(t)){if(!("path"in t))throw Tt(xt.REQUIRED_VALUE,"path");return t}else throw Tt(xt.INVALID_VALUE)}function eb(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},s=r||{};return Ce(n)&&(o.locale=n),Ot(a)&&(o.plural=a),Ot(i)&&(o.plural=i),[e,s,o]}function q5(t,e,...n){const r=ke(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Be(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":Xy.name,Xy),t.component(Jy.name,Jy),t.component(Zy.name,Zy)),t.directive("t",G5(e))}function Y5(t,e,n){return{beforeCreate(){const r=Ct();if(!r)throw Tt(xt.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=tb(t,i):(i.__injectWithOption=!0,this.$i18n=jf(i))}else a.__i18n?this===this.$root?this.$i18n=tb(t,a):this.$i18n=jf({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&QC(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=Ct();if(!r)throw Tt(xt.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 tb(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[XC](e.pluralizationRules||t.pluralizationRules);const n=Mu(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 X5=Wa("global-vue-i18n");function J5(t={},e){const n=__VUE_I18N_LEGACY_API__&&Be(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Be(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,s]=Z5(t,n),l=Wa("");function u(v){return i.get(v)||null}function c(v,h){i.set(v,h)}function d(v){i.delete(v)}{const v={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...f){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,v),ke(f[0])){const g=f[0];v.__composerExtend=g.__composerExtend,v.__vueI18nExtend=g.__vueI18nExtend}!n&&r&&lz(h,v.global),__VUE_I18N_FULL_INSTALL__&&q5(h,v,...f),__VUE_I18N_LEGACY_API__&&n&&h.mixin(Y5(s,s.__composer,v));const p=h.unmount;h.unmount=()=>{v.dispose(),p()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:c,__deleteInstance:d};return v}}function Jv(t={}){const e=Ct();if(e==null)throw Tt(xt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Tt(xt.NOT_INSTALLED);const n=Q5(e),r=tz(n),a=ZC(e),i=ez(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Tt(xt.NOT_AVAILABLE_IN_LEGACY_MODE);return iz(e,i,r,t)}if(i==="global")return QC(r,t,a),r;if(i==="parent"){let l=nz(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(e);if(s==null){const l=Dt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=Yv(l),o.__composerExtend&&o.__composerExtend(s),az(o,e),o.__setInstance(e,s)}return s}function Z5(t,e,n){const r=ad();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>jf(t)):r.run(()=>Yv(t));if(a==null)throw Tt(xt.UNEXPECTED_ERROR);return[r,a]}}function Q5(t){{const e=Je(t.isCE?X5:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Tt(t.isCE?xt.NOT_INSTALLED_WITH_PROVIDE:xt.UNEXPECTED_ERROR);return e}}function ez(t,e){return Tu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function tz(t){return t.mode==="composition"?t.global:t.global.__composer}function nz(t,e,n=!1){let r=null;const a=e.root;let i=rz(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(r=s.__composer,n&&r&&!r[JC]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function rz(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function az(t,e,n){De(()=>{},e),cn(()=>{t.__deleteInstance(e)},e)}function iz(t,e,n,r={}){const a=e==="local",i=Wn(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Tt(xt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Be(r.inheritLocale)?r.inheritLocale:!Ce(r.locale),s=z(!a||o?n.locale.value:Ce(r.locale)?r.locale:os),l=z(!a||o?n.fallbackLocale.value:Ce(r.fallbackLocale)||ft(r.fallbackLocale)||ke(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=z(Mu(s.value,r)),c=z(ke(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=z(ke(r.numberFormats)?r.numberFormats:{[s.value]:{}}),v=a?n.missingWarn:Be(r.missingWarn)||ia(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:Be(r.fallbackWarn)||ia(r.fallbackWarn)?r.fallbackWarn:!0,f=a?n.fallbackRoot:Be(r.fallbackRoot)?r.fallbackRoot:!0,p=!!r.fallbackFormat,g=_t(r.missing)?r.missing:null,m=_t(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:Be(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,w=a?n.modifiers:ke(r.modifiers)?r.modifiers:{},_=r.pluralRules||a&&n.pluralRules;function C(){return[s.value,l.value,u.value,c.value,d.value]}const O=G({get:()=>i.value?i.value.locale.value:s.value,set:I=>{i.value&&(i.value.locale.value=I),s.value=I}}),A=G({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),l.value=I}}),E=G(()=>i.value?i.value.messages.value:u.value),N=G(()=>c.value),R=G(()=>d.value);function D(){return i.value?i.value.getPostTranslationHandler():m}function B(I){i.value&&i.value.setPostTranslationHandler(I)}function j(){return i.value?i.value.getMissingHandler():g}function $(I){i.value&&i.value.setMissingHandler(I)}function T(I){return C(),I()}function P(...I){return i.value?T(()=>Reflect.apply(i.value.t,null,[...I])):T(()=>"")}function k(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function L(...I){return i.value?T(()=>Reflect.apply(i.value.d,null,[...I])):T(()=>"")}function K(...I){return i.value?T(()=>Reflect.apply(i.value.n,null,[...I])):T(()=>"")}function X(I){return i.value?i.value.tm(I):{}}function ee(I,W){return i.value?i.value.te(I,W):!1}function J(I){return i.value?i.value.getLocaleMessage(I):{}}function Y(I,W){i.value&&(i.value.setLocaleMessage(I,W),u.value[I]=W)}function ne(I,W){i.value&&i.value.mergeLocaleMessage(I,W)}function se(I){return i.value?i.value.getDateTimeFormat(I):{}}function pe(I,W){i.value&&(i.value.setDateTimeFormat(I,W),c.value[I]=W)}function ye(I,W){i.value&&i.value.mergeDateTimeFormat(I,W)}function he(I){return i.value?i.value.getNumberFormat(I):{}}function ge(I,W){i.value&&(i.value.setNumberFormat(I,W),d.value[I]=W)}function _e(I,W){i.value&&i.value.mergeNumberFormat(I,W)}const F={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:A,messages:E,datetimeFormats:N,numberFormats:R,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},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:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:f},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:p},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:P,getPostTranslationHandler:D,setPostTranslationHandler:B,getMissingHandler:j,setMissingHandler:$,rt:k,d:L,n:K,tm:X,te:ee,getLocaleMessage:J,setLocaleMessage:Y,mergeLocaleMessage:ne,getDateTimeFormat:se,setDateTimeFormat:pe,mergeDateTimeFormat:ye,getNumberFormat:he,setNumberFormat:ge,mergeNumberFormat:_e};function S(I){I.locale.value=s.value,I.fallbackLocale.value=l.value,Object.keys(u.value).forEach(W=>{I.mergeLocaleMessage(W,u.value[W])}),Object.keys(c.value).forEach(W=>{I.mergeDateTimeFormat(W,c.value[W])}),Object.keys(d.value).forEach(W=>{I.mergeNumberFormat(W,d.value[W])}),I.escapeParameter=b,I.fallbackFormat=p,I.fallbackRoot=f,I.fallbackWarn=h,I.missingWarn=v,I.warnHtmlMessage=y}return gd(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Tt(xt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=I.locale.value,l.value=I.fallbackLocale.value,u.value=I.messages.value,c.value=I.datetimeFormats.value,d.value=I.numberFormats.value):a&&S(I)}),F}const oz=["locale","fallbackLocale","availableLocales"],sz=["t","rt","d","n","tm","te"];function lz(t,e){const n=Object.create(null);oz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw Tt(xt.UNEXPECTED_ERROR);const i=it(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,sz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Tt(xt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}E5(k5);O5(s5);P5(FC);F5();if(__INTLIFY_PROD_DEVTOOLS__){const t=mo();t.__INTLIFY__=!0,m5(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const nb={clearCacheIfNotTakeEffect:"如果更改没有生效,请尝试清理页面缓存",success:"成功",setCurrFrameAsVideoPoster:"设置当前帧为视频封面",sync:"同步",syncDesc:"当你需要实现多设备或者多用户之间的简单设置隔离时你可以关闭这个选项, IIB的大部分设置将只会保存到当前浏览器上(跨域的情况下也是隔离),不会同步到服务器",readonlyModeSettingPageDesc:"当前为只读模式,你可以调整调整设置,但这些更改不会被保存",syncHistoryToLocal:"同步历史到本地",showCommaInGenInfoPanel:"在生成信息面板中显示逗号",walkModeAutoRefreshDisabled:"Walk模式下自动刷新已停用",disable:"停用",autoRefresh:"自动刷新",autoRefreshNormalFixedMode:"启用自动刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"启用自动刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下触发自动刷新的位置极限",pollRefresh:"轮询刷新",pollInterval:"轮询间隔",stopPollRefresh:"停止轮询刷新",pollRefreshTip:"默认情况下你从其他TAB返回IIB时或者IIB的可见性发生改变时IIB都会自动刷新。这个功能是为了让你一直呆在IIB内时他也能自动刷新,请慎重使用",restoreLastWorkspaceStateSuccess:"成功恢复上次工作区状态",restoreWorkspaceSnapshotSuccess:"成功恢复工作区快照",openOnAppStart:"启动时打开",confirmThisAction:"确认这个操作?",saveWorkspaceSnapshot:"保存工作区快照",WorkspaceSnapshot:"工作区快照",restoreLastWorkspaceState:"恢复上次工作区状态",restoreWorkspaceSnapshot:"恢复工作区快照: {0}",WorkspaceSnapshotDesc:`使用工作区快照功能你可以保存当前工作区的状态,以便下次打开IIB时快速恢复到当前状态。 你可以在全局设置页面中指定启动IIB时恢复到哪一个快照,或者恢复到最后关闭前的工作区状态。`,nameRequired:"名称不能为空",save:"保存",name:"名称",saveCompleted:"保存完成",openThisAppInNewWindow:"在新窗口打开本应用",readonly:"只读",accessLimited:"访问受限",selectFolder:"选择文件夹",openFileLocationInNewTab:"在新标签页打开文件位置",copyTo:"复制到",moveTo:"移动到",moveSuccess:"移动成功",copySuccess:"复制成功",copyFilePath:"复制文件路径",previewMaskBackgroundOpacity:"预览遮罩背景透明度",experimentalLRLayout:"实验性并列布局",width:"宽度",alwaysOnTooltipInfo:"若关闭此项,信息面板将收起,直至鼠标移动至屏幕右侧时才打开",alwaysOn:"常驻",time:"时间",pin:"置顶",unpin:"取消置顶",restore:"还原",restoreFromHistory:"从历史记录中恢复",history:"历史记录",historyRecordsSubstr:"输入值",historyRecordsisRegex:"是否正则",walkModeDoc:"无需翻页即可浏览指定文件夹下的所有文件,使用无限滚动的方式呈现。将会使用DFS的方式遍历所有文件. 注意:该模式下排序仅在同层之间进行",normalModelDoc:"类似于windows的文件浏览器,拥有较高的灵活性. 但在访问云存储或者类似SMB这样的地方时可能会出现异常",fixedModeDoc:"类似Normal模式,但页面初始速度更快,兼容性更好,灵活性稍差。在Normal模式下出现了异常的话都可以改用这个试试",type:"类型",filterByKeyword:"输入标签关键词过滤",loadmore:"加载更多",rename:"重命名",inputAlias:"输入别名",addAliasCompleted:"添加别名完成",alias:"别名",exit:"退出","select-all":"全选","rerverse-select":"反选","clear-all-selected":"清除所有选择","keep-multi-selected":"保留多选","Source Identifier":"来源",openWithDefaultApp:"使用默认应用打开",saveSelectedAsJson:"保存选中图像信息",saveAllAsJson:"保存所有图像信息",saveLoadedImageAsJson:"保存已加载的图像信息",items:"{0}个项目",selectedItems:"已选择{0}个项目",scrollDownToComparePrompt:"向下滚查看Prompt比较",sourceText:"源文本",structuredData:"结构化数据",searchScope:"搜索范围",specifiedSearchFolder:"指定搜索的文件夹,使用逗号或者换行分割多个",batchAddTag:"批量添加Tag",batchRemoveTag:"批量移除Tag",errorOccurred:"发生了个错误",useThumbnailPreview:"使用缩略图预览",gridThumbnailWidth:"网格缩略图宽度",start:"开始",tip:"提示",sortByDateAscending:"修改日期升序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"创建日期升序",sortByCreatedDateDescending:"创建日期降序",sortByNameAscending:"名称升序",sortByNameDescending:"名称降序",sortBySizeAscending:"大小升序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"输入地址回车",go:"前往",unknownError:"未知错误",loadingNextFolder:"即将加载下一个文件夹的文件",moveFailedCheckPath:"移动失败,检查你的路径输入",detailList:"详情列表",previewGrid:"预览网格",moveSelectedFilesTo:"下列文件 移动 / 复制 至",confirm:"确定",download:"下载",local:"本地",sendImageFailed:"发送图像失败,请携带console的错误消息找开发者",confirmDelete:"确认删除?",deleteSuccess:"删除成功",doubleClickToCopy:"双击复制",root:"根",drive:"盘",promptcompare:"Compare Prompts",refresh:"刷新",quickMove:"快速移动",more:"更多",viewMode:"查看模式",sortingMethod:"排序方法",copyPath:"复制路径",deleteSelected:"删除",previewInNewWindow:"在新窗口预览",copySourceFilePreviewLink:"复制源文件预览链接",viewGenerationInfo:"查看生成信息(prompt等)",sendToTxt2img:"发送到文生图",sendToImg2img:"发送到图生图",sendToInpaint:"发送到局部重绘",sendToControlNet:"发送到ControlNet",sendToBatchDownload:"发送到批量下载",sendToExtraFeatures:"发送到附加功能",loadNextPage:"加载下一页",localFile:"本地文件",globalSettings:"全局设置",welcome:"欢迎",openInNewWindow:"在新页面打开",restoreLastRecord:"还原上次记录",launch:"启动",walkMode:"使用 Walk 模式浏览图片",launchFromNormalAndFixed:"使用 Normal / Fixed 模式浏览图片",recent:"最近",emptyStartPage:"空启动页",t2i:"文生图",i2i:"图生图",saveButtonSavesTo:"保存",extra:"附加",gridImage:"宫格图","i2i-grid":"图生图宫格",image:"图像","t2i-grid":"文生图宫格",workingFolder:"工作文件夹",lang:"语言",langChangeReload:"重新加载: 一些变化可能需要在重新加载后生效",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:"切换标签选中 (收藏)",addCompleted:"添加完成",removeCompleted:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",copyPositivePrompt:"复制正向提示",refreshCompleted:"刷新完成","walk-mode-move-message":"在walk模式下仅允许使用“快速移动”移动位置",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:"路径不存在",confirmToAddToExtraPath:"确定添加?如果文件夹过大将会消耗过多时间建立索引。",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",showChangeIndicators:"显示变更指示器",seedAsChange:"将Seed也进行比较",defaultShowChangeIndicators:"默认显示变更指示器",defaultSeedAsChange:"默认将Seed也进行比较",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的“更多”里面进行调整",desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:"使用拖拽或者右键菜单中的“发送到批量下载”将其他页面的图片添加到这里,支持多选",zipDownload:"打包成zip下载",archive:"归档",batchDownload:"批量下载",remove:"移除",secretKeyRequiredWarnMsg:`为了安全考虑,你必须为本拓展单独配置Secret Key,具体参考本拓展根目录下的.env.example文件内的IIB_SECRET_KEY。 - 这项警告只会在配置了gradio-auth时出现`,secretKeyMustBeConfigured:"必须配置Secret Key",deleteOneOnlySkipConfirm:"删除单个文件时不进行确认",resetOnGlobalSettingsPage:"你可以在全局设置页重置",privacyAndSecurity:"安全与隐私",dragToResizePanel:"按住并拖动来调整面板的大小",clickToToggleMaximizeMinimize:"单击切换最大化/最小化",dragToMovePanel:"按住并拖动来移动面板",imageCompareTips:"拖拽文件时也会出现这个面板,可以不需要打开 “图像对比” 功能",regexSearchEnabledHint:"(你也可以通过点击右侧的正则式图标来启用正则式搜索)",confirmRebuildImageIndex:"确认重建图像索引?",rebuildComplete:"重新构建完成",rebuildImageIndex:"重新构建图像索引",tagSearchNoResultsMessage:"看起来没匹配到任何结果,尝试通过重新构建索引来去掉无用的tag?"},uz={success:"Success",setCurrFrameAsVideoPoster:"Set Current Frame as Video Cover",sync:"Sync",syncDesc:"When you need to achieve simple setting isolation between multiple devices or users, you can turn off this option. Most of the settings of IIB will only be saved to the current browser (isolation in the case of cross-domain), and will not be synchronized to the server.",readonlyModeSettingPageDesc:"You are currently in read-only mode. You can adjust the settings, but these changes will not be saved.",syncHistoryToLocal:"Sync History to Local",showCommaInGenInfoPanel:"Show Comma in Generation Info Panel",walkModeAutoRefreshDisabled:"Auto Refresh in Walk Mode Disabled",disable:"Disable",autoRefresh:"Auto Refresh",autoRefreshNormalFixedMode:"Enable Auto Refresh (Normal/Fixed Mode)",autoRefreshWalkMode:"Enable Auto Refresh (Walk Mode)",autoRefreshWalkModePosLimit:"Position Limit for Auto Refresh in Walk Mode",pollInterval:"Poll Interval",pollRefresh:"Polling refresh",pollRefreshTip:"By default, IIB will automatically refresh when you return to IIB from other tabs or when the visibility of IIB changes. This feature is designed to keep IIB refreshed even when you stay in IIB all the time, please use it with caution",stopPollRefresh:"Stop Polling refresh",restoreLastWorkspaceStateSuccess:"Restore Last Workspace State Success",restoreWorkspaceSnapshotSuccess:"Restore Workspace Snapshot Success",openOnAppStart:"Open on app start",confirmThisAction:"Confirm this action?",WorkspaceSnapshotDesc:`Using the Workspace Snapshot feature, you can save the current state of the workspace so that you can quickly restore to the current state the next time you open IIB. + 这项警告只会在配置了gradio-auth时出现`,secretKeyMustBeConfigured:"必须配置Secret Key",deleteOneOnlySkipConfirm:"删除单个文件时不进行确认",resetOnGlobalSettingsPage:"你可以在全局设置页重置",privacyAndSecurity:"安全与隐私",dragToResizePanel:"按住并拖动来调整面板的大小",clickToToggleMaximizeMinimize:"单击切换最大化/最小化",dragToMovePanel:"按住并拖动来移动面板",imageCompareTips:"拖拽文件时也会出现这个面板,可以不需要打开 “图像对比” 功能",regexSearchEnabledHint:"(你也可以通过点击右侧的正则式图标来启用正则式搜索)",confirmRebuildImageIndex:"确认重建图像索引?",rebuildComplete:"重新构建完成",rebuildImageIndex:"重新构建图像索引",tagSearchNoResultsMessage:"看起来没匹配到任何结果,尝试通过重新构建索引来去掉无用的tag?"},uz={clearCacheIfNotTakeEffect:"If the changes do not take effect, try clearing the page cache",success:"Success",setCurrFrameAsVideoPoster:"Set Current Frame as Video Cover",sync:"Sync",syncDesc:"When you need to achieve simple setting isolation between multiple devices or users, you can turn off this option. Most of the settings of IIB will only be saved to the current browser (isolation in the case of cross-domain), and will not be synchronized to the server.",readonlyModeSettingPageDesc:"You are currently in read-only mode. You can adjust the settings, but these changes will not be saved.",syncHistoryToLocal:"Sync History to Local",showCommaInGenInfoPanel:"Show Comma in Generation Info Panel",walkModeAutoRefreshDisabled:"Auto Refresh in Walk Mode Disabled",disable:"Disable",autoRefresh:"Auto Refresh",autoRefreshNormalFixedMode:"Enable Auto Refresh (Normal/Fixed Mode)",autoRefreshWalkMode:"Enable Auto Refresh (Walk Mode)",autoRefreshWalkModePosLimit:"Position Limit for Auto Refresh in Walk Mode",pollInterval:"Poll Interval",pollRefresh:"Polling refresh",pollRefreshTip:"By default, IIB will automatically refresh when you return to IIB from other tabs or when the visibility of IIB changes. This feature is designed to keep IIB refreshed even when you stay in IIB all the time, please use it with caution",stopPollRefresh:"Stop Polling refresh",restoreLastWorkspaceStateSuccess:"Restore Last Workspace State Success",restoreWorkspaceSnapshotSuccess:"Restore Workspace Snapshot Success",openOnAppStart:"Open on app start",confirmThisAction:"Confirm this action?",WorkspaceSnapshotDesc:`Using the Workspace Snapshot feature, you can save the current state of the workspace so that you can quickly restore to the current state the next time you open IIB. You can specify which snapshot to restore to when starting IIB in the global settings page, or restore to the last workspace state before closing.`,saveWorkspaceSnapshot:"Save Workspace Snapshot",WorkspaceSnapshot:"Workspace Snapshot",restoreLastWorkspaceState:"Restore Last Workspace State",restoreWorkspaceSnapshot:"Restore Workspace Snapshot: {0}",nameRequired:"Name is required",save:"Save",name:"Name",saveCompleted:"Save completed",openThisAppInNewWindow:"Open IIB in a new window",readonly:"Read-only",accessLimited:"Access Limited",selectFolder:"Select Folder",openFileLocationInNewTab:"Open File Location in New Tab",copyTo:"Copy to",moveTo:"Move to",moveSuccess:"Move success",copySuccess:"Copy success",copyFilePath:"Copy file path",previewMaskBackgroundOpacity:"Preview Mask Background Opacity",experimentalLRLayout:"Experimental Side-by-Side Layout",width:"Width",alwaysOnTooltipInfo:"If this is turned off, the info panel will be hidden until you move the mouse to the right side of the screen",alwaysOn:"Always On",time:"Time",pin:"Pin",unpin:"Unpin",restore:"Restore",restoreFromHistory:"Restore from History",history:"History",historyRecordsSubstr:"Input Value",historyRecordsisRegex:"Is Regex",walkModeDoc:"Browse all files in a specified folder without paging, using infinite scrolling to display them. DFS will be used to traverse all files. Note: Sorting is only performed within the same layer in this mode.",normalModelDoc:"Similar to the Windows file browser, with high flexibility. But exceptions may occur when accessing cloud storage or similar SMB.",fixedModeDoc:"Similar to Normal mode, but with faster initial page speed, better compatibility, and slightly less flexibility. If you encounter an exception in Normal mode, you can try this mode instead.",type:"Type",filterByKeyword:"Filter tags by keyword",loadmore:"Load more",rename:"Rename",inputAlias:"Input Alias",addAliasCompleted:"Add Alias Completed",alias:"Alias",exit:"Exit","select-all":"Select All","rerverse-select":"Reverse Select","clear-all-selected":"Clear All Selected","keep-multi-selected":"Keep Multi-selected","Source Identifier":"Source",openWithDefaultApp:"Open with default app",saveSelectedAsJson:"Save selected image info",saveAllAsJson:"Save all image info",saveLoadedImageAsJson:"Save loaded image info",selectedItems:" {0} selected",items:"{0} items",scrollDownToComparePrompt:"Scroll down to compare prompts",sourceText:"Source Text",structuredData:"Structured Data",searchScope:"Search Scope",specifiedSearchFolder:"Specify the folders to search, separate multiple folders with commas or line breaks",batchAddTag:"Batch Add Tag",batchRemoveTag:"Batch Remove Tag",imageCompareTips:`When dragging files, this panel will also appear, so you don't need to open the "Image Comparison" feature separately.`,dragToResizePanel:"Drag to resize the panel",clickToToggleMaximizeMinimize:"Click to toggle maximize/minimize",dragToMovePanel:"Drag to move the panel",privacyAndSecurity:"Security & Privacy",deleteOneOnlySkipConfirm:"Do not confirm when deleting a single file",resetOnGlobalSettingsPage:"You can reset on the global settings page",secretKeyMustBeConfigured:"Secret Key must be configured",secretKeyRequiredWarnMsg:`For security reasons, you must separately configure Secret Key for this extension, refer to the IIB_SECRET_KEY in the .env.example file under the root directory of this extension. This error only appears when gradio-auth is configured.`,remove:"Remove",batchDownload:"Batch Download",archive:"Archive",zipDownload:"Download as ZIP",batchDownloaDDragAndDropHint:"Use drag and drop or the 'Send to Batch Download' option in the right-click menu to add images from other pages here. Multiple selections are supported.",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)",showChangeIndicators:"Show Change Indicators",seedAsChange:"Seed as Change",defaultShowChangeIndicators:"Default Show Change Indicators",defaultSeedAsChange:"Default Compare Seed as Change",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToExtraPath:"Are you sure you want to add? This may take a lot of time to index if the folder is large. ",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",promptcompare:"Compare Prompts",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 Full-screen view.",shortcutKey:"Keyboard Shortcuts (Only Available in Full-screen view 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",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. You can search by entering partial characters",selectAnyMatchTag:"Optional, Select Any Match Tags. You can search by entering partial characters",selectExcludeTag:"Optional, Select Exclude Tags. You can search by entering partial characters",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 view","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",copyPositivePrompt:"Copy positive prompt",toggleTag:"Toggle Tag Selection (Favorite)",addCompleted:"Add completed",removeCompleted:"Remove Completed",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",gridThumbnailWidth:"Grid thumbnail width",start:"Start",tip:"Tip",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",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",sendToBatchDownload:"Send to BatchDownload",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",launchFromNormalAndFixed:"Use Normal / Fixed mode to browse images",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",openOnTheRight:"Open to the Side",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/images/videos",send2savedDir:"Send to saved folder",regexSearchEnabledHint:"(You can also enable regex search by clicking the regex icon on the right)",rebuildImageIndex:"Rebuild image index",confirmRebuildImageIndex:"Confirm rebuilding image index?",rebuildComplete:"Rebuild complete",tagSearchNoResultsMessage:"It seems like no results were found. Try rebuilding the index to remove unused tags?"},cz={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","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",addCompleted:"Hinzufügen abgeschlossen",removeCompleted:"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",gridThumbnailWidth:"Breite der Miniatur-Rasteransicht",start:"Start",tip:"Hinweis",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",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",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",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",send2savedDir:"In den gespeicherten Ordner senden",promptcompare:"Prompts vergleichen"},fz={success:"成功",setCurrFrameAsVideoPoster:"設置當前幀為視頻封面",sync:"同步",syncDesc:"當你需要實現多設備或者多用戶之間的簡單設置隔離時你可以關閉這個選項, IIB的大部分設置將只會保存到當前瀏覽器上(跨域的情況下也是隔離),不會同步到服務器",readonlyModeSettingPageDesc:"當前為只讀模式,你可以調整調整設置,但這些更改不會被保存",syncHistoryToLocal:"同步歷史到本地",showCommaInGenInfoPanel:"在生成信息面板中顯示逗號",walkModeAutoRefreshDisabled:"Walk模式下自動刷新已停用",disable:"停用",autoRefresh:"自動刷新",autoRefreshNormalFixedMode:"啟用自動刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"啟用自動刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下觸發自動刷新的位置極限",pollInterval:"輪詢間隔",pollRefresh:"輪詢刷新",stopPollRefresh:"停止輪詢刷新",pollRefreshTip:"默認情況下你從其他TAB返回IIB時或者IIB的可見性發生改變時IIB都會自動刷新。這個功能是為了讓你一直呆在IIB內時他也能自動刷新,請慎重使用",restoreLastWorkspaceStateSuccess:"成功恢復上次工作區狀態",restoreWorkspaceSnapshotSuccess:"成功恢復工作區快照",openOnAppStart:"啟動時打開",confirmThisAction:"確認這個操作?",WorkspaceSnapshotDesc:`使用工作區快照功能你可以保存當前工作區的狀態,以便下次打開IIB時快速恢復到當前狀態。 +`,detailList:"Detailübersicht",previewGrid:"Vorschau-Rasteransicht",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",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",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",send2savedDir:"In den gespeicherten Ordner senden",promptcompare:"Prompts vergleichen"},fz={clearCacheIfNotTakeEffect:"如果更改沒有生效,請嘗試清理頁面緩存",success:"成功",setCurrFrameAsVideoPoster:"設置當前幀為視頻封面",sync:"同步",syncDesc:"當你需要實現多設備或者多用戶之間的簡單設置隔離時你可以關閉這個選項, IIB的大部分設置將只會保存到當前瀏覽器上(跨域的情況下也是隔離),不會同步到服務器",readonlyModeSettingPageDesc:"當前為只讀模式,你可以調整調整設置,但這些更改不會被保存",syncHistoryToLocal:"同步歷史到本地",showCommaInGenInfoPanel:"在生成信息面板中顯示逗號",walkModeAutoRefreshDisabled:"Walk模式下自動刷新已停用",disable:"停用",autoRefresh:"自動刷新",autoRefreshNormalFixedMode:"啟用自動刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"啟用自動刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下觸發自動刷新的位置極限",pollInterval:"輪詢間隔",pollRefresh:"輪詢刷新",stopPollRefresh:"停止輪詢刷新",pollRefreshTip:"默認情況下你從其他TAB返回IIB時或者IIB的可見性發生改變時IIB都會自動刷新。這個功能是為了讓你一直呆在IIB內時他也能自動刷新,請慎重使用",restoreLastWorkspaceStateSuccess:"成功恢復上次工作區狀態",restoreWorkspaceSnapshotSuccess:"成功恢復工作區快照",openOnAppStart:"啟動時打開",confirmThisAction:"確認這個操作?",WorkspaceSnapshotDesc:`使用工作區快照功能你可以保存當前工作區的狀態,以便下次打開IIB時快速恢復到當前狀態。 你可以在全局設置頁面中指定啟動IIB時恢復到哪一個快照,或者恢復到最後關閉前的工作區狀態。`,WorkspaceSnapshot:"工作區快照",restoreLastWorkspaceState:"恢復上次工作區狀態",restoreWorkspaceSnapshot:"恢復工作區快照: {0}",saveWorkspaceSnapshot:"保存工作區快照",save:"保存",name:"名稱",nameRequired:"名稱不能為空",saveCompleted:"保存完成",openThisAppInNewWindow:"在新窗口打開本應用",readonly:"只讀",accessLimited:"訪問受限",selectFolder:"選擇文件夾",openFileLocationInNewTab:"在新標籤頁打開文件位置",copyTo:"複製到",moveTo:"移動到",moveSuccess:"移動成功",copySuccess:"複製成功",copyFilePath:"複製文件路徑",previewMaskBackgroundOpacity:"預覽遮罩背景透明度",experimentalLRLayout:"實驗性並列布局",width:"寬度",alwaysOnTooltipInfo:"若關閉此項,信息面板將收起,直至滑鼠移動至屏幕右側時才打開",alwaysOn:"常駐",time:"時間",pin:"置頂",unpin:"取消置頂",restore:"還原",restoreFromHistory:"從歷史記錄中恢復",history:"歷史記錄",historyRecordsSubstr:"輸入值",historyRecordsisRegex:"是否正則",walkModeDoc:"無需翻頁即可瀏覽指定資料夾下的所有檔案,使用無限捲動的方式呈現。將會使用 DFS 的方式遍歷所有檔案. 注意:該模式下排序僅在同層之間進行",normalModelDoc:"類似於 Windows 的檔案瀏覽器,擁有較高的靈活性. 但在訪問雲端儲存或者類似 SMB 這樣的地方時可能會出現異常",fixedModeDoc:"類似 Normal 模式,但頁面初始速度更快,相容性更好,靈活性稍差。在 Normal 模式下出現了異常的話都可以改用這個試試",type:"類型",filterByKeyword:"輸入標籤關鍵詞過濾",loadmore:"載入更多",rename:"重命名",inputAlias:"輸入別名",addAliasCompleted:"添加別名完成",alias:"別名",showChangeIndicators:"顯示變更指示器",seedAsChange:"將Seed也進行比較",defaultShowChangeIndicators:"預設顯示變更指示器",defaultSeedAsChange:"預設將Seed也進行比較",exit:"退出","select-all":"全選","rerverse-select":"反選","clear-all-selected":"清除所有選擇","keep-multi-selected":"保留多選","Source Identifier":"來源",openWithDefaultApp:"使用預設應用程式開啟",saveSelectedAsJson:"儲存選取的圖像資訊",saveAllAsJson:"儲存所有圖像資訊",saveLoadedImageAsJson:"儲存已載入的圖像資訊",scrollDownToComparePrompt:"向下滾查看Prompt比較",sourceText:"源文本",structuredData:"結構化數據",searchScope:"搜尋範圍",specifiedSearchFolder:"指定搜尋的資料夾,使用逗號或換行分割多個",batchAddTag:"批量添加Tag",batchRemoveTag:"批量移除Tag",errorOccurred:"發生了個錯誤",useThumbnailPreview:"使用縮圖預覽",gridThumbnailWidth:"網格縮圖寬度",start:"開始",tip:"提示",sortByDateAscending:"修改日期昇序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"創建日期昇序",sortByCreatedDateDescending:"創建日期降序",sortByNameAscending:"名稱昇序",sortByNameDescending:"名稱降序",sortBySizeAscending:"大小昇序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"輸入地址回車",go:"前往",unknownError:"未知錯誤",loadingNextFolder:"即將載入下一個文件夾的文件",moveFailedCheckPath:"移動失敗,檢查你的路徑輸入",detailList:"詳情列表",previewGrid:"預覽網格",moveSelectedFilesTo:"下列文件 移動 / 複製 至",confirm:"確定",download:"下載",local:"本地",sendImageFailed:"發送圖像失敗,請攜帶console的錯誤訊息找開發者",confirmDelete:"確認刪除?",deleteSuccess:"刪除成功",doubleClickToCopy:"雙擊複製",promptcompare:"Compare Prompts",root:"根",drive:"磁碟",refresh:"重新整理",quickMove:"快速移動",more:"更多",viewMode:"檢視模式",sortingMethod:"排序方法",copyPath:"複製路徑",deleteSelected:"刪除",previewInNewWindow:"在新窗口預覽",copySourceFilePreviewLink:"複製源文件預覽連結",viewGenerationInfo:"檢視生成信息(提示等)",sendToTxt2img:"發送到文生圖",sendToImg2img:"發送到圖生圖",sendToInpaint:"發送到局部重繪",sendToControlNet:"發送到ControlNet",sendToBatchDownload:"發送到批量下載",sendToExtraFeatures:"發送到附加功能",loadNextPage:"載入下一頁",localFile:"本地檔案",globalSettings:"全域設定",welcome:"歡迎",openInNewWindow:"在新頁面打開",restoreLastRecord:"還原上次記錄",launch:"啟動",walkMode:"使用 Walk 模式瀏覽圖片",launchFromNormalAndFixed:"使用 Normal / Fixed 模式瀏覽圖片",recent:"最近",emptyStartPage:"空啟動頁",t2i:"文生圖",i2i:"圖生圖",saveButtonSavesTo:"儲存",extra:"附加",gridImage:"網格式圖","i2i-grid":"圖生圖網格",image:"圖片","t2i-grid":"文生圖網格",workingFolder:"工作文件夾",lang:"語言",langChangeReload:"重新載入: 一些變化可能需要在重新載入後生效",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:"切換標籤選中 (收藏)",addCompleted:"新增完成",removeCompleted:"移除完成",addedTagToImage:'已添加標籤 "{tag}" 到本圖片',removedTagFromImage:'已從本圖片上移除 "{tag}" 標籤',openContextMenu:"打開上下文功能表",copyPrompt:"複製提示",copyPositivePrompt:"複製正向提示",refreshCompleted:"重新整理完成","walk-mode-move-message":"在walk模式下僅允許使用“快速移動”移動位置",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:"複製完成,你可以通過複製的url直接打開目前文件夾",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:"路徑不存在",confirmToAddToExtraPath:"確定添加?如果文件夾過大將會消耗過多時間建立索引。",clientSpecificSettings:"客戶端特有的設置",initiateSoftwareStartupConfig:"初始化軟件啟動配置",gridCellWidth:"網格單元寬度 (px)",defaultGridCellWidth:"默認網格單元寬度 (px)",thumbnailResolution:"縮圖解析度 (px)",livePreview:"實時預覽",other:"其他",ImageBrowsingSettings:"圖片瀏覽設置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定義網格圖像的大小了,在全域設置頁或者右上角的“更多”裡面進行調整",desktop:"桌面",move:"移動",inputFolderName:"輸入文件夾名稱",createFolder:"新增文件夾",sendToThirdPartyExtension:"發送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:"使用拖拽或者右鍵功能表中的“發送到批量下載”將其他頁面的圖片添加到這裡,支持多選",zipDownload:"打包成zip下載",archive:"歸檔",batchDownload:"批量下載",remove:"移除",secretKeyRequiredWarnMsg:"為了安全考慮,你必須為本拓展單獨配置Secret Key,具體參考本拓展根目錄下的.env.example文件內的IIB_SECRET_KEY。 這項警告只會在配置了gradio-auth時出現",secretKeyMustBeConfigured:"必須配置Secret Key",deleteOneOnlySkipConfirm:"刪除單個文件時不進行確認",resetOnGlobalSettingsPage:"你可以在全域設置頁重置",privacyAndSecurity:"安全與隱私",dragToResizePanel:"按住並拖動來調整面板的大小",clickToToggleMaximizeMinimize:"單擊切換最大化/最小化",dragToMovePanel:"按住並拖動來移動面板",imageCompareTips:"拖拽文件時也會出現這個面板,可以不需要打開 “圖片對比” 功能",regexSearchEnabledHint:"(你也可以通過點擊右側的正則式圖標來啟用正則式搜索)",confirmRebuildImageIndex:"確認重建圖像索引?",rebuildImageIndex:"重新構建圖像索引",rebuildComplete:"重新構建完成",tagSearchNoResultsMessage:"看起來沒有匹配到任何結果,嘗試通過重新構建索引來去除無用的標籤?"},nS=()=>{const t=navigator.language.toLowerCase();if(t.startsWith("zh"))return/hk|tw|mo/.test(t)?"zhHant":"zhHans";switch(t){case"de":case"de-de":return"de";default:return"en"}},Zv=J5({locale:nS(),fallbackLocale:"en",messages:{zhHans:nb,zhHant:fz,zh:nb,en:uz,de:cz},legacy:!1}),{t:Ie,locale:jU}=Zv.global;/*! js-cookie v3.0.5 | MIT */function Fs(t){for(var e=1;e"u")){o=Fs({},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 s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+t.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const t=new Qv;return{eventEmitter:t,useEventListen:(n,r)=>{t.on(n,r),Ze(()=>t.off(n,r))}}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -189,7 +189,7 @@ Note that this is not an issue if running this frontend on a browser instead of `;async function h3(){return le({__tauriModule:"Os",message:{cmd:"platform"}})}async function m3(){return le({__tauriModule:"Os",message:{cmd:"version"}})}async function g3(){return le({__tauriModule:"Os",message:{cmd:"osType"}})}async function y3(){return le({__tauriModule:"Os",message:{cmd:"arch"}})}async function b3(){return le({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function w3(){return le({__tauriModule:"Os",message:{cmd:"locale"}})}var Vo={};Ut(Vo,{BaseDirectory:()=>Rl,Dir:()=>Rl,copyFile:()=>P3,createDir:()=>E3,exists:()=>A3,readBinaryFile:()=>C3,readDir:()=>x3,readTextFile:()=>_3,removeDir:()=>O3,removeFile:()=>T3,renameFile:()=>I3,writeBinaryFile:()=>S3,writeFile:()=>ob,writeTextFile:()=>ob});var Rl=(t=>(t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp",t[t.AppConfig=21]="AppConfig",t[t.AppData=22]="AppData",t[t.AppLocalData=23]="AppLocalData",t[t.AppCache=24]="AppCache",t[t.AppLog=25]="AppLog",t))(Rl||{});async function _3(t,e={}){return le({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function C3(t,e={}){let n=await le({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function ob(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":a=e,le({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:a}})}async function S3(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?a=e:typeof t=="string"&&(r.contents=e??[]),le({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:a}})}async function x3(t,e={}){return le({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function E3(t,e={}){return le({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function O3(t,e={}){return le({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function P3(t,e,n={}){return le({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function T3(t,e={}){return le({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function I3(t,e,n={}){return le({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function A3(t,e={}){return le({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var M3={};Ut(M3,{BaseDirectory:()=>Rl,appCacheDir:()=>$3,appConfigDir:()=>ES,appDataDir:()=>N3,appDir:()=>k3,appLocalDataDir:()=>R3,appLogDir:()=>OS,audioDir:()=>L3,basename:()=>l7,cacheDir:()=>D3,configDir:()=>F3,dataDir:()=>B3,delimiter:()=>n7,desktopDir:()=>j3,dirname:()=>o7,documentDir:()=>z3,downloadDir:()=>W3,executableDir:()=>H3,extname:()=>s7,fontDir:()=>V3,homeDir:()=>U3,isAbsolute:()=>u7,join:()=>i7,localDataDir:()=>K3,logDir:()=>e7,normalize:()=>a7,pictureDir:()=>G3,publicDir:()=>q3,resolve:()=>r7,resolveResource:()=>X3,resourceDir:()=>Y3,runtimeDir:()=>J3,sep:()=>t7,templateDir:()=>Z3,videoDir:()=>Q3});async function k3(){return ES()}async function ES(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function N3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function R3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function $3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function L3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function D3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function F3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function B3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function j3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function z3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function W3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function H3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function V3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function U3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function K3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function G3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function q3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function Y3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function X3(t){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function J3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function Z3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function Q3(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function e7(){return OS()}async function OS(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var t7=op()?"\\":"/",n7=op()?";":":";async function r7(...t){return le({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function a7(t){return le({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function i7(...t){return le({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function o7(t){return le({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function s7(t){return le({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function l7(t,e){return le({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function u7(t){return le({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var c7={};Ut(c7,{exit:()=>f7,relaunch:()=>PS});async function f7(t=0){return le({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function PS(){return le({__tauriModule:"Process",message:{cmd:"relaunch"}})}var d7={};Ut(d7,{Child:()=>TS,Command:()=>IS,EventEmitter:()=>al,open:()=>p7});async function v7(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),le({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:Ra(t)}})}var al=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let a of r)a(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.prependListener(e,r)}},TS=class{constructor(e){this.pid=e}async write(e){return le({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return le({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},IS=class extends al{constructor(e,n=[],r){super(),this.stdout=new al,this.stderr=new al,this.program=e,this.args=typeof n=="string"?[n]:n,this.options=r??{}}static sidecar(e,n=[],r){let a=new IS(e,n,r);return a.options.sidecar=!0,a}async spawn(){return v7(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new TS(e))}async execute(){return new Promise((e,n)=>{this.on("error",n);let r=[],a=[];this.stdout.on("data",i=>{r.push(i)}),this.stderr.on("data",i=>{a.push(i)}),this.on("close",i=>{e({code:i.code,signal:i.signal,stdout:r.join(` `),stderr:a.join(` `)})}),this.spawn().catch(n)})}};async function p7(t,e){return le({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var h7={};Ut(h7,{getName:()=>g7,getTauriVersion:()=>y7,getVersion:()=>m7,hide:()=>w7,show:()=>b7});async function m7(){return le({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function g7(){return le({__tauriModule:"App",message:{cmd:"getAppName"}})}async function y7(){return le({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function b7(){return le({__tauriModule:"App",message:{cmd:"show"}})}async function w7(){return le({__tauriModule:"App",message:{cmd:"hide"}})}var _7={};Ut(_7,{getMatches:()=>C7});async function C7(){return le({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var S7={};Ut(S7,{readText:()=>E7,writeText:()=>x7});async function x7(t){return le({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function E7(){return le({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var O7={};Ut(O7,{ask:()=>I7,confirm:()=>A7,message:()=>T7,open:()=>AS,save:()=>P7});async function AS(t={}){return typeof t=="object"&&Object.freeze(t),le({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function P7(t={}){return typeof t=="object"&&Object.freeze(t),le({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function T7(t,e){var r,a;let n=typeof e=="string"?{title:e}:e;return le({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabel:(a=n==null?void 0:n.okLabel)==null?void 0:a.toString()}})}async function I7(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return le({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Yes",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"No"]}})}async function A7(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return le({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Ok",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"Cancel"]}})}var M7={};Ut(M7,{isRegistered:()=>R7,register:()=>k7,registerAll:()=>N7,unregister:()=>$7,unregisterAll:()=>L7});async function k7(t,e){return le({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:Ra(e)}})}async function N7(t,e){return le({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:Ra(e)}})}async function R7(t){return le({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function $7(t){return le({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function L7(){return le({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var D7={};Ut(D7,{Body:()=>ao,Client:()=>NS,Response:()=>kS,ResponseType:()=>MS,fetch:()=>F7,getClient:()=>RS});var MS=(t=>(t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary",t))(MS||{}),ao=class{constructor(t,e){this.type=t,this.payload=e}static form(t){let e={},n=(r,a)=>{if(a!==null){let i;typeof a=="string"?i=a:a instanceof Uint8Array||Array.isArray(a)?i=Array.from(a):a instanceof File?i={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?i={file:a.file,mime:a.mime,fileName:a.fileName}:i={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},e[String(r)]=i}};if(t instanceof FormData)for(let[r,a]of t)n(r,a);else for(let[r,a]of Object.entries(t))n(r,a);return new ao("Form",e)}static json(t){return new ao("Json",t)}static text(t){return new ao("Text",t)}static bytes(t){return new ao("Bytes",Array.from(t instanceof ArrayBuffer?new Uint8Array(t):t))}},kS=class{constructor(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data}},NS=class{constructor(t){this.id=t}async drop(){return le({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(t){let e=!t.responseType||t.responseType===1;return e&&(t.responseType=2),le({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}}).then(n=>{let r=new kS(n);if(e){try{r.data=JSON.parse(r.data)}catch(a){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${a}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(t,e){return this.request({method:"GET",url:t,...e})}async post(t,e,n){return this.request({method:"POST",url:t,body:e,...n})}async put(t,e,n){return this.request({method:"PUT",url:t,body:e,...n})}async patch(t,e){return this.request({method:"PATCH",url:t,...e})}async delete(t,e){return this.request({method:"DELETE",url:t,...e})}};async function RS(t){return le({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new NS(e))}var Ic=null;async function F7(t,e){return Ic===null&&(Ic=await RS()),Ic.request({url:t,method:(e==null?void 0:e.method)??"GET",...e})}var B7=ku;const $l=z(),j7=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{$l.value=await B7("get_tauri_conf")}catch(t){console.error(t)}};var z7=!1;function sp(t){return Vl()?(id(t),!0):!1}function lp(t){return typeof t=="function"?t():xe(t)}const $S=typeof window<"u",up=()=>{};function W7(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 LS=t=>t();function H7(t=LS){const e=z(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:Kl(e),pause:n,resume:r,eventFilter:a}}function V7(...t){if(t.length!==1)return Jt(...t);const e=t[0];return typeof e=="function"?Kl(OE(()=>({get:e,set:up}))):z(e)}function U7(t,e=!0){Ct()?De(t):e?t():ze(t)}var sb=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,G7=Object.prototype.propertyIsEnumerable,q7=(t,e)=>{var n={};for(var r in t)K7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&sb)for(var r of sb(t))e.indexOf(r)<0&&G7.call(t,r)&&(n[r]=t[r]);return n};function Y7(t,e,n={}){const r=n,{eventFilter:a=LS}=r,i=q7(r,["eventFilter"]);return ve(t,W7(a,e),i)}var X7=Object.defineProperty,J7=Object.defineProperties,Z7=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,lb=(t,e,n)=>e in t?X7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q7=(t,e)=>{for(var n in e||(e={}))DS.call(e,n)&&lb(t,n,e[n]);if(Ll)for(var n of Ll(e))FS.call(e,n)&&lb(t,n,e[n]);return t},eW=(t,e)=>J7(t,Z7(e)),tW=(t,e)=>{var n={};for(var r in t)DS.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ll)for(var r of Ll(t))e.indexOf(r)<0&&FS.call(t,r)&&(n[r]=t[r]);return n};function nW(t,e,n={}){const r=n,{eventFilter:a}=r,i=tW(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=H7(a);return{stop:Y7(t,e,eW(Q7({},i),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Uf(t,e,n){let r;it(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:s=up}=r,l=z(!a),u=o?Wn(e):z(e);let c=0;return dt(async d=>{if(!l.value)return;c++;const v=c;let h=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const f=await t(p=>{d(()=>{i&&(i.value=!1),h||p()})});v===c&&(u.value=f)}catch(f){s(f)}finally{i&&v===c&&(i.value=!1),h=!0}}),a?G(()=>(l.value=!0,u.value)):u}function ta(t){var e;const n=lp(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Rr=$S?window:void 0,rW=$S?window.document:void 0;function In(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Rr):[e,n,r,a]=t,!e)return up;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,v,h)=>(c.addEventListener(d,v,h),()=>c.removeEventListener(d,v,h)),l=ve(()=>[ta(e),lp(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return sp(u),u}const aW=500;function ZU(t,e,n){var r,a;const i=G(()=>ta(t));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,v,h,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==i.value||(s(),(v=n==null?void 0:n.modifiers)!=null&&v.prevent&&c.preventDefault(),(h=n==null?void 0:n.modifiers)!=null&&h.stop&&c.stopPropagation(),o=setTimeout(()=>e(c),(f=n==null?void 0:n.delay)!=null?f:aW))}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};In(i,"pointerdown",l,u),In(i,"pointerup",s,u),In(i,"pointerleave",s,u)}function iW(){const t=z(!1);return Ct()&&De(()=>{t.value=!0}),t}function BS(t){const e=iW();return G(()=>(e.value,!!t()))}function oW(t,e={}){const{window:n=Rr}=e,r=BS(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=z(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{r.value&&(o(),a=n.matchMedia(V7(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",s):a.addListener(s)))};return dt(s),sp(()=>o()),i}const js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zs="__vueuse_ssr_handlers__",sW=lW();function lW(){return zs in js||(js[zs]=js[zs]||{}),js[zs]}function uW(t,e){return sW[t]||e}function cW(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 fW=Object.defineProperty,ub=Object.getOwnPropertySymbols,dW=Object.prototype.hasOwnProperty,vW=Object.prototype.propertyIsEnumerable,cb=(t,e,n)=>e in t?fW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fb=(t,e)=>{for(var n in e||(e={}))dW.call(e,n)&&cb(t,n,e[n]);if(ub)for(var n of ub(e))vW.call(e,n)&&cb(t,n,e[n]);return t};const pW={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()}},db="vueuse-storage";function hW(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Rr,eventFilter:v,onError:h=A=>{console.error(A)}}=r,f=(c?Wn:z)(e);if(!n)try{n=uW("getDefaultStorage",()=>{var A;return(A=Rr)==null?void 0:A.localStorage})()}catch(A){h(A)}if(!n)return f;const p=lp(e),g=cW(p),m=(a=r.serializer)!=null?a:pW[g],{pause:y,resume:b}=nW(f,()=>w(f.value),{flush:i,deep:o,eventFilter:v});return d&&s&&(In(d,"storage",O),In(d,db,C)),O(),f;function w(A){try{if(A==null)n.removeItem(t);else{const E=m.write(A),N=n.getItem(t);N!==E&&(n.setItem(t,E),d&&d.dispatchEvent(new CustomEvent(db,{detail:{key:t,oldValue:N,newValue:E,storageArea:n}})))}}catch(E){h(E)}}function _(A){const E=A?A.newValue:n.getItem(t);if(E==null)return l&&p!==null&&n.setItem(t,m.write(p)),p;if(!A&&u){const N=m.read(E);return typeof u=="function"?u(N,p):g==="object"&&!Array.isArray(N)?fb(fb({},p),N):N}else return typeof E!="string"?E:m.read(E)}function C(A){O(A.detail)}function O(A){if(!(A&&A.storageArea!==n)){if(A&&A.key==null){f.value=p;return}if(!(A&&A.key!==t)){y();try{f.value=_(A)}catch(E){h(E)}finally{A?ze(b):b()}}}}}function mW(t){return oW("(prefers-color-scheme: dark)",t)}function gW({document:t=rW}={}){if(!t)return z("visible");const e=z(t.visibilityState);return In(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var vb=Object.getOwnPropertySymbols,yW=Object.prototype.hasOwnProperty,bW=Object.prototype.propertyIsEnumerable,wW=(t,e)=>{var n={};for(var r in t)yW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vb)for(var r of vb(t))e.indexOf(r)<0&&bW.call(t,r)&&(n[r]=t[r]);return n};function _W(t,e,n={}){const r=n,{window:a=Rr}=r,i=wW(r,["window"]);let o;const s=BS(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=G(()=>Array.isArray(t)?t.map(v=>ta(v)):[ta(t)]),c=ve(u,v=>{if(l(),s.value&&a){o=new ResizeObserver(e);for(const h of v)h&&o.observe(h,i)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return sp(d),{isSupported:s,stop:d}}function CW(t,e={width:0,height:0},n={}){const{window:r=Rr,box:a="content-box"}=n,i=G(()=>{var l,u;return(u=(l=ta(t))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=z(e.width),s=z(e.height);return _W(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const c=ta(t);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:v})=>d+v,0),s.value=c.reduce((d,{blockSize:v})=>d+v,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),ve(()=>ta(t),l=>{o.value=l?e.width:0,s.value=l?e.height:0}),{width:o,height:s}}function SW(t,e,n={}){const{window:r=Rr}=n;return hW(t,e,r==null?void 0:r.localStorage,n)}const xW={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 EW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Rr,target:o=i,eventFilter:s}=t,l=z(a.x),u=z(a.y),c=z(null),d=typeof e=="function"?e:xW[e],v=m=>{const y=d(m);y&&([l.value,u.value]=y,c.value="mouse")},h=m=>{if(m.touches.length>0){const y=d(m.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=a.x,u.value=a.y},p=s?m=>s(()=>v(m),{}):m=>v(m),g=s?m=>s(()=>h(m),{}):m=>h(m);return o&&(In(o,"mousemove",p,{passive:!0}),In(o,"dragover",p,{passive:!0}),n&&e!=="movement"&&(In(o,"touchstart",g,{passive:!0}),In(o,"touchmove",g,{passive:!0}),r&&In(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function pb(t,e={}){const{handleOutside:n=!0,window:r=Rr}=e,{x:a,y:i,sourceType:o}=EW(e),s=z(t??(r==null?void 0:r.document.body)),l=z(0),u=z(0),c=z(0),d=z(0),v=z(0),h=z(0),f=z(!0);let p=()=>{};return r&&(p=ve([s,a,i],()=>{const g=ta(s);if(!g)return;const{left:m,top:y,width:b,height:w}=g.getBoundingClientRect();c.value=m+r.pageXOffset,d.value=y+r.pageYOffset,v.value=w,h.value=b;const _=a.value-c.value,C=i.value-d.value;f.value=b===0||w===0||_<0||C<0||_>b||C>w,(n||!f.value)&&(l.value=_,u.value=C)},{immediate:!0}),In(document,"mouseleave",()=>{f.value=!0})),{x:a,y:i,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:v,elementWidth:h,isOutside:f,stop:p}}const jS=!!{}.TAURI_ARCH,QU=window===parent,na=encodeURIComponent,Pi=(t,e=!1)=>`${ss.value}/file?path=${na(t.fullpath)}&t=${na(t.date)}${e?`&disposition=${na(t.name)}`:""}`,hb=(t,e="512x512")=>`${ss.value}/image-thumbnail?path=${na(t.fullpath)}&size=${e}&t=${na(t.date)}`,eK=t=>`${ss.value}/stream_video?path=${na(t.fullpath)}`,tK=t=>(jS?"":parent.document.location.origin)+`${ss.value}/video_cover?path=${na(t.fullpath)}&t=${na(t.date)}`,OW=t=>typeof t=="object"&&t.__id==="FileTransferData",PW=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return OW(e)?e:null},nK=t=>iS(t,"fullpath");function zS(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".avif"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function TW(t){var r;if(typeof t!="string")return!1;const e=[".mp4",".m4v",".avi",".mkv",".mov",".wmv",".flv",".ts"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const rK=t=>zS(t)||TW(t);function aK(t){const e=document.createElement("a");e.style.display="none",document.body.appendChild(e),t.forEach(n=>{const r=new URL(n,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let a="";const i=r.searchParams.get("disposition");i&&(a=i),e.href=n,e.download=a,e.click()}),document.body.removeChild(e)}const iK=(t,e)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:t},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${e??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()},cp="iib://";function WS(){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 IW=()=>{const t=WS().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},HS=()=>{try{WS().querySelector("#tabs").querySelectorAll("button")[IW()].click()}catch(t){console.error(t)}},AW=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()}),VS=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),US=()=>nt(new Ho(-1,0,-1,"throw")),oK=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)}Ar.success(e??Ie("copied"))}catch{Ar.error("copy failed. maybe it's non-secure environment")}},{useEventListen:Kf,eventEmitter:fp}=aS();function sK(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 MW(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 Gf=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),kW=t=>{try{return JSON.parse(t)}catch{return null}};function NW(t){return`${t}`.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}const lK=(t,e)=>(e||(e=Ie("confirmThisAction")),(...n)=>Wt.confirm({content:e,onOk:()=>t(...n)})),KS=cp+"sync",Nu=()=>{const t=localStorage.getItem(KS);return t==="true"||t===null},uK=()=>SW(KS,!0),ss=G(()=>$l.value?`http://127.0.0.1:${$l.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),RW=t=>{const e=Ml.hash.sha256.hash(t);return Ml.codec.hex.fromBits(e)},$W=t=>{t.interceptors.response.use(e=>e,async e=>{var n,r,a,i,o,s,l;if(Oj(e)){if(((n=e.response)==null?void 0:n.status)===401){const c=await new Promise(d=>{const v=z("");Wt.confirm({title:Ie("serverKeyRequired"),content:()=>aa(Nt,{value:v.value,"onUpdate:value":h=>v.value=h}),onOk(){d(v.value)}})});if(!c)return;vz.set("IIB_S",RW(c+"_ciallo")),await Ei(100),location.reload()}switch((i=(a=(r=e.response)==null?void 0:r.data)==null?void 0:a.detail)==null?void 0:i.type){case"secret_key_required":throw Wt.error({width:"60vw",title:Ie("secretKeyMustBeConfigured"),content:()=>aa("p",{style:"white-space: pre-line;"},Ie("secretKeyRequiredWarnMsg"))}),new Error(Ie("secretKeyRequiredWarnMsg"))}let u=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.detail;try{u||(u=JSON.parse(await((l=e.response)==null?void 0:l.data.text())).detail)}catch(c){console.error(e.response,c)}throw u??(u=Ie("errorOccurred")),Ar.error(u),new Error(u)}return e})},et=G(()=>{const t=RC.create({baseURL:ss.value});return $W(t),t}),LW=async()=>{const e=(await et.value.get("/global_setting")).data;try{Nu()||(e.app_fe_setting={})}catch(n){console.error(n)}return e},cK=async()=>(await et.value.get("/version")).data,DW=async t=>(await et.value.post("/check_path_exists",{paths:t})).data,fK=async t=>et.value.post(`/send_img_path?path=${encodeURIComponent(t)}`),dK=async()=>(await et.value.get("/gen_info_completed",{timeout:6e4})).data,mb=async t=>(await et.value.get(`/image_geninfo?path=${encodeURIComponent(t)}`)).data,vK=async t=>t.length?(await et.value.post("/image_geninfo_batch",{paths:t})).data:{},pK=async t=>{await et.value.post("/open_folder",{path:t})},hK=async t=>{await et.value.post("/open_with_default_app",{path:t})},mK=async t=>(await et.value.post("/batch_top_4_media_info",{paths:t})).data,GS=async(t,e)=>{Nu()&&await et.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},gK=async t=>{Nu()&&await et.value.delete("/app_fe_setting",{data:{name:t}})},yK=async t=>{await et.value.post("/set_target_frame_as_video_cover",t)},FW=()=>({"date-asc":Ie("sortByDateAscending"),"date-desc":Ie("sortByDateDescending"),"name-asc":Ie("sortByNameAscending"),"name-desc":Ie("sortByNameDescending"),"size-asc":Ie("sortBySizeAscending"),"size-desc":Ie("sortBySizeDescending"),"created-time-asc":Ie("sortByCreatedDateAscending"),"created-time-desc":Ie("sortByCreatedDateDescending")});var dp=(t=>(t.DATE_ASC="date-asc",t.DATE_DESC="date-desc",t.NAME_ASC="name-asc",t.NAME_DESC="name-desc",t.SIZE_ASC="size-asc",t.SIZE_DESC="size-desc",t.CREATED_TIME_ASC="created-time-asc",t.CREATED_TIME_DESC="created-time-desc",t))(dp||{});const bK=Object.values(dp),wK={value:t=>t,text:t=>FW()[t].toLocaleLowerCase()},BW=(t,e)=>{const n=t.type==="dir"?1:0;return(e.type==="dir"?1:0)-n},gb=(t,e)=>{const n=Date.parse(t.date),r=Date.parse(e.date);return n-r},yb=(t,e)=>{const n=Date.parse(t.created_time),r=Date.parse(e.created_time);return n-r},bb=(t,e)=>{const n=t.name.toLowerCase(),r=e.name.toLowerCase();return n.localeCompare(r)},wb=(t,e)=>t.bytes-e.bytes,_K=(t,e)=>{const n=(r,a)=>{switch(e){case"date-asc":return gb(r,a);case"date-desc":return gb(a,r);case"created-time-asc":return yb(r,a);case"created-time-desc":return yb(a,r);case"name-asc":return bb(r,a);case"name-desc":return bb(a,r);case"size-asc":return wb(r,a);case"size-desc":return wb(a,r);default:throw new Error(`Invalid sort method: ${e}`)}};return t.slice().sort((r,a)=>BW(r,a)||n(r,a))};/*! + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(t,e){return this.request({method:"GET",url:t,...e})}async post(t,e,n){return this.request({method:"POST",url:t,body:e,...n})}async put(t,e,n){return this.request({method:"PUT",url:t,body:e,...n})}async patch(t,e){return this.request({method:"PATCH",url:t,...e})}async delete(t,e){return this.request({method:"DELETE",url:t,...e})}};async function RS(t){return le({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new NS(e))}var Ic=null;async function F7(t,e){return Ic===null&&(Ic=await RS()),Ic.request({url:t,method:(e==null?void 0:e.method)??"GET",...e})}var B7=ku;const $l=z(),j7=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{$l.value=await B7("get_tauri_conf")}catch(t){console.error(t)}};var z7=!1;function sp(t){return Vl()?(id(t),!0):!1}function lp(t){return typeof t=="function"?t():xe(t)}const $S=typeof window<"u",up=()=>{};function W7(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 LS=t=>t();function H7(t=LS){const e=z(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:Kl(e),pause:n,resume:r,eventFilter:a}}function V7(...t){if(t.length!==1)return Jt(...t);const e=t[0];return typeof e=="function"?Kl(OE(()=>({get:e,set:up}))):z(e)}function U7(t,e=!0){Ct()?De(t):e?t():ze(t)}var sb=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,G7=Object.prototype.propertyIsEnumerable,q7=(t,e)=>{var n={};for(var r in t)K7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&sb)for(var r of sb(t))e.indexOf(r)<0&&G7.call(t,r)&&(n[r]=t[r]);return n};function Y7(t,e,n={}){const r=n,{eventFilter:a=LS}=r,i=q7(r,["eventFilter"]);return ve(t,W7(a,e),i)}var X7=Object.defineProperty,J7=Object.defineProperties,Z7=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,lb=(t,e,n)=>e in t?X7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q7=(t,e)=>{for(var n in e||(e={}))DS.call(e,n)&&lb(t,n,e[n]);if(Ll)for(var n of Ll(e))FS.call(e,n)&&lb(t,n,e[n]);return t},eW=(t,e)=>J7(t,Z7(e)),tW=(t,e)=>{var n={};for(var r in t)DS.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ll)for(var r of Ll(t))e.indexOf(r)<0&&FS.call(t,r)&&(n[r]=t[r]);return n};function nW(t,e,n={}){const r=n,{eventFilter:a}=r,i=tW(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=H7(a);return{stop:Y7(t,e,eW(Q7({},i),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Uf(t,e,n){let r;it(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:s=up}=r,l=z(!a),u=o?Wn(e):z(e);let c=0;return dt(async d=>{if(!l.value)return;c++;const v=c;let h=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const f=await t(p=>{d(()=>{i&&(i.value=!1),h||p()})});v===c&&(u.value=f)}catch(f){s(f)}finally{i&&v===c&&(i.value=!1),h=!0}}),a?G(()=>(l.value=!0,u.value)):u}function ta(t){var e;const n=lp(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Rr=$S?window:void 0,rW=$S?window.document:void 0;function In(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Rr):[e,n,r,a]=t,!e)return up;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,v,h)=>(c.addEventListener(d,v,h),()=>c.removeEventListener(d,v,h)),l=ve(()=>[ta(e),lp(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return sp(u),u}const aW=500;function ZU(t,e,n){var r,a;const i=G(()=>ta(t));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,v,h,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==i.value||(s(),(v=n==null?void 0:n.modifiers)!=null&&v.prevent&&c.preventDefault(),(h=n==null?void 0:n.modifiers)!=null&&h.stop&&c.stopPropagation(),o=setTimeout(()=>e(c),(f=n==null?void 0:n.delay)!=null?f:aW))}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};In(i,"pointerdown",l,u),In(i,"pointerup",s,u),In(i,"pointerleave",s,u)}function iW(){const t=z(!1);return Ct()&&De(()=>{t.value=!0}),t}function BS(t){const e=iW();return G(()=>(e.value,!!t()))}function oW(t,e={}){const{window:n=Rr}=e,r=BS(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=z(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{r.value&&(o(),a=n.matchMedia(V7(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",s):a.addListener(s)))};return dt(s),sp(()=>o()),i}const js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zs="__vueuse_ssr_handlers__",sW=lW();function lW(){return zs in js||(js[zs]=js[zs]||{}),js[zs]}function uW(t,e){return sW[t]||e}function cW(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 fW=Object.defineProperty,ub=Object.getOwnPropertySymbols,dW=Object.prototype.hasOwnProperty,vW=Object.prototype.propertyIsEnumerable,cb=(t,e,n)=>e in t?fW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fb=(t,e)=>{for(var n in e||(e={}))dW.call(e,n)&&cb(t,n,e[n]);if(ub)for(var n of ub(e))vW.call(e,n)&&cb(t,n,e[n]);return t};const pW={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()}},db="vueuse-storage";function hW(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Rr,eventFilter:v,onError:h=A=>{console.error(A)}}=r,f=(c?Wn:z)(e);if(!n)try{n=uW("getDefaultStorage",()=>{var A;return(A=Rr)==null?void 0:A.localStorage})()}catch(A){h(A)}if(!n)return f;const p=lp(e),g=cW(p),m=(a=r.serializer)!=null?a:pW[g],{pause:y,resume:b}=nW(f,()=>w(f.value),{flush:i,deep:o,eventFilter:v});return d&&s&&(In(d,"storage",O),In(d,db,C)),O(),f;function w(A){try{if(A==null)n.removeItem(t);else{const E=m.write(A),N=n.getItem(t);N!==E&&(n.setItem(t,E),d&&d.dispatchEvent(new CustomEvent(db,{detail:{key:t,oldValue:N,newValue:E,storageArea:n}})))}}catch(E){h(E)}}function _(A){const E=A?A.newValue:n.getItem(t);if(E==null)return l&&p!==null&&n.setItem(t,m.write(p)),p;if(!A&&u){const N=m.read(E);return typeof u=="function"?u(N,p):g==="object"&&!Array.isArray(N)?fb(fb({},p),N):N}else return typeof E!="string"?E:m.read(E)}function C(A){O(A.detail)}function O(A){if(!(A&&A.storageArea!==n)){if(A&&A.key==null){f.value=p;return}if(!(A&&A.key!==t)){y();try{f.value=_(A)}catch(E){h(E)}finally{A?ze(b):b()}}}}}function mW(t){return oW("(prefers-color-scheme: dark)",t)}function gW({document:t=rW}={}){if(!t)return z("visible");const e=z(t.visibilityState);return In(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var vb=Object.getOwnPropertySymbols,yW=Object.prototype.hasOwnProperty,bW=Object.prototype.propertyIsEnumerable,wW=(t,e)=>{var n={};for(var r in t)yW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vb)for(var r of vb(t))e.indexOf(r)<0&&bW.call(t,r)&&(n[r]=t[r]);return n};function _W(t,e,n={}){const r=n,{window:a=Rr}=r,i=wW(r,["window"]);let o;const s=BS(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=G(()=>Array.isArray(t)?t.map(v=>ta(v)):[ta(t)]),c=ve(u,v=>{if(l(),s.value&&a){o=new ResizeObserver(e);for(const h of v)h&&o.observe(h,i)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return sp(d),{isSupported:s,stop:d}}function CW(t,e={width:0,height:0},n={}){const{window:r=Rr,box:a="content-box"}=n,i=G(()=>{var l,u;return(u=(l=ta(t))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=z(e.width),s=z(e.height);return _W(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const c=ta(t);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:v})=>d+v,0),s.value=c.reduce((d,{blockSize:v})=>d+v,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),ve(()=>ta(t),l=>{o.value=l?e.width:0,s.value=l?e.height:0}),{width:o,height:s}}function SW(t,e,n={}){const{window:r=Rr}=n;return hW(t,e,r==null?void 0:r.localStorage,n)}const xW={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 EW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Rr,target:o=i,eventFilter:s}=t,l=z(a.x),u=z(a.y),c=z(null),d=typeof e=="function"?e:xW[e],v=m=>{const y=d(m);y&&([l.value,u.value]=y,c.value="mouse")},h=m=>{if(m.touches.length>0){const y=d(m.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=a.x,u.value=a.y},p=s?m=>s(()=>v(m),{}):m=>v(m),g=s?m=>s(()=>h(m),{}):m=>h(m);return o&&(In(o,"mousemove",p,{passive:!0}),In(o,"dragover",p,{passive:!0}),n&&e!=="movement"&&(In(o,"touchstart",g,{passive:!0}),In(o,"touchmove",g,{passive:!0}),r&&In(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function pb(t,e={}){const{handleOutside:n=!0,window:r=Rr}=e,{x:a,y:i,sourceType:o}=EW(e),s=z(t??(r==null?void 0:r.document.body)),l=z(0),u=z(0),c=z(0),d=z(0),v=z(0),h=z(0),f=z(!0);let p=()=>{};return r&&(p=ve([s,a,i],()=>{const g=ta(s);if(!g)return;const{left:m,top:y,width:b,height:w}=g.getBoundingClientRect();c.value=m+r.pageXOffset,d.value=y+r.pageYOffset,v.value=w,h.value=b;const _=a.value-c.value,C=i.value-d.value;f.value=b===0||w===0||_<0||C<0||_>b||C>w,(n||!f.value)&&(l.value=_,u.value=C)},{immediate:!0}),In(document,"mouseleave",()=>{f.value=!0})),{x:a,y:i,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:v,elementWidth:h,isOutside:f,stop:p}}const jS=!!{}.TAURI_ARCH,QU=window===parent,na=encodeURIComponent,Pi=(t,e=!1)=>`${ss.value}/file?path=${na(t.fullpath)}&t=${na(t.date)}${e?`&disposition=${na(t.name)}`:""}`,hb=(t,e="512x512")=>`${ss.value}/image-thumbnail?path=${na(t.fullpath)}&size=${e}&t=${na(t.date)}`,eK=t=>`${ss.value}/stream_video?path=${na(t.fullpath)}`,tK=t=>(jS?"":parent.document.location.origin)+`${ss.value}/video_cover?path=${na(t.fullpath)}&mt=${na(t.date)}`,OW=t=>typeof t=="object"&&t.__id==="FileTransferData",PW=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return OW(e)?e:null},nK=t=>iS(t,"fullpath");function zS(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".avif"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function TW(t){var r;if(typeof t!="string")return!1;const e=[".mp4",".m4v",".avi",".mkv",".mov",".wmv",".flv",".ts"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const rK=t=>zS(t)||TW(t);function aK(t){const e=document.createElement("a");e.style.display="none",document.body.appendChild(e),t.forEach(n=>{const r=new URL(n,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let a="";const i=r.searchParams.get("disposition");i&&(a=i),e.href=n,e.download=a,e.click()}),document.body.removeChild(e)}const iK=(t,e)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:t},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${e??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()},cp="iib://";function WS(){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 IW=()=>{const t=WS().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},HS=()=>{try{WS().querySelector("#tabs").querySelectorAll("button")[IW()].click()}catch(t){console.error(t)}},AW=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()}),VS=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),US=()=>nt(new Ho(-1,0,-1,"throw")),oK=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)}Ar.success(e??Ie("copied"))}catch{Ar.error("copy failed. maybe it's non-secure environment")}},{useEventListen:Kf,eventEmitter:fp}=aS();function sK(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 MW(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 Gf=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),kW=t=>{try{return JSON.parse(t)}catch{return null}};function NW(t){return`${t}`.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}const lK=(t,e)=>(e||(e=Ie("confirmThisAction")),(...n)=>Wt.confirm({content:e,onOk:()=>t(...n)})),KS=cp+"sync",Nu=()=>{const t=localStorage.getItem(KS);return t==="true"||t===null},uK=()=>SW(KS,!0),ss=G(()=>$l.value?`http://127.0.0.1:${$l.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),RW=t=>{const e=Ml.hash.sha256.hash(t);return Ml.codec.hex.fromBits(e)},$W=t=>{t.interceptors.response.use(e=>e,async e=>{var n,r,a,i,o,s,l;if(Oj(e)){if(((n=e.response)==null?void 0:n.status)===401){const c=await new Promise(d=>{const v=z("");Wt.confirm({title:Ie("serverKeyRequired"),content:()=>aa(Nt,{value:v.value,"onUpdate:value":h=>v.value=h}),onOk(){d(v.value)}})});if(!c)return;vz.set("IIB_S",RW(c+"_ciallo")),await Ei(100),location.reload()}switch((i=(a=(r=e.response)==null?void 0:r.data)==null?void 0:a.detail)==null?void 0:i.type){case"secret_key_required":throw Wt.error({width:"60vw",title:Ie("secretKeyMustBeConfigured"),content:()=>aa("p",{style:"white-space: pre-line;"},Ie("secretKeyRequiredWarnMsg"))}),new Error(Ie("secretKeyRequiredWarnMsg"))}let u=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.detail;try{u||(u=JSON.parse(await((l=e.response)==null?void 0:l.data.text())).detail)}catch(c){console.error(e.response,c)}throw u??(u=Ie("errorOccurred")),Ar.error(u),new Error(u)}return e})},et=G(()=>{const t=RC.create({baseURL:ss.value});return $W(t),t}),LW=async()=>{const e=(await et.value.get("/global_setting")).data;try{Nu()||(e.app_fe_setting={})}catch(n){console.error(n)}return e},cK=async()=>(await et.value.get("/version")).data,DW=async t=>(await et.value.post("/check_path_exists",{paths:t})).data,fK=async t=>et.value.post(`/send_img_path?path=${encodeURIComponent(t)}`),dK=async()=>(await et.value.get("/gen_info_completed",{timeout:6e4})).data,mb=async t=>(await et.value.get(`/image_geninfo?path=${encodeURIComponent(t)}`)).data,vK=async t=>t.length?(await et.value.post("/image_geninfo_batch",{paths:t})).data:{},pK=async t=>{await et.value.post("/open_folder",{path:t})},hK=async t=>{await et.value.post("/open_with_default_app",{path:t})},mK=async t=>(await et.value.post("/batch_top_4_media_info",{paths:t})).data,GS=async(t,e)=>{Nu()&&await et.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},gK=async t=>{Nu()&&await et.value.delete("/app_fe_setting",{data:{name:t}})},yK=async t=>{await et.value.post("/set_target_frame_as_video_cover",t)},FW=()=>({"date-asc":Ie("sortByDateAscending"),"date-desc":Ie("sortByDateDescending"),"name-asc":Ie("sortByNameAscending"),"name-desc":Ie("sortByNameDescending"),"size-asc":Ie("sortBySizeAscending"),"size-desc":Ie("sortBySizeDescending"),"created-time-asc":Ie("sortByCreatedDateAscending"),"created-time-desc":Ie("sortByCreatedDateDescending")});var dp=(t=>(t.DATE_ASC="date-asc",t.DATE_DESC="date-desc",t.NAME_ASC="name-asc",t.NAME_DESC="name-desc",t.SIZE_ASC="size-asc",t.SIZE_DESC="size-desc",t.CREATED_TIME_ASC="created-time-asc",t.CREATED_TIME_DESC="created-time-desc",t))(dp||{});const bK=Object.values(dp),wK={value:t=>t,text:t=>FW()[t].toLocaleLowerCase()},BW=(t,e)=>{const n=t.type==="dir"?1:0;return(e.type==="dir"?1:0)-n},gb=(t,e)=>{const n=Date.parse(t.date),r=Date.parse(e.date);return n-r},yb=(t,e)=>{const n=Date.parse(t.created_time),r=Date.parse(e.created_time);return n-r},bb=(t,e)=>{const n=t.name.toLowerCase(),r=e.name.toLowerCase();return n.localeCompare(r)},wb=(t,e)=>t.bytes-e.bytes,_K=(t,e)=>{const n=(r,a)=>{switch(e){case"date-asc":return gb(r,a);case"date-desc":return gb(a,r);case"created-time-asc":return yb(r,a);case"created-time-desc":return yb(a,r);case"name-asc":return bb(r,a);case"name-desc":return bb(a,r);case"size-asc":return wb(r,a);case"size-desc":return wb(a,r);default:throw new Error(`Invalid sort method: ${e}`)}};return t.slice().sort((r,a)=>BW(r,a)||n(r,a))};/*! * pinia v2.1.3 * (c) 2023 Eduardo San Martin Morote * @license MIT @@ -205,7 +205,7 @@ Note that this is not an issue if running this frontend on a browser instead of \r `,l+=`--- PARAMS ---\r `;for(const[d,v]of Object.entries(u))d=="prompt"||d=="negativePrompt"||(l+=d+": "+v+`\r -`);return l}return ve(()=>{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>mb(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>mb(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=Xo("VueDiff");return $e(),jt(u,{class:"diff",mode:"split",theme:xe(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const R9={key:0,class:"hint"},$9={class:"hint-inline"},L9=de({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=z(50),a=([{size:c}])=>{r.value=c},i=z(),{width:o}=CW(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=Uf(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([Gf(Pi(n.left)),Gf(Pi(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=Uf(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,h=v/d,f=document.body.clientWidth/document.body.clientHeight;return h>f?"width":"height"});return(c,d)=>($e(),at(Ae,null,[ct("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe(tx),{class:"default-theme",onResize:a},{default:Et(()=>[c.left?($e(),jt(xe(Xf),{key:0},{default:Et(()=>[x(Eb,{side:"left","max-edge":xe(u),"container-width":xe(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):ur("",!0),c.right?($e(),jt(xe(Xf),{key:1},{default:Et(()=>[x(Eb,{"max-edge":xe(u),percent:r.value,img:c.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):ur("",!0)]),_:1})],512),c.container!=="drawer"?($e(),at("div",R9,[ct("div",$9,[x(xe(s9)),kn(" "+mn(c.$t("scrollDownToComparePrompt")),1)])])):ur("",!0),x(N9,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const D9={class:"actions"},F9=de({__name:"ImgSliDrawer",setup(t){const e=nx(),n=z();return(r,a)=>{const i=Rn,o=C2,s=o6;return $e(),at(Ae,null,[x(s,{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:Et(()=>[ct("div",D9,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:Et(()=>[kn(mn(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Et(()=>[kn(mn(r.$t("fullscreenview")),1)]),_:1}),x(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Et(()=>[xe(e).left&&xe(e).right?($e(),jt(L9,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:xe(e).left,right:xe(e).right},null,8,["left","right"])):ur("",!0)]),_:1},8,["visible"]),x(b9)],64)}}});const B9=ls(F9,[["__scopeId","data-v-91484911"]]),j9=de({__name:"SplitViewTab",setup(t){const e=ca(),n={local:tr(()=>Bn(()=>import("./stackView-9d4e5342.js"),["assets/stackView-9d4e5342.js","assets/index-5fd83ad6.js","assets/index-41e4fe63.css","assets/numInput-229c2aa0.js","assets/index-6e5caf8a.js","assets/index-806213af.css","assets/functionalCallableComp-58260c55.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-4035ad46.js","assets/index-1cc34316.css","assets/index-c4240098.js","assets/index-80432a0c.css","assets/FileItem-e54d55be.js","assets/FileItem-17626ff1.css","assets/MultiSelectKeep-051920f0.js","assets/shortcut-16cf2087.js","assets/MultiSelectKeep-cedcdbe1.css","assets/stackView-878c6d2b.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:tr(()=>Bn(()=>import("./emptyStartup-6a115c05.js"),["assets/emptyStartup-6a115c05.js","assets/index-4035ad46.js","assets/index-1cc34316.css","assets/index-c4240098.js","assets/index-80432a0c.css","assets/emptyStartup-954396a3.css","assets/index-9fed83c2.css"])),"global-setting":tr(()=>Bn(()=>import("./globalSetting-e2331e68.js"),["assets/globalSetting-e2331e68.js","assets/numInput-229c2aa0.js","assets/index-6e5caf8a.js","assets/index-806213af.css","assets/functionalCallableComp-58260c55.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-4035ad46.js","assets/index-1cc34316.css","assets/shortcut-16cf2087.js","assets/globalSetting-00ba278d.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":tr(()=>Bn(()=>import("./MatchedImageGrid-b0a804de.js"),["assets/MatchedImageGrid-b0a804de.js","assets/index-5fd83ad6.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-051920f0.js","assets/FileItem-e54d55be.js","assets/functionalCallableComp-58260c55.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-c4240098.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/shortcut-16cf2087.js","assets/index-4035ad46.js","assets/index-1cc34316.css","assets/MultiSelectKeep-cedcdbe1.css","assets/hook-9bb60c42.js","assets/MatchedImageGrid-fd659ec7.css"])),"tag-search":tr(()=>Bn(()=>import("./TagSearch-de827449.js"),["assets/TagSearch-de827449.js","assets/index-5fd83ad6.js","assets/index-41e4fe63.css","assets/searchHistory-245088c4.js","assets/index-6e5caf8a.js","assets/index-806213af.css","assets/searchHistory-d0561c22.css","assets/TagSearch-fba3e5b0.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":tr(()=>Bn(()=>import("./SubstrSearch-73895ef5.js"),["assets/SubstrSearch-73895ef5.js","assets/index-5fd83ad6.js","assets/index-41e4fe63.css","assets/index-6e5caf8a.js","assets/index-806213af.css","assets/FileItem-e54d55be.js","assets/functionalCallableComp-58260c55.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-c4240098.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/MultiSelectKeep-051920f0.js","assets/shortcut-16cf2087.js","assets/index-4035ad46.js","assets/index-1cc34316.css","assets/MultiSelectKeep-cedcdbe1.css","assets/hook-9bb60c42.js","assets/searchHistory-245088c4.js","assets/searchHistory-d0561c22.css","assets/SubstrSearch-89fa6d6e.css","assets/index-f4bbe4b8.css"])),"img-sli":tr(()=>Bn(()=>import("./ImgSliPagePane-aaed2b03.js"),["assets/ImgSliPagePane-aaed2b03.js","assets/ImgSliPagePane-868b21f8.css"])),"batch-download":tr(()=>Bn(()=>import("./batchDownload-97a88752.js"),["assets/batchDownload-97a88752.js","assets/FileItem-e54d55be.js","assets/functionalCallableComp-58260c55.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-c4240098.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/batchDownload-08be3fc5.css"])),"grid-view":tr(()=>Bn(()=>import("./gridView-c1aad9dd.js"),["assets/gridView-c1aad9dd.js","assets/FileItem-e54d55be.js","assets/functionalCallableComp-58260c55.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-c4240098.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/gridView-eef9ac55.css"])),"workspace-snapshot":tr(()=>Bn(()=>import("./index-48c46618.js"),["assets/index-48c46618.js","assets/index-bd568ec0.css","assets/index-f4bbe4b8.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:dr(),name:Ie("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const h=e.createEmptyPane();e.tabList.push({panes:[h],key:h.key,id:dr()})}}};Kf("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();ve(()=>e.tabList,async()=>{var o;await ze(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Il(()=>fp.emit("returnToIIB"),100);return U7(async()=>{const o=window.parent;if(!await AW(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),ve(gW(),o=>o&&i()),(o,s)=>{const l=Tl,u=vo;return $e(),at("div",{ref_key:"container",ref:a},[x(xe(tx),{class:"default-theme"},{default:Et(()=>[($e(!0),at(Ae,null,ul(xe(e).tabList,(c,d)=>($e(),jt(xe(Xf),{key:c.id},{default:Et(()=>[x(r9,{tabIdx:d},{default:Et(()=>[x(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,h)=>r(d,v,h)},{default:Et(()=>[($e(!0),at(Ae,null,ul(c.panes,(v,h)=>($e(),jt(l,{key:v.key,tab:v.name,class:"pane"},{default:Et(()=>[($e(),jt(nO(n[v.type]),Ed({tabIdx:d,paneKey:v.key,paneIdx:h},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(B9)],512)}}});const z9=ls(j9,[["__scopeId","data-v-82cd0d95"]]),W9=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],s=n.get("mode"),l={type:"local",path:a,key:dr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,HS(),MW(["action","path","mode"]);break}}};function Pb(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!pr(t)}const rx="app.conf.json",bo=z(),ax=()=>Vo.writeFile(rx,JSON.stringify(Me(bo.value),null,4)),H9=de({setup(){const t=async()=>{const e=await AS({directory:!0});if(typeof e=="string"){if(!await Vo.exists(`${e}/config.json`))return Ar.error(Ie("tauriLaunchConfMessages.configNotFound"));if(!await Vo.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Ar.error(Ie("tauriLaunchConfMessages.folderNotFound"));bo.value.sdwebui_dir=e,Ar.info(Ie("tauriLaunchConfMessages.configCompletedMessage")),await ax(),await ku("shutdown_api_server_command"),await Ei(1500),await PS()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ie("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Ie("tauriLaunchConf.readSdWebuiConfigDescription")]),x(Rn,{onClick:t,type:"primary"},Pb(e=Ie("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ie("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Ie("tauriLaunchConf.skipThisConfigDescription")]),x(Rn,{type:"primary",onClick:Wt.destroyAll},Pb(n=Ie("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),V9=async()=>{try{bo.value=JSON.parse(await Vo.readTextFile(rx))}catch{}bo.value||(bo.value={sdwebui_dir:""},await ax(),Wt.info({title:Ie("tauriLaunchConfMessages.firstTimeUserTitle"),content:x(H9,null,null),width:"80vw",okText:Ie("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Wt.destroyAll}}))},xK=async()=>(await et.value.get("/db/basic_info")).data,EK=async()=>(await et.value.get("/db/expired_dirs")).data,OK=async()=>{await et.value.post("/db/update_image_data",{},{timeout:1/0})},PK=async(t,e)=>(await et.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,TK=async t=>(await et.value.post("/db/add_custom_tag",t)).data,IK=async t=>(await et.value.post("/db/toggle_custom_tag_to_img",t)).data,AK=async t=>{await et.value.post("/db/remove_custom_tag",t)},MK=async t=>(await et.value.post("/db/search_by_substr",t)).data,ix="/db/extra_paths",kK=async t=>{await et.value.post(ix,t)},NK=async t=>{await et.value.delete(ix,{data:t})},RK=async t=>{await et.value.post("/db/alias_extra_path",t)},U9=async t=>(await et.value.post("/db/get_image_tags",{paths:t})).data,$K=()=>et.value.post("/db/rebuild_index"),LK=t=>et.value.post("/db/batch_update_image_tag",t),DK=async t=>(await et.value.post("/db/rename",t)).data;function K9(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const Tb=K9(),G9=$u("useTagStore",()=>{const t=nt(new Map),e=async s=>{if(s=s.filter(l=>!t.has(l)),!!s.length)try{s.forEach(u=>t.set(u,[]));const l=await U9(s);for(const u in l)t.set(u,l[u])}catch{s.forEach(l=>t.delete(l))}},n=new Map,r=s=>{let l=n.get(s);if(!l){const u=Ml.hash.sha256.hash(s),c=parseInt(Ml.codec.hex.fromBits(u),16)%Tb.length;l=Tb[c],n.set(s,l)}return l},a=async s=>{s.forEach(l=>t.delete(l)),await e(s)},i=s=>({id:s.name,count:0,display_name:null,type:"temp",...s});return{set:(s,l)=>{const u=l.map(c=>i(typeof c=="string"?{name:c}:c));t.set(s,u)},colorCache:n,tagMap:t,getColor:r,fetchImageTags:e,refreshTags:a,tagConvert:i}}),q9=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=G9();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=dr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:HS,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(h=>h.key===o));return()=>fp.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},Y9=de({__name:"App",setup(t){const e=ca(),n=JW(),r=US(),a=ex.filter(l=>!["tabListHistoryRecord","recent"].includes(l));let i=null;const o=rb(async()=>{e.$subscribe(Il(async()=>{var u;if(((u=e.conf)==null?void 0:u.is_readonly)===!0)return;const l={};a.forEach(c=>{l[c]=Gr(e[c])}),JSON.stringify(l)!==JSON.stringify(i)&&(console.log("save global setting",l),await GS("global",l),i=Gr(l))},500))}),s=rb(async()=>{var u,c;await Ei(100);const l=e.defaultInitinalPage;if(l!=="empty")if(l==="last-workspace-state"){const d=(u=e.tabListHistoryRecord)==null?void 0:u[1];if(!(d!=null&&d.tabs))return;e.tabList=Gr(d.tabs),Ar.success(Ie("restoreLastWorkspaceStateSuccess"))}else{const d=(c=l.split("_"))==null?void 0:c[2],v=n.snapshots.find(h=>h.id===d);if(!(v!=null&&v.tabs))return;e.tabList=Gr(v.tabs),Ar.success(Ie("restoreWorkspaceSnapshotSuccess"))}});return Kf("updateGlobalSetting",async()=>{var d,v;await j7(),console.log($l.value);const l=await LW();e.conf=l;const u=await Sb(l);e.quickMovePaths=u.filter(h=>{var f,p;return(p=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:p.call(f)});const c=(v=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:v.global;c&&(console.log("restoreFeGlobalSetting",c),i=Gr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),q9(e),W9(e)}),Kf("returnToIIB",async()=>{const l=e.conf;if(!l)return;const u=l.global_setting;if(!u.outdir_txt2img_samples&&!u.outdir_img2img_samples)return;const c=new Set(e.quickMovePaths.map(v=>v.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Sb(l);e.quickMovePaths=d.filter(v=>{var h,f;return(f=(h=v==null?void 0:v.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),ve(()=>e.computedTheme==="dark",async l=>{await Ei();const u=document.getElementsByTagName("html")[0];if(l){document.body.classList.add("dark");const c=document.createElement("style"),{default:d}=await Bn(()=>import("./antd.dark-35e9b327.js"),[]);c.innerHTML=d,c.setAttribute("antd-dark",""),u.appendChild(c)}else document.body.classList.remove("dark"),Array.from(u.querySelectorAll("style[antd-dark]")).forEach(c=>c.remove())},{immediate:!0}),ve(()=>e.previewBgOpacity,l=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${l})`)},{immediate:!0}),De(async()=>{jS&&V9(),fp.emit("updateGlobalSetting")}),(l,u)=>{const c=ln;return $e(),jt(c,{loading:!xe(r).isIdle},{default:Et(()=>[x(z9)]),_:1},8,["loading"])}}});function X9(t){return typeof t=="object"&&t!==null}function Ib(t,e){return t=X9(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 J9(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function Z9(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 Q9(t,e){return e.reduce((n,r)=>{const a=r.split(".");return Z9(n,a,J9(t,a))},{})}function Ab(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 Mb(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?Q9(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function eH(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=>Ib(o,t)):[Ib(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{Mb(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),Ab(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),Ab(a,o),l==null||l(e),a.$subscribe((u,c)=>{Mb(c,o)},{detached:!0})})}}var tH=eH(),nH=Object.defineProperty,rH=Object.defineProperties,aH=Object.getOwnPropertyDescriptors,kb=Object.getOwnPropertySymbols,iH=Object.prototype.hasOwnProperty,oH=Object.prototype.propertyIsEnumerable,Nb=(t,e,n)=>e in t?nH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jf=(t,e)=>{for(var n in e||(e={}))iH.call(e,n)&&Nb(t,n,e[n]);if(kb)for(var n of kb(e))oH.call(e,n)&&Nb(t,n,e[n]);return t},sH=(t,e)=>rH(t,aH(e));function lH(t){return Vl()?(id(t),!0):!1}const ox=typeof window<"u";function sx(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const uH=t=>t();function cH(t,e={}){let n,r;return i=>{const o=xe(t),s=xe(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function fH(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=xe(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function io(t,e=200,n=!0,r=!0){return sx(fH(e,n,r),t)}var Rb=Object.getOwnPropertySymbols,dH=Object.prototype.hasOwnProperty,vH=Object.prototype.propertyIsEnumerable,pH=(t,e)=>{var n={};for(var r in t)dH.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Rb)for(var r of Rb(t))e.indexOf(r)<0&&vH.call(t,r)&&(n[r]=t[r]);return n};function hH(t,e,n={}){const r=n,{eventFilter:a=uH}=r,i=pH(r,["eventFilter"]);return ve(t,sx(a,e),i)}var mH=Object.defineProperty,gH=Object.defineProperties,yH=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,lx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,$b=(t,e,n)=>e in t?mH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bH=(t,e)=>{for(var n in e||(e={}))lx.call(e,n)&&$b(t,n,e[n]);if(Dl)for(var n of Dl(e))ux.call(e,n)&&$b(t,n,e[n]);return t},wH=(t,e)=>gH(t,yH(e)),_H=(t,e)=>{var n={};for(var r in t)lx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Dl)for(var r of Dl(t))e.indexOf(r)<0&&ux.call(t,r)&&(n[r]=t[r]);return n};function cx(t,e,n={}){const r=n,{debounce:a=0}=r,i=_H(r,["debounce"]);return hH(t,e,wH(bH({},i),{eventFilter:cH(a)}))}function CH(t){var e;const n=xe(t);return(e=n==null?void 0:n.$el)!=null?e:n}const SH=ox?window:void 0,Lb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Db="__vueuse_ssr_handlers__";Lb[Db]=Lb[Db]||{};var Fb=Object.getOwnPropertySymbols,xH=Object.prototype.hasOwnProperty,EH=Object.prototype.propertyIsEnumerable,OH=(t,e)=>{var n={};for(var r in t)xH.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fb)for(var r of Fb(t))e.indexOf(r)<0&&EH.call(t,r)&&(n[r]=t[r]);return n};function PH(t,e,n={}){const r=n,{window:a=SH}=r,i=OH(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=ve(()=>CH(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return lH(c),{isSupported:s,stop:c}}var Bb,jb;ox&&(window!=null&&window.navigator)&&((Bb=window==null?void 0:window.navigator)!=null&&Bb.platform)&&/iP(ad|hone|od)/.test((jb=window==null?void 0:window.navigator)==null?void 0:jb.platform);var pp={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var h=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),h&&f.push(new e.Diff(a,h)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var h=this.diff_halfMatch_(i,o);if(h){var f=h[0],p=h[1],g=h[2],m=h[3],y=h[4],b=this.diff_main(f,g,s,l),w=this.diff_main(p,m,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,h=0,f="",p="";d=1&&h>=1){c.splice(d-v-h,v+h),d=d-v-h;for(var g=this.diff_main(f,p,!1,s),m=g.length-1;m>=0;m--)c.splice(d,0,g[m]);d+=g.length}h=0,v=0,f="",p="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,h=new Array(v),f=new Array(v),p=0;ps);C++){for(var O=-C+y;O<=C-b;O+=2){var A=d+O,E;O==-C||O!=C&&h[A-1]l)b+=2;else if(N>u)y+=2;else if(m){var R=d+g-O;if(R>=0&&R=D)return this.diff_bisectSplit_(i,o,E,N,s)}}}for(var B=-C+w;B<=C-_;B+=2){var R=d+B,D;B==-C||B!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!m){var A=d+g-B;if(A>=0&&A=D)return this.diff_bisectSplit_(i,o,E,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),p=this.diff_main(v,h,!1,u);return f.concat(p)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",p=0,g=-1,m=s.length;g{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>mb(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>mb(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=Xo("VueDiff");return $e(),jt(u,{class:"diff",mode:"split",theme:xe(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const R9={key:0,class:"hint"},$9={class:"hint-inline"},L9=de({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=z(50),a=([{size:c}])=>{r.value=c},i=z(),{width:o}=CW(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=Uf(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([Gf(Pi(n.left)),Gf(Pi(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=Uf(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,h=v/d,f=document.body.clientWidth/document.body.clientHeight;return h>f?"width":"height"});return(c,d)=>($e(),at(Ae,null,[ct("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe(tx),{class:"default-theme",onResize:a},{default:Et(()=>[c.left?($e(),jt(xe(Xf),{key:0},{default:Et(()=>[x(Eb,{side:"left","max-edge":xe(u),"container-width":xe(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):ur("",!0),c.right?($e(),jt(xe(Xf),{key:1},{default:Et(()=>[x(Eb,{"max-edge":xe(u),percent:r.value,img:c.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):ur("",!0)]),_:1})],512),c.container!=="drawer"?($e(),at("div",R9,[ct("div",$9,[x(xe(s9)),kn(" "+mn(c.$t("scrollDownToComparePrompt")),1)])])):ur("",!0),x(N9,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const D9={class:"actions"},F9=de({__name:"ImgSliDrawer",setup(t){const e=nx(),n=z();return(r,a)=>{const i=Rn,o=C2,s=o6;return $e(),at(Ae,null,[x(s,{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:Et(()=>[ct("div",D9,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:Et(()=>[kn(mn(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Et(()=>[kn(mn(r.$t("fullscreenview")),1)]),_:1}),x(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Et(()=>[xe(e).left&&xe(e).right?($e(),jt(L9,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:xe(e).left,right:xe(e).right},null,8,["left","right"])):ur("",!0)]),_:1},8,["visible"]),x(b9)],64)}}});const B9=ls(F9,[["__scopeId","data-v-91484911"]]),j9=de({__name:"SplitViewTab",setup(t){const e=ca(),n={local:tr(()=>Bn(()=>import("./stackView-8506f68f.js"),["assets/stackView-8506f68f.js","assets/index-c7fe1b25.js","assets/index-41e4fe63.css","assets/numInput-27ba7dc9.js","assets/index-67a7e5e1.js","assets/index-806213af.css","assets/functionalCallableComp-685da399.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-4596f42d.js","assets/index-1cc34316.css","assets/index-f60e0de3.js","assets/index-80432a0c.css","assets/FileItem-9a94f7dd.js","assets/FileItem-17626ff1.css","assets/MultiSelectKeep-e20b5f46.js","assets/shortcut-ff09b8ec.js","assets/MultiSelectKeep-cedcdbe1.css","assets/stackView-878c6d2b.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),empty:tr(()=>Bn(()=>import("./emptyStartup-676b6769.js"),["assets/emptyStartup-676b6769.js","assets/index-4596f42d.js","assets/index-1cc34316.css","assets/index-f60e0de3.js","assets/index-80432a0c.css","assets/emptyStartup-954396a3.css","assets/index-9fed83c2.css"])),"global-setting":tr(()=>Bn(()=>import("./globalSetting-07137205.js"),["assets/globalSetting-07137205.js","assets/numInput-27ba7dc9.js","assets/index-67a7e5e1.js","assets/index-806213af.css","assets/functionalCallableComp-685da399.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-4596f42d.js","assets/index-1cc34316.css","assets/shortcut-ff09b8ec.js","assets/globalSetting-00ba278d.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":tr(()=>Bn(()=>import("./MatchedImageGrid-30741878.js"),["assets/MatchedImageGrid-30741878.js","assets/index-c7fe1b25.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-e20b5f46.js","assets/FileItem-9a94f7dd.js","assets/functionalCallableComp-685da399.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-f60e0de3.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/shortcut-ff09b8ec.js","assets/index-4596f42d.js","assets/index-1cc34316.css","assets/MultiSelectKeep-cedcdbe1.css","assets/hook-983826b5.js","assets/MatchedImageGrid-fd659ec7.css"])),"tag-search":tr(()=>Bn(()=>import("./TagSearch-0a65f26b.js"),["assets/TagSearch-0a65f26b.js","assets/index-c7fe1b25.js","assets/index-41e4fe63.css","assets/searchHistory-7d99798b.js","assets/index-67a7e5e1.js","assets/index-806213af.css","assets/searchHistory-d0561c22.css","assets/TagSearch-fba3e5b0.css","assets/index-f4bbe4b8.css","assets/index-d55a76b1.css"])),"fuzzy-search":tr(()=>Bn(()=>import("./SubstrSearch-8ed8bfa5.js"),["assets/SubstrSearch-8ed8bfa5.js","assets/index-c7fe1b25.js","assets/index-41e4fe63.css","assets/index-67a7e5e1.js","assets/index-806213af.css","assets/FileItem-9a94f7dd.js","assets/functionalCallableComp-685da399.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-f60e0de3.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/MultiSelectKeep-e20b5f46.js","assets/shortcut-ff09b8ec.js","assets/index-4596f42d.js","assets/index-1cc34316.css","assets/MultiSelectKeep-cedcdbe1.css","assets/hook-983826b5.js","assets/searchHistory-7d99798b.js","assets/searchHistory-d0561c22.css","assets/SubstrSearch-89fa6d6e.css","assets/index-f4bbe4b8.css"])),"img-sli":tr(()=>Bn(()=>import("./ImgSliPagePane-c51a65d0.js"),["assets/ImgSliPagePane-c51a65d0.js","assets/ImgSliPagePane-868b21f8.css"])),"batch-download":tr(()=>Bn(()=>import("./batchDownload-1a890614.js"),["assets/batchDownload-1a890614.js","assets/FileItem-9a94f7dd.js","assets/functionalCallableComp-685da399.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-f60e0de3.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/batchDownload-08be3fc5.css"])),"grid-view":tr(()=>Bn(()=>import("./gridView-b870c73c.js"),["assets/gridView-b870c73c.js","assets/FileItem-9a94f7dd.js","assets/functionalCallableComp-685da399.js","assets/functionalCallableComp-efd6daa3.css","assets/index-9fed83c2.css","assets/index-f60e0de3.js","assets/index-80432a0c.css","assets/FileItem-17626ff1.css","assets/gridView-eef9ac55.css"])),"workspace-snapshot":tr(()=>Bn(()=>import("./index-808a3f6b.js"),["assets/index-808a3f6b.js","assets/index-bd568ec0.css","assets/index-f4bbe4b8.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:dr(),name:Ie("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const h=e.createEmptyPane();e.tabList.push({panes:[h],key:h.key,id:dr()})}}};Kf("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();ve(()=>e.tabList,async()=>{var o;await ze(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Il(()=>fp.emit("returnToIIB"),100);return U7(async()=>{const o=window.parent;if(!await AW(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),ve(gW(),o=>o&&i()),(o,s)=>{const l=Tl,u=vo;return $e(),at("div",{ref_key:"container",ref:a},[x(xe(tx),{class:"default-theme"},{default:Et(()=>[($e(!0),at(Ae,null,ul(xe(e).tabList,(c,d)=>($e(),jt(xe(Xf),{key:c.id},{default:Et(()=>[x(r9,{tabIdx:d},{default:Et(()=>[x(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,h)=>r(d,v,h)},{default:Et(()=>[($e(!0),at(Ae,null,ul(c.panes,(v,h)=>($e(),jt(l,{key:v.key,tab:v.name,class:"pane"},{default:Et(()=>[($e(),jt(nO(n[v.type]),Ed({tabIdx:d,paneKey:v.key,paneIdx:h},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(B9)],512)}}});const z9=ls(j9,[["__scopeId","data-v-82cd0d95"]]),W9=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],s=n.get("mode"),l={type:"local",path:a,key:dr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,HS(),MW(["action","path","mode"]);break}}};function Pb(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!pr(t)}const rx="app.conf.json",bo=z(),ax=()=>Vo.writeFile(rx,JSON.stringify(Me(bo.value),null,4)),H9=de({setup(){const t=async()=>{const e=await AS({directory:!0});if(typeof e=="string"){if(!await Vo.exists(`${e}/config.json`))return Ar.error(Ie("tauriLaunchConfMessages.configNotFound"));if(!await Vo.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Ar.error(Ie("tauriLaunchConfMessages.folderNotFound"));bo.value.sdwebui_dir=e,Ar.info(Ie("tauriLaunchConfMessages.configCompletedMessage")),await ax(),await ku("shutdown_api_server_command"),await Ei(1500),await PS()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ie("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Ie("tauriLaunchConf.readSdWebuiConfigDescription")]),x(Rn,{onClick:t,type:"primary"},Pb(e=Ie("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Ie("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Ie("tauriLaunchConf.skipThisConfigDescription")]),x(Rn,{type:"primary",onClick:Wt.destroyAll},Pb(n=Ie("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),V9=async()=>{try{bo.value=JSON.parse(await Vo.readTextFile(rx))}catch{}bo.value||(bo.value={sdwebui_dir:""},await ax(),Wt.info({title:Ie("tauriLaunchConfMessages.firstTimeUserTitle"),content:x(H9,null,null),width:"80vw",okText:Ie("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Wt.destroyAll}}))},xK=async()=>(await et.value.get("/db/basic_info")).data,EK=async()=>(await et.value.get("/db/expired_dirs")).data,OK=async()=>{await et.value.post("/db/update_image_data",{},{timeout:1/0})},PK=async(t,e)=>(await et.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,TK=async t=>(await et.value.post("/db/add_custom_tag",t)).data,IK=async t=>(await et.value.post("/db/toggle_custom_tag_to_img",t)).data,AK=async t=>{await et.value.post("/db/remove_custom_tag",t)},MK=async t=>(await et.value.post("/db/search_by_substr",t)).data,ix="/db/extra_paths",kK=async t=>{await et.value.post(ix,t)},NK=async t=>{await et.value.delete(ix,{data:t})},RK=async t=>{await et.value.post("/db/alias_extra_path",t)},U9=async t=>(await et.value.post("/db/get_image_tags",{paths:t})).data,$K=()=>et.value.post("/db/rebuild_index"),LK=t=>et.value.post("/db/batch_update_image_tag",t),DK=async t=>(await et.value.post("/db/rename",t)).data;function K9(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const Tb=K9(),G9=$u("useTagStore",()=>{const t=nt(new Map),e=async s=>{if(s=s.filter(l=>!t.has(l)),!!s.length)try{s.forEach(u=>t.set(u,[]));const l=await U9(s);for(const u in l)t.set(u,l[u])}catch{s.forEach(l=>t.delete(l))}},n=new Map,r=s=>{let l=n.get(s);if(!l){const u=Ml.hash.sha256.hash(s),c=parseInt(Ml.codec.hex.fromBits(u),16)%Tb.length;l=Tb[c],n.set(s,l)}return l},a=async s=>{s.forEach(l=>t.delete(l)),await e(s)},i=s=>({id:s.name,count:0,display_name:null,type:"temp",...s});return{set:(s,l)=>{const u=l.map(c=>i(typeof c=="string"?{name:c}:c));t.set(s,u)},colorCache:n,tagMap:t,getColor:r,fetchImageTags:e,refreshTags:a,tagConvert:i}}),q9=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=G9();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=dr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:HS,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(h=>h.key===o));return()=>fp.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},Y9=de({__name:"App",setup(t){const e=ca(),n=JW(),r=US(),a=ex.filter(l=>!["tabListHistoryRecord","recent"].includes(l));let i=null;const o=rb(async()=>{e.$subscribe(Il(async()=>{var u;if(((u=e.conf)==null?void 0:u.is_readonly)===!0)return;const l={};a.forEach(c=>{l[c]=Gr(e[c])}),JSON.stringify(l)!==JSON.stringify(i)&&(console.log("save global setting",l),await GS("global",l),i=Gr(l))},500))}),s=rb(async()=>{var u,c;await Ei(100);const l=e.defaultInitinalPage;if(l!=="empty")if(l==="last-workspace-state"){const d=(u=e.tabListHistoryRecord)==null?void 0:u[1];if(!(d!=null&&d.tabs))return;e.tabList=Gr(d.tabs),Ar.success(Ie("restoreLastWorkspaceStateSuccess"))}else{const d=(c=l.split("_"))==null?void 0:c[2],v=n.snapshots.find(h=>h.id===d);if(!(v!=null&&v.tabs))return;e.tabList=Gr(v.tabs),Ar.success(Ie("restoreWorkspaceSnapshotSuccess"))}});return Kf("updateGlobalSetting",async()=>{var d,v;await j7(),console.log($l.value);const l=await LW();e.conf=l;const u=await Sb(l);e.quickMovePaths=u.filter(h=>{var f,p;return(p=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:p.call(f)});const c=(v=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:v.global;c&&(console.log("restoreFeGlobalSetting",c),i=Gr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),q9(e),W9(e)}),Kf("returnToIIB",async()=>{const l=e.conf;if(!l)return;const u=l.global_setting;if(!u.outdir_txt2img_samples&&!u.outdir_img2img_samples)return;const c=new Set(e.quickMovePaths.map(v=>v.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Sb(l);e.quickMovePaths=d.filter(v=>{var h,f;return(f=(h=v==null?void 0:v.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),ve(()=>e.computedTheme==="dark",async l=>{await Ei();const u=document.getElementsByTagName("html")[0];if(l){document.body.classList.add("dark");const c=document.createElement("style"),{default:d}=await Bn(()=>import("./antd.dark-35e9b327.js"),[]);c.innerHTML=d,c.setAttribute("antd-dark",""),u.appendChild(c)}else document.body.classList.remove("dark"),Array.from(u.querySelectorAll("style[antd-dark]")).forEach(c=>c.remove())},{immediate:!0}),ve(()=>e.previewBgOpacity,l=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${l})`)},{immediate:!0}),De(async()=>{jS&&V9(),fp.emit("updateGlobalSetting")}),(l,u)=>{const c=ln;return $e(),jt(c,{loading:!xe(r).isIdle},{default:Et(()=>[x(z9)]),_:1},8,["loading"])}}});function X9(t){return typeof t=="object"&&t!==null}function Ib(t,e){return t=X9(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 J9(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function Z9(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 Q9(t,e){return e.reduce((n,r)=>{const a=r.split(".");return Z9(n,a,J9(t,a))},{})}function Ab(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 Mb(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?Q9(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function eH(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=>Ib(o,t)):[Ib(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{Mb(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),Ab(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),Ab(a,o),l==null||l(e),a.$subscribe((u,c)=>{Mb(c,o)},{detached:!0})})}}var tH=eH(),nH=Object.defineProperty,rH=Object.defineProperties,aH=Object.getOwnPropertyDescriptors,kb=Object.getOwnPropertySymbols,iH=Object.prototype.hasOwnProperty,oH=Object.prototype.propertyIsEnumerable,Nb=(t,e,n)=>e in t?nH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jf=(t,e)=>{for(var n in e||(e={}))iH.call(e,n)&&Nb(t,n,e[n]);if(kb)for(var n of kb(e))oH.call(e,n)&&Nb(t,n,e[n]);return t},sH=(t,e)=>rH(t,aH(e));function lH(t){return Vl()?(id(t),!0):!1}const ox=typeof window<"u";function sx(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const uH=t=>t();function cH(t,e={}){let n,r;return i=>{const o=xe(t),s=xe(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function fH(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=xe(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function io(t,e=200,n=!0,r=!0){return sx(fH(e,n,r),t)}var Rb=Object.getOwnPropertySymbols,dH=Object.prototype.hasOwnProperty,vH=Object.prototype.propertyIsEnumerable,pH=(t,e)=>{var n={};for(var r in t)dH.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Rb)for(var r of Rb(t))e.indexOf(r)<0&&vH.call(t,r)&&(n[r]=t[r]);return n};function hH(t,e,n={}){const r=n,{eventFilter:a=uH}=r,i=pH(r,["eventFilter"]);return ve(t,sx(a,e),i)}var mH=Object.defineProperty,gH=Object.defineProperties,yH=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,lx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,$b=(t,e,n)=>e in t?mH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bH=(t,e)=>{for(var n in e||(e={}))lx.call(e,n)&&$b(t,n,e[n]);if(Dl)for(var n of Dl(e))ux.call(e,n)&&$b(t,n,e[n]);return t},wH=(t,e)=>gH(t,yH(e)),_H=(t,e)=>{var n={};for(var r in t)lx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Dl)for(var r of Dl(t))e.indexOf(r)<0&&ux.call(t,r)&&(n[r]=t[r]);return n};function cx(t,e,n={}){const r=n,{debounce:a=0}=r,i=_H(r,["debounce"]);return hH(t,e,wH(bH({},i),{eventFilter:cH(a)}))}function CH(t){var e;const n=xe(t);return(e=n==null?void 0:n.$el)!=null?e:n}const SH=ox?window:void 0,Lb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Db="__vueuse_ssr_handlers__";Lb[Db]=Lb[Db]||{};var Fb=Object.getOwnPropertySymbols,xH=Object.prototype.hasOwnProperty,EH=Object.prototype.propertyIsEnumerable,OH=(t,e)=>{var n={};for(var r in t)xH.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fb)for(var r of Fb(t))e.indexOf(r)<0&&EH.call(t,r)&&(n[r]=t[r]);return n};function PH(t,e,n={}){const r=n,{window:a=SH}=r,i=OH(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=ve(()=>CH(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return lH(c),{isSupported:s,stop:c}}var Bb,jb;ox&&(window!=null&&window.navigator)&&((Bb=window==null?void 0:window.navigator)!=null&&Bb.platform)&&/iP(ad|hone|od)/.test((jb=window==null?void 0:window.navigator)==null?void 0:jb.platform);var pp={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var h=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),h&&f.push(new e.Diff(a,h)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var h=this.diff_halfMatch_(i,o);if(h){var f=h[0],p=h[1],g=h[2],m=h[3],y=h[4],b=this.diff_main(f,g,s,l),w=this.diff_main(p,m,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,h=0,f="",p="";d=1&&h>=1){c.splice(d-v-h,v+h),d=d-v-h;for(var g=this.diff_main(f,p,!1,s),m=g.length-1;m>=0;m--)c.splice(d,0,g[m]);d+=g.length}h=0,v=0,f="",p="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,h=new Array(v),f=new Array(v),p=0;ps);C++){for(var O=-C+y;O<=C-b;O+=2){var A=d+O,E;O==-C||O!=C&&h[A-1]l)b+=2;else if(N>u)y+=2;else if(m){var R=d+g-O;if(R>=0&&R=D)return this.diff_bisectSplit_(i,o,E,N,s)}}}for(var B=-C+w;B<=C-_;B+=2){var R=d+B,D;B==-C||B!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!m){var A=d+g-B;if(A>=0&&A=D)return this.diff_bisectSplit_(i,o,E,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),p=this.diff_main(v,h,!1,u);return f.concat(p)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",p=0,g=-1,m=s.length;gl?i=i.substring(s-l):so.length?i:o,l=i.length>o.length?o:i;if(s.length<4||2*l.length=b.length?[E,N,R,D,A]:null}var d=c(s,l,Math.ceil(s.length/4)),v=c(s,l,Math.ceil(s.length/2)),h;if(!d&&!v)return null;v?d?h=d[4].length>v[4].length?d:v:h=v:h=d;var f,p,g,m;i.length>o.length?(f=h[0],p=h[1],g=h[2],m=h[3]):(g=h[0],m=h[1],f=h[2],p=h[3]);var y=h[4];return[f,p,g,m,y]},e.prototype.diff_cleanupSemantic=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=0,v=0,h=0,f=0;c0?s[l-1]:-1,d=0,v=0,h=0,f=0,u=null,o=!0)),c++;for(o&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(m>=p.length/2||m>=g.length/2)&&(i.splice(c,0,new e.Diff(a,g.substring(0,m))),i[c-1][1]=p.substring(0,p.length-m),i[c+1][1]=g.substring(m),c++):(y>=p.length/2||y>=g.length/2)&&(i.splice(c,0,new e.Diff(a,p.substring(0,y))),i[c-1][0]=r,i[c-1][1]=g.substring(0,g.length-y),i[c+1][0]=n,i[c+1][1]=p.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function o(y,b){if(!y||!b)return 6;var w=y.charAt(y.length-1),_=b.charAt(0),C=w.match(e.nonAlphaNumericRegex_),O=_.match(e.nonAlphaNumericRegex_),A=C&&w.match(e.whitespaceRegex_),E=O&&_.match(e.whitespaceRegex_),N=A&&w.match(e.linebreakRegex_),R=E&&_.match(e.linebreakRegex_),D=N&&y.match(e.blanklineEndRegex_),B=R&&b.match(e.blanklineStartRegex_);return D||B?5:N||R?4:C&&!A&&E?3:A||E?2:C||O?1:0}for(var s=1;s=g&&(g=m,h=l,f=u,p=c)}i[s-1][1]!=h&&(h?i[s-1][1]=h:(i.splice(s-1,1),s--),i[s][1]=f,p?i[s+1][1]=p:(i.splice(s+1,1),s--))}s++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=!1,v=!1,h=!1,f=!1;c0?s[l-1]:-1,h=f=!1),o=!0)),c++;o&&this.diff_cleanupMerge(i)},e.prototype.diff_cleanupMerge=function(i){i.push(new e.Diff(a,""));for(var o=0,s=0,l=0,u="",c="",d;o1?(s!==0&&l!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(o-s-l>0&&i[o-s-l-1][0]==a?i[o-s-l-1][1]+=c.substring(0,d):(i.splice(0,0,new e.Diff(a,c.substring(0,d))),o++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(i[o][1]=c.substring(c.length-d)+i[o][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),o-=s+l,i.splice(o,s+l),u.length&&(i.splice(o,0,new e.Diff(n,u)),o++),c.length&&(i.splice(o,0,new e.Diff(r,c)),o++),o++):o!==0&&i[o-1][0]==a?(i[o-1][1]+=i[o][1],i.splice(o,1)):o++,l=0,s=0,u="",c="";break}i[i.length-1][1]===""&&i.pop();var v=!1;for(o=1;oo));d++)u=s,c=l;return i.length!=d&&i[d][0]===n?c:c+(o-u)},e.prototype.diff_prettyHtml=function(i){for(var o=[],s=/&/g,l=//g,c=/\n/g,d=0;d");switch(v){case r:o[d]=''+f+"";break;case n:o[d]=''+f+"";break;case a:o[d]=""+f+"";break}}return o.join("")},e.prototype.diff_text1=function(i){for(var o=[],s=0;sthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(o),u=this;function c(E,N){var R=E/o.length,D=Math.abs(s-N);return u.Match_Distance?R+D/u.Match_Distance:D?1:R}var d=this.Match_Threshold,v=i.indexOf(o,s);v!=-1&&(d=Math.min(c(0,v),d),v=i.lastIndexOf(o,s+o.length),v!=-1&&(d=Math.min(c(0,v),d)));var h=1<=b;C--){var O=l[i.charAt(C-1)];if(y===0?_[C]=(_[C+1]<<1|1)&O:_[C]=(_[C+1]<<1|1)&O|((m[C+1]|m[C])<<1|1)|m[C+1],_[C]&h){var A=c(y,C-1);if(A<=d)if(d=A,v=C-1,v>s)b=Math.max(1,2*s-v);else break}}if(c(y+1,s)>d)break;m=_}return v},e.prototype.match_alphabet_=function(i){for(var o={},s=0;s"u")l=i,u=this.diff_main(l,o,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(i&&typeof i=="object"&&typeof o>"u"&&typeof s>"u")u=i,l=this.diff_text1(u);else if(typeof i=="string"&&o&&typeof o=="object"&&typeof s>"u")l=i,u=o;else if(typeof i=="string"&&typeof o=="string"&&s&&typeof s=="object")l=i,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new e.patch_obj,v=0,h=0,f=0,p=l,g=l,m=0;m=2*this.Patch_Margin&&v&&(this.patch_addContext_(d,p),c.push(d),d=new e.patch_obj,v=0,p=g,h=f);break}y!==r&&(h+=b.length),y!==n&&(f+=b.length)}return v&&(this.patch_addContext_(d,p),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var o=[],s=0;sthis.Match_MaxBits?(h=this.match_main(o,v.substring(0,this.Match_MaxBits),d),h!=-1&&(f=this.match_main(o,v.substring(v.length-this.Match_MaxBits),d+v.length-this.Match_MaxBits),(f==-1||h>=f)&&(h=-1))):h=this.match_main(o,v,d),h==-1)u[c]=!1,l-=i[c].length2-i[c].length1;else{u[c]=!0,l=h-d;var p;if(f==-1?p=o.substring(h,h+v.length):p=o.substring(h,f+this.Match_MaxBits),v==p)o=o.substring(0,h)+this.diff_text2(i[c].diffs)+o.substring(h+v.length);else{var g=this.diff_main(v,p,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(g)/v.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(g);for(var m=0,y,b=0;bc[0][1].length){var d=o-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=i[i.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=a)c.push(new e.Diff(a,s)),u.length1+=o,u.length2+=o;else if(o>c[c.length-1][1].length){var d=o-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,d),u.length1+=d,u.length2+=d}return s},e.prototype.patch_splitMax=function(i){for(var o=this.Match_MaxBits,s=0;s2*o?(v.length1+=p.length,u+=p.length,h=!1,v.diffs.push(new e.Diff(f,p)),l.diffs.shift()):(p=p.substring(0,o-v.length1-this.Patch_Margin),v.length1+=p.length,u+=p.length,f===a?(v.length2+=p.length,c+=p.length):h=!1,v.diffs.push(new e.Diff(f,p)),p==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(p.length))}d=this.diff_text2(v.diffs),d=d.substring(d.length-this.Patch_Margin);var g=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);g!==""&&(v.length1+=g.length,v.length2+=g.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===a?v.diffs[v.diffs.length-1][1]+=g:v.diffs.push(new e.Diff(a,g))),h||i.splice(++s,0,v)}}},e.prototype.patch_toText=function(i){for(var o=[],s=0;s=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var a,r,m,s=n.overlay||((a=o.overlay)===null||a===void 0?void 0:a.call(o)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};H(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&R(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=R(d)?k(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var a=t.slice(0,t.indexOf("Center"));return H(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return t}),N=function(a){P("update:visible",a),P("visibleChange",a)};return function(){var t,a,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=o.default)===null||t===void 0?void 0:t.call(o)[0],C=k(l,se({class:A(l==null||(a=l.props)===null||a===void 0?void 0:a.class,M({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=A(d,M({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),$),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});X.Button=ge;const be=X;export{be as D,ge as a}; +import{P as U,d0 as re,a as u,d as F,bB as z,u as W,c as y,cg as le,_ as ie,ai as E,al as A,E as L,bI as H,an as k,bz as se,h as M,d1 as de,b as ue,au as pe,d2 as ve,aX as R,bH as ce}from"./index-93a218ca.js";var G=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:U.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}}},T=re(),ye=function(){return u(u({},G()),{},{type:T.type,size:String,htmlType:T.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:U.any,title:String,loading:T.loading,onClick:{type:Function}})},fe=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],me=E.Group;const ge=F({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:z(ye(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(n,f){var o=f.slots,$=f.attrs,P=f.emit,g=function(p){P("update:visible",p),P("visibleChange",p)},i=W("dropdown-button",n),D=i.prefixCls,w=i.direction,O=i.getPopupContainer;return function(){var b,p,e=u(u({},n),$),N=e.type,t=N===void 0?"default":N,a=e.disabled,r=e.loading,m=e.htmlType,s=e.class,d=s===void 0?"":s,l=e.overlay,C=l===void 0?(b=o.overlay)===null||b===void 0?void 0:b.call(o):l,_=e.trigger,v=e.align,c=e.visible;e.onVisibleChange;var h=e.placement,x=h===void 0?w.value==="rtl"?"bottomLeft":"bottomRight":h,S=e.href,Y=e.title,I=e.icon,q=I===void 0?((p=o.icon)===null||p===void 0?void 0:p.call(o))||y(le,null,null):I,J=e.mouseEnterDelay,K=e.mouseLeaveDelay,Q=e.overlayClassName,Z=e.overlayStyle,ee=e.destroyPopupOnHide,te=e.onClick;e["onUpdate:visible"];var ae=ie(e,fe),oe={align:v,disabled:a,trigger:a?[]:_,placement:x,getPopupContainer:O.value,onVisibleChange:g,mouseEnterDelay:J,mouseLeaveDelay:K,visible:c,overlayClassName:Q,overlayStyle:Z,destroyPopupOnHide:ee},V=y(E,{type:t,disabled:a,loading:r,onClick:te,htmlType:m,href:S,title:Y},{default:o.default}),j=y(E,{type:t,icon:q},null);return y(me,u(u({},ae),{},{class:A(D.value,d)}),{default:function(){return[o.leftButton?o.leftButton({button:V}):V,y(be,oe,{default:function(){return[o.rightButton?o.rightButton({button:j}):j]},overlay:function(){return C}})]}})}}});var X=F({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:z(G(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(n,f){var o=f.slots,$=f.attrs,P=f.emit,g=W("dropdown",n),i=g.prefixCls,D=g.rootPrefixCls,w=g.direction,O=g.getPopupContainer,b=L(function(){var t=n.placement,a=t===void 0?"":t,r=n.transitionName;return r!==void 0?r:a.indexOf("top")>=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var a,r,m,s=n.overlay||((a=o.overlay)===null||a===void 0?void 0:a.call(o)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};H(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&R(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=R(d)?k(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var a=t.slice(0,t.indexOf("Center"));return H(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return t}),N=function(a){P("update:visible",a),P("visibleChange",a)};return function(){var t,a,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=o.default)===null||t===void 0?void 0:t.call(o)[0],C=k(l,se({class:A(l==null||(a=l.props)===null||a===void 0?void 0:a.class,M({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=A(d,M({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),$),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});X.Button=ge;const be=X;export{be as D,ge as a}; diff --git a/vue/dist/assets/numInput-229c2aa0.js b/vue/dist/assets/numInput-27ba7dc9.js similarity index 99% rename from vue/dist/assets/numInput-229c2aa0.js rename to vue/dist/assets/numInput-27ba7dc9.js index b8b58591..dd567c82 100644 --- a/vue/dist/assets/numInput-229c2aa0.js +++ b/vue/dist/assets/numInput-27ba7dc9.js @@ -1,4 +1,4 @@ -import{E as $,at as ze,aU as $r,i as ee,a as S,b as sr,aV as Ce,aW as ae,aX as jr,e as _r,h as Y,aY as fr,aZ as dr,a_ as Vr,a$ as Sr,b0 as Ir,av as cr,b1 as Mr,b2 as Rr,al as qe,c as K,X as Oe,b3 as kr,d as Ae,u as Ke,r as ne,m as fe,b4 as Nr,b5 as Lr,b6 as Tr,b7 as Wr,b8 as Dr,b9 as Br,ba as Hr,bb as vr,bc as mr,bd as zr,x as we,be as Kr,bf as Ur,am as Gr,aw as Pe,P as ue,bg as Ie,ax as gr,bh as Ue,bi as Yr,bj as Zr,bk as Ze,bl as Xr,bm as Qr,bn as Jr,bo as en,bp as rn,bq as nn,br as tn,bs as hr,bt as an,N as ln,bu as un,bv as on,bw as sn,bx as fn,by as dn,a2 as le,ak as cn,bz as ye,n as vn,bA as pr,bB as mn,bC as gn,w as $e,Z as hn}from"./index-0a648427.js";import{C as yr,R as pn}from"./index-6e5caf8a.js";import{_ as yn}from"./functionalCallableComp-58260c55.js";var bn=Symbol("SizeProvider"),Fn=function(e){var r=e?$(function(){return e.size}):ze(bn,$(function(){return"default"}));return r};function wn(n,e,r){var t=-1,a=n.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++t"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 xe(n,e,r){return qn()?xe=Reflect.construct.bind():xe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),p=new o;return l&&me(p,l.prototype),p},xe.apply(null,arguments)}function On(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Re(n){var e=typeof Map=="function"?new Map:void 0;return Re=function(t){if(t===null||!On(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xe(t,arguments,Me(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),me(a,t)},Re(n)}var Pn=/%[sdj%]/g,Cn=function(){};typeof process<"u"&&process.env;function ke(n){if(!n||!n.length)return null;var e={};return n.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function Q(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return u;switch(u){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function An(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function U(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||An(e)&&typeof n=="string"&&!n)}function En(n,e,r){var t=[],a=0,i=n.length;function l(u){t.push.apply(t,u||[]),a++,a===i&&r(t)}n.forEach(function(u){e(u,l)})}function Xe(n,e,r){var t=0,a=n.length;function i(l){if(l&&l.length){r(l);return}var u=t;t=t+1,ua?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++t"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 xe(n,e,r){return qn()?xe=Reflect.construct.bind():xe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),p=new o;return l&&me(p,l.prototype),p},xe.apply(null,arguments)}function On(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Re(n){var e=typeof Map=="function"?new Map:void 0;return Re=function(t){if(t===null||!On(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xe(t,arguments,Me(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),me(a,t)},Re(n)}var Pn=/%[sdj%]/g,Cn=function(){};typeof process<"u"&&process.env;function ke(n){if(!n||!n.length)return null;var e={};return n.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function Q(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return u;switch(u){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function An(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function U(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||An(e)&&typeof n=="string"&&!n)}function En(n,e,r){var t=[],a=0,i=n.length;function l(u){t.push.apply(t,u||[]),a++,a===i&&r(t)}n.forEach(function(u){e(u,l)})}function Xe(n,e,r){var t=0,a=n.length;function i(l){if(l&&l.length){r(l);return}var u=t;t=t+1,u{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,O(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",I,[b(e.$slots,"default",{record:i},void 0,!0)]),r("div",k,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(V(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const T=x(j,[["__scopeId","data-v-834a248f"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:H()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}}const q=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{T as H,E as _,A as a,q as f,M as t}; +import{R as y,C as v}from"./index-67a7e5e1.js";import{cn as f,c as d,A as w,d as P,S as a,T as c,U as r,X as S,a6 as O,aE as b,a1 as R,V as u,W as p,a2 as V,ai as $,Z as x,O as H,I as _,Q as m}from"./index-93a218ca.js";const A=f(y),E=f(v);var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"};const C=L;function h(t){for(var e=1;e{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,O(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",I,[b(e.$slots,"default",{record:i},void 0,!0)]),r("div",k,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(V(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const T=x(j,[["__scopeId","data-v-834a248f"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:H()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}}const q=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{T as H,E as _,A as a,q as f,M as t}; diff --git a/vue/dist/assets/shortcut-16cf2087.js b/vue/dist/assets/shortcut-ff09b8ec.js similarity index 97% rename from vue/dist/assets/shortcut-16cf2087.js rename to vue/dist/assets/shortcut-ff09b8ec.js index f97f6d15..1dd4baf3 100644 --- a/vue/dist/assets/shortcut-16cf2087.js +++ b/vue/dist/assets/shortcut-ff09b8ec.js @@ -1,2 +1,2 @@ -import{cm as L,a as m,P as Q,d as D,j as R,u as W,at as Y,bc as Z,bf as ee,o as ae,w as ne,r as G,f as te,_ as N,al as U,h as S,c as M,m as T,E,av as re,i as ue}from"./index-0a648427.js";import{V as le}from"./index-4035ad46.js";function oe(n,e){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=L(n))||e&&n&&typeof n.length=="number"){r&&(n=r);var d=0,i=function(){};return{s:i,n:function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}},e:function(o){throw o},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{cm as L,a as m,P as Q,d as D,j as R,u as W,at as Y,bc as Z,bf as ee,o as ae,w as ne,r as G,f as te,_ as N,al as U,h as S,c as M,m as T,E,av as re,i as ue}from"./index-93a218ca.js";import{V as le}from"./index-4596f42d.js";function oe(n,e){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=L(n))||e&&n&&typeof n.length=="number"){r&&(n=r);var d=0,i=function(){};return{s:i,n:function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}},e:function(o){throw o},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,y=!1,x;return{s:function(){r=r.call(n)},n:function(){var o=r.next();return g=o.done,o},e:function(o){y=!0,x=o},f:function(){try{!g&&r.return!=null&&r.return()}finally{if(y)throw x}}}}var ie=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},ce=function(){return m(m({},ie()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},se=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Q.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},de=function(){return m(m({},se()),{},{indeterminate:{type:Boolean,default:!1}})},H=Symbol("CheckboxGroupContext"),fe=["indeterminate","skipGroup","id"],ve=["onMouseenter","onMouseleave","onInput","class","style"];const w=D({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:de(),setup:function(e,r){var d=r.emit,i=r.attrs,g=r.slots,y=r.expose,x=R(),c=W("checkbox",e),o=c.prefixCls,h=c.direction,u=Y(H,void 0),k=Symbol("checkboxUniId");Z(function(){!e.skipGroup&&u&&u.registerValue(k,e.value)}),ee(function(){u&&u.cancelValue(k)}),ae(function(){ne(e.checked!==void 0||u||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var V=function(a){var t=a.target.checked;d("update:checked",t),d("change",a)},I=G(),O=function(){var a;(a=I.value)===null||a===void 0||a.focus()},P=function(){var a;(a=I.value)===null||a===void 0||a.blur()};return y({focus:O,blur:P}),function(){var b,a,t=te((b=g.default)===null||b===void 0?void 0:b.call(g)),s=e.indeterminate,f=e.skipGroup,v=e.id,l=v===void 0?x.id.value:v,C=N(e,fe),A=i.onMouseenter,j=i.onMouseleave;i.onInput;var _=i.class,X=i.style,q=N(i,ve),p=m(m({},C),{},{id:l,prefixCls:o.value},q);u&&!f?(p.onChange=function(){for(var $=arguments.length,K=new Array($),B=0;B<$;B++)K[B]=arguments[B];d.apply(void 0,["change"].concat(K)),u.toggleOption({label:t,value:e.value})},p.name=u.name.value,p.checked=u.mergedValue.value.indexOf(e.value)!==-1,p.disabled=e.disabled||u.disabled.value,p.indeterminate=s):p.onChange=V;var z=U((a={},S(a,"".concat(o.value,"-wrapper"),!0),S(a,"".concat(o.value,"-rtl"),h.value==="rtl"),S(a,"".concat(o.value,"-wrapper-checked"),p.checked),S(a,"".concat(o.value,"-wrapper-disabled"),p.disabled),a),_),J=U(S({},"".concat(o.value,"-indeterminate"),s));return M("label",{class:z,style:X,onMouseenter:A,onMouseleave:j},[M(le,m(m({},p),{},{class:J,ref:I}),null),t.length?M("span",null,[t]):null])}}}),F=D({compatConfig:{MODE:3},name:"ACheckboxGroup",props:ce(),setup:function(e,r){var d=r.slots,i=r.emit,g=r.expose,y=R(),x=W("checkbox",e),c=x.prefixCls,o=x.direction,h=G((e.value===void 0?e.defaultValue:e.value)||[]);T(function(){return e.value},function(){h.value=e.value||[]});var u=E(function(){return e.options.map(function(a){return typeof a=="string"||typeof a=="number"?{label:a,value:a}:a})}),k=G(Symbol()),V=G(new Map),I=function(t){V.value.delete(t),k.value=Symbol()},O=function(t,s){V.value.set(t,s),k.value=Symbol()},P=G(new Map);T(k,function(){var a=new Map,t=oe(V.value.values()),s;try{for(t.s();!(s=t.n()).done;){var f=s.value;a.set(f,!0)}}catch(v){t.e(v)}finally{t.f()}P.value=a});var b=function(t){var s=h.value.indexOf(t.value),f=ue(h.value);s===-1?f.push(t.value):f.splice(s,1),e.value===void 0&&(h.value=f);var v=f.filter(function(l){return P.value.has(l)}).sort(function(l,C){var A=u.value.findIndex(function(_){return _.value===l}),j=u.value.findIndex(function(_){return _.value===C});return A-j});i("update:value",v),i("change",v),y.onFieldChange()};return re(H,{cancelValue:I,registerValue:O,toggleOption:b,mergedValue:h,name:E(function(){return e.name}),disabled:E(function(){return e.disabled})}),g({mergedValue:h}),function(){var a,t=e.id,s=t===void 0?y.id.value:t,f=null,v="".concat(c.value,"-group");return u.value&&u.value.length>0&&(f=u.value.map(function(l){var C;return M(w,{prefixCls:c.value,key:l.value.toString(),disabled:"disabled"in l?l.disabled:e.disabled,indeterminate:l.indeterminate,value:l.value,checked:h.value.indexOf(l.value)!==-1,onChange:l.onChange,class:"".concat(v,"-item")},{default:function(){return[l.label===void 0?(C=d.label)===null||C===void 0?void 0:C.call(d,l):l.label]}})})),M("div",{class:[v,S({},"".concat(v,"-rtl"),o.value==="rtl")],id:s},[f||((a=d.default)===null||a===void 0?void 0:a.call(d))])}}});w.Group=F;w.install=function(n){return n.component(w.name,w),n.component(F.name,F),n};const be=n=>{const e=[];return n.shiftKey&&e.push("Shift"),n.ctrlKey&&e.push("Ctrl"),n.metaKey&&e.push("Cmd"),(n.code.startsWith("Key")||n.code.startsWith("Digit"))&&e.push(n.code),n.key==="Escape"&&e.push("Esc"),e.join(" + ")};export{w as C,be as g}; diff --git a/vue/dist/assets/stackView-9d4e5342.js b/vue/dist/assets/stackView-8506f68f.js similarity index 97% rename from vue/dist/assets/stackView-9d4e5342.js rename to vue/dist/assets/stackView-8506f68f.js index e9ebede5..a63d49c6 100644 --- a/vue/dist/assets/stackView-9d4e5342.js +++ b/vue/dist/assets/stackView-8506f68f.js @@ -1 +1 @@ -import{d as fe,u as We,g as ce,_ as ct,c as i,a as Ne,P as we,D as Be,f as dt,w as Nt,b as Bt,e as Et,h as tt,M as Ee,i as Tt,j as zt,F as Te,A as pt,k as De,l as jt,r as ue,m as ze,n as at,o as Vt,s as Fe,p as z,q as nt,t as Ut,v as Wt,x as Ht,y as ie,z as N,B as qt,C as Gt,E as Ce,G as st,H as Kt,I as Qt,J as je,K as Jt,L as Xt,N as Oe,O as Le,Q as Yt,R as ft,S as M,T,U as h,V as ee,W as w,X as Ve,Y as Q,Z as vt,$ as Zt,a0 as G,a1 as g,a2 as e,a3 as y,a4 as K,a5 as ea,a6 as ot,a7 as ta,a8 as aa,a9 as na,aa as sa,ab as oa,ac as la,ad as ra,ae as lt,af as ia,ag as ua,ah as ca,ai as da,aj as pa}from"./index-0a648427.js";import{S as de,s as fa}from"./index-5fd83ad6.js";import{F as J,_ as mt,a as va}from"./numInput-229c2aa0.js";import"./index-6e5caf8a.js";/* empty css */import{_ as ma}from"./index-4035ad46.js";import{D as ht}from"./index-c4240098.js";/* empty css *//* empty css */import{u as gt,N as ha,g as I,s as kt,a as ga,b as ka,c as ya,d as ba,F as Ca}from"./FileItem-e54d55be.js";import{u as wa,a as _a,b as Sa,c as Ia,d as Pa,M as xa,L as $a,R as Aa,f as Ra}from"./MultiSelectKeep-051920f0.js";import{g as be,o as Ma}from"./functionalCallableComp-58260c55.js";import"./shortcut-16cf2087.js";var Da=["class","style"],Fa=function(){return{prefixCls:String,href:String,separator:we.any,overlay:we.any,onClick:Function}};const pe=fe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Fa(),slots:["separator","overlay"],setup:function(t,l){var o=l.slots,p=l.attrs,c=We("breadcrumb",t),b=c.prefixCls,$=function(f,C){var v=ce(o,t,"overlay");return v?i(ht,{overlay:v,placement:"bottom"},{default:function(){return[i("span",{class:"".concat(C,"-overlay-link")},[f,i(Be,null,null)])]}}):f};return function(){var D,f=(D=ce(o,t,"separator"))!==null&&D!==void 0?D:"/",C=ce(o,t),v=p.class,A=p.style,P=ct(p,Da),_;return t.href!==void 0?_=i("a",Ne({class:"".concat(b.value,"-link"),onClick:t.onClick},P),[C]):_=i("span",Ne({class:"".concat(b.value,"-link"),onClick:t.onClick},P),[C]),_=$(_,b.value),C?i("span",{class:v,style:A},[_,f&&i("span",{class:"".concat(b.value,"-separator")},[f])]):null}}});var Oa=function(){return{prefixCls:String,routes:{type:Array},params:we.any,separator:we.any,itemRender:{type:Function}}};function La(s,t){if(!s.breadcrumbName)return null;var l=Object.keys(t).join("|"),o=s.breadcrumbName.replace(new RegExp(":(".concat(l,")"),"g"),function(p,c){return t[c]||p});return o}function rt(s){var t=s.route,l=s.params,o=s.routes,p=s.paths,c=o.indexOf(t)===o.length-1,b=La(t,l);return c?i("span",null,[b]):i("a",{href:"#/".concat(p.join("/"))},[b])}const se=fe({compatConfig:{MODE:3},name:"ABreadcrumb",props:Oa(),slots:["separator","itemRender"],setup:function(t,l){var o=l.slots,p=We("breadcrumb",t),c=p.prefixCls,b=p.direction,$=function(v,A){return v=(v||"").replace(/^\//,""),Object.keys(A).forEach(function(P){v=v.replace(":".concat(P),A[P])}),v},D=function(v,A,P){var _=Tt(v),L=$(A||"",P);return L&&_.push(L),_},f=function(v){var A=v.routes,P=A===void 0?[]:A,_=v.params,L=_===void 0?{}:_,j=v.separator,B=v.itemRender,O=B===void 0?rt:B,V=[];return P.map(function(x){var E=$(x.path,L);E&&V.push(E);var X=[].concat(V),Y=null;return x.children&&x.children.length&&(Y=i(Ee,null,{default:function(){return[x.children.map(function(W){return i(Ee.Item,{key:W.path||W.breadcrumbName},{default:function(){return[O({route:W,params:L,routes:P,paths:D(X,W.path,L)})]}})})]}})),i(pe,{overlay:Y,separator:j,key:E||x.breadcrumbName},{default:function(){return[O({route:x,params:L,routes:P,paths:X})]}})})};return function(){var C,v,A,P=t.routes,_=t.params,L=_===void 0?{}:_,j=dt(ce(o,t)),B=(C=ce(o,t,"separator"))!==null&&C!==void 0?C:"/",O=t.itemRender||o.itemRender||rt;P&&P.length>0?A=f({routes:P,params:L,separator:B,itemRender:O}):j.length&&(A=j.map(function(x,E){return Nt(Bt(x.type)==="object"&&(x.type.__ANT_BREADCRUMB_ITEM||x.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Et(x,{separator:B,key:E})}));var V=(v={},tt(v,c.value,!0),tt(v,"".concat(c.value,"-rtl"),b.value==="rtl"),v);return i("div",{class:V},[A])}}});var Na=["separator","class"],Ba=function(){return{prefixCls:String}};const Ue=fe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ba(),setup:function(t,l){var o=l.slots,p=l.attrs,c=We("breadcrumb",t),b=c.prefixCls;return function(){var $;p.separator;var D=p.class,f=ct(p,Na),C=dt(($=o.default)===null||$===void 0?void 0:$.call(o));return i("span",Ne({class:["".concat(b.value,"-separator"),D]},f),[C.length>0?C:"/"])}}});se.Item=pe;se.Separator=Ue;se.install=function(s){return s.component(se.name,se),s.component(pe.name,pe),s.component(Ue.name,Ue),s};J.useInjectFormItemContext=zt;J.ItemRest=Te;J.install=function(s){return s.component(J.name,J),s.component(J.Item.name,J.Item),s.component(Te.name,Te),s};de.setDefaultIndicator=fa;de.install=function(s){return s.component(de.name,de),s};var Ea={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const Ta=Ea;function it(s){for(var t=1;t{p=f,o=C}),b=()=>{l.isFinished=!0,clearTimeout(l.id)},$=()=>De(this,void 0,void 0,function*(){try{l.res=yield l.action(),l.validator&&l.validator(l.res)&&(p(l.res),b())}catch(f){_e.silent||console.error(f),l.errorHandleMethod==="stop"&&(b(),o(f))}}),D=()=>{l.isFinished||(l.id=setTimeout(()=>De(this,void 0,void 0,function*(){yield $(),D()}),l.pollInterval))};return setTimeout(()=>De(this,void 0,void 0,function*(){l.immediately&&(yield $()),D()}),0),jt({task:l,clearTask:b,completedTask:c})}}_e.silent=!1;var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const Ua=Va;function ut(s){for(var t=1;to.value.length,at((n,u)=>{var d;n!==u&&((d=t.value)==null||d.scrollToItem(0))},300)),Vt(async()=>{var n;if(!o.value.length)if(f.value.mode==="scanned-fixed"||f.value.mode==="walk")o.value=[{files:[],curr:f.value.path??""}];else{const u=await be("/");o.value.push({files:u.files,curr:"/"})}s.value=new ha,s.value.configure({parent:l.value}),f.value.path&&f.value.path!=="/"?await O(f.value.path):(n=I.conf)!=null&&n.home&&O(I.conf.home)}),ze(c,at(n=>{const u=D.value();if(!u)return;u.path=n;const d=Fe(n).pop()??"",k=(()=>{const R={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[f.value.mode??"scanned"],F=q=>R?`${R}: ${q}`:q,U=I.getShortPath(n);return F(U.length>24&&d?d:U)})();u.name=z("div",{style:"display:flex;align-items:center"},[z(Ha),z("span",{class:"line-clamp-1",style:"max-width: 256px"},k)]),u.nameFallbackStr=k,I.recent=I.recent.filter(R=>R.key!==u.key),I.recent.unshift({path:n,key:u.key,mode:f.value.mode}),I.recent.length>20&&(I.recent=I.recent.slice(0,20))},300));const P=()=>je(c.value),_=async n=>{var u,d;if(n.type==="dir")try{(u=s.value)==null||u.start();const{files:S}=await be(n.fullpath);f.value.mode=="scanned-fixed"?o.value=[{files:S,curr:n.fullpath}]:o.value.push({files:S,curr:n.name})}finally{(d=s.value)==null||d.done()}},L=n=>{if(f.value.mode!="walk")for(;n{O(Jt(c.value))},B=(n,u)=>(Xt(I.conf,"global.conf load failed"),I.conf.is_win?n.toLowerCase()==u.toLowerCase():n==u),O=async n=>{f.value.mode==="walk"?D.value().path=n:f.value.mode==="scanned-fixed"?await _({fullpath:n,name:n,type:"dir"}):await V(n),nt(500).then(()=>$.value.emit("viewableAreaFilesChange"))},V=async n=>{var d,S;const u=o.value.slice();try{Ut(n)||(n=Wt(((d=I.conf)==null?void 0:d.sd_cwd)??"/",n));const k=Fe(n),R=o.value.map(F=>F.curr);for(R.shift();R[0]&&k[0]&&B(R[0],k[0]);)R.shift(),k.shift();for(let F=0;FB(q.name,F));if(!U)throw console.error({frags:k,frag:F,stack:Ht(o.value)}),new Error(`${F} not found`);await _(U)}}catch(k){throw ie.error(N("moveFailedCheckPath")+(k instanceof Error?k.message:"")),console.error(n,Fe(n),p.value),o.value=u,k}},x=qt(async()=>{var n,u,d;try{if((n=s.value)==null||n.start(),v.value)await v.value.reset(),$.value.emit("loadNextDir");else{const{files:S}=await be(c.value);Oe(o.value).files=S}C.value.clear(),(u=t.value)==null||u.scrollToItem(0),ie.success(N("refreshCompleted"))}finally{(d=s.value)==null||d.done()}}),E=async()=>{var n,u,d;if(f.value.mode==="walk"&&v.value){const S=((n=t.value)==null?void 0:n.$_endIndex)??64;if(I.autoRefreshWalkMode&&S{k.value=!0,I.autoRefreshWalkMode=!1,F(),ie.success(N("walkModeAutoRefreshDisabled"))},F=ie.loading(z("span",{},[N("autoUpdate"),z("span",{onClick:R,style:{paddingLeft:"16px",cursor:"pointer",color:"var(--primary-color)"}},N("disable"))]),0);try{const U=new Promise(q=>{v.value.seamlessRefresh(S,k).then(xe=>{k.value||(v.value=xe,$.value.emit("loadNextDir"),q())})});await Promise.all([U,nt(1500)])}finally{F()}}return}try{if(!I.autoRefreshNormalFixedMode)return;(u=s.value)==null||u.start();const{files:S}=await be(c.value);Oe(o.value).files.map(R=>R.date).join()!==S.map(R=>R.date).join()&&(Oe(o.value).files=S,ie.success(N("autoUpdate")))}finally{(d=s.value)==null||d.done()}};Gt("returnToIIB",E),b.value("refresh",x);const X=n=>{O(n)},Y=Ce(()=>I.quickMovePaths.map(n=>({...n,path:st(n.dir)}))),te=Ce(()=>{const n=st(c.value);return Y.value.find(d=>d.path===n)}),W=async()=>{const n=I.tabList[f.value.tabIdx],u={type:"empty",name:N("emptyStartPage"),key:Date.now()+Le(),popAddPathModal:{path:c.value,type:"scanned"}};n.panes.push(u),n.key=u.key},H=ue(!1),ae=ue(c.value),Se=()=>{H.value=!0,ae.value=c.value},ve=async()=>{await O(ae.value),H.value=!1};wa("click",n=>{var u,d,S;(S=(d=(u=n.target)==null?void 0:u.className)==null?void 0:d.includes)!=null&&S.call(d,"ant-input")||(H.value=!1)});const Ie=()=>{const n=parent.location,u=n.href.substring(0,n.href.length-n.search.length),d=new URLSearchParams(n.search);d.set("action","open"),d.set("path",c.value),d.set("mode",f.value.mode??"scanned");const S=`${u}?${d.toString()}`;je(S,N("copyLocationUrlSuccessMsg"))},Pe=(n="tag-search")=>{const u=I.tabList[f.value.tabIdx],d={type:n,key:Le(),searchScope:c.value,name:N(n==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(d),u.key=d.key},oe=()=>$.value.emit("selectAll"),Z=async()=>{await Ma(c.value),await x()},le=()=>{const n=c.value;kt.set(n,o.value);const u=I.tabList[f.value.tabIdx],d={type:"local",key:Le(),path:n,name:N("local"),stackKey:n,mode:"walk"};u.panes.push(d),u.key=d.key},me=Ce(()=>!v.value&&A.value.some(n=>n.type==="dir"));return{locInputValue:ae,isLocationEditing:H,onLocEditEnter:ve,onEditBtnClick:Se,addToSearchScanPathAndQuickMove:W,searchPathInfo:te,refresh:x,copyLocation:P,back:L,openNext:_,currPage:p,currLocation:c,stack:o,scroller:t,share:Ie,selectAll:oe,quickMoveTo:X,onCreateFloderBtnClick:Z,onWalkBtnClick:le,showWalkButton:me,searchInCurrentDir:Pe,backToLastUseTo:j,...Ga(E)}}const Ga=s=>{const t=ue([]),l=Ce(()=>t.value.length>0);Kt(()=>{t.value.forEach(c=>c())});const o=Qt(Yt+"poll-interval",3);return{onPollRefreshClick:()=>{if(t.value.length){t.value.forEach(c=>c()),t.value=[];return}ft.confirm({title:N("pollRefresh"),width:640,content:()=>z("div",{},[z("p",{class:"uni-desc primary-bg"},N("pollRefreshTip")),z("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},[z("span",{},N("pollInterval")+"(s): "),z(mt,{min:1,max:60*10,modelValue:o.value,"onUpdate:modelValue":c=>{o.value=c}})])]),onOk:()=>{const{clearTask:c}=_e.run({pollInterval:o.value*1e3,action:s});t.value.push(c)}})},polling:l}};const Ka={class:"base-info"},Qa=fe({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(s){return(t,l)=>(M(),T("div",Ka,[h("span",null,[ee(w(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(M(),T(Ve,{key:0},[ee(", "+w(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):Q("",!0)])]))}});const Ja=vt(Qa,[["__scopeId","data-v-afd25667"]]),Xa={class:"hint"},Ya={class:"location-bar"},Za=["onClick"],en={key:3,class:"location-act"},tn={class:"actions"},an=["onClick"],nn={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)"}},sn={style:{padding:"4px"}},on={style:{padding:"4px"}},ln={style:{padding:"4px"}},rn={key:0,class:"view"},un={style:{padding:"16px 0 512px"}},cn={key:0,class:"preview-switch"},dn=fe({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(s){const t=s,l=Zt(),{scroller:o,stackViewEl:p,props:c,multiSelectedIdxs:b,spinning:$}=gt().toRefs(),{currLocation:D,currPage:f,refresh:C,copyLocation:v,back:A,openNext:P,stack:_,quickMoveTo:L,addToSearchScanPathAndQuickMove:j,locInputValue:B,isLocationEditing:O,onLocEditEnter:V,onEditBtnClick:x,share:E,selectAll:X,onCreateFloderBtnClick:Y,onWalkBtnClick:te,showWalkButton:W,searchInCurrentDir:H,backToLastUseTo:ae,polling:Se,onPollRefreshClick:ve}=qa(),{gridItems:Ie,sortMethodConv:Pe,moreActionsDropdownShow:oe,sortedFiles:Z,sortMethod:le,itemSize:me,loadNextDir:n,loadNextDirLoading:u,canLoadNext:d,onScroll:S,cellWidth:k,dirCoverCache:R}=ga(),{onDrop:F,onFileDragStart:U,onFileDragEnd:q}=_a(),{onFileItemClick:xe,onContextMenuClick:Ge,showGenInfo:he,imageGenInfo:Ke,q:yt}=Sa({openNext:P}),{previewIdx:ge,onPreviewVisibleChange:bt,previewing:$e,previewImgMove:Qe,canPreview:Je}=Ia(),{showMenuIdx:Ae}=ka(),{onClearAllSelected:Ct,onReverseSelect:wt,onSelectAll:_t}=ya(),{getGenDiff:St,changeIndchecked:re,seedChangeChecked:ke,getRawGenParams:It,getGenDiffWatchDep:Pt}=Pa();return ze(()=>t,()=>{c.value=t;const m=kt.get(t.stackKey??"");m&&(_.value=m.slice())},{immediate:!0}),(m,a)=>{const xt=ia,$t=ua,At=ft,Rt=ca,Mt=pe,Dt=se,Xe=da,Re=pa,Ye=Ee,Me=ht,Ft=mt,ye=va,Ze=ma,Ot=J,Lt=de;return M(),G(Lt,{spinning:e($),size:"large"},{default:g(()=>[i(xa,{show:e(l).keepMultiSelect||!!e(b).length,onClearAllSelected:e(Ct),onSelectAll:e(_t),onReverseSelect:e(wt)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),i(xt,{style:{display:"none"}}),h("div",{ref_key:"stackViewEl",ref:p,onDragover:a[31]||(a[31]=y(()=>{},["prevent"])),onDrop:a[32]||(a[32]=y(r=>e(F)(r),["prevent"])),class:"container"},[i(At,{visible:e(he),"onUpdate:visible":a[1]||(a[1]=r=>K(he)?he.value=r:null),width:"70vw","mask-closable":"",onOk:a[2]||(a[2]=r=>he.value=!1)},{cancelText:g(()=>[]),default:g(()=>[i($t,{active:"",loading:!e(yt).isIdle},{default:g(()=>[h("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:a[0]||(a[0]=r=>e(je)(e(Ke)))},[h("div",Xa,w(m.$t("doubleClickToCopy")),1),ee(" "+w(e(Ke)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),h("div",Ya,[h("div",{class:"breadcrumb",style:ea({flex:e(O)?1:""})},[e(O)?(M(),G(Rt,{key:0,style:{flex:"1"},value:e(B),"onUpdate:value":a[3]||(a[3]=r=>K(B)?B.value=r:null),onClick:a[4]||(a[4]=y(()=>{},["stop"])),onKeydown:a[5]||(a[5]=y(()=>{},["stop"])),onPressEnter:e(V),"allow-clear":""},null,8,["value","onPressEnter"])):(M(),G(Dt,{key:1,style:{flex:"1"}},{default:g(()=>[(M(!0),T(Ve,null,ot(e(_),(r,ne)=>(M(),G(Mt,{key:ne},{default:g(()=>[h("a",{onClick:y(et=>e(A)(ne),["prevent"])},w(r.curr==="/"?m.$t("root"):r.curr.replace(/:\/$/,m.$t("drive"))),9,Za)]),_:2},1024))),128))]),_:1})),e(O)?(M(),G(Xe,{key:2,size:"small",onClick:e(V),type:"primary"},{default:g(()=>[ee(w(m.$t("go")),1)]),_:1},8,["onClick"])):(M(),T("div",en,[m.mode==="scanned-fixed"?(M(),T("a",{key:0,onClick:a[6]||(a[6]=y((...r)=>e(ae)&&e(ae)(...r),["prevent"])),style:{margin:"0 8px 16px 0"}},[i(e(ja))])):Q("",!0),h("a",{onClick:a[7]||(a[7]=y((...r)=>e(v)&&e(v)(...r),["prevent"])),class:"copy"},w(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=y((...r)=>e(x)&&e(x)(...r),["prevent","stop"]))},w(m.$t("edit")),1)]))],4),h("div",tn,[h("a",{class:"opt",onClick:a[9]||(a[9]=y((...r)=>e(C)&&e(C)(...r),["prevent"]))},w(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=y((...r)=>e(ve)&&e(ve)(...r),["prevent"]))},w(e(Se)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),i(Me,null,{overlay:g(()=>[i(Ye,null,{default:g(()=>[i(Re,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[12]||(a[12]=y(r=>e(H)("tag-search"),["prevent"]))},w(m.$t("imgSearch")),1)]),_:1}),i(Re,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[13]||(a[13]=y(r=>e(H)("fuzzy-search"),["prevent"]))},w(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=y(()=>{},["prevent"]))},[ee(w(m.$t("search"))+" ",1),i(e(Be))])]),_:1}),e(W)?(M(),T("a",{key:0,class:"opt",onClick:a[14]||(a[14]=y((...r)=>e(te)&&e(te)(...r),["prevent"]))}," Walk ")):Q("",!0),h("a",{class:"opt",onClick:a[15]||(a[15]=y((...r)=>e(X)&&e(X)(...r),["prevent","stop"]))},w(m.$t("selectAll")),1),e(ta)?Q("",!0):(M(),T("a",{key:1,class:"opt",onClick:a[16]||(a[16]=y((...r)=>e(E)&&e(E)(...r),["prevent"]))},w(m.$t("share")),1)),i(Me,null,{overlay:g(()=>[i(Ye,null,{default:g(()=>[(M(!0),T(Ve,null,ot(e(l).quickMovePaths,r=>(M(),G(Re,{key:r.dir},{default:g(()=>[h("a",{onClick:y(ne=>e(L)(r.dir),["prevent"])},w(r.zh),9,an)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=y(()=>{},["prevent"]))},[ee(w(m.$t("quickMove"))+" ",1),i(e(Be))])]),_:1}),i(Me,{trigger:["click"],visible:e(oe),"onUpdate:visible":a[27]||(a[27]=r=>K(oe)?oe.value=r:null),placement:"bottomLeft",getPopupContainer:r=>r.parentNode},{overlay:g(()=>[h("div",nn,[i(Ot,aa(na({labelCol:{span:10},wrapperCol:{span:14}})),{default:g(()=>[i(ye,{label:m.$t("gridCellWidth")},{default:g(()=>[i(Ft,{modelValue:e(k),"onUpdate:modelValue":a[19]||(a[19]=r=>K(k)?k.value=r:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),i(ye,{label:m.$t("sortingMethod")},{default:g(()=>[i(e(sa),{value:e(le),"onUpdate:value":a[20]||(a[20]=r=>K(le)?le.value=r:null),onClick:a[21]||(a[21]=y(()=>{},["stop"])),conv:e(Pe),options:e(oa)},null,8,["value","conv","options"])]),_:1},8,["label"]),i(ye,{label:m.$t("showChangeIndicators")},{default:g(()=>[i(Ze,{checked:e(re),"onUpdate:checked":a[22]||(a[22]=r=>K(re)?re.value=r:null),onClick:e(It)},null,8,["checked","onClick"])]),_:1},8,["label"]),i(ye,{label:m.$t("seedAsChange")},{default:g(()=>[i(Ze,{checked:e(ke),"onUpdate:checked":a[23]||(a[23]=r=>K(ke)?ke.value=r:null),disabled:!e(re)},null,8,["checked","disabled"])]),_:1},8,["label"]),h("div",sn,[h("a",{onClick:a[24]||(a[24]=y((...r)=>e(j)&&e(j)(...r),["prevent"]))},w(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",on,[h("a",{onClick:a[25]||(a[25]=y(r=>e(la)(e(D)+"/"),["prevent"]))},w(m.$t("openWithLocalFileBrowser")),1)]),h("div",ln,[h("a",{onClick:a[26]||(a[26]=y((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},w(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=y(()=>{},["prevent"]))},w(m.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(f)?(M(),T("div",rn,[i(e(ba),{class:"file-list",items:e(Z),ref_key:"scroller",ref:o,onScroll:e(S),"item-size":e(me).first,"key-field":"fullpath","item-secondary-size":e(me).second,gridItems:e(Ie)},{default:g(({item:r,index:ne})=>[i(Ca,{idx:parseInt(ne),file:r,"full-screen-preview-image-url":e(Z)[e(ge)]?e(ra)(e(Z)[e(ge)]):"","show-menu-idx":e(Ae),"onUpdate:showMenuIdx":a[28]||(a[28]=et=>K(Ae)?Ae.value=et:null),selected:e(b).includes(ne),"cell-width":e(k),onFileItemClick:e(xe),onDragstart:e(U),onDragend:e(q),onPreviewVisibleChange:e(bt),onContextMenuClick:e(Ge),"is-selected-mutil-files":e(b).length>1,"enable-change-indicator":e(re),"seed-change-checked":e(ke),"get-gen-diff":e(St),"get-gen-diff-watch-dep":e(Pt),previewing:e($e),"cover-files":e(R).get(r.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:g(()=>[h("div",un,[t.mode==="walk"?(M(),G(Xe,{key:0,onClick:e(n),loading:e(u),block:"",type:"primary",disabled:!e(d),ghost:""},{default:g(()=>[ee(w(m.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):Q("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e($e)?(M(),T("div",cn,[i(e($a),{onClick:a[29]||(a[29]=r=>e(Qe)("prev")),class:lt({disable:!e(Je)("prev")})},null,8,["class"]),i(e(Aa),{onClick:a[30]||(a[30]=r=>e(Qe)("next")),class:lt({disable:!e(Je)("next")})},null,8,["class"])])):Q("",!0)])):Q("",!0)],544),e($e)?(M(),G(Ra,{key:0,file:e(Z)[e(ge)],idx:e(ge),onContextMenuClick:e(Ge)},null,8,["file","idx","onContextMenuClick"])):Q("",!0),i(Ja,{"file-num":e(Z).length,"selected-file-num":e(b).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const In=vt(dn,[["__scopeId","data-v-bd9da014"]]);export{In as default}; +import{d as fe,u as We,g as ce,_ as ct,c as i,a as Ne,P as we,D as Be,f as dt,w as Nt,b as Bt,e as Et,h as tt,M as Ee,i as Tt,j as zt,F as Te,A as pt,k as De,l as jt,r as ue,m as ze,n as at,o as Vt,s as Fe,p as z,q as nt,t as Ut,v as Wt,x as Ht,y as ie,z as N,B as qt,C as Gt,E as Ce,G as st,H as Kt,I as Qt,J as je,K as Jt,L as Xt,N as Oe,O as Le,Q as Yt,R as ft,S as M,T,U as h,V as ee,W as w,X as Ve,Y as Q,Z as vt,$ as Zt,a0 as G,a1 as g,a2 as e,a3 as y,a4 as K,a5 as ea,a6 as ot,a7 as ta,a8 as aa,a9 as na,aa as sa,ab as oa,ac as la,ad as ra,ae as lt,af as ia,ag as ua,ah as ca,ai as da,aj as pa}from"./index-93a218ca.js";import{S as de,s as fa}from"./index-c7fe1b25.js";import{F as J,_ as mt,a as va}from"./numInput-27ba7dc9.js";import"./index-67a7e5e1.js";/* empty css */import{_ as ma}from"./index-4596f42d.js";import{D as ht}from"./index-f60e0de3.js";/* empty css *//* empty css */import{u as gt,N as ha,g as I,s as kt,a as ga,b as ka,c as ya,d as ba,F as Ca}from"./FileItem-9a94f7dd.js";import{u as wa,a as _a,b as Sa,c as Ia,d as Pa,M as xa,L as $a,R as Aa,f as Ra}from"./MultiSelectKeep-e20b5f46.js";import{g as be,o as Ma}from"./functionalCallableComp-685da399.js";import"./shortcut-ff09b8ec.js";var Da=["class","style"],Fa=function(){return{prefixCls:String,href:String,separator:we.any,overlay:we.any,onClick:Function}};const pe=fe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Fa(),slots:["separator","overlay"],setup:function(t,l){var o=l.slots,p=l.attrs,c=We("breadcrumb",t),b=c.prefixCls,$=function(f,C){var v=ce(o,t,"overlay");return v?i(ht,{overlay:v,placement:"bottom"},{default:function(){return[i("span",{class:"".concat(C,"-overlay-link")},[f,i(Be,null,null)])]}}):f};return function(){var D,f=(D=ce(o,t,"separator"))!==null&&D!==void 0?D:"/",C=ce(o,t),v=p.class,A=p.style,P=ct(p,Da),_;return t.href!==void 0?_=i("a",Ne({class:"".concat(b.value,"-link"),onClick:t.onClick},P),[C]):_=i("span",Ne({class:"".concat(b.value,"-link"),onClick:t.onClick},P),[C]),_=$(_,b.value),C?i("span",{class:v,style:A},[_,f&&i("span",{class:"".concat(b.value,"-separator")},[f])]):null}}});var Oa=function(){return{prefixCls:String,routes:{type:Array},params:we.any,separator:we.any,itemRender:{type:Function}}};function La(s,t){if(!s.breadcrumbName)return null;var l=Object.keys(t).join("|"),o=s.breadcrumbName.replace(new RegExp(":(".concat(l,")"),"g"),function(p,c){return t[c]||p});return o}function rt(s){var t=s.route,l=s.params,o=s.routes,p=s.paths,c=o.indexOf(t)===o.length-1,b=La(t,l);return c?i("span",null,[b]):i("a",{href:"#/".concat(p.join("/"))},[b])}const se=fe({compatConfig:{MODE:3},name:"ABreadcrumb",props:Oa(),slots:["separator","itemRender"],setup:function(t,l){var o=l.slots,p=We("breadcrumb",t),c=p.prefixCls,b=p.direction,$=function(v,A){return v=(v||"").replace(/^\//,""),Object.keys(A).forEach(function(P){v=v.replace(":".concat(P),A[P])}),v},D=function(v,A,P){var _=Tt(v),L=$(A||"",P);return L&&_.push(L),_},f=function(v){var A=v.routes,P=A===void 0?[]:A,_=v.params,L=_===void 0?{}:_,j=v.separator,B=v.itemRender,O=B===void 0?rt:B,V=[];return P.map(function(x){var E=$(x.path,L);E&&V.push(E);var X=[].concat(V),Y=null;return x.children&&x.children.length&&(Y=i(Ee,null,{default:function(){return[x.children.map(function(W){return i(Ee.Item,{key:W.path||W.breadcrumbName},{default:function(){return[O({route:W,params:L,routes:P,paths:D(X,W.path,L)})]}})})]}})),i(pe,{overlay:Y,separator:j,key:E||x.breadcrumbName},{default:function(){return[O({route:x,params:L,routes:P,paths:X})]}})})};return function(){var C,v,A,P=t.routes,_=t.params,L=_===void 0?{}:_,j=dt(ce(o,t)),B=(C=ce(o,t,"separator"))!==null&&C!==void 0?C:"/",O=t.itemRender||o.itemRender||rt;P&&P.length>0?A=f({routes:P,params:L,separator:B,itemRender:O}):j.length&&(A=j.map(function(x,E){return Nt(Bt(x.type)==="object"&&(x.type.__ANT_BREADCRUMB_ITEM||x.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Et(x,{separator:B,key:E})}));var V=(v={},tt(v,c.value,!0),tt(v,"".concat(c.value,"-rtl"),b.value==="rtl"),v);return i("div",{class:V},[A])}}});var Na=["separator","class"],Ba=function(){return{prefixCls:String}};const Ue=fe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ba(),setup:function(t,l){var o=l.slots,p=l.attrs,c=We("breadcrumb",t),b=c.prefixCls;return function(){var $;p.separator;var D=p.class,f=ct(p,Na),C=dt(($=o.default)===null||$===void 0?void 0:$.call(o));return i("span",Ne({class:["".concat(b.value,"-separator"),D]},f),[C.length>0?C:"/"])}}});se.Item=pe;se.Separator=Ue;se.install=function(s){return s.component(se.name,se),s.component(pe.name,pe),s.component(Ue.name,Ue),s};J.useInjectFormItemContext=zt;J.ItemRest=Te;J.install=function(s){return s.component(J.name,J),s.component(J.Item.name,J.Item),s.component(Te.name,Te),s};de.setDefaultIndicator=fa;de.install=function(s){return s.component(de.name,de),s};var Ea={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const Ta=Ea;function it(s){for(var t=1;t{p=f,o=C}),b=()=>{l.isFinished=!0,clearTimeout(l.id)},$=()=>De(this,void 0,void 0,function*(){try{l.res=yield l.action(),l.validator&&l.validator(l.res)&&(p(l.res),b())}catch(f){_e.silent||console.error(f),l.errorHandleMethod==="stop"&&(b(),o(f))}}),D=()=>{l.isFinished||(l.id=setTimeout(()=>De(this,void 0,void 0,function*(){yield $(),D()}),l.pollInterval))};return setTimeout(()=>De(this,void 0,void 0,function*(){l.immediately&&(yield $()),D()}),0),jt({task:l,clearTask:b,completedTask:c})}}_e.silent=!1;var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const Ua=Va;function ut(s){for(var t=1;to.value.length,at((n,u)=>{var d;n!==u&&((d=t.value)==null||d.scrollToItem(0))},300)),Vt(async()=>{var n;if(!o.value.length)if(f.value.mode==="scanned-fixed"||f.value.mode==="walk")o.value=[{files:[],curr:f.value.path??""}];else{const u=await be("/");o.value.push({files:u.files,curr:"/"})}s.value=new ha,s.value.configure({parent:l.value}),f.value.path&&f.value.path!=="/"?await O(f.value.path):(n=I.conf)!=null&&n.home&&O(I.conf.home)}),ze(c,at(n=>{const u=D.value();if(!u)return;u.path=n;const d=Fe(n).pop()??"",k=(()=>{const R={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[f.value.mode??"scanned"],F=q=>R?`${R}: ${q}`:q,U=I.getShortPath(n);return F(U.length>24&&d?d:U)})();u.name=z("div",{style:"display:flex;align-items:center"},[z(Ha),z("span",{class:"line-clamp-1",style:"max-width: 256px"},k)]),u.nameFallbackStr=k,I.recent=I.recent.filter(R=>R.key!==u.key),I.recent.unshift({path:n,key:u.key,mode:f.value.mode}),I.recent.length>20&&(I.recent=I.recent.slice(0,20))},300));const P=()=>je(c.value),_=async n=>{var u,d;if(n.type==="dir")try{(u=s.value)==null||u.start();const{files:S}=await be(n.fullpath);f.value.mode=="scanned-fixed"?o.value=[{files:S,curr:n.fullpath}]:o.value.push({files:S,curr:n.name})}finally{(d=s.value)==null||d.done()}},L=n=>{if(f.value.mode!="walk")for(;n{O(Jt(c.value))},B=(n,u)=>(Xt(I.conf,"global.conf load failed"),I.conf.is_win?n.toLowerCase()==u.toLowerCase():n==u),O=async n=>{f.value.mode==="walk"?D.value().path=n:f.value.mode==="scanned-fixed"?await _({fullpath:n,name:n,type:"dir"}):await V(n),nt(500).then(()=>$.value.emit("viewableAreaFilesChange"))},V=async n=>{var d,S;const u=o.value.slice();try{Ut(n)||(n=Wt(((d=I.conf)==null?void 0:d.sd_cwd)??"/",n));const k=Fe(n),R=o.value.map(F=>F.curr);for(R.shift();R[0]&&k[0]&&B(R[0],k[0]);)R.shift(),k.shift();for(let F=0;FB(q.name,F));if(!U)throw console.error({frags:k,frag:F,stack:Ht(o.value)}),new Error(`${F} not found`);await _(U)}}catch(k){throw ie.error(N("moveFailedCheckPath")+(k instanceof Error?k.message:"")),console.error(n,Fe(n),p.value),o.value=u,k}},x=qt(async()=>{var n,u,d;try{if((n=s.value)==null||n.start(),v.value)await v.value.reset(),$.value.emit("loadNextDir");else{const{files:S}=await be(c.value);Oe(o.value).files=S}C.value.clear(),(u=t.value)==null||u.scrollToItem(0),ie.success(N("refreshCompleted"))}finally{(d=s.value)==null||d.done()}}),E=async()=>{var n,u,d;if(f.value.mode==="walk"&&v.value){const S=((n=t.value)==null?void 0:n.$_endIndex)??64;if(I.autoRefreshWalkMode&&S{k.value=!0,I.autoRefreshWalkMode=!1,F(),ie.success(N("walkModeAutoRefreshDisabled"))},F=ie.loading(z("span",{},[N("autoUpdate"),z("span",{onClick:R,style:{paddingLeft:"16px",cursor:"pointer",color:"var(--primary-color)"}},N("disable"))]),0);try{const U=new Promise(q=>{v.value.seamlessRefresh(S,k).then(xe=>{k.value||(v.value=xe,$.value.emit("loadNextDir"),q())})});await Promise.all([U,nt(1500)])}finally{F()}}return}try{if(!I.autoRefreshNormalFixedMode)return;(u=s.value)==null||u.start();const{files:S}=await be(c.value);Oe(o.value).files.map(R=>R.date).join()!==S.map(R=>R.date).join()&&(Oe(o.value).files=S,ie.success(N("autoUpdate")))}finally{(d=s.value)==null||d.done()}};Gt("returnToIIB",E),b.value("refresh",x);const X=n=>{O(n)},Y=Ce(()=>I.quickMovePaths.map(n=>({...n,path:st(n.dir)}))),te=Ce(()=>{const n=st(c.value);return Y.value.find(d=>d.path===n)}),W=async()=>{const n=I.tabList[f.value.tabIdx],u={type:"empty",name:N("emptyStartPage"),key:Date.now()+Le(),popAddPathModal:{path:c.value,type:"scanned"}};n.panes.push(u),n.key=u.key},H=ue(!1),ae=ue(c.value),Se=()=>{H.value=!0,ae.value=c.value},ve=async()=>{await O(ae.value),H.value=!1};wa("click",n=>{var u,d,S;(S=(d=(u=n.target)==null?void 0:u.className)==null?void 0:d.includes)!=null&&S.call(d,"ant-input")||(H.value=!1)});const Ie=()=>{const n=parent.location,u=n.href.substring(0,n.href.length-n.search.length),d=new URLSearchParams(n.search);d.set("action","open"),d.set("path",c.value),d.set("mode",f.value.mode??"scanned");const S=`${u}?${d.toString()}`;je(S,N("copyLocationUrlSuccessMsg"))},Pe=(n="tag-search")=>{const u=I.tabList[f.value.tabIdx],d={type:n,key:Le(),searchScope:c.value,name:N(n==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(d),u.key=d.key},oe=()=>$.value.emit("selectAll"),Z=async()=>{await Ma(c.value),await x()},le=()=>{const n=c.value;kt.set(n,o.value);const u=I.tabList[f.value.tabIdx],d={type:"local",key:Le(),path:n,name:N("local"),stackKey:n,mode:"walk"};u.panes.push(d),u.key=d.key},me=Ce(()=>!v.value&&A.value.some(n=>n.type==="dir"));return{locInputValue:ae,isLocationEditing:H,onLocEditEnter:ve,onEditBtnClick:Se,addToSearchScanPathAndQuickMove:W,searchPathInfo:te,refresh:x,copyLocation:P,back:L,openNext:_,currPage:p,currLocation:c,stack:o,scroller:t,share:Ie,selectAll:oe,quickMoveTo:X,onCreateFloderBtnClick:Z,onWalkBtnClick:le,showWalkButton:me,searchInCurrentDir:Pe,backToLastUseTo:j,...Ga(E)}}const Ga=s=>{const t=ue([]),l=Ce(()=>t.value.length>0);Kt(()=>{t.value.forEach(c=>c())});const o=Qt(Yt+"poll-interval",3);return{onPollRefreshClick:()=>{if(t.value.length){t.value.forEach(c=>c()),t.value=[];return}ft.confirm({title:N("pollRefresh"),width:640,content:()=>z("div",{},[z("p",{class:"uni-desc primary-bg"},N("pollRefreshTip")),z("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},[z("span",{},N("pollInterval")+"(s): "),z(mt,{min:1,max:60*10,modelValue:o.value,"onUpdate:modelValue":c=>{o.value=c}})])]),onOk:()=>{const{clearTask:c}=_e.run({pollInterval:o.value*1e3,action:s});t.value.push(c)}})},polling:l}};const Ka={class:"base-info"},Qa=fe({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(s){return(t,l)=>(M(),T("div",Ka,[h("span",null,[ee(w(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(M(),T(Ve,{key:0},[ee(", "+w(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):Q("",!0)])]))}});const Ja=vt(Qa,[["__scopeId","data-v-afd25667"]]),Xa={class:"hint"},Ya={class:"location-bar"},Za=["onClick"],en={key:3,class:"location-act"},tn={class:"actions"},an=["onClick"],nn={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)"}},sn={style:{padding:"4px"}},on={style:{padding:"4px"}},ln={style:{padding:"4px"}},rn={key:0,class:"view"},un={style:{padding:"16px 0 512px"}},cn={key:0,class:"preview-switch"},dn=fe({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(s){const t=s,l=Zt(),{scroller:o,stackViewEl:p,props:c,multiSelectedIdxs:b,spinning:$}=gt().toRefs(),{currLocation:D,currPage:f,refresh:C,copyLocation:v,back:A,openNext:P,stack:_,quickMoveTo:L,addToSearchScanPathAndQuickMove:j,locInputValue:B,isLocationEditing:O,onLocEditEnter:V,onEditBtnClick:x,share:E,selectAll:X,onCreateFloderBtnClick:Y,onWalkBtnClick:te,showWalkButton:W,searchInCurrentDir:H,backToLastUseTo:ae,polling:Se,onPollRefreshClick:ve}=qa(),{gridItems:Ie,sortMethodConv:Pe,moreActionsDropdownShow:oe,sortedFiles:Z,sortMethod:le,itemSize:me,loadNextDir:n,loadNextDirLoading:u,canLoadNext:d,onScroll:S,cellWidth:k,dirCoverCache:R}=ga(),{onDrop:F,onFileDragStart:U,onFileDragEnd:q}=_a(),{onFileItemClick:xe,onContextMenuClick:Ge,showGenInfo:he,imageGenInfo:Ke,q:yt}=Sa({openNext:P}),{previewIdx:ge,onPreviewVisibleChange:bt,previewing:$e,previewImgMove:Qe,canPreview:Je}=Ia(),{showMenuIdx:Ae}=ka(),{onClearAllSelected:Ct,onReverseSelect:wt,onSelectAll:_t}=ya(),{getGenDiff:St,changeIndchecked:re,seedChangeChecked:ke,getRawGenParams:It,getGenDiffWatchDep:Pt}=Pa();return ze(()=>t,()=>{c.value=t;const m=kt.get(t.stackKey??"");m&&(_.value=m.slice())},{immediate:!0}),(m,a)=>{const xt=ia,$t=ua,At=ft,Rt=ca,Mt=pe,Dt=se,Xe=da,Re=pa,Ye=Ee,Me=ht,Ft=mt,ye=va,Ze=ma,Ot=J,Lt=de;return M(),G(Lt,{spinning:e($),size:"large"},{default:g(()=>[i(xa,{show:e(l).keepMultiSelect||!!e(b).length,onClearAllSelected:e(Ct),onSelectAll:e(_t),onReverseSelect:e(wt)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),i(xt,{style:{display:"none"}}),h("div",{ref_key:"stackViewEl",ref:p,onDragover:a[31]||(a[31]=y(()=>{},["prevent"])),onDrop:a[32]||(a[32]=y(r=>e(F)(r),["prevent"])),class:"container"},[i(At,{visible:e(he),"onUpdate:visible":a[1]||(a[1]=r=>K(he)?he.value=r:null),width:"70vw","mask-closable":"",onOk:a[2]||(a[2]=r=>he.value=!1)},{cancelText:g(()=>[]),default:g(()=>[i($t,{active:"",loading:!e(yt).isIdle},{default:g(()=>[h("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:a[0]||(a[0]=r=>e(je)(e(Ke)))},[h("div",Xa,w(m.$t("doubleClickToCopy")),1),ee(" "+w(e(Ke)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),h("div",Ya,[h("div",{class:"breadcrumb",style:ea({flex:e(O)?1:""})},[e(O)?(M(),G(Rt,{key:0,style:{flex:"1"},value:e(B),"onUpdate:value":a[3]||(a[3]=r=>K(B)?B.value=r:null),onClick:a[4]||(a[4]=y(()=>{},["stop"])),onKeydown:a[5]||(a[5]=y(()=>{},["stop"])),onPressEnter:e(V),"allow-clear":""},null,8,["value","onPressEnter"])):(M(),G(Dt,{key:1,style:{flex:"1"}},{default:g(()=>[(M(!0),T(Ve,null,ot(e(_),(r,ne)=>(M(),G(Mt,{key:ne},{default:g(()=>[h("a",{onClick:y(et=>e(A)(ne),["prevent"])},w(r.curr==="/"?m.$t("root"):r.curr.replace(/:\/$/,m.$t("drive"))),9,Za)]),_:2},1024))),128))]),_:1})),e(O)?(M(),G(Xe,{key:2,size:"small",onClick:e(V),type:"primary"},{default:g(()=>[ee(w(m.$t("go")),1)]),_:1},8,["onClick"])):(M(),T("div",en,[m.mode==="scanned-fixed"?(M(),T("a",{key:0,onClick:a[6]||(a[6]=y((...r)=>e(ae)&&e(ae)(...r),["prevent"])),style:{margin:"0 8px 16px 0"}},[i(e(ja))])):Q("",!0),h("a",{onClick:a[7]||(a[7]=y((...r)=>e(v)&&e(v)(...r),["prevent"])),class:"copy"},w(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=y((...r)=>e(x)&&e(x)(...r),["prevent","stop"]))},w(m.$t("edit")),1)]))],4),h("div",tn,[h("a",{class:"opt",onClick:a[9]||(a[9]=y((...r)=>e(C)&&e(C)(...r),["prevent"]))},w(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=y((...r)=>e(ve)&&e(ve)(...r),["prevent"]))},w(e(Se)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),i(Me,null,{overlay:g(()=>[i(Ye,null,{default:g(()=>[i(Re,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[12]||(a[12]=y(r=>e(H)("tag-search"),["prevent"]))},w(m.$t("imgSearch")),1)]),_:1}),i(Re,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[13]||(a[13]=y(r=>e(H)("fuzzy-search"),["prevent"]))},w(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=y(()=>{},["prevent"]))},[ee(w(m.$t("search"))+" ",1),i(e(Be))])]),_:1}),e(W)?(M(),T("a",{key:0,class:"opt",onClick:a[14]||(a[14]=y((...r)=>e(te)&&e(te)(...r),["prevent"]))}," Walk ")):Q("",!0),h("a",{class:"opt",onClick:a[15]||(a[15]=y((...r)=>e(X)&&e(X)(...r),["prevent","stop"]))},w(m.$t("selectAll")),1),e(ta)?Q("",!0):(M(),T("a",{key:1,class:"opt",onClick:a[16]||(a[16]=y((...r)=>e(E)&&e(E)(...r),["prevent"]))},w(m.$t("share")),1)),i(Me,null,{overlay:g(()=>[i(Ye,null,{default:g(()=>[(M(!0),T(Ve,null,ot(e(l).quickMovePaths,r=>(M(),G(Re,{key:r.dir},{default:g(()=>[h("a",{onClick:y(ne=>e(L)(r.dir),["prevent"])},w(r.zh),9,an)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=y(()=>{},["prevent"]))},[ee(w(m.$t("quickMove"))+" ",1),i(e(Be))])]),_:1}),i(Me,{trigger:["click"],visible:e(oe),"onUpdate:visible":a[27]||(a[27]=r=>K(oe)?oe.value=r:null),placement:"bottomLeft",getPopupContainer:r=>r.parentNode},{overlay:g(()=>[h("div",nn,[i(Ot,aa(na({labelCol:{span:10},wrapperCol:{span:14}})),{default:g(()=>[i(ye,{label:m.$t("gridCellWidth")},{default:g(()=>[i(Ft,{modelValue:e(k),"onUpdate:modelValue":a[19]||(a[19]=r=>K(k)?k.value=r:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),i(ye,{label:m.$t("sortingMethod")},{default:g(()=>[i(e(sa),{value:e(le),"onUpdate:value":a[20]||(a[20]=r=>K(le)?le.value=r:null),onClick:a[21]||(a[21]=y(()=>{},["stop"])),conv:e(Pe),options:e(oa)},null,8,["value","conv","options"])]),_:1},8,["label"]),i(ye,{label:m.$t("showChangeIndicators")},{default:g(()=>[i(Ze,{checked:e(re),"onUpdate:checked":a[22]||(a[22]=r=>K(re)?re.value=r:null),onClick:e(It)},null,8,["checked","onClick"])]),_:1},8,["label"]),i(ye,{label:m.$t("seedAsChange")},{default:g(()=>[i(Ze,{checked:e(ke),"onUpdate:checked":a[23]||(a[23]=r=>K(ke)?ke.value=r:null),disabled:!e(re)},null,8,["checked","disabled"])]),_:1},8,["label"]),h("div",sn,[h("a",{onClick:a[24]||(a[24]=y((...r)=>e(j)&&e(j)(...r),["prevent"]))},w(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",on,[h("a",{onClick:a[25]||(a[25]=y(r=>e(la)(e(D)+"/"),["prevent"]))},w(m.$t("openWithLocalFileBrowser")),1)]),h("div",ln,[h("a",{onClick:a[26]||(a[26]=y((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},w(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=y(()=>{},["prevent"]))},w(m.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(f)?(M(),T("div",rn,[i(e(ba),{class:"file-list",items:e(Z),ref_key:"scroller",ref:o,onScroll:e(S),"item-size":e(me).first,"key-field":"fullpath","item-secondary-size":e(me).second,gridItems:e(Ie)},{default:g(({item:r,index:ne})=>[i(Ca,{idx:parseInt(ne),file:r,"full-screen-preview-image-url":e(Z)[e(ge)]?e(ra)(e(Z)[e(ge)]):"","show-menu-idx":e(Ae),"onUpdate:showMenuIdx":a[28]||(a[28]=et=>K(Ae)?Ae.value=et:null),selected:e(b).includes(ne),"cell-width":e(k),onFileItemClick:e(xe),onDragstart:e(U),onDragend:e(q),onPreviewVisibleChange:e(bt),onContextMenuClick:e(Ge),"is-selected-mutil-files":e(b).length>1,"enable-change-indicator":e(re),"seed-change-checked":e(ke),"get-gen-diff":e(St),"get-gen-diff-watch-dep":e(Pt),previewing:e($e),"cover-files":e(R).get(r.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:g(()=>[h("div",un,[t.mode==="walk"?(M(),G(Xe,{key:0,onClick:e(n),loading:e(u),block:"",type:"primary",disabled:!e(d),ghost:""},{default:g(()=>[ee(w(m.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):Q("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e($e)?(M(),T("div",cn,[i(e($a),{onClick:a[29]||(a[29]=r=>e(Qe)("prev")),class:lt({disable:!e(Je)("prev")})},null,8,["class"]),i(e(Aa),{onClick:a[30]||(a[30]=r=>e(Qe)("next")),class:lt({disable:!e(Je)("next")})},null,8,["class"])])):Q("",!0)])):Q("",!0)],544),e($e)?(M(),G(Ra,{key:0,file:e(Z)[e(ge)],idx:e(ge),onContextMenuClick:e(Ge)},null,8,["file","idx","onContextMenuClick"])):Q("",!0),i(Ja,{"file-num":e(Z).length,"selected-file-num":e(b).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const In=vt(dn,[["__scopeId","data-v-bd9da014"]]);export{In as default}; diff --git a/vue/dist/index.html b/vue/dist/index.html index 92b21cf6..3c049b87 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/components/functionalCallableComp.tsx b/vue/src/components/functionalCallableComp.tsx index ac4e7c3c..3662cc85 100644 --- a/vue/src/components/functionalCallableComp.tsx +++ b/vue/src/components/functionalCallableComp.tsx @@ -58,7 +58,7 @@ export const openVideoModal = (file: FileNodeInfo, onTagClick?: (id: string| num const base64 = video2base64(video) await setTargetFrameAsCover({ path: file.fullpath, base64_img: base64, updated_time: file.date } ) file.cover_url = URL.createObjectURL(await base64ToFile(base64, 'cover')) - message.success(t('success') + '!') + message.success(t('success') + '! ' + t('clearCacheIfNotTakeEffect')) } Modal.confirm({ width: '80vw', diff --git a/vue/src/i18n/en.ts b/vue/src/i18n/en.ts index af900354..50fbc73e 100644 --- a/vue/src/i18n/en.ts +++ b/vue/src/i18n/en.ts @@ -1,6 +1,7 @@ import type { IIBI18nMap } from '.' export const en: IIBI18nMap = { + clearCacheIfNotTakeEffect: 'If the changes do not take effect, try clearing the page cache', success: 'Success', setCurrFrameAsVideoPoster: 'Set Current Frame as Video Cover', sync: 'Sync', diff --git a/vue/src/i18n/zh-hans.ts b/vue/src/i18n/zh-hans.ts index 7b95667a..8f2c9671 100644 --- a/vue/src/i18n/zh-hans.ts +++ b/vue/src/i18n/zh-hans.ts @@ -1,4 +1,5 @@ export const zhHans = { + clearCacheIfNotTakeEffect: '如果更改没有生效,请尝试清理页面缓存', success: '成功', setCurrFrameAsVideoPoster: '设置当前帧为视频封面', sync: '同步', diff --git a/vue/src/i18n/zh-hant.ts b/vue/src/i18n/zh-hant.ts index fc096d67..de506020 100644 --- a/vue/src/i18n/zh-hant.ts +++ b/vue/src/i18n/zh-hant.ts @@ -1,6 +1,7 @@ import type { IIBI18nMap } from '.' export const zhHant: Partial = { + clearCacheIfNotTakeEffect: '如果更改沒有生效,請嘗試清理頁面緩存', success: '成功', setCurrFrameAsVideoPoster: '設置當前幀為視頻封面', sync: '同步', diff --git a/vue/src/util/file.ts b/vue/src/util/file.ts index 7bd820cb..f41ac732 100644 --- a/vue/src/util/file.ts +++ b/vue/src/util/file.ts @@ -17,7 +17,7 @@ export const toStreamVideoUrl = (file: FileNodeInfo) => `${apiBase.value}/stream_video?path=${encode(file.fullpath)}` export const toVideoCoverUrl = (file: FileNodeInfo) => - (isTauri ? '' : parent.document.location.origin) + `${apiBase.value}/video_cover?path=${encode(file.fullpath)}&t=${encode(file.date)}` + (isTauri ? '' : parent.document.location.origin) + `${apiBase.value}/video_cover?path=${encode(file.fullpath)}&mt=${encode(file.date)}` export type FileTransferData = { path: string[]