=1&&g>=1){c.splice(f-p-g,p+g),f=f-p-g;for(var m=this.diff_main(d,v,!1,s),h=m.length-1;h>=0;h--)c.splice(f,0,m[h]);f+=m.length}g=0,p=0,d="",v="";break}f++}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),f=c,p=2*c,g=new Array(p),d=new Array(p),v=0;vs);S++){for(var x=-S+y;x<=S-w;x+=2){var P=f+x,O;x==-S||x!=S&&g[P-1]l)w+=2;else if(N>u)y+=2;else if(h){var D=f+m-x;if(D>=0&&D=F)return this.diff_bisectSplit_(i,o,O,N,s)}}}for(var R=-S+b;R<=S-C;R+=2){var D=f+R,F;R==-S||R!=S&&d[D-1]l)C+=2;else if(j>u)b+=2;else if(!h){var P=f+m-R;if(P>=0&&P=F)return this.diff_bisectSplit_(i,o,O,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),f=o.substring(0,l),p=i.substring(s),g=o.substring(l),d=this.diff_main(c,f,!1,u),v=this.diff_main(p,g,!1,u);return d.concat(v)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(g){for(var d="",v=0,m=-1,h=s.length;m{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(()=>xv(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>xv(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=Ks("VueDiff");return xe(),gt(u,{class:"diff",mode:"split",theme:ce(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const gX={key:0,class:"hint"},mX={class:"hint-inline"},yX=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}=eq(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=Cv(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,f]=await Promise.all([Sv(Zr(n.left)),Sv(Zr(n.right))]);return{width:Math.max(c.width,f.width),height:Math.max(f.height,c.height)}}),u=Cv(async()=>{const c=l.value;if(!c)return"width";const{height:f,width:p}=c,g=p/f,d=document.body.clientWidth/document.body.clientHeight;return g>d?"width":"height"});return(c,f)=>(xe(),ke(Ie,null,[_e("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[_(ce(wT),{class:"default-theme",onResize:a},{default:Be(()=>[c.left?(xe(),gt(ce(Tv),{key:0},{default:Be(()=>[_(hw,{side:"left","max-edge":ce(u),"container-width":ce(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):tt("",!0),c.right?(xe(),gt(ce(Tv),{key:1},{default:Be(()=>[_(hw,{"max-edge":ce(u),percent:r.value,img:c.right,side:"right","container-width":ce(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):tt("",!0)]),_:1})],512),c.container!=="drawer"?(xe(),ke("div",gX,[_e("div",mX,[_(ce(qq)),vt(" "+Ae(c.$t("scrollDownToComparePrompt")),1)])])):tt("",!0),_(hX,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const bX={class:"actions"},wX=de({__name:"ImgSliDrawer",setup(t){const e=CT(),n=z();return(r,a)=>{const i=Gt,o=z4,s=gB;return xe(),ke(Ie,null,[_(s,{width:"100vw",visible:ce(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>ce(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:Be(()=>[_e("div",bX,[_(i,{onClick:a[0]||(a[0]=l=>ce(e).drawerVisible=!1)},{default:Be(()=>[vt(Ae(r.$t("close")),1)]),_:1}),_(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Be(()=>[vt(Ae(r.$t("fullscreenview")),1)]),_:1}),_(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Be(()=>[ce(e).left&&ce(e).right?(xe(),gt(yX,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:ce(e).left,right:ce(e).right},null,8,["left","right"])):tt("",!0)]),_:1},8,["visible"]),_(KY),_(fX)],64)}}});const CX=ia(wX,[["__scopeId","data-v-65e6ee07"]]),_X=de({__name:"SplitViewTab",setup(t){const e=cn(),n={local:Ln(()=>wn(()=>import("./stackView-90e0323e.js"),["assets/stackView-90e0323e.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/index-5130babf.js","assets/index-80432a0c.css","assets/index-47a4d52c.js","assets/_isIterateeCall-19da1ec8.js","assets/FileItem-c62b10f3.js","assets/FileItem-353a3123.css","assets/MultiSelectKeep-ea31915e.js","assets/MultiSelectKeep-a673b915.css","assets/index-3603af3c.css","assets/stackView-e8eec668.css","assets/index-23c8b8a7.css"])),empty:Ln(()=>wn(()=>import("./emptyStartup-6dd3420f.js"),["assets/emptyStartup-6dd3420f.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/emptyStartup-bbdaaa19.css"])),"global-setting":Ln(()=>wn(()=>import("./globalSetting-5b89fbe3.js"),["assets/globalSetting-5b89fbe3.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/globalSetting-5fd543ed.css","assets/index-23c8b8a7.css","assets/index-3603af3c.css"])),"tag-search-matched-image-grid":Ln(()=>wn(()=>import("./MatchedImageGrid-646995ed.js"),["assets/MatchedImageGrid-646995ed.js","assets/MultiSelectKeep-ea31915e.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/FileItem-c62b10f3.js","assets/FileItem-353a3123.css","assets/index-47a4d52c.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/_isIterateeCall-19da1ec8.js","assets/MultiSelectKeep-a673b915.css","assets/index-3603af3c.css","assets/hook-4227849e.js","assets/MatchedImageGrid-19d3b31e.css"])),"topic-search-matched-image-grid":Ln(()=>wn(()=>import("./MatchedImageGrid-16f21a80.js"),["assets/MatchedImageGrid-16f21a80.js","assets/MultiSelectKeep-ea31915e.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/FileItem-c62b10f3.js","assets/FileItem-353a3123.css","assets/index-47a4d52c.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/_isIterateeCall-19da1ec8.js","assets/MultiSelectKeep-a673b915.css","assets/index-3603af3c.css","assets/hook-4227849e.js","assets/MatchedImageGrid-53718263.css"])),"tag-search":Ln(()=>wn(()=>import("./TagSearch-ec13e7fa.js"),["assets/TagSearch-ec13e7fa.js","assets/searchHistory-f42938f6.js","assets/searchHistory-9e10234a.css","assets/_isIterateeCall-19da1ec8.js","assets/TagSearch-fd9b31e6.css","assets/index-23c8b8a7.css","assets/index-3603af3c.css"])),"fuzzy-search":Ln(()=>wn(()=>import("./SubstrSearch-9fd55bc1.js"),["assets/SubstrSearch-9fd55bc1.js","assets/FileItem-c62b10f3.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/FileItem-353a3123.css","assets/MultiSelectKeep-ea31915e.js","assets/index-47a4d52c.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/_isIterateeCall-19da1ec8.js","assets/MultiSelectKeep-a673b915.css","assets/index-3603af3c.css","assets/hook-4227849e.js","assets/searchHistory-f42938f6.js","assets/searchHistory-9e10234a.css","assets/SubstrSearch-56649a80.css","assets/index-23c8b8a7.css"])),"topic-search":Ln(()=>wn(()=>import("./TopicSearch-88c0bd9d.js"),["assets/TopicSearch-88c0bd9d.js","assets/TopicSearch-242d1bb0.css","assets/index-23c8b8a7.css","assets/index-3603af3c.css"])),"img-sli":Ln(()=>wn(()=>import("./ImgSliPagePane-a56ba321.js"),["assets/ImgSliPagePane-a56ba321.js","assets/ImgSliPagePane-5f5e28b7.css"])),"batch-download":Ln(()=>wn(()=>import("./batchDownload-0a9a2775.js"),["assets/batchDownload-0a9a2775.js","assets/FileItem-c62b10f3.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/FileItem-353a3123.css","assets/index-47a4d52c.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/_isIterateeCall-19da1ec8.js","assets/batchDownload-6b8c6bb5.css"])),"grid-view":Ln(()=>wn(()=>import("./gridView-d93867c4.js"),["assets/gridView-d93867c4.js","assets/FileItem-c62b10f3.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/FileItem-353a3123.css","assets/index-47a4d52c.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/_isIterateeCall-19da1ec8.js","assets/gridView-7100baf1.css"])),"workspace-snapshot":Ln(()=>wn(()=>import("./index-e9cfa018.js"),["assets/index-e9cfa018.js","assets/index-7e587e4d.css"])),"random-image":Ln(()=>wn(()=>import("./randomImage-4389aa2a.js"),["assets/randomImage-4389aa2a.js","assets/FileItem-c62b10f3.js","assets/index-5130babf.js","assets/index-80432a0c.css","assets/FileItem-353a3123.css","assets/index-47a4d52c.js","assets/shortcut-4e374057.js","assets/shortcut-ca4fe815.css","assets/_isIterateeCall-19da1ec8.js","assets/MultiSelectKeep-ea31915e.js","assets/MultiSelectKeep-a673b915.css","assets/index-3603af3c.css","assets/randomImage-a1c3d712.css"]))},r=(o,s,l)=>{var c,f;const u=e.tabList[o];if(l==="add"){const p={type:"empty",key:Ar(),name:ve("emptyStartPage")};u.panes.push(p),u.key=p.key}else{const p=u.panes.findIndex(g=>g.key===s);if(u.key===s&&(u.key=((c=u.panes[p-1])==null?void 0:c.key)??((f=u.panes[1])==null?void 0:f.key)),u.panes.splice(p,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const g=e.createEmptyPane();e.tabList.push({panes:[g],key:g.key,id:Ar()})}}};_v("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();me(()=>e.tabList,async()=>{var o;await qe(),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 f=u;f.setAttribute("draggable","true"),f.setAttribute("tabIdx",l.toString()),f.setAttribute("paneIdx",c.toString()),f.ondragend=()=>{e.dragingTab=void 0},f.ondragstart=p=>{e.dragingTab={tabIdx:l,paneIdx:c},p.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=ri(()=>so.emit("returnToIIB"),100);return wG(async()=>{const o=window.parent;if(!await uq(()=>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()})}),me(YG(),o=>o&&i()),(o,s)=>{const l=ku,u=ns;return xe(),ke("div",{ref_key:"container",ref:a},[_(ce(wT),{class:"default-theme"},{default:Be(()=>[(xe(!0),ke(Ie,null,Ir(ce(e).tabList,(c,f)=>(xe(),gt(ce(Tv),{key:c.id},{default:Be(()=>[_(Bq,{tabIdx:f},{default:Be(()=>[_(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":p=>c.key=p,onEdit:(p,g)=>r(f,p,g)},{default:Be(()=>[(xe(!0),ke(Ie,null,Ir(c.panes,(p,g)=>(xe(),gt(l,{key:p.key,tab:p.name,class:"pane"},{default:Be(()=>[(xe(),gt(Pk(n[p.type]),ep({tabIdx:f,paneKey:p.key,paneIdx:g},p),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),_(CX)],512)}}});const SX=ia(_X,[["__scopeId","data-v-4413a897"]]);const OT=t=>(fo("data-v-57eaf5c3"),t=t(),vo(),t),xX={class:"organize-jobs-wrapper"},OX=OT(()=>_e("span",{class:"fab-icon"},"📁",-1)),PX={key:1,class:"organize-jobs-panel"},TX={class:"panel-header"},EX={class:"panel-title"},kX={class:"panel-header-right"},AX={class:"job-header"},IX=OT(()=>_e("span",{class:"job-icon"},"📁",-1)),MX={class:"job-folders"},NX={class:"job-progress"},$X={class:"stage-label"},FX={class:"preview-ready-hint"},RX={class:"stage-label"},DX={key:0,class:"current-file"},LX={class:"result-summary success"},zX={class:"result-summary error"},BX=de({__name:"OrganizeJobsPanel",emits:["open-preview"],setup(t,{emit:e}){const n=cn(),r=p=>!p||p.length===0?"":p.length===1?p[0].split(/[/\\]/).pop()||p[0]:`${p.length} ${ve("folders")}`,a=p=>({queued:"default",running:"processing",preview_ready:"warning",moving:"processing",done:"success",error:"error"})[p]||"default",i=p=>({queued:ve("queued"),running:ve("analyzing"),preview_ready:ve("waitingConfirm"),moving:ve("moving"),done:ve("completed"),error:ve("error")})[p]||p,o=p=>p?{embedding:ve("generatingEmbeddings"),clustering:ve("clusteringAnalysis"),titling:ve("generatingTitles"),preview_ready:ve("previewReady"),moving:ve("movingFiles"),done:ve("completed")}[p]||p:"",s=p=>{var g;return["queued","running"].includes(p.status)&&["embedding","clustering","titling"].includes(((g=p.progress)==null?void 0:g.stage)||"")},l=p=>{if(!p)return 0;const{stage:g,embedded_done:d,to_embed:v,clusters_done:m,clusters_total:h}=p;return g==="embedding"&&v>0?Math.round(d/v*40):g==="clustering"?50:g==="titling"&&h>0?60+Math.round(m/h*40):0},u=p=>{if(!p)return 0;const{moved_done:g,moved_total:d}=p;return d>0?Math.round(g/d*100):0},c=p=>{const g=JSON.parse(JSON.stringify(p));console.log("openPreview called","job_id:",g.job_id,"status:",g.status,"preview:",g.preview?`has preview (${g.preview.total_files} files)`:"no preview"),e("open-preview",g)},f=p=>{n.removeOrganizeJob(p)};return(p,g)=>{const d=Yl,v=Gt,m=Qx,h=Y7;return xe(),ke("div",xX,[ce(n).activeOrganizeJobs.length&&!ce(n).showOrganizePanel?(xe(),ke("div",{key:0,class:"organize-jobs-fab",onClick:g[0]||(g[0]=y=>ce(n).showOrganizePanel=!0)},[OX,_(d,{count:ce(n).activeOrganizeJobs.length,offset:[-2,2]},null,8,["count"])])):tt("",!0),ce(n).activeOrganizeJobs.length&&ce(n).showOrganizePanel?(xe(),ke("div",PX,[_e("div",TX,[_e("span",EX,Ae(ce(ve)("organizeJobs")),1),_e("div",kX,[_(d,{count:ce(n).activeOrganizeJobs.length},null,8,["count"]),_(v,{type:"text",size:"small",class:"close-btn",onClick:g[1]||(g[1]=y=>ce(n).showOrganizePanel=!1)},{default:Be(()=>[vt("✕")]),_:1})])]),(xe(!0),ke(Ie,null,Ir(ce(n).activeOrganizeJobs,y=>{var w,b,C,S,x,P,O,N;return xe(),ke("div",{key:y.job_id,class:"job-item"},[_e("div",AX,[IX,_e("span",MX,Ae(r(y.folder_paths)),1),_(m,{color:a(y.status)},{default:Be(()=>[vt(Ae(i(y.status)),1)]),_:2},1032,["color"])]),_e("div",NX,[s(y)?(xe(),ke(Ie,{key:0},[_e("div",$X,Ae(o((w=y.progress)==null?void 0:w.stage)),1),_(h,{percent:l(y.progress),status:y.status==="error"?"exception":"active",size:"small"},null,8,["percent","status"])],64)):tt("",!0),y.status==="preview_ready"?(xe(),ke(Ie,{key:1},[_e("div",FX,Ae(ce(ve)("organizePreviewReady",{files:((b=y.preview)==null?void 0:b.total_files)??0,clusters:((S=(C=y.preview)==null?void 0:C.clusters)==null?void 0:S.length)??0})),1),_(v,{type:"primary",size:"small",onClick:D=>c(y)},{default:Be(()=>[vt(Ae(ce(ve)("viewPreview")),1)]),_:2},1032,["onClick"])],64)):tt("",!0),((x=y.progress)==null?void 0:x.stage)==="moving"?(xe(),ke(Ie,{key:2},[_e("div",RX,Ae(ce(ve)("movingFiles")),1),_(h,{percent:u(y.progress),size:"small",status:"active"},null,8,["percent"]),y.progress.current_file?(xe(),ke("div",DX,Ae(y.progress.current_file),1)):tt("",!0)],64)):tt("",!0),y.status==="done"?(xe(),ke(Ie,{key:3},[_e("div",LX,Ae(ce(ve)("organizeComplete",{moved:((P=y.progress)==null?void 0:P.moved_done)??0,folders:((N=(O=y.progress)==null?void 0:O.created_folders)==null?void 0:N.length)??0})),1),_(v,{size:"small",onClick:D=>f(y.job_id)},{default:Be(()=>[vt(Ae(ce(ve)("close")),1)]),_:2},1032,["onClick"])],64)):tt("",!0),y.status==="error"?(xe(),ke(Ie,{key:4},[_e("div",zX,Ae(ce(ve)("organizeFailed")),1),_(v,{size:"small",onClick:D=>f(y.job_id)},{default:Be(()=>[vt(Ae(ce(ve)("close")),1)]),_:2},1032,["onClick"])],64)):tt("",!0)])])}),128))])):tt("",!0)])}}});const jX=ia(BX,[["__scopeId","data-v-57eaf5c3"]]);const VX=async t=>(await ze.value.post("/db/organize_files_start",t)).data,PT=async t=>(await ze.value.get("/db/organize_files_status",{params:{job_id:t}})).data,WX=async t=>(await ze.value.post("/db/organize_files_confirm",t)).data,TT=t=>(fo("data-v-670c364a"),t=t(),vo(),t),HX={class:"organize-preview"},UX=["src"],KX={class:"preview-header"},GX={class:"summary"},qX={class:"dest-folder"},YX={class:"cluster-header"},JX=TT(()=>_e("span",{class:"folder-icon"},"📁",-1)),XX={key:0,class:"folder-name"},ZX={class:"file-count"},QX={class:"file-mappings"},eZ=["onMouseenter"],tZ=TT(()=>_e("span",{class:"arrow"},"→",-1)),nZ=["title"],rZ=["onClick"],aZ={class:"preview-actions"},iZ={class:"action-summary"},oZ={key:0},sZ=de({__name:"OrganizePreview",props:{preview:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,r=z([]),a=lt(new Set),i=lt(new Map),o=lt(new Set),s=z(null),l=z(""),u=z(!1),c=z(""),f=lt({x:0,y:0});let p=null;const g=B(()=>{const F=[...n.preview.clusters];return n.preview.noise.size>0&&F.push(n.preview.noise),F}),d=F=>i.get(F.cluster_id)||F.suggested_folder_name,v=F=>F.split(/[/\\]/).pop()||F,m=F=>`${vi.value}/image-thumbnail?path=${encodeURIComponent(F)}&t=${Date.now()}&size=512x512`,h=(F,R)=>{var k;const j=((k=R.split(".").pop())==null?void 0:k.toLowerCase())||"";["jpg","jpeg","png","gif","webp","bmp","ico","svg"].includes(j)&&(p&&clearTimeout(p),p=setTimeout(()=>{c.value=m(R),w(F)},300))},y=()=>{p&&(clearTimeout(p),p=null),c.value=""},w=F=>{f.x=F.clientX+20,f.y=F.clientY-100,f.y<10&&(f.y=10)},b=F=>o.has(F.cluster_id)?F.file_mappings:F.file_mappings.slice(0,10),C=B(()=>g.value.filter(F=>!a.has(F.cluster_id)).reduce((F,R)=>F+R.file_mappings.filter(j=>j.dest_path!==j.src_path).length,0)),S=B(()=>g.value.filter(F=>a.has(F.cluster_id)).reduce((F,R)=>F+R.size,0)),x=F=>{s.value=F.cluster_id,l.value=d(F)},P=()=>{s.value&&l.value.trim()&&i.set(s.value,l.value.trim()),s.value=null,l.value=""},O=F=>{a.has(F)?a.delete(F):a.add(F)},N=()=>{e("cancel")},D=async()=>{u.value=!0;try{const F=[];i.forEach((R,j)=>{F.push({cluster_id:j,new_folder_name:R})}),await WX({job_id:n.preview.job_id,folder_edits:F.length>0?F:void 0,skip_cluster_ids:a.size>0?Array.from(a):void 0}),At.success(ve("startMovingFiles")),e("confirmed")}catch(F){At.error(`${ve("confirmFailed")}: ${F.message||F}`)}finally{u.value=!1}};return(F,R)=>{const j=Ft,L=Qx,k=Gt,T=s9,I=Au,$=rs;return xe(),ke("div",HX,[c.value?(xe(),ke("div",{key:0,class:"image-preview-tooltip",style:Fn({top:f.y+"px",left:f.x+"px"})},[_e("img",{src:c.value,onError:R[0]||(R[0]=W=>c.value="")},null,40,UX)],4)):tt("",!0),_e("div",KX,[_e("h3",null,Ae(ce(ve)("smartOrganizePreview")),1),_e("div",GX,Ae(ce(ve)("organizePreviewSummary",{files:F.preview.total_files,folders:F.preview.clusters.length+(F.preview.noise.size>0?1:0)})),1),_e("div",qX,[vt(Ae(ce(ve)("destFolder"))+": ",1),_e("code",null,Ae(F.preview.dest_folder),1)])]),_($,{activeKey:r.value,"onUpdate:activeKey":R[5]||(R[5]=W=>r.value=W),class:"cluster-list"},{default:Be(()=>[(xe(!0),ke(Ie,null,Ir(g.value,W=>(xe(),gt(I,{key:W.cluster_id,class:on({skipped:a.has(W.cluster_id)})},{header:Be(()=>[_e("div",YX,[JX,s.value!==W.cluster_id?(xe(),ke("span",XX,Ae(d(W)),1)):(xe(),gt(j,{key:1,value:l.value,"onUpdate:value":R[1]||(R[1]=G=>l.value=G),size:"small",style:{width:"200px"},onPressEnter:P,onBlur:P,onClick:R[2]||(R[2]=sn(()=>{},["stop"]))},null,8,["value"])),_e("span",ZX,"("+Ae(W.size)+" "+Ae(ce(ve)("files"))+")",1),W.cluster_id==="__noise__"?(xe(),gt(L,{key:2,color:"orange"},{default:Be(()=>[vt(Ae(ce(ve)("unsorted")),1)]),_:1})):tt("",!0)])]),extra:Be(()=>[_(T,{onClick:R[3]||(R[3]=sn(()=>{},["stop"]))},{default:Be(()=>[_(k,{size:"small",onClick:G=>x(W)},{default:Be(()=>[vt(Ae(ce(ve)("rename")),1)]),_:2},1032,["onClick"]),_(k,{size:"small",type:a.has(W.cluster_id)?"primary":"default",onClick:G=>O(W.cluster_id)},{default:Be(()=>[vt(Ae(a.has(W.cluster_id)?ce(ve)("cancelSkip"):ce(ve)("skip")),1)]),_:2},1032,["type","onClick"])]),_:2},1024)]),default:Be(()=>[_e("div",QX,[(xe(!0),ke(Ie,null,Ir(b(W),G=>(xe(),ke("div",{key:G.src_path,class:"file-mapping"},[_e("span",{class:"src-path",onMouseenter:q=>h(q,G.src_path),onMouseleave:y,onMousemove:R[4]||(R[4]=q=>w(q))},Ae(v(G.src_path)),41,eZ),tZ,_e("span",{class:"dest-path",title:G.dest_path},Ae(d(W))+"/"+Ae(v(G.src_path)),9,nZ)]))),128)),W.file_mappings.length>10&&!o.has(W.cluster_id)?(xe(),ke("div",{key:0,class:"show-more",onClick:G=>o.add(W.cluster_id)},Ae(ce(ve)("showMore",{count:W.file_mappings.length-10})),9,rZ)):tt("",!0)])]),_:2},1032,["class"]))),128))]),_:1},8,["activeKey"]),_e("div",aZ,[_e("div",iZ,[vt(Ae(ce(ve)("willMove",{count:C.value}))+" ",1),a.size?(xe(),ke("span",oZ,"("+Ae(ce(ve)("skipped",{count:S.value}))+")",1)):tt("",!0)]),_(T,null,{default:Be(()=>[_(k,{onClick:N},{default:Be(()=>[vt(Ae(ce(ve)("cancel")),1)]),_:1}),_(k,{type:"primary",loading:u.value,onClick:D},{default:Be(()=>[vt(Ae(ce(ve)("confirmOrganize")),1)]),_:1},8,["loading"])]),_:1})])])}}});const lZ=ia(sZ,[["__scopeId","data-v-670c364a"]]);function Nne(t){const e=cn();e.smartOrganizeConfigPath=t,e.showSmartOrganizeConfig=!0}async function uZ(t,e){const n=cn();try{const r={folder_paths:t,lang:n.lang,dest_folder:e.destFolder||void 0,min_cluster_size:e.minClusterSize,action:e.action,recursive:e.recursive},{job_id:a}=await VX(r);return n.addOrganizeJob({job_id:a,status:"queued",progress:{stage:"embedding",embedded_done:0,to_embed:0,clusters_done:0,clusters_total:0,moved_done:0,moved_total:0,current_file:"",created_folders:[],errors:[]},startedAt:Date.now(),folder_paths:t}),At.success(ve("organizeJobStarted")),cZ(a,t),a}catch(r){throw At.error(`${ve("error")}: ${r.message||r}`),r}}async function cZ(t,e){const n=cn(),r=2e3,a=async()=>{var i,o;try{const s=await PT(t);console.log("Poll response:","status:",s.status,"stage:",(i=s.progress)==null?void 0:i.stage,"preview:",s.preview?`yes (${s.preview.total_files} files, ${(o=s.preview.clusters)==null?void 0:o.length} clusters)`:"no");const l={status:s.status,progress:s.progress};s.preview&&(l.preview=s.preview,console.log("Preview data received from API:",s.preview.total_files,"files")),n.updateOrganizeJob(t,l),["done","error","preview_ready"].includes(s.status)?(console.log("Poll stopped at status:",s.status),s.status==="error"?console.error("Organize job failed:",s.error):s.status==="preview_ready"?console.log("Preview ready - user can now view and confirm"):s.status==="done"&&(console.log("Organize done, emitting refresh event"),so.emit("refreshFileView",{paths:e}))):setTimeout(a,r)}catch(s){console.error("Poll organize status error:",s),setTimeout(a,r*2)}};a()}const ET=t=>(fo("data-v-ba1ac3fc"),t=t(),vo(),t),fZ={class:"info-panel"},dZ={class:"info-row"},vZ={class:"info-label"},pZ={class:"info-path"},hZ={class:"info-tips"},gZ=ET(()=>_e("span",{class:"separator"},"|",-1)),mZ=ET(()=>_e("span",{class:"separator"},"|",-1)),yZ={class:"form-item-hint"},bZ={class:"form-item-hint"},wZ={class:"form-item-hint"},CZ={key:0,class:"loading-status"},_Z={style:{"margin-left":"8px"}},SZ=de({__name:"SmartOrganizeConfigModal",setup(t){const e=cn(),n=z(!1),r=z(""),a=lt({destFolder:"",recursive:!1,minClusterSize:3,action:"move"});me(()=>e.showSmartOrganizeConfig,s=>{s&&(a.destFolder="",a.recursive=!1,a.minClusterSize=3,a.action="move",n.value=!1,r.value="")});const i=async()=>{const s=e.smartOrganizeConfigPath;try{n.value=!0,r.value=ve("updatingIndex"),await eJ({folder:s,recursive:a.recursive}),r.value=ve("startingOrganizeJob"),await uZ([s],{...a,destFolder:a.destFolder||s}),e.showSmartOrganizeConfig=!1}catch(l){console.error("Smart organize failed:",l)}finally{n.value=!1,r.value=""}},o=()=>{n.value||(e.showSmartOrganizeConfig=!1)};return(s,l)=>{const u=Ft,c=Yx,f=f9,p=Lj,g=Wn,d=vx,v=pa,m=Wi,h=Gt,y=xt;return xe(),gt(y,{visible:ce(e).showSmartOrganizeConfig,"onUpdate:visible":l[4]||(l[4]=w=>ce(e).showSmartOrganizeConfig=w),title:ce(ve)("smartOrganizeConfig"),width:"70vw",onOk:i,onCancel:o,confirmLoading:n.value},{footer:Be(()=>[_(h,{onClick:o,disabled:n.value},{default:Be(()=>[vt(Ae(ce(ve)("organizeCancel")),1)]),_:1},8,["disabled"]),_(h,{type:"primary",onClick:i,loading:n.value},{default:Be(()=>[vt(Ae(ce(ve)("organizeStartTask")),1)]),_:1},8,["loading"])]),default:Be(()=>[_e("div",fZ,[_e("div",dZ,[_e("span",vZ,Ae(ce(ve)("organizeSourceFolder"))+":",1),_e("code",pZ,Ae(ce(e).smartOrganizeConfigPath),1)]),_e("div",hZ,[_e("span",null,Ae(ce(ve)("smartOrganizeNotice")),1),gZ,_e("span",null,Ae(ce(ve)("topicSearchRequirementsOpenai")),1),mZ,_e("span",null,Ae(ce(ve)("topicSearchRequirementsDepsPython")),1)])]),_(v,{"label-col":{span:8},"wrapper-col":{span:16}},{default:Be(()=>[_(c,{label:ce(ve)("organizeTargetFolder")},{default:Be(()=>[_(u,{value:a.destFolder,"onUpdate:value":l[0]||(l[0]=w=>a.destFolder=w),placeholder:ce(e).smartOrganizeConfigPath,disabled:n.value},null,8,["value","placeholder","disabled"]),_e("div",yZ,Ae(ce(ve)("organizeTargetFolderDesc")),1)]),_:1},8,["label"]),_(c,{label:ce(ve)("organizeRecursive")},{default:Be(()=>[_(f,{checked:a.recursive,"onUpdate:checked":l[1]||(l[1]=w=>a.recursive=w),disabled:n.value},null,8,["checked","disabled"]),_e("div",bZ,Ae(ce(ve)("organizeRecursiveDesc")),1)]),_:1},8,["label"]),_(c,{label:ce(ve)("organizeMinClusterSize")},{default:Be(()=>[_(p,{value:a.minClusterSize,"onUpdate:value":l[2]||(l[2]=w=>a.minClusterSize=w),min:2,max:20,style:{width:"100px"},disabled:n.value},null,8,["value","disabled"]),_e("div",wZ,Ae(ce(ve)("organizeMinClusterSizeDesc")),1)]),_:1},8,["label"]),_(c,{label:ce(ve)("organizeAction")},{default:Be(()=>[_(d,{value:a.action,"onUpdate:value":l[3]||(l[3]=w=>a.action=w),disabled:n.value},{default:Be(()=>[_(g,{value:"move"},{default:Be(()=>[vt(Ae(ce(ve)("organizeActionMove")),1)]),_:1}),_(g,{value:"copy"},{default:Be(()=>[vt(Ae(ce(ve)("organizeActionCopy")),1)]),_:1})]),_:1},8,["value","disabled"])]),_:1},8,["label"])]),_:1}),n.value?(xe(),ke("div",CZ,[_(m,{size:"small"}),_e("span",_Z,Ae(r.value),1)])):tt("",!0)]),_:1},8,["visible","title","confirmLoading"])}}});const xZ=ia(SZ,[["__scopeId","data-v-ba1ac3fc"]]),OZ=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:Ar(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,sT(),cq(["action","path","mode"]);break}}};function gw(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!or(t)}const kT="app.conf.json",vs=z(),AT=()=>zs.writeFile(kT,JSON.stringify(Ve(vs.value),null,4)),PZ=de({setup(){const t=async()=>{const e=await GP({directory:!0});if(typeof e=="string"){if(!await zs.exists(`${e}/config.json`))return At.error(ve("tauriLaunchConfMessages.configNotFound"));if(!await zs.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return At.error(ve("tauriLaunchConfMessages.folderNotFound"));vs.value.sdwebui_dir=e,At.info(ve("tauriLaunchConfMessages.configCompletedMessage")),await AT(),await Bc("shutdown_api_server_command"),await ai(1500),await HP()}};return()=>{let e,n;return _("div",{style:{padding:"32px 0"}},[_("div",{style:{padding:"16px 0"}},[_("h2",null,[ve("tauriLaunchConf.readSdWebuiConfigTitle")]),_("p",null,[ve("tauriLaunchConf.readSdWebuiConfigDescription")]),_(Gt,{onClick:t,type:"primary"},gw(e=ve("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),_("div",{style:{padding:"16px 0"}},[_("h2",null,[ve("tauriLaunchConf.skipThisConfigTitle")]),_("p",null,[ve("tauriLaunchConf.skipThisConfigDescription")]),_(Gt,{type:"primary",onClick:xt.destroyAll},gw(n=ve("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),TZ=async()=>{try{vs.value=JSON.parse(await zs.readTextFile(kT))}catch{}vs.value||(vs.value={sdwebui_dir:""},await AT(),xt.info({title:ve("tauriLaunchConfMessages.firstTimeUserTitle"),content:_(PZ,null,null),width:"80vw",okText:ve("tauriLaunchConf.skipButton"),okButtonProps:{onClick:xt.destroyAll}}))},EZ=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=Hc();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=Ar()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:sT,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 f=t.tabList.findIndex(p=>p.panes.some(g=>g.key===o));return()=>so.emit("closeTabPane",f,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)}},kZ={key:0,class:"moving-files-overlay"},AZ={class:"moving-files-content"},IZ={class:"moving-text"},MZ={class:"moving-progress"},NZ=de({__name:"App",setup(t){const e=cn(),n=$q(),r=uT(),a=z(!1),i=z(null),o=z(!1),s=z({moved:0,total:0}),l=v=>{console.log("handleOpenOrganizePreview received:","job_id:",v.job_id,"status:",v.status,"preview:",v.preview?`yes (${v.preview.total_files} files)`:"no"),v.preview?(i.value=v.preview,a.value=!0,console.log("Modal opened with preview data")):console.warn("No preview data in job - job keys:",Object.keys(v))},u=async()=>{var y,w;a.value=!1;const v=(y=i.value)==null?void 0:y.job_id,m=((w=e.getOrganizeJob(v||""))==null?void 0:w.folder_paths)||[];if(i.value=null,!v)return;o.value=!0,s.value={moved:0,total:0};const h=async()=>{var b,C;try{const S=await PT(v);S.status==="moving"?(s.value={moved:((b=S.progress)==null?void 0:b.moved_done)||0,total:((C=S.progress)==null?void 0:C.moved_total)||0},setTimeout(h,500)):S.status==="done"?(o.value=!1,e.removeOrganizeJob(v),At.success(ve("organizeComplete")),so.emit("refreshFileView",{paths:m})):S.status==="error"?(o.value=!1,At.error(`${ve("organizeFailed")}: ${S.error}`)):setTimeout(h,500)}catch(S){console.error("Poll moving status error:",S),setTimeout(h,1e3)}};h()},c=()=>{a.value=!1,i.value=null},f=bT.filter(v=>!["tabListHistoryRecord","recent"].includes(v));let p=null;const g=I1(async()=>{e.$subscribe(ri(async()=>{var m;if(((m=e.conf)==null?void 0:m.is_readonly)===!0)return;const v={};f.forEach(h=>{v[h]=nr(e[h])}),JSON.stringify(v)!==JSON.stringify(p)&&(console.log("save global setting",v),await fT("global",v),p=nr(v))},500))}),d=I1(async()=>{var m,h;await ai(100);const v=e.defaultInitinalPage;if(v!=="empty")if(v==="last-workspace-state"){const y=(m=e.tabListHistoryRecord)==null?void 0:m[1];if(!(y!=null&&y.tabs))return;e.tabList=nr(y.tabs),At.success(ve("restoreLastWorkspaceStateSuccess"))}else{const y=(h=v.split("_"))==null?void 0:h[2],w=n.snapshots.find(b=>b.id===y);if(!(w!=null&&w.tabs))return;e.tabList=nr(w.tabs),At.success(ve("restoreWorkspaceSnapshotSuccess"))}});return _v("updateGlobalSetting",async()=>{var y,w;await vG(),console.log(Du.value);const v=await gq();e.conf=v;const m=await ew(v);e.quickMovePaths=m.filter(b=>{var C,S;return(S=(C=b==null?void 0:b.dir)==null?void 0:C.trim)==null?void 0:S.call(C)});const h=(w=(y=e==null?void 0:e.conf)==null?void 0:y.app_fe_setting)==null?void 0:w.global;h&&(console.log("restoreFeGlobalSetting",h),p=nr(h),f.forEach(b=>{const C=h[b];C!==void 0&&(e[b]=C)})),g(),d(),EZ(e),OZ(e)}),_v("returnToIIB",async()=>{const v=e.conf;if(!v)return;const m=v.global_setting;if(!m.outdir_txt2img_samples&&!m.outdir_img2img_samples)return;const h=new Set(e.quickMovePaths.map(w=>w.key));if(h.has("outdir_txt2img_samples")&&h.has("outdir_img2img_samples"))return;const y=await ew(v);e.quickMovePaths=y.filter(w=>{var b,C;return(C=(b=w==null?void 0:w.dir)==null?void 0:b.trim)==null?void 0:C.call(b)})}),me(()=>e.computedTheme==="dark",async v=>{await ai();const m=document.getElementsByTagName("html")[0];if(v){document.body.classList.add("dark");const h=document.createElement("style"),{default:y}=await wn(()=>import("./antd.dark-35e9b327.js"),[]);h.innerHTML=y,h.setAttribute("antd-dark",""),m.appendChild(h)}else document.body.classList.remove("dark"),Array.from(m.querySelectorAll("style[antd-dark]")).forEach(h=>h.remove())},{immediate:!0}),me(()=>e.previewBgOpacity,v=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${v})`)},{immediate:!0}),He(async()=>{rT&&TZ(),so.emit("updateGlobalSetting")}),(v,m)=>{const h=$n,y=xt,w=Wi;return xe(),ke(Ie,null,[_(h,{loading:!ce(r).isIdle},{default:Be(()=>[_(SX)]),_:1},8,["loading"]),_(jX,{onOpenPreview:l}),_(y,{visible:a.value,"onUpdate:visible":m[0]||(m[0]=b=>a.value=b),title:ce(ve)("smartOrganizePreview"),footer:null,width:800,destroyOnClose:!0,zIndex:2e3},{default:Be(()=>[i.value?(xe(),gt(lZ,{key:0,preview:i.value,onCancel:c,onConfirmed:u},null,8,["preview"])):tt("",!0)]),_:1},8,["visible","title"]),_(xZ),o.value?(xe(),ke("div",kZ,[_e("div",AZ,[_(w,{size:"large"}),_e("div",IZ,Ae(ce(ve)("movingFiles")),1),_e("div",MZ,Ae(s.value.moved)+" / "+Ae(s.value.total),1)])])):tt("",!0)],64)}}});function $Z(t){return typeof t=="object"&&t!==null}function mw(t,e){return t=$Z(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 FZ(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function RZ(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 DZ(t,e){return e.reduce((n,r)=>{const a=r.split(".");return RZ(n,a,FZ(t,a))},{})}function yw(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 bw(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?DZ(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function LZ(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=>mw(o,t)):[mw(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:f=null,debug:p=!1})=>{var g;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((g=t.key)!=null?g:d=>d)(c),paths:f,debug:p}});a.$persist=()=>{i.forEach(o=>{bw(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),yw(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),yw(a,o),l==null||l(e),a.$subscribe((u,c)=>{bw(c,o)},{detached:!0})})}}var zZ=LZ(),BZ=Object.defineProperty,jZ=Object.defineProperties,VZ=Object.getOwnPropertyDescriptors,ww=Object.getOwnPropertySymbols,WZ=Object.prototype.hasOwnProperty,HZ=Object.prototype.propertyIsEnumerable,Cw=(t,e,n)=>e in t?BZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ev=(t,e)=>{for(var n in e||(e={}))WZ.call(e,n)&&Cw(t,n,e[n]);if(ww)for(var n of ww(e))HZ.call(e,n)&&Cw(t,n,e[n]);return t},UZ=(t,e)=>jZ(t,VZ(e));function KZ(t){return Gu()?(Rv(t),!0):!1}const IT=typeof window<"u";function MT(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const GZ=t=>t();function qZ(t,e={}){let n,r;return i=>{const o=ce(t),s=ce(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 YZ(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=ce(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 Yo(t,e=200,n=!0,r=!0){return MT(YZ(e,n,r),t)}var _w=Object.getOwnPropertySymbols,JZ=Object.prototype.hasOwnProperty,XZ=Object.prototype.propertyIsEnumerable,ZZ=(t,e)=>{var n={};for(var r in t)JZ.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&_w)for(var r of _w(t))e.indexOf(r)<0&&XZ.call(t,r)&&(n[r]=t[r]);return n};function QZ(t,e,n={}){const r=n,{eventFilter:a=GZ}=r,i=ZZ(r,["eventFilter"]);return me(t,MT(a,e),i)}var eQ=Object.defineProperty,tQ=Object.defineProperties,nQ=Object.getOwnPropertyDescriptors,Bu=Object.getOwnPropertySymbols,NT=Object.prototype.hasOwnProperty,$T=Object.prototype.propertyIsEnumerable,Sw=(t,e,n)=>e in t?eQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rQ=(t,e)=>{for(var n in e||(e={}))NT.call(e,n)&&Sw(t,n,e[n]);if(Bu)for(var n of Bu(e))$T.call(e,n)&&Sw(t,n,e[n]);return t},aQ=(t,e)=>tQ(t,nQ(e)),iQ=(t,e)=>{var n={};for(var r in t)NT.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Bu)for(var r of Bu(t))e.indexOf(r)<0&&$T.call(t,r)&&(n[r]=t[r]);return n};function FT(t,e,n={}){const r=n,{debounce:a=0}=r,i=iQ(r,["debounce"]);return QZ(t,e,aQ(rQ({},i),{eventFilter:qZ(a)}))}function oQ(t){var e;const n=ce(t);return(e=n==null?void 0:n.$el)!=null?e:n}const sQ=IT?window:void 0,xw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ow="__vueuse_ssr_handlers__";xw[Ow]=xw[Ow]||{};var Pw=Object.getOwnPropertySymbols,lQ=Object.prototype.hasOwnProperty,uQ=Object.prototype.propertyIsEnumerable,cQ=(t,e)=>{var n={};for(var r in t)lQ.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Pw)for(var r of Pw(t))e.indexOf(r)<0&&uQ.call(t,r)&&(n[r]=t[r]);return n};function fQ(t,e,n={}){const r=n,{window:a=sQ}=r,i=cQ(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=me(()=>oQ(t),f=>{l(),s&&a&&f&&(o=new ResizeObserver(e),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return KZ(c),{isSupported:s,stop:c}}var Tw,Ew;IT&&(window!=null&&window.navigator)&&((Tw=window==null?void 0:window.navigator)!=null&&Tw.platform)&&/iP(ad|hone|od)/.test((Ew=window==null?void 0:window.navigator)==null?void 0:Ew.platform);var hg={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,f=this.diff_commonPrefix(i,o),p=i.substring(0,f);i=i.substring(f),o=o.substring(f),f=this.diff_commonSuffix(i,o);var g=i.substring(i.length-f);i=i.substring(0,i.length-f),o=o.substring(0,o.length-f);var d=this.diff_compute_(i,o,c,u);return p&&d.unshift(new e.Diff(a,p)),g&&d.push(new e.Diff(a,g)),this.diff_cleanupMerge(d),d},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,f=i.length>o.length?o:i,p=c.indexOf(f);if(p!=-1)return u=[new e.Diff(r,c.substring(0,p)),new e.Diff(a,f),new e.Diff(r,c.substring(p+f.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(f.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var g=this.diff_halfMatch_(i,o);if(g){var d=g[0],v=g[1],m=g[2],h=g[3],y=g[4],w=this.diff_main(d,m,s,l),b=this.diff_main(v,h,s,l);return w.concat([new e.Diff(a,y)],b)}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 f=0,p=0,g=0,d="",v="";f=1&&g>=1){c.splice(f-p-g,p+g),f=f-p-g;for(var m=this.diff_main(d,v,!1,s),h=m.length-1;h>=0;h--)c.splice(f,0,m[h]);f+=m.length}g=0,p=0,d="",v="";break}f++}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),f=c,p=2*c,g=new Array(p),d=new Array(p),v=0;vs);S++){for(var x=-S+y;x<=S-w;x+=2){var P=f+x,O;x==-S||x!=S&&g[P-1]l)w+=2;else if(N>u)y+=2;else if(h){var D=f+m-x;if(D>=0&&D=F)return this.diff_bisectSplit_(i,o,O,N,s)}}}for(var R=-S+b;R<=S-C;R+=2){var D=f+R,F;R==-S||R!=S&&d[D-1]l)C+=2;else if(j>u)b+=2;else if(!h){var P=f+m-R;if(P>=0&&P=F)return this.diff_bisectSplit_(i,o,O,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),f=o.substring(0,l),p=i.substring(s),g=o.substring(l),d=this.diff_main(c,f,!1,u),v=this.diff_main(p,g,!1,u);return d.concat(v)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(g){for(var d="",v=0,m=-1,h=s.length;ml?i=i.substring(s-l):so.length?i:o,l=i.length>o.length?o:i;if(s.length<4||2*l.length=w.length?[O,N,D,F,P]:null}var f=c(s,l,Math.ceil(s.length/4)),p=c(s,l,Math.ceil(s.length/2)),g;if(!f&&!p)return null;p?f?g=f[4].length>p[4].length?f:p:g=p:g=f;var d,v,m,h;i.length>o.length?(d=g[0],v=g[1],m=g[2],h=g[3]):(m=g[0],h=g[1],d=g[2],v=g[3]);var y=g[4];return[d,v,m,h,y]},e.prototype.diff_cleanupSemantic=function(i){for(var o=!1,s=[],l=0,u=null,c=0,f=0,p=0,g=0,d=0;c0?s[l-1]:-1,f=0,p=0,g=0,d=0,u=null,o=!0)),c++;for(o&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(h>=v.length/2||h>=m.length/2)&&(i.splice(c,0,new e.Diff(a,m.substring(0,h))),i[c-1][1]=v.substring(0,v.length-h),i[c+1][1]=m.substring(h),c++):(y>=v.length/2||y>=m.length/2)&&(i.splice(c,0,new e.Diff(a,v.substring(0,y))),i[c-1][0]=r,i[c-1][1]=m.substring(0,m.length-y),i[c+1][0]=n,i[c+1][1]=v.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function o(y,w){if(!y||!w)return 6;var b=y.charAt(y.length-1),C=w.charAt(0),S=b.match(e.nonAlphaNumericRegex_),x=C.match(e.nonAlphaNumericRegex_),P=S&&b.match(e.whitespaceRegex_),O=x&&C.match(e.whitespaceRegex_),N=P&&b.match(e.linebreakRegex_),D=O&&C.match(e.linebreakRegex_),F=N&&y.match(e.blanklineEndRegex_),R=D&&w.match(e.blanklineStartRegex_);return F||R?5:N||D?4:S&&!P&&O?3:P||O?2:S||x?1:0}for(var s=1;s=m&&(m=h,g=l,d=u,v=c)}i[s-1][1]!=g&&(g?i[s-1][1]=g:(i.splice(s-1,1),s--),i[s][1]=d,v?i[s+1][1]=v:(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,f=!1,p=!1,g=!1,d=!1;c0?s[l-1]:-1,g=d=!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="",f;o1?(s!==0&&l!==0&&(f=this.diff_commonPrefix(c,u),f!==0&&(o-s-l>0&&i[o-s-l-1][0]==a?i[o-s-l-1][1]+=c.substring(0,f):(i.splice(0,0,new e.Diff(a,c.substring(0,f))),o++),c=c.substring(f),u=u.substring(f)),f=this.diff_commonSuffix(c,u),f!==0&&(i[o][1]=c.substring(c.length-f)+i[o][1],c=c.substring(0,c.length-f),u=u.substring(0,u.length-f))),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 p=!1;for(o=1;oo));f++)u=s,c=l;return i.length!=f&&i[f][0]===n?c:c+(o-u)},e.prototype.diff_prettyHtml=function(i){for(var o=[],s=/&/g,l=/
/g,c=/\n/g,f=0;f");switch(p){case r:o[f]=''+d+"";break;case n:o[f]=''+d+"";break;case a:o[f]=""+d+"";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(O,N){var D=O/o.length,F=Math.abs(s-N);return u.Match_Distance?D+F/u.Match_Distance:F?1:D}var f=this.Match_Threshold,p=i.indexOf(o,s);p!=-1&&(f=Math.min(c(0,p),f),p=i.lastIndexOf(o,s+o.length),p!=-1&&(f=Math.min(c(0,p),f)));var g=1<=w;S--){var x=l[i.charAt(S-1)];if(y===0?C[S]=(C[S+1]<<1|1)&x:C[S]=(C[S+1]<<1|1)&x|((h[S+1]|h[S])<<1|1)|h[S+1],C[S]&g){var P=c(y,S-1);if(P<=f)if(f=P,p=S-1,p>s)w=Math.max(1,2*s-p);else break}}if(c(y+1,s)>f)break;h=C}return p},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=[],f=new e.patch_obj,p=0,g=0,d=0,v=l,m=l,h=0;h=2*this.Patch_Margin&&p&&(this.patch_addContext_(f,v),c.push(f),f=new e.patch_obj,p=0,v=m,g=d);break}y!==r&&(g+=w.length),y!==n&&(d+=w.length)}return p&&(this.patch_addContext_(f,v),c.push(f)),c},e.prototype.patch_deepCopy=function(i){for(var o=[],s=0;sthis.Match_MaxBits?(g=this.match_main(o,p.substring(0,this.Match_MaxBits),f),g!=-1&&(d=this.match_main(o,p.substring(p.length-this.Match_MaxBits),f+p.length-this.Match_MaxBits),(d==-1||g>=d)&&(g=-1))):g=this.match_main(o,p,f),g==-1)u[c]=!1,l-=i[c].length2-i[c].length1;else{u[c]=!0,l=g-f;var v;if(d==-1?v=o.substring(g,g+p.length):v=o.substring(g,d+this.Match_MaxBits),p==v)o=o.substring(0,g)+this.diff_text2(i[c].diffs)+o.substring(g+p.length);else{var m=this.diff_main(p,v,!1);if(p.length>this.Match_MaxBits&&this.diff_levenshtein(m)/p.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var h=0,y,w=0;wc[0][1].length){var f=o-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=f,u.start2-=f,u.length1+=f,u.length2+=f}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 f=o-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,f),u.length1+=f,u.length2+=f}return s},e.prototype.patch_splitMax=function(i){for(var o=this.Match_MaxBits,s=0;s2*o?(p.length1+=v.length,u+=v.length,g=!1,p.diffs.push(new e.Diff(d,v)),l.diffs.shift()):(v=v.substring(0,o-p.length1-this.Patch_Margin),p.length1+=v.length,u+=v.length,d===a?(p.length2+=v.length,c+=v.length):g=!1,p.diffs.push(new e.Diff(d,v)),v==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(v.length))}f=this.diff_text2(p.diffs),f=f.substring(f.length-this.Patch_Margin);var m=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);m!==""&&(p.length1+=m.length,p.length2+=m.length,p.diffs.length!==0&&p.diffs[p.diffs.length-1][0]===a?p.diffs[p.diffs.length-1][1]+=m:p.diffs.push(new e.Diff(a,m))),g||i.splice(++s,0,p)}}},e.prototype.patch_toText=function(i){for(var o=[],s=0;s{h.tabList=R(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=D,r=F;return p(),d("div",W,[a("div",j,[l(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"]),l(r,{type:"primary",onClick:y},{default:i(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",G,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",L,[(p(!0),d(B,null,I(m(t).snapshots,s=>(p(),d("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[l(r,{onClick:x=>f(s)},{default:i(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),l(r,{onClick:x=>m(k)(s)},{default:i(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const E=V(T,[["__scopeId","data-v-e55e3025"]]);export{E as default};
+import{d as S,p as $,aj as g,c5 as b,r as w,o as p,j as d,k as a,c as l,x as i,l as u,t as n,F as B,G as I,y as m,ap as R,R as _,T as v,Z as D,$ as F,c6 as N,n as V}from"./index-c24b5c8e.js";const W={class:"container"},j={class:"actions"},G={class:"uni-desc"},L={class:"snapshot"},T=S({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(q){const h=$(),t=g(),f=e=>{h.tabList=R(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=D,r=F;return p(),d("div",W,[a("div",j,[l(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"]),l(r,{type:"primary",onClick:y},{default:i(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",G,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",L,[(p(!0),d(B,null,I(m(t).snapshots,s=>(p(),d("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[l(r,{onClick:x=>f(s)},{default:i(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),l(r,{onClick:x=>m(k)(s)},{default:i(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const E=V(T,[["__scopeId","data-v-e55e3025"]]);export{E as default};
diff --git a/vue/dist/assets/randomImage-33b5ad12.js b/vue/dist/assets/randomImage-4389aa2a.js
similarity index 90%
rename from vue/dist/assets/randomImage-33b5ad12.js
rename to vue/dist/assets/randomImage-4389aa2a.js
index fb21d40..06d3109 100644
--- a/vue/dist/assets/randomImage-33b5ad12.js
+++ b/vue/dist/assets/randomImage-4389aa2a.js
@@ -1 +1 @@
-import{d as Z,p as ee,r as R,az as te,aA as le,ak as se,c7 as ie,o as v,j as A,c as s,y as e,k as g,x as a,l as k,t as u,z as F,C as oe,B as ne,O as ae,Q as N,m as $,v as re,R as w,T as ce,c8 as de,$ as ue,Y as me,V as fe,n as pe}from"./index-840caa07.js";import{F as ve,s as ge}from"./FileItem-f1712134.js";import{u as ke,g as we,c as he,b as Ce,d as Se,e as _e,o as z}from"./index-e670b2ef.js";import{M as Ie,L as ye,R as xe,f as be}from"./MultiSelectKeep-002ccaa9.js";import"./index-77c608f4.js";import"./shortcut-38b7c0ce.js";import"./_isIterateeCall-70a3012d.js";/* empty css */const Ve={class:"refresh-button"},Me={class:"hint"},Te={key:0,class:"preview-switch"},Re=Z({__name:"randomImage",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(Ae){const B=ee(),m=R(!1),l=R([]),r=l,h=te(`${le}randomImageSettingNotificationShown`,!1),P=()=>{h.value||(w.info({content:ce("randomImageSettingNotification"),duration:6,key:"randomImageSetting"}),h.value=!0)},f=async()=>{try{m.value=!0;const i=await de();i.length===0&&w.warn("No data, please generate index in image search page first"),l.value=i}finally{m.value=!1,_()}},C=()=>{if(l.value.length===0){w.warn("没有图片可以浏览");return}z(l.value,n.value||0)};se(()=>{f(),setTimeout(()=>{P()},2e3)});const{stackViewEl:O,multiSelectedIdxs:p,stack:D,scroller:E}=ke({images:l}).toRefs(),{onClearAllSelected:G,onSelectAll:K,onReverseSelect:L}=we();he();const{itemSize:S,gridItems:U,cellWidth:Q,onScroll:_}=Ce(),{showGenInfo:c,imageGenInfo:I,q:W,onContextMenuClick:j,onFileItemClick:q}=Se({openNext:ie}),{previewIdx:n,previewing:y,onPreviewVisibleChange:H,previewImgMove:x,canPreview:b}=_e(),V=async(i,t,d)=>{D.value=[{curr:"",files:l.value}],await j(i,t,d)};return(i,t)=>{var M;const d=ue,Y=me,J=fe;return v(),A("div",{class:"container",ref_key:"stackViewEl",ref:O},[s(Ie,{show:!!e(p).length||e(B).keepMultiSelect,onClearAllSelected:e(G),onSelectAll:e(K),onReverseSelect:e(L)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),g("div",Ve,[s(d,{onClick:f,onTouchstart:F(f,["prevent"]),type:"primary",loading:m.value,shape:"round"},{default:a(()=>[k(u(i.$t("shuffle")),1)]),_:1},8,["onTouchstart","loading"]),s(d,{onClick:C,onTouchstart:F(C,["prevent"]),type:"default",disabled:!((M=l.value)!=null&&M.length),shape:"round"},{default:a(()=>[k(u(i.$t("tiktokView")),1)]),_:1},8,["onTouchstart","disabled"])]),s(J,{visible:e(c),"onUpdate:visible":t[1]||(t[1]=o=>ne(c)?c.value=o:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=o=>c.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(Y,{active:"",loading:!e(W).isIdle},{default:a(()=>[g("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=o=>e(oe)(e(I)))},[g("div",Me,u(i.$t("doubleClickToCopy")),1),k(" "+u(e(I)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),s(e(ge),{ref_key:"scroller",ref:E,class:"file-list",items:l.value.slice(),"item-size":e(S).first,"key-field":"fullpath","item-secondary-size":e(S).second,gridItems:e(U),onScroll:e(_)},{default:a(({item:o,index:T})=>[s(ve,{idx:T,file:o,"cell-width":e(Q),"full-screen-preview-image-url":e(r)[e(n)]?e(ae)(e(r)[e(n)]):"",onContextMenuClick:V,onPreviewVisibleChange:e(H),"is-selected-mutil-files":e(p).length>1,selected:e(p).includes(T),onFileItemClick:e(q),onTiktokView:(Fe,X)=>e(z)(l.value,X)},null,8,["idx","file","cell-width","full-screen-preview-image-url","onPreviewVisibleChange","is-selected-mutil-files","selected","onFileItemClick","onTiktokView"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"]),e(y)?(v(),A("div",Te,[s(e(ye),{onClick:t[3]||(t[3]=o=>e(x)("prev")),class:N({disable:!e(b)("prev")})},null,8,["class"]),s(e(xe),{onClick:t[4]||(t[4]=o=>e(x)("next")),class:N({disable:!e(b)("next")})},null,8,["class"])])):$("",!0),e(y)&&e(r)&&e(r)[e(n)]?(v(),re(be,{key:1,file:e(r)[e(n)],idx:e(n),onContextMenuClick:V},null,8,["file","idx"])):$("",!0)],512)}}});const Ge=pe(Re,[["__scopeId","data-v-e1531e89"]]);export{Ge as default};
+import{d as Z,p as ee,r as R,az as te,aA as le,ak as se,c7 as ie,o as v,j as A,c as s,y as e,k as g,x as a,l as k,t as u,z as F,C as oe,B as ne,O as ae,Q as N,m as $,v as re,R as w,T as ce,c8 as de,$ as ue,Y as me,V as fe,n as pe}from"./index-c24b5c8e.js";import{F as ve,s as ge}from"./FileItem-c62b10f3.js";import{u as ke,g as we,c as he,b as Ce,d as Se,e as _e,o as z}from"./index-47a4d52c.js";import{M as Ie,L as ye,R as xe,f as be}from"./MultiSelectKeep-ea31915e.js";import"./index-5130babf.js";import"./shortcut-4e374057.js";import"./_isIterateeCall-19da1ec8.js";/* empty css */const Ve={class:"refresh-button"},Me={class:"hint"},Te={key:0,class:"preview-switch"},Re=Z({__name:"randomImage",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(Ae){const B=ee(),m=R(!1),l=R([]),r=l,h=te(`${le}randomImageSettingNotificationShown`,!1),P=()=>{h.value||(w.info({content:ce("randomImageSettingNotification"),duration:6,key:"randomImageSetting"}),h.value=!0)},f=async()=>{try{m.value=!0;const i=await de();i.length===0&&w.warn("No data, please generate index in image search page first"),l.value=i}finally{m.value=!1,_()}},C=()=>{if(l.value.length===0){w.warn("没有图片可以浏览");return}z(l.value,n.value||0)};se(()=>{f(),setTimeout(()=>{P()},2e3)});const{stackViewEl:O,multiSelectedIdxs:p,stack:D,scroller:E}=ke({images:l}).toRefs(),{onClearAllSelected:G,onSelectAll:K,onReverseSelect:L}=we();he();const{itemSize:S,gridItems:U,cellWidth:Q,onScroll:_}=Ce(),{showGenInfo:c,imageGenInfo:I,q:W,onContextMenuClick:j,onFileItemClick:q}=Se({openNext:ie}),{previewIdx:n,previewing:y,onPreviewVisibleChange:H,previewImgMove:x,canPreview:b}=_e(),V=async(i,t,d)=>{D.value=[{curr:"",files:l.value}],await j(i,t,d)};return(i,t)=>{var M;const d=ue,Y=me,J=fe;return v(),A("div",{class:"container",ref_key:"stackViewEl",ref:O},[s(Ie,{show:!!e(p).length||e(B).keepMultiSelect,onClearAllSelected:e(G),onSelectAll:e(K),onReverseSelect:e(L)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),g("div",Ve,[s(d,{onClick:f,onTouchstart:F(f,["prevent"]),type:"primary",loading:m.value,shape:"round"},{default:a(()=>[k(u(i.$t("shuffle")),1)]),_:1},8,["onTouchstart","loading"]),s(d,{onClick:C,onTouchstart:F(C,["prevent"]),type:"default",disabled:!((M=l.value)!=null&&M.length),shape:"round"},{default:a(()=>[k(u(i.$t("tiktokView")),1)]),_:1},8,["onTouchstart","disabled"])]),s(J,{visible:e(c),"onUpdate:visible":t[1]||(t[1]=o=>ne(c)?c.value=o:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=o=>c.value=!1)},{cancelText:a(()=>[]),default:a(()=>[s(Y,{active:"",loading:!e(W).isIdle},{default:a(()=>[g("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=o=>e(oe)(e(I)))},[g("div",Me,u(i.$t("doubleClickToCopy")),1),k(" "+u(e(I)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),s(e(ge),{ref_key:"scroller",ref:E,class:"file-list",items:l.value.slice(),"item-size":e(S).first,"key-field":"fullpath","item-secondary-size":e(S).second,gridItems:e(U),onScroll:e(_)},{default:a(({item:o,index:T})=>[s(ve,{idx:T,file:o,"cell-width":e(Q),"full-screen-preview-image-url":e(r)[e(n)]?e(ae)(e(r)[e(n)]):"",onContextMenuClick:V,onPreviewVisibleChange:e(H),"is-selected-mutil-files":e(p).length>1,selected:e(p).includes(T),onFileItemClick:e(q),onTiktokView:(Fe,X)=>e(z)(l.value,X)},null,8,["idx","file","cell-width","full-screen-preview-image-url","onPreviewVisibleChange","is-selected-mutil-files","selected","onFileItemClick","onTiktokView"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"]),e(y)?(v(),A("div",Te,[s(e(ye),{onClick:t[3]||(t[3]=o=>e(x)("prev")),class:N({disable:!e(b)("prev")})},null,8,["class"]),s(e(xe),{onClick:t[4]||(t[4]=o=>e(x)("next")),class:N({disable:!e(b)("next")})},null,8,["class"])])):$("",!0),e(y)&&e(r)&&e(r)[e(n)]?(v(),re(be,{key:1,file:e(r)[e(n)],idx:e(n),onContextMenuClick:V},null,8,["file","idx"])):$("",!0)],512)}}});const Ge=pe(Re,[["__scopeId","data-v-e1531e89"]]);export{Ge as default};
diff --git a/vue/dist/assets/searchHistory-490af431.js b/vue/dist/assets/searchHistory-f42938f6.js
similarity index 97%
rename from vue/dist/assets/searchHistory-490af431.js
rename to vue/dist/assets/searchHistory-f42938f6.js
index b6b8587..3f2f8d8 100644
--- a/vue/dist/assets/searchHistory-490af431.js
+++ b/vue/dist/assets/searchHistory-f42938f6.js
@@ -1 +1 @@
-import{bH as f,bI as y,bJ as v,c as d,A as P,d as w,o as a,j as c,k as r,F as b,G as S,ad as O,x as V,l as u,t as p,y as $,$ as R,n as x,an as H,az as _,aA as g}from"./index-840caa07.js";const A=f(y),D=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 z=L;function h(t){for(var e=1;e{const n=R;return a(),c("div",null,[r("ul",C,[(a(!0),c(b,null,S(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",I,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",k,[d(n,{onClick:m=>e.$emit("reuseRecord",i),type:"primary"},{default:V(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:m=>e.records.switchPin(i)},[d($(N)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,j)])]))),128))])])}}});const E=x(B,[["__scopeId","data-v-fff181dd"]]);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]}getPinnedValues(){return this.pinnedValues}}const q=_(`${g}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}}),G=_(`${g}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{E as H,D as _,A as a,q as f,G as t};
+import{bH as f,bI as y,bJ as v,c as d,A as P,d as w,o as a,j as c,k as r,F as b,G as S,ad as O,x as V,l as u,t as p,y as $,$ as R,n as x,an as H,az as _,aA as g}from"./index-c24b5c8e.js";const A=f(y),D=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 z=L;function h(t){for(var e=1;e{const n=R;return a(),c("div",null,[r("ul",C,[(a(!0),c(b,null,S(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",I,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",k,[d(n,{onClick:m=>e.$emit("reuseRecord",i),type:"primary"},{default:V(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:m=>e.records.switchPin(i)},[d($(N)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,j)])]))),128))])])}}});const E=x(B,[["__scopeId","data-v-fff181dd"]]);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]}getPinnedValues(){return this.pinnedValues}}const q=_(`${g}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}}),G=_(`${g}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{E as H,D as _,A as a,q as f,G as t};
diff --git a/vue/dist/assets/shortcut-38b7c0ce.js b/vue/dist/assets/shortcut-4e374057.js
similarity index 99%
rename from vue/dist/assets/shortcut-38b7c0ce.js
rename to vue/dist/assets/shortcut-4e374057.js
index 96228bd..0e143c6 100644
--- a/vue/dist/assets/shortcut-38b7c0ce.js
+++ b/vue/dist/assets/shortcut-4e374057.js
@@ -1,2 +1,2 @@
-import{dt as $e,a as m,P as M,d as R,du as ae,u as ne,b7 as He,c2 as _e,bS as re,ak as me,w as ie,r as E,f as Oe,_ as q,cM as D,h as k,c as w,dv as Ne,s as Z,af as z,bc as Le,i as A,b as pe,cT as Ee,dw as ge,dx as X,dy as j,dz as se,cL as be,dA as Ae,dB as ee,dC as De,dD as Re,dE as je,aq as Ie,dF as le,bH as Ge,dG as Ue,dH as Ke,o as We,j as Xe,bh as ue,bQ as ze,n as Ye}from"./index-840caa07.js";function qe(o,e){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=$e(o))||e&&o&&typeof o.length=="number"){a&&(o=a);var t=0,n=function(){};return{s:n,n:function(){return t>=o.length?{done:!0}:{done:!1,value:o[t++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+import{dt as $e,a as m,P as M,d as R,du as ae,u as ne,b7 as He,c2 as _e,bS as re,ak as me,w as ie,r as E,f as Oe,_ as q,cM as D,h as k,c as w,dv as Ne,s as Z,af as z,bc as Le,i as A,b as pe,cT as Ee,dw as ge,dx as X,dy as j,dz as se,cL as be,dA as Ae,dB as ee,dC as De,dD as Re,dE as je,aq as Ie,dF as le,bH as Ge,dG as Ue,dH as Ke,o as We,j as Xe,bh as ue,bQ as ze,n as Ye}from"./index-c24b5c8e.js";function qe(o,e){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=$e(o))||e&&o&&typeof o.length=="number"){a&&(o=a);var t=0,n=function(){};return{s:n,n:function(){return t>=o.length?{done:!0}:{done:!1,value:o[t++]}},e:function(u){throw u},f:n}}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 r=!0,i=!1,s;return{s:function(){a=a.call(o)},n:function(){var u=a.next();return r=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!r&&a.return!=null&&a.return()}finally{if(i)throw s}}}}var Je=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},Qe=function(){return m(m({},Je()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},Ze=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:M.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}}},et=function(){return m(m({},Ze()),{},{indeterminate:{type:Boolean,default:!1}})},ye=Symbol("CheckboxGroupContext"),tt=["indeterminate","skipGroup","id"],at=["onMouseenter","onMouseleave","onInput","class","style"];const Y=R({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:et(),setup:function(e,a){var t=a.emit,n=a.attrs,r=a.slots,i=a.expose,s=ae(),l=ne("checkbox",e),u=l.prefixCls,c=l.direction,v=He(ye,void 0),g=Symbol("checkboxUniId");_e(function(){!e.skipGroup&&v&&v.registerValue(g,e.value)}),re(function(){v&&v.cancelValue(g)}),me(function(){ie(e.checked!==void 0||v||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var C=function(d){var f=d.target.checked;t("update:checked",f),t("change",d)},S=E(),T=function(){var d;(d=S.value)===null||d===void 0||d.focus()},F=function(){var d;(d=S.value)===null||d===void 0||d.blur()};return i({focus:T,blur:F}),function(){var b,d,f=Oe((b=r.default)===null||b===void 0?void 0:b.call(r)),y=e.indeterminate,x=e.skipGroup,V=e.id,p=V===void 0?s.id.value:V,h=q(e,tt),P=n.onMouseenter,$=n.onMouseleave;n.onInput;var B=n.class,L=n.style,_=q(n,at),H=m(m({},h),{},{id:p,prefixCls:u.value},_);v&&!x?(H.onChange=function(){for(var G=arguments.length,J=new Array(G),U=0;U0&&(x=v.value.map(function(p){var h;return w(Y,{prefixCls:l.value,key:p.value.toString(),disabled:"disabled"in p?p.disabled:e.disabled,indeterminate:p.indeterminate,value:p.value,checked:c.value.indexOf(p.value)!==-1,onChange:p.onChange,class:"".concat(V,"-item")},{default:function(){return[p.label===void 0?(h=t.label)===null||h===void 0?void 0:h.call(t,p):p.label]}})})),w("div",{class:[V,k({},"".concat(V,"-rtl"),u.value==="rtl")],id:y},[x||((d=t.default)===null||d===void 0?void 0:d.call(t))])}}});Y.Group=te;Y.install=function(o){return o.component(Y.name,Y),o.component(te.name,te),o};var xe=function(e,a){var t,n,r=a.attrs,i=r.included,s=r.vertical,l=r.style,u=r.class,c=r.length,v=r.offset,g=r.reverse;c<0&&(g=!g,c=Math.abs(c),v=100-v);var C=s?(t={},k(t,g?"top":"bottom","".concat(v,"%")),k(t,g?"bottom":"top","auto"),k(t,"height","".concat(c,"%")),t):(n={},k(n,g?"right":"left","".concat(v,"%")),k(n,g?"left":"right","auto"),k(n,"width","".concat(c,"%")),n),S=m(m({},l),C);return i?w("div",{class:u,style:S},null):null};xe.inheritAttrs=!1;const ke=xe;var nt=function(e,a,t,n,r,i){ie(t?n>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var s=Object.keys(a).map(parseFloat).sort(function(u,c){return u-c});if(t&&n)for(var l=r;l<=i;l+=n)s.indexOf(l)===-1&&s.push(l);return s},Ce=function(e,a){var t=a.attrs,n=t.prefixCls,r=t.vertical,i=t.reverse,s=t.marks,l=t.dots,u=t.step,c=t.included,v=t.lowerBound,g=t.upperBound,C=t.max,S=t.min,T=t.dotStyle,F=t.activeDotStyle,b=C-S,d=nt(r,s,l,u,S,C).map(function(f){var y,x="".concat(Math.abs(f-S)/b*100,"%"),V=!c&&f===g||c&&f<=g&&f>=v,p=r?m(m({},T),{},k({},i?"top":"bottom",x)):m(m({},T),{},k({},i?"right":"left",x));V&&(p=m(m({},p),F));var h=D((y={},k(y,"".concat(n,"-dot"),!0),k(y,"".concat(n,"-dot-active"),V),k(y,"".concat(n,"-dot-reverse"),i),y));return w("span",{class:h,style:p,key:f},null)});return w("div",{class:"".concat(n,"-step")},[d])};Ce.inheritAttrs=!1;const rt=Ce;var Se=function(e,a){var t=a.attrs,n=a.slots,r=t.class,i=t.vertical,s=t.reverse,l=t.marks,u=t.included,c=t.upperBound,v=t.lowerBound,g=t.max,C=t.min,S=t.onClickLabel,T=Object.keys(l),F=n.mark,b=g-C,d=T.map(parseFloat).sort(function(f,y){return f-y}).map(function(f){var y,x=typeof l[f]=="function"?l[f]():l[f],V=pe(x)==="object"&&!Ee(x),p=V?x.label:x;if(!p&&p!==0)return null;F&&(p=F({point:f,label:p}));var h=!u&&f===c||u&&f<=c&&f>=v,P=D((y={},k(y,"".concat(r,"-text"),!0),k(y,"".concat(r,"-text-active"),h),y)),$=k({marginBottom:"-50%"},s?"top":"bottom","".concat((f-C)/b*100,"%")),B=k({transform:"translateX(".concat(s?"50%":"-50%",")"),msTransform:"translateX(".concat(s?"50%":"-50%",")")},s?"right":"left","".concat((f-C)/b*100,"%")),L=i?$:B,_=V?m(m({},L),x.style):L,H=k({},ge?"onTouchstartPassive":"onTouchstart",function(O){return S(O,f)});return w("span",m({class:P,style:_,key:f,onMousedown:function(N){return S(N,f)}},H),[p])});return w("div",{class:r},[d])};Se.inheritAttrs=!1;const it=Se,Ve=R({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:M.oneOfType([M.number,M.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,a){var t=a.attrs,n=a.emit,r=a.expose,i=E(!1),s=E(),l=function(){document.activeElement===s.value&&(i.value=!0)},u=function(d){i.value=!1,n("blur",d)},c=function(){i.value=!1},v=function(){var d;(d=s.value)===null||d===void 0||d.focus()},g=function(){var d;(d=s.value)===null||d===void 0||d.blur()},C=function(){i.value=!0,v()},S=function(d){d.preventDefault(),v(),n("mousedown",d)};r({focus:v,blur:g,clickFocus:C,ref:s});var T=null;me(function(){T=X(document,"mouseup",l)}),re(function(){var b;(b=T)===null||b===void 0||b.remove()});var F=z(function(){var b,d,f=e.vertical,y=e.offset,x=e.reverse;return f?(b={},k(b,x?"top":"bottom","".concat(y,"%")),k(b,x?"bottom":"top","auto"),k(b,"transform",x?null:"translateY(+50%)"),b):(d={},k(d,x?"right":"left","".concat(y,"%")),k(d,x?"left":"right","auto"),k(d,"transform","translateX(".concat(x?"+":"-","50%)")),d)});return function(){var b=e.prefixCls,d=e.disabled,f=e.min,y=e.max,x=e.value,V=e.tabindex,p=e.ariaLabel,h=e.ariaLabelledBy,P=e.ariaValueTextFormatter,$=e.onMouseenter,B=e.onMouseleave,L=D(t.class,k({},"".concat(b,"-handle-click-focused"),i.value)),_={"aria-valuemin":f,"aria-valuemax":y,"aria-valuenow":x,"aria-disabled":!!d},H=[t.style,F.value],O=V||0;(d||V===null)&&(O=null);var N;P&&(N=P(x));var G=m(m(m({},t),{},{role:"slider",tabindex:O},_),{},{class:L,onBlur:u,onKeydown:c,onMousedown:S,onMouseenter:$,onMouseleave:B,ref:s,style:H});return w("div",m(m({},G),{},{"aria-label":p,"aria-labelledby":h,"aria-valuetext":N}),null)}}});function Q(o,e){try{return Object.keys(e).some(function(a){return o.target===e[a].ref})}catch{return!1}}function Me(o,e){var a=e.min,t=e.max;return ot}function de(o){return o.touches.length>1||o.type.toLowerCase()==="touchend"&&o.touches.length>0}function ce(o,e){var a=e.marks,t=e.step,n=e.min,r=e.max,i=Object.keys(a).map(parseFloat);if(t!==null){var s=Math.pow(10,Be(t)),l=Math.floor((r*s-n*s)/(t*s)),u=Math.min((o-n)/t,l),c=Math.round(u)*t+n;i.push(c)}var v=i.map(function(g){return Math.abs(o-g)});return i[v.indexOf(Math.min.apply(Math,A(v)))]}function Be(o){var e=o.toString(),a=0;return e.indexOf(".")>=0&&(a=e.length-e.indexOf(".")-1),a}function ve(o,e){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?e.clientY:e.pageX)/a}function fe(o,e){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?e.touches[0].clientY:e.touches[0].pageX)/a}function he(o,e){var a=e.getBoundingClientRect();return o?a.top+a.height*.5:window.pageXOffset+a.left+a.width*.5}function oe(o,e){var a=e.max,t=e.min;return o<=t?t:o>=a?a:o}function Te(o,e){var a=e.step,t=isFinite(ce(o,e))?ce(o,e):0;return a===null?t:parseFloat(t.toFixed(Be(a)))}function K(o){o.stopPropagation(),o.preventDefault()}function st(o,e,a){var t={increase:function(s,l){return s+l},decrease:function(s,l){return s-l}},n=t[o](Object.keys(a.marks).indexOf(JSON.stringify(e)),1),r=Object.keys(a.marks)[n];return a.step?t[o](e,a.step):Object.keys(a.marks).length&&a.marks[r]?a.marks[r]:e}function Pe(o,e,a){var t="increase",n="decrease",r=t;switch(o.keyCode){case j.UP:r=e&&a?n:t;break;case j.RIGHT:r=!e&&a?n:t;break;case j.DOWN:r=e&&a?t:n;break;case j.LEFT:r=!e&&a?t:n;break;case j.END:return function(i,s){return s.max};case j.HOME:return function(i,s){return s.min};case j.PAGE_UP:return function(i,s){return i+s.step*2};case j.PAGE_DOWN:return function(i,s){return i-s.step*2};default:return}return function(i,s){return st(r,i,s)}}var ot=["index","directives","className","style"];function I(){}function we(o){var e={id:String,min:Number,max:Number,step:Number,marks:M.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:M.object,maximumTrackStyle:M.object,handleStyle:M.oneOfType([M.object,M.arrayOf(M.object)]),trackStyle:M.oneOfType([M.object,M.arrayOf(M.object)]),railStyle:M.object,dotStyle:M.object,activeDotStyle:M.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return R({compatConfig:{MODE:3},name:"CreateSlider",mixins:[se,o],inheritAttrs:!1,slots:["mark"],props:be(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 t=this.step,n=this.max,r=this.min,i=isFinite(n-r)?(n-r)%t===0:!0;return ie(t&&Math.floor(t)===t?i:!0,"Slider[max] - Slider[min] (".concat(n-r,") should be a multiple of Slider[step] (").concat(t,")")),this.handlesRefs={},{}},mounted:function(){var t=this;this.$nextTick(function(){t.document=t.sliderRef&&t.sliderRef.ownerDocument;var n=t.autofocus,r=t.disabled;n&&!r&&t.focus()})},beforeUnmount:function(){var t=this;this.$nextTick(function(){t.removeDocumentEvents()})},methods:{defaultHandle:function(t){var n=t.index;t.directives;var r=t.className,i=t.style,s=q(t,ot);if(delete s.dragging,s.value===null)return null;var l=m(m({},s),{},{class:r,style:i,key:n});return w(Ve,l,null)},onDown:function(t,n){var r=n,i=this.$props,s=i.draggableTrack,l=i.vertical,u=this.$data.bounds,c=s&&this.positionGetValue?this.positionGetValue(r)||[]:[],v=Q(t,this.handlesRefs);if(this.dragTrack=s&&u.length>=2&&!v&&!c.map(function(C,S){var T=S?!0:C>=u[S];return S===c.length-1?C<=u[S]:T}).some(function(C){return!C}),this.dragTrack)this.dragOffset=r,this.startBounds=A(u);else{if(!v)this.dragOffset=0;else{var g=he(l,t.target);this.dragOffset=r-g,r=g}this.onStart(r)}},onMouseDown:function(t){if(t.button===0){this.removeDocumentEvents();var n=this.$props.vertical,r=ve(n,t);this.onDown(t,r),this.addDocumentMouseEvents()}},onTouchStart:function(t){if(!de(t)){var n=this.vertical,r=fe(n,t);this.onDown(t,r),this.addDocumentTouchEvents(),K(t)}},onFocus:function(t){var n=this.vertical;if(Q(t,this.handlesRefs)&&!this.dragTrack){var r=he(n,t.target);this.dragOffset=0,this.onStart(r),K(t),this.$emit("focus",t)}},onBlur:function(t){this.dragTrack||this.onEnd(),this.$emit("blur",t)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(t){if(!this.sliderRef){this.onEnd();return}var n=ve(this.vertical,t);this.onMove(t,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(t){if(de(t)||!this.sliderRef){this.onEnd();return}var n=fe(this.vertical,t);this.onMove(t,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(t){this.sliderRef&&Q(t,this.handlesRefs)&&this.onKeyboard(t)},onClickMarkLabel:function(t,n){var r=this;t.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return r.onEnd(!0)})},getSliderStart:function(){var t=this.sliderRef,n=this.vertical,r=this.reverse,i=t.getBoundingClientRect();return n?r?i.bottom:i.top:window.pageXOffset+(r?i.right:i.left)},getSliderLength:function(){var t=this.sliderRef;if(!t)return 0;var n=t.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=X(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=X(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=X(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=X(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 t;this.$props.disabled||(t=this.handlesRefs[0])===null||t===void 0||t.focus()},blur:function(){var t=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var r,i;(r=t.handlesRefs[n])===null||r===void 0||(i=r.blur)===null||i===void 0||i.call(r)})},calcValue:function(t){var n=this.vertical,r=this.min,i=this.max,s=Math.abs(Math.max(t,0)/this.getSliderLength()),l=n?(1-s)*(i-r)+r:s*(i-r)+r;return l},calcValueByPos:function(t){var n=this.reverse?-1:1,r=n*(t-this.getSliderStart()),i=this.trimAlignValue(this.calcValue(r));return i},calcOffset:function(t){var n=this.min,r=this.max,i=(t-n)/(r-n);return Math.max(0,i*100)},saveSlider:function(t){this.sliderRef=t},saveHandle:function(t,n){this.handlesRefs[t]=n}},render:function(){var t,n=this.prefixCls,r=this.marks,i=this.dots,s=this.step,l=this.included,u=this.disabled,c=this.vertical,v=this.reverse,g=this.min,C=this.max,S=this.maximumTrackStyle,T=this.railStyle,F=this.dotStyle,b=this.activeDotStyle,d=this.id,f=this.$attrs,y=f.class,x=f.style,V=this.renderSlider(),p=V.tracks,h=V.handles,P=D(n,y,(t={},k(t,"".concat(n,"-with-marks"),Object.keys(r).length),k(t,"".concat(n,"-disabled"),u),k(t,"".concat(n,"-vertical"),c),t)),$={vertical:c,marks:r,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:C,min:g,reverse:v,class:"".concat(n,"-mark"),onClickLabel:u?I:this.onClickMarkLabel},B=k({},ge?"onTouchstartPassive":"onTouchstart",u?I:this.onTouchStart);return w("div",m(m({id:d,ref:this.saveSlider,tabindex:"-1",class:P},B),{},{onMousedown:u?I:this.onMouseDown,onMouseup:u?I:this.onMouseUp,onKeydown:u?I:this.onKeyDown,onFocus:u?I:this.onFocus,onBlur:u?I:this.onBlur,style:x}),[w("div",{class:"".concat(n,"-rail"),style:m(m({},S),T)},null),p,w(rt,{prefixCls:n,vertical:c,reverse:v,marks:r,dots:i,step:s,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:C,min:g,dotStyle:F,activeDotStyle:b},null),h,w(it,$,{mark:this.$slots.mark}),Ae(this)])}})}var lt=R({compatConfig:{MODE:3},name:"Slider",mixins:[se],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:M.oneOfType([M.number,M.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,a=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(a),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 a=e!==void 0?e:this.sValue,t=this.trimAlignValue(a,this.$props);t!==this.sValue&&(this.setState({sValue:t}),Me(a,this.$props)&&this.$emit("change",t))},onChange:function(e){var a=!ee(this,"value"),t=e.sValue>this.max?m(m({},e),{},{sValue:this.max}):e;a&&this.setState(t);var n=t.sValue;this.$emit("change",n)},onStart:function(e){this.setState({dragging:!0});var a=this.sValue;this.$emit("beforeChange",a);var t=this.calcValueByPos(e);this.startValue=t,this.startPosition=e,t!==a&&(this.prevMovedHandleIndex=0,this.onChange({sValue:t}))},onEnd:function(e){var a=this.dragging;this.removeDocumentEvents(),(a||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(e,a){K(e);var t=this.sValue,n=this.calcValueByPos(a);n!==t&&this.onChange({sValue:n})},onKeyboard:function(e){var a=this.$props,t=a.reverse,n=a.vertical,r=Pe(e,n,t);if(r){K(e);var i=this.sValue,s=r(i,this.$props),l=this.trimAlignValue(s);if(l===i)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 t=m(m({},this.$props),a),n=oe(e,t);return Te(n,t)},getTrack:function(e){var a=e.prefixCls,t=e.reverse,n=e.vertical,r=e.included,i=e.minimumTrackStyle,s=e.mergedTrackStyle,l=e.length,u=e.offset;return w(ke,{class:"".concat(a,"-track"),vertical:n,included:r,offset:u,reverse:t,length:l,style:m(m({},i),s)},null)},renderSlider:function(){var e=this,a=this.prefixCls,t=this.vertical,n=this.included,r=this.disabled,i=this.minimumTrackStyle,s=this.trackStyle,l=this.handleStyle,u=this.tabindex,c=this.ariaLabelForHandle,v=this.ariaLabelledByForHandle,g=this.ariaValueTextFormatterForHandle,C=this.min,S=this.max,T=this.startPoint,F=this.reverse,b=this.handle,d=this.defaultHandle,f=b||d,y=this.sValue,x=this.dragging,V=this.calcOffset(y),p=f({class:"".concat(a,"-handle"),prefixCls:a,vertical:t,offset:V,value:y,dragging:x,disabled:r,min:C,max:S,reverse:F,index:0,tabindex:u,ariaLabel:c,ariaLabelledBy:v,ariaValueTextFormatter:g,style:l[0]||l,ref:function(B){return e.saveHandle(0,B)},onFocus:this.onFocus,onBlur:this.onBlur}),h=T!==void 0?this.calcOffset(T):0,P=s[0]||s;return{tracks:this.getTrack({prefixCls:a,reverse:F,vertical:t,included:n,offset:h,minimumTrackStyle:i,mergedTrackStyle:P,length:V-h}),handles:p}}}});const ut=we(lt);var W=function(e){var a=e.value,t=e.handle,n=e.bounds,r=e.props,i=r.allowCross,s=r.pushable,l=Number(s),u=oe(a,r),c=u;return!i&&t!=null&&n!==void 0&&(t>0&&u<=n[t-1]+l&&(c=n[t-1]+l),t=n[t+1]-l&&(c=n[t+1]-l)),Te(c,r)},dt={defaultValue:M.arrayOf(M.number),value:M.arrayOf(M.number),count:Number,pushable:De(M.oneOfType([M.looseBool,M.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:M.arrayOf(M.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}},ct=R({compatConfig:{MODE:3},name:"Range",mixins:[se],inheritAttrs:!1,props:be(dt,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var e=this,a=this.count,t=this.min,n=this.max,r=Array.apply(void 0,A(Array(a+1))).map(function(){return t}),i=ee(this,"defaultValue")?this.defaultValue:r,s=this.value;s===void 0&&(s=i);var l=s.map(function(c,v){return W({value:c,handle:v,props:e.$props})}),u=l[0]===n?0:l.length-1;return{sHandle:null,recent:u,bounds:l}},watch:{value:{handler:function(e){var a=this.bounds;this.setChangeValue(e||a)},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 a=this,t=this.bounds,n=e.map(function(i,s){return W({value:i,handle:s,bounds:t,props:a.$props})});if(t.length===n.length){if(n.every(function(i,s){return i===t[s]}))return null}else n=e.map(function(i,s){return W({value:i,handle:s,props:a.$props})});if(this.setState({bounds:n}),e.some(function(i){return Me(i,a.$props)})){var r=e.map(function(i){return oe(i,a.$props)});this.$emit("change",r)}},onChange:function(e){var a=!ee(this,"value");if(a)this.setState(e);else{var t={};["sHandle","recent"].forEach(function(i){e[i]!==void 0&&(t[i]=e[i])}),Object.keys(t).length&&this.setState(t)}var n=m(m({},this.$data),e),r=n.bounds;this.$emit("change",r)},positionGetValue:function(e){var a=this.getValue(),t=this.calcValueByPos(e),n=this.getClosestBound(t),r=this.getBoundNeedMoving(t,n),i=a[r];if(t===i)return null;var s=A(a);return s[r]=t,s},onStart:function(e){var a=this.bounds;this.$emit("beforeChange",a);var t=this.calcValueByPos(e);this.startValue=t,this.startPosition=e;var n=this.getClosestBound(t);this.prevMovedHandleIndex=this.getBoundNeedMoving(t,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var r=a[this.prevMovedHandleIndex];if(t!==r){var i=A(a);i[this.prevMovedHandleIndex]=t,this.onChange({bounds:i})}},onEnd:function(e){var a=this.sHandle;this.removeDocumentEvents(),a||(this.dragTrack=!1),(a!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(e,a,t,n){K(e);var r=this.$data,i=this.$props,s=i.max||100,l=i.min||0;if(t){var u=i.vertical?-a:a;u=i.reverse?-u:u;var c=s-Math.max.apply(Math,A(n)),v=l-Math.min.apply(Math,A(n)),g=Math.min(Math.max(u/(this.getSliderLength()/100),v),c),C=n.map(function(d){return Math.floor(Math.max(Math.min(d+g,s),l))});r.bounds.map(function(d,f){return d===C[f]}).some(function(d){return!d})&&this.onChange({bounds:C});return}var S=this.bounds,T=this.sHandle,F=this.calcValueByPos(a),b=S[T];F!==b&&this.moveTo(F)},onKeyboard:function(e){var a=this.$props,t=a.reverse,n=a.vertical,r=Pe(e,n,t);if(r){K(e);var i=this.bounds,s=this.sHandle,l=i[s===null?this.recent:s],u=r(l,this.$props),c=W({value:u,handle:s,bounds:i,props:this.$props});if(c===l)return;var v=!0;this.moveTo(c,v)}},getClosestBound:function(e){for(var a=this.bounds,t=0,n=1;n=a[n]&&(t=n);return Math.abs(a[t+1]-e)=n.length||i<0)return!1;var s=a+t,l=n[i],u=this.pushable,c=Number(u),v=t*(e[s]-l);return this.pushHandle(e,s,t,c-v)?(e[a]=l,!0):!1},trimAlignValue:function(e){var a=this.sHandle,t=this.bounds;return W({value:e,handle:a,bounds:t,props:this.$props})},ensureValueNotConflict:function(e,a,t){var n=t.allowCross,r=t.pushable,i=this.$data||{},s=i.bounds;if(e=e===void 0?i.sHandle:e,r=Number(r),!n&&e!=null&&s!==void 0){if(e>0&&a<=s[e-1]+r)return s[e-1]+r;if(e=s[e+1]-r)return s[e+1]-r}return a},getTrack:function(e){var a=e.bounds,t=e.prefixCls,n=e.reverse,r=e.vertical,i=e.included,s=e.offsets,l=e.trackStyle;return a.slice(0,-1).map(function(u,c){var v,g=c+1,C=D((v={},k(v,"".concat(t,"-track"),!0),k(v,"".concat(t,"-track-").concat(g),!0),v));return w(ke,{class:C,vertical:r,reverse:n,included:i,offset:s[g-1],length:s[g]-s[g-1],style:l[c],key:g},null)})},renderSlider:function(){var e=this,a=this.sHandle,t=this.bounds,n=this.prefixCls,r=this.vertical,i=this.included,s=this.disabled,l=this.min,u=this.max,c=this.reverse,v=this.handle,g=this.defaultHandle,C=this.trackStyle,S=this.handleStyle,T=this.tabindex,F=this.ariaLabelGroupForHandles,b=this.ariaLabelledByGroupForHandles,d=this.ariaValueTextFormatterGroupForHandles,f=v||g,y=t.map(function(p){return e.calcOffset(p)}),x="".concat(n,"-handle"),V=t.map(function(p,h){var P,$=T[h]||0;(s||T[h]===null)&&($=null);var B=a===h;return f({class:D((P={},k(P,x,!0),k(P,"".concat(x,"-").concat(h+1),!0),k(P,"".concat(x,"-dragging"),B),P)),prefixCls:n,vertical:r,dragging:B,offset:y[h],value:p,index:h,tabindex:$,min:l,max:u,reverse:c,disabled:s,style:S[h],ref:function(_){return e.saveHandle(h,_)},onFocus:e.onFocus,onBlur:e.onBlur,ariaLabel:F[h],ariaLabelledBy:b[h],ariaValueTextFormatter:d[h]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:c,vertical:r,included:i,offsets:y,trackStyle:C}),handles:V}}}});const vt=we(ct),ft=R({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Re(),setup:function(e,a){var t=a.attrs,n=a.slots,r=E(null),i=E(null);function s(){le.cancel(i.value),i.value=null}function l(){i.value=le(function(){var c;(c=r.value)===null||c===void 0||c.forcePopupAlign(),i.value=null})}var u=function(){s(),e.visible&&l()};return Z([function(){return e.visible},function(){return e.title}],function(){u()},{flush:"post",immediate:!0}),je(function(){u()}),re(function(){s()}),function(){return w(Ie,m(m({ref:r},e),t),n)}}});var ht=["value","dragging","index"],mt=["tooltipPrefixCls","range","id"],pt=function(e){return typeof e=="number"?e.toString():""},gt=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 pt}},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}}},bt=R({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:gt(),slots:["mark"],setup:function(e,a){var t=a.attrs,n=a.slots,r=a.emit,i=a.expose,s=ne("slider",e),l=s.prefixCls,u=s.rootPrefixCls,c=s.direction,v=s.getPopupContainer,g=s.configProvider,C=ae(),S=E(),T=E({}),F=function(h,P){T.value[h]=P},b=z(function(){return e.tooltipPlacement?e.tooltipPlacement:e.vertical?c.value==="rtl"?"left":"right":"top"}),d=function(){var h;(h=S.value)===null||h===void 0||h.focus()},f=function(){var h;(h=S.value)===null||h===void 0||h.blur()},y=function(h){r("update:value",h),r("change",h),C.onFieldChange()},x=function(h){r("blur",h)};i({focus:d,blur:f});var V=function(h){var P=h.tooltipPrefixCls,$=h.info,B=$.value,L=$.dragging,_=$.index,H=q($,ht),O=e.tipFormatter,N=e.tooltipVisible,G=e.getTooltipPopupContainer,J=O?T.value[_]||L:!1,U=N||N===void 0&&J;return w(ft,{prefixCls:P,title:O?O(B):"",visible:U,placement:b.value,transitionName:"".concat(u.value,"-zoom-down"),key:_,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:G||v.value},{default:function(){return[w(Ve,m(m({},H),{},{value:B,onMouseenter:function(){return F(_,!0)},onMouseleave:function(){return F(_,!1)}}),null)]}})};return function(){var p=e.tooltipPrefixCls,h=e.range,P=e.id,$=P===void 0?C.id.value:P,B=q(e,mt),L=g.getPrefixCls("tooltip",p),_=D(t.class,k({},"".concat(l.value,"-rtl"),c.value==="rtl"));c.value==="rtl"&&!B.vertical&&(B.reverse=!B.reverse);var H;return pe(h)==="object"&&(H=h.draggableTrack),h?w(vt,m(m({},B),{},{step:B.step,draggableTrack:H,class:_,ref:S,handle:function(N){return V({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:y,onBlur:x}),{mark:n.mark}):w(ut,m(m({},B),{},{id:$,step:B.step,class:_,ref:S,handle:function(N){return V({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:y,onBlur:x}),{mark:n.mark})}}});const yt=Ge(bt);const xt={class:"num-input"},kt=R({__name:"numInput",props:Ue({min:{},max:{},step:{}},{modelValue:{}}),emits:["update:modelValue"],setup(o){const e=o,a=Ke(o,"modelValue");return(t,n)=>{const r=ze,i=yt;return We(),Xe("div",xt,[w(r,ue({value:a.value,"onUpdate:value":n[0]||(n[0]=s=>a.value=s)},e),null,16,["value"]),w(i,ue({value:a.value,"onUpdate:value":n[1]||(n[1]=s=>a.value=s)},e,{class:"slide"}),null,16,["value"])])}}});const Vt=Ye(kt,[["__scopeId","data-v-bd954eda"]]),Mt=o=>{const e=[];return o.shiftKey&&e.push("Shift"),o.ctrlKey&&e.push("Ctrl"),o.metaKey&&e.push("Cmd"),(o.code.startsWith("Key")||o.code.startsWith("Digit"))&&e.push(o.code),o.key==="Escape"&&e.push("Esc"),e.join(" + ")};export{Y as C,Vt as _,te as a,Mt as g};
diff --git a/vue/dist/assets/stackView-9936085b.js b/vue/dist/assets/stackView-90e0323e.js
similarity index 97%
rename from vue/dist/assets/stackView-9936085b.js
rename to vue/dist/assets/stackView-90e0323e.js
index a39c50e..cf6b12c 100644
--- a/vue/dist/assets/stackView-9936085b.js
+++ b/vue/dist/assets/stackView-90e0323e.js
@@ -1 +1 @@
-import{d as X,u as Ce,g as Q,_ as Ve,c as r,a as ve,P as ae,D as me,f as je,w as St,b as $t,e as It,h as Be,M as ge,i as At,A as Ft,o as g,j as x,k as l,l as V,t as p,F as ke,m as T,n as Ue,p as Pt,q as xt,r as Rt,s as De,v as O,x as i,y as e,z as d,B as N,C as Mt,E as Bt,G as Oe,H as Dt,I as Ot,J as Nt,S as Tt,K as Lt,L as Et,N as zt,O as Vt,Q as Ne,R as F,T as $,U as Te,V as fe,W as z,X as jt,Y as Ut,Z as Wt,$ as Gt,a0 as qt,a1 as Ht,a2 as Kt,a3 as Qt,a4 as Jt}from"./index-840caa07.js";import{_ as Xt}from"./shortcut-38b7c0ce.js";import{D as We}from"./index-77c608f4.js";/* empty css *//* empty css */import{u as Yt,a as Zt,b as en,c as tn,d as nn,e as on,f as an,g as rn,h as ln,s as sn,o as Le}from"./index-e670b2ef.js";import{s as dn,F as un}from"./FileItem-f1712134.js";import{M as cn,L as pn,R as fn,f as vn}from"./MultiSelectKeep-002ccaa9.js";import"./_isIterateeCall-70a3012d.js";var mn=["class","style"],gn=function(){return{prefixCls:String,href:String,separator:ae.any,overlay:ae.any,onClick:Function}};const J=X({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:gn(),slots:["separator","overlay"],setup:function(o,u){var f=u.slots,v=u.attrs,w=Ce("breadcrumb",o),C=w.prefixCls,P=function(I,m){var c=Q(f,o,"overlay");return c?r(We,{overlay:c,placement:"bottom"},{default:function(){return[r("span",{class:"".concat(m,"-overlay-link")},[I,r(me,null,null)])]}}):I};return function(){var h,I=(h=Q(f,o,"separator"))!==null&&h!==void 0?h:"/",m=Q(f,o),c=v.class,b=v.style,k=Ve(v,mn),y;return o.href!==void 0?y=r("a",ve({class:"".concat(C.value,"-link"),onClick:o.onClick},k),[m]):y=r("span",ve({class:"".concat(C.value,"-link"),onClick:o.onClick},k),[m]),y=P(y,C.value),m?r("span",{class:c,style:b},[y,I&&r("span",{class:"".concat(C.value,"-separator")},[I])]):null}}});var kn=function(){return{prefixCls:String,routes:{type:Array},params:ae.any,separator:ae.any,itemRender:{type:Function}}};function yn(s,o){if(!s.breadcrumbName)return null;var u=Object.keys(o).join("|"),f=s.breadcrumbName.replace(new RegExp(":(".concat(u,")"),"g"),function(v,w){return o[w]||v});return f}function Ee(s){var o=s.route,u=s.params,f=s.routes,v=s.paths,w=f.indexOf(o)===f.length-1,C=yn(o,u);return w?r("span",null,[C]):r("a",{href:"#/".concat(v.join("/"))},[C])}const W=X({compatConfig:{MODE:3},name:"ABreadcrumb",props:kn(),slots:["separator","itemRender"],setup:function(o,u){var f=u.slots,v=Ce("breadcrumb",o),w=v.prefixCls,C=v.direction,P=function(c,b){return c=(c||"").replace(/^\//,""),Object.keys(b).forEach(function(k){c=c.replace(":".concat(k),b[k])}),c},h=function(c,b,k){var y=At(c),A=P(b||"",k);return A&&y.push(A),y},I=function(c){var b=c.routes,k=b===void 0?[]:b,y=c.params,A=y===void 0?{}:y,L=c.separator,R=c.itemRender,M=R===void 0?Ee:R,E=[];return k.map(function(_){var B=P(_.path,A);B&&E.push(B);var G=[].concat(E),q=null;return _.children&&_.children.length&&(q=r(ge,null,{default:function(){return[_.children.map(function(j){return r(ge.Item,{key:j.path||j.breadcrumbName},{default:function(){return[M({route:j,params:A,routes:k,paths:h(G,j.path,A)})]}})})]}})),r(J,{overlay:q,separator:L,key:B||_.breadcrumbName},{default:function(){return[M({route:_,params:A,routes:k,paths:G})]}})})};return function(){var m,c,b,k=o.routes,y=o.params,A=y===void 0?{}:y,L=je(Q(f,o)),R=(m=Q(f,o,"separator"))!==null&&m!==void 0?m:"/",M=o.itemRender||f.itemRender||Ee;k&&k.length>0?b=I({routes:k,params:A,separator:R,itemRender:M}):L.length&&(b=L.map(function(_,B){return St($t(_.type)==="object"&&(_.type.__ANT_BREADCRUMB_ITEM||_.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),It(_,{separator:R,key:B})}));var E=(c={},Be(c,w.value,!0),Be(c,"".concat(w.value,"-rtl"),C.value==="rtl"),c);return r("div",{class:E},[b])}}});var Cn=["separator","class"],bn=function(){return{prefixCls:String}};const ye=X({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:bn(),setup:function(o,u){var f=u.slots,v=u.attrs,w=Ce("breadcrumb",o),C=w.prefixCls;return function(){var P;v.separator;var h=v.class,I=Ve(v,Cn),m=je((P=f.default)===null||P===void 0?void 0:P.call(f));return r("span",ve({class:["".concat(C.value,"-separator"),h]},I),[m.length>0?m:"/"])}}});W.Item=J;W.Separator=ye;W.install=function(s){return s.component(W.name,W),s.component(J.name,J),s.component(ye.name,ye),s};var _n={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 hn=_n;function ze(s){for(var o=1;o(g(),x("div",$n,[l("span",null,[V(p(o.$t("items",[o.fileNum]))+" ",1),o.selectedFileNum?(g(),x(ke,{key:0},[V(", "+p(o.$t("selectedItems",[o.selectedFileNum])),1)],64)):T("",!0)])]))}});const An=Ue(In,[["__scopeId","data-v-7f9c0b15"]]),Fn={class:"hint"},Pn={class:"location-bar"},xn=["onClick"],Rn={key:3,class:"location-act"},Mn={class:"actions"},Bn=["onClick"],Dn=["title"],On=["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)"}},Tn={style:{padding:"4px"}},Ln={style:{padding:"4px"}},En={style:{padding:"4px"}},zn={key:0,style:{padding:"4px"}},Vn={style:{padding:"4px"}},jn={style:{padding:"4px"}},Un=["onClick"],Wn={key:0,class:"view"},Gn={style:{padding:"16px 0 512px"}},qn={key:0,class:"preview-switch"},Hn=X({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(s){const o=s,u=Pt(),{scroller:f,stackViewEl:v,props:w,multiSelectedIdxs:C,spinning:P}=Yt().toRefs();f.value,v.value;const{currLocation:h,currPage:I,refresh:m,copyLocation:c,back:b,openNext:k,stack:y,quickMoveTo:A,addToSearchScanPathAndQuickMove:L,locInputValue:R,isLocationEditing:M,onLocEditEnter:E,onEditBtnClick:_,share:B,selectAll:G,onCreateFloderBtnClick:q,onWalkBtnClick:Y,showWalkButton:j,searchInCurrentDir:re,backToLastUseTo:_e,polling:Ge,onPollRefreshClick:he}=Zt(),{gridItems:qe,sortMethodConv:He,moreActionsDropdownShow:Z,sortedFiles:D,sortMethod:le,itemSize:we,loadNextDir:Ke,loadNextDirLoading:Qe,canLoadNext:Je,onScroll:Xe,cellWidth:ee,dirCoverCache:Ye}=en(),{onDrop:Se,onFileDragStart:Ze,onFileDragEnd:et,onFileDropToFolder:tt}=tn(),{onFileItemClick:nt,onContextMenuClick:$e,showGenInfo:te,imageGenInfo:Ie,q:ot}=nn({openNext:k}),{previewIdx:H,onPreviewVisibleChange:at,previewing:se,previewImgMove:Ae,canPreview:Fe,scrollToFileId:rt}=on(),Pe=xt(),{showMenuIdx:ie}=an(),{onClearAllSelected:lt,onReverseSelect:st,onSelectAll:it}=rn(),{getGenDiff:dt,changeIndchecked:K,seedChangeChecked:ne,getRawGenParams:ut,getGenDiffWatchDep:ct}=ln(),pt=async(a,t)=>{await tt(a,t)||await Se(a)},ft=()=>{D.value.length!==0&&Le(D.value,H.value||0)},de=Rt(!1),vt=async()=>{Z.value=!1,de.value=!0;let a;try{F.loading({content:$("flattenFolderScanning"),key:"flatten",duration:0}),a=await Te({folder_path:h.value,dry_run:!0})}catch(t){F.destroy("flatten"),F.error(t.message||String(t)),de.value=!1;return}if(F.destroy("flatten"),de.value=!1,a.total_files===0){F.info($("flattenFolderNoFiles"));return}if(a.conflicts.length>0){fe.error({title:$("flattenFolderConflict"),content:z("div",{},[z("p",{},`${$("flattenFolderConflictFiles")}:`),z("ul",{style:"max-height: 300px; overflow-y: auto;"},a.conflicts.map(t=>z("li",{style:"color: red;"},t)))])});return}fe.confirm({title:$("flattenFolder"),content:z("div",{},[z("p",{style:"color: red; font-weight: bold;"},$("flattenFolderWarning")),z("p",{},$("flattenFolderConfirm",{count:a.total_files}))]),okText:$("confirm"),okType:"danger",cancelText:$("cancel"),onOk:async()=>{var t;try{F.loading({content:$("flattenFolderExecuting"),key:"flatten",duration:0});const S=await Te({folder_path:h.value,dry_run:!1});F.destroy("flatten"),S.success?(F.success($("flattenFolderSuccess",{count:S.moved_files})),m()):F.error(`${$("error")}: ${(t=S.errors)==null?void 0:t.join(", ")}`)}catch(S){F.destroy("flatten"),F.error(S.message||String(S))}}})};return De(()=>o,()=>{w.value=o;const a=sn.get(o.stackKey??"");a&&(y.value=a.slice())},{immediate:!0}),De(()=>Pe.visible,(a,t)=>{if(!a&&t){const S=Pe.lastActiveId;S&&rt(S)}}),(a,t)=>{const S=jt,mt=Ut,gt=fe,kt=Wt,yt=J,Ct=W,xe=Gt,ue=qt,Re=ge,ce=We,bt=Xt,oe=Ht,Me=Kt,_t=Qt,ht=Jt;return g(),O(ht,{spinning:e(P),size:"large"},{default:i(()=>[r(cn,{show:e(u).keepMultiSelect||!!e(C).length,onClearAllSelected:e(lt),onSelectAll:e(it),onReverseSelect:e(st)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),r(S,{style:{display:"none"}}),l("div",{ref_key:"stackViewEl",ref:v,onDragover:t[32]||(t[32]=d(()=>{},["prevent"])),onDrop:t[33]||(t[33]=d(n=>e(Se)(n),["prevent"])),class:"container"},[r(gt,{visible:e(te),"onUpdate:visible":t[1]||(t[1]=n=>N(te)?te.value=n:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=n=>te.value=!1)},{cancelText:i(()=>[]),default:i(()=>[r(mt,{active:"",loading:!e(ot).isIdle},{default:i(()=>[l("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:t[0]||(t[0]=n=>e(Mt)(e(Ie)))},[l("div",Fn,p(a.$t("doubleClickToCopy")),1),V(" "+p(e(Ie)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),l("div",Pn,[l("div",{class:"breadcrumb",style:Bt({flex:e(M)?1:""})},[e(M)?(g(),O(kt,{key:0,style:{flex:"1"},value:e(R),"onUpdate:value":t[3]||(t[3]=n=>N(R)?R.value=n:null),onClick:t[4]||(t[4]=d(()=>{},["stop"])),onKeydown:t[5]||(t[5]=d(()=>{},["stop"])),onPressEnter:e(E),"allow-clear":""},null,8,["value","onPressEnter"])):(g(),O(Ct,{key:1,style:{flex:"1"}},{default:i(()=>[(g(!0),x(ke,null,Oe(e(y),(n,U)=>(g(),O(yt,{key:U},{default:i(()=>[l("a",{onClick:d(pe=>e(b)(U),["prevent"])},p(n.curr==="/"?a.$t("root"):n.curr.replace(/:\/$/,a.$t("drive"))),9,xn)]),_:2},1024))),128))]),_:1})),e(M)?(g(),O(xe,{key:2,size:"small",onClick:e(E),type:"primary"},{default:i(()=>[V(p(a.$t("go")),1)]),_:1},8,["onClick"])):(g(),x("div",Rn,[a.mode==="scanned-fixed"?(g(),x("a",{key:0,onClick:t[6]||(t[6]=d((...n)=>e(_e)&&e(_e)(...n),["prevent"])),style:{margin:"0 8px 16px 0"}},[r(e(Sn))])):T("",!0),l("a",{onClick:t[7]||(t[7]=d((...n)=>e(c)&&e(c)(...n),["prevent"])),class:"copy"},p(a.$t("copy")),1),l("a",{onClick:t[8]||(t[8]=d((...n)=>e(_)&&e(_)(...n),["prevent","stop"]))},p(a.$t("edit")),1)]))],4),l("div",Mn,[l("a",{class:"opt",onClick:t[9]||(t[9]=d((...n)=>e(m)&&e(m)(...n),["prevent"]))},p(a.$t("refresh")),1),l("a",{class:"opt",onClick:d(ft,["prevent"])},p(a.$t("TikTok View")),9,Bn),l("a",{class:"opt",onClick:t[10]||(t[10]=d(n=>e(Dt)(e(h)),["prevent"])),title:a.$t("smartOrganizeHint")},p(a.$t("smartOrganize")),9,Dn),r(ce,null,{overlay:i(()=>[r(Re,null,{default:i(()=>[r(ue,{key:"tag-search"},{default:i(()=>[l("a",{onClick:t[12]||(t[12]=d(n=>e(re)("tag-search"),["prevent"]))},p(a.$t("imgSearch")),1)]),_:1}),r(ue,{key:"tag-search"},{default:i(()=>[l("a",{onClick:t[13]||(t[13]=d(n=>e(re)("fuzzy-search"),["prevent"]))},p(a.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:i(()=>[l("a",{class:"opt",onClick:t[11]||(t[11]=d(()=>{},["prevent"]))},[V(p(a.$t("search"))+" ",1),r(e(me))])]),_:1}),e(j)?(g(),x("a",{key:0,class:"opt",onClick:t[14]||(t[14]=d((...n)=>e(Y)&&e(Y)(...n),["prevent"]))}," Walk ")):T("",!0),l("a",{class:"opt",onClick:t[15]||(t[15]=d((...n)=>e(G)&&e(G)(...n),["prevent","stop"]))},p(a.$t("selectAll")),1),r(ce,null,{overlay:i(()=>[r(Re,null,{default:i(()=>[(g(!0),x(ke,null,Oe(e(u).quickMovePaths,n=>(g(),O(ue,{key:n.dir},{default:i(()=>[l("a",{onClick:d(U=>e(A)(n.dir),["prevent"])},p(n.zh),9,On)]),_:2},1024))),128))]),_:1})]),default:i(()=>[l("a",{class:"opt",onClick:t[16]||(t[16]=d(()=>{},["prevent"]))},[V(p(a.$t("quickMove"))+" ",1),r(e(me))])]),_:1}),r(ce,{trigger:["click"],visible:e(Z),"onUpdate:visible":t[28]||(t[28]=n=>N(Z)?Z.value=n:null),placement:"bottomLeft",getPopupContainer:n=>n.parentNode},{overlay:i(()=>[l("div",Nn,[r(_t,Ot(Nt({labelCol:{span:10},wrapperCol:{span:14}})),{default:i(()=>[r(oe,{label:a.$t("gridCellWidth")},{default:i(()=>[r(bt,{modelValue:e(ee),"onUpdate:modelValue":t[18]||(t[18]=n=>N(ee)?ee.value=n:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),r(oe,{label:a.$t("sortingMethod")},{default:i(()=>[r(e(Tt),{value:e(le),"onUpdate:value":t[19]||(t[19]=n=>N(le)?le.value=n:null),onClick:t[20]||(t[20]=d(()=>{},["stop"])),conv:e(He),options:e(Lt)},null,8,["value","conv","options"])]),_:1},8,["label"]),r(oe,{label:a.$t("showChangeIndicators")},{default:i(()=>[r(Me,{checked:e(K),"onUpdate:checked":t[21]||(t[21]=n=>N(K)?K.value=n:null),onClick:e(ut)},null,8,["checked","onClick"])]),_:1},8,["label"]),r(oe,{label:a.$t("seedAsChange")},{default:i(()=>[r(Me,{checked:e(ne),"onUpdate:checked":t[22]||(t[22]=n=>N(ne)?ne.value=n:null),disabled:!e(K)},null,8,["checked","disabled"])]),_:1},8,["label"]),l("div",Tn,[l("a",{onClick:t[23]||(t[23]=d((...n)=>e(L)&&e(L)(...n),["prevent"]))},p(a.$t("addToSearchScanPathAndQuickMove")),1)]),l("div",Ln,[l("a",{onClick:t[24]||(t[24]=d(n=>e(Et)(e(h)+"/"),["prevent"]))},p(a.$t("openWithLocalFileBrowser")),1)]),l("div",En,[l("a",{onClick:t[25]||(t[25]=d((...n)=>e(he)&&e(he)(...n),["prevent"]))},p(e(Ge)?a.$t("stopPollRefresh"):a.$t("pollRefresh")),1)]),e(zt)?T("",!0):(g(),x("div",zn,[l("a",{onClick:t[26]||(t[26]=d((...n)=>e(B)&&e(B)(...n),["prevent"]))},p(a.$t("share")),1)])),l("div",Vn,[l("a",{onClick:t[27]||(t[27]=d((...n)=>e(q)&&e(q)(...n),["prevent"]))},p(a.$t("createFolder")),1)]),l("div",jn,[l("a",{onClick:d(vt,["prevent"]),style:{color:"#ff4d4f"}},p(a.$t("flattenFolder")),9,Un)])]),_:1},16)])]),default:i(()=>[l("a",{class:"opt",onClick:t[17]||(t[17]=d(()=>{},["prevent"]))},p(a.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(I)?(g(),x("div",Wn,[r(e(dn),{class:"file-list",items:e(D),ref_key:"scroller",ref:f,onScroll:e(Xe),"item-size":e(we).first,"key-field":"fullpath","item-secondary-size":e(we).second,gridItems:e(qe)},{default:i(({item:n,index:U})=>[r(un,{idx:parseInt(U),file:n,"full-screen-preview-image-url":e(D)[e(H)]?e(Vt)(e(D)[e(H)]):"","show-menu-idx":e(ie),"onUpdate:showMenuIdx":t[29]||(t[29]=pe=>N(ie)?ie.value=pe:null),selected:e(C).includes(U),"cell-width":e(ee),onFileItemClick:e(nt),onDragstart:e(Ze),onDragend:e(et),onPreviewVisibleChange:e(at),onContextMenuClick:e($e),onDropToFolder:pt,onTiktokView:(pe,wt)=>e(Le)(e(D),wt),"is-selected-mutil-files":e(C).length>1,"enable-change-indicator":e(K),"seed-change-checked":e(ne),"get-gen-diff":e(dt),"get-gen-diff-watch-dep":e(ct),previewing:e(se),"cover-files":e(Ye).get(n.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","onTiktokView","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:i(()=>[l("div",Gn,[o.mode==="walk"?(g(),O(xe,{key:0,onClick:e(Ke),loading:e(Qe),block:"",type:"primary",disabled:!e(Je),ghost:""},{default:i(()=>[V(p(a.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):T("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(se)?(g(),x("div",qn,[r(e(pn),{onClick:t[30]||(t[30]=n=>e(Ae)("prev")),class:Ne({disable:!e(Fe)("prev")})},null,8,["class"]),r(e(fn),{onClick:t[31]||(t[31]=n=>e(Ae)("next")),class:Ne({disable:!e(Fe)("next")})},null,8,["class"])])):T("",!0)])):T("",!0)],544),e(se)?(g(),O(vn,{key:0,file:e(D)[e(H)],idx:e(H),onContextMenuClick:e($e)},null,8,["file","idx","onContextMenuClick"])):T("",!0),r(An,{"file-num":e(D).length,"selected-file-num":e(C).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const oo=Ue(Hn,[["__scopeId","data-v-188f8e07"]]);export{oo as default};
+import{d as X,u as Ce,g as Q,_ as Ve,c as r,a as ve,P as ae,D as me,f as je,w as St,b as $t,e as It,h as Be,M as ge,i as At,A as Ft,o as g,j as x,k as l,l as V,t as p,F as ke,m as T,n as Ue,p as Pt,q as xt,r as Rt,s as De,v as O,x as i,y as e,z as d,B as N,C as Mt,E as Bt,G as Oe,H as Dt,I as Ot,J as Nt,S as Tt,K as Lt,L as Et,N as zt,O as Vt,Q as Ne,R as F,T as $,U as Te,V as fe,W as z,X as jt,Y as Ut,Z as Wt,$ as Gt,a0 as qt,a1 as Ht,a2 as Kt,a3 as Qt,a4 as Jt}from"./index-c24b5c8e.js";import{_ as Xt}from"./shortcut-4e374057.js";import{D as We}from"./index-5130babf.js";/* empty css *//* empty css */import{u as Yt,a as Zt,b as en,c as tn,d as nn,e as on,f as an,g as rn,h as ln,s as sn,o as Le}from"./index-47a4d52c.js";import{s as dn,F as un}from"./FileItem-c62b10f3.js";import{M as cn,L as pn,R as fn,f as vn}from"./MultiSelectKeep-ea31915e.js";import"./_isIterateeCall-19da1ec8.js";var mn=["class","style"],gn=function(){return{prefixCls:String,href:String,separator:ae.any,overlay:ae.any,onClick:Function}};const J=X({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:gn(),slots:["separator","overlay"],setup:function(o,u){var f=u.slots,v=u.attrs,w=Ce("breadcrumb",o),C=w.prefixCls,P=function(I,m){var c=Q(f,o,"overlay");return c?r(We,{overlay:c,placement:"bottom"},{default:function(){return[r("span",{class:"".concat(m,"-overlay-link")},[I,r(me,null,null)])]}}):I};return function(){var h,I=(h=Q(f,o,"separator"))!==null&&h!==void 0?h:"/",m=Q(f,o),c=v.class,b=v.style,k=Ve(v,mn),y;return o.href!==void 0?y=r("a",ve({class:"".concat(C.value,"-link"),onClick:o.onClick},k),[m]):y=r("span",ve({class:"".concat(C.value,"-link"),onClick:o.onClick},k),[m]),y=P(y,C.value),m?r("span",{class:c,style:b},[y,I&&r("span",{class:"".concat(C.value,"-separator")},[I])]):null}}});var kn=function(){return{prefixCls:String,routes:{type:Array},params:ae.any,separator:ae.any,itemRender:{type:Function}}};function yn(s,o){if(!s.breadcrumbName)return null;var u=Object.keys(o).join("|"),f=s.breadcrumbName.replace(new RegExp(":(".concat(u,")"),"g"),function(v,w){return o[w]||v});return f}function Ee(s){var o=s.route,u=s.params,f=s.routes,v=s.paths,w=f.indexOf(o)===f.length-1,C=yn(o,u);return w?r("span",null,[C]):r("a",{href:"#/".concat(v.join("/"))},[C])}const W=X({compatConfig:{MODE:3},name:"ABreadcrumb",props:kn(),slots:["separator","itemRender"],setup:function(o,u){var f=u.slots,v=Ce("breadcrumb",o),w=v.prefixCls,C=v.direction,P=function(c,b){return c=(c||"").replace(/^\//,""),Object.keys(b).forEach(function(k){c=c.replace(":".concat(k),b[k])}),c},h=function(c,b,k){var y=At(c),A=P(b||"",k);return A&&y.push(A),y},I=function(c){var b=c.routes,k=b===void 0?[]:b,y=c.params,A=y===void 0?{}:y,L=c.separator,R=c.itemRender,M=R===void 0?Ee:R,E=[];return k.map(function(_){var B=P(_.path,A);B&&E.push(B);var G=[].concat(E),q=null;return _.children&&_.children.length&&(q=r(ge,null,{default:function(){return[_.children.map(function(j){return r(ge.Item,{key:j.path||j.breadcrumbName},{default:function(){return[M({route:j,params:A,routes:k,paths:h(G,j.path,A)})]}})})]}})),r(J,{overlay:q,separator:L,key:B||_.breadcrumbName},{default:function(){return[M({route:_,params:A,routes:k,paths:G})]}})})};return function(){var m,c,b,k=o.routes,y=o.params,A=y===void 0?{}:y,L=je(Q(f,o)),R=(m=Q(f,o,"separator"))!==null&&m!==void 0?m:"/",M=o.itemRender||f.itemRender||Ee;k&&k.length>0?b=I({routes:k,params:A,separator:R,itemRender:M}):L.length&&(b=L.map(function(_,B){return St($t(_.type)==="object"&&(_.type.__ANT_BREADCRUMB_ITEM||_.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),It(_,{separator:R,key:B})}));var E=(c={},Be(c,w.value,!0),Be(c,"".concat(w.value,"-rtl"),C.value==="rtl"),c);return r("div",{class:E},[b])}}});var Cn=["separator","class"],bn=function(){return{prefixCls:String}};const ye=X({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:bn(),setup:function(o,u){var f=u.slots,v=u.attrs,w=Ce("breadcrumb",o),C=w.prefixCls;return function(){var P;v.separator;var h=v.class,I=Ve(v,Cn),m=je((P=f.default)===null||P===void 0?void 0:P.call(f));return r("span",ve({class:["".concat(C.value,"-separator"),h]},I),[m.length>0?m:"/"])}}});W.Item=J;W.Separator=ye;W.install=function(s){return s.component(W.name,W),s.component(J.name,J),s.component(ye.name,ye),s};var _n={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 hn=_n;function ze(s){for(var o=1;o(g(),x("div",$n,[l("span",null,[V(p(o.$t("items",[o.fileNum]))+" ",1),o.selectedFileNum?(g(),x(ke,{key:0},[V(", "+p(o.$t("selectedItems",[o.selectedFileNum])),1)],64)):T("",!0)])]))}});const An=Ue(In,[["__scopeId","data-v-7f9c0b15"]]),Fn={class:"hint"},Pn={class:"location-bar"},xn=["onClick"],Rn={key:3,class:"location-act"},Mn={class:"actions"},Bn=["onClick"],Dn=["title"],On=["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)"}},Tn={style:{padding:"4px"}},Ln={style:{padding:"4px"}},En={style:{padding:"4px"}},zn={key:0,style:{padding:"4px"}},Vn={style:{padding:"4px"}},jn={style:{padding:"4px"}},Un=["onClick"],Wn={key:0,class:"view"},Gn={style:{padding:"16px 0 512px"}},qn={key:0,class:"preview-switch"},Hn=X({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(s){const o=s,u=Pt(),{scroller:f,stackViewEl:v,props:w,multiSelectedIdxs:C,spinning:P}=Yt().toRefs();f.value,v.value;const{currLocation:h,currPage:I,refresh:m,copyLocation:c,back:b,openNext:k,stack:y,quickMoveTo:A,addToSearchScanPathAndQuickMove:L,locInputValue:R,isLocationEditing:M,onLocEditEnter:E,onEditBtnClick:_,share:B,selectAll:G,onCreateFloderBtnClick:q,onWalkBtnClick:Y,showWalkButton:j,searchInCurrentDir:re,backToLastUseTo:_e,polling:Ge,onPollRefreshClick:he}=Zt(),{gridItems:qe,sortMethodConv:He,moreActionsDropdownShow:Z,sortedFiles:D,sortMethod:le,itemSize:we,loadNextDir:Ke,loadNextDirLoading:Qe,canLoadNext:Je,onScroll:Xe,cellWidth:ee,dirCoverCache:Ye}=en(),{onDrop:Se,onFileDragStart:Ze,onFileDragEnd:et,onFileDropToFolder:tt}=tn(),{onFileItemClick:nt,onContextMenuClick:$e,showGenInfo:te,imageGenInfo:Ie,q:ot}=nn({openNext:k}),{previewIdx:H,onPreviewVisibleChange:at,previewing:se,previewImgMove:Ae,canPreview:Fe,scrollToFileId:rt}=on(),Pe=xt(),{showMenuIdx:ie}=an(),{onClearAllSelected:lt,onReverseSelect:st,onSelectAll:it}=rn(),{getGenDiff:dt,changeIndchecked:K,seedChangeChecked:ne,getRawGenParams:ut,getGenDiffWatchDep:ct}=ln(),pt=async(a,t)=>{await tt(a,t)||await Se(a)},ft=()=>{D.value.length!==0&&Le(D.value,H.value||0)},de=Rt(!1),vt=async()=>{Z.value=!1,de.value=!0;let a;try{F.loading({content:$("flattenFolderScanning"),key:"flatten",duration:0}),a=await Te({folder_path:h.value,dry_run:!0})}catch(t){F.destroy("flatten"),F.error(t.message||String(t)),de.value=!1;return}if(F.destroy("flatten"),de.value=!1,a.total_files===0){F.info($("flattenFolderNoFiles"));return}if(a.conflicts.length>0){fe.error({title:$("flattenFolderConflict"),content:z("div",{},[z("p",{},`${$("flattenFolderConflictFiles")}:`),z("ul",{style:"max-height: 300px; overflow-y: auto;"},a.conflicts.map(t=>z("li",{style:"color: red;"},t)))])});return}fe.confirm({title:$("flattenFolder"),content:z("div",{},[z("p",{style:"color: red; font-weight: bold;"},$("flattenFolderWarning")),z("p",{},$("flattenFolderConfirm",{count:a.total_files}))]),okText:$("confirm"),okType:"danger",cancelText:$("cancel"),onOk:async()=>{var t;try{F.loading({content:$("flattenFolderExecuting"),key:"flatten",duration:0});const S=await Te({folder_path:h.value,dry_run:!1});F.destroy("flatten"),S.success?(F.success($("flattenFolderSuccess",{count:S.moved_files})),m()):F.error(`${$("error")}: ${(t=S.errors)==null?void 0:t.join(", ")}`)}catch(S){F.destroy("flatten"),F.error(S.message||String(S))}}})};return De(()=>o,()=>{w.value=o;const a=sn.get(o.stackKey??"");a&&(y.value=a.slice())},{immediate:!0}),De(()=>Pe.visible,(a,t)=>{if(!a&&t){const S=Pe.lastActiveId;S&&rt(S)}}),(a,t)=>{const S=jt,mt=Ut,gt=fe,kt=Wt,yt=J,Ct=W,xe=Gt,ue=qt,Re=ge,ce=We,bt=Xt,oe=Ht,Me=Kt,_t=Qt,ht=Jt;return g(),O(ht,{spinning:e(P),size:"large"},{default:i(()=>[r(cn,{show:e(u).keepMultiSelect||!!e(C).length,onClearAllSelected:e(lt),onSelectAll:e(it),onReverseSelect:e(st)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),r(S,{style:{display:"none"}}),l("div",{ref_key:"stackViewEl",ref:v,onDragover:t[32]||(t[32]=d(()=>{},["prevent"])),onDrop:t[33]||(t[33]=d(n=>e(Se)(n),["prevent"])),class:"container"},[r(gt,{visible:e(te),"onUpdate:visible":t[1]||(t[1]=n=>N(te)?te.value=n:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=n=>te.value=!1)},{cancelText:i(()=>[]),default:i(()=>[r(mt,{active:"",loading:!e(ot).isIdle},{default:i(()=>[l("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:t[0]||(t[0]=n=>e(Mt)(e(Ie)))},[l("div",Fn,p(a.$t("doubleClickToCopy")),1),V(" "+p(e(Ie)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),l("div",Pn,[l("div",{class:"breadcrumb",style:Bt({flex:e(M)?1:""})},[e(M)?(g(),O(kt,{key:0,style:{flex:"1"},value:e(R),"onUpdate:value":t[3]||(t[3]=n=>N(R)?R.value=n:null),onClick:t[4]||(t[4]=d(()=>{},["stop"])),onKeydown:t[5]||(t[5]=d(()=>{},["stop"])),onPressEnter:e(E),"allow-clear":""},null,8,["value","onPressEnter"])):(g(),O(Ct,{key:1,style:{flex:"1"}},{default:i(()=>[(g(!0),x(ke,null,Oe(e(y),(n,U)=>(g(),O(yt,{key:U},{default:i(()=>[l("a",{onClick:d(pe=>e(b)(U),["prevent"])},p(n.curr==="/"?a.$t("root"):n.curr.replace(/:\/$/,a.$t("drive"))),9,xn)]),_:2},1024))),128))]),_:1})),e(M)?(g(),O(xe,{key:2,size:"small",onClick:e(E),type:"primary"},{default:i(()=>[V(p(a.$t("go")),1)]),_:1},8,["onClick"])):(g(),x("div",Rn,[a.mode==="scanned-fixed"?(g(),x("a",{key:0,onClick:t[6]||(t[6]=d((...n)=>e(_e)&&e(_e)(...n),["prevent"])),style:{margin:"0 8px 16px 0"}},[r(e(Sn))])):T("",!0),l("a",{onClick:t[7]||(t[7]=d((...n)=>e(c)&&e(c)(...n),["prevent"])),class:"copy"},p(a.$t("copy")),1),l("a",{onClick:t[8]||(t[8]=d((...n)=>e(_)&&e(_)(...n),["prevent","stop"]))},p(a.$t("edit")),1)]))],4),l("div",Mn,[l("a",{class:"opt",onClick:t[9]||(t[9]=d((...n)=>e(m)&&e(m)(...n),["prevent"]))},p(a.$t("refresh")),1),l("a",{class:"opt",onClick:d(ft,["prevent"])},p(a.$t("TikTok View")),9,Bn),l("a",{class:"opt",onClick:t[10]||(t[10]=d(n=>e(Dt)(e(h)),["prevent"])),title:a.$t("smartOrganizeHint")},p(a.$t("smartOrganize")),9,Dn),r(ce,null,{overlay:i(()=>[r(Re,null,{default:i(()=>[r(ue,{key:"tag-search"},{default:i(()=>[l("a",{onClick:t[12]||(t[12]=d(n=>e(re)("tag-search"),["prevent"]))},p(a.$t("imgSearch")),1)]),_:1}),r(ue,{key:"tag-search"},{default:i(()=>[l("a",{onClick:t[13]||(t[13]=d(n=>e(re)("fuzzy-search"),["prevent"]))},p(a.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:i(()=>[l("a",{class:"opt",onClick:t[11]||(t[11]=d(()=>{},["prevent"]))},[V(p(a.$t("search"))+" ",1),r(e(me))])]),_:1}),e(j)?(g(),x("a",{key:0,class:"opt",onClick:t[14]||(t[14]=d((...n)=>e(Y)&&e(Y)(...n),["prevent"]))}," Walk ")):T("",!0),l("a",{class:"opt",onClick:t[15]||(t[15]=d((...n)=>e(G)&&e(G)(...n),["prevent","stop"]))},p(a.$t("selectAll")),1),r(ce,null,{overlay:i(()=>[r(Re,null,{default:i(()=>[(g(!0),x(ke,null,Oe(e(u).quickMovePaths,n=>(g(),O(ue,{key:n.dir},{default:i(()=>[l("a",{onClick:d(U=>e(A)(n.dir),["prevent"])},p(n.zh),9,On)]),_:2},1024))),128))]),_:1})]),default:i(()=>[l("a",{class:"opt",onClick:t[16]||(t[16]=d(()=>{},["prevent"]))},[V(p(a.$t("quickMove"))+" ",1),r(e(me))])]),_:1}),r(ce,{trigger:["click"],visible:e(Z),"onUpdate:visible":t[28]||(t[28]=n=>N(Z)?Z.value=n:null),placement:"bottomLeft",getPopupContainer:n=>n.parentNode},{overlay:i(()=>[l("div",Nn,[r(_t,Ot(Nt({labelCol:{span:10},wrapperCol:{span:14}})),{default:i(()=>[r(oe,{label:a.$t("gridCellWidth")},{default:i(()=>[r(bt,{modelValue:e(ee),"onUpdate:modelValue":t[18]||(t[18]=n=>N(ee)?ee.value=n:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),r(oe,{label:a.$t("sortingMethod")},{default:i(()=>[r(e(Tt),{value:e(le),"onUpdate:value":t[19]||(t[19]=n=>N(le)?le.value=n:null),onClick:t[20]||(t[20]=d(()=>{},["stop"])),conv:e(He),options:e(Lt)},null,8,["value","conv","options"])]),_:1},8,["label"]),r(oe,{label:a.$t("showChangeIndicators")},{default:i(()=>[r(Me,{checked:e(K),"onUpdate:checked":t[21]||(t[21]=n=>N(K)?K.value=n:null),onClick:e(ut)},null,8,["checked","onClick"])]),_:1},8,["label"]),r(oe,{label:a.$t("seedAsChange")},{default:i(()=>[r(Me,{checked:e(ne),"onUpdate:checked":t[22]||(t[22]=n=>N(ne)?ne.value=n:null),disabled:!e(K)},null,8,["checked","disabled"])]),_:1},8,["label"]),l("div",Tn,[l("a",{onClick:t[23]||(t[23]=d((...n)=>e(L)&&e(L)(...n),["prevent"]))},p(a.$t("addToSearchScanPathAndQuickMove")),1)]),l("div",Ln,[l("a",{onClick:t[24]||(t[24]=d(n=>e(Et)(e(h)+"/"),["prevent"]))},p(a.$t("openWithLocalFileBrowser")),1)]),l("div",En,[l("a",{onClick:t[25]||(t[25]=d((...n)=>e(he)&&e(he)(...n),["prevent"]))},p(e(Ge)?a.$t("stopPollRefresh"):a.$t("pollRefresh")),1)]),e(zt)?T("",!0):(g(),x("div",zn,[l("a",{onClick:t[26]||(t[26]=d((...n)=>e(B)&&e(B)(...n),["prevent"]))},p(a.$t("share")),1)])),l("div",Vn,[l("a",{onClick:t[27]||(t[27]=d((...n)=>e(q)&&e(q)(...n),["prevent"]))},p(a.$t("createFolder")),1)]),l("div",jn,[l("a",{onClick:d(vt,["prevent"]),style:{color:"#ff4d4f"}},p(a.$t("flattenFolder")),9,Un)])]),_:1},16)])]),default:i(()=>[l("a",{class:"opt",onClick:t[17]||(t[17]=d(()=>{},["prevent"]))},p(a.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(I)?(g(),x("div",Wn,[r(e(dn),{class:"file-list",items:e(D),ref_key:"scroller",ref:f,onScroll:e(Xe),"item-size":e(we).first,"key-field":"fullpath","item-secondary-size":e(we).second,gridItems:e(qe)},{default:i(({item:n,index:U})=>[r(un,{idx:parseInt(U),file:n,"full-screen-preview-image-url":e(D)[e(H)]?e(Vt)(e(D)[e(H)]):"","show-menu-idx":e(ie),"onUpdate:showMenuIdx":t[29]||(t[29]=pe=>N(ie)?ie.value=pe:null),selected:e(C).includes(U),"cell-width":e(ee),onFileItemClick:e(nt),onDragstart:e(Ze),onDragend:e(et),onPreviewVisibleChange:e(at),onContextMenuClick:e($e),onDropToFolder:pt,onTiktokView:(pe,wt)=>e(Le)(e(D),wt),"is-selected-mutil-files":e(C).length>1,"enable-change-indicator":e(K),"seed-change-checked":e(ne),"get-gen-diff":e(dt),"get-gen-diff-watch-dep":e(ct),previewing:e(se),"cover-files":e(Ye).get(n.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","onTiktokView","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:i(()=>[l("div",Gn,[o.mode==="walk"?(g(),O(xe,{key:0,onClick:e(Ke),loading:e(Qe),block:"",type:"primary",disabled:!e(Je),ghost:""},{default:i(()=>[V(p(a.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):T("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(se)?(g(),x("div",qn,[r(e(pn),{onClick:t[30]||(t[30]=n=>e(Ae)("prev")),class:Ne({disable:!e(Fe)("prev")})},null,8,["class"]),r(e(fn),{onClick:t[31]||(t[31]=n=>e(Ae)("next")),class:Ne({disable:!e(Fe)("next")})},null,8,["class"])])):T("",!0)])):T("",!0)],544),e(se)?(g(),O(vn,{key:0,file:e(D)[e(H)],idx:e(H),onContextMenuClick:e($e)},null,8,["file","idx","onContextMenuClick"])):T("",!0),r(An,{"file-num":e(D).length,"selected-file-num":e(C).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const oo=Ue(Hn,[["__scopeId","data-v-188f8e07"]]);export{oo as default};
diff --git a/vue/dist/index.html b/vue/dist/index.html
index ee23844..0368550 100644
--- a/vue/dist/index.html
+++ b/vue/dist/index.html
@@ -7,7 +7,7 @@
Infinite Image Browsing
-
+
diff --git a/vue/src/i18n/de.ts b/vue/src/i18n/de.ts
index ac22905..400381c 100644
--- a/vue/src/i18n/de.ts
+++ b/vue/src/i18n/de.ts
@@ -269,7 +269,7 @@ export const de: Partial = {
confirmFailed: 'Bestätigung fehlgeschlagen',
organizeComplete: 'Fertig: {moved} Dateien verschoben, {folders} Ordner erstellt',
organizeFailed: 'Organisation fehlgeschlagen',
- smartOrganize: 'Smart Organize',
+ smartOrganize: 'AI Organize',
smartOrganizeHint: 'KI analysiert und organisiert verstreute Dateien in Ordner',
organizeJobStarted: 'Organisationsaufgabe gestartet, Fortschritt im Panel unten rechts',
diff --git a/vue/src/i18n/en.ts b/vue/src/i18n/en.ts
index 4b63525..970e476 100644
--- a/vue/src/i18n/en.ts
+++ b/vue/src/i18n/en.ts
@@ -529,7 +529,7 @@ You can specify which snapshot to restore to when starting IIB in the global set
confirmFailed: 'Confirm failed',
organizeComplete: 'Done: {moved} files moved, {folders} folders created',
organizeFailed: 'Organize failed',
- smartOrganize: 'Smart Organize',
+ smartOrganize: 'AI Organize',
smartOrganizeHint: 'AI will analyze and organize scattered files into folders',
organizeJobStarted: 'Organize task started, check progress in bottom-right panel',
diff --git a/vue/src/i18n/zh-hans.ts b/vue/src/i18n/zh-hans.ts
index a34fbe4..1ff7f05 100644
--- a/vue/src/i18n/zh-hans.ts
+++ b/vue/src/i18n/zh-hans.ts
@@ -507,7 +507,7 @@ export const zhHans = {
confirmFailed: '确认失败',
organizeComplete: '完成:已移动 {moved} 个文件,创建了 {folders} 个文件夹',
organizeFailed: '整理失败',
- smartOrganize: '智能整理',
+ smartOrganize: 'AI整理',
smartOrganizeHint: 'AI 将分析并把零散文件整理到文件夹中',
organizeJobStarted: '整理任务已启动,请在右下角面板查看进度',
diff --git a/vue/src/i18n/zh-hant.ts b/vue/src/i18n/zh-hant.ts
index ef568b6..c5ffbf6 100644
--- a/vue/src/i18n/zh-hant.ts
+++ b/vue/src/i18n/zh-hant.ts
@@ -509,7 +509,7 @@ export const zhHant: Partial = {
confirmFailed: '確認失敗',
organizeComplete: '完成:已移動 {moved} 個檔案,創建了 {folders} 個資料夾',
organizeFailed: '整理失敗',
- smartOrganize: '智能整理',
+ smartOrganize: 'AI整理',
smartOrganizeHint: 'AI 將分析並把零散檔案整理到資料夾中',
organizeJobStarted: '整理任務已啟動,請在右下角面板查看進度',