diff --git a/themes/2024/assets/AdminLayout-V4TGAipv.js b/themes/2024/assets/AdminLayout-CIwHWF3v.js similarity index 97% rename from themes/2024/assets/AdminLayout-V4TGAipv.js rename to themes/2024/assets/AdminLayout-CIwHWF3v.js index 9daf297..7d312e2 100644 --- a/themes/2024/assets/AdminLayout-V4TGAipv.js +++ b/themes/2024/assets/AdminLayout-CIwHWF3v.js @@ -1 +1 @@ -import{c as l,d as _,u as M,r as m,f as p,R as C,a as b,o as h,b as t,n as o,e,i as z,l as i,I as D,t as f,X as L,y as B,D as j,G as E,k as F,E as I,m as N}from"./index-DaP6hnmm.js";import{B as R}from"./box-C2OkK29z.js";const S=l("cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);const V=l("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const Z=l("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);const q=l("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]),A={class:"flex items-center"},$={class:"rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 p-1 animate-spin-slow"},G={class:"flex-1 overflow-y-auto custom-scrollbar"},H={class:"p-4 space-y-2"},O=["onClick"],T={class:"flex-1 flex flex-col h-full"},U={class:"flex items-center justify-between h-16 px-4"},P=_({__name:"AdminLayout",setup(W){const d=D(),{t:n}=M(),a=z("isDarkMode"),x=[{id:"Dashboard",name:n("admin.dashboard.title"),icon:Z,redirect:"/admin/dashboard"},{id:"FileManage",name:n("admin.fileManage.title"),icon:V,redirect:"/admin/files"},{id:"Settings",name:n("admin.settings.title"),icon:S,redirect:"/admin/settings"}],r=m(!0),g=()=>{r.value=!r.value},c=()=>{window.innerWidth>=1024?r.value=!0:r.value=!1};p(()=>{c(),window.addEventListener("resize",c)}),C(()=>{window.removeEventListener("resize",c)});const k=m({page:1,size:10,total:0}),v=async()=>{try{k.value.total=85}catch(u){console.error("加载文件列表失败:",u)}};return p(()=>{v()}),(u,y)=>{const w=E("router-view");return h(),b("div",{class:o(["h-screen flex flex-col lg:flex-row transition-colors duration-300",[e(a)?"bg-gray-900":"bg-gray-50"]])},[t("aside",{class:o(["fixed inset-y-0 border-transparent left-0 z-50 w-64 transform transition-all duration-300 ease-in-out lg:relative lg:translate-x-0 border-r flex flex-col h-full lg:h-screen",[e(a)?"bg-gray-800 bg-opacity-90 backdrop-filter backdrop-blur-xl ":"bg-white ",{"-translate-x-full":!r.value}]])},[t("div",{class:o(["flex items-center justify-between h-16 px-4 border-b",[e(a)?"border-gray-700":"border-gray-200"]])},[t("div",A,[t("div",$,[t("div",{class:o(["rounded-full p-1",[e(a)?"bg-gray-800":"bg-white"]])},[i(e(R),{class:o(["w-6 h-6",[e(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2)]),t("h1",{onClick:y[0]||(y[0]=s=>e(d).push("/")),class:o(["ml-2 text-xl font-semibold cursor-pointer",[e(a)?"text-white":"text-gray-800"]])},f(e(n)("common.appName")),3)]),t("button",{onClick:g,class:"lg:hidden"},[i(e(L),{class:o(["w-6 h-6",[e(a)?"text-gray-400":"text-gray-600"]])},null,8,["class"])])],2),t("nav",G,[t("ul",H,[(h(),b(B,null,j(x,s=>t("li",{key:s.id},[t("a",{onClick:X=>e(d).push(s.redirect),class:o(["flex items-center p-2 rounded-lg transition-colors duration-200",[e(d).currentRoute.value.name===s.id?e(a)?"bg-indigo-900 text-indigo-400":"bg-indigo-100 text-indigo-600":e(a)?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-100"]])},[(h(),F(N(s.icon),{class:"w-5 h-5 mr-3"})),I(" "+f(s.name),1)],10,O)])),64))])])],2),t("div",T,[t("header",{class:o(["shadow-md border-b transition-colors duration-300 h-16",[e(a)?"bg-gray-800 border-gray-700":"bg-white border-gray-200"]])},[t("div",U,[t("button",{onClick:g,class:"lg:hidden"},[i(e(q),{class:o(["w-6 h-6",[e(a)?"text-gray-400":"text-gray-600"]])},null,8,["class"])])])],2),t("main",{class:o(["overflow-y-auto transition-colors duration-300 custom-scrollbar",[e(a)?"bg-gray-900":"bg-gray-50"]])},[i(w)],2)])],2)}}});export{P as default}; +import{c as l,d as _,u as M,r as m,f as p,R as C,a as b,o as h,b as t,n as o,e,i as z,l as i,I as D,t as f,X as L,y as B,D as j,G as E,k as F,E as I,m as N}from"./index-B3zfsvgW.js";import{B as R}from"./box-COy3AQAQ.js";const S=l("cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);const V=l("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const Z=l("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);const q=l("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]),A={class:"flex items-center"},$={class:"rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 p-1 animate-spin-slow"},G={class:"flex-1 overflow-y-auto custom-scrollbar"},H={class:"p-4 space-y-2"},O=["onClick"],T={class:"flex-1 flex flex-col h-full"},U={class:"flex items-center justify-between h-16 px-4"},P=_({__name:"AdminLayout",setup(W){const d=D(),{t:n}=M(),a=z("isDarkMode"),x=[{id:"Dashboard",name:n("admin.dashboard.title"),icon:Z,redirect:"/admin/dashboard"},{id:"FileManage",name:n("admin.fileManage.title"),icon:V,redirect:"/admin/files"},{id:"Settings",name:n("admin.settings.title"),icon:S,redirect:"/admin/settings"}],r=m(!0),g=()=>{r.value=!r.value},c=()=>{window.innerWidth>=1024?r.value=!0:r.value=!1};p(()=>{c(),window.addEventListener("resize",c)}),C(()=>{window.removeEventListener("resize",c)});const k=m({page:1,size:10,total:0}),v=async()=>{try{k.value.total=85}catch(u){console.error("加载文件列表失败:",u)}};return p(()=>{v()}),(u,y)=>{const w=E("router-view");return h(),b("div",{class:o(["h-screen flex flex-col lg:flex-row transition-colors duration-300",[e(a)?"bg-gray-900":"bg-gray-50"]])},[t("aside",{class:o(["fixed inset-y-0 border-transparent left-0 z-50 w-64 transform transition-all duration-300 ease-in-out lg:relative lg:translate-x-0 border-r flex flex-col h-full lg:h-screen",[e(a)?"bg-gray-800 bg-opacity-90 backdrop-filter backdrop-blur-xl ":"bg-white ",{"-translate-x-full":!r.value}]])},[t("div",{class:o(["flex items-center justify-between h-16 px-4 border-b",[e(a)?"border-gray-700":"border-gray-200"]])},[t("div",A,[t("div",$,[t("div",{class:o(["rounded-full p-1",[e(a)?"bg-gray-800":"bg-white"]])},[i(e(R),{class:o(["w-6 h-6",[e(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2)]),t("h1",{onClick:y[0]||(y[0]=s=>e(d).push("/")),class:o(["ml-2 text-xl font-semibold cursor-pointer",[e(a)?"text-white":"text-gray-800"]])},f(e(n)("common.appName")),3)]),t("button",{onClick:g,class:"lg:hidden"},[i(e(L),{class:o(["w-6 h-6",[e(a)?"text-gray-400":"text-gray-600"]])},null,8,["class"])])],2),t("nav",G,[t("ul",H,[(h(),b(B,null,j(x,s=>t("li",{key:s.id},[t("a",{onClick:X=>e(d).push(s.redirect),class:o(["flex items-center p-2 rounded-lg transition-colors duration-200",[e(d).currentRoute.value.name===s.id?e(a)?"bg-indigo-900 text-indigo-400":"bg-indigo-100 text-indigo-600":e(a)?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-100"]])},[(h(),F(N(s.icon),{class:"w-5 h-5 mr-3"})),I(" "+f(s.name),1)],10,O)])),64))])])],2),t("div",T,[t("header",{class:o(["shadow-md border-b transition-colors duration-300 h-16",[e(a)?"bg-gray-800 border-gray-700":"bg-white border-gray-200"]])},[t("div",U,[t("button",{onClick:g,class:"lg:hidden"},[i(e(q),{class:o(["w-6 h-6",[e(a)?"text-gray-400":"text-gray-600"]])},null,8,["class"])])])],2),t("main",{class:o(["overflow-y-auto transition-colors duration-300 custom-scrollbar",[e(a)?"bg-gray-900":"bg-gray-50"]])},[i(w)],2)])],2)}}});export{P as default}; diff --git a/themes/2024/assets/DashboardView-Bi1R6Lfw.js b/themes/2024/assets/DashboardView-CPuETXoG.js similarity index 93% rename from themes/2024/assets/DashboardView-Bi1R6Lfw.js rename to themes/2024/assets/DashboardView-CPuETXoG.js index 8ab594e..7f52287 100644 --- a/themes/2024/assets/DashboardView-Bi1R6Lfw.js +++ b/themes/2024/assets/DashboardView-CPuETXoG.js @@ -1 +1 @@ -import{c as _,d as S,g as x,a as M,o as v,n as d,e as t,i as k,b as s,t as r,k as w,m as D,K as F,u as U,S as B,f as z,l as g,v as m,E as C,V as $}from"./index-DaP6hnmm.js";import{F as T}from"./file-C928Lhos.js";import{H as V}from"./hard-drive-B6XHFjlY.js";const H=_("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const N=_("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),j={class:"flex items-center justify-between"},b=S({__name:"StatCard",props:{title:{},value:{},icon:{},iconColor:{},descriptionType:{default:"neutral"}},setup(f){const l=f,e=k("isDarkMode"),a=x(()=>({indigo:e?"bg-indigo-900":"bg-indigo-100",purple:e?"bg-purple-900":"bg-purple-100",green:e?"bg-green-900":"bg-green-100",blue:e?"bg-blue-900":"bg-blue-100"})[l.iconColor]),h=x(()=>({indigo:e?"text-indigo-400":"text-indigo-600",purple:e?"text-purple-400":"text-purple-600",green:e?"text-green-400":"text-green-600",blue:e?"text-blue-400":"text-blue-600"})[l.iconColor]),p=x(()=>({success:e?"text-green-400":"text-green-600",error:e?"text-red-400":"text-red-600",neutral:e?"text-gray-400":"text-gray-600"})[l.descriptionType]);return(i,o)=>(v(),M("div",{class:d(["p-6 rounded-lg shadow-md transition-colors duration-300",[t(e)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[s("div",j,[s("div",null,[s("p",{class:d(["text-sm",[t(e)?"text-gray-400":"text-gray-600"]])},r(i.title),3),s("h3",{class:d(["text-2xl font-bold mt-1",[t(e)?"text-white":"text-gray-800"]])},r(i.value),3)]),s("div",{class:d(["p-3 rounded-full",a.value])},[(v(),w(D(i.icon),{class:d(["w-6 h-6",h.value])},null,8,["class"]))],2)]),s("p",{class:d(["text-sm mt-2",p.value])},[F(i.$slots,"description")],2)],2))}}),I={class:"p-6 overflow-y-auto custom-scrollbar"},L={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"},A={class:"ml-2"},E={class:"ml-2"},K={class:"text-sm mt-1"},J=S({__name:"DashboardView",setup(f){const l=k("isDarkMode"),{t:e}=U(),a=B({totalFiles:0,storageUsed:0,yesterdayCount:0,todayCount:0,yesterdaySize:0,todaySize:0,sysUptime:0}),h=o=>{const c=new Date().getTime()-o,u=Math.floor(c/(1440*60*1e3)),y=Math.floor(c%(1440*60*1e3)/(3600*1e3));return`${u}天${y}小时`},p=o=>{const n=parseInt(o)/1024,c=n/1024,u=c/1024,y=u/1024;return y>1?`${y.toFixed(2)}TB`:u>1?`${u.toFixed(2)}GB`:c>1?`${c.toFixed(2)}MB`:n>1?`${n.toFixed(2)}KB`:`${o}B`},i=async()=>{const o=await $.getDashboard();o.detail&&(a.totalFiles=o.detail.totalFiles,a.storageUsed=p(o.detail.storageUsed.toString()),a.yesterdaySize=p(o.detail.yesterdaySize.toString()),a.todaySize=p(o.detail.todaySize.toString()),a.yesterdayCount=o.detail.yesterdayCount,a.todayCount=o.detail.todayCount,a.sysUptime=h(Number(o.detail.sysUptime)))};return z(()=>{i()}),(o,n)=>(v(),M("div",I,[s("h2",{class:d(["text-2xl font-bold mb-6",[t(l)?"text-white":"text-gray-800"]])},r(t(e)("admin.dashboard.title")),3),s("div",L,[g(b,{title:t(e)("admin.dashboard.totalFiles"),value:a.totalFiles,icon:t(T),"icon-color":"indigo","description-type":"success"},{description:m(()=>[s("span",null,r(t(e)("admin.dashboard.yesterday"))+":"+r(a.yesterdayCount),1),s("span",A,r(t(e)("admin.dashboard.today"))+":"+r(a.todayCount),1)]),_:1},8,["title","value","icon"]),g(b,{title:t(e)("admin.dashboard.storageSpace"),value:a.storageUsed,icon:t(V),"icon-color":"purple","description-type":"success"},{description:m(()=>[s("span",null,r(t(e)("admin.dashboard.yesterday"))+":"+r(a.yesterdaySize),1),s("span",E,r(t(e)("admin.dashboard.today"))+":"+r(a.todaySize),1)]),_:1},8,["title","value","icon"]),g(b,{title:t(e)("admin.dashboard.activeUsers"),value:"25",icon:t(N),"icon-color":"green","description-type":"error"},{description:m(()=>[s("span",null,r(t(e)("admin.dashboard.weeklyChange")),1)]),_:1},8,["title","icon"]),g(b,{title:t(e)("admin.dashboard.systemStatus"),value:t(e)("admin.dashboard.normal"),icon:t(H),"icon-color":"blue","description-type":"neutral"},{description:m(()=>[C(r(t(e)("admin.dashboard.serverUptime"))+": "+r(a.sysUptime),1)]),_:1},8,["title","value","icon"])]),s("div",{class:d(["mt-auto text-center py-4",[t(l)?"text-gray-400":"text-gray-600"]])},[n[1]||(n[1]=s("p",{class:"text-sm"}," 版本 v2.2.1 更新时间:2025-09-04 ",-1)),s("p",K,[C(" © "+r(new Date().getFullYear())+" ",1),n[0]||(n[0]=s("a",{href:"https://github.com/vastsa/FileCodeBox"},"FileCodeBox",-1))])],2)]))}});export{J as default}; +import{c as _,d as S,g as x,a as M,o as v,n as d,e as t,i as k,b as s,t as r,k as w,m as D,K as F,u as U,V as B,f as z,l as g,v as m,E as C,W as $}from"./index-B3zfsvgW.js";import{F as T}from"./file-Ceuyr6iv.js";import{H as V}from"./hard-drive-5GIKYPKr.js";const H=_("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const N=_("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),j={class:"flex items-center justify-between"},b=S({__name:"StatCard",props:{title:{},value:{},icon:{},iconColor:{},descriptionType:{default:"neutral"}},setup(f){const l=f,e=k("isDarkMode"),a=x(()=>({indigo:e?"bg-indigo-900":"bg-indigo-100",purple:e?"bg-purple-900":"bg-purple-100",green:e?"bg-green-900":"bg-green-100",blue:e?"bg-blue-900":"bg-blue-100"})[l.iconColor]),h=x(()=>({indigo:e?"text-indigo-400":"text-indigo-600",purple:e?"text-purple-400":"text-purple-600",green:e?"text-green-400":"text-green-600",blue:e?"text-blue-400":"text-blue-600"})[l.iconColor]),p=x(()=>({success:e?"text-green-400":"text-green-600",error:e?"text-red-400":"text-red-600",neutral:e?"text-gray-400":"text-gray-600"})[l.descriptionType]);return(i,o)=>(v(),M("div",{class:d(["p-6 rounded-lg shadow-md transition-colors duration-300",[t(e)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[s("div",j,[s("div",null,[s("p",{class:d(["text-sm",[t(e)?"text-gray-400":"text-gray-600"]])},r(i.title),3),s("h3",{class:d(["text-2xl font-bold mt-1",[t(e)?"text-white":"text-gray-800"]])},r(i.value),3)]),s("div",{class:d(["p-3 rounded-full",a.value])},[(v(),w(D(i.icon),{class:d(["w-6 h-6",h.value])},null,8,["class"]))],2)]),s("p",{class:d(["text-sm mt-2",p.value])},[F(i.$slots,"description")],2)],2))}}),I={class:"p-6 overflow-y-auto custom-scrollbar"},L={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"},A={class:"ml-2"},E={class:"ml-2"},K={class:"text-sm mt-1"},Y=S({__name:"DashboardView",setup(f){const l=k("isDarkMode"),{t:e}=U(),a=B({totalFiles:0,storageUsed:0,yesterdayCount:0,todayCount:0,yesterdaySize:0,todaySize:0,sysUptime:0}),h=o=>{const c=new Date().getTime()-o,u=Math.floor(c/(1440*60*1e3)),y=Math.floor(c%(1440*60*1e3)/(3600*1e3));return`${u}天${y}小时`},p=o=>{const n=parseInt(o)/1024,c=n/1024,u=c/1024,y=u/1024;return y>1?`${y.toFixed(2)}TB`:u>1?`${u.toFixed(2)}GB`:c>1?`${c.toFixed(2)}MB`:n>1?`${n.toFixed(2)}KB`:`${o}B`},i=async()=>{const o=await $.getDashboard();o.detail&&(a.totalFiles=o.detail.totalFiles,a.storageUsed=p(o.detail.storageUsed.toString()),a.yesterdaySize=p(o.detail.yesterdaySize.toString()),a.todaySize=p(o.detail.todaySize.toString()),a.yesterdayCount=o.detail.yesterdayCount,a.todayCount=o.detail.todayCount,a.sysUptime=h(Number(o.detail.sysUptime)))};return z(()=>{i()}),(o,n)=>(v(),M("div",I,[s("h2",{class:d(["text-2xl font-bold mb-6",[t(l)?"text-white":"text-gray-800"]])},r(t(e)("admin.dashboard.title")),3),s("div",L,[g(b,{title:t(e)("admin.dashboard.totalFiles"),value:a.totalFiles,icon:t(T),"icon-color":"indigo","description-type":"success"},{description:m(()=>[s("span",null,r(t(e)("admin.dashboard.yesterday"))+":"+r(a.yesterdayCount),1),s("span",A,r(t(e)("admin.dashboard.today"))+":"+r(a.todayCount),1)]),_:1},8,["title","value","icon"]),g(b,{title:t(e)("admin.dashboard.storageSpace"),value:a.storageUsed,icon:t(V),"icon-color":"purple","description-type":"success"},{description:m(()=>[s("span",null,r(t(e)("admin.dashboard.yesterday"))+":"+r(a.yesterdaySize),1),s("span",E,r(t(e)("admin.dashboard.today"))+":"+r(a.todaySize),1)]),_:1},8,["title","value","icon"]),g(b,{title:t(e)("admin.dashboard.activeUsers"),value:"25",icon:t(N),"icon-color":"green","description-type":"error"},{description:m(()=>[s("span",null,r(t(e)("admin.dashboard.weeklyChange")),1)]),_:1},8,["title","icon"]),g(b,{title:t(e)("admin.dashboard.systemStatus"),value:t(e)("admin.dashboard.normal"),icon:t(H),"icon-color":"blue","description-type":"neutral"},{description:m(()=>[C(r(t(e)("admin.dashboard.serverUptime"))+": "+r(a.sysUptime),1)]),_:1},8,["title","value","icon"])]),s("div",{class:d(["mt-auto text-center py-4",[t(l)?"text-gray-400":"text-gray-600"]])},[n[1]||(n[1]=s("p",{class:"text-sm"}," 版本 v2.2.1 更新时间:2025-09-04 ",-1)),s("p",K,[C(" © "+r(new Date().getFullYear())+" ",1),n[0]||(n[0]=s("a",{href:"https://github.com/vastsa/FileCodeBox"},"FileCodeBox",-1))])],2)]))}});export{Y as default}; diff --git a/themes/2024/assets/FileManageView-Dl2tHKSM.js b/themes/2024/assets/FileManageView-D9LkQK2i.js similarity index 92% rename from themes/2024/assets/FileManageView-Dl2tHKSM.js rename to themes/2024/assets/FileManageView-D9LkQK2i.js index 94c8962..9f11177 100644 --- a/themes/2024/assets/FileManageView-Dl2tHKSM.js +++ b/themes/2024/assets/FileManageView-D9LkQK2i.js @@ -1 +1 @@ -import{c as P,d as E,a as x,o as y,n as o,e as t,i as U,b as e,K as H,t as s,y as F,D as A,g as j,l as c,E as b,u as te,r as _,p as oe,j as V,x as k,z as M,W as ae,v as q,Y as L}from"./index-DaP6hnmm.js";import{C as ie}from"./copy-bjFRgEY8.js";import{F as se}from"./file-C928Lhos.js";import{E as re,T as ne}from"./trash-JuhqIjo3.js";const C=P("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const le=P("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const de=P("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const ge=P("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const I=P("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const K=P("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),ce={class:"overflow-x-auto"},ue=E({__name:"DataTable",props:{title:{},headers:{}},setup(T){const h=U("isDarkMode");return(i,a)=>(y(),x("div",{class:o(["rounded-lg shadow-sm overflow-hidden transition-all duration-300",[t(h)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("div",{class:o(["px-6 py-4 border-b",[t(h)?"border-gray-700":"border-gray-200"]])},[e("h3",{class:o(["text-lg font-medium",[t(h)?"text-white":"text-gray-800"]])},s(i.title),3)],2),e("div",ce,[e("table",{class:o(["min-w-full divide-y",[t(h)?"divide-gray-700":"divide-gray-200"]])},[e("thead",{class:o([t(h)?"bg-gray-900/50":"bg-gray-50"])},[e("tr",null,[(y(!0),x(F,null,A(i.headers,v=>(y(),x("th",{key:v,class:o(["px-6 py-3.5 text-left text-xs font-medium uppercase tracking-wider",[t(h)?"text-gray-400":"text-gray-500"]])},s(v),3))),128))])],2),e("tbody",{class:o([t(h)?"bg-gray-800/50 divide-y divide-gray-700":"bg-white divide-y divide-gray-200"])},[H(i.$slots,"body")],2)],2)]),H(i.$slots,"footer")],2))}}),pe={class:"flex items-center space-x-2"},xe=["disabled"],ye={class:"flex items-center space-x-1"},he=["onClick"],fe=["disabled"],me=E({__name:"DataPagination",props:{currentPage:{},pageSize:{},total:{}},emits:["page-change"],setup(T){const h=T,i=U("isDarkMode"),a=j(()=>Math.ceil(h.total/h.pageSize)),v=j(()=>{const d=h.currentPage,p=a.value,g=2,f=[];f.push(1);const u=Math.max(2,d-g),w=Math.min(p-1,d+g);u>2&&f.push("...");for(let m=u;m<=w;m++)f.push(m);return w1&&f.push(p),f});return(d,p)=>(y(),x("div",{class:o(["mt-4 flex items-center justify-between px-6 py-4 border-t",[t(i)?"border-gray-700":"border-gray-200"]])},[e("div",{class:o(["flex items-center text-sm",[t(i)?"text-gray-400":"text-gray-500"]])}," 显示第 "+s((d.currentPage-1)*d.pageSize+1)+" 到 "+s(Math.min(d.currentPage*d.pageSize,d.total))+" 条,共 "+s(d.total)+" 条 ",3),e("div",pe,[e("button",{onClick:p[0]||(p[0]=g=>d.$emit("page-change",d.currentPage-1)),disabled:d.currentPage===1,class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(i)?d.currentPage===1?"bg-gray-800 text-gray-600 cursor-not-allowed":"bg-gray-800 text-gray-300 hover:bg-gray-700":d.currentPage===1?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[c(t(de),{class:"w-4 h-4"}),p[2]||(p[2]=b(" 上一页 ",-1))],10,xe),e("div",ye,[(y(!0),x(F,null,A(v.value,g=>(y(),x(F,{key:g},[g!=="..."?(y(),x("button",{key:0,onClick:f=>d.$emit("page-change",g),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[d.currentPage===g?"bg-indigo-600 text-white":t(i)?"bg-gray-800 text-gray-300 hover:bg-gray-700":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},s(g),11,he)):(y(),x("span",{key:1,class:o(["px-2",[t(i)?"text-gray-400":"text-gray-500"]])}," ... ",2))],64))),128))]),e("button",{onClick:p[1]||(p[1]=g=>d.$emit("page-change",d.currentPage+1)),disabled:d.currentPage>=a.value,class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(i)?d.currentPage>=a.value?"bg-gray-800 text-gray-600 cursor-not-allowed":"bg-gray-800 text-gray-300 hover:bg-gray-700":d.currentPage>=a.value?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[p[3]||(p[3]=b(" 下一页 ",-1)),c(t(le),{class:"w-4 h-4"})],10,fe)])],2))}}),be={class:"p-6 overflow-y-auto custom-scrollbar"},ve={class:"mb-8"},we={class:"flex flex-1 gap-4 w-full sm:w-auto"},_e={class:"relative flex-1"},ke=["placeholder"],Me={class:"px-6 py-4 whitespace-nowrap"},Ce={class:"flex items-center"},Pe={class:"px-6 py-4"},$e={class:"flex items-center group relative"},Se=["title"],ze={class:"absolute left-0 -top-2 -translate-y-full opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none"},Fe={class:"bg-gray-900 text-white text-sm rounded px-2 py-1 max-w-xs break-all"},je={class:"px-6 py-4 whitespace-nowrap"},Te={class:"px-6 py-4"},De={class:"flex items-center gap-2"},Ve=["onClick"],Le={class:"px-6 py-4 whitespace-nowrap"},Ee={class:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"},Ue={class:"flex items-center space-x-2"},Ae=["onClick"],Be=["onClick"],He={key:0,class:"fixed inset-0 z-50","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},qe={class:"fixed inset-0 z-10 overflow-y-auto"},Ie={class:"flex min-h-full items-center justify-center p-4 text-center sm:p-0"},Ke={class:"flex items-center justify-between"},Ye={class:"flex items-center space-x-3"},Re={class:"px-6 py-5"},We={class:"grid gap-6"},Ze={class:"space-y-2 group"},Ge={class:"relative rounded-lg shadow-sm"},Je=["placeholder"],Ne={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},Oe={class:"space-y-2 group"},Qe={class:"relative rounded-lg shadow-sm"},Xe=["placeholder"],et={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},tt={class:"space-y-2 group"},ot={class:"relative rounded-lg shadow-sm"},at=["placeholder"],it={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},st={class:"space-y-2 group"},rt={class:"relative rounded-lg shadow-sm"},nt={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},lt={class:"space-y-2 group"},dt={class:"relative rounded-lg shadow-sm"},gt=["placeholder"],ct={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},ut={key:1,class:"fixed inset-0 z-50","aria-labelledby":"text-preview-title",role:"dialog","aria-modal":"true"},pt={class:"fixed inset-0 z-10 overflow-y-auto"},xt={class:"flex min-h-full items-center justify-center p-4 text-center sm:p-0"},yt={class:"flex items-center justify-between"},ht={class:"flex items-center space-x-3"},ft={class:"px-6 py-4"},_t=E({__name:"FileManageView",setup(T){function h(n){const l=new Date(n),r=l.getFullYear(),z=(l.getMonth()+1).toString().padStart(2,"0"),O=l.getDate().toString().padStart(2,"0"),Q=l.getHours().toString().padStart(2,"0"),X=l.getMinutes().toString().padStart(2,"0"),ee=l.getSeconds().toString().padStart(2,"0");return`${r}-${z}-${O} ${Q}:${X}:${ee}`}const{t:i}=te(),a=U("isDarkMode"),v=_([]),d=oe(),p=j(()=>[i("fileManage.headers.code"),i("fileManage.headers.name"),i("fileManage.headers.size"),i("fileManage.headers.description"),i("fileManage.headers.expiration"),i("fileManage.headers.actions")]),g=_({page:1,size:10,total:0,keyword:""}),f=_(!1),u=_({id:null,code:"",prefix:"",suffix:"",expired_at:"",expired_count:null}),w=_(!1),m=_(""),Y=n=>{m.value=n,w.value=!0},D=()=>{w.value=!1,m.value=""},R=async()=>{try{await navigator.clipboard.writeText(m.value),d.showAlert(i("fileManage.copySuccess"),"success")}catch{d.showAlert(i("fileManage.copyFailed"),"error")}},W=n=>{u.value={id:n.id,code:n.code,prefix:n.prefix,suffix:n.suffix,expired_at:n.expired_at?n.expired_at.slice(0,16):"",expired_count:n.expired_count},f.value=!0},S=()=>{f.value=!1,u.value={id:null,code:"",prefix:"",suffix:"",expired_at:"",expired_count:null}},Z=async()=>{try{await L.updateFile(u.value),await $(),S()}catch(n){const l=n;d.showAlert(l.response?.data?.detail||i("manage.fileManage.updateFailed"),"error")}},G=async n=>{try{await L.deleteAdminFile(n),await $()}catch(l){console.error(i("manage.fileManage.deleteFailed"),l)}},$=async()=>{try{const n=await L.getAdminFileList(g.value);n.detail&&(v.value=n.detail.data,g.value.total=n.detail.total)}catch(n){console.error(i("manage.fileManage.loadFileListFailed"),n)}},J=async n=>{typeof n!="string"&&(n<1||n>N.value||(g.value.page=n,await $()))};$();const N=j(()=>Math.ceil(g.value.total/g.value.size)),B=async()=>{g.value.page=1,await $()};return(n,l)=>(y(),x("div",be,[e("div",ve,[e("h2",{class:o(["text-2xl font-bold mb-4",[t(a)?"text-white":"text-gray-800"]])},s(t(i)("fileManage.title")),3)]),e("div",{class:o(["mb-6 flex flex-col sm:flex-row gap-4 items-start sm:items-center justify-between bg-opacity-70 p-4 rounded-lg shadow-sm",[t(a)?"bg-gray-800":"bg-white"]])},[e("div",we,[e("div",_e,[k(e("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=r=>g.value.keyword=r),onKeyup:ae(B,["enter"]),class:o([t(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400":"bg-white border-gray-300 text-gray-900 placeholder-gray-400","w-full pl-10 pr-4 py-2.5 rounded-lg border focus:ring-2 focus:ring-indigo-500 focus:border-transparent"]),placeholder:t(i)("fileManage.searchPlaceholder")},null,42,ke),[[M,g.value.keyword]]),c(t(K),{class:o(["absolute left-3 top-3 w-5 h-5",[t(a)?"text-gray-400":"text-gray-500"]])},null,8,["class"])]),e("button",{onClick:B,class:"px-4 py-2.5 rounded-lg inline-flex items-center transition-all duration-200 bg-indigo-600 hover:bg-indigo-700 text-white shadow-sm"},[c(t(K),{class:"w-5 h-5 mr-2"}),b(" "+s(t(i)("common.search")),1)])])],2),c(ue,{title:t(i)("fileManage.allFiles"),headers:p.value},{body:q(()=>[(y(!0),x(F,null,A(v.value,r=>(y(),x("tr",{key:r.id,class:o(["hover:bg-opacity-50 transition-colors duration-200",[t(a)?"hover:bg-gray-700":"hover:bg-gray-50"]])},[e("td",Me,[e("div",Ce,[e("span",{class:o(["font-medium select-all",[t(a)?"text-white":"text-gray-900"]])},s(r.code),3)])]),e("td",Pe,[e("div",$e,[c(t(se),{class:o(["w-5 h-5 mr-2 flex-shrink-0",[t(a)?"text-indigo-400":"text-indigo-500"]])},null,8,["class"]),e("span",{class:o(["font-medium truncate max-w-[200px]",[t(a)?"text-white":"text-gray-900"]]),title:r.prefix},s(r.prefix),11,Se),e("div",ze,[e("div",Fe,s(r.prefix),1)])])]),e("td",je,[e("span",{class:o(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",[t(a)?"bg-gray-700 text-gray-300":"bg-gray-100 text-gray-800"]])},s(Math.round(r.size/1024/1024*100)/100)+"MB ",3)]),e("td",Te,[e("div",De,[e("span",{class:o(["block truncate max-w-[200px]",[t(a)?"text-gray-400":"text-gray-500"]])},s(r.text||"-"),3),r.text&&r.text.length>30?(y(),x("button",{key:0,onClick:z=>Y(r.text),class:o(["flex-shrink-0 inline-flex items-center px-2 py-1 rounded text-xs transition-colors duration-200",[t(a)?"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"]])},[c(t(re),{class:"w-3 h-3 mr-1"}),b(" "+s(t(i)("fileManage.viewText")),1)],10,Ve)):V("",!0)])]),e("td",Le,[e("span",{class:o(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",[r.expired_at?t(a)?"bg-yellow-900/30 text-yellow-400":"bg-yellow-100 text-yellow-800":t(a)?"bg-green-900/30 text-green-400":"bg-green-100 text-green-800"]])},s(r.expired_at?h(r.expired_at):t(i)("send.expiration.units.forever")),3)]),e("td",Ee,[e("div",Ue,[e("button",{onClick:z=>W(r),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(a)?"bg-blue-900/20 text-blue-400 hover:bg-blue-900/30":"bg-blue-50 text-blue-600 hover:bg-blue-100"]])},[c(t(I),{class:"w-4 h-4 mr-1.5"}),b(" "+s(t(i)("common.edit")),1)],10,Ae),e("button",{onClick:z=>G(r.id),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(a)?"bg-red-900/20 text-red-400 hover:bg-red-900/30":"bg-red-50 text-red-600 hover:bg-red-100"]])},[c(t(ne),{class:"w-4 h-4 mr-1.5"}),b(" "+s(t(i)("common.delete")),1)],10,Be)])])],2))),128))]),footer:q(()=>[c(me,{"current-page":g.value.page,"page-size":g.value.size,total:g.value.total,onPageChange:J},null,8,["current-page","page-size","total"])]),_:1},8,["title","headers"]),f.value?(y(),x("div",He,[e("div",{class:"fixed inset-0 bg-gradient-to-br from-gray-900/90 to-black/90 backdrop-blur-sm transition-opacity duration-300",onClick:S}),e("div",qe,[e("div",Ie,[e("div",{class:o(["relative transform overflow-hidden rounded-2xl text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-xl animate-modal-scale",[t(a)?"bg-gray-800/95 backdrop-blur-md":"bg-white"]])},[e("div",{class:o(["relative px-6 pt-6 pb-4",[t(a)?"bg-gradient-to-r from-gray-800/50 to-gray-700/50":"bg-gradient-to-r from-gray-50 to-white"]])},[e("div",Ke,[e("div",Ye,[e("div",{class:o(["p-2 rounded-lg",[t(a)?"bg-indigo-500/10":"bg-indigo-50"]])},[c(t(I),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),e("h3",{class:o(["text-xl font-semibold leading-6",[t(a)?"text-white":"text-gray-900"]])},s(t(i)("fileManage.editFileInfo")),3)]),e("button",{onClick:S,class:o(["rounded-lg p-2 transition-all duration-200 hover:rotate-90",[t(a)?"text-gray-400 hover:text-white hover:bg-white/10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"]])},[...l[6]||(l[6]=[e("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],2)])],2),e("div",Re,[e("div",We,[e("div",Ze,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.code")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",Ge,[k(e("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=r=>u.value.code=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.codePlaceholder")},null,10,Je),[[M,u.value.code]]),e("div",Ne,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",Oe,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.filename")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",Qe,[k(e("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=r=>u.value.prefix=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.filenamePlaceholder")},null,10,Xe),[[M,u.value.prefix]]),e("div",et,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",tt,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.suffix")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",ot,[k(e("input",{type:"text","onUpdate:modelValue":l[3]||(l[3]=r=>u.value.suffix=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.suffixPlaceholder")},null,10,at),[[M,u.value.suffix]]),e("div",it,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",st,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("send.expiration.label")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",rt,[k(e("input",{type:"datetime-local","onUpdate:modelValue":l[4]||(l[4]=r=>u.value.expired_at=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]])},null,2),[[M,u.value.expired_at]]),e("div",nt,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",lt,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.downloadLimit")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",dt,[k(e("input",{type:"number","onUpdate:modelValue":l[5]||(l[5]=r=>u.value.expired_count=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.downloadLimitPlaceholder")},null,10,gt),[[M,u.value.expired_count]]),e("div",ct,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])])])]),e("div",{class:o(["flex items-center justify-end gap-3 px-6 py-4 border-t bg-gradient-to-b",[t(a)?"border-gray-700/50 from-gray-800/50 to-gray-800":"border-gray-200 from-gray-50 to-white"]])},[e("button",{onClick:S,class:o(["inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200",[t(a)?"bg-gray-700/50 text-gray-300 hover:bg-gray-600/50 hover:text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},s(t(i)("common.cancel")),3),e("button",{onClick:Z,class:"inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-600 text-white shadow-lg shadow-indigo-500/25 hover:shadow-indigo-500/35"},[c(t(C),{class:"w-4 h-4 mr-2"}),b(" "+s(t(i)("fileManage.saveChanges")),1)])],2)],2)])])])):V("",!0),w.value?(y(),x("div",ut,[e("div",{class:"fixed inset-0 bg-gradient-to-br from-gray-900/90 to-black/90 backdrop-blur-sm transition-opacity duration-300",onClick:D}),e("div",pt,[e("div",xt,[e("div",{class:o(["relative transform overflow-hidden rounded-2xl text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-2xl animate-modal-scale",[t(a)?"bg-gray-800/95 backdrop-blur-md":"bg-white"]])},[e("div",{class:o(["relative px-6 pt-6 pb-4",[t(a)?"bg-gradient-to-r from-gray-800/50 to-gray-700/50":"bg-gradient-to-r from-gray-50 to-white"]])},[e("div",yt,[e("div",ht,[e("div",{class:o(["p-2 rounded-lg",[t(a)?"bg-indigo-500/10":"bg-indigo-50"]])},[c(t(ge),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),e("h3",{class:o(["text-xl font-semibold leading-6",[t(a)?"text-white":"text-gray-900"]])},s(t(i)("fileManage.textPreview")),3)]),e("button",{onClick:D,class:o(["rounded-lg p-2 transition-all duration-200 hover:rotate-90",[t(a)?"text-gray-400 hover:text-white hover:bg-white/10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"]])},[...l[7]||(l[7]=[e("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],2)])],2),e("div",ft,[e("div",{class:o(["max-h-[60vh] overflow-y-auto rounded-lg p-4 custom-scrollbar",[t(a)?"bg-gray-700/50":"bg-gray-50"]])},[e("pre",{class:o(["whitespace-pre-wrap break-words text-sm font-mono",[t(a)?"text-gray-200":"text-gray-700"]])},s(m.value),3)],2),e("div",{class:o(["mt-2 text-xs",[t(a)?"text-gray-500":"text-gray-400"]])},s(t(i)("fileManage.charCount",{count:m.value.length})),3)]),e("div",{class:o(["flex items-center justify-end gap-3 px-6 py-4 border-t",[t(a)?"border-gray-700/50":"border-gray-200"]])},[e("button",{onClick:R,class:o(["inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200",[t(a)?"bg-gray-700/50 text-gray-300 hover:bg-gray-600/50 hover:text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[c(t(ie),{class:"w-4 h-4 mr-2"}),b(" "+s(t(i)("fileManage.copyText")),1)],2),e("button",{onClick:D,class:"inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-600 text-white shadow-lg shadow-indigo-500/25 hover:shadow-indigo-500/35"},s(t(i)("common.close")),1)],2)],2)])])])):V("",!0)]))}});export{_t as default}; +import{c as P,d as E,a as x,o as y,n as o,e as t,i as U,b as e,K as H,t as s,y as F,D as A,g as j,l as c,E as b,u as te,r as _,p as oe,j as V,x as k,z as M,Y as ae,v as q,Z as L}from"./index-B3zfsvgW.js";import{C as ie}from"./copy-DV195_ld.js";import{F as se}from"./file-Ceuyr6iv.js";import{E as re,T as ne}from"./trash-CdDjPTBr.js";const C=P("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const le=P("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const de=P("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const ge=P("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const I=P("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const K=P("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),ce={class:"overflow-x-auto"},ue=E({__name:"DataTable",props:{title:{},headers:{}},setup(T){const h=U("isDarkMode");return(i,a)=>(y(),x("div",{class:o(["rounded-lg shadow-sm overflow-hidden transition-all duration-300",[t(h)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("div",{class:o(["px-6 py-4 border-b",[t(h)?"border-gray-700":"border-gray-200"]])},[e("h3",{class:o(["text-lg font-medium",[t(h)?"text-white":"text-gray-800"]])},s(i.title),3)],2),e("div",ce,[e("table",{class:o(["min-w-full divide-y",[t(h)?"divide-gray-700":"divide-gray-200"]])},[e("thead",{class:o([t(h)?"bg-gray-900/50":"bg-gray-50"])},[e("tr",null,[(y(!0),x(F,null,A(i.headers,v=>(y(),x("th",{key:v,class:o(["px-6 py-3.5 text-left text-xs font-medium uppercase tracking-wider",[t(h)?"text-gray-400":"text-gray-500"]])},s(v),3))),128))])],2),e("tbody",{class:o([t(h)?"bg-gray-800/50 divide-y divide-gray-700":"bg-white divide-y divide-gray-200"])},[H(i.$slots,"body")],2)],2)]),H(i.$slots,"footer")],2))}}),pe={class:"flex items-center space-x-2"},xe=["disabled"],ye={class:"flex items-center space-x-1"},he=["onClick"],fe=["disabled"],me=E({__name:"DataPagination",props:{currentPage:{},pageSize:{},total:{}},emits:["page-change"],setup(T){const h=T,i=U("isDarkMode"),a=j(()=>Math.ceil(h.total/h.pageSize)),v=j(()=>{const d=h.currentPage,p=a.value,g=2,f=[];f.push(1);const u=Math.max(2,d-g),w=Math.min(p-1,d+g);u>2&&f.push("...");for(let m=u;m<=w;m++)f.push(m);return w1&&f.push(p),f});return(d,p)=>(y(),x("div",{class:o(["mt-4 flex items-center justify-between px-6 py-4 border-t",[t(i)?"border-gray-700":"border-gray-200"]])},[e("div",{class:o(["flex items-center text-sm",[t(i)?"text-gray-400":"text-gray-500"]])}," 显示第 "+s((d.currentPage-1)*d.pageSize+1)+" 到 "+s(Math.min(d.currentPage*d.pageSize,d.total))+" 条,共 "+s(d.total)+" 条 ",3),e("div",pe,[e("button",{onClick:p[0]||(p[0]=g=>d.$emit("page-change",d.currentPage-1)),disabled:d.currentPage===1,class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(i)?d.currentPage===1?"bg-gray-800 text-gray-600 cursor-not-allowed":"bg-gray-800 text-gray-300 hover:bg-gray-700":d.currentPage===1?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[c(t(de),{class:"w-4 h-4"}),p[2]||(p[2]=b(" 上一页 ",-1))],10,xe),e("div",ye,[(y(!0),x(F,null,A(v.value,g=>(y(),x(F,{key:g},[g!=="..."?(y(),x("button",{key:0,onClick:f=>d.$emit("page-change",g),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[d.currentPage===g?"bg-indigo-600 text-white":t(i)?"bg-gray-800 text-gray-300 hover:bg-gray-700":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},s(g),11,he)):(y(),x("span",{key:1,class:o(["px-2",[t(i)?"text-gray-400":"text-gray-500"]])}," ... ",2))],64))),128))]),e("button",{onClick:p[1]||(p[1]=g=>d.$emit("page-change",d.currentPage+1)),disabled:d.currentPage>=a.value,class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(i)?d.currentPage>=a.value?"bg-gray-800 text-gray-600 cursor-not-allowed":"bg-gray-800 text-gray-300 hover:bg-gray-700":d.currentPage>=a.value?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[p[3]||(p[3]=b(" 下一页 ",-1)),c(t(le),{class:"w-4 h-4"})],10,fe)])],2))}}),be={class:"p-6 overflow-y-auto custom-scrollbar"},ve={class:"mb-8"},we={class:"flex flex-1 gap-4 w-full sm:w-auto"},_e={class:"relative flex-1"},ke=["placeholder"],Me={class:"px-6 py-4 whitespace-nowrap"},Ce={class:"flex items-center"},Pe={class:"px-6 py-4"},$e={class:"flex items-center group relative"},Se=["title"],ze={class:"absolute left-0 -top-2 -translate-y-full opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none"},Fe={class:"bg-gray-900 text-white text-sm rounded px-2 py-1 max-w-xs break-all"},je={class:"px-6 py-4 whitespace-nowrap"},Te={class:"px-6 py-4"},De={class:"flex items-center gap-2"},Ve=["onClick"],Le={class:"px-6 py-4 whitespace-nowrap"},Ee={class:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"},Ue={class:"flex items-center space-x-2"},Ae=["onClick"],Be=["onClick"],He={key:0,class:"fixed inset-0 z-50","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},qe={class:"fixed inset-0 z-10 overflow-y-auto"},Ie={class:"flex min-h-full items-center justify-center p-4 text-center sm:p-0"},Ke={class:"flex items-center justify-between"},Ye={class:"flex items-center space-x-3"},Ze={class:"px-6 py-5"},Re={class:"grid gap-6"},Ge={class:"space-y-2 group"},Je={class:"relative rounded-lg shadow-sm"},Ne=["placeholder"],Oe={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},Qe={class:"space-y-2 group"},We={class:"relative rounded-lg shadow-sm"},Xe=["placeholder"],et={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},tt={class:"space-y-2 group"},ot={class:"relative rounded-lg shadow-sm"},at=["placeholder"],it={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},st={class:"space-y-2 group"},rt={class:"relative rounded-lg shadow-sm"},nt={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},lt={class:"space-y-2 group"},dt={class:"relative rounded-lg shadow-sm"},gt=["placeholder"],ct={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},ut={key:1,class:"fixed inset-0 z-50","aria-labelledby":"text-preview-title",role:"dialog","aria-modal":"true"},pt={class:"fixed inset-0 z-10 overflow-y-auto"},xt={class:"flex min-h-full items-center justify-center p-4 text-center sm:p-0"},yt={class:"flex items-center justify-between"},ht={class:"flex items-center space-x-3"},ft={class:"px-6 py-4"},_t=E({__name:"FileManageView",setup(T){function h(n){const l=new Date(n),r=l.getFullYear(),z=(l.getMonth()+1).toString().padStart(2,"0"),Q=l.getDate().toString().padStart(2,"0"),W=l.getHours().toString().padStart(2,"0"),X=l.getMinutes().toString().padStart(2,"0"),ee=l.getSeconds().toString().padStart(2,"0");return`${r}-${z}-${Q} ${W}:${X}:${ee}`}const{t:i}=te(),a=U("isDarkMode"),v=_([]),d=oe(),p=j(()=>[i("fileManage.headers.code"),i("fileManage.headers.name"),i("fileManage.headers.size"),i("fileManage.headers.description"),i("fileManage.headers.expiration"),i("fileManage.headers.actions")]),g=_({page:1,size:10,total:0,keyword:""}),f=_(!1),u=_({id:null,code:"",prefix:"",suffix:"",expired_at:"",expired_count:null}),w=_(!1),m=_(""),Y=n=>{m.value=n,w.value=!0},D=()=>{w.value=!1,m.value=""},Z=async()=>{try{await navigator.clipboard.writeText(m.value),d.showAlert(i("fileManage.copySuccess"),"success")}catch{d.showAlert(i("fileManage.copyFailed"),"error")}},R=n=>{u.value={id:n.id,code:n.code,prefix:n.prefix,suffix:n.suffix,expired_at:n.expired_at?n.expired_at.slice(0,16):"",expired_count:n.expired_count},f.value=!0},S=()=>{f.value=!1,u.value={id:null,code:"",prefix:"",suffix:"",expired_at:"",expired_count:null}},G=async()=>{try{await L.updateFile(u.value),await $(),S()}catch(n){const l=n;d.showAlert(l.response?.data?.detail||i("manage.fileManage.updateFailed"),"error")}},J=async n=>{try{await L.deleteAdminFile(n),await $()}catch(l){console.error(i("manage.fileManage.deleteFailed"),l)}},$=async()=>{try{const n=await L.getAdminFileList(g.value);n.detail&&(v.value=n.detail.data,g.value.total=n.detail.total)}catch(n){console.error(i("manage.fileManage.loadFileListFailed"),n)}},N=async n=>{typeof n!="string"&&(n<1||n>O.value||(g.value.page=n,await $()))};$();const O=j(()=>Math.ceil(g.value.total/g.value.size)),B=async()=>{g.value.page=1,await $()};return(n,l)=>(y(),x("div",be,[e("div",ve,[e("h2",{class:o(["text-2xl font-bold mb-4",[t(a)?"text-white":"text-gray-800"]])},s(t(i)("fileManage.title")),3)]),e("div",{class:o(["mb-6 flex flex-col sm:flex-row gap-4 items-start sm:items-center justify-between bg-opacity-70 p-4 rounded-lg shadow-sm",[t(a)?"bg-gray-800":"bg-white"]])},[e("div",we,[e("div",_e,[k(e("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=r=>g.value.keyword=r),onKeyup:ae(B,["enter"]),class:o([t(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400":"bg-white border-gray-300 text-gray-900 placeholder-gray-400","w-full pl-10 pr-4 py-2.5 rounded-lg border focus:ring-2 focus:ring-indigo-500 focus:border-transparent"]),placeholder:t(i)("fileManage.searchPlaceholder")},null,42,ke),[[M,g.value.keyword]]),c(t(K),{class:o(["absolute left-3 top-3 w-5 h-5",[t(a)?"text-gray-400":"text-gray-500"]])},null,8,["class"])]),e("button",{onClick:B,class:"px-4 py-2.5 rounded-lg inline-flex items-center transition-all duration-200 bg-indigo-600 hover:bg-indigo-700 text-white shadow-sm"},[c(t(K),{class:"w-5 h-5 mr-2"}),b(" "+s(t(i)("common.search")),1)])])],2),c(ue,{title:t(i)("fileManage.allFiles"),headers:p.value},{body:q(()=>[(y(!0),x(F,null,A(v.value,r=>(y(),x("tr",{key:r.id,class:o(["hover:bg-opacity-50 transition-colors duration-200",[t(a)?"hover:bg-gray-700":"hover:bg-gray-50"]])},[e("td",Me,[e("div",Ce,[e("span",{class:o(["font-medium select-all",[t(a)?"text-white":"text-gray-900"]])},s(r.code),3)])]),e("td",Pe,[e("div",$e,[c(t(se),{class:o(["w-5 h-5 mr-2 flex-shrink-0",[t(a)?"text-indigo-400":"text-indigo-500"]])},null,8,["class"]),e("span",{class:o(["font-medium truncate max-w-[200px]",[t(a)?"text-white":"text-gray-900"]]),title:r.prefix},s(r.prefix),11,Se),e("div",ze,[e("div",Fe,s(r.prefix),1)])])]),e("td",je,[e("span",{class:o(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",[t(a)?"bg-gray-700 text-gray-300":"bg-gray-100 text-gray-800"]])},s(Math.round(r.size/1024/1024*100)/100)+"MB ",3)]),e("td",Te,[e("div",De,[e("span",{class:o(["block truncate max-w-[200px]",[t(a)?"text-gray-400":"text-gray-500"]])},s(r.text||"-"),3),r.text&&r.text.length>30?(y(),x("button",{key:0,onClick:z=>Y(r.text),class:o(["flex-shrink-0 inline-flex items-center px-2 py-1 rounded text-xs transition-colors duration-200",[t(a)?"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"]])},[c(t(re),{class:"w-3 h-3 mr-1"}),b(" "+s(t(i)("fileManage.viewText")),1)],10,Ve)):V("",!0)])]),e("td",Le,[e("span",{class:o(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",[r.expired_at?t(a)?"bg-yellow-900/30 text-yellow-400":"bg-yellow-100 text-yellow-800":t(a)?"bg-green-900/30 text-green-400":"bg-green-100 text-green-800"]])},s(r.expired_at?h(r.expired_at):t(i)("send.expiration.units.forever")),3)]),e("td",Ee,[e("div",Ue,[e("button",{onClick:z=>R(r),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(a)?"bg-blue-900/20 text-blue-400 hover:bg-blue-900/30":"bg-blue-50 text-blue-600 hover:bg-blue-100"]])},[c(t(I),{class:"w-4 h-4 mr-1.5"}),b(" "+s(t(i)("common.edit")),1)],10,Ae),e("button",{onClick:z=>J(r.id),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(a)?"bg-red-900/20 text-red-400 hover:bg-red-900/30":"bg-red-50 text-red-600 hover:bg-red-100"]])},[c(t(ne),{class:"w-4 h-4 mr-1.5"}),b(" "+s(t(i)("common.delete")),1)],10,Be)])])],2))),128))]),footer:q(()=>[c(me,{"current-page":g.value.page,"page-size":g.value.size,total:g.value.total,onPageChange:N},null,8,["current-page","page-size","total"])]),_:1},8,["title","headers"]),f.value?(y(),x("div",He,[e("div",{class:"fixed inset-0 bg-gradient-to-br from-gray-900/90 to-black/90 backdrop-blur-sm transition-opacity duration-300",onClick:S}),e("div",qe,[e("div",Ie,[e("div",{class:o(["relative transform overflow-hidden rounded-2xl text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-xl animate-modal-scale",[t(a)?"bg-gray-800/95 backdrop-blur-md":"bg-white"]])},[e("div",{class:o(["relative px-6 pt-6 pb-4",[t(a)?"bg-gradient-to-r from-gray-800/50 to-gray-700/50":"bg-gradient-to-r from-gray-50 to-white"]])},[e("div",Ke,[e("div",Ye,[e("div",{class:o(["p-2 rounded-lg",[t(a)?"bg-indigo-500/10":"bg-indigo-50"]])},[c(t(I),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),e("h3",{class:o(["text-xl font-semibold leading-6",[t(a)?"text-white":"text-gray-900"]])},s(t(i)("fileManage.editFileInfo")),3)]),e("button",{onClick:S,class:o(["rounded-lg p-2 transition-all duration-200 hover:rotate-90",[t(a)?"text-gray-400 hover:text-white hover:bg-white/10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"]])},[...l[6]||(l[6]=[e("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],2)])],2),e("div",Ze,[e("div",Re,[e("div",Ge,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.code")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",Je,[k(e("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=r=>u.value.code=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.codePlaceholder")},null,10,Ne),[[M,u.value.code]]),e("div",Oe,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",Qe,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.filename")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",We,[k(e("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=r=>u.value.prefix=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.filenamePlaceholder")},null,10,Xe),[[M,u.value.prefix]]),e("div",et,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",tt,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.suffix")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",ot,[k(e("input",{type:"text","onUpdate:modelValue":l[3]||(l[3]=r=>u.value.suffix=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.suffixPlaceholder")},null,10,at),[[M,u.value.suffix]]),e("div",it,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",st,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("send.expiration.label")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",rt,[k(e("input",{type:"datetime-local","onUpdate:modelValue":l[4]||(l[4]=r=>u.value.expired_at=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]])},null,2),[[M,u.value.expired_at]]),e("div",nt,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",lt,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,s(t(i)("fileManage.form.downloadLimit")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",dt,[k(e("input",{type:"number","onUpdate:modelValue":l[5]||(l[5]=r=>u.value.expired_count=r),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.downloadLimitPlaceholder")},null,10,gt),[[M,u.value.expired_count]]),e("div",ct,[c(t(C),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])])])]),e("div",{class:o(["flex items-center justify-end gap-3 px-6 py-4 border-t bg-gradient-to-b",[t(a)?"border-gray-700/50 from-gray-800/50 to-gray-800":"border-gray-200 from-gray-50 to-white"]])},[e("button",{onClick:S,class:o(["inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200",[t(a)?"bg-gray-700/50 text-gray-300 hover:bg-gray-600/50 hover:text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},s(t(i)("common.cancel")),3),e("button",{onClick:G,class:"inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-600 text-white shadow-lg shadow-indigo-500/25 hover:shadow-indigo-500/35"},[c(t(C),{class:"w-4 h-4 mr-2"}),b(" "+s(t(i)("fileManage.saveChanges")),1)])],2)],2)])])])):V("",!0),w.value?(y(),x("div",ut,[e("div",{class:"fixed inset-0 bg-gradient-to-br from-gray-900/90 to-black/90 backdrop-blur-sm transition-opacity duration-300",onClick:D}),e("div",pt,[e("div",xt,[e("div",{class:o(["relative transform overflow-hidden rounded-2xl text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-2xl animate-modal-scale",[t(a)?"bg-gray-800/95 backdrop-blur-md":"bg-white"]])},[e("div",{class:o(["relative px-6 pt-6 pb-4",[t(a)?"bg-gradient-to-r from-gray-800/50 to-gray-700/50":"bg-gradient-to-r from-gray-50 to-white"]])},[e("div",yt,[e("div",ht,[e("div",{class:o(["p-2 rounded-lg",[t(a)?"bg-indigo-500/10":"bg-indigo-50"]])},[c(t(ge),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),e("h3",{class:o(["text-xl font-semibold leading-6",[t(a)?"text-white":"text-gray-900"]])},s(t(i)("fileManage.textPreview")),3)]),e("button",{onClick:D,class:o(["rounded-lg p-2 transition-all duration-200 hover:rotate-90",[t(a)?"text-gray-400 hover:text-white hover:bg-white/10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"]])},[...l[7]||(l[7]=[e("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],2)])],2),e("div",ft,[e("div",{class:o(["max-h-[60vh] overflow-y-auto rounded-lg p-4 custom-scrollbar",[t(a)?"bg-gray-700/50":"bg-gray-50"]])},[e("pre",{class:o(["whitespace-pre-wrap break-words text-sm font-mono",[t(a)?"text-gray-200":"text-gray-700"]])},s(m.value),3)],2),e("div",{class:o(["mt-2 text-xs",[t(a)?"text-gray-500":"text-gray-400"]])},s(t(i)("fileManage.charCount",{count:m.value.length})),3)]),e("div",{class:o(["flex items-center justify-end gap-3 px-6 py-4 border-t",[t(a)?"border-gray-700/50":"border-gray-200"]])},[e("button",{onClick:Z,class:o(["inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200",[t(a)?"bg-gray-700/50 text-gray-300 hover:bg-gray-600/50 hover:text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[c(t(ie),{class:"w-4 h-4 mr-2"}),b(" "+s(t(i)("fileManage.copyText")),1)],2),e("button",{onClick:D,class:"inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-600 text-white shadow-lg shadow-indigo-500/25 hover:shadow-indigo-500/35"},s(t(i)("common.close")),1)],2)],2)])])])):V("",!0)]))}});export{_t as default}; diff --git a/themes/2024/assets/LoginView-BiEXW3sl.js b/themes/2024/assets/LoginView-BiEXW3sl.js deleted file mode 100644 index c7b4070..0000000 --- a/themes/2024/assets/LoginView-BiEXW3sl.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as y,r as c,a0 as u,g as b,d as w,p as x,a as h,o as S,b as e,n as d,e as i,i as A,l as k,h as I,x as D,z as N,E as T,t as _,a1 as E,I as M,_ as O}from"./index-DaP6hnmm.js";import{B as V}from"./box-C2OkK29z.js";const j=y("admin",()=>{const p=c(localStorage.getItem(u.ADMIN_PASSWORD)||""),s=c(localStorage.getItem(u.TOKEN)||""),a=c(!1),l=c(null),n=b(()=>a.value&&!!s.value),f=o=>{p.value=o,localStorage.setItem(u.ADMIN_PASSWORD,o)},g=o=>{s.value=o,localStorage.setItem(u.TOKEN,o)},m=o=>{l.value=o,a.value=!0,g(o.token)};return{adminPassword:p,token:s,isLoggedIn:a,userInfo:l,isAuthenticated:n,updateAdminPassword:f,setToken:g,setUserInfo:m,login:o=>{m(o)},logout:()=>{p.value="",s.value="",a.value=!1,l.value=null,localStorage.removeItem(u.ADMIN_PASSWORD),localStorage.removeItem(u.TOKEN)},initAuth:()=>{const o=localStorage.getItem(u.TOKEN);o&&(s.value=o,a.value=!0)}}}),B=j,K={class:"mx-auto h-16 w-16 relative"},P={class:"rounded-md shadow-sm -space-y-px"},R=["disabled"],z=w({__name:"LoginView",setup(p){const s=x(),a=c(""),l=c(!1),n=A("isDarkMode"),f=B(),g=()=>{let r=!0;return a.value?a.value.length<6&&(s.showAlert("密码长度至少为6位","error"),r=!1):(s.showAlert("无效的密码","error"),r=!1),r},m=M(),v=async()=>{if(g()){l.value=!0;try{const r=await E.login(a.value);r.detail?.token?(f.setToken(r.detail.token),m.push("/admin")):s.showAlert("登录失败:未获取到有效令牌","error")}catch(r){const t=r&&typeof r=="object"&&"response"in r&&r.response?.data?.detail||"登录失败";s.showAlert(t,"error")}finally{l.value=!1}}};return(r,t)=>(S(),h("div",{class:d(["min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 transition-colors duration-200 relative overflow-hidden",i(n)?"bg-gray-900":"bg-gray-50"])},[t[6]||(t[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:d(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[i(n)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",K,[t[1]||(t[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full animate-spin-slow"},null,-1)),t[2]||(t[2]=e("div",{class:"absolute -inset-2 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full opacity-50 blur-md animate-pulse"},null,-1)),e("div",{class:d(["absolute inset-1 rounded-full flex items-center justify-center",i(n)?"bg-gray-800":"bg-white"])},[k(i(V),{class:d(["h-8 w-8",i(n)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:d(["mt-6 text-center text-3xl font-extrabold",i(n)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:I(v,["prevent"])},[t[5]||(t[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",P,[e("div",null,[t[3]||(t[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),D(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),class:d(["appearance-none rounded-t-md relative block w-full px-4 py-3 border transition-all duration-200 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-cyan-500 focus:z-10 sm:text-sm backdrop-blur-sm",i(n)?"bg-gray-800/50 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"bg-white/50 border-gray-300 text-gray-900 hover:border-gray-400"]),placeholder:"密码"},null,2),[[N,a.value]])])]),e("div",null,[e("button",{type:"submit",class:d(["group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white transition-all duration-300 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 shadow-lg hover:shadow-cyan-500/50",i(n)?"bg-gradient-to-r from-cyan-500 to-purple-500 hover:from-cyan-600 hover:to-purple-600":"bg-gradient-to-r from-cyan-600 to-purple-600 hover:from-cyan-700 hover:to-purple-700",l.value?"opacity-75 cursor-not-allowed":""]),disabled:l.value},[t[4]||(t[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),T(" "+_(l.value?"登录中...":"登录"),1)],10,R)])],32)],2)],2))}}),C=O(z,[["__scopeId","data-v-894571a2"]]);export{C as default}; diff --git a/themes/2024/assets/LoginView-DN8sBu46.js b/themes/2024/assets/LoginView-DN8sBu46.js new file mode 100644 index 0000000..04f5ce7 --- /dev/null +++ b/themes/2024/assets/LoginView-DN8sBu46.js @@ -0,0 +1 @@ +import{Q as y,r as c,S as u,g as b,d as w,p as x,a as h,o as S,b as e,n as d,e as i,i as A,l as k,h as I,x as D,z as N,E as T,t as _,a1 as E,I as M,_ as O}from"./index-B3zfsvgW.js";import{B as V}from"./box-COy3AQAQ.js";const j=y("admin",()=>{const p=c(localStorage.getItem(u.ADMIN_PASSWORD)||""),s=c(localStorage.getItem(u.TOKEN)||""),a=c(!1),l=c(null),n=b(()=>a.value&&!!s.value),f=o=>{p.value=o,localStorage.setItem(u.ADMIN_PASSWORD,o)},g=o=>{s.value=o,localStorage.setItem(u.TOKEN,o)},m=o=>{l.value=o,a.value=!0,g(o.token)};return{adminPassword:p,token:s,isLoggedIn:a,userInfo:l,isAuthenticated:n,updateAdminPassword:f,setToken:g,setUserInfo:m,login:o=>{m(o)},logout:()=>{p.value="",s.value="",a.value=!1,l.value=null,localStorage.removeItem(u.ADMIN_PASSWORD),localStorage.removeItem(u.TOKEN)},initAuth:()=>{const o=localStorage.getItem(u.TOKEN);o&&(s.value=o,a.value=!0)}}}),B=j,K={class:"mx-auto h-16 w-16 relative"},P={class:"rounded-md shadow-sm -space-y-px"},R=["disabled"],z=w({__name:"LoginView",setup(p){const s=x(),a=c(""),l=c(!1),n=A("isDarkMode"),f=B(),g=()=>{let r=!0;return a.value?a.value.length<6&&(s.showAlert("密码长度至少为6位","error"),r=!1):(s.showAlert("无效的密码","error"),r=!1),r},m=M(),v=async()=>{if(g()){l.value=!0;try{const r=await E.login(a.value);r.detail?.token?(f.setToken(r.detail.token),m.push("/admin")):s.showAlert("登录失败:未获取到有效令牌","error")}catch(r){const t=r&&typeof r=="object"&&"response"in r&&r.response?.data?.detail||"登录失败";s.showAlert(t,"error")}finally{l.value=!1}}};return(r,t)=>(S(),h("div",{class:d(["min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 transition-colors duration-200 relative overflow-hidden",i(n)?"bg-gray-900":"bg-gray-50"])},[t[6]||(t[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:d(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[i(n)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",K,[t[1]||(t[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full animate-spin-slow"},null,-1)),t[2]||(t[2]=e("div",{class:"absolute -inset-2 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full opacity-50 blur-md animate-pulse"},null,-1)),e("div",{class:d(["absolute inset-1 rounded-full flex items-center justify-center",i(n)?"bg-gray-800":"bg-white"])},[k(i(V),{class:d(["h-8 w-8",i(n)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:d(["mt-6 text-center text-3xl font-extrabold",i(n)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:I(v,["prevent"])},[t[5]||(t[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",P,[e("div",null,[t[3]||(t[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),D(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),class:d(["appearance-none rounded-t-md relative block w-full px-4 py-3 border transition-all duration-200 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-cyan-500 focus:z-10 sm:text-sm backdrop-blur-sm",i(n)?"bg-gray-800/50 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"bg-white/50 border-gray-300 text-gray-900 hover:border-gray-400"]),placeholder:"密码"},null,2),[[N,a.value]])])]),e("div",null,[e("button",{type:"submit",class:d(["group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white transition-all duration-300 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 shadow-lg hover:shadow-cyan-500/50",i(n)?"bg-gradient-to-r from-cyan-500 to-purple-500 hover:from-cyan-600 hover:to-purple-600":"bg-gradient-to-r from-cyan-600 to-purple-600 hover:from-cyan-700 hover:to-purple-700",l.value?"opacity-75 cursor-not-allowed":""]),disabled:l.value},[t[4]||(t[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),T(" "+_(l.value?"登录中...":"登录"),1)],10,R)])],32)],2)],2))}}),C=O(z,[["__scopeId","data-v-894571a2"]]);export{C as default}; diff --git a/themes/2024/assets/PageHeader-Dda1k_N5.js b/themes/2024/assets/PageHeader-Y9MICulD.js similarity index 99% rename from themes/2024/assets/PageHeader-Dda1k_N5.js rename to themes/2024/assets/PageHeader-Y9MICulD.js index 6ed2427..1e580a4 100644 --- a/themes/2024/assets/PageHeader-Dda1k_N5.js +++ b/themes/2024/assets/PageHeader-Y9MICulD.js @@ -1 +1 @@ -import{c as J,d as G,N,r as R,O as Z,f as ne,y as oe,Q as ie,g as B,U as x,p as se,a as le,o as ue,b as H,l as ce,e as X,n as de,i as fe,t as he,_ as ve}from"./index-DaP6hnmm.js";import{B as ge}from"./box-C2OkK29z.js";const xe=J("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);const He=J("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var D=function(){return D=Object.assign||function(c){for(var u,l=1,f=arguments.length;la.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var s=[],i=0;i7)throw new RangeError("Invalid value");var h,p;for(h=r;;h++){var M=a.getNumDataCodewords(h,t)*8,w=v.getTotalBits(e,h);if(w<=M){p=w;break}if(h>=n)throw new RangeError("Data too long")}for(var C=0,S=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C>>3]|=k<<7-(Q&7)}),new a(h,t,T,s)},a.prototype.getModule=function(e,t){return 0<=e&&e>>9)*1335;var s=(t<<10|r)^21522;f(s>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,l(s,n));this.setFunctionModule(8,7,l(s,6)),this.setFunctionModule(8,8,l(s,7)),this.setFunctionModule(7,8,l(s,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,l(s,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,l(s,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,l(s,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;f(r>>>18==0);for(var t=0;t<18;t++){var n=l(r,t),s=this.size-11+t%3,i=Math.floor(t/3);this.setFunctionModule(s,i,n),this.setFunctionModule(i,s,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var s=Math.max(Math.abs(n),Math.abs(r)),i=e+n,h=t+r;0<=i&&i=h)&&E.push(b[y])})},C=0;C=1;r-=2){r==6&&(r=5);for(var n=0;n>>3],7-(t&7)),t++)}}f(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t5&&e++):(this.finderPenaltyAddHistory(n,s),r||(e+=this.finderPenaltyCountPatterns(s)*a.PENALTY_N3),r=this.modules[t][i],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,s)*a.PENALTY_N3}for(var i=0;i5&&e++):(this.finderPenaltyAddHistory(h,s),r||(e+=this.finderPenaltyCountPatterns(s)*a.PENALTY_N3),r=this.modules[t][i],h=1);e+=this.finderPenaltyTerminateAndCount(r,h,s)*a.PENALTY_N3}for(var t=0;ta.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return f(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return f(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];f(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=c;function u(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function l(a,e){return(a>>>e&1)!=0}function f(a){if(!a)throw new Error("Assertion error")}var v=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r=1<=c.y+c.h?u:u.map(function(f,v){return v=c.x+c.w?f:!1})})}var q={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:Y,validator:function(o){return W(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},me=D(D({},q),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),Ce=G({name:"QRCodeSvg",props:q,setup:function(o){var c=R(0),u=R(""),l,f=function(){var a=o.value,e=o.level,t=o.margin,r=t>>>0,n=W(e)?e:Y,s=U.QrCode.encodeText(a,K[n]).getModules();if(c.value=s.length+r*2,o.imageSettings.src){var i=ee(s,o.size,r,o.imageSettings);l={x:i.x+r,y:i.y+r,width:i.w,height:i.h},i.excavation&&(s=te(s,i.excavation))}u.value=j(s,r)},v=function(){if(!o.gradient)return null;var a=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return N(o.gradientType==="linear"?"linearGradient":"radialGradient",D({id:"qr-gradient"},a),[N("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),N("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])};return f(),Z(f),function(){return N("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(c.value," ").concat(c.value)},[N("defs",{},[v()]),N("rect",{width:"100%",height:"100%",fill:o.background}),N("path",{fill:o.gradient?"url(#qr-gradient)":o.foreground,d:u.value}),o.imageSettings.src&&N("image",D({href:o.imageSettings.src},l))])}}}),we=G({name:"QRCodeCanvas",props:q,setup:function(o,c){var u=R(null),l=R(null),f=function(){var a=o.value,e=o.level,t=o.size,r=o.margin,n=o.background,s=o.foreground,i=o.gradient,h=o.gradientType,p=o.gradientStartColor,M=o.gradientEndColor,w=r>>>0,C=W(e)?e:Y,S=u.value;if(S){var m=S.getContext("2d");if(m){var g=U.QrCode.encodeText(a,K[C]).getModules(),E=g.length+w*2,P=l.value,y={x:0,y:0,width:0,height:0},b=o.imageSettings.src&&P!=null&&P.naturalWidth!==0&&P.naturalHeight!==0;if(b){var A=ee(g,o.size,w,o.imageSettings);y={x:A.x+w,y:A.y+w,width:A.w,height:A.h},A.excavation&&(g=te(g,A.excavation))}var O=window.devicePixelRatio||1,L=t/E*O;if(S.height=S.width=t*O,m.scale(L,L),m.fillStyle=n,m.fillRect(0,0,E,E),i){var I=void 0;h==="linear"?I=m.createLinearGradient(0,0,E,E):I=m.createRadialGradient(E/2,E/2,0,E/2,E/2,E/2),I.addColorStop(0,p),I.addColorStop(1,M),m.fillStyle=I}else m.fillStyle=s;pe?m.fill(new Path2D(j(g,w))):g.forEach(function(T,k){T.forEach(function(Q,V){Q&&m.fillRect(V+w,k+w,1,1)})}),b&&m.drawImage(P,y.x,y.y,y.width,y.height)}}};ne(f),Z(f);var v=c.attrs.style;return function(){return N(oe,[N("canvas",D(D({},c.attrs),{ref:u,style:D(D({},v),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&N("img",{ref:l,src:o.imageSettings.src,style:{display:"none"},onLoad:f})])}}}),Ge=G({name:"Qrcode",render:function(){var o=this.$props,c=o.renderAs,u=o.value,l=o.size,f=o.margin,v=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,s=o.gradientStartColor,i=o.gradientEndColor;return N(c==="svg"?Ce:we,{value:u,size:l,margin:f,level:v,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:s,gradientEndColor:i})},props:me});const $e=ie("fileData",()=>{const o=R(x.IDLE),c=R({loaded:0,total:0,percentage:0}),u=R(""),l=R(null),f=R(""),v=R(null),a=R(!1),e=R([]),t=R(0),r=R(1),n=R(10),s=R(!1),i=R([]),h=R([]),p=B(()=>o.value===x.UPLOADING),M=B(()=>o.value===x.SUCCESS),w=B(()=>o.value===x.ERROR),C=B(()=>v.value!==null),S=B(()=>C.value&&!a.value),m=B(()=>Math.ceil(t.value/n.value)),g=d=>{o.value=d},E=d=>{c.value=d},P=d=>{u.value=d},y=d=>{l.value=d},b=()=>{o.value=x.IDLE,c.value={loaded:0,total:0,percentage:0},u.value="",l.value=null},A=d=>{f.value=d},O=d=>{v.value=d},L=d=>{a.value=d},I=()=>{f.value="",v.value=null,a.value=!1},T=d=>{e.value=d},k=d=>{e.value.unshift(d),t.value+=1};return{uploadStatus:o,uploadProgress:c,uploadedCode:u,currentFile:l,downloadCode:f,fileInfo:v,isDownloading:a,fileList:e,totalFiles:t,currentPage:r,pageSize:n,isLoadingList:s,isUploading:p,isUploadSuccess:M,isUploadError:w,hasFileInfo:C,canDownload:S,totalPages:m,setUploadStatus:g,setUploadProgress:E,setUploadedCode:P,setCurrentFile:y,resetUpload:b,setDownloadCode:A,setFileInfo:O,setDownloading:L,resetDownload:I,setFileList:T,addFile:k,removeFile:d=>{const _=e.value.findIndex(z=>z.id===d);_>-1&&(e.value.splice(_,1),t.value-=1)},updateFile:(d,_)=>{const z=e.value.findIndex(ae=>ae.id===d);z>-1&&(e.value[z]={...e.value[z],..._})},setTotalFiles:d=>{t.value=d},setCurrentPage:d=>{r.value=d},setPageSize:d=>{n.value=d},setLoadingList:d=>{s.value=d},resetFileList:()=>{e.value=[],t.value=0,r.value=1,s.value=!1},addShareData:d=>{if(P(d.code),d.name){const _={id:d.code,name:d.name,size:0,type:"",uploadTime:new Date().toISOString(),downloadCount:0};k(_)}},receiveData:i,addReceiveData:d=>{i.value.push(d)},removeReceiveData:d=>{const _=i.value.findIndex(z=>z.id===d);_>-1&&i.value.splice(_,1)},deleteReceiveData:d=>{d>-1&&d{i.value=[]},shareData:h,addShareDataRecord:d=>{h.value.push(d)},deleteShareData:d=>{d>-1&&d{h.value=[]}}}),re=async(o,c={})=>{const{successMsg:u="复制成功",errorMsg:l="复制失败,请手动复制",showMsg:f=!0}=c,v=se();try{if(document.hasFocus()&&navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(o),f&&v.showAlert(u,"success"),!0;const a=document.createElement("textarea");a.value=o,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select();const e=document.execCommand("copy");if(document.body.removeChild(a),e)return f&&v.showAlert(u,"success"),!0;throw new Error("execCommand copy failed")}catch(a){return console.error("复制失败:",a),f&&v.showAlert(l,"error"),!1}},Ye=async o=>{const c=`${window.location.origin}/#/?code=${o}`;return re(c,{successMsg:"取件链接已复制到剪贴板",errorMsg:"复制失败,请手动复制取件链接"})},Ke=async o=>re(o,{successMsg:"取件码已复制到剪贴板",errorMsg:"复制失败,请手动复制取件码"}),Ee=window.location.origin+"/",We=(o,c)=>{const u=`wget ${Ee}share/select?code=${o} -O "${c}"`;navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(u).then(()=>{console.log("命令已复制到剪贴板!")}).catch(l=>{console.error("复制失败,使用回退方法:",l),$(u)}):(console.warn("Clipboard API 不可用,使用回退方法。"),$(u))};function $(o){const c=document.createElement("textarea");c.value=o,c.style.position="fixed",document.body.appendChild(c),c.focus(),c.select();try{const u=document.execCommand("copy");console.log("回退复制操作成功:",u),document.hasFocus()&&navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(o):$(o)}catch(u){console.error("回退复制操作失败:",u)}document.body.removeChild(c)}const Me={class:"text-center"},Re={class:"flex justify-center mb-8"},Se={class:"rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 p-1 animate-spin-slow"},ye={class:"rounded-full bg-gray-900 p-2"},Pe=G({__name:"PageHeader",props:{title:{}},emits:["title-click"],setup(o){const c=fe("isDarkMode");return(u,l)=>(ue(),le("div",Me,[H("div",Re,[H("div",Se,[H("div",ye,[ce(X(ge),{class:"w-8 h-8 text-white"})])])]),H("h2",{onClick:l[0]||(l[0]=f=>u.$emit("title-click")),class:de(["text-3xl cursor-pointer font-extrabold text-center mb-6",[X(c)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]])},he(u.title),3)]))}}),qe=ve(Pe,[["__scopeId","data-v-2a18d8c8"]]);export{xe as C,qe as P,Ge as Q,He as S,We as a,Ye as b,Ke as c,re as d,$e as u}; +import{c as J,d as G,N,r as R,O as Z,f as ne,y as oe,Q as ie,g as B,U as x,p as se,a as le,o as ue,b as H,l as ce,e as X,n as de,i as fe,t as he,_ as ve}from"./index-B3zfsvgW.js";import{B as ge}from"./box-COy3AQAQ.js";const xe=J("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);const He=J("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var D=function(){return D=Object.assign||function(c){for(var u,l=1,f=arguments.length;la.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var s=[],i=0;i7)throw new RangeError("Invalid value");var h,p;for(h=r;;h++){var M=a.getNumDataCodewords(h,t)*8,w=v.getTotalBits(e,h);if(w<=M){p=w;break}if(h>=n)throw new RangeError("Data too long")}for(var C=0,S=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C>>3]|=k<<7-(Q&7)}),new a(h,t,T,s)},a.prototype.getModule=function(e,t){return 0<=e&&e>>9)*1335;var s=(t<<10|r)^21522;f(s>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,l(s,n));this.setFunctionModule(8,7,l(s,6)),this.setFunctionModule(8,8,l(s,7)),this.setFunctionModule(7,8,l(s,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,l(s,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,l(s,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,l(s,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;f(r>>>18==0);for(var t=0;t<18;t++){var n=l(r,t),s=this.size-11+t%3,i=Math.floor(t/3);this.setFunctionModule(s,i,n),this.setFunctionModule(i,s,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var s=Math.max(Math.abs(n),Math.abs(r)),i=e+n,h=t+r;0<=i&&i=h)&&E.push(b[y])})},C=0;C=1;r-=2){r==6&&(r=5);for(var n=0;n>>3],7-(t&7)),t++)}}f(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t5&&e++):(this.finderPenaltyAddHistory(n,s),r||(e+=this.finderPenaltyCountPatterns(s)*a.PENALTY_N3),r=this.modules[t][i],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,s)*a.PENALTY_N3}for(var i=0;i5&&e++):(this.finderPenaltyAddHistory(h,s),r||(e+=this.finderPenaltyCountPatterns(s)*a.PENALTY_N3),r=this.modules[t][i],h=1);e+=this.finderPenaltyTerminateAndCount(r,h,s)*a.PENALTY_N3}for(var t=0;ta.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return f(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return f(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];f(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=c;function u(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function l(a,e){return(a>>>e&1)!=0}function f(a){if(!a)throw new Error("Assertion error")}var v=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r=1<=c.y+c.h?u:u.map(function(f,v){return v=c.x+c.w?f:!1})})}var q={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:Y,validator:function(o){return W(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},me=D(D({},q),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),Ce=G({name:"QRCodeSvg",props:q,setup:function(o){var c=R(0),u=R(""),l,f=function(){var a=o.value,e=o.level,t=o.margin,r=t>>>0,n=W(e)?e:Y,s=U.QrCode.encodeText(a,K[n]).getModules();if(c.value=s.length+r*2,o.imageSettings.src){var i=ee(s,o.size,r,o.imageSettings);l={x:i.x+r,y:i.y+r,width:i.w,height:i.h},i.excavation&&(s=te(s,i.excavation))}u.value=j(s,r)},v=function(){if(!o.gradient)return null;var a=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return N(o.gradientType==="linear"?"linearGradient":"radialGradient",D({id:"qr-gradient"},a),[N("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),N("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])};return f(),Z(f),function(){return N("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(c.value," ").concat(c.value)},[N("defs",{},[v()]),N("rect",{width:"100%",height:"100%",fill:o.background}),N("path",{fill:o.gradient?"url(#qr-gradient)":o.foreground,d:u.value}),o.imageSettings.src&&N("image",D({href:o.imageSettings.src},l))])}}}),we=G({name:"QRCodeCanvas",props:q,setup:function(o,c){var u=R(null),l=R(null),f=function(){var a=o.value,e=o.level,t=o.size,r=o.margin,n=o.background,s=o.foreground,i=o.gradient,h=o.gradientType,p=o.gradientStartColor,M=o.gradientEndColor,w=r>>>0,C=W(e)?e:Y,S=u.value;if(S){var m=S.getContext("2d");if(m){var g=U.QrCode.encodeText(a,K[C]).getModules(),E=g.length+w*2,P=l.value,y={x:0,y:0,width:0,height:0},b=o.imageSettings.src&&P!=null&&P.naturalWidth!==0&&P.naturalHeight!==0;if(b){var A=ee(g,o.size,w,o.imageSettings);y={x:A.x+w,y:A.y+w,width:A.w,height:A.h},A.excavation&&(g=te(g,A.excavation))}var O=window.devicePixelRatio||1,L=t/E*O;if(S.height=S.width=t*O,m.scale(L,L),m.fillStyle=n,m.fillRect(0,0,E,E),i){var I=void 0;h==="linear"?I=m.createLinearGradient(0,0,E,E):I=m.createRadialGradient(E/2,E/2,0,E/2,E/2,E/2),I.addColorStop(0,p),I.addColorStop(1,M),m.fillStyle=I}else m.fillStyle=s;pe?m.fill(new Path2D(j(g,w))):g.forEach(function(T,k){T.forEach(function(Q,V){Q&&m.fillRect(V+w,k+w,1,1)})}),b&&m.drawImage(P,y.x,y.y,y.width,y.height)}}};ne(f),Z(f);var v=c.attrs.style;return function(){return N(oe,[N("canvas",D(D({},c.attrs),{ref:u,style:D(D({},v),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&N("img",{ref:l,src:o.imageSettings.src,style:{display:"none"},onLoad:f})])}}}),Ge=G({name:"Qrcode",render:function(){var o=this.$props,c=o.renderAs,u=o.value,l=o.size,f=o.margin,v=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,s=o.gradientStartColor,i=o.gradientEndColor;return N(c==="svg"?Ce:we,{value:u,size:l,margin:f,level:v,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:s,gradientEndColor:i})},props:me});const $e=ie("fileData",()=>{const o=R(x.IDLE),c=R({loaded:0,total:0,percentage:0}),u=R(""),l=R(null),f=R(""),v=R(null),a=R(!1),e=R([]),t=R(0),r=R(1),n=R(10),s=R(!1),i=R([]),h=R([]),p=B(()=>o.value===x.UPLOADING),M=B(()=>o.value===x.SUCCESS),w=B(()=>o.value===x.ERROR),C=B(()=>v.value!==null),S=B(()=>C.value&&!a.value),m=B(()=>Math.ceil(t.value/n.value)),g=d=>{o.value=d},E=d=>{c.value=d},P=d=>{u.value=d},y=d=>{l.value=d},b=()=>{o.value=x.IDLE,c.value={loaded:0,total:0,percentage:0},u.value="",l.value=null},A=d=>{f.value=d},O=d=>{v.value=d},L=d=>{a.value=d},I=()=>{f.value="",v.value=null,a.value=!1},T=d=>{e.value=d},k=d=>{e.value.unshift(d),t.value+=1};return{uploadStatus:o,uploadProgress:c,uploadedCode:u,currentFile:l,downloadCode:f,fileInfo:v,isDownloading:a,fileList:e,totalFiles:t,currentPage:r,pageSize:n,isLoadingList:s,isUploading:p,isUploadSuccess:M,isUploadError:w,hasFileInfo:C,canDownload:S,totalPages:m,setUploadStatus:g,setUploadProgress:E,setUploadedCode:P,setCurrentFile:y,resetUpload:b,setDownloadCode:A,setFileInfo:O,setDownloading:L,resetDownload:I,setFileList:T,addFile:k,removeFile:d=>{const _=e.value.findIndex(z=>z.id===d);_>-1&&(e.value.splice(_,1),t.value-=1)},updateFile:(d,_)=>{const z=e.value.findIndex(ae=>ae.id===d);z>-1&&(e.value[z]={...e.value[z],..._})},setTotalFiles:d=>{t.value=d},setCurrentPage:d=>{r.value=d},setPageSize:d=>{n.value=d},setLoadingList:d=>{s.value=d},resetFileList:()=>{e.value=[],t.value=0,r.value=1,s.value=!1},addShareData:d=>{if(P(d.code),d.name){const _={id:d.code,name:d.name,size:0,type:"",uploadTime:new Date().toISOString(),downloadCount:0};k(_)}},receiveData:i,addReceiveData:d=>{i.value.push(d)},removeReceiveData:d=>{const _=i.value.findIndex(z=>z.id===d);_>-1&&i.value.splice(_,1)},deleteReceiveData:d=>{d>-1&&d{i.value=[]},shareData:h,addShareDataRecord:d=>{h.value.push(d)},deleteShareData:d=>{d>-1&&d{h.value=[]}}}),re=async(o,c={})=>{const{successMsg:u="复制成功",errorMsg:l="复制失败,请手动复制",showMsg:f=!0}=c,v=se();try{if(document.hasFocus()&&navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(o),f&&v.showAlert(u,"success"),!0;const a=document.createElement("textarea");a.value=o,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select();const e=document.execCommand("copy");if(document.body.removeChild(a),e)return f&&v.showAlert(u,"success"),!0;throw new Error("execCommand copy failed")}catch(a){return console.error("复制失败:",a),f&&v.showAlert(l,"error"),!1}},Ye=async o=>{const c=`${window.location.origin}/#/?code=${o}`;return re(c,{successMsg:"取件链接已复制到剪贴板",errorMsg:"复制失败,请手动复制取件链接"})},Ke=async o=>re(o,{successMsg:"取件码已复制到剪贴板",errorMsg:"复制失败,请手动复制取件码"}),Ee=window.location.origin+"/",We=(o,c)=>{const u=`wget ${Ee}share/select?code=${o} -O "${c}"`;navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(u).then(()=>{console.log("命令已复制到剪贴板!")}).catch(l=>{console.error("复制失败,使用回退方法:",l),$(u)}):(console.warn("Clipboard API 不可用,使用回退方法。"),$(u))};function $(o){const c=document.createElement("textarea");c.value=o,c.style.position="fixed",document.body.appendChild(c),c.focus(),c.select();try{const u=document.execCommand("copy");console.log("回退复制操作成功:",u),document.hasFocus()&&navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(o):$(o)}catch(u){console.error("回退复制操作失败:",u)}document.body.removeChild(c)}const Me={class:"text-center"},Re={class:"flex justify-center mb-8"},Se={class:"rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 p-1 animate-spin-slow"},ye={class:"rounded-full bg-gray-900 p-2"},Pe=G({__name:"PageHeader",props:{title:{}},emits:["title-click"],setup(o){const c=fe("isDarkMode");return(u,l)=>(ue(),le("div",Me,[H("div",Re,[H("div",Se,[H("div",ye,[ce(X(ge),{class:"w-8 h-8 text-white"})])])]),H("h2",{onClick:l[0]||(l[0]=f=>u.$emit("title-click")),class:de(["text-3xl cursor-pointer font-extrabold text-center mb-6",[X(c)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]])},he(u.title),3)]))}}),qe=ve(Pe,[["__scopeId","data-v-2a18d8c8"]]);export{xe as C,qe as P,Ge as Q,He as S,We as a,Ye as b,Ke as c,re as d,$e as u}; diff --git a/themes/2024/assets/RetrievewFileView-CSTBscGQ.js b/themes/2024/assets/RetrievewFileView-CWZH6U-r.js similarity index 99% rename from themes/2024/assets/RetrievewFileView-CSTBscGQ.js rename to themes/2024/assets/RetrievewFileView-CWZH6U-r.js index 32c66e3..09bded9 100644 --- a/themes/2024/assets/RetrievewFileView-CSTBscGQ.js +++ b/themes/2024/assets/RetrievewFileView-CWZH6U-r.js @@ -1,4 +1,4 @@ -import{c as Pt,d as be,u as We,r as K,w as Dt,a as W,o as P,h as zt,b,n as T,e as d,i as xe,t as R,x as cr,j as ge,z as ur,l as L,_ as Re,G as pr,v as Le,E as me,k as Ut,T as Ft,K as hr,X as Nn,H as dr,y as fr,D as gr,p as mr,L as kr,f as br,M as xr,I as wr,J as yr}from"./index-DaP6hnmm.js";import{S as _r,C as Tr,Q as vr,u as Ar,P as Er,d as Sr}from"./PageHeader-Dda1k_N5.js";import{F as Pn}from"./file-C928Lhos.js";import{H as Rr}from"./hard-drive-B6XHFjlY.js";import{E as Lr,T as Cr}from"./trash-JuhqIjo3.js";import{C as Dr}from"./copy-bjFRgEY8.js";import"./box-C2OkK29z.js";const Ir=Pt("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const $r=Pt("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const zn=Pt("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Mr={class:"mb-6 relative"},Or={class:"relative"},Nr=["placeholder","readonly"],Pr={key:0,class:"absolute inset-y-0 right-0 flex items-center pr-3"},zr=["disabled"],Ur={class:"flex items-center justify-center relative z-10"},Fr=be({__name:"RetrieveForm",props:{inputStatus:{},error:{type:Boolean}},emits:["submit","update:code"],setup(r,{expose:e,emit:t}){const{t:s}=We(),n=t,l=xe("isDarkMode"),i=K(""),a=K(!1),u=K();return Dt(i,c=>{n("update:code",c)}),e({focus:()=>u.value?.focus()}),(c,h)=>(P(),W("form",{onSubmit:h[3]||(h[3]=zt(m=>c.$emit("submit"),["prevent"]))},[b("div",Mr,[b("label",{for:"code",class:T(["block text-sm font-medium mb-2",[d(l)?"text-gray-300":"text-gray-800"]])},R(d(s)("retrieve.codeInput.label")),3),b("div",Or,[cr(b("input",{id:"code","onUpdate:modelValue":h[0]||(h[0]=m=>i.value=m),type:"text",ref_key:"codeInput",ref:u,class:T(["w-full px-4 py-3 rounded-lg placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 pr-10",[d(l)?"bg-gray-700 bg-opacity-50":"bg-gray-100",{"ring-2 ring-red-500":c.error},d(l)?"text-gray-300":"text-gray-800"]]),placeholder:d(s)("retrieve.codeInput.placeholder"),required:"",readonly:c.inputStatus.readonly,maxlength:"5",onFocus:h[1]||(h[1]=m=>a.value=!0),onBlur:h[2]||(h[2]=m=>a.value=!1)},null,42,Nr),[[ur,i.value]]),c.inputStatus.loading?(P(),W("div",Pr,[...h[4]||(h[4]=[b("span",{class:"animate-spin rounded-full h-5 w-5 border-b-2 border-indigo-500"},null,-1)])])):ge("",!0)]),b("div",{class:T(["absolute -bottom-0.5 left-2 h-0.5 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 transition-all duration-300 ease-in-out",{"w-97-100":a.value,"w-0":!a.value}])},null,2)]),b("button",{type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-3 px-4 rounded-lg hover:from-indigo-600 hover:via-purple-600 hover:to-pink-600 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group",disabled:c.inputStatus.loading},[b("span",Ur,[b("span",null,R(c.inputStatus.loading?d(s)("common.loading"):d(s)("retrieve.submit")),1),L(d(Ir),{class:"w-5 h-5 ml-2 transition-transform duration-300 transform group-hover:translate-x-1"})]),h[5]||(h[5]=b("span",{class:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},null,-1))],8,zr)],32))}}),Br=Re(Fr,[["__scopeId","data-v-8f0be1b0"]]),Hr={key:0,class:"mb-6 text-center"},Gr=be({__name:"PageFooter",props:{linkText:{},linkTo:{},drawerText:{}},emits:["toggle-drawer"],setup(r){const{t:e}=We(),t=xe("isDarkMode");return(s,n)=>{const l=pr("router-link");return P(),W("div",null,[s.linkText&&s.linkTo?(P(),W("div",Hr,[L(l,{to:s.linkTo,class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:Le(()=>[me(R(s.linkText),1)]),_:1},8,["to"])])):ge("",!0),b("div",{class:T(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[d(t)?"bg-gray-800":"bg-gray-100"]])},[b("span",{class:T(["text-sm flex items-center",[d(t)?"text-gray-300":"text-gray-800"]])},[L(d(_r),{class:"w-4 h-4 mr-1 text-green-400"}),me(" "+R(d(e)("send.secureEncryption")),1)],2),b("button",{onClick:n[0]||(n[0]=i=>s.$emit("toggle-drawer")),class:T(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[d(t)?"text-indigo-400":"text-indigo-600"]])},[me(R(s.drawerText)+" ",1),L(d(Tr),{class:"w-4 h-4 ml-1"})],2)],2)])}}}),Wr=be({__name:"SideDrawer",props:{visible:{type:Boolean},title:{}},emits:["close"],setup(r){const e=xe("isDarkMode");return(t,s)=>(P(),Ut(Ft,{name:"drawer"},{default:Le(()=>[t.visible?(P(),W("div",{key:0,class:T(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[d(e)?"bg-gray-900":"bg-white"]])},[b("div",{class:T(["flex justify-between items-center p-6 border-b",[d(e)?"border-gray-700":"border-gray-200"]])},[b("h3",{class:T(["text-2xl font-bold",[d(e)?"text-white":"text-gray-800"]])},R(t.title),3),b("button",{onClick:s[0]||(s[0]=n=>t.$emit("close")),class:T(["hover:text-white transition duration-300",[d(e)?"text-gray-400":"text-gray-800"]])},[L(d(Nn),{class:"w-6 h-6"})],2)],2),hr(t.$slots,"default",{},void 0,!0)],2)):ge("",!0)]),_:3}))}}),qr=Re(Wr,[["__scopeId","data-v-9c6698ec"]]),jr={key:0,class:"space-y-4"},Zr={class:"flex items-center"},Xr={class:"font-medium"},Yr={class:"flex items-center"},Vr={class:"font-medium"},Qr={class:"flex items-center"},Kr={class:"font-medium"},Jr={class:"flex items-center"},es={class:"font-medium"},ts={key:0,class:"ml-2"},ns={key:1},rs=["href"],ss={key:1,class:"mt-6 flex flex-col items-center"},is={class:"bg-white p-2 rounded-lg shadow-md"},os=be({__name:"FileDetailModal",props:{visible:{type:Boolean},record:{}},emits:["close","preview-content"],setup(r){const{t:e}=We(),t=xe("isDarkMode"),s=window.location.origin,n=i=>i.downloadUrl?i.downloadUrl.startsWith("http")?i.downloadUrl:`${s}${i.downloadUrl}`:"",l=i=>i.downloadUrl?`${s}${i.downloadUrl}`:`${s}?code=${i.code}`;return(i,a)=>(P(),Ut(Ft,{name:"fade"},{default:Le(()=>[i.visible?(P(),W("div",{key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",onClick:a[2]||(a[2]=zt(u=>i.$emit("close"),["self"]))},[b("div",{class:T(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg overflow-hidden",[d(t)?"bg-gray-800 bg-opacity-70":"bg-white bg-opacity-95"]])},[b("h3",{class:T(["text-2xl font-bold mb-6 truncate",[d(t)?"text-white":"text-gray-800"]])},R(d(e)("fileDetail.title")),3),i.record?(P(),W("div",jr,[b("div",Zr,[L(d(Pn),{class:T(["w-6 h-6 mr-3 flex-shrink-0",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([[d(t)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[b("span",Xr,R(d(e)("fileRecord.filename"))+":",1),me(R(i.record.filename),1)],2)]),b("div",Yr,[L(d($r),{class:T(["w-6 h-6 mr-3 flex-shrink-0",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([[d(t)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[b("span",Vr,R(d(e)("fileRecord.date"))+":",1),me(R(i.record.date),1)],2)]),b("div",Qr,[L(d(Rr),{class:T(["w-6 h-6 mr-3 flex-shrink-0",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([[d(t)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[b("span",Kr,R(d(e)("fileRecord.size"))+":",1),me(R(i.record.size),1)],2)]),b("div",Jr,[L(d(zn),{class:T(["w-6 h-6 mr-3",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([d(t)?"text-gray-300":"text-gray-800"])},[b("span",es,R(d(e)("fileDetail.content"))+":",1)],2),i.record.filename==="Text"?(P(),W("div",ts,[b("button",{onClick:a[0]||(a[0]=u=>i.$emit("preview-content")),class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"},R(d(e)("fileDetail.previewContent")),1)])):(P(),W("div",ns,[b("a",{href:n(i.record),target:"_blank",rel:"noopener noreferrer",class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"},R(d(e)("fileDetail.download")),9,rs)]))])])):ge("",!0),i.record?(P(),W("div",ss,[b("h4",{class:T(["text-lg font-semibold mb-3",[d(t)?"text-white":"text-gray-800"]])},R(d(e)("fileDetail.qrCode")),3),b("div",is,[L(vr,{value:l(i.record),size:128,level:"M"},null,8,["value"])]),b("p",{class:T(["mt-2 text-sm",[d(t)?"text-gray-400":"text-gray-600"]])},R(d(e)("fileDetail.scanQrCode")),3)])):ge("",!0),b("button",{onClick:a[1]||(a[1]=u=>i.$emit("close")),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"},R(d(e)("common.close")),1)],2)])):ge("",!0)]),_:1}))}}),ls=Re(os,[["__scopeId","data-v-5c3436d6"]]),as={class:"flex-grow overflow-y-auto p-6"},cs={class:"flex-shrink-0 mr-4"},us={class:"flex-grow min-w-0 mr-4"},ps={class:"flex-shrink-0 flex space-x-2"},hs=["onClick"],ds=["onClick"],fs=["onClick"],gs=be({__name:"FileRecordList",props:{records:{}},emits:["view-details","download-record","delete-record"],setup(r){const e=xe("isDarkMode");return(t,s)=>(P(),W("div",as,[L(dr,{name:"list",tag:"div",class:"space-y-4"},{default:Le(()=>[(P(!0),W(fr,null,gr(t.records,n=>(P(),W("div",{key:n.id,class:T(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[d(e)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[b("div",cs,[L(d(Pn),{class:T(["w-10 h-10",[d(e)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),b("div",us,[b("p",{class:T(["font-medium text-lg truncate",[d(e)?"text-white":"text-gray-800"]])},R(n.filename),3),b("p",{class:T(["text-sm truncate",[d(e)?"text-gray-400":"text-gray-600"]])},R(n.date)+" · "+R(n.size),3)]),b("div",ps,[b("button",{onClick:l=>t.$emit("view-details",n),class:T(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[d(e)?"hover:bg-indigo-400 text-indigo-400":"hover:bg-indigo-100 text-indigo-600"]])},[L(d(Lr),{class:"w-5 h-5"})],10,hs),b("button",{onClick:l=>t.$emit("download-record",n),class:T(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[d(e)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[L(d(zn),{class:"w-5 h-5"})],10,ds),b("button",{onClick:l=>t.$emit("delete-record",n.id),class:T(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[d(e)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[L(d(Cr),{class:"w-5 h-5"})],10,fs)])],2))),128))]),_:1})]))}}),ms=Re(gs,[["__scopeId","data-v-31facf40"]]),ks={class:"flex justify-between items-center mb-4 flex-shrink-0"},bs={class:"flex items-center gap-3"},xs={class:"flex-1 overflow-y-auto custom-scrollbar"},ws=["innerHTML"],ys=be({__name:"ContentPreviewModal",props:{visible:{type:Boolean},renderedContent:{}},emits:["close","copy-content"],setup(r){const{t:e}=We(),t=xe("isDarkMode");return(s,n)=>(P(),Ut(Ft,{name:"fade"},{default:Le(()=>[s.visible?(P(),W("div",{key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",onClick:n[2]||(n[2]=zt(l=>s.$emit("close"),["self"]))},[b("div",{class:T(["p-6 rounded-2xl max-w-3xl w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70 max-h-[85vh] overflow-hidden flex flex-col",[d(t)?"bg-gray-800":"bg-white"]])},[b("div",ks,[b("h3",{class:T(["text-2xl font-bold",[d(t)?"text-white":"text-gray-800"]])},R(d(e)("contentPreview.title")),3),b("div",bs,[b("button",{onClick:n[0]||(n[0]=l=>s.$emit("copy-content")),class:T(["px-4 py-1.5 rounded-lg transition duration-300 flex items-center gap-2 text-sm font-medium",[d(t)?"bg-gray-700 hover:bg-gray-600 text-gray-300 hover:text-white":"bg-gray-100 hover:bg-gray-200 text-gray-700 hover:text-gray-900"]])},[L(d(Dr),{class:"w-4 h-4"}),me(" "+R(d(e)("common.copy")),1)],2),b("button",{onClick:n[1]||(n[1]=l=>s.$emit("close")),class:T(["p-1.5 rounded-lg transition duration-300 hover:bg-opacity-10",[d(t)?"text-gray-400 hover:text-white hover:bg-white":"text-gray-500 hover:text-gray-900 hover:bg-black"]])},[L(d(Nn),{class:"w-5 h-5"})],2)])]),b("div",xs,[b("div",{class:T(["prose max-w-none p-6 rounded-xl break-words overflow-wrap-anywhere",[d(t)?"prose-invert bg-gray-900 bg-opacity-50":"bg-gray-50"]]),innerHTML:s.renderedContent},null,10,ws)])],2)])):ge("",!0)]),_:1}))}}),_s=Re(ys,[["__scopeId","data-v-eb3f9cc8"]]);var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rt={exports:{}},Ts=rt.exports,yn;function vs(){return yn||(yn=1,(function(r,e){(function(t,s){s()})(Ts,function(){function t(c,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function s(c,h,m){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){u(f.response,h,m)},f.onerror=function(){console.error("could not download file")},f.send()}function n(c){var h=new XMLHttpRequest;h.open("HEAD",c,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function l(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(h)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Je=="object"&&Je.global===Je?Je:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(c,h,m){var f=i.URL||i.webkitURL,y=document.createElement("a");h=h||c.name||"download",y.download=h,y.rel="noopener",typeof c=="string"?(y.href=c,y.origin===location.origin?l(y):n(y.href)?s(c,h,m):l(y,y.target="_blank")):(y.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(y.href)},4e4),setTimeout(function(){l(y)},0))}:"msSaveOrOpenBlob"in navigator?function(c,h,m){if(h=h||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(t(c,m),h);else if(n(c))s(c,h,m);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){l(f)})}}:function(c,h,m,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return s(c,h,m);var y=c.type==="application/octet-stream",v=/constructor/i.test(i.HTMLElement)||i.safari,$=/CriOS\/[\d]+/.test(navigator.userAgent);if(($||y&&v||a)&&typeof FileReader<"u"){var V=new FileReader;V.onloadend=function(){var U=V.result;U=$?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=U:location=U,f=null},V.readAsDataURL(c)}else{var J=i.URL||i.webkitURL,ee=J.createObjectURL(c);f?f.location=ee:location.href=ee,f=null,setTimeout(function(){J.revokeObjectURL(ee)},4e4)}});i.saveAs=u.saveAs=u,r.exports=u})})(rt)),rt.exports}var As=vs();function Bt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var we=Bt();function Un(r){we=r}var Ge={exec:()=>null};function A(r,e=""){let t=typeof r=="string"?r:r.source,s={replace:(n,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(q.caret,"$1"),t=t.replace(n,i),s},getRegex:()=>new RegExp(t,e)};return s}var q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},Es=/^(?:[ \t]*(?:\n|$))+/,Ss=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,qe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ls=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ht=/(?:[*+-]|\d{1,9}[.)])/,Fn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bn=A(Fn).replace(/bull/g,Ht).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Cs=A(Fn).replace(/bull/g,Ht).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Gt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ds=/^[^\n]+/,Wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Is=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$s=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ht).getRegex(),ct="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",qt=/|$))/,Ms=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",qt).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hn=A(Gt).replace("hr",qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Os=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Hn).getRegex(),jt={blockquote:Os,code:Ss,def:Is,fences:Rs,heading:Ls,hr:qe,html:Ms,lheading:Bn,list:$s,newline:Es,paragraph:Hn,table:Ge,text:Ds},_n=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Ns={...jt,lheading:Cs,table:_n,paragraph:A(Gt).replace("hr",qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_n).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex()},Ps={...jt,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ge,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Gt).replace("hr",qe).replace("heading",` *#{1,6} *[^ +import{c as Pt,d as be,u as We,r as K,w as Dt,a as W,o as P,h as zt,b,n as T,e as d,i as xe,t as R,x as cr,j as ge,z as ur,l as L,_ as Re,G as pr,v as Le,E as me,k as Ut,T as Ft,K as hr,X as Nn,H as dr,y as fr,D as gr,p as mr,L as kr,f as br,M as xr,I as wr,J as yr}from"./index-B3zfsvgW.js";import{S as _r,C as Tr,Q as vr,u as Ar,P as Er,d as Sr}from"./PageHeader-Y9MICulD.js";import{F as Pn}from"./file-Ceuyr6iv.js";import{H as Rr}from"./hard-drive-5GIKYPKr.js";import{E as Lr,T as Cr}from"./trash-CdDjPTBr.js";import{C as Dr}from"./copy-DV195_ld.js";import"./box-COy3AQAQ.js";const Ir=Pt("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const $r=Pt("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const zn=Pt("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Mr={class:"mb-6 relative"},Or={class:"relative"},Nr=["placeholder","readonly"],Pr={key:0,class:"absolute inset-y-0 right-0 flex items-center pr-3"},zr=["disabled"],Ur={class:"flex items-center justify-center relative z-10"},Fr=be({__name:"RetrieveForm",props:{inputStatus:{},error:{type:Boolean}},emits:["submit","update:code"],setup(r,{expose:e,emit:t}){const{t:s}=We(),n=t,l=xe("isDarkMode"),i=K(""),a=K(!1),u=K();return Dt(i,c=>{n("update:code",c)}),e({focus:()=>u.value?.focus()}),(c,h)=>(P(),W("form",{onSubmit:h[3]||(h[3]=zt(m=>c.$emit("submit"),["prevent"]))},[b("div",Mr,[b("label",{for:"code",class:T(["block text-sm font-medium mb-2",[d(l)?"text-gray-300":"text-gray-800"]])},R(d(s)("retrieve.codeInput.label")),3),b("div",Or,[cr(b("input",{id:"code","onUpdate:modelValue":h[0]||(h[0]=m=>i.value=m),type:"text",ref_key:"codeInput",ref:u,class:T(["w-full px-4 py-3 rounded-lg placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 pr-10",[d(l)?"bg-gray-700 bg-opacity-50":"bg-gray-100",{"ring-2 ring-red-500":c.error},d(l)?"text-gray-300":"text-gray-800"]]),placeholder:d(s)("retrieve.codeInput.placeholder"),required:"",readonly:c.inputStatus.readonly,maxlength:"5",onFocus:h[1]||(h[1]=m=>a.value=!0),onBlur:h[2]||(h[2]=m=>a.value=!1)},null,42,Nr),[[ur,i.value]]),c.inputStatus.loading?(P(),W("div",Pr,[...h[4]||(h[4]=[b("span",{class:"animate-spin rounded-full h-5 w-5 border-b-2 border-indigo-500"},null,-1)])])):ge("",!0)]),b("div",{class:T(["absolute -bottom-0.5 left-2 h-0.5 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 transition-all duration-300 ease-in-out",{"w-97-100":a.value,"w-0":!a.value}])},null,2)]),b("button",{type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-3 px-4 rounded-lg hover:from-indigo-600 hover:via-purple-600 hover:to-pink-600 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group",disabled:c.inputStatus.loading},[b("span",Ur,[b("span",null,R(c.inputStatus.loading?d(s)("common.loading"):d(s)("retrieve.submit")),1),L(d(Ir),{class:"w-5 h-5 ml-2 transition-transform duration-300 transform group-hover:translate-x-1"})]),h[5]||(h[5]=b("span",{class:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},null,-1))],8,zr)],32))}}),Br=Re(Fr,[["__scopeId","data-v-8f0be1b0"]]),Hr={key:0,class:"mb-6 text-center"},Gr=be({__name:"PageFooter",props:{linkText:{},linkTo:{},drawerText:{}},emits:["toggle-drawer"],setup(r){const{t:e}=We(),t=xe("isDarkMode");return(s,n)=>{const l=pr("router-link");return P(),W("div",null,[s.linkText&&s.linkTo?(P(),W("div",Hr,[L(l,{to:s.linkTo,class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:Le(()=>[me(R(s.linkText),1)]),_:1},8,["to"])])):ge("",!0),b("div",{class:T(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[d(t)?"bg-gray-800":"bg-gray-100"]])},[b("span",{class:T(["text-sm flex items-center",[d(t)?"text-gray-300":"text-gray-800"]])},[L(d(_r),{class:"w-4 h-4 mr-1 text-green-400"}),me(" "+R(d(e)("send.secureEncryption")),1)],2),b("button",{onClick:n[0]||(n[0]=i=>s.$emit("toggle-drawer")),class:T(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[d(t)?"text-indigo-400":"text-indigo-600"]])},[me(R(s.drawerText)+" ",1),L(d(Tr),{class:"w-4 h-4 ml-1"})],2)],2)])}}}),Wr=be({__name:"SideDrawer",props:{visible:{type:Boolean},title:{}},emits:["close"],setup(r){const e=xe("isDarkMode");return(t,s)=>(P(),Ut(Ft,{name:"drawer"},{default:Le(()=>[t.visible?(P(),W("div",{key:0,class:T(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[d(e)?"bg-gray-900":"bg-white"]])},[b("div",{class:T(["flex justify-between items-center p-6 border-b",[d(e)?"border-gray-700":"border-gray-200"]])},[b("h3",{class:T(["text-2xl font-bold",[d(e)?"text-white":"text-gray-800"]])},R(t.title),3),b("button",{onClick:s[0]||(s[0]=n=>t.$emit("close")),class:T(["hover:text-white transition duration-300",[d(e)?"text-gray-400":"text-gray-800"]])},[L(d(Nn),{class:"w-6 h-6"})],2)],2),hr(t.$slots,"default",{},void 0,!0)],2)):ge("",!0)]),_:3}))}}),qr=Re(Wr,[["__scopeId","data-v-9c6698ec"]]),jr={key:0,class:"space-y-4"},Zr={class:"flex items-center"},Xr={class:"font-medium"},Yr={class:"flex items-center"},Vr={class:"font-medium"},Qr={class:"flex items-center"},Kr={class:"font-medium"},Jr={class:"flex items-center"},es={class:"font-medium"},ts={key:0,class:"ml-2"},ns={key:1},rs=["href"],ss={key:1,class:"mt-6 flex flex-col items-center"},is={class:"bg-white p-2 rounded-lg shadow-md"},os=be({__name:"FileDetailModal",props:{visible:{type:Boolean},record:{}},emits:["close","preview-content"],setup(r){const{t:e}=We(),t=xe("isDarkMode"),s=window.location.origin,n=i=>i.downloadUrl?i.downloadUrl.startsWith("http")?i.downloadUrl:`${s}${i.downloadUrl}`:"",l=i=>i.downloadUrl?`${s}${i.downloadUrl}`:`${s}?code=${i.code}`;return(i,a)=>(P(),Ut(Ft,{name:"fade"},{default:Le(()=>[i.visible?(P(),W("div",{key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",onClick:a[2]||(a[2]=zt(u=>i.$emit("close"),["self"]))},[b("div",{class:T(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg overflow-hidden",[d(t)?"bg-gray-800 bg-opacity-70":"bg-white bg-opacity-95"]])},[b("h3",{class:T(["text-2xl font-bold mb-6 truncate",[d(t)?"text-white":"text-gray-800"]])},R(d(e)("fileDetail.title")),3),i.record?(P(),W("div",jr,[b("div",Zr,[L(d(Pn),{class:T(["w-6 h-6 mr-3 flex-shrink-0",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([[d(t)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[b("span",Xr,R(d(e)("fileRecord.filename"))+":",1),me(R(i.record.filename),1)],2)]),b("div",Yr,[L(d($r),{class:T(["w-6 h-6 mr-3 flex-shrink-0",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([[d(t)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[b("span",Vr,R(d(e)("fileRecord.date"))+":",1),me(R(i.record.date),1)],2)]),b("div",Qr,[L(d(Rr),{class:T(["w-6 h-6 mr-3 flex-shrink-0",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([[d(t)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[b("span",Kr,R(d(e)("fileRecord.size"))+":",1),me(R(i.record.size),1)],2)]),b("div",Jr,[L(d(zn),{class:T(["w-6 h-6 mr-3",[d(t)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),b("p",{class:T([d(t)?"text-gray-300":"text-gray-800"])},[b("span",es,R(d(e)("fileDetail.content"))+":",1)],2),i.record.filename==="Text"?(P(),W("div",ts,[b("button",{onClick:a[0]||(a[0]=u=>i.$emit("preview-content")),class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"},R(d(e)("fileDetail.previewContent")),1)])):(P(),W("div",ns,[b("a",{href:n(i.record),target:"_blank",rel:"noopener noreferrer",class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"},R(d(e)("fileDetail.download")),9,rs)]))])])):ge("",!0),i.record?(P(),W("div",ss,[b("h4",{class:T(["text-lg font-semibold mb-3",[d(t)?"text-white":"text-gray-800"]])},R(d(e)("fileDetail.qrCode")),3),b("div",is,[L(vr,{value:l(i.record),size:128,level:"M"},null,8,["value"])]),b("p",{class:T(["mt-2 text-sm",[d(t)?"text-gray-400":"text-gray-600"]])},R(d(e)("fileDetail.scanQrCode")),3)])):ge("",!0),b("button",{onClick:a[1]||(a[1]=u=>i.$emit("close")),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"},R(d(e)("common.close")),1)],2)])):ge("",!0)]),_:1}))}}),ls=Re(os,[["__scopeId","data-v-5c3436d6"]]),as={class:"flex-grow overflow-y-auto p-6"},cs={class:"flex-shrink-0 mr-4"},us={class:"flex-grow min-w-0 mr-4"},ps={class:"flex-shrink-0 flex space-x-2"},hs=["onClick"],ds=["onClick"],fs=["onClick"],gs=be({__name:"FileRecordList",props:{records:{}},emits:["view-details","download-record","delete-record"],setup(r){const e=xe("isDarkMode");return(t,s)=>(P(),W("div",as,[L(dr,{name:"list",tag:"div",class:"space-y-4"},{default:Le(()=>[(P(!0),W(fr,null,gr(t.records,n=>(P(),W("div",{key:n.id,class:T(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[d(e)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[b("div",cs,[L(d(Pn),{class:T(["w-10 h-10",[d(e)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),b("div",us,[b("p",{class:T(["font-medium text-lg truncate",[d(e)?"text-white":"text-gray-800"]])},R(n.filename),3),b("p",{class:T(["text-sm truncate",[d(e)?"text-gray-400":"text-gray-600"]])},R(n.date)+" · "+R(n.size),3)]),b("div",ps,[b("button",{onClick:l=>t.$emit("view-details",n),class:T(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[d(e)?"hover:bg-indigo-400 text-indigo-400":"hover:bg-indigo-100 text-indigo-600"]])},[L(d(Lr),{class:"w-5 h-5"})],10,hs),b("button",{onClick:l=>t.$emit("download-record",n),class:T(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[d(e)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[L(d(zn),{class:"w-5 h-5"})],10,ds),b("button",{onClick:l=>t.$emit("delete-record",n.id),class:T(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[d(e)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[L(d(Cr),{class:"w-5 h-5"})],10,fs)])],2))),128))]),_:1})]))}}),ms=Re(gs,[["__scopeId","data-v-31facf40"]]),ks={class:"flex justify-between items-center mb-4 flex-shrink-0"},bs={class:"flex items-center gap-3"},xs={class:"flex-1 overflow-y-auto custom-scrollbar"},ws=["innerHTML"],ys=be({__name:"ContentPreviewModal",props:{visible:{type:Boolean},renderedContent:{}},emits:["close","copy-content"],setup(r){const{t:e}=We(),t=xe("isDarkMode");return(s,n)=>(P(),Ut(Ft,{name:"fade"},{default:Le(()=>[s.visible?(P(),W("div",{key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",onClick:n[2]||(n[2]=zt(l=>s.$emit("close"),["self"]))},[b("div",{class:T(["p-6 rounded-2xl max-w-3xl w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70 max-h-[85vh] overflow-hidden flex flex-col",[d(t)?"bg-gray-800":"bg-white"]])},[b("div",ks,[b("h3",{class:T(["text-2xl font-bold",[d(t)?"text-white":"text-gray-800"]])},R(d(e)("contentPreview.title")),3),b("div",bs,[b("button",{onClick:n[0]||(n[0]=l=>s.$emit("copy-content")),class:T(["px-4 py-1.5 rounded-lg transition duration-300 flex items-center gap-2 text-sm font-medium",[d(t)?"bg-gray-700 hover:bg-gray-600 text-gray-300 hover:text-white":"bg-gray-100 hover:bg-gray-200 text-gray-700 hover:text-gray-900"]])},[L(d(Dr),{class:"w-4 h-4"}),me(" "+R(d(e)("common.copy")),1)],2),b("button",{onClick:n[1]||(n[1]=l=>s.$emit("close")),class:T(["p-1.5 rounded-lg transition duration-300 hover:bg-opacity-10",[d(t)?"text-gray-400 hover:text-white hover:bg-white":"text-gray-500 hover:text-gray-900 hover:bg-black"]])},[L(d(Nn),{class:"w-5 h-5"})],2)])]),b("div",xs,[b("div",{class:T(["prose max-w-none p-6 rounded-xl break-words overflow-wrap-anywhere",[d(t)?"prose-invert bg-gray-900 bg-opacity-50":"bg-gray-50"]]),innerHTML:s.renderedContent},null,10,ws)])],2)])):ge("",!0)]),_:1}))}}),_s=Re(ys,[["__scopeId","data-v-eb3f9cc8"]]);var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rt={exports:{}},Ts=rt.exports,yn;function vs(){return yn||(yn=1,(function(r,e){(function(t,s){s()})(Ts,function(){function t(c,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function s(c,h,m){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){u(f.response,h,m)},f.onerror=function(){console.error("could not download file")},f.send()}function n(c){var h=new XMLHttpRequest;h.open("HEAD",c,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function l(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(h)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Je=="object"&&Je.global===Je?Je:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(c,h,m){var f=i.URL||i.webkitURL,y=document.createElement("a");h=h||c.name||"download",y.download=h,y.rel="noopener",typeof c=="string"?(y.href=c,y.origin===location.origin?l(y):n(y.href)?s(c,h,m):l(y,y.target="_blank")):(y.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(y.href)},4e4),setTimeout(function(){l(y)},0))}:"msSaveOrOpenBlob"in navigator?function(c,h,m){if(h=h||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(t(c,m),h);else if(n(c))s(c,h,m);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){l(f)})}}:function(c,h,m,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return s(c,h,m);var y=c.type==="application/octet-stream",v=/constructor/i.test(i.HTMLElement)||i.safari,$=/CriOS\/[\d]+/.test(navigator.userAgent);if(($||y&&v||a)&&typeof FileReader<"u"){var V=new FileReader;V.onloadend=function(){var U=V.result;U=$?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=U:location=U,f=null},V.readAsDataURL(c)}else{var J=i.URL||i.webkitURL,ee=J.createObjectURL(c);f?f.location=ee:location.href=ee,f=null,setTimeout(function(){J.revokeObjectURL(ee)},4e4)}});i.saveAs=u.saveAs=u,r.exports=u})})(rt)),rt.exports}var As=vs();function Bt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var we=Bt();function Un(r){we=r}var Ge={exec:()=>null};function A(r,e=""){let t=typeof r=="string"?r:r.source,s={replace:(n,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(q.caret,"$1"),t=t.replace(n,i),s},getRegex:()=>new RegExp(t,e)};return s}var q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},Es=/^(?:[ \t]*(?:\n|$))+/,Ss=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,qe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ls=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ht=/(?:[*+-]|\d{1,9}[.)])/,Fn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bn=A(Fn).replace(/bull/g,Ht).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Cs=A(Fn).replace(/bull/g,Ht).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Gt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ds=/^[^\n]+/,Wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Is=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$s=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ht).getRegex(),ct="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",qt=/|$))/,Ms=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",qt).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hn=A(Gt).replace("hr",qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Os=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Hn).getRegex(),jt={blockquote:Os,code:Ss,def:Is,fences:Rs,heading:Ls,hr:qe,html:Ms,lheading:Bn,list:$s,newline:Es,paragraph:Hn,table:Ge,text:Ds},_n=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Ns={...jt,lheading:Cs,table:_n,paragraph:A(Gt).replace("hr",qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_n).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex()},Ps={...jt,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ge,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Gt).replace("hr",qe).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Bn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Us=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gn=/^( {2,}|\\)\n(?!\s*$)/,Fs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,jn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qs=A(jn,"u").replace(/punct/g,ut).getRegex(),js=A(jn,"u").replace(/punct/g,qn).getRegex(),Zn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zs=A(Zn,"gu").replace(/notPunctSpace/g,Wn).replace(/punctSpace/g,Zt).replace(/punct/g,ut).getRegex(),Xs=A(Zn,"gu").replace(/notPunctSpace/g,Gs).replace(/punctSpace/g,Hs).replace(/punct/g,qn).getRegex(),Ys=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Wn).replace(/punctSpace/g,Zt).replace(/punct/g,ut).getRegex(),Vs=A(/\\(punct)/,"gu").replace(/punct/g,ut).getRegex(),Qs=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ks=A(qt).replace("(?:-->|$)","-->").getRegex(),Js=A("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Ks).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ot=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,ei=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ot).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xn=A(/^!?\[(label)\]\[(ref)\]/).replace("label",ot).replace("ref",Wt).getRegex(),Yn=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Wt).getRegex(),ti=A("reflink|nolink(?!\\()","g").replace("reflink",Xn).replace("nolink",Yn).getRegex(),Xt={_backpedal:Ge,anyPunctuation:Vs,autolink:Qs,blockSkip:Ws,br:Gn,code:Us,del:Ge,emStrongLDelim:qs,emStrongRDelimAst:Zs,emStrongRDelimUnd:Ys,escape:zs,link:ei,nolink:Yn,punctuation:Bs,reflink:Xn,reflinkSearch:ti,tag:Js,text:Fs,url:Ge},ni={...Xt,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",ot).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ot).getRegex()},It={...Xt,emStrongRDelimAst:Xs,emStrongLDelim:js,url:A(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Tn=r=>si[r];function re(r,e){if(e){if(q.escapeTest.test(r))return r.replace(q.escapeReplace,Tn)}else if(q.escapeTestNoEncode.test(r))return r.replace(q.escapeReplaceNoEncode,Tn);return r}function vn(r){try{r=encodeURI(r).replace(q.percentDecode,"%")}catch{return null}return r}function An(r,e){let t=r.replace(q.findPipe,(l,i,a)=>{let u=!1,c=i;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),s=t.split(q.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length0?-2:-1}function En(r,e,t,s,n){let l=e.href,i=e.title||null,a=r[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let u={type:r[0].charAt(0)==="!"?"image":"link",raw:t,href:l,title:i,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,u}function oi(r,e,t){let s=r.match(t.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(` `).map(l=>{let i=l.match(t.other.beginningSpace);if(i===null)return l;let[a]=i;return a.length>=n.length?l.slice(n.length):l}).join(` `)}var lt=class{options;rules;lexer;constructor(r){this.options=r||we}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Pe(t,` diff --git a/themes/2024/assets/SendFileView-DW3wRbaM.js b/themes/2024/assets/SendFileView-DW3wRbaM.js new file mode 100644 index 0000000..ce52403 --- /dev/null +++ b/themes/2024/assets/SendFileView-DW3wRbaM.js @@ -0,0 +1 @@ +import{c as W,d as ae,u as oe,a as z,o as D,b as r,n,e as t,i as ne,t as M,r as P,f as Fe,w as qe,_ as ge,g as E,C as We,h as se,j as K,k as Xe,l as S,m as Ze,p as De,q as ee,P as J,s as Je,S as Ke,F as Qe,v as te,T as ie,x as we,y as de,z as Ye,A as et,B as ke,D as Se,E as ce,G as tt,X as _e,H as rt,I as st,J as re}from"./index-B3zfsvgW.js";import{u as at,P as ot,S as Ce,C as nt,c as lt,a as it,Q as dt,b as ue}from"./PageHeader-Y9MICulD.js";import{F as Me}from"./file-Ceuyr6iv.js";import{E as ct,T as ut}from"./trash-CdDjPTBr.js";import"./box-COy3AQAQ.js";const pt=W("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);const pe=W("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);const gt=W("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const ht=W("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);const ft=W("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);const mt=W("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const vt=W("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),Ie=I=>I>=1024*1024*1024?Math.round(I/(1024*1024*1024))+"GB":I>=1024*1024?Math.round(I/(1024*1024))+"MB":Math.round(I/1024)+"KB",yt={class:"flex justify-center space-x-4 mb-6"},xt=ae({__name:"SendTypeSelector",props:{selectedType:{}},emits:["update:selectedType"],setup(I,{emit:y}){const{t:T}=oe(),s=y,f=ne("isDarkMode"),p=_=>{s("update:selectedType",_)};return(_,h)=>(D(),z("div",yt,[r("button",{type:"button",onClick:h[0]||(h[0]=d=>p("file")),class:n(["px-4 py-2 rounded-lg transition-colors duration-300",_.selectedType==="file"?"bg-indigo-600 text-white":t(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},M(t(T)("nav.sendFile")),3),r("button",{type:"button",onClick:h[1]||(h[1]=d=>p("text")),class:n(["px-4 py-2 rounded-lg transition-colors duration-300",_.selectedType==="text"?"bg-indigo-600 text-white":t(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},M(t(T)("send.sendText")),3)]))}}),bt=ae({__name:"BorderProgressBar",props:{progress:{}},setup(I){const y=I,T=P(null),s=P(null);let f=null;const p=()=>{if(!f||!s.value||!T.value)return;const h=T.value.clientWidth,d=T.value.clientHeight;s.value.width=h,s.value.height=d;const c=4,o=8;f.lineWidth=c;const A=f.createLinearGradient(0,0,h,d);A.addColorStop(0,"#4f46e5"),A.addColorStop(.5,"#7c3aed"),A.addColorStop(1,"#db2777"),f.strokeStyle="rgba(229, 231, 235, 0.2)",_(f,c/2,c/2,h-c,d-c,o),f.stroke();const u=((h+d)*2-8*o+2*Math.PI*o)*y.progress/100;f.strokeStyle=A,f.lineCap="round",f.lineJoin="round",f.beginPath();let g=u;const C=c/2,L=h-c,V=d-c;if(g>0){const b=Math.min(L-2*o,g);f.moveTo(o+C,C),f.lineTo(b+o+C,C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc(L-o+C,o+C,o,-Math.PI/2,b-Math.PI/2,!1),g-=b*o}if(g>0){const b=Math.min(V-2*o,g);f.lineTo(L+C,b+o+C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc(L-o+C,V-o+C,o,0,b,!1),g-=b*o}if(g>0){const b=Math.min(L-2*o,g);f.lineTo(L-b-o+C,V+C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc(o+C,V-o+C,o,Math.PI/2,Math.PI/2+b,!1),g-=b*o}if(g>0){const b=Math.min(V-2*o,g);f.lineTo(C,V-b-o+C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc(o+C,o+C,o,Math.PI,Math.PI+b,!1)}f.stroke()};function _(h,d,c,o,A,x){h.beginPath(),h.moveTo(d+x,c),h.lineTo(d+o-x,c),h.arcTo(d+o,c,d+o,c+x,x),h.lineTo(d+o,c+A-x),h.arcTo(d+o,c+A,d+o-x,c+A,x),h.lineTo(d+x,c+A),h.arcTo(d,c+A,d,c+A-x,x),h.lineTo(d,c+x),h.arcTo(d,c,d+x,c,x),h.closePath()}return Fe(()=>{s.value&&(f=s.value.getContext("2d"),p())}),qe(()=>y.progress,p),(h,d)=>(D(),z("div",{class:"border-progress-container",ref_key:"container",ref:T},[r("canvas",{ref_key:"canvas",ref:s,class:"border-progress-canvas"},null,512)],512))}}),wt=ge(bt,[["__scopeId","data-v-2fbf5085"]]),kt=["accept","disabled"],St={key:0,class:"absolute inset-0 w-full h-full"},_t={class:"block truncate"},Ct={key:1,class:"mt-3 w-full"},Mt=ae({__name:"FileUploadArea",props:{selectedFile:{default:null},progress:{default:0},placeholder:{default:""},description:{default:""},acceptedTypes:{default:"*"},uploadStatus:{default:"idle"},uploadedBytes:{default:0},totalBytes:{default:0},errorMessage:{default:""},allowRetry:{type:Boolean,default:!0},retryText:{default:"重试"},showProgressDetails:{type:Boolean,default:!0}},emits:["fileSelected","fileDrop","retry"],setup(I,{emit:y}){const{t:T}=oe(),s=I,f=y,p=ne("isDarkMode"),_=E(()=>s.placeholder||T("send.uploadArea.placeholder")),h=E(()=>s.description||T("send.uploadArea.description")),d=P(null),c=E(()=>["uploading","initializing","confirming"].includes(s.uploadStatus)),o=E(()=>s.uploadStatus==="error"),A=E(()=>s.uploadStatus==="success"),x=E(()=>s.selectedFile?s.selectedFile.name:_.value),u=E(()=>c.value?ft:A.value?We:o.value?pt:ht),g=E(()=>c.value?p?"text-indigo-400 animate-spin":"text-indigo-600 animate-spin":A.value?p?"text-green-400":"text-green-600":o.value?p?"text-red-400":"text-red-600":p?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"),C=E(()=>o.value?p?"border-red-500/50":"border-red-300":A.value?p?"border-green-500/50":"border-green-300":""),L=E(()=>o.value&&s.errorMessage?s.errorMessage:s.uploadStatus==="initializing"?"正在初始化上传...":s.uploadStatus==="uploading"?"正在上传文件...":s.uploadStatus==="confirming"?"正在确认上传...":A.value?"上传成功!":h.value),V=E(()=>o.value?p?"text-red-400":"text-red-500":A.value?p?"text-green-400":"text-green-500":p?"text-gray-500":"text-gray-400"),b=v=>{if(v===0)return"0 B";const w=1024,B=["B","KB","MB","GB"],N=Math.floor(Math.log(v)/Math.log(w));return parseFloat((v/Math.pow(w,N)).toFixed(2))+" "+B[N]},Q=()=>{c.value||d.value?.click()},Y=v=>{const B=v.target.files?.[0];B&&f("fileSelected",B)},O=v=>{c.value||f("fileDrop",v)},m=()=>{f("retry")};return(v,w)=>(D(),z("div",{class:n(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[t(p)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500",C.value]]),onClick:Q,onDragover:w[0]||(w[0]=se(()=>{},["prevent"])),onDrop:se(O,["prevent"])},[r("input",{ref_key:"fileInput",ref:d,type:"file",class:"hidden",onChange:Y,accept:v.acceptedTypes,disabled:c.value},null,40,kt),v.progress>0?(D(),z("div",St,[S(wt,{progress:v.progress},null,8,["progress"])])):K("",!0),(D(),Xe(Ze(u.value),{class:n(["w-16 h-16 transition-colors duration-300",g.value])},null,8,["class"])),r("p",{class:n(["mt-4 text-sm transition-colors duration-300 w-full text-center",t(p)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[r("span",_t,M(x.value),1)],2),r("p",{class:n(["mt-2 text-xs",V.value])},M(L.value),3),c.value&&v.showProgressDetails?(D(),z("div",Ct,[r("div",{class:n(["flex justify-between text-xs mb-1",[t(p)?"text-gray-400":"text-gray-500"]])},[r("span",null,M(b(v.uploadedBytes))+" / "+M(b(v.totalBytes)),1),r("span",null,M(v.progress)+"%",1)],2)])):K("",!0),o.value&&v.allowRetry?(D(),z("button",{key:2,onClick:se(m,["stop"]),class:n(["mt-3 px-4 py-2 text-sm rounded-lg transition-colors duration-200",[t(p)?"bg-indigo-600 hover:bg-indigo-500 text-white":"bg-indigo-500 hover:bg-indigo-600 text-white"]])},M(v.retryText),3)):K("",!0)],34))}}),It={class:"flex flex-col"},Tt=["value","rows","placeholder"],At=ae({__name:"TextInputArea",props:{modelValue:{},rows:{default:7},placeholder:{default:"在此输入要发送的文本..."}},emits:["update:modelValue"],setup(I,{emit:y}){const{t:T}=oe(),s=I,f=y,p=ne("isDarkMode"),_=E(()=>s.placeholder||T("send.uploadArea.textInput")),h=d=>{const c=d.target;f("update:modelValue",c.value)};return(d,c)=>(D(),z("div",It,[r("textarea",{value:d.modelValue,onInput:h,rows:d.rows,placeholder:_.value,class:n(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none custom-scrollbar",t(p)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,42,Tt)]))}}),Ft=ge(At,[["__scopeId","data-v-bebdfe92"]]);function Dt(){try{const I=localStorage.getItem(Ke.CONFIG);if(I){const y=JSON.parse(I);if(y.uploadSize&&y.uploadSize>0)return y.uploadSize}}catch{}return Qe.MAX_FILE_SIZE}const $={IDLE:"idle",INITIALIZING:"initializing",UPLOADING:"uploading",CONFIRMING:"confirming",SUCCESS:"success",ERROR:"error"},Te=1,Ae="day";function Et(){const I=De(),y=P($.IDLE),T=P(null),s=P({loaded:0,total:0,percentage:0}),f=P(""),p=P(""),_=E(()=>y.value===$.INITIALIZING),h=E(()=>y.value===$.UPLOADING),d=E(()=>y.value===$.CONFIRMING),c=E(()=>y.value===$.SUCCESS),o=E(()=>y.value===$.ERROR),A=E(()=>T.value?.mode??null),x=m=>{const v=Dt();if(m.size>v){const w=Math.round(v/1024/1024);return p.value=`文件大小不能超过 ${w}MB`,I.showAlert(p.value,"error"),!1}return!0},u=m=>v=>{s.value={loaded:Math.max(0,v.loaded),total:Math.max(0,v.total),percentage:Math.min(100,Math.max(0,v.percentage))},m&&m(s.value)},g=m=>{if(y.value=$.ERROR,Je.isAxiosError(m)){const v=m.response?.status,w=m.response?.data?.detail;switch(v){case 400:p.value=w||"请求参数错误";break;case 403:p.value=w||"操作被禁止";break;case 404:p.value="上传会话不存在或已过期";break;case 500:p.value="服务器错误,请稍后重试";break;default:p.value=w||"上传失败,请重试"}}else m instanceof Error?p.value=m.message:p.value="未知错误";I.showAlert(p.value,"error")},C=async(m,v)=>{try{y.value=$.INITIALIZING;const w=await J.initUpload({file_name:m.name,file_size:m.size,expire_value:v?.expireValue??Te,expire_style:v?.expireStyle??Ae});if(w.code===200&&w.detail)return T.value=w.detail,w.detail;throw new Error(w.message||"初始化上传失败")}catch(w){return g(w),null}},L=async(m,v,w)=>{try{y.value=$.UPLOADING;const B=u(w?.onProgress);if(!await J.directUploadToS3(v.upload_url,m,B))throw new Error("S3 上传失败");y.value=$.CONFIRMING;const X=await J.confirmUpload(v.upload_id,{expire_value:w?.expireValue??Te,expire_style:w?.expireStyle??Ae});if(X.code===200&&X.detail?.code)return y.value=$.SUCCESS,f.value=String(X.detail.code),s.value={loaded:m.size,total:m.size,percentage:100},I.showAlert("文件上传成功!","success"),f.value;throw new Error(X.message||"确认上传失败")}catch(B){return g(B),null}},V=async(m,v,w)=>{try{y.value=$.UPLOADING;const B=u(w?.onProgress),N=await J.proxyUpload(v.upload_id,m,B);if(N.code===200&&N.detail?.code)return y.value=$.SUCCESS,f.value=String(N.detail.code),s.value={loaded:m.size,total:m.size,percentage:100},I.showAlert("文件上传成功!","success"),f.value;throw new Error(N.message||"代理上传失败")}catch(B){return g(B),null}},b=async(m,v)=>{if(O(),!x(m))return y.value=$.ERROR,null;const w=await C(m,v);return w?w.mode==="direct"?await L(m,w,v):await V(m,w,v):null},Q=async()=>{if(T.value?.upload_id)try{await J.cancelUpload(T.value.upload_id),I.showAlert("上传已取消","info")}catch(m){console.warn("取消上传失败:",m)}finally{O()}},Y=async()=>{if(!T.value?.upload_id)return null;try{const m=await J.getUploadStatus(T.value.upload_id);return m.code===200&&m.detail?(m.detail.is_expired&&(p.value="上传会话已过期",I.showAlert(p.value,"warning")),m.detail):null}catch(m){return g(m),null}},O=()=>{y.value=$.IDLE,T.value=null,s.value={loaded:0,total:0,percentage:0},f.value="",p.value=""};return{presignStatus:ee(y),uploadSession:ee(T),uploadProgress:ee(s),uploadedCode:ee(f),errorMessage:ee(p),isInitializing:_,isUploading:h,isConfirming:d,isSuccess:c,isError:o,currentMode:A,uploadFile:b,cancelUpload:Q,getStatus:Y,reset:O}}const zt={class:"p-8"},Ut={key:"file",class:"grid grid-cols-1 gap-8"},Pt={key:"text",class:"grid grid-cols-1 gap-8"},Rt={class:"flex flex-col space-y-3"},Bt={class:"relative flex-grow group"},$t=["placeholder"],Lt=["value"],Vt={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},jt={class:"relative z-10 flex items-center justify-center text-lg"},Nt={class:"mt-6 text-center"},Gt={class:"flex-grow overflow-y-auto p-6"},Ot={class:"flex-shrink-0 mr-4"},Ht={class:"flex-grow min-w-0 mr-4"},qt={class:"flex-shrink-0 flex space-x-2"},Wt=["onClick"],Xt=["onClick"],Zt=["onClick"],Jt={key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-3 sm:p-4 overflow-y-auto"},Kt={class:"flex items-center justify-between"},Qt={class:"p-4 sm:p-6"},Yt={class:"flex items-center mb-3 sm:mb-4"},er={class:"ml-3 sm:ml-4 min-w-0 flex-1"},tr={class:"grid grid-cols-2 gap-3 sm:gap-4"},rr={class:"flex items-center min-w-0"},sr={class:"flex items-center min-w-0"},ar={class:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6"},or={class:"space-y-3 sm:space-y-4"},nr={class:"bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl p-4 sm:p-5 text-white"},lr={class:"flex items-center justify-between mb-3 sm:mb-4"},ir={class:"text-2xl sm:text-3xl font-bold tracking-wider text-center break-all"},dr={class:"flex items-center justify-between mb-2 sm:mb-3"},cr={class:"bg-white p-3 sm:p-4 rounded-lg shadow-sm mb-3 sm:mb-4"},ur=ae({__name:"SendFileView",setup(I){const y=JSON.parse(localStorage.getItem("config")||"{}"),T=st(),s=ne("isDarkMode"),f=at(),p=P("file"),_=P(null),h=P(""),d=P(y.expireStyle?.[0]||"day"),c=P("1"),o=P(0),A=P(!1),x=P(null),{t:u}=oe(),g=De(),C=E(()=>f.shareData),{uploadFile:L,reset:V}=Et(),b=P(""),Q=async a=>{_.value=a,he()&&fe(a)&&(b.value=await m(a))},Y=async a=>{if(a.dataTransfer?.files&&a.dataTransfer.files.length>0){const e=a.dataTransfer.files[0];if(_.value=e,!ve())return;b.value=await m(e)}},O=async a=>{const e=a.clipboardData?.items;if(e)for(let l=0;l{const F=k.trim();if(!F)return;const U=document.getElementById("text-content");if(!U){h.value+=F;return}const j=U.selectionStart,R=U.selectionEnd;if(j!==R){const G=h.value.substring(0,j),H=h.value.substring(R);h.value=G+F+H,setTimeout(()=>{const q=j+F.length;U.setSelectionRange(q,q),U.focus()},0)}else{const G=j,H=h.value.substring(0,G),q=h.value.substring(G);h.value=H+F+q,setTimeout(()=>{const le=G+F.length;U.setSelectionRange(le,le),U.focus()},0)}})}},m=async a=>{try{if(a.size<=10*1024*1024){const R=await a.arrayBuffer();if(window.isSecureContext){const Z=await crypto.subtle.digest("SHA-256",R);return Array.from(new Uint8Array(Z)).map(H=>H.toString(16).padStart(2,"0")).join("")}return v(a)}const e=5*1024*1024,l=a.slice(0,e),i=a.slice(-e),[k,F]=await Promise.all([l.arrayBuffer(),i.arrayBuffer()]),U=new Uint8Array(k.byteLength+F.byteLength+16);U.set(new Uint8Array(k),0),U.set(new Uint8Array(F),k.byteLength);const j=new TextEncoder().encode(a.size.toString());if(U.set(j,k.byteLength+F.byteLength),window.isSecureContext){const R=await crypto.subtle.digest("SHA-256",U);return Array.from(new Uint8Array(R)).map(G=>G.toString(16).padStart(2,"0")).join("")}return v(a)}catch(e){return console.error("File hash calculation failed:",e),v(a)}},v=a=>{const e=`${a.name}-${a.size}-${a.lastModified}`;let l=0;for(let i=0;i{switch(a){case"day":return u("send.expiration.placeholders.days");case"hour":return u("send.expiration.placeholders.hours");case"minute":return u("send.expiration.placeholders.minutes");case"count":return u("send.expiration.placeholders.count");case"forever":return u("send.expiration.placeholders.forever");default:return u("send.expiration.placeholders.default")}},B=(a=d.value)=>{switch(a){case"day":return u("send.expiration.units.days");case"hour":return u("send.expiration.units.hours");case"minute":return u("send.expiration.units.minutes");case"count":return u("send.expiration.units.times");case"forever":return u("send.expiration.units.forever");default:return""}},N=(a,e)=>{if(a==="forever")return u("send.expiration.units.forever");if(a==="count")return u("send.messages.expiresAfterCount",{count:e});const l=new Date,i=parseInt(e);switch(a){case"minute":l.setMinutes(l.getMinutes()+i);break;case"hour":l.setHours(l.getHours()+i);break;case"day":l.setDate(l.getDate()+i);break;default:return u("send.messages.expiresAfter",{value:e,unit:B(a)})}const k=l.getFullYear(),F=(l.getMonth()+1).toString().padStart(2,"0"),U=l.getDate().toString().padStart(2,"0"),j=l.getHours().toString().padStart(2,"0"),R=l.getMinutes().toString().padStart(2,"0");return u("send.messages.expiresAt",{date:`${k}-${F}-${U} ${j}:${R}`})},X=async a=>{try{const e=await m(a);b.value=e,console.log("Calculated file hash:",e);const l=5*1024*1024,i=Math.ceil(a.size/l),k=await re.post("chunk/upload/init/",{file_name:a.name,file_size:a.size,chunk_size:l,file_hash:b.value});if(k.code!==200)throw new Error(u("send.messages.initChunkUploadFailed"));if(k.detail?.existed)return k;const F=k.detail?.upload_id,U=new Set(k.detail?.uploaded_chunks||[]);for(let R=0;R{const je=Array.from(U).reduce((Ge,be)=>{const Oe=Math.min((be+1)*l,a.size),He=be*l;return Ge+(Oe-He)},0),Ne=Math.round((je+R*l+Ve.loaded)*100/a.size);o.value=Math.min(Ne,99)}})).code!==200)throw new Error(u("send.messages.chunkUploadFailed",{index:R}))}const j=await re.post(`chunk/upload/complete/${F}`,{expire_value:c.value?parseInt(c.value):1,expire_style:d.value});if(j.code!==200)throw new Error(u("send.messages.completeUploadFailed"));return j}catch(e){if(console.error("切片上传失败:",e),e&&typeof e=="object"&&"response"in e){const l=e;l.response?.data?.detail&&g.showAlert(l.response.data.detail,"error")}else g.showAlert(u("send.messages.uploadFailed"),"error");throw e}},Ee=async a=>{const e=new FormData,l={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:k=>{const F=Math.round(k.loaded*100/(k.total||1));o.value=F}};return e.append("file",a),e.append("expire_value",c.value),e.append("expire_style",d.value),await re.post("share/file/",e,l)},ze=async a=>{const e=await L(a,{expireValue:c.value?parseInt(c.value):1,expireStyle:d.value,onProgress:l=>{o.value=l.percentage}});if(e)return{code:200,detail:{code:e,name:a.name}};throw new Error(u("send.messages.uploadFailed"))},he=()=>y.openUpload===0&&localStorage.getItem("token")===null?(g.showAlert(u("send.messages.guestUploadDisabled"),"error"),!1):!0,fe=a=>a.size>y.uploadSize?(g.showAlert(u("send.messages.fileSizeExceeded",{size:Ie(y.uploadSize)}),"error"),_.value=null,!1):!0,me=(a,e)=>{if(a==="forever"||a==="count")return!0;const l=y.max_save_seconds||0;if(l===0)return!0;let i=0;switch(a){case"minute":i=parseInt(e)*60;break;case"hour":i=parseInt(e)*3600;break;case"day":i=parseInt(e)*86400;break;default:return!1}return i<=l},ve=()=>!(!he()||!fe(_.value)||!me(d.value,c.value)),Ue=async()=>{if(p.value==="file"&&!_.value){g.showAlert(u("send.messages.selectFile"),"error");return}if(p.value==="text"&&!h.value.trim()){g.showAlert(u("send.messages.enterText"),"error");return}if(d.value!=="forever"&&!c.value){g.showAlert(u("send.messages.enterExpirationValue"),"error");return}if(!me(d.value,c.value)){const a=Math.floor(y.max_save_seconds/86400);g.showAlert(u("send.messages.expirationTooLong",{days:a}),"error");return}try{let a;if(p.value==="file")try{a=await ze(_.value)}catch{y.enableChunk?a=await X(_.value):a=await Ee(_.value)}else{const e=new FormData;e.append("text",h.value),e.append("expire_value",c.value),e.append("expire_style",d.value),a=await re.post("share/text/",e,{headers:{"Content-Type":"multipart/form-data"}})}if(a&&a.code===200){const e=a.detail?.code||"",l=a.detail?.name||"",i={id:Date.now(),filename:l,date:new Date().toISOString().split("T")[0],size:p.value==="text"?`${(h.value.length/1024).toFixed(2)} KB`:`${(_.value.size/(1024*1024)).toFixed(1)} MB`,expiration:d.value==="forever"?u("send.expiration.forever"):N(d.value,c.value),retrieveCode:e};f.addShareDataRecord(i),g.showAlert(u("send.messages.sendSuccess",{code:e}),"success"),_.value=null,h.value="",o.value=0,V(),x.value=i,await ue(e)}else throw new Error(u("send.messages.serverError"))}catch(a){if(a&&typeof a=="object"&&"response"in a){const e=a;e.response?.data?.detail&&g.showAlert(e.response.data.detail,"error")}else g.showAlert(u("send.messages.sendFailed"),"error")}finally{o.value=0}},Pe=()=>{T.push("/")},ye=()=>{A.value=!A.value},Re=a=>{x.value=a},Be=a=>{const e=f.shareData.findIndex(l=>l.id===a);e!==-1&&f.deleteShareData(e)},$e=window.location.origin+"/#/",Le=a=>`${$e}?code=${a.retrieveCode}`,xe=a=>{const l=(parseInt(c.value)||0)+a;l>=1&&(c.value=l.toString())};return Fe(()=>{console.log("SendFileView mounted")}),(a,e)=>{const l=tt("router-link");return D(),z("div",{class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300",onPaste:se(O,["prevent"])},[r("div",{class:n(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[t(s)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[r("div",zt,[S(ot,{title:t(y).name,onTitleClick:Pe},null,8,["title"]),r("form",{onSubmit:se(Ue,["prevent"]),class:"space-y-8"},[S(xt,{"selected-type":p.value,"onUpdate:selectedType":e[0]||(e[0]=i=>p.value=i)},null,8,["selected-type"]),S(ie,{name:"fade",mode:"out-in"},{default:te(()=>[p.value==="file"?(D(),z("div",Ut,[S(Mt,{"selected-file":_.value,progress:o.value,description:`支持各种常见格式,最大${t(Ie)(t(y).uploadSize)}`,onFileSelected:Q,onFileDrop:Y},null,8,["selected-file","progress","description"])])):(D(),z("div",Pt,[S(Ft,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=i=>h.value=i),placeholder:t(u)("send.uploadArea.textInput")},null,8,["modelValue","placeholder"])]))]),_:1}),r("div",Rt,[r("label",{class:n(["text-sm font-medium",t(s)?"text-gray-300":"text-gray-700"])},M(t(u)("send.expiration.label")),3),r("div",Bt,[r("div",{class:n(["relative h-12 rounded-2xl border transition-all duration-300 shadow-sm",t(s)?"bg-gray-800/60 border-gray-700/60 group-hover:border-gray-600/80 group-hover:shadow-lg group-hover:shadow-gray-900/20":"bg-white border-gray-200 group-hover:border-gray-300 group-hover:shadow-md group-hover:shadow-gray-200/50"])},[d.value!=="forever"?(D(),z(de,{key:0},[we(r("input",{"onUpdate:modelValue":e[2]||(e[2]=i=>c.value=i),type:"number",placeholder:w(),min:"1",class:n(["w-full h-full px-5 pr-32 rounded-2xl placeholder-gray-400 transition-all duration-300","focus:outline-none focus:ring-2 focus:ring-offset-0","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none","bg-transparent",t(s)?"text-gray-100 focus:ring-indigo-500/80 placeholder-gray-500":"text-gray-900 focus:ring-indigo-500/60 placeholder-gray-400"])},null,10,$t),[[Ye,c.value]]),r("div",{class:n(["absolute right-28 top-0 h-full flex flex-col border-l",[t(s)?"border-gray-700/60":"border-gray-200"]])},[r("button",{type:"button",onClick:e[3]||(e[3]=i=>xe(1)),class:n(["flex-1 px-2 flex items-center justify-center transition-all duration-200",[t(s)?"hover:bg-gray-700/60 text-gray-400 hover:text-gray-200":"hover:bg-gray-50 text-gray-500 hover:text-gray-700"]])},[...e[10]||(e[10]=[r("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 15l7-7 7 7"})],-1)])],2),r("button",{type:"button",onClick:e[4]||(e[4]=i=>xe(-1)),class:n(["flex-1 px-2 flex items-center justify-center transition-all duration-200",[t(s)?"hover:bg-gray-700/60 text-gray-400 hover:text-gray-200":"hover:bg-gray-50 text-gray-500 hover:text-gray-700"]])},[...e[11]||(e[11]=[r("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])],2)],2)],64)):K("",!0),we(r("select",{"onUpdate:modelValue":e[5]||(e[5]=i=>d.value=i),class:n(["absolute right-0 top-0 h-full appearance-none cursor-pointer transition-all duration-300","focus:outline-none focus:ring-2 focus:ring-offset-0",d.value==="forever"?"w-full px-5 rounded-2xl":"w-28 pl-4 pr-9 border-l rounded-r-2xl",t(s)?"text-gray-100 border-gray-700/60 focus:ring-indigo-500/80 bg-gray-800/60":"text-gray-900 border-gray-200 focus:ring-indigo-500/60 bg-white"]),style:ke({color:t(s)?"#f3f4f6":"#111827",backgroundColor:t(s)?"rgba(31, 41, 55, 0.5)":"#ffffff"})},[(D(!0),z(de,null,Se(t(y).expireStyle,i=>(D(),z("option",{value:i,key:i,class:n([t(s)?"bg-gray-800 text-gray-100":"bg-white text-gray-900"]),style:ke({color:t(s)?"#f3f4f6":"#111827",backgroundColor:t(s)?"#1f2937":"#ffffff"})},M(B(i)),15,Lt))),128))],6),[[et,d.value]]),r("div",{class:n(["absolute pointer-events-none",[d.value==="forever"?"right-3":"right-2","top-1/2 -translate-y-1/2"]])},[(D(),z("svg",{class:n(["w-4 h-4 transition-colors duration-300",[t(s)?"text-gray-400":"text-gray-500"]]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...e[12]||(e[12]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],2)],2)])]),r("button",Vt,[e[13]||(e[13]=r("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),r("span",jt,[S(t(mt),{class:"w-6 h-6 mr-2"}),r("span",null,M(t(u)("send.submit")),1)])])],32),r("div",Nt,[S(l,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:te(()=>[ce(M(t(u)("send.needRetrieveFile")),1)]),_:1})])]),r("div",{class:n(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[t(s)?"bg-gray-800":"bg-gray-100"]])},[r("span",{class:n(["text-sm flex items-center",[t(s)?"text-gray-300":"text-gray-800"]])},[S(t(Ce),{class:"w-4 h-4 mr-1 text-green-400"}),ce(" "+M(t(u)("send.secureEncryption")),1)],2),r("button",{onClick:ye,class:n(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[t(s)?"text-indigo-400":"text-indigo-600"]])},[ce(M(t(u)("send.sendRecords"))+" ",1),S(t(nt),{class:"w-4 h-4 ml-1"})],2)],2)],2),S(ie,{name:"drawer"},{default:te(()=>[A.value?(D(),z("div",{key:0,class:n(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[t(s)?"bg-gray-900":"bg-white"]])},[r("div",{class:n(["flex justify-between items-center p-6 border-b",[t(s)?"border-gray-700":"border-gray-200"]])},[r("h3",{class:n(["text-2xl font-bold",[t(s)?"text-white":"text-gray-800"]])},M(t(u)("send.sendRecords")),3),r("button",{onClick:ye,class:n(["hover:text-white transition duration-300",[t(s)?"text-gray-400":"text-gray-800"]])},[S(t(_e),{class:"w-6 h-6"})],2)],2),r("div",Gt,[S(rt,{name:"list",tag:"div",class:"space-y-4"},{default:te(()=>[(D(!0),z(de,null,Se(C.value,i=>(D(),z("div",{key:i.id,class:n(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[t(s)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[r("div",Ot,[S(t(Me),{class:n(["w-10 h-10",[t(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),r("div",Ht,[r("p",{class:n(["font-medium text-lg truncate",[t(s)?"text-white":"text-gray-800"]])},M(i.filename?i.filename:"Text"),3),r("p",{class:n(["text-sm truncate",[t(s)?"text-gray-400":"text-gray-600"]])},M(i.date)+" · "+M(i.size),3)]),r("div",qt,[r("button",{onClick:k=>t(ue)(i.retrieveCode),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[t(s)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[S(t(pe),{class:"w-5 h-5"})],10,Wt),r("button",{onClick:k=>Re(i),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[t(s)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[S(t(ct),{class:"w-5 h-5"})],10,Xt),r("button",{onClick:k=>Be(i.id),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[t(s)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[S(t(ut),{class:"w-5 h-5"})],10,Zt)])],2))),128))]),_:1})])],2)):K("",!0)]),_:1}),S(ie,{name:"fade"},{default:te(()=>[x.value?(D(),z("div",Jt,[r("div",{class:n(["w-full max-w-2xl rounded-2xl shadow-2xl transform transition-all duration-300 ease-out overflow-hidden",[t(s)?"bg-gray-900 bg-opacity-70":"bg-white bg-opacity-95"]])},[r("div",{class:n(["px-4 sm:px-6 py-3 sm:py-4 border-b",[t(s)?"border-gray-800":"border-gray-100"]])},[r("div",Kt,[r("h3",{class:n(["text-lg sm:text-xl font-semibold",[t(s)?"text-white":"text-gray-900"]])},M(t(u)("send.fileDetails")),3),r("button",{onClick:e[6]||(e[6]=i=>x.value=null),class:"p-1.5 sm:p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[S(t(_e),{class:n(["w-4 h-4 sm:w-5 sm:h-5",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"])])])],2),r("div",Qt,[r("div",{class:n(["rounded-xl p-3 sm:p-4 mb-4 sm:mb-6",[t(s)?"bg-gray-800 bg-opacity-50":"bg-gray-50 bg-opacity-95"]])},[r("div",Yt,[r("div",{class:n(["p-2 sm:p-3 rounded-lg",[t(s)?"bg-gray-800":"bg-white"]])},[S(t(Me),{class:n(["w-5 h-5 sm:w-6 sm:h-6",[t(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),r("div",er,[r("h4",{class:n(["font-medium text-sm sm:text-base truncate",[t(s)?"text-white":"text-gray-900"]])},M(x.value.filename),3),r("p",{class:n(["text-xs sm:text-sm truncate",[t(s)?"text-gray-400":"text-gray-500"]])},M(x.value.size)+" · "+M(x.value.date),3)])]),r("div",tr,[r("div",rr,[S(t(gt),{class:n(["w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1.5 sm:mr-2 flex-shrink-0",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"]),r("span",{class:n(["text-xs sm:text-sm truncate",[t(s)?"text-gray-300":"text-gray-600"]])},M(x.value.expiration),3)]),r("div",sr,[S(t(Ce),{class:n(["w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1.5 sm:mr-2 flex-shrink-0",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"]),r("span",{class:n(["text-xs sm:text-sm truncate",[t(s)?"text-gray-300":"text-gray-600"]])}," 安全加密 ",2)])])],2),r("div",ar,[r("div",or,[r("div",nr,[r("div",lr,[e[14]||(e[14]=r("h4",{class:"font-medium text-sm sm:text-base"},"取件码",-1)),r("button",{onClick:e[7]||(e[7]=i=>t(lt)(x.value.retrieveCode)),class:"p-1.5 sm:p-2 rounded-full hover:bg-white/10 transition-colors"},[S(t(pe),{class:"w-4 h-4 sm:w-5 sm:h-5"})])]),r("p",ir,M(x.value.retrieveCode),1)]),r("div",{class:n(["rounded-xl p-3 sm:p-4",[t(s)?"bg-gray-800 bg-opacity-50":"bg-gray-50 bg-opacity-95"]])},[r("div",dr,[r("h4",{class:n(["font-medium text-sm sm:text-base flex items-center min-w-0",[t(s)?"text-white":"text-gray-900"]])},[S(t(vt),{class:"w-4 h-4 sm:w-5 sm:h-5 mr-1.5 sm:mr-2 text-indigo-500 flex-shrink-0"}),e[15]||(e[15]=r("span",{class:"truncate"},"wget下载",-1))],2),r("button",{onClick:e[8]||(e[8]=i=>t(it)(x.value.retrieveCode,x.value.filename)),class:"p-1.5 sm:p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors flex-shrink-0"},[S(t(pe),{class:n(["w-4 h-4 sm:w-5 sm:h-5",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"])])]),r("p",{class:n(["text-xs sm:text-sm font-mono break-all line-clamp-2",[t(s)?"text-gray-300":"text-gray-600"]])}," 点击复制wget命令 ",2)],2)]),r("div",{class:n(["rounded-xl p-4 sm:p-5 flex flex-col items-center",[t(s)?"bg-gray-800 bg-opacity-50":"bg-gray-50 bg-opacity-95"]])},[r("div",cr,[S(dt,{value:Le(x.value),size:140,level:"M",class:"sm:w-[160px] sm:h-[160px]"},null,8,["value"])]),r("p",{class:n(["text-xs sm:text-sm truncate max-w-full",[t(s)?"text-gray-400":"text-gray-500"]])}," 扫描二维码快速取件 ",2)],2)])]),r("div",{class:n(["px-4 sm:px-6 py-3 sm:py-4 border-t",[t(s)?"border-gray-800":"border-gray-100"]])},[r("button",{onClick:e[9]||(e[9]=i=>t(ue)(x.value.retrieveCode)),class:"w-full bg-indigo-600 hover:bg-indigo-700 text-white px-4 sm:px-6 py-2 sm:py-3 rounded-lg text-sm sm:text-base font-medium transition-colors"}," 复制取件链接 ")],2)],2)])):K("",!0)]),_:1})],32)}}}),vr=ge(ur,[["__scopeId","data-v-832d304e"]]);export{vr as default}; diff --git a/themes/2024/assets/SendFileView-DsVuX-HF.js b/themes/2024/assets/SendFileView-DsVuX-HF.js deleted file mode 100644 index 38fcb50..0000000 --- a/themes/2024/assets/SendFileView-DsVuX-HF.js +++ /dev/null @@ -1 +0,0 @@ -import{c as X,d as ae,u as oe,a as U,o as F,b as r,n,e as t,i as ne,t as M,r as P,f as Fe,w as Xe,_ as ge,g as E,C as Ze,h as se,j as K,k as We,l as S,m as Je,p as Ee,q as ee,P as J,s as Ke,F as we,v as te,T as ie,x as ke,y as de,z as Qe,A as Ye,B as Se,D as _e,E as ce,G as et,X as Ce,H as tt,I as rt,J as re}from"./index-DaP6hnmm.js";import{u as st,P as at,S as Me,C as ot,c as nt,a as lt,Q as it,b as ue}from"./PageHeader-Dda1k_N5.js";import{F as Ie}from"./file-C928Lhos.js";import{E as dt,T as ct}from"./trash-JuhqIjo3.js";import"./box-C2OkK29z.js";const ut=X("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);const pe=X("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);const pt=X("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const gt=X("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);const ht=X("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);const ft=X("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const vt=X("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),Te=A=>A>=1024*1024*1024?Math.round(A/(1024*1024*1024))+"GB":A>=1024*1024?Math.round(A/(1024*1024))+"MB":Math.round(A/1024)+"KB",mt={class:"flex justify-center space-x-4 mb-6"},yt=ae({__name:"SendTypeSelector",props:{selectedType:{}},emits:["update:selectedType"],setup(A,{emit:y}){const{t:I}=oe(),s=y,f=ne("isDarkMode"),p=_=>{s("update:selectedType",_)};return(_,h)=>(F(),U("div",mt,[r("button",{type:"button",onClick:h[0]||(h[0]=d=>p("file")),class:n(["px-4 py-2 rounded-lg transition-colors duration-300",_.selectedType==="file"?"bg-indigo-600 text-white":t(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},M(t(I)("nav.sendFile")),3),r("button",{type:"button",onClick:h[1]||(h[1]=d=>p("text")),class:n(["px-4 py-2 rounded-lg transition-colors duration-300",_.selectedType==="text"?"bg-indigo-600 text-white":t(f)?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"])},M(t(I)("send.sendText")),3)]))}}),xt=ae({__name:"BorderProgressBar",props:{progress:{}},setup(A){const y=A,I=P(null),s=P(null);let f=null;const p=()=>{if(!f||!s.value||!I.value)return;const h=I.value.clientWidth,d=I.value.clientHeight;s.value.width=h,s.value.height=d;const c=4,o=8;f.lineWidth=c;const T=f.createLinearGradient(0,0,h,d);T.addColorStop(0,"#4f46e5"),T.addColorStop(.5,"#7c3aed"),T.addColorStop(1,"#db2777"),f.strokeStyle="rgba(229, 231, 235, 0.2)",_(f,c/2,c/2,h-c,d-c,o),f.stroke();const u=((h+d)*2-8*o+2*Math.PI*o)*y.progress/100;f.strokeStyle=T,f.lineCap="round",f.lineJoin="round",f.beginPath();let g=u;const C=c/2,$=h-c,V=d-c;if(g>0){const b=Math.min($-2*o,g);f.moveTo(o+C,C),f.lineTo(b+o+C,C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc($-o+C,o+C,o,-Math.PI/2,b-Math.PI/2,!1),g-=b*o}if(g>0){const b=Math.min(V-2*o,g);f.lineTo($+C,b+o+C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc($-o+C,V-o+C,o,0,b,!1),g-=b*o}if(g>0){const b=Math.min($-2*o,g);f.lineTo($-b-o+C,V+C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc(o+C,V-o+C,o,Math.PI/2,Math.PI/2+b,!1),g-=b*o}if(g>0){const b=Math.min(V-2*o,g);f.lineTo(C,V-b-o+C),g-=b}if(g>0){const b=Math.min(Math.PI/2,g/o);f.arc(o+C,o+C,o,Math.PI,Math.PI+b,!1)}f.stroke()};function _(h,d,c,o,T,x){h.beginPath(),h.moveTo(d+x,c),h.lineTo(d+o-x,c),h.arcTo(d+o,c,d+o,c+x,x),h.lineTo(d+o,c+T-x),h.arcTo(d+o,c+T,d+o-x,c+T,x),h.lineTo(d+x,c+T),h.arcTo(d,c+T,d,c+T-x,x),h.lineTo(d,c+x),h.arcTo(d,c,d+x,c,x),h.closePath()}return Fe(()=>{s.value&&(f=s.value.getContext("2d"),p())}),Xe(()=>y.progress,p),(h,d)=>(F(),U("div",{class:"border-progress-container",ref_key:"container",ref:I},[r("canvas",{ref_key:"canvas",ref:s,class:"border-progress-canvas"},null,512)],512))}}),bt=ge(xt,[["__scopeId","data-v-2fbf5085"]]),wt=["accept","disabled"],kt={key:0,class:"absolute inset-0 w-full h-full"},St={class:"block truncate"},_t={key:1,class:"mt-3 w-full"},Ct=ae({__name:"FileUploadArea",props:{selectedFile:{default:null},progress:{default:0},placeholder:{default:""},description:{default:""},acceptedTypes:{default:"*"},uploadStatus:{default:"idle"},uploadedBytes:{default:0},totalBytes:{default:0},errorMessage:{default:""},allowRetry:{type:Boolean,default:!0},retryText:{default:"重试"},showProgressDetails:{type:Boolean,default:!0}},emits:["fileSelected","fileDrop","retry"],setup(A,{emit:y}){const{t:I}=oe(),s=A,f=y,p=ne("isDarkMode"),_=E(()=>s.placeholder||I("send.uploadArea.placeholder")),h=E(()=>s.description||I("send.uploadArea.description")),d=P(null),c=E(()=>["uploading","initializing","confirming"].includes(s.uploadStatus)),o=E(()=>s.uploadStatus==="error"),T=E(()=>s.uploadStatus==="success"),x=E(()=>s.selectedFile?s.selectedFile.name:_.value),u=E(()=>c.value?ht:T.value?Ze:o.value?ut:gt),g=E(()=>c.value?p?"text-indigo-400 animate-spin":"text-indigo-600 animate-spin":T.value?p?"text-green-400":"text-green-600":o.value?p?"text-red-400":"text-red-600":p?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"),C=E(()=>o.value?p?"border-red-500/50":"border-red-300":T.value?p?"border-green-500/50":"border-green-300":""),$=E(()=>o.value&&s.errorMessage?s.errorMessage:s.uploadStatus==="initializing"?"正在初始化上传...":s.uploadStatus==="uploading"?"正在上传文件...":s.uploadStatus==="confirming"?"正在确认上传...":T.value?"上传成功!":h.value),V=E(()=>o.value?p?"text-red-400":"text-red-500":T.value?p?"text-green-400":"text-green-500":p?"text-gray-500":"text-gray-400"),b=m=>{if(m===0)return"0 B";const w=1024,B=["B","KB","MB","GB"],N=Math.floor(Math.log(m)/Math.log(w));return parseFloat((m/Math.pow(w,N)).toFixed(2))+" "+B[N]},Q=()=>{c.value||d.value?.click()},Y=m=>{const B=m.target.files?.[0];B&&f("fileSelected",B)},H=m=>{c.value||f("fileDrop",m)},v=()=>{f("retry")};return(m,w)=>(F(),U("div",{class:n(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[t(p)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500",C.value]]),onClick:Q,onDragover:w[0]||(w[0]=se(()=>{},["prevent"])),onDrop:se(H,["prevent"])},[r("input",{ref_key:"fileInput",ref:d,type:"file",class:"hidden",onChange:Y,accept:m.acceptedTypes,disabled:c.value},null,40,wt),m.progress>0?(F(),U("div",kt,[S(bt,{progress:m.progress},null,8,["progress"])])):K("",!0),(F(),We(Je(u.value),{class:n(["w-16 h-16 transition-colors duration-300",g.value])},null,8,["class"])),r("p",{class:n(["mt-4 text-sm transition-colors duration-300 w-full text-center",t(p)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[r("span",St,M(x.value),1)],2),r("p",{class:n(["mt-2 text-xs",V.value])},M($.value),3),c.value&&m.showProgressDetails?(F(),U("div",_t,[r("div",{class:n(["flex justify-between text-xs mb-1",[t(p)?"text-gray-400":"text-gray-500"]])},[r("span",null,M(b(m.uploadedBytes))+" / "+M(b(m.totalBytes)),1),r("span",null,M(m.progress)+"%",1)],2)])):K("",!0),o.value&&m.allowRetry?(F(),U("button",{key:2,onClick:se(v,["stop"]),class:n(["mt-3 px-4 py-2 text-sm rounded-lg transition-colors duration-200",[t(p)?"bg-indigo-600 hover:bg-indigo-500 text-white":"bg-indigo-500 hover:bg-indigo-600 text-white"]])},M(m.retryText),3)):K("",!0)],34))}}),Mt={class:"flex flex-col"},It=["value","rows","placeholder"],Tt=ae({__name:"TextInputArea",props:{modelValue:{},rows:{default:7},placeholder:{default:"在此输入要发送的文本..."}},emits:["update:modelValue"],setup(A,{emit:y}){const{t:I}=oe(),s=A,f=y,p=ne("isDarkMode"),_=E(()=>s.placeholder||I("send.uploadArea.textInput")),h=d=>{const c=d.target;f("update:modelValue",c.value)};return(d,c)=>(F(),U("div",Mt,[r("textarea",{value:d.modelValue,onInput:h,rows:d.rows,placeholder:_.value,class:n(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none custom-scrollbar",t(p)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,42,It)]))}}),At=ge(Tt,[["__scopeId","data-v-bebdfe92"]]),L={IDLE:"idle",INITIALIZING:"initializing",UPLOADING:"uploading",CONFIRMING:"confirming",SUCCESS:"success",ERROR:"error"},Ae=1,De="day";function Dt(){const A=Ee(),y=P(L.IDLE),I=P(null),s=P({loaded:0,total:0,percentage:0}),f=P(""),p=P(""),_=E(()=>y.value===L.INITIALIZING),h=E(()=>y.value===L.UPLOADING),d=E(()=>y.value===L.CONFIRMING),c=E(()=>y.value===L.SUCCESS),o=E(()=>y.value===L.ERROR),T=E(()=>I.value?.mode??null),x=v=>{if(v.size>we.MAX_FILE_SIZE){const m=Math.round(we.MAX_FILE_SIZE/1024/1024);return p.value=`文件大小不能超过 ${m}MB`,A.showAlert(p.value,"error"),!1}return!0},u=v=>m=>{s.value={loaded:Math.max(0,m.loaded),total:Math.max(0,m.total),percentage:Math.min(100,Math.max(0,m.percentage))},v&&v(s.value)},g=v=>{if(y.value=L.ERROR,Ke.isAxiosError(v)){const m=v.response?.status,w=v.response?.data?.detail;switch(m){case 400:p.value=w||"请求参数错误";break;case 403:p.value=w||"操作被禁止";break;case 404:p.value="上传会话不存在或已过期";break;case 500:p.value="服务器错误,请稍后重试";break;default:p.value=w||"上传失败,请重试"}}else v instanceof Error?p.value=v.message:p.value="未知错误";A.showAlert(p.value,"error")},C=async(v,m)=>{try{y.value=L.INITIALIZING;const w=await J.initUpload({file_name:v.name,file_size:v.size,expire_value:m?.expireValue??Ae,expire_style:m?.expireStyle??De});if(w.code===200&&w.detail)return I.value=w.detail,w.detail;throw new Error(w.message||"初始化上传失败")}catch(w){return g(w),null}},$=async(v,m,w)=>{try{y.value=L.UPLOADING;const B=u(w?.onProgress);if(!await J.directUploadToS3(m.upload_url,v,B))throw new Error("S3 上传失败");y.value=L.CONFIRMING;const Z=await J.confirmUpload(m.upload_id,{expire_value:w?.expireValue??Ae,expire_style:w?.expireStyle??De});if(Z.code===200&&Z.detail?.code)return y.value=L.SUCCESS,f.value=String(Z.detail.code),s.value={loaded:v.size,total:v.size,percentage:100},A.showAlert("文件上传成功!","success"),f.value;throw new Error(Z.message||"确认上传失败")}catch(B){return g(B),null}},V=async(v,m,w)=>{try{y.value=L.UPLOADING;const B=u(w?.onProgress),N=await J.proxyUpload(m.upload_id,v,B);if(N.code===200&&N.detail?.code)return y.value=L.SUCCESS,f.value=String(N.detail.code),s.value={loaded:v.size,total:v.size,percentage:100},A.showAlert("文件上传成功!","success"),f.value;throw new Error(N.message||"代理上传失败")}catch(B){return g(B),null}},b=async(v,m)=>{if(H(),!x(v))return y.value=L.ERROR,null;const w=await C(v,m);return w?w.mode==="direct"?await $(v,w,m):await V(v,w,m):null},Q=async()=>{if(I.value?.upload_id)try{await J.cancelUpload(I.value.upload_id),A.showAlert("上传已取消","info")}catch(v){console.warn("取消上传失败:",v)}finally{H()}},Y=async()=>{if(!I.value?.upload_id)return null;try{const v=await J.getUploadStatus(I.value.upload_id);return v.code===200&&v.detail?(v.detail.is_expired&&(p.value="上传会话已过期",A.showAlert(p.value,"warning")),v.detail):null}catch(v){return g(v),null}},H=()=>{y.value=L.IDLE,I.value=null,s.value={loaded:0,total:0,percentage:0},f.value="",p.value=""};return{presignStatus:ee(y),uploadSession:ee(I),uploadProgress:ee(s),uploadedCode:ee(f),errorMessage:ee(p),isInitializing:_,isUploading:h,isConfirming:d,isSuccess:c,isError:o,currentMode:T,uploadFile:b,cancelUpload:Q,getStatus:Y,reset:H}}const Ft={class:"p-8"},Et={key:"file",class:"grid grid-cols-1 gap-8"},Ut={key:"text",class:"grid grid-cols-1 gap-8"},zt={class:"flex flex-col space-y-3"},Pt={class:"relative flex-grow group"},Rt=["placeholder"],Bt=["value"],Lt={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},$t={class:"relative z-10 flex items-center justify-center text-lg"},Vt={class:"mt-6 text-center"},jt={class:"flex-grow overflow-y-auto p-6"},Nt={class:"flex-shrink-0 mr-4"},Gt={class:"flex-grow min-w-0 mr-4"},Ht={class:"flex-shrink-0 flex space-x-2"},Ot=["onClick"],qt=["onClick"],Xt=["onClick"],Zt={key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-3 sm:p-4 overflow-y-auto"},Wt={class:"flex items-center justify-between"},Jt={class:"p-4 sm:p-6"},Kt={class:"flex items-center mb-3 sm:mb-4"},Qt={class:"ml-3 sm:ml-4 min-w-0 flex-1"},Yt={class:"grid grid-cols-2 gap-3 sm:gap-4"},er={class:"flex items-center min-w-0"},tr={class:"flex items-center min-w-0"},rr={class:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6"},sr={class:"space-y-3 sm:space-y-4"},ar={class:"bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl p-4 sm:p-5 text-white"},or={class:"flex items-center justify-between mb-3 sm:mb-4"},nr={class:"text-2xl sm:text-3xl font-bold tracking-wider text-center break-all"},lr={class:"flex items-center justify-between mb-2 sm:mb-3"},ir={class:"bg-white p-3 sm:p-4 rounded-lg shadow-sm mb-3 sm:mb-4"},dr=ae({__name:"SendFileView",setup(A){const y=JSON.parse(localStorage.getItem("config")||"{}"),I=rt(),s=ne("isDarkMode"),f=st(),p=P("file"),_=P(null),h=P(""),d=P(y.expireStyle?.[0]||"day"),c=P("1"),o=P(0),T=P(!1),x=P(null),{t:u}=oe(),g=Ee(),C=E(()=>f.shareData),{uploadFile:$,reset:V}=Dt(),b=P(""),Q=async a=>{_.value=a,he()&&fe(a)&&(b.value=await v(a))},Y=async a=>{if(a.dataTransfer?.files&&a.dataTransfer.files.length>0){const e=a.dataTransfer.files[0];if(_.value=e,!me())return;b.value=await v(e)}},H=async a=>{const e=a.clipboardData?.items;if(e)for(let l=0;l{const D=k.trim();if(!D)return;const z=document.getElementById("text-content");if(!z){h.value+=D;return}const j=z.selectionStart,R=z.selectionEnd;if(j!==R){const G=h.value.substring(0,j),O=h.value.substring(R);h.value=G+D+O,setTimeout(()=>{const q=j+D.length;z.setSelectionRange(q,q),z.focus()},0)}else{const G=j,O=h.value.substring(0,G),q=h.value.substring(G);h.value=O+D+q,setTimeout(()=>{const le=G+D.length;z.setSelectionRange(le,le),z.focus()},0)}})}},v=async a=>{try{if(a.size<=10*1024*1024){const R=await a.arrayBuffer();if(window.isSecureContext){const W=await crypto.subtle.digest("SHA-256",R);return Array.from(new Uint8Array(W)).map(O=>O.toString(16).padStart(2,"0")).join("")}return m(a)}const e=5*1024*1024,l=a.slice(0,e),i=a.slice(-e),[k,D]=await Promise.all([l.arrayBuffer(),i.arrayBuffer()]),z=new Uint8Array(k.byteLength+D.byteLength+16);z.set(new Uint8Array(k),0),z.set(new Uint8Array(D),k.byteLength);const j=new TextEncoder().encode(a.size.toString());if(z.set(j,k.byteLength+D.byteLength),window.isSecureContext){const R=await crypto.subtle.digest("SHA-256",z);return Array.from(new Uint8Array(R)).map(G=>G.toString(16).padStart(2,"0")).join("")}return m(a)}catch(e){return console.error("File hash calculation failed:",e),m(a)}},m=a=>{const e=`${a.name}-${a.size}-${a.lastModified}`;let l=0;for(let i=0;i{switch(a){case"day":return u("send.expiration.placeholders.days");case"hour":return u("send.expiration.placeholders.hours");case"minute":return u("send.expiration.placeholders.minutes");case"count":return u("send.expiration.placeholders.count");case"forever":return u("send.expiration.placeholders.forever");default:return u("send.expiration.placeholders.default")}},B=(a=d.value)=>{switch(a){case"day":return u("send.expiration.units.days");case"hour":return u("send.expiration.units.hours");case"minute":return u("send.expiration.units.minutes");case"count":return u("send.expiration.units.times");case"forever":return u("send.expiration.units.forever");default:return""}},N=(a,e)=>{if(a==="forever")return u("send.expiration.units.forever");if(a==="count")return u("send.messages.expiresAfterCount",{count:e});const l=new Date,i=parseInt(e);switch(a){case"minute":l.setMinutes(l.getMinutes()+i);break;case"hour":l.setHours(l.getHours()+i);break;case"day":l.setDate(l.getDate()+i);break;default:return u("send.messages.expiresAfter",{value:e,unit:B(a)})}const k=l.getFullYear(),D=(l.getMonth()+1).toString().padStart(2,"0"),z=l.getDate().toString().padStart(2,"0"),j=l.getHours().toString().padStart(2,"0"),R=l.getMinutes().toString().padStart(2,"0");return u("send.messages.expiresAt",{date:`${k}-${D}-${z} ${j}:${R}`})},Z=async a=>{try{const e=await v(a);b.value=e,console.log("Calculated file hash:",e);const l=5*1024*1024,i=Math.ceil(a.size/l),k=await re.post("chunk/upload/init/",{file_name:a.name,file_size:a.size,chunk_size:l,file_hash:b.value});if(k.code!==200)throw new Error(u("send.messages.initChunkUploadFailed"));if(k.detail?.existed)return k;const D=k.detail?.upload_id,z=new Set(k.detail?.uploaded_chunks||[]);for(let R=0;R{const Ne=Array.from(z).reduce((He,be)=>{const Oe=Math.min((be+1)*l,a.size),qe=be*l;return He+(Oe-qe)},0),Ge=Math.round((Ne+R*l+je.loaded)*100/a.size);o.value=Math.min(Ge,99)}})).code!==200)throw new Error(u("send.messages.chunkUploadFailed",{index:R}))}const j=await re.post(`chunk/upload/complete/${D}`,{expire_value:c.value?parseInt(c.value):1,expire_style:d.value});if(j.code!==200)throw new Error(u("send.messages.completeUploadFailed"));return j}catch(e){if(console.error("切片上传失败:",e),e&&typeof e=="object"&&"response"in e){const l=e;l.response?.data?.detail&&g.showAlert(l.response.data.detail,"error")}else g.showAlert(u("send.messages.uploadFailed"),"error");throw e}},Ue=async a=>{const e=new FormData,l={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:k=>{const D=Math.round(k.loaded*100/(k.total||1));o.value=D}};return e.append("file",a),e.append("expire_value",c.value),e.append("expire_style",d.value),await re.post("share/file/",e,l)},ze=async a=>{const e=await $(a,{expireValue:c.value?parseInt(c.value):1,expireStyle:d.value,onProgress:l=>{o.value=l.percentage}});if(e)return{code:200,detail:{code:e,name:a.name}};throw new Error(u("send.messages.uploadFailed"))},he=()=>y.openUpload===0&&localStorage.getItem("token")===null?(g.showAlert(u("send.messages.guestUploadDisabled"),"error"),!1):!0,fe=a=>a.size>y.uploadSize?(g.showAlert(u("send.messages.fileSizeExceeded",{size:Te(y.uploadSize)}),"error"),_.value=null,!1):!0,ve=(a,e)=>{if(a==="forever"||a==="count")return!0;const l=y.max_save_seconds||0;if(l===0)return!0;let i=0;switch(a){case"minute":i=parseInt(e)*60;break;case"hour":i=parseInt(e)*3600;break;case"day":i=parseInt(e)*86400;break;default:return!1}return i<=l},me=()=>!(!he()||!fe(_.value)||!ve(d.value,c.value)),Pe=async()=>{if(p.value==="file"&&!_.value){g.showAlert(u("send.messages.selectFile"),"error");return}if(p.value==="text"&&!h.value.trim()){g.showAlert(u("send.messages.enterText"),"error");return}if(d.value!=="forever"&&!c.value){g.showAlert(u("send.messages.enterExpirationValue"),"error");return}if(!ve(d.value,c.value)){const a=Math.floor(y.max_save_seconds/86400);g.showAlert(u("send.messages.expirationTooLong",{days:a}),"error");return}try{let a;if(p.value==="file")try{a=await ze(_.value)}catch{y.enableChunk?a=await Z(_.value):a=await Ue(_.value)}else{const e=new FormData;e.append("text",h.value),e.append("expire_value",c.value),e.append("expire_style",d.value),a=await re.post("share/text/",e,{headers:{"Content-Type":"multipart/form-data"}})}if(a&&a.code===200){const e=a.detail?.code||"",l=a.detail?.name||"",i={id:Date.now(),filename:l,date:new Date().toISOString().split("T")[0],size:p.value==="text"?`${(h.value.length/1024).toFixed(2)} KB`:`${(_.value.size/(1024*1024)).toFixed(1)} MB`,expiration:d.value==="forever"?u("send.expiration.forever"):N(d.value,c.value),retrieveCode:e};f.addShareDataRecord(i),g.showAlert(u("send.messages.sendSuccess",{code:e}),"success"),_.value=null,h.value="",o.value=0,V(),x.value=i,await ue(e)}else throw new Error(u("send.messages.serverError"))}catch(a){if(a&&typeof a=="object"&&"response"in a){const e=a;e.response?.data?.detail&&g.showAlert(e.response.data.detail,"error")}else g.showAlert(u("send.messages.sendFailed"),"error")}finally{o.value=0}},Re=()=>{I.push("/")},ye=()=>{T.value=!T.value},Be=a=>{x.value=a},Le=a=>{const e=f.shareData.findIndex(l=>l.id===a);e!==-1&&f.deleteShareData(e)},$e=window.location.origin+"/#/",Ve=a=>`${$e}?code=${a.retrieveCode}`,xe=a=>{const l=(parseInt(c.value)||0)+a;l>=1&&(c.value=l.toString())};return Fe(()=>{console.log("SendFileView mounted")}),(a,e)=>{const l=et("router-link");return F(),U("div",{class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300",onPaste:se(H,["prevent"])},[r("div",{class:n(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[t(s)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[r("div",Ft,[S(at,{title:t(y).name,onTitleClick:Re},null,8,["title"]),r("form",{onSubmit:se(Pe,["prevent"]),class:"space-y-8"},[S(yt,{"selected-type":p.value,"onUpdate:selectedType":e[0]||(e[0]=i=>p.value=i)},null,8,["selected-type"]),S(ie,{name:"fade",mode:"out-in"},{default:te(()=>[p.value==="file"?(F(),U("div",Et,[S(Ct,{"selected-file":_.value,progress:o.value,description:`支持各种常见格式,最大${t(Te)(t(y).uploadSize)}`,onFileSelected:Q,onFileDrop:Y},null,8,["selected-file","progress","description"])])):(F(),U("div",Ut,[S(At,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=i=>h.value=i),placeholder:t(u)("send.uploadArea.textInput")},null,8,["modelValue","placeholder"])]))]),_:1}),r("div",zt,[r("label",{class:n(["text-sm font-medium",t(s)?"text-gray-300":"text-gray-700"])},M(t(u)("send.expiration.label")),3),r("div",Pt,[r("div",{class:n(["relative h-12 rounded-2xl border transition-all duration-300 shadow-sm",t(s)?"bg-gray-800/60 border-gray-700/60 group-hover:border-gray-600/80 group-hover:shadow-lg group-hover:shadow-gray-900/20":"bg-white border-gray-200 group-hover:border-gray-300 group-hover:shadow-md group-hover:shadow-gray-200/50"])},[d.value!=="forever"?(F(),U(de,{key:0},[ke(r("input",{"onUpdate:modelValue":e[2]||(e[2]=i=>c.value=i),type:"number",placeholder:w(),min:"1",class:n(["w-full h-full px-5 pr-32 rounded-2xl placeholder-gray-400 transition-all duration-300","focus:outline-none focus:ring-2 focus:ring-offset-0","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none","bg-transparent",t(s)?"text-gray-100 focus:ring-indigo-500/80 placeholder-gray-500":"text-gray-900 focus:ring-indigo-500/60 placeholder-gray-400"])},null,10,Rt),[[Qe,c.value]]),r("div",{class:n(["absolute right-28 top-0 h-full flex flex-col border-l",[t(s)?"border-gray-700/60":"border-gray-200"]])},[r("button",{type:"button",onClick:e[3]||(e[3]=i=>xe(1)),class:n(["flex-1 px-2 flex items-center justify-center transition-all duration-200",[t(s)?"hover:bg-gray-700/60 text-gray-400 hover:text-gray-200":"hover:bg-gray-50 text-gray-500 hover:text-gray-700"]])},[...e[10]||(e[10]=[r("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 15l7-7 7 7"})],-1)])],2),r("button",{type:"button",onClick:e[4]||(e[4]=i=>xe(-1)),class:n(["flex-1 px-2 flex items-center justify-center transition-all duration-200",[t(s)?"hover:bg-gray-700/60 text-gray-400 hover:text-gray-200":"hover:bg-gray-50 text-gray-500 hover:text-gray-700"]])},[...e[11]||(e[11]=[r("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])],2)],2)],64)):K("",!0),ke(r("select",{"onUpdate:modelValue":e[5]||(e[5]=i=>d.value=i),class:n(["absolute right-0 top-0 h-full appearance-none cursor-pointer transition-all duration-300","focus:outline-none focus:ring-2 focus:ring-offset-0",d.value==="forever"?"w-full px-5 rounded-2xl":"w-28 pl-4 pr-9 border-l rounded-r-2xl",t(s)?"text-gray-100 border-gray-700/60 focus:ring-indigo-500/80 bg-gray-800/60":"text-gray-900 border-gray-200 focus:ring-indigo-500/60 bg-white"]),style:Se({color:t(s)?"#f3f4f6":"#111827",backgroundColor:t(s)?"rgba(31, 41, 55, 0.5)":"#ffffff"})},[(F(!0),U(de,null,_e(t(y).expireStyle,i=>(F(),U("option",{value:i,key:i,class:n([t(s)?"bg-gray-800 text-gray-100":"bg-white text-gray-900"]),style:Se({color:t(s)?"#f3f4f6":"#111827",backgroundColor:t(s)?"#1f2937":"#ffffff"})},M(B(i)),15,Bt))),128))],6),[[Ye,d.value]]),r("div",{class:n(["absolute pointer-events-none",[d.value==="forever"?"right-3":"right-2","top-1/2 -translate-y-1/2"]])},[(F(),U("svg",{class:n(["w-4 h-4 transition-colors duration-300",[t(s)?"text-gray-400":"text-gray-500"]]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...e[12]||(e[12]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],2)],2)])]),r("button",Lt,[e[13]||(e[13]=r("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),r("span",$t,[S(t(ft),{class:"w-6 h-6 mr-2"}),r("span",null,M(t(u)("send.submit")),1)])])],32),r("div",Vt,[S(l,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:te(()=>[ce(M(t(u)("send.needRetrieveFile")),1)]),_:1})])]),r("div",{class:n(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[t(s)?"bg-gray-800":"bg-gray-100"]])},[r("span",{class:n(["text-sm flex items-center",[t(s)?"text-gray-300":"text-gray-800"]])},[S(t(Me),{class:"w-4 h-4 mr-1 text-green-400"}),ce(" "+M(t(u)("send.secureEncryption")),1)],2),r("button",{onClick:ye,class:n(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[t(s)?"text-indigo-400":"text-indigo-600"]])},[ce(M(t(u)("send.sendRecords"))+" ",1),S(t(ot),{class:"w-4 h-4 ml-1"})],2)],2)],2),S(ie,{name:"drawer"},{default:te(()=>[T.value?(F(),U("div",{key:0,class:n(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[t(s)?"bg-gray-900":"bg-white"]])},[r("div",{class:n(["flex justify-between items-center p-6 border-b",[t(s)?"border-gray-700":"border-gray-200"]])},[r("h3",{class:n(["text-2xl font-bold",[t(s)?"text-white":"text-gray-800"]])},M(t(u)("send.sendRecords")),3),r("button",{onClick:ye,class:n(["hover:text-white transition duration-300",[t(s)?"text-gray-400":"text-gray-800"]])},[S(t(Ce),{class:"w-6 h-6"})],2)],2),r("div",jt,[S(tt,{name:"list",tag:"div",class:"space-y-4"},{default:te(()=>[(F(!0),U(de,null,_e(C.value,i=>(F(),U("div",{key:i.id,class:n(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[t(s)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[r("div",Nt,[S(t(Ie),{class:n(["w-10 h-10",[t(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),r("div",Gt,[r("p",{class:n(["font-medium text-lg truncate",[t(s)?"text-white":"text-gray-800"]])},M(i.filename?i.filename:"Text"),3),r("p",{class:n(["text-sm truncate",[t(s)?"text-gray-400":"text-gray-600"]])},M(i.date)+" · "+M(i.size),3)]),r("div",Ht,[r("button",{onClick:k=>t(ue)(i.retrieveCode),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[t(s)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[S(t(pe),{class:"w-5 h-5"})],10,Ot),r("button",{onClick:k=>Be(i),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[t(s)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[S(t(dt),{class:"w-5 h-5"})],10,qt),r("button",{onClick:k=>Le(i.id),class:n(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[t(s)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[S(t(ct),{class:"w-5 h-5"})],10,Xt)])],2))),128))]),_:1})])],2)):K("",!0)]),_:1}),S(ie,{name:"fade"},{default:te(()=>[x.value?(F(),U("div",Zt,[r("div",{class:n(["w-full max-w-2xl rounded-2xl shadow-2xl transform transition-all duration-300 ease-out overflow-hidden",[t(s)?"bg-gray-900 bg-opacity-70":"bg-white bg-opacity-95"]])},[r("div",{class:n(["px-4 sm:px-6 py-3 sm:py-4 border-b",[t(s)?"border-gray-800":"border-gray-100"]])},[r("div",Wt,[r("h3",{class:n(["text-lg sm:text-xl font-semibold",[t(s)?"text-white":"text-gray-900"]])},M(t(u)("send.fileDetails")),3),r("button",{onClick:e[6]||(e[6]=i=>x.value=null),class:"p-1.5 sm:p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[S(t(Ce),{class:n(["w-4 h-4 sm:w-5 sm:h-5",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"])])])],2),r("div",Jt,[r("div",{class:n(["rounded-xl p-3 sm:p-4 mb-4 sm:mb-6",[t(s)?"bg-gray-800 bg-opacity-50":"bg-gray-50 bg-opacity-95"]])},[r("div",Kt,[r("div",{class:n(["p-2 sm:p-3 rounded-lg",[t(s)?"bg-gray-800":"bg-white"]])},[S(t(Ie),{class:n(["w-5 h-5 sm:w-6 sm:h-6",[t(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),r("div",Qt,[r("h4",{class:n(["font-medium text-sm sm:text-base truncate",[t(s)?"text-white":"text-gray-900"]])},M(x.value.filename),3),r("p",{class:n(["text-xs sm:text-sm truncate",[t(s)?"text-gray-400":"text-gray-500"]])},M(x.value.size)+" · "+M(x.value.date),3)])]),r("div",Yt,[r("div",er,[S(t(pt),{class:n(["w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1.5 sm:mr-2 flex-shrink-0",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"]),r("span",{class:n(["text-xs sm:text-sm truncate",[t(s)?"text-gray-300":"text-gray-600"]])},M(x.value.expiration),3)]),r("div",tr,[S(t(Me),{class:n(["w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1.5 sm:mr-2 flex-shrink-0",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"]),r("span",{class:n(["text-xs sm:text-sm truncate",[t(s)?"text-gray-300":"text-gray-600"]])}," 安全加密 ",2)])])],2),r("div",rr,[r("div",sr,[r("div",ar,[r("div",or,[e[14]||(e[14]=r("h4",{class:"font-medium text-sm sm:text-base"},"取件码",-1)),r("button",{onClick:e[7]||(e[7]=i=>t(nt)(x.value.retrieveCode)),class:"p-1.5 sm:p-2 rounded-full hover:bg-white/10 transition-colors"},[S(t(pe),{class:"w-4 h-4 sm:w-5 sm:h-5"})])]),r("p",nr,M(x.value.retrieveCode),1)]),r("div",{class:n(["rounded-xl p-3 sm:p-4",[t(s)?"bg-gray-800 bg-opacity-50":"bg-gray-50 bg-opacity-95"]])},[r("div",lr,[r("h4",{class:n(["font-medium text-sm sm:text-base flex items-center min-w-0",[t(s)?"text-white":"text-gray-900"]])},[S(t(vt),{class:"w-4 h-4 sm:w-5 sm:h-5 mr-1.5 sm:mr-2 text-indigo-500 flex-shrink-0"}),e[15]||(e[15]=r("span",{class:"truncate"},"wget下载",-1))],2),r("button",{onClick:e[8]||(e[8]=i=>t(lt)(x.value.retrieveCode,x.value.filename)),class:"p-1.5 sm:p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors flex-shrink-0"},[S(t(pe),{class:n(["w-4 h-4 sm:w-5 sm:h-5",[t(s)?"text-gray-400":"text-gray-500"]])},null,8,["class"])])]),r("p",{class:n(["text-xs sm:text-sm font-mono break-all line-clamp-2",[t(s)?"text-gray-300":"text-gray-600"]])}," 点击复制wget命令 ",2)],2)]),r("div",{class:n(["rounded-xl p-4 sm:p-5 flex flex-col items-center",[t(s)?"bg-gray-800 bg-opacity-50":"bg-gray-50 bg-opacity-95"]])},[r("div",ir,[S(it,{value:Ve(x.value),size:140,level:"M",class:"sm:w-[160px] sm:h-[160px]"},null,8,["value"])]),r("p",{class:n(["text-xs sm:text-sm truncate max-w-full",[t(s)?"text-gray-400":"text-gray-500"]])}," 扫描二维码快速取件 ",2)],2)])]),r("div",{class:n(["px-4 sm:px-6 py-3 sm:py-4 border-t",[t(s)?"border-gray-800":"border-gray-100"]])},[r("button",{onClick:e[9]||(e[9]=i=>t(ue)(x.value.retrieveCode)),class:"w-full bg-indigo-600 hover:bg-indigo-700 text-white px-4 sm:px-6 py-2 sm:py-3 rounded-lg text-sm sm:text-base font-medium transition-colors"}," 复制取件链接 ")],2)],2)])):K("",!0)]),_:1})],32)}}}),fr=ge(dr,[["__scopeId","data-v-832d304e"]]);export{fr as default}; diff --git a/themes/2024/assets/SystemSettingsView-9k34DWo0.js b/themes/2024/assets/SystemSettingsView-9k34DWo0.js new file mode 100644 index 0000000..07619a9 --- /dev/null +++ b/themes/2024/assets/SystemSettingsView-9k34DWo0.js @@ -0,0 +1 @@ +import{d as B,u as F,r as h,p as z,a as m,o as b,b as e,t as l,e as o,n as s,i as A,x as d,z as g,A as x,y as w,D as k,j as _,$ as U,a0 as P}from"./index-B3zfsvgW.js";const T={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},E={class:"space-y-4"},N={class:"grid grid-cols-1 gap-6"},L={class:"space-y-2"},I={class:"space-y-2"},$={class:"space-y-2"},j={class:"relative"},K=["placeholder"],G={class:"text-xs"},W={class:"space-y-2"},R={class:"space-y-2"},H=["value"],q={class:"space-y-2"},J={class:"grid grid-cols-1 gap-6 mt-8"},O={class:"space-y-2"},Q={class:"space-y-2"},X={class:"space-y-4"},Y={class:"space-y-2"},Z=["placeholder"],ee={class:"space-y-4"},oe={class:"space-y-2"},te={value:"local"},re={value:"s3"},ae={value:"webdav"},se={key:0,class:"space-y-2"},ne={class:"flex items-center"},ie=["aria-checked"],le={key:1,class:"space-y-4"},de={class:"space-y-2"},ge=["placeholder"],ue={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ce={class:"space-y-2"},ye=["placeholder"],me={class:"space-y-2"},be=["placeholder"],pe={key:2,class:"space-y-4"},ve={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},he={class:"space-y-2"},xe={class:"space-y-2"},fe={class:"space-y-2"},_e={class:"space-y-2"},we={class:"space-y-2"},ke=["placeholder"],Ue={class:"space-y-2"},Ce={value:"s3v2"},Se={value:"s3v4"},Ve={class:"space-y-2"},De={class:"space-y-2"},Me={class:"flex items-center"},Be=["aria-checked"],Fe={class:"space-y-2"},ze={class:"flex items-center"},Ae=["aria-checked"],Pe={class:"mt-8"},Te={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ee={class:"space-y-2"},Ne={class:"flex items-center space-x-2"},Le={class:"space-y-2"},Ie={class:"flex items-center space-x-2"},$e={class:"space-y-2"},je={class:"flex items-center space-x-2"},Ke={value:"KB"},Ge={value:"MB"},We={value:"GB"},Re={class:"space-y-2"},He={class:"flex flex-wrap gap-3"},qe=["value"],Je={class:"space-y-2"},Oe={class:"flex items-center space-x-2"},Qe={value:"秒"},Xe={value:"分"},Ye={value:"时"},Ze={value:"天"},eo={class:"space-y-2"},oo={class:"flex items-center"},to=["aria-checked"],ro={class:"mt-8"},ao={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},so={class:"space-y-2"},no={class:"flex items-center space-x-2"},io={class:"space-y-2"},lo={class:"flex items-center space-x-2"},go={class:"flex justify-end mt-8"},yo=B({__name:"SystemSettingsView",setup(uo){const n=A("isDarkMode"),{t:i}=F(),t=h({name:"",description:"",file_storage:"",webdav_url:"",webdav_username:"",webdav_password:"",themesChoices:[],expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",storage_path:"",notify_content:"",openUpload:1,uploadSize:1,enableChunk:0,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1,s3_proxy:0,themesSelect:""}),p=h(1),v=h("MB"),c=h(1),y=h("天"),C=(u,a)=>u*{秒:1,分:60,时:3600,天:86400}[a],f=z(),S=async()=>{try{const u=await U.getConfig();if(u.code===200&&u.detail){t.value=u.detail;const a=t.value.uploadSize;a>=1024*1024*1024?(p.value=Math.round(a/(1024*1024*1024)),v.value="GB"):a>=1024*1024?(p.value=Math.round(a/(1024*1024)),v.value="MB"):(p.value=Math.round(a/1024),v.value="KB");const r=t.value.max_save_seconds;r===0?(c.value=7,y.value="天"):r%86400===0&&r>=86400?(c.value=r/86400,y.value="天"):r%3600===0&&r>=3600?(c.value=r/3600,y.value="时"):r%60===0&&r>=60?(c.value=r/60,y.value="分"):(c.value=r,y.value="秒")}}catch(u){const a=u instanceof Error?u.message:i("manage.systemSettings.getConfigFailed");f.showAlert(a,"error"),console.error("Failed to get system config:",u)}},V=(u,a)=>u*{KB:1024,MB:1048576,GB:1073741824}[a],D=()=>{const u={...t.value};u.uploadSize=V(p.value,v.value),c.value===0?u.max_save_seconds=7*86400:u.max_save_seconds=C(c.value,y.value),U.updateConfig(u).then(a=>{a.code==200?f.showAlert(i("manage.systemSettings.saveSuccess"),"success"):f.showAlert(a.message||i("manage.systemSettings.saveFailed"),"error")}).catch(a=>{const r=a instanceof Error?a.message:i("manage.systemSettings.saveFailed");f.showAlert(r,"error")})};return S(),(u,a)=>(b(),m("div",T,[e("h2",{class:s(["text-2xl font-bold mb-6",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.title")),3),e("div",{class:s(["space-y-6 rounded-lg shadow-md p-6",[o(n)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",E,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.basicSettings")),3),e("div",N,[e("div",L,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.siteName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=r=>t.value.name=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.name]])]),e("div",I,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.websiteDescription")),3),d(e("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=r=>t.value.description=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.description]])]),e("div",$,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.adminPassword")),3),e("div",j,[d(e("input",{type:"password",minlength:"6","onUpdate:modelValue":a[2]||(a[2]=r=>t.value.admin_token=r),placeholder:o(i)("admin.settings.passwordPlaceholder"),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,K),[[g,t.value.admin_token]]),e("div",{class:s(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[o(n)?"text-gray-500":"text-gray-400"]])},[e("span",G,l(o(i)("admin.settings.passwordNote")),1)],2)])]),e("div",W,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.keywords")),3),d(e("input",{type:"text","onUpdate:modelValue":a[3]||(a[3]=r=>t.value.keywords=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.keywords]])]),e("div",R,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.themeSelection")),3),d(e("select",{"onUpdate:modelValue":a[4]||(a[4]=r=>t.value.themesSelect=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},[(b(!0),m(w,null,k(t.value.themesChoices,r=>(b(),m("option",{value:r.key,key:r.key},l(r.name)+" (by "+l(r.author)+" V"+l(r.version)+") ",9,H))),128))],2),[[x,t.value.themesSelect]])]),e("div",q,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.robotsFile")),3),d(e("textarea",{"onUpdate:modelValue":a[5]||(a[5]=r=>t.value.robotsText=r),rows:"3",class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.robotsText]])])]),e("div",J,[e("div",O,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.notificationTitle")),3),d(e("input",{type:"text","onUpdate:modelValue":a[6]||(a[6]=r=>t.value.notify_title=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.notify_title]])]),e("div",Q,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.notificationContent")),3),d(e("textarea",{"onUpdate:modelValue":a[7]||(a[7]=r=>t.value.notify_content=r),rows:"3",class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.notify_content]])])]),e("div",X,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("manage.settings.storageSettings")),3),e("div",Y,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.storagePath")),3),d(e("input",{type:"text",placeholder:o(i)("manage.settings.storagePathPlaceholder"),"onUpdate:modelValue":a[8]||(a[8]=r=>t.value.storage_path=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,Z),[[g,t.value.storage_path]])]),e("div",ee,[e("div",oe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.storageMethod")),3),d(e("select",{"onUpdate:modelValue":a[9]||(a[9]=r=>t.value.file_storage=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},[e("option",te,l(o(i)("manage.settings.localStorage")),1),e("option",re,l(o(i)("manage.settings.s3Storage")),1),e("option",ae,l(o(i)("manage.settings.webdavStorage")),1)],2),[[x,t.value.file_storage]])]),t.value.file_storage==="local"?(b(),m("div",se,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.chunkUploadNote")),3),e("div",ne,[e("button",{type:"button",onClick:a[10]||(a[10]=r=>t.value.enableChunk=t.value.enableChunk===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.enableChunk===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.enableChunk===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.enableChunk===1?"translate-x-5":"translate-x-0",o(n)&&t.value.enableChunk!==1?"bg-gray-100":"bg-white"]])},null,2)],10,ie),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.enableChunk===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])])):_("",!0),t.value.file_storage==="webdav"?(b(),m("div",le,[e("div",de,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])}," Webdav URL ",2),d(e("input",{type:"text",placeholder:o(i)("manage.settings.webdavUrlPlaceholder"),"onUpdate:modelValue":a[11]||(a[11]=r=>t.value.webdav_url=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,ge),[[g,t.value.webdav_url]])]),e("div",ue,[e("div",ce,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])}," Webdav Username ",2),d(e("input",{type:"text",placeholder:o(i)("manage.settings.webdavUsernamePlaceholder"),"onUpdate:modelValue":a[12]||(a[12]=r=>t.value.webdav_username=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,ye),[[g,t.value.webdav_username]])]),e("div",me,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])}," Webdav Password ",2),d(e("input",{type:"password",placeholder:o(i)("manage.settings.webdavPasswordPlaceholder"),"onUpdate:modelValue":a[13]||(a[13]=r=>t.value.webdav_password=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,be),[[g,t.value.webdav_password]])])])])):_("",!0),t.value.file_storage==="s3"?(b(),m("div",pe,[e("div",ve,[e("div",he,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3AccessKeyId")),3),d(e("input",{type:"text","onUpdate:modelValue":a[14]||(a[14]=r=>t.value.s3_access_key_id=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_access_key_id]])]),e("div",xe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3SecretAccessKey")),3),d(e("input",{type:"password","onUpdate:modelValue":a[15]||(a[15]=r=>t.value.s3_secret_access_key=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_secret_access_key]])]),e("div",fe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3BucketName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[16]||(a[16]=r=>t.value.s3_bucket_name=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_bucket_name]])]),e("div",_e,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3EndpointUrl")),3),d(e("input",{type:"text","onUpdate:modelValue":a[17]||(a[17]=r=>t.value.s3_endpoint_url=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_endpoint_url]])]),e("div",we,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3RegionName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[18]||(a[18]=r=>t.value.s3_region_name=r),placeholder:o(i)("manage.settings.autoPlaceholder"),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,ke),[[g,t.value.s3_region_name]])]),e("div",Ue,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3SignatureVersion")),3),d(e("select",{"onUpdate:modelValue":a[19]||(a[19]=r=>t.value.s3_signature_version=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},[e("option",Ce,l(o(i)("manage.settings.s3v2")),1),e("option",Se,l(o(i)("manage.settings.s3v4")),1)],2),[[x,t.value.s3_signature_version]])]),e("div",Ve,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3Hostname")),3),d(e("input",{type:"text","onUpdate:modelValue":a[20]||(a[20]=r=>t.value.s3_hostname=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_hostname]])]),e("div",De,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.enableProxy")),3),e("div",Me,[e("button",{type:"button",onClick:a[21]||(a[21]=r=>t.value.s3_proxy=t.value.s3_proxy===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.s3_proxy===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.s3_proxy===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.s3_proxy===1?"translate-x-5":"translate-x-0",o(n)&&t.value.s3_proxy!==1?"bg-gray-100":"bg-white"]])},null,2)],10,Be),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.s3_proxy===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])]),e("div",Fe,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.chunkUploadNote")),3),e("div",ze,[e("button",{type:"button",onClick:a[22]||(a[22]=r=>t.value.enableChunk=t.value.enableChunk===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.enableChunk===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.enableChunk===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.enableChunk===1?"translate-x-5":"translate-x-0",o(n)&&t.value.enableChunk!==1?"bg-gray-100":"bg-white"]])},null,2)],10,Ae),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.enableChunk===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])])])])):_("",!0)])]),e("div",Pe,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("manage.settings.uploadLimits")),3),e("div",Te,[e("div",Ee,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.uploadPerMinute")),3),e("div",Ne,[d(e("input",{type:"number","onUpdate:modelValue":a[23]||(a[23]=r=>t.value.uploadMinute=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.uploadMinute]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.minute")),3)])]),e("div",Le,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.uploadCountLimit")),3),e("div",Ie,[d(e("input",{type:"number","onUpdate:modelValue":a[24]||(a[24]=r=>t.value.uploadCount=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.uploadCount]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.files")),3)])]),e("div",$e,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.fileSizeLimit")),3),e("div",je,[d(e("input",{type:"number","onUpdate:modelValue":a[25]||(a[25]=r=>p.value=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,p.value]]),d(e("select",{"onUpdate:modelValue":a[26]||(a[26]=r=>v.value=r),class:s(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},[e("option",Ke,l(o(i)("manage.settings.fileSizeUnits.kb")),1),e("option",Ge,l(o(i)("manage.settings.fileSizeUnits.mb")),1),e("option",We,l(o(i)("manage.settings.fileSizeUnits.gb")),1)],2),[[x,v.value]])])]),e("div",Re,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.expirationType")),3),e("div",He,[(b(),m(w,null,k(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[d(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":a[27]||(a[27]=M=>t.value.expireStyle=M),class:"peer sr-only"},null,8,qe),[[P,t.value.expireStyle]]),e("div",{class:s(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[t.value.expireStyle.includes(r)?(o(n),"bg-indigo-600 border-indigo-600 text-white"):o(n)?"bg-gray-700 border-gray-600 text-gray-300 hover:border-indigo-500":"bg-white border-gray-300 text-gray-700 hover:border-indigo-500"]])},l(o(i)(`manage.settings.expiration.${r}`)),3)])),64))])]),e("div",Je,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.maxSaveTime")),3),e("div",Oe,[d(e("input",{type:"number","onUpdate:modelValue":a[28]||(a[28]=r=>c.value=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,c.value]]),d(e("select",{"onUpdate:modelValue":a[29]||(a[29]=r=>y.value=r),class:s(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},[e("option",Qe,l(o(i)("common.second")),1),e("option",Xe,l(o(i)("common.minute")),1),e("option",Ye,l(o(i)("common.hour")),1),e("option",Ze,l(o(i)("common.day")),1)],2),[[x,y.value]])])]),e("div",eo,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.guestUpload")),3),e("div",oo,[e("button",{type:"button",onClick:a[30]||(a[30]=r=>t.value.openUpload=t.value.openUpload===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.openUpload===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.openUpload===1?"translate-x-5":"translate-x-0",o(n)&&t.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,to),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.openUpload===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])])])]),e("div",ro,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("manage.settings.errorLimits")),3),e("div",ao,[e("div",so,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.errorPerMinute")),3),e("div",no,[d(e("input",{type:"number","onUpdate:modelValue":a[31]||(a[31]=r=>t.value.errorMinute=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.errorMinute]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.minute")),3)])]),e("div",io,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.errorCountLimit")),3),e("div",lo,[d(e("input",{type:"number","onUpdate:modelValue":a[32]||(a[32]=r=>t.value.errorCount=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.errorCount]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.times")),3)])])])]),e("div",go,[e("button",{onClick:D,class:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200"},l(o(i)("manage.settings.saveChanges")),1)])])],2)]))}});export{yo as default}; diff --git a/themes/2024/assets/SystemSettingsView-DODzTKap.js b/themes/2024/assets/SystemSettingsView-DODzTKap.js deleted file mode 100644 index 76246a4..0000000 --- a/themes/2024/assets/SystemSettingsView-DODzTKap.js +++ /dev/null @@ -1 +0,0 @@ -import{d as B,u as F,r as h,p as z,a as m,o as b,b as e,t as l,e as o,n as s,i as A,x as d,z as g,A as x,y as w,D as k,j as _,Z as U,$ as P}from"./index-DaP6hnmm.js";const T={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},E={class:"space-y-4"},N={class:"grid grid-cols-1 gap-6"},L={class:"space-y-2"},I={class:"space-y-2"},$={class:"space-y-2"},j={class:"relative"},K=["placeholder"],G={class:"text-xs"},W={class:"space-y-2"},R={class:"space-y-2"},H=["value"],Z={class:"space-y-2"},q={class:"grid grid-cols-1 gap-6 mt-8"},J={class:"space-y-2"},O={class:"space-y-2"},Q={class:"space-y-4"},X={class:"space-y-2"},Y=["placeholder"],ee={class:"space-y-4"},oe={class:"space-y-2"},te={value:"local"},re={value:"s3"},ae={value:"webdav"},se={key:0,class:"space-y-2"},ne={class:"flex items-center"},ie=["aria-checked"],le={key:1,class:"space-y-4"},de={class:"space-y-2"},ge=["placeholder"],ue={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ce={class:"space-y-2"},ye=["placeholder"],me={class:"space-y-2"},be=["placeholder"],pe={key:2,class:"space-y-4"},ve={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},he={class:"space-y-2"},xe={class:"space-y-2"},fe={class:"space-y-2"},_e={class:"space-y-2"},we={class:"space-y-2"},ke=["placeholder"],Ue={class:"space-y-2"},Ce={value:"s3v2"},Se={value:"s3v4"},Ve={class:"space-y-2"},De={class:"space-y-2"},Me={class:"flex items-center"},Be=["aria-checked"],Fe={class:"space-y-2"},ze={class:"flex items-center"},Ae=["aria-checked"],Pe={class:"mt-8"},Te={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ee={class:"space-y-2"},Ne={class:"flex items-center space-x-2"},Le={class:"space-y-2"},Ie={class:"flex items-center space-x-2"},$e={class:"space-y-2"},je={class:"flex items-center space-x-2"},Ke={value:"KB"},Ge={value:"MB"},We={value:"GB"},Re={class:"space-y-2"},He={class:"flex flex-wrap gap-3"},Ze=["value"],qe={class:"space-y-2"},Je={class:"flex items-center space-x-2"},Oe={value:"秒"},Qe={value:"分"},Xe={value:"时"},Ye={value:"天"},eo={class:"space-y-2"},oo={class:"flex items-center"},to=["aria-checked"],ro={class:"mt-8"},ao={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},so={class:"space-y-2"},no={class:"flex items-center space-x-2"},io={class:"space-y-2"},lo={class:"flex items-center space-x-2"},go={class:"flex justify-end mt-8"},yo=B({__name:"SystemSettingsView",setup(uo){const n=A("isDarkMode"),{t:i}=F(),t=h({name:"",description:"",file_storage:"",webdav_url:"",webdav_username:"",webdav_password:"",themesChoices:[],expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",storage_path:"",notify_content:"",openUpload:1,uploadSize:1,enableChunk:0,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1,s3_proxy:0,themesSelect:""}),p=h(1),v=h("MB"),c=h(1),y=h("天"),C=(u,a)=>u*{秒:1,分:60,时:3600,天:86400}[a],f=z(),S=async()=>{try{const u=await U.getConfig();if(u.code===200&&u.detail){t.value=u.detail;const a=t.value.uploadSize;a>=1024*1024*1024?(p.value=Math.round(a/(1024*1024*1024)),v.value="GB"):a>=1024*1024?(p.value=Math.round(a/(1024*1024)),v.value="MB"):(p.value=Math.round(a/1024),v.value="KB");const r=t.value.max_save_seconds;r===0?(c.value=7,y.value="天"):r%86400===0&&r>=86400?(c.value=r/86400,y.value="天"):r%3600===0&&r>=3600?(c.value=r/3600,y.value="时"):r%60===0&&r>=60?(c.value=r/60,y.value="分"):(c.value=r,y.value="秒")}}catch(u){const a=u instanceof Error?u.message:i("manage.systemSettings.getConfigFailed");f.showAlert(a,"error"),console.error("Failed to get system config:",u)}},V=(u,a)=>u*{KB:1024,MB:1048576,GB:1073741824}[a],D=()=>{const u={...t.value};u.uploadSize=V(p.value,v.value),c.value===0?u.max_save_seconds=7*86400:u.max_save_seconds=C(c.value,y.value),U.updateConfig(u).then(a=>{a.code==200?f.showAlert(i("manage.systemSettings.saveSuccess"),"success"):f.showAlert(a.message||i("manage.systemSettings.saveFailed"),"error")}).catch(a=>{const r=a instanceof Error?a.message:i("manage.systemSettings.saveFailed");f.showAlert(r,"error")})};return S(),(u,a)=>(b(),m("div",T,[e("h2",{class:s(["text-2xl font-bold mb-6",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.title")),3),e("div",{class:s(["space-y-6 rounded-lg shadow-md p-6",[o(n)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",E,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("admin.settings.basicSettings")),3),e("div",N,[e("div",L,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.siteName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=r=>t.value.name=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.name]])]),e("div",I,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.websiteDescription")),3),d(e("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=r=>t.value.description=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.description]])]),e("div",$,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.adminPassword")),3),e("div",j,[d(e("input",{type:"password",minlength:"6","onUpdate:modelValue":a[2]||(a[2]=r=>t.value.admin_token=r),placeholder:o(i)("admin.settings.passwordPlaceholder"),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,K),[[g,t.value.admin_token]]),e("div",{class:s(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[o(n)?"text-gray-500":"text-gray-400"]])},[e("span",G,l(o(i)("admin.settings.passwordNote")),1)],2)])]),e("div",W,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("admin.settings.keywords")),3),d(e("input",{type:"text","onUpdate:modelValue":a[3]||(a[3]=r=>t.value.keywords=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.keywords]])]),e("div",R,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.themeSelection")),3),d(e("select",{"onUpdate:modelValue":a[4]||(a[4]=r=>t.value.themesSelect=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},[(b(!0),m(w,null,k(t.value.themesChoices,r=>(b(),m("option",{value:r.key,key:r.key},l(r.name)+" (by "+l(r.author)+" V"+l(r.version)+") ",9,H))),128))],2),[[x,t.value.themesSelect]])]),e("div",Z,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.robotsFile")),3),d(e("textarea",{"onUpdate:modelValue":a[5]||(a[5]=r=>t.value.robotsText=r),rows:"3",class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.robotsText]])])]),e("div",q,[e("div",J,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.notificationTitle")),3),d(e("input",{type:"text","onUpdate:modelValue":a[6]||(a[6]=r=>t.value.notify_title=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.notify_title]])]),e("div",O,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.notificationContent")),3),d(e("textarea",{"onUpdate:modelValue":a[7]||(a[7]=r=>t.value.notify_content=r),rows:"3",class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.notify_content]])])]),e("div",Q,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("manage.settings.storageSettings")),3),e("div",X,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.storagePath")),3),d(e("input",{type:"text",placeholder:o(i)("manage.settings.storagePathPlaceholder"),"onUpdate:modelValue":a[8]||(a[8]=r=>t.value.storage_path=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,Y),[[g,t.value.storage_path]])]),e("div",ee,[e("div",oe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.storageMethod")),3),d(e("select",{"onUpdate:modelValue":a[9]||(a[9]=r=>t.value.file_storage=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},[e("option",te,l(o(i)("manage.settings.localStorage")),1),e("option",re,l(o(i)("manage.settings.s3Storage")),1),e("option",ae,l(o(i)("manage.settings.webdavStorage")),1)],2),[[x,t.value.file_storage]])]),t.value.file_storage==="local"?(b(),m("div",se,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.chunkUploadNote")),3),e("div",ne,[e("button",{type:"button",onClick:a[10]||(a[10]=r=>t.value.enableChunk=t.value.enableChunk===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.enableChunk===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.enableChunk===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.enableChunk===1?"translate-x-5":"translate-x-0",o(n)&&t.value.enableChunk!==1?"bg-gray-100":"bg-white"]])},null,2)],10,ie),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.enableChunk===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])])):_("",!0),t.value.file_storage==="webdav"?(b(),m("div",le,[e("div",de,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])}," Webdav URL ",2),d(e("input",{type:"text",placeholder:o(i)("manage.settings.webdavUrlPlaceholder"),"onUpdate:modelValue":a[11]||(a[11]=r=>t.value.webdav_url=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,ge),[[g,t.value.webdav_url]])]),e("div",ue,[e("div",ce,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])}," Webdav Username ",2),d(e("input",{type:"text",placeholder:o(i)("manage.settings.webdavUsernamePlaceholder"),"onUpdate:modelValue":a[12]||(a[12]=r=>t.value.webdav_username=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,ye),[[g,t.value.webdav_username]])]),e("div",me,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])}," Webdav Password ",2),d(e("input",{type:"password",placeholder:o(i)("manage.settings.webdavPasswordPlaceholder"),"onUpdate:modelValue":a[13]||(a[13]=r=>t.value.webdav_password=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,be),[[g,t.value.webdav_password]])])])])):_("",!0),t.value.file_storage==="s3"?(b(),m("div",pe,[e("div",ve,[e("div",he,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3AccessKeyId")),3),d(e("input",{type:"text","onUpdate:modelValue":a[14]||(a[14]=r=>t.value.s3_access_key_id=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_access_key_id]])]),e("div",xe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3SecretAccessKey")),3),d(e("input",{type:"password","onUpdate:modelValue":a[15]||(a[15]=r=>t.value.s3_secret_access_key=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_secret_access_key]])]),e("div",fe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3BucketName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[16]||(a[16]=r=>t.value.s3_bucket_name=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_bucket_name]])]),e("div",_e,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3EndpointUrl")),3),d(e("input",{type:"text","onUpdate:modelValue":a[17]||(a[17]=r=>t.value.s3_endpoint_url=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_endpoint_url]])]),e("div",we,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3RegionName")),3),d(e("input",{type:"text","onUpdate:modelValue":a[18]||(a[18]=r=>t.value.s3_region_name=r),placeholder:o(i)("manage.settings.autoPlaceholder"),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,10,ke),[[g,t.value.s3_region_name]])]),e("div",Ue,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3SignatureVersion")),3),d(e("select",{"onUpdate:modelValue":a[19]||(a[19]=r=>t.value.s3_signature_version=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},[e("option",Ce,l(o(i)("manage.settings.s3v2")),1),e("option",Se,l(o(i)("manage.settings.s3v4")),1)],2),[[x,t.value.s3_signature_version]])]),e("div",Ve,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.s3Hostname")),3),d(e("input",{type:"text","onUpdate:modelValue":a[20]||(a[20]=r=>t.value.s3_hostname=r),class:s(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.s3_hostname]])]),e("div",De,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.enableProxy")),3),e("div",Me,[e("button",{type:"button",onClick:a[21]||(a[21]=r=>t.value.s3_proxy=t.value.s3_proxy===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.s3_proxy===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.s3_proxy===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.s3_proxy===1?"translate-x-5":"translate-x-0",o(n)&&t.value.s3_proxy!==1?"bg-gray-100":"bg-white"]])},null,2)],10,Be),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.s3_proxy===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])]),e("div",Fe,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.chunkUploadNote")),3),e("div",ze,[e("button",{type:"button",onClick:a[22]||(a[22]=r=>t.value.enableChunk=t.value.enableChunk===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.enableChunk===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.enableChunk===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.enableChunk===1?"translate-x-5":"translate-x-0",o(n)&&t.value.enableChunk!==1?"bg-gray-100":"bg-white"]])},null,2)],10,Ae),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.enableChunk===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])])])])):_("",!0)])]),e("div",Pe,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("manage.settings.uploadLimits")),3),e("div",Te,[e("div",Ee,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.uploadPerMinute")),3),e("div",Ne,[d(e("input",{type:"number","onUpdate:modelValue":a[23]||(a[23]=r=>t.value.uploadMinute=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.uploadMinute]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.minute")),3)])]),e("div",Le,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.uploadCountLimit")),3),e("div",Ie,[d(e("input",{type:"number","onUpdate:modelValue":a[24]||(a[24]=r=>t.value.uploadCount=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.uploadCount]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.files")),3)])]),e("div",$e,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.fileSizeLimit")),3),e("div",je,[d(e("input",{type:"number","onUpdate:modelValue":a[25]||(a[25]=r=>p.value=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,p.value]]),d(e("select",{"onUpdate:modelValue":a[26]||(a[26]=r=>v.value=r),class:s(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},[e("option",Ke,l(o(i)("manage.settings.fileSizeUnits.kb")),1),e("option",Ge,l(o(i)("manage.settings.fileSizeUnits.mb")),1),e("option",We,l(o(i)("manage.settings.fileSizeUnits.gb")),1)],2),[[x,v.value]])])]),e("div",Re,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.expirationType")),3),e("div",He,[(b(),m(w,null,k(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[d(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":a[27]||(a[27]=M=>t.value.expireStyle=M),class:"peer sr-only"},null,8,Ze),[[P,t.value.expireStyle]]),e("div",{class:s(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[t.value.expireStyle.includes(r)?(o(n),"bg-indigo-600 border-indigo-600 text-white"):o(n)?"bg-gray-700 border-gray-600 text-gray-300 hover:border-indigo-500":"bg-white border-gray-300 text-gray-700 hover:border-indigo-500"]])},l(o(i)(`manage.settings.expiration.${r}`)),3)])),64))])]),e("div",qe,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.maxSaveTime")),3),e("div",Je,[d(e("input",{type:"number","onUpdate:modelValue":a[28]||(a[28]=r=>c.value=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,c.value]]),d(e("select",{"onUpdate:modelValue":a[29]||(a[29]=r=>y.value=r),class:s(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},[e("option",Oe,l(o(i)("common.second")),1),e("option",Qe,l(o(i)("common.minute")),1),e("option",Xe,l(o(i)("common.hour")),1),e("option",Ye,l(o(i)("common.day")),1)],2),[[x,y.value]])])]),e("div",eo,[e("label",{class:s(["block text-sm font-medium mb-2",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.guestUpload")),3),e("div",oo,[e("button",{type:"button",onClick:a[30]||(a[30]=r=>t.value.openUpload=t.value.openUpload===1?0:1),class:s(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[t.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":t.value.openUpload===1},[e("span",{class:s(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[t.value.openUpload===1?"translate-x-5":"translate-x-0",o(n)&&t.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,to),e("span",{class:s(["ml-3 text-sm",[o(n)?"text-gray-300":"text-gray-700"]])},l(t.value.openUpload===1?o(i)("common.enabled"):o(i)("common.disabled")),3)])])])]),e("div",ro,[e("h3",{class:s(["text-lg font-medium mb-4",[o(n)?"text-white":"text-gray-800"]])},l(o(i)("manage.settings.errorLimits")),3),e("div",ao,[e("div",so,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.errorPerMinute")),3),e("div",no,[d(e("input",{type:"number","onUpdate:modelValue":a[31]||(a[31]=r=>t.value.errorMinute=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.errorMinute]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.minute")),3)])]),e("div",io,[e("label",{class:s(["block text-sm font-medium",[o(n)?"text-gray-300":"text-gray-700"]])},l(o(i)("manage.settings.errorCountLimit")),3),e("div",lo,[d(e("input",{type:"number","onUpdate:modelValue":a[32]||(a[32]=r=>t.value.errorCount=r),class:s(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[o(n)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[g,t.value.errorCount]]),e("span",{class:s([o(n)?"text-gray-300":"text-gray-700"])},l(o(i)("common.times")),3)])])])]),e("div",go,[e("button",{onClick:D,class:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200"},l(o(i)("manage.settings.saveChanges")),1)])])],2)]))}});export{yo as default}; diff --git a/themes/2024/assets/box-C2OkK29z.js b/themes/2024/assets/box-COy3AQAQ.js similarity index 79% rename from themes/2024/assets/box-C2OkK29z.js rename to themes/2024/assets/box-COy3AQAQ.js index cea0530..d8ecbbe 100644 --- a/themes/2024/assets/box-C2OkK29z.js +++ b/themes/2024/assets/box-COy3AQAQ.js @@ -1 +1 @@ -import{c as a}from"./index-DaP6hnmm.js";const e=a("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);export{e as B}; +import{c as a}from"./index-B3zfsvgW.js";const e=a("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);export{e as B}; diff --git a/themes/2024/assets/copy-bjFRgEY8.js b/themes/2024/assets/copy-DV195_ld.js similarity index 71% rename from themes/2024/assets/copy-bjFRgEY8.js rename to themes/2024/assets/copy-DV195_ld.js index 50b9e6f..ff9a016 100644 --- a/themes/2024/assets/copy-bjFRgEY8.js +++ b/themes/2024/assets/copy-DV195_ld.js @@ -1 +1 @@ -import{c}from"./index-DaP6hnmm.js";const t=c("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);export{t as C}; +import{c}from"./index-B3zfsvgW.js";const t=c("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);export{t as C}; diff --git a/themes/2024/assets/file-C928Lhos.js b/themes/2024/assets/file-Ceuyr6iv.js similarity index 70% rename from themes/2024/assets/file-C928Lhos.js rename to themes/2024/assets/file-Ceuyr6iv.js index 7e964ac..e8df671 100644 --- a/themes/2024/assets/file-C928Lhos.js +++ b/themes/2024/assets/file-Ceuyr6iv.js @@ -1 +1 @@ -import{c as a}from"./index-DaP6hnmm.js";const t=a("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);export{t as F}; +import{c as a}from"./index-B3zfsvgW.js";const t=a("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);export{t as F}; diff --git a/themes/2024/assets/hard-drive-B6XHFjlY.js b/themes/2024/assets/hard-drive-5GIKYPKr.js similarity index 83% rename from themes/2024/assets/hard-drive-B6XHFjlY.js rename to themes/2024/assets/hard-drive-5GIKYPKr.js index 0288009..c18a60d 100644 --- a/themes/2024/assets/hard-drive-B6XHFjlY.js +++ b/themes/2024/assets/hard-drive-5GIKYPKr.js @@ -1 +1 @@ -import{c as e}from"./index-DaP6hnmm.js";const a=e("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);export{a as H}; +import{c as e}from"./index-B3zfsvgW.js";const a=e("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);export{a as H}; diff --git a/themes/2024/assets/index-DaP6hnmm.js b/themes/2024/assets/index-B3zfsvgW.js similarity index 92% rename from themes/2024/assets/index-DaP6hnmm.js rename to themes/2024/assets/index-B3zfsvgW.js index 124fa59..ac7bc87 100644 --- a/themes/2024/assets/index-DaP6hnmm.js +++ b/themes/2024/assets/index-B3zfsvgW.js @@ -1,9 +1,9 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SendFileView-DsVuX-HF.js","assets/PageHeader-Dda1k_N5.js","assets/box-C2OkK29z.js","assets/PageHeader-DV4PCTwD.css","assets/file-C928Lhos.js","assets/trash-JuhqIjo3.js","assets/SendFileView-CncKd-lI.css","assets/RetrievewFileView-CSTBscGQ.js","assets/hard-drive-B6XHFjlY.js","assets/copy-bjFRgEY8.js","assets/RetrievewFileView-Bs4l0or-.css","assets/AdminLayout-V4TGAipv.js","assets/AdminLayout-D_KhoR09.css","assets/DashboardView-Bi1R6Lfw.js","assets/FileManageView-Dl2tHKSM.js","assets/FileManageView-DrjnVkAt.css","assets/LoginView-BiEXW3sl.js","assets/LoginView-CbGDZtny.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SendFileView-DW3wRbaM.js","assets/PageHeader-Y9MICulD.js","assets/box-COy3AQAQ.js","assets/PageHeader-DV4PCTwD.css","assets/file-Ceuyr6iv.js","assets/trash-CdDjPTBr.js","assets/SendFileView-CncKd-lI.css","assets/RetrievewFileView-CWZH6U-r.js","assets/hard-drive-5GIKYPKr.js","assets/copy-DV195_ld.js","assets/RetrievewFileView-Bs4l0or-.css","assets/AdminLayout-CIwHWF3v.js","assets/AdminLayout-D_KhoR09.css","assets/DashboardView-CPuETXoG.js","assets/FileManageView-D9LkQK2i.js","assets/FileManageView-DrjnVkAt.css","assets/LoginView-DN8sBu46.js","assets/LoginView-CbGDZtny.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Ko(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const be={},Wn=[],xt=()=>{},Rl=()=>!1,vs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Go=e=>e.startsWith("onUpdate:"),ke=Object.assign,Yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rf=Object.prototype.hasOwnProperty,me=(e,t)=>Rf.call(e,t),Q=Array.isArray,Bn=e=>Fr(e)==="[object Map]",Zn=e=>Fr(e)==="[object Set]",Li=e=>Fr(e)==="[object Date]",se=e=>typeof e=="function",Re=e=>typeof e=="string",vt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Nl=e=>(ye(e)||se(e))&&se(e.then)&&se(e.catch),Il=Object.prototype.toString,Fr=e=>Il.call(e),Nf=e=>Fr(e).slice(8,-1),xl=e=>Fr(e)==="[object Object]",qo=e=>Re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fr=Ko(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ss=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},If=/-\w/g,gt=Ss(e=>e.replace(If,t=>t.slice(1).toUpperCase())),xf=/\B([A-Z])/g,gn=Ss(e=>e.replace(xf,"-$1").toLowerCase()),ws=Ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=Ss(e=>e?`on${ws(e)}`:""),cn=(e,t)=>!Object.is(e,t),es=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},as=e=>{const t=parseFloat(e);return isNaN(t)?e:t},kf=e=>{const t=Re(e)?Number(e):NaN;return isNaN(t)?e:t};let Pi;const Ts=()=>Pi||(Pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cs(e){if(Q(e)){const t={};for(let n=0;n{if(n){const r=n.split(Df);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Nt(e){let t="";if(Re(e))t=e;else if(Q(e))for(let n=0;nDr(n,t))}const Dl=e=>!!(e&&e.__v_isRef===!0),Er=e=>Re(e)?e:e==null?"":Q(e)||ye(e)&&(e.toString===Il||!se(e.toString))?Dl(e)?Er(e.value):JSON.stringify(e,Ml,2):String(e),Ml=(e,t)=>Dl(t)?Ml(e,t.value):Bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[qs(r,o)+" =>"]=s,n),{})}:Zn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qs(n))}:vt(t)?qs(t):ye(t)&&!Q(t)&&!xl(t)?String(t):t,qs=(e,t="")=>{var n;return vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ze;class Ul{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(ze=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(hr){let t=hr;for(hr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;dr;){let t=dr;for(dr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Bl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function jl(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zo(r),Bf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function _o(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Kl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Kl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vr)||(e.globalVersion=vr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_o(e))))return;e.flags|=2;const t=e.dep,n=ve,r=Et;ve=e,Et=!0;try{Bl(e);const s=e.fn(e._value);(t.version===0||cn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ve=n,Et=r,jl(e),e.flags&=-3}}function Zo(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Zo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Bf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Et=!0;const Gl=[];function Yt(){Gl.push(Et),Et=!1}function qt(){const e=Gl.pop();Et=e===void 0?!0:e}function Ai(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let vr=0;class jf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ei{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ve||!Et||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new jf(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,Yl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=r)}return n}trigger(t){this.version++,vr++,this.notify(t)}notify(t){Jo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qo()}}}function Yl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Yl(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ls=new WeakMap,Rn=Symbol(""),yo=Symbol(""),Sr=Symbol("");function Xe(e,t,n){if(Et&&ve){let r=ls.get(e);r||ls.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ei),s.map=r,s.key=n),s.track()}}function Ht(e,t,n,r,s,o){const i=ls.get(e);if(!i){vr++;return}const a=l=>{l&&l.trigger()};if(Jo(),t==="clear")i.forEach(a);else{const l=Q(e),c=l&&qo(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===Sr||!vt(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Sr)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Rn)),Bn(e)&&a(i.get(yo)));break;case"delete":l||(a(i.get(Rn)),Bn(e)&&a(i.get(yo)));break;case"set":Bn(e)&&a(i.get(Rn));break}}Qo()}function Kf(e,t){const n=ls.get(e);return n&&n.get(t)}function Dn(e){const t=ce(e);return t===e?t:(Xe(t,"iterate",Sr),mt(e)?t:t.map(Be))}function Ls(e){return Xe(e=ce(e),"iterate",Sr),e}const Gf={__proto__:null,[Symbol.iterator](){return Xs(this,Symbol.iterator,Be)},concat(...e){return Dn(this).concat(...e.map(t=>Q(t)?Dn(t):t))},entries(){return Xs(this,"entries",e=>(e[1]=Be(e[1]),e))},every(e,t){return Ft(this,"every",e,t,void 0,arguments)},filter(e,t){return Ft(this,"filter",e,t,n=>n.map(Be),arguments)},find(e,t){return Ft(this,"find",e,t,Be,arguments)},findIndex(e,t){return Ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ft(this,"findLast",e,t,Be,arguments)},findLastIndex(e,t){return Ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return Js(this,"includes",e)},indexOf(...e){return Js(this,"indexOf",e)},join(e){return Dn(this).join(e)},lastIndexOf(...e){return Js(this,"lastIndexOf",e)},map(e,t){return Ft(this,"map",e,t,void 0,arguments)},pop(){return or(this,"pop")},push(...e){return or(this,"push",e)},reduce(e,...t){return Oi(this,"reduce",e,t)},reduceRight(e,...t){return Oi(this,"reduceRight",e,t)},shift(){return or(this,"shift")},some(e,t){return Ft(this,"some",e,t,void 0,arguments)},splice(...e){return or(this,"splice",e)},toReversed(){return Dn(this).toReversed()},toSorted(e){return Dn(this).toSorted(e)},toSpliced(...e){return Dn(this).toSpliced(...e)},unshift(...e){return or(this,"unshift",e)},values(){return Xs(this,"values",Be)}};function Xs(e,t,n){const r=Ls(e),s=r[t]();return r!==e&&!mt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const Yf=Array.prototype;function Ft(e,t,n,r,s,o){const i=Ls(e),a=i!==e&&!mt(e),l=i[t];if(l!==Yf[t]){const f=l.apply(e,o);return a?Be(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,Be(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function Oi(e,t,n,r){const s=Ls(e);let o=n;return s!==e&&(mt(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,Be(a),l,e)}),s[t](o,...r)}function Js(e,t,n){const r=ce(e);Xe(r,"iterate",Sr);const s=r[t](...n);return(s===-1||s===!1)&&ri(n[0])?(n[0]=ce(n[0]),r[t](...n)):s}function or(e,t,n=[]){Yt(),Jo();const r=ce(e)[t].apply(e,n);return Qo(),qt(),r}const qf=Ko("__proto__,__v_isRef,__isVue"),ql=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function zf(e){vt(e)||(e=String(e));const t=ce(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class zl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?od:Zl:o?Ql:Jl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Q(t);if(!s){let l;if(i&&(l=Gf[n]))return l;if(n==="hasOwnProperty")return zf}const a=Reflect.get(t,n,Le(t)?t:r);return(vt(n)?ql.has(n):qf(n))||(s||Xe(t,"get",n),o)?a:Le(a)?i&&qo(n)?a:a.value:ye(a)?s?tc(a):Mr(a):a}}class Xl extends zl{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=fn(o);if(!mt(r)&&!fn(r)&&(o=ce(o),r=ce(r)),!Q(t)&&Le(o)&&!Le(r))return l||(o.value=r),!0}const i=Q(t)&&qo(n)?Number(n)e,Gr=e=>Reflect.getPrototypeOf(e);function ed(e,t,n){return function(...r){const s=this.__v_raw,o=ce(s),i=Bn(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?bo:t?cs:Be;return!t&&Xe(o,"iterate",l?yo:Rn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Yr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function td(e,t){const n={get(s){const o=this.__v_raw,i=ce(o),a=ce(s);e||(cn(s,a)&&Xe(i,"get",s),Xe(i,"get",a));const{has:l}=Gr(i),c=t?bo:e?cs:Be;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Xe(ce(s),"iterate",Rn),s.size},has(s){const o=this.__v_raw,i=ce(o),a=ce(s);return e||(cn(s,a)&&Xe(i,"has",s),Xe(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=ce(a),c=t?bo:e?cs:Be;return!e&&Xe(l,"iterate",Rn),a.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return ke(n,e?{add:Yr("add"),set:Yr("set"),delete:Yr("delete"),clear:Yr("clear")}:{add(s){!t&&!mt(s)&&!fn(s)&&(s=ce(s));const o=ce(this);return Gr(o).has.call(o,s)||(o.add(s),Ht(o,"add",s,s)),this},set(s,o){!t&&!mt(o)&&!fn(o)&&(o=ce(o));const i=ce(this),{has:a,get:l}=Gr(i);let c=a.call(i,s);c||(s=ce(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?cn(o,u)&&Ht(i,"set",s,o):Ht(i,"add",s,o),this},delete(s){const o=ce(this),{has:i,get:a}=Gr(o);let l=i.call(o,s);l||(s=ce(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&Ht(o,"delete",s,void 0),c},clear(){const s=ce(this),o=s.size!==0,i=s.clear();return o&&Ht(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=ed(s,e,t)}),n}function ti(e,t){const n=td(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(me(n,s)&&s in r?n:r,s,o)}const nd={get:ti(!1,!1)},rd={get:ti(!1,!0)},sd={get:ti(!0,!1)};const Jl=new WeakMap,Ql=new WeakMap,Zl=new WeakMap,od=new WeakMap;function id(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ad(e){return e.__v_skip||!Object.isExtensible(e)?0:id(Nf(e))}function Mr(e){return fn(e)?e:ni(e,!1,Jf,nd,Jl)}function ec(e){return ni(e,!1,Zf,rd,Ql)}function tc(e){return ni(e,!0,Qf,sd,Zl)}function ni(e,t,n,r,s){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=ad(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Kt(e){return fn(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function mt(e){return!!(e&&e.__v_isShallow)}function ri(e){return e?!!e.__v_raw:!1}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function si(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&kl(e,"__v_skip",!0),e}const Be=e=>ye(e)?Mr(e):e,cs=e=>ye(e)?tc(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function it(e){return nc(e,!1)}function oi(e){return nc(e,!0)}function nc(e,t){return Le(e)?e:new ld(e,t)}class ld{constructor(t,n){this.dep=new ei,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ce(t),this._value=n?t:Be(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||mt(t)||fn(t);t=r?t:ce(t),cn(t,n)&&(this._rawValue=t,this._value=r?t:Be(t),this.dep.trigger())}}function Te(e){return Le(e)?e.value:e}const cd={get:(e,t,n)=>t==="__v_raw"?e:Te(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Le(s)&&!Le(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function rc(e){return Kt(e)?e:new Proxy(e,cd)}function ud(e){const t=Q(e)?new Array(e.length):{};for(const n in e)t[n]=sc(e,n);return t}class fd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Kf(ce(this._object),this._key)}}class dd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function hd(e,t,n){return Le(e)?e:se(e)?new dd(e):ye(e)&&arguments.length>1?sc(e,t,n):it(e)}function sc(e,t,n){const r=e[t];return Le(r)?r:new fd(e,t,n)}class pd{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ei(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Wl(this,!0),!0}get value(){const t=this.dep.track();return Kl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function md(e,t,n=!1){let r,s;return se(e)?r=e:(r=e.get,s=e.set),new pd(r,s,n)}const qr={},us=new WeakMap;let Ln;function gd(e,t=!1,n=Ln){if(n){let r=us.get(n);r||us.set(n,r=[]),r.push(e)}}function _d(e,t,n=be){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=v=>s?v:mt(v)||s===!1||s===0?Wt(v,1):Wt(v);let u,f,d,m,y=!1,S=!1;if(Le(e)?(f=()=>e.value,y=mt(e)):Kt(e)?(f=()=>c(e),y=!0):Q(e)?(S=!0,y=e.some(v=>Kt(v)||mt(v)),f=()=>e.map(v=>{if(Le(v))return v.value;if(Kt(v))return c(v);if(se(v))return l?l(v,2):v()})):se(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Yt();try{d()}finally{qt()}}const v=Ln;Ln=u;try{return l?l(e,3,[m]):e(m)}finally{Ln=v}}:f=xt,t&&s){const v=f,O=s===!0?1/0:s;f=()=>Wt(v(),O)}const w=$l(),R=()=>{u.stop(),w&&w.active&&Yo(w.effects,u)};if(o&&t){const v=t;t=(...O)=>{v(...O),R()}}let D=S?new Array(e.length).fill(qr):qr;const E=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const O=u.run();if(s||y||(S?O.some((N,x)=>cn(N,D[x])):cn(O,D))){d&&d();const N=Ln;Ln=u;try{const x=[O,D===qr?void 0:S&&D[0]===qr?[]:D,m];D=O,l?l(t,3,x):t(...x)}finally{Ln=N}}}else u.run()};return a&&a(E),u=new Vl(f),u.scheduler=i?()=>i(E,!1):E,m=v=>gd(v,!1,u),d=u.onStop=()=>{const v=us.get(u);if(v){if(l)l(v,4);else for(const O of v)O();us.delete(u)}},t?r?E(!0):D=u.run():i?i(E.bind(null,!0),!0):u.run(),R.pause=u.pause.bind(u),R.resume=u.resume.bind(u),R.stop=R,R}function Wt(e,t=1/0,n){if(t<=0||!ye(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Le(e))Wt(e.value,t,n);else if(Q(e))for(let r=0;r{Wt(r,t,n)});else if(xl(e)){for(const r in e)Wt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Wt(e[r],t,n)}return e}function Ur(e,t,n,r){try{return r?e(...r):e()}catch(s){Ps(s,t,n)}}function St(e,t,n,r){if(se(e)){const s=Ur(e,t,n,r);return s&&Nl(s)&&s.catch(o=>{Ps(o,t,n)}),s}if(Q(e)){const s=[];for(let o=0;o>>1,s=st[r],o=wr(s);o=wr(n)?st.push(e):st.splice(bd(t),0,e),e.flags|=1,ic()}}function ic(){fs||(fs=oc.then(lc))}function Ed(e){Q(e)?jn.push(...e):sn&&e.id===-1?sn.splice(Un+1,0,e):e.flags&1||(jn.push(e),e.flags|=1),ic()}function Ri(e,t,n=Ot+1){for(;nwr(n)-wr(r));if(jn.length=0,sn){sn.push(...t);return}for(sn=t,Un=0;Une.id==null?e.flags&2?-1:1/0:e.id;function lc(e){try{for(Ot=0;Ot{r._d&&ms(-1);const o=ds(t);let i;try{i=e(...s)}finally{ds(o),r._d&&ms(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function qb(e,t){if(je===null)return e;const n=Is(je),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,Vt=Symbol("_leaveCb"),zr=Symbol("_enterCb");function fc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return er(()=>{e.isMounted=!0}),Ec(()=>{e.isUnmounting=!0}),e}const ht=[Function,Array],dc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ht,onEnter:ht,onAfterEnter:ht,onEnterCancelled:ht,onBeforeLeave:ht,onLeave:ht,onAfterLeave:ht,onLeaveCancelled:ht,onBeforeAppear:ht,onAppear:ht,onAfterAppear:ht,onAppearCancelled:ht},hc=e=>{const t=e.subTree;return t.component?hc(t.component):t},Sd={name:"BaseTransition",props:dc,setup(e,{slots:t}){const n=zt(),r=fc();return()=>{const s=t.default&&ai(t.default(),!0);if(!s||!s.length)return;const o=pc(s),i=ce(e),{mode:a}=i;if(r.isLeaving)return Qs(o);const l=Ni(o);if(!l)return Qs(o);let c=Cr(l,i,r,n,f=>c=f);l.type!==Je&&kn(l,c);let u=n.subTree&&Ni(n.subTree);if(u&&u.type!==Je&&!An(u,l)&&hc(n).type!==Je){let f=Cr(u,i,r,n);if(kn(u,f),a==="out-in"&&l.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Qs(o);a==="in-out"&&l.type!==Je?f.delayLeave=(d,m,y)=>{const S=mc(r,u);S[String(u.key)]=u,d[Vt]=()=>{m(),d[Vt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{y(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function pc(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Je){t=n;break}}return t}const wd=Sd;function mc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:m,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:w,onAppear:R,onAfterAppear:D,onAppearCancelled:E}=t,v=String(e.key),O=mc(n,e),N=(L,q)=>{L&&St(L,r,9,q)},x=(L,q)=>{const Z=q[1];N(L,q),Q(L)?L.every($=>$.length<=1)&&Z():L.length<=1&&Z()},V={mode:i,persisted:a,beforeEnter(L){let q=l;if(!n.isMounted)if(o)q=w||l;else return;L[Vt]&&L[Vt](!0);const Z=O[v];Z&&An(e,Z)&&Z.el[Vt]&&Z.el[Vt](),N(q,[L])},enter(L){let q=c,Z=u,$=f;if(!n.isMounted)if(o)q=R||c,Z=D||u,$=E||f;else return;let X=!1;const ue=L[zr]=Pe=>{X||(X=!0,Pe?N($,[L]):N(Z,[L]),V.delayedLeave&&V.delayedLeave(),L[zr]=void 0)};q?x(q,[L,ue]):ue()},leave(L,q){const Z=String(e.key);if(L[zr]&&L[zr](!0),n.isUnmounting)return q();N(d,[L]);let $=!1;const X=L[Vt]=ue=>{$||($=!0,q(),ue?N(S,[L]):N(y,[L]),L[Vt]=void 0,O[Z]===e&&delete O[Z])};O[Z]=e,m?x(m,[L,X]):X()},clone(L){const q=Cr(L,t,n,r,s);return s&&s(q),q}};return V}function Qs(e){if(Os(e))return e=hn(e),e.children=null,e}function Ni(e){if(!Os(e))return uc(e.type)&&e.children?pc(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&se(n.default))return n.default()}}function kn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ai(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;opr(y,t&&(Q(t)?t[S]:t),n,r,s));return}if(Kn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&pr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Is(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===be?a.refs={}:a.refs,f=a.setupState,d=ce(f),m=f===be?Rl:y=>me(d,y);if(c!=null&&c!==l){if(Ii(t),Re(c))u[c]=null,m(c)&&(f[c]=null);else if(Le(c)){c.value=null;const y=t;y.k&&(u[y.k]=null)}}if(se(l))Ur(l,a,12,[i,u]);else{const y=Re(l),S=Le(l);if(y||S){const w=()=>{if(e.f){const R=y?m(l)?f[l]:u[l]:l.value;if(s)Q(R)&&Yo(R,o);else if(Q(R))R.includes(o)||R.push(o);else if(y)u[l]=[o],m(l)&&(f[l]=u[l]);else{const D=[o];l.value=D,e.k&&(u[e.k]=D)}}else y?(u[l]=i,m(l)&&(f[l]=i)):S&&(l.value=i,e.k&&(u[e.k]=i))};if(i){const R=()=>{w(),hs.delete(e)};R.id=-1,hs.set(e,R),ft(R,n)}else Ii(e),w()}}}function Ii(e){const t=hs.get(e);t&&(t.flags|=8,hs.delete(e))}Ts().requestIdleCallback;Ts().cancelIdleCallback;const Kn=e=>!!e.type.__asyncLoader,Os=e=>e.type.__isKeepAlive;function Td(e,t){_c(e,"a",t)}function Cd(e,t){_c(e,"da",t)}function _c(e,t,n=Qe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Rs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Os(s.parent.vnode)&&Ld(r,t,n,s),s=s.parent}}function Ld(e,t,n,r){const s=Rs(t,e,r,!0);tr(()=>{Yo(r[t],s)},n)}function Rs(e,t,n=Qe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Yt();const a=Vr(n),l=St(t,n,e,i);return a(),qt(),l});return r?s.unshift(o):s.push(o),o}}const Jt=e=>(t,n=Qe)=>{(!Ar||e==="sp")&&Rs(e,(...r)=>t(...r),n)},yc=Jt("bm"),er=Jt("m"),Pd=Jt("bu"),bc=Jt("u"),Ec=Jt("bum"),tr=Jt("um"),Ad=Jt("sp"),Od=Jt("rtg"),Rd=Jt("rtc");function Nd(e,t=Qe){Rs("ec",e,t)}const vc="components";function zb(e,t){return Tc(vc,e,!0,t)||e}const Sc=Symbol.for("v-ndc");function wc(e){return Re(e)?Tc(vc,e,!1)||e:e||Sc}function Tc(e,t,n=!0,r=!1){const s=je||Qe;if(s){const o=s.type;{const a=Eh(o,!1);if(a&&(a===t||a===gt(t)||a===ws(gt(t))))return o}const i=xi(s[e]||o[e],t)||xi(s.appContext[e],t);return!i&&r?o:i}}function xi(e,t){return e&&(e[t]||e[gt(t)]||e[ws(gt(t))])}function Cc(e,t,n,r){let s;const o=n,i=Q(e);if(i||Re(e)){const a=i&&Kt(e);let l=!1,c=!1;a&&(l=!mt(e),c=fn(e),e=Ls(e)),s=new Array(e.length);for(let u=0,f=e.length;ut(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;lPr(t)?!(t.type===Je||t.type===Ue&&!Lc(t.children)):!0)?e:null}const Eo=e=>e?Yc(e)?Is(e):Eo(e.parent):null,mr=ke(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Eo(e.parent),$root:e=>Eo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ac(e),$forceUpdate:e=>e.f||(e.f=()=>{ii(e.update)}),$nextTick:e=>e.n||(e.n=As.bind(e.proxy)),$watch:e=>Zd.bind(e)}),Zs=(e,t)=>e!==be&&!e.__isScriptSetup&&me(e,t),Id={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Zs(r,t))return i[t]=1,r[t];if(s!==be&&me(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&me(c,t))return i[t]=3,o[t];if(n!==be&&me(n,t))return i[t]=4,n[t];vo&&(i[t]=0)}}const u=mr[t];let f,d;if(u)return t==="$attrs"&&Xe(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==be&&me(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Zs(s,t)?(s[t]=n,!0):r!==be&&me(r,t)?(r[t]=n,!0):me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o,type:i}},a){let l,c;return!!(n[a]||e!==be&&a[0]!=="$"&&me(e,a)||Zs(t,a)||(l=o[0])&&me(l,a)||me(r,a)||me(mr,a)||me(s.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ki(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vo=!0;function xd(e){const t=Ac(e),n=e.proxy,r=e.ctx;vo=!1,t.beforeCreate&&Fi(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:m,updated:y,activated:S,deactivated:w,beforeDestroy:R,beforeUnmount:D,destroyed:E,unmounted:v,render:O,renderTracked:N,renderTriggered:x,errorCaptured:V,serverPrefetch:L,expose:q,inheritAttrs:Z,components:$,directives:X,filters:ue}=t;if(c&&kd(c,r,null),i)for(const ee in i){const re=i[ee];se(re)&&(r[ee]=re.bind(n))}if(s){const ee=s.call(n,n);ye(ee)&&(e.data=Mr(ee))}if(vo=!0,o)for(const ee in o){const re=o[ee],Fe=se(re)?re.bind(n,n):se(re.get)?re.get.bind(n,n):xt,Ye=!se(re)&&se(re.set)?re.set.bind(n):xt,he=Ee({get:Fe,set:Ye});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>he.value,set:ge=>he.value=ge})}if(a)for(const ee in a)Pc(a[ee],r,n,ee);if(l){const ee=se(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(re=>{In(re,ee[re])})}u&&Fi(u,e,"c");function te(ee,re){Q(re)?re.forEach(Fe=>ee(Fe.bind(n))):re&&ee(re.bind(n))}if(te(yc,f),te(er,d),te(Pd,m),te(bc,y),te(Td,S),te(Cd,w),te(Nd,V),te(Rd,N),te(Od,x),te(Ec,D),te(tr,v),te(Ad,L),Q(q))if(q.length){const ee=e.exposed||(e.exposed={});q.forEach(re=>{Object.defineProperty(ee,re,{get:()=>n[re],set:Fe=>n[re]=Fe,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===xt&&(e.render=O),Z!=null&&(e.inheritAttrs=Z),$&&(e.components=$),X&&(e.directives=X),L&&gc(e)}function kd(e,t,n=xt){Q(e)&&(e=So(e));for(const r in e){const s=e[r];let o;ye(s)?"default"in s?o=et(s.from||r,s.default,!0):o=et(s.from||r):o=et(s),Le(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Fi(e,t,n){St(Q(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Pc(e,t,n,r){let s=r.includes(".")?Hc(n,r):()=>n[r];if(Re(e)){const o=t[e];se(o)&&un(s,o)}else if(se(e))un(s,e.bind(n));else if(ye(e))if(Q(e))e.forEach(o=>Pc(o,t,n,r));else{const o=se(e.handler)?e.handler.bind(n):t[e.handler];se(o)&&un(s,o,e)}}function Ac(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>ps(l,c,i,!0)),ps(l,t,i)),ye(t)&&o.set(t,l),l}function ps(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ps(e,o,n,!0),s&&s.forEach(i=>ps(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Fd[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Fd={data:Di,props:Mi,emits:Mi,methods:ur,computed:ur,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:ur,directives:ur,watch:Md,provide:Di,inject:Dd};function Di(e,t){return t?e?function(){return ke(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Dd(e,t){return ur(So(e),So(t))}function So(e){if(Q(e)){const t={};for(let n=0;n1)return n&&se(t)?t.call(r&&r.proxy):t}}function Vd(){return!!(zt()||Nn)}const Rc={},Nc=()=>Object.create(Rc),Ic=e=>Object.getPrototypeOf(e)===Rc;function Hd(e,t,n,r=!1){const s={},o=Nc();e.propsDefaults=Object.create(null),xc(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:ec(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Wd(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ce(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,m]=kc(f,t,!0);ke(i,d),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return ye(e)&&r.set(e,Wn),Wn;if(Q(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",ci=e=>Q(e)?e.map(Rt):[Rt(e)],jd=(e,t,n)=>{if(t._n)return t;const r=Tr((...s)=>ci(t(...s)),n);return r._c=!1,r},Fc=(e,t,n)=>{const r=e._ctx;for(const s in e){if(li(s))continue;const o=e[s];if(se(o))t[s]=jd(s,o,r);else if(o!=null){const i=ci(o);t[s]=()=>i}}},Dc=(e,t)=>{const n=ci(t);e.slots.default=()=>n},Mc=(e,t,n)=>{for(const r in t)(n||!li(r))&&(e[r]=t[r])},Kd=(e,t,n)=>{const r=e.slots=Nc();if(e.vnode.shapeFlag&32){const s=t._;s?(Mc(r,t,n),n&&kl(r,"_",s,!0)):Fc(t,r)}else t&&Dc(e,t)},Gd=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=be;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Mc(s,t,n):(o=!t.$stable,Fc(t,s)),i=t}else t&&(Dc(e,t),i={default:1});if(o)for(const a in s)!li(a)&&i[a]==null&&delete s[a]},ft=ah;function Yd(e){return qd(e)}function qd(e,t){const n=Ts();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=xt,insertStaticContent:y}=e,S=(g,b,_,P=null,U=null,F=null,B=void 0,W=null,h=!!b.dynamicChildren)=>{if(g===b)return;g&&!An(g,b)&&(P=M(g),ge(g,U,F,!0),g=null),b.patchFlag===-2&&(h=!1,b.dynamicChildren=null);const{type:p,ref:C,shapeFlag:I}=b;switch(p){case $r:w(g,b,_,P);break;case Je:R(g,b,_,P);break;case to:g==null&&D(b,_,P,B);break;case Ue:$(g,b,_,P,U,F,B,W,h);break;default:I&1?O(g,b,_,P,U,F,B,W,h):I&6?X(g,b,_,P,U,F,B,W,h):(I&64||I&128)&&p.process(g,b,_,P,U,F,B,W,h,z)}C!=null&&U?pr(C,g&&g.ref,F,b||g,!b):C==null&&g&&g.ref!=null&&pr(g.ref,null,F,g,!0)},w=(g,b,_,P)=>{if(g==null)r(b.el=a(b.children),_,P);else{const U=b.el=g.el;b.children!==g.children&&c(U,b.children)}},R=(g,b,_,P)=>{g==null?r(b.el=l(b.children||""),_,P):b.el=g.el},D=(g,b,_,P)=>{[g.el,g.anchor]=y(g.children,b,_,P,g.el,g.anchor)},E=({el:g,anchor:b},_,P)=>{let U;for(;g&&g!==b;)U=d(g),r(g,_,P),g=U;r(b,_,P)},v=({el:g,anchor:b})=>{let _;for(;g&&g!==b;)_=d(g),s(g),g=_;s(b)},O=(g,b,_,P,U,F,B,W,h)=>{b.type==="svg"?B="svg":b.type==="math"&&(B="mathml"),g==null?N(b,_,P,U,F,B,W,h):L(g,b,U,F,B,W,h)},N=(g,b,_,P,U,F,B,W)=>{let h,p;const{props:C,shapeFlag:I,transition:K,dirs:H}=g;if(h=g.el=i(g.type,F,C&&C.is,C),I&8?u(h,g.children):I&16&&V(g.children,h,null,P,U,eo(g,F),B,W),H&&vn(g,null,P,"created"),x(h,g,g.scopeId,B,P),C){for(const k in C)k!=="value"&&!fr(k)&&o(h,k,null,C[k],F,P);"value"in C&&o(h,"value",null,C.value,F),(p=C.onVnodeBeforeMount)&&Lt(p,P,g)}H&&vn(g,null,P,"beforeMount");const T=zd(U,K);T&&K.beforeEnter(h),r(h,b,_),((p=C&&C.onVnodeMounted)||T||H)&&ft(()=>{p&&Lt(p,P,g),T&&K.enter(h),H&&vn(g,null,P,"mounted")},U)},x=(g,b,_,P,U)=>{if(_&&m(g,_),P)for(let F=0;F{for(let p=h;p{const W=b.el=g.el;let{patchFlag:h,dynamicChildren:p,dirs:C}=b;h|=g.patchFlag&16;const I=g.props||be,K=b.props||be;let H;if(_&&Sn(_,!1),(H=K.onVnodeBeforeUpdate)&&Lt(H,_,b,g),C&&vn(b,g,_,"beforeUpdate"),_&&Sn(_,!0),(I.innerHTML&&K.innerHTML==null||I.textContent&&K.textContent==null)&&u(W,""),p?q(g.dynamicChildren,p,W,_,P,eo(b,U),F):B||re(g,b,W,null,_,P,eo(b,U),F,!1),h>0){if(h&16)Z(W,I,K,_,U);else if(h&2&&I.class!==K.class&&o(W,"class",null,K.class,U),h&4&&o(W,"style",I.style,K.style,U),h&8){const T=b.dynamicProps;for(let k=0;k{H&&Lt(H,_,b,g),C&&vn(b,g,_,"updated")},P)},q=(g,b,_,P,U,F,B)=>{for(let W=0;W{if(b!==_){if(b!==be)for(const F in b)!fr(F)&&!(F in _)&&o(g,F,b[F],null,U,P);for(const F in _){if(fr(F))continue;const B=_[F],W=b[F];B!==W&&F!=="value"&&o(g,F,W,B,U,P)}"value"in _&&o(g,"value",b.value,_.value,U)}},$=(g,b,_,P,U,F,B,W,h)=>{const p=b.el=g?g.el:a(""),C=b.anchor=g?g.anchor:a("");let{patchFlag:I,dynamicChildren:K,slotScopeIds:H}=b;H&&(W=W?W.concat(H):H),g==null?(r(p,_,P),r(C,_,P),V(b.children||[],_,C,U,F,B,W,h)):I>0&&I&64&&K&&g.dynamicChildren?(q(g.dynamicChildren,K,_,U,F,B,W),(b.key!=null||U&&b===U.subTree)&&Uc(g,b,!0)):re(g,b,_,C,U,F,B,W,h)},X=(g,b,_,P,U,F,B,W,h)=>{b.slotScopeIds=W,g==null?b.shapeFlag&512?U.ctx.activate(b,_,P,B,h):ue(b,_,P,U,F,B,h):Pe(g,b,h)},ue=(g,b,_,P,U,F,B)=>{const W=g.component=mh(g,P,U);if(Os(g)&&(W.ctx.renderer=z),gh(W,!1,B),W.asyncDep){if(U&&U.registerDep(W,te,B),!g.el){const h=W.subTree=Oe(Je);R(null,h,b,_),g.placeholder=h.el}}else te(W,g,b,_,U,F,B)},Pe=(g,b,_)=>{const P=b.component=g.component;if(oh(g,b,_))if(P.asyncDep&&!P.asyncResolved){ee(P,b,_);return}else P.next=b,P.update();else b.el=g.el,P.vnode=b},te=(g,b,_,P,U,F,B)=>{const W=()=>{if(g.isMounted){let{next:I,bu:K,u:H,parent:T,vnode:k}=g;{const Ve=$c(g);if(Ve){I&&(I.el=k.el,ee(g,I,B)),Ve.asyncDep.then(()=>{g.isUnmounted||W()});return}}let J=I,le;Sn(g,!1),I?(I.el=k.el,ee(g,I,B)):I=k,K&&es(K),(le=I.props&&I.props.onVnodeBeforeUpdate)&&Lt(le,T,I,k),Sn(g,!0);const Ae=Vi(g),tt=g.subTree;g.subTree=Ae,S(tt,Ae,f(tt.el),M(tt),g,U,F),I.el=Ae.el,J===null&&ih(g,Ae.el),H&&ft(H,U),(le=I.props&&I.props.onVnodeUpdated)&&ft(()=>Lt(le,T,I,k),U)}else{let I;const{el:K,props:H}=b,{bm:T,m:k,parent:J,root:le,type:Ae}=g,tt=Kn(b);Sn(g,!1),T&&es(T),!tt&&(I=H&&H.onVnodeBeforeMount)&&Lt(I,J,b),Sn(g,!0);{le.ce&&le.ce._def.shadowRoot!==!1&&le.ce._injectChildStyle(Ae);const Ve=g.subTree=Vi(g);S(null,Ve,_,P,g,U,F),b.el=Ve.el}if(k&&ft(k,U),!tt&&(I=H&&H.onVnodeMounted)){const Ve=b;ft(()=>Lt(I,J,Ve),U)}(b.shapeFlag&256||J&&Kn(J.vnode)&&J.vnode.shapeFlag&256)&&g.a&&ft(g.a,U),g.isMounted=!0,b=_=P=null}};g.scope.on();const h=g.effect=new Vl(W);g.scope.off();const p=g.update=h.run.bind(h),C=g.job=h.runIfDirty.bind(h);C.i=g,C.id=g.uid,h.scheduler=()=>ii(C),Sn(g,!0),p()},ee=(g,b,_)=>{b.component=g;const P=g.vnode.props;g.vnode=b,g.next=null,Wd(g,b.props,P,_),Gd(g,b.children,_),Yt(),Ri(g),qt()},re=(g,b,_,P,U,F,B,W,h=!1)=>{const p=g&&g.children,C=g?g.shapeFlag:0,I=b.children,{patchFlag:K,shapeFlag:H}=b;if(K>0){if(K&128){Ye(p,I,_,P,U,F,B,W,h);return}else if(K&256){Fe(p,I,_,P,U,F,B,W,h);return}}H&8?(C&16&&Me(p,U,F),I!==p&&u(_,I)):C&16?H&16?Ye(p,I,_,P,U,F,B,W,h):Me(p,U,F,!0):(C&8&&u(_,""),H&16&&V(I,_,P,U,F,B,W,h))},Fe=(g,b,_,P,U,F,B,W,h)=>{g=g||Wn,b=b||Wn;const p=g.length,C=b.length,I=Math.min(p,C);let K;for(K=0;KC?Me(g,U,F,!0,!1,I):V(b,_,P,U,F,B,W,h,I)},Ye=(g,b,_,P,U,F,B,W,h)=>{let p=0;const C=b.length;let I=g.length-1,K=C-1;for(;p<=I&&p<=K;){const H=g[p],T=b[p]=h?on(b[p]):Rt(b[p]);if(An(H,T))S(H,T,_,null,U,F,B,W,h);else break;p++}for(;p<=I&&p<=K;){const H=g[I],T=b[K]=h?on(b[K]):Rt(b[K]);if(An(H,T))S(H,T,_,null,U,F,B,W,h);else break;I--,K--}if(p>I){if(p<=K){const H=K+1,T=HK)for(;p<=I;)ge(g[p],U,F,!0),p++;else{const H=p,T=p,k=new Map;for(p=T;p<=K;p++){const ut=b[p]=h?on(b[p]):Rt(b[p]);ut.key!=null&&k.set(ut.key,p)}let J,le=0;const Ae=K-T+1;let tt=!1,Ve=0;const En=new Array(Ae);for(p=0;p=Ae){ge(ut,U,F,!0);continue}let Ct;if(ut.key!=null)Ct=k.get(ut.key);else for(J=T;J<=K;J++)if(En[J-T]===0&&An(ut,b[J])){Ct=J;break}Ct===void 0?ge(ut,U,F,!0):(En[Ct-T]=p+1,Ct>=Ve?Ve=Ct:tt=!0,S(ut,b[Ct],_,null,U,F,B,W,h),le++)}const Gs=tt?Xd(En):Wn;for(J=Gs.length-1,p=Ae-1;p>=0;p--){const ut=T+p,Ct=b[ut],Ti=b[ut+1],Ci=ut+1{const{el:F,type:B,transition:W,children:h,shapeFlag:p}=g;if(p&6){he(g.component.subTree,b,_,P);return}if(p&128){g.suspense.move(b,_,P);return}if(p&64){B.move(g,b,_,z);return}if(B===Ue){r(F,b,_);for(let I=0;IW.enter(F),U);else{const{leave:I,delayLeave:K,afterLeave:H}=W,T=()=>{g.ctx.isUnmounted?s(F):r(F,b,_)},k=()=>{F._isLeaving&&F[Vt](!0),I(F,()=>{T(),H&&H()})};K?K(F,T,k):k()}else r(F,b,_)},ge=(g,b,_,P=!1,U=!1)=>{const{type:F,props:B,ref:W,children:h,dynamicChildren:p,shapeFlag:C,patchFlag:I,dirs:K,cacheIndex:H}=g;if(I===-2&&(U=!1),W!=null&&(Yt(),pr(W,null,_,g,!0),qt()),H!=null&&(b.renderCache[H]=void 0),C&256){b.ctx.deactivate(g);return}const T=C&1&&K,k=!Kn(g);let J;if(k&&(J=B&&B.onVnodeBeforeUnmount)&&Lt(J,b,g),C&6)ct(g.component,_,P);else{if(C&128){g.suspense.unmount(_,P);return}T&&vn(g,null,b,"beforeUnmount"),C&64?g.type.remove(g,b,_,z,P):p&&!p.hasOnce&&(F!==Ue||I>0&&I&64)?Me(p,b,_,!1,!0):(F===Ue&&I&384||!U&&C&16)&&Me(h,b,_),P&&qe(g)}(k&&(J=B&&B.onVnodeUnmounted)||T)&&ft(()=>{J&&Lt(J,b,g),T&&vn(g,null,b,"unmounted")},_)},qe=g=>{const{type:b,el:_,anchor:P,transition:U}=g;if(b===Ue){De(_,P);return}if(b===to){v(g);return}const F=()=>{s(_),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(g.shapeFlag&1&&U&&!U.persisted){const{leave:B,delayLeave:W}=U,h=()=>B(_,F);W?W(g.el,F,h):h()}else F()},De=(g,b)=>{let _;for(;g!==b;)_=d(g),s(g),g=_;s(b)},ct=(g,b,_)=>{const{bum:P,scope:U,job:F,subTree:B,um:W,m:h,a:p}=g;$i(h),$i(p),P&&es(P),U.stop(),F&&(F.flags|=8,ge(B,g,b,_)),W&&ft(W,b),ft(()=>{g.isUnmounted=!0},b)},Me=(g,b,_,P=!1,U=!1,F=0)=>{for(let B=F;B{if(g.shapeFlag&6)return M(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const b=d(g.anchor||g.el),_=b&&b[vd];return _?d(_):b};let Y=!1;const j=(g,b,_)=>{g==null?b._vnode&&ge(b._vnode,null,null,!0):S(b._vnode||null,g,b,null,null,null,_),b._vnode=g,Y||(Y=!0,Ri(),ac(),Y=!1)},z={p:S,um:ge,m:he,r:qe,mt:ue,mc:V,pc:re,pbc:q,n:M,o:e};return{render:j,hydrate:void 0,createApp:$d(j)}}function eo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function zd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uc(e,t,n=!1){const r=e.children,s=t.children;if(Q(r)&&Q(s))for(let o=0;o>1,e[n[a]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function $c(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$c(t)}function $i(e){if(e)for(let t=0;tet(Jd);function un(e,t,n){return Vc(e,t,n)}function Vc(e,t,n=be){const{immediate:r,deep:s,flush:o,once:i}=n,a=ke({},n),l=t&&r||!t&&o!=="post";let c;if(Ar){if(o==="sync"){const m=Qd();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=xt,m.resume=xt,m.pause=xt,m}}const u=Qe;a.call=(m,y,S)=>St(m,u,y,S);let f=!1;o==="post"?a.scheduler=m=>{ft(m,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(m,y)=>{y?m():ii(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const d=_d(e,t,a);return Ar&&(c?c.push(d):l&&d()),d}function Zd(e,t,n){const r=this.proxy,s=Re(e)?e.includes(".")?Hc(r,e):()=>r[e]:e.bind(r,r);let o;se(t)?o=t:(o=t.handler,n=t);const i=Vr(this),a=Vc(s,o.bind(r),n);return i(),a}function Hc(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${gt(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function th(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||be;let s=n;const o=t.startsWith("update:"),i=o&&eh(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Re(u)?u.trim():u)),i.number&&(s=n.map(as)));let a,l=r[a=Ys(t)]||r[a=Ys(gt(t))];!l&&o&&(l=r[a=Ys(gn(t))]),l&&St(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,St(c,e,6,s)}}const nh=new WeakMap;function Wc(e,t,n=!1){const r=n?nh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!se(e)){const l=c=>{const u=Wc(c,t,!0);u&&(a=!0,ke(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ye(e)&&r.set(e,null),null):(Q(o)?o.forEach(l=>i[l]=null):ke(i,o),ye(e)&&r.set(e,i),i)}function Ns(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,gn(t))||me(e,t))}function Vi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:m,ctx:y,inheritAttrs:S}=e,w=ds(e);let R,D;try{if(n.shapeFlag&4){const v=s||r,O=v;R=Rt(c.call(O,v,u,f,m,d,y)),D=a}else{const v=t;R=Rt(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),D=t.props?a:rh(a)}}catch(v){gr.length=0,Ps(v,e,1),R=Oe(Je)}let E=R;if(D&&S!==!1){const v=Object.keys(D),{shapeFlag:O}=E;v.length&&O&7&&(o&&v.some(Go)&&(D=sh(D,o)),E=hn(E,D,!1,!0))}return n.dirs&&(E=hn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&kn(E,n.transition),R=E,ds(w),R}const rh=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},sh=(e,t)=>{const n={};for(const r in e)(!Go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oh(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Hi(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function ah(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Ed(e)}const Ue=Symbol.for("v-fgt"),$r=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),to=Symbol.for("v-stc"),gr=[];let dt=null;function Ke(e=!1){gr.push(dt=e?null:[])}function lh(){gr.pop(),dt=gr[gr.length-1]||null}let Lr=1;function ms(e,t=!1){Lr+=e,e<0&&dt&&t&&(dt.hasOnce=!0)}function jc(e){return e.dynamicChildren=Lr>0?dt||Wn:null,lh(),Lr>0&&dt&&dt.push(e),e}function jt(e,t,n,r,s,o){return jc(We(e,t,n,r,s,o,!0))}function dn(e,t,n,r,s){return jc(Oe(e,t,n,r,s,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function An(e,t){return e.type===t.type&&e.key===t.key}const Kc=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Re(e)||Le(e)||se(e)?{i:je,r:e,k:t,f:!!n}:e:null);function We(e,t=null,n=null,r=0,s=null,o=e===Ue?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kc(t),ref:t&&ts(t),scopeId:cc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:je};return a?(ui(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Re(n)?8:16),Lr>0&&!i&&dt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&dt.push(l),l}const Oe=ch;function ch(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Sc)&&(e=Je),Pr(e)){const a=hn(e,t,!0);return n&&ui(a,n),Lr>0&&!o&&dt&&(a.shapeFlag&6?dt[dt.indexOf(e)]=a:dt.push(a)),a.patchFlag=-2,a}if(vh(e)&&(e=e.__vccOpts),t){t=uh(t);let{class:a,style:l}=t;a&&!Re(a)&&(t.class=Nt(a)),ye(l)&&(ri(l)&&!Q(l)&&(l=ke({},l)),t.style=Cs(l))}const i=Re(e)?1:Bc(e)?128:uc(e)?64:ye(e)?4:se(e)?2:0;return We(e,t,n,r,s,i,o,!0)}function uh(e){return e?ri(e)||Ic(e)?ke({},e):e:null}function hn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?dh(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Kc(c),ref:t&&t.ref?n&&o?Q(o)?o.concat(ts(t)):[o,ts(t)]:ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hn(e.ssContent),ssFallback:e.ssFallback&&hn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&kn(u,l.clone(u)),u}function fh(e=" ",t=0){return Oe($r,null,e,t)}function Gc(e="",t=!1){return t?(Ke(),dn(Je,null,e)):Oe(Je,null,e)}function Rt(e){return e==null||typeof e=="boolean"?Oe(Je):Q(e)?Oe(Ue,null,e.slice()):Pr(e)?on(e):Oe($r,null,String(e))}function on(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hn(e)}function ui(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ui(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ic(t)?t._ctx=je:s===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:je},n=32):(t=String(t),r&64?(n=16,t=[fh(t)]):n=8);e.children=t,e.shapeFlag|=n}function dh(...e){const t={};for(let n=0;nQe||je;let gs,To;{const e=Ts(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};gs=t("__VUE_INSTANCE_SETTERS__",n=>Qe=n),To=t("__VUE_SSR_SETTERS__",n=>Ar=n)}const Vr=e=>{const t=Qe;return gs(e),e.scope.on(),()=>{e.scope.off(),gs(t)}},Wi=()=>{Qe&&Qe.scope.off(),gs(null)};function Yc(e){return e.vnode.shapeFlag&4}let Ar=!1;function gh(e,t=!1,n=!1){t&&To(t);const{props:r,children:s}=e.vnode,o=Yc(e);Hd(e,r,o,t),Kd(e,s,n||t);const i=o?_h(e,t):void 0;return t&&To(!1),i}function _h(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Id);const{setup:r}=n;if(r){Yt();const s=e.setupContext=r.length>1?bh(e):null,o=Vr(e),i=Ur(r,e,0,[e.props,s]),a=Nl(i);if(qt(),o(),(a||e.sp)&&!Kn(e)&&gc(e),a){if(i.then(Wi,Wi),t)return i.then(l=>{Bi(e,l)}).catch(l=>{Ps(l,e,0)});e.asyncDep=i}else Bi(e,i)}else qc(e)}function Bi(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=rc(t)),qc(e)}function qc(e,t,n){const r=e.type;e.render||(e.render=r.render||xt);{const s=Vr(e);Yt();try{xd(e)}finally{qt(),s()}}}const yh={get(e,t){return Xe(e,"get",""),e[t]}};function bh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,yh),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(rc(si(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mr)return mr[n](e)},has(t,n){return n in t||n in mr}})):e.proxy}function Eh(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function vh(e){return se(e)&&"__vccOpts"in e}const Ee=(e,t)=>md(e,t,Ar);function pn(e,t,n){const r=(o,i,a)=>{ms(-1);try{return Oe(o,i,a)}finally{ms(1)}},s=arguments.length;return s===2?ye(t)&&!Q(t)?Pr(t)?r(e,null,[t]):r(e,t):r(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pr(n)&&(n=[n]),r(e,t,n))}const Sh="3.5.21";let Co;const ji=typeof window<"u"&&window.trustedTypes;if(ji)try{Co=ji.createPolicy("vue",{createHTML:e=>e})}catch{}const zc=Co?e=>Co.createHTML(e):e=>e,wh="http://www.w3.org/2000/svg",Th="http://www.w3.org/1998/Math/MathML",$t=typeof document<"u"?document:null,Ki=$t&&$t.createElement("template"),Ch={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?$t.createElementNS(wh,e):t==="mathml"?$t.createElementNS(Th,e):n?$t.createElement(e,{is:n}):$t.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ki.innerHTML=zc(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ki.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Zt="transition",ir="animation",Gn=Symbol("_vtc"),Xc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Jc=ke({},dc,Xc),Lh=e=>(e.displayName="Transition",e.props=Jc,e),Qc=Lh((e,{slots:t})=>pn(wd,Zc(e),t)),wn=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function Zc(e){const t={};for(const $ in e)$ in Xc||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,y=Ph(s),S=y&&y[0],w=y&&y[1],{onBeforeEnter:R,onEnter:D,onEnterCancelled:E,onLeave:v,onLeaveCancelled:O,onBeforeAppear:N=R,onAppear:x=D,onAppearCancelled:V=E}=t,L=($,X,ue,Pe)=>{$._enterCancelled=Pe,nn($,X?u:a),nn($,X?c:i),ue&&ue()},q=($,X)=>{$._isLeaving=!1,nn($,f),nn($,m),nn($,d),X&&X()},Z=$=>(X,ue)=>{const Pe=$?x:D,te=()=>L(X,$,ue);wn(Pe,[X,te]),Yi(()=>{nn(X,$?l:o),At(X,$?u:a),Gi(Pe)||qi(X,r,S,te)})};return ke(t,{onBeforeEnter($){wn(R,[$]),At($,o),At($,i)},onBeforeAppear($){wn(N,[$]),At($,l),At($,c)},onEnter:Z(!1),onAppear:Z(!0),onLeave($,X){$._isLeaving=!0;const ue=()=>q($,X);At($,f),$._enterCancelled?(At($,d),Lo()):(Lo(),At($,d)),Yi(()=>{$._isLeaving&&(nn($,f),At($,m),Gi(v)||qi($,r,w,ue))}),wn(v,[$,ue])},onEnterCancelled($){L($,!1,void 0,!0),wn(E,[$])},onAppearCancelled($){L($,!0,void 0,!0),wn(V,[$])},onLeaveCancelled($){q($),wn(O,[$])}})}function Ph(e){if(e==null)return null;if(ye(e))return[no(e.enter),no(e.leave)];{const t=no(e);return[t,t]}}function no(e){return kf(e)}function At(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Gn]||(e[Gn]=new Set)).add(t)}function nn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Gn];n&&(n.delete(t),n.size||(e[Gn]=void 0))}function Yi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ah=0;function qi(e,t,n,r){const s=e._endId=++Ah,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=eu(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),o()},d=m=>{m.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[y]||"").split(", "),s=r(`${Zt}Delay`),o=r(`${Zt}Duration`),i=zi(s,o),a=r(`${ir}Delay`),l=r(`${ir}Duration`),c=zi(a,l);let u=null,f=0,d=0;t===Zt?i>0&&(u=Zt,f=i,d=o.length):t===ir?c>0&&(u=ir,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?Zt:ir:null,d=u?u===Zt?o.length:l.length:0);const m=u===Zt&&/\b(?:transform|all)(?:,|$)/.test(r(`${Zt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:m}}function zi(e,t){for(;e.lengthXi(n)+Xi(e[r])))}function Xi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Lo(){return document.body.offsetHeight}function Oh(e,t,n){const r=e[Gn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ji=Symbol("_vod"),Rh=Symbol("_vsh"),Nh=Symbol(""),Ih=/(?:^|;)\s*display\s*:/;function xh(e,t,n){const r=e.style,s=Re(n);let o=!1;if(n&&!s){if(t)if(Re(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ns(r,a,"")}else for(const i in t)n[i]==null&&ns(r,i,"");for(const i in n)i==="display"&&(o=!0),ns(r,i,n[i])}else if(s){if(t!==n){const i=r[Nh];i&&(n+=";"+i),r.cssText=n,o=Ih.test(n)}}else t&&e.removeAttribute("style");Ji in e&&(e[Ji]=o?r.display:"",e[Rh]&&(r.display="none"))}const Qi=/\s*!important$/;function ns(e,t,n){if(Q(n))n.forEach(r=>ns(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kh(e,t);Qi.test(n)?e.setProperty(gn(r),n.replace(Qi,""),"important"):e[r]=n}}const Zi=["Webkit","Moz","ms"],ro={};function kh(e,t){const n=ro[t];if(n)return n;let r=gt(t);if(r!=="filter"&&r in e)return ro[t]=r;r=ws(r);for(let s=0;sso||(Uh.then(()=>so=0),so=Date.now());function Vh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;St(Hh(r,n.value),t,5,[r])};return n.value=e,n.attached=$h(),n}function Hh(e,t){if(Q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const oa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wh=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Oh(e,r,i):t==="style"?xh(e,n,r):vs(t)?Go(t)||Dh(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Bh(e,t,r,i))?(na(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ta(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Re(r))?na(e,gt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ta(e,t,r,i))};function Bh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&oa(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return oa(t)&&Re(n)?!1:t in e}const tu=new WeakMap,nu=new WeakMap,_s=Symbol("_moveCb"),ia=Symbol("_enterCb"),jh=e=>(delete e.props.mode,e),Kh=jh({name:"TransitionGroup",props:ke({},Jc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=zt(),r=fc();let s,o;return bc(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Xh(s[0].el,n.vnode.el,i)){s=[];return}s.forEach(Yh),s.forEach(qh);const a=s.filter(zh);Lo(),a.forEach(l=>{const c=l.el,u=c.style;At(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[_s]=d=>{d&&d.target!==c||(!d||d.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[_s]=null,nn(c,i))};c.addEventListener("transitionend",f)}),s=[]}),()=>{const i=ce(e),a=Zc(i);let l=i.tag||Ue;if(s=[],o)for(let c=0;c{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=eu(r);return o.removeChild(r),i}const Yn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>es(t,n):t};function Jh(e){e.target.composing=!0}function aa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Gt=Symbol("_assign"),Jb={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Gt]=Yn(s);const o=r||s.props&&s.props.type==="number";ln(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=as(a)),e[Gt](a)}),n&&ln(e,"change",()=>{e.value=e.value.trim()}),t||(ln(e,"compositionstart",Jh),ln(e,"compositionend",aa),ln(e,"change",aa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[Gt]=Yn(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?as(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Qb={deep:!0,created(e,t,n){e[Gt]=Yn(n),ln(e,"change",()=>{const r=e._modelValue,s=Or(e),o=e.checked,i=e[Gt];if(Q(r)){const a=zo(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const c=[...r];c.splice(a,1),i(c)}}else if(Zn(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(ru(e,o))})},mounted:la,beforeUpdate(e,t,n){e[Gt]=Yn(n),la(e,t,n)}};function la(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(Q(t))s=zo(t,r.props.value)>-1;else if(Zn(t))s=t.has(r.props.value);else{if(t===n)return;s=Dr(t,ru(e,!0))}e.checked!==s&&(e.checked=s)}const Zb={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Zn(t);ln(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?as(Or(i)):Or(i));e[Gt](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,As(()=>{e._assigning=!1})}),e[Gt]=Yn(r)},mounted(e,{value:t}){ca(e,t)},beforeUpdate(e,t,n){e[Gt]=Yn(n)},updated(e,{value:t}){e._assigning||ca(e,t)}};function ca(e,t){const n=e.multiple,r=Q(t);if(!(n&&!r&&!Zn(t))){for(let s=0,o=e.options.length;sString(c)===String(a)):i.selected=zo(t,a)>-1}else i.selected=t.has(a);else if(Dr(Or(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Or(e){return"_value"in e?e._value:e.value}function ru(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Qh=["ctrl","shift","alt","meta"],Zh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Qh.some(n=>e[`${n}Key`]&&!t.includes(n))},eE=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=gn(s.key);if(t.some(i=>i===o||ep[i]===o))return e(s)}))},tp=ke({patchProp:Wh},Ch);let ua;function np(){return ua||(ua=Yd(tp))}const rp=((...e)=>{const t=np().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=op(r);if(!s)return;const o=t._component;!se(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,sp(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function sp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function op(e){return Re(e)?document.querySelector(e):e}let su;const xs=e=>su=e,ou=Symbol();function Po(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var _r;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(_r||(_r={}));function ip(){const e=Xo(!0),t=e.run(()=>it({}));let n=[],r=[];const s=si({install(o){xs(s),s._a=o,o.provide(ou,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const iu=()=>{};function fa(e,t,n,r=iu){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&$l()&&Wf(s),s}function Mn(e,...t){e.slice().forEach(n=>{n(...t)})}const ap=e=>e(),da=Symbol(),oo=Symbol();function Ao(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Po(s)&&Po(r)&&e.hasOwnProperty(n)&&!Le(r)&&!Kt(r)?e[n]=Ao(s,r):e[n]=r}return e}const lp=Symbol();function cp(e){return!Po(e)||!Object.prototype.hasOwnProperty.call(e,lp)}const{assign:rn}=Object;function up(e){return!!(Le(e)&&e.effect)}function fp(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=ud(n.state.value[e]);return rn(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=si(Ee(()=>{xs(n);const m=n._s.get(e);return i[d].call(m,m)})),f),{}))}return l=au(e,c,t,n,r,!0),l}function au(e,t,n={},r,s,o){let i;const a=rn({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],m;const y=r.state.value[e];!o&&!y&&(r.state.value[e]={}),it({});let S;function w(V){let L;c=u=!1,typeof V=="function"?(V(r.state.value[e]),L={type:_r.patchFunction,storeId:e,events:m}):(Ao(r.state.value[e],V),L={type:_r.patchObject,payload:V,storeId:e,events:m});const q=S=Symbol();As().then(()=>{S===q&&(c=!0)}),u=!0,Mn(f,L,r.state.value[e])}const R=o?function(){const{state:L}=n,q=L?L():{};this.$patch(Z=>{rn(Z,q)})}:iu;function D(){i.stop(),f=[],d=[],r._s.delete(e)}const E=(V,L="")=>{if(da in V)return V[oo]=L,V;const q=function(){xs(r);const Z=Array.from(arguments),$=[],X=[];function ue(ee){$.push(ee)}function Pe(ee){X.push(ee)}Mn(d,{args:Z,name:q[oo],store:O,after:ue,onError:Pe});let te;try{te=V.apply(this&&this.$id===e?this:O,Z)}catch(ee){throw Mn(X,ee),ee}return te instanceof Promise?te.then(ee=>(Mn($,ee),ee)).catch(ee=>(Mn(X,ee),Promise.reject(ee))):(Mn($,te),te)};return q[da]=!0,q[oo]=L,q},v={_p:r,$id:e,$onAction:fa.bind(null,d),$patch:w,$reset:R,$subscribe(V,L={}){const q=fa(f,V,L.detached,()=>Z()),Z=i.run(()=>un(()=>r.state.value[e],$=>{(L.flush==="sync"?u:c)&&V({storeId:e,type:_r.direct,events:m},$)},rn({},l,L)));return q},$dispose:D},O=Mr(v);r._s.set(e,O);const x=(r._a&&r._a.runWithContext||ap)(()=>r._e.run(()=>(i=Xo()).run(()=>t({action:E}))));for(const V in x){const L=x[V];if(Le(L)&&!up(L)||Kt(L))o||(y&&cp(L)&&(Le(L)?L.value=y[V]:Ao(L,y[V])),r.state.value[e][V]=L);else if(typeof L=="function"){const q=E(L,V);x[V]=q,a.actions[V]=L}}return rn(O,x),rn(ce(O),x),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:V=>{w(L=>{rn(L,V)})}}),r._p.forEach(V=>{rn(O,i.run(()=>V({store:O,app:r._a,pinia:r,options:a})))}),y&&o&&n.hydrate&&n.hydrate(O.$state,y),c=!0,u=!0,O}function dp(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function o(i,a){const l=Vd();return i=i||(l?et(ou,null):null),i&&xs(i),i=su,i._s.has(e)||(s?au(e,t,r,i):fp(e,r,i)),i._s.get(e)}return o.$id=e,o}function hp(e){const t=ce(e),n={};for(const r in t){const s=t[r];s.effect?n[r]=Ee({get:()=>e[r],set(o){e[r]=o}}):(Le(s)||Kt(s))&&(n[r]=hd(e,r))}return n}const $n=typeof document<"u";function lu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&lu(e.default)}const pe=Object.assign;function io(e,t){const n={};for(const r in t){const s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}const yr=()=>{},wt=Array.isArray,cu=/#/g,mp=/&/g,gp=/\//g,_p=/=/g,yp=/\?/g,uu=/\+/g,bp=/%5B/g,Ep=/%5D/g,fu=/%5E/g,vp=/%60/g,du=/%7B/g,Sp=/%7C/g,hu=/%7D/g,wp=/%20/g;function fi(e){return encodeURI(""+e).replace(Sp,"|").replace(bp,"[").replace(Ep,"]")}function Tp(e){return fi(e).replace(du,"{").replace(hu,"}").replace(fu,"^")}function Oo(e){return fi(e).replace(uu,"%2B").replace(wp,"+").replace(cu,"%23").replace(mp,"%26").replace(vp,"`").replace(du,"{").replace(hu,"}").replace(fu,"^")}function Cp(e){return Oo(e).replace(_p,"%3D")}function Lp(e){return fi(e).replace(cu,"%23").replace(yp,"%3F")}function Pp(e){return e==null?"":Lp(e).replace(gp,"%2F")}function Rr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ap=/\/$/,Op=e=>e.replace(Ap,"");function ao(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=xp(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Rr(i)}}function Rp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ha(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Np(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&qn(t.matched[r],n.matched[s])&&pu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ip(e[n],t[n]))return!1;return!0}function Ip(e,t){return wt(e)?pa(e,t):wt(t)?pa(t,e):e===t}function pa(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const en={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Nr;(function(e){e.pop="pop",e.push="push"})(Nr||(Nr={}));var br;(function(e){e.back="back",e.forward="forward",e.unknown=""})(br||(br={}));function kp(e){if(!e)if($n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Op(e)}const Fp=/^[^#]+#/;function Dp(e,t){return e.replace(Fp,"#")+t}function Mp(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ks=()=>({left:window.scrollX,top:window.scrollY});function Up(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Mp(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ma(e,t){return(history.state?history.state.position-t:-1)+e}const Ro=new Map;function $p(e,t){Ro.set(e,t)}function Vp(e){const t=Ro.get(e);return Ro.delete(e),t}let Hp=()=>location.protocol+"//"+location.host;function mu(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),ha(l,"")}return ha(n,e)+r+s}function Wp(e,t,n,r){let s=[],o=[],i=null;const a=({state:d})=>{const m=mu(e,location),y=n.value,S=t.value;let w=0;if(d){if(n.value=m,t.value=d,i&&i===y){i=null;return}w=S?d.position-S.position:0}else r(m);s.forEach(R=>{R(n.value,y,{delta:w,type:Nr.pop,direction:w?w>0?br.forward:br.back:br.unknown})})};function l(){i=n.value}function c(d){s.push(d);const m=()=>{const y=s.indexOf(d);y>-1&&s.splice(y,1)};return o.push(m),m}function u(){const{history:d}=window;d.state&&d.replaceState(pe({},d.state,{scroll:ks()}),"")}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function ga(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ks():null}}function Bp(e){const{history:t,location:n}=window,r={value:mu(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Hp()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(m){console.error(m),n[u?"replace":"assign"](d)}}function i(l,c){const u=pe({},t.state,ga(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});o(l,u,!0),r.value=l}function a(l,c){const u=pe({},s.value,t.state,{forward:l,scroll:ks()});o(u.current,u,!0);const f=pe({},ga(r.value,l,null),{position:u.position+1},c);o(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function jp(e){e=kp(e);const t=Bp(e),n=Wp(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=pe({location:"",base:e,go:r,createHref:Dp.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Kp(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),jp(e)}function Gp(e){return typeof e=="string"||e&&typeof e=="object"}function gu(e){return typeof e=="string"||typeof e=="symbol"}const _u=Symbol("");var _a;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_a||(_a={}));function zn(e,t){return pe(new Error,{type:e,[_u]:!0},t)}function Dt(e,t){return e instanceof Error&&_u in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Yp={sensitive:!1,strict:!1,start:!0,end:!0},qp=/[.+*?^${}()[\]/\\]/g;function zp(e,t){const n=pe({},Yp,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function yu(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Jp={type:0,value:""},Qp=/[a-zA-Z0-9_]/;function Zp(e){if(!e)return[[]];if(e==="/")return[[Jp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,c="",u="";function f(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(E)}:yr}function i(f){if(gu(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=sm(f,n);n.splice(d,0,f),f.record.name&&!Sa(f)&&r.set(f.record.name,f)}function c(f,d){let m,y={},S,w;if("name"in f&&f.name){if(m=r.get(f.name),!m)throw zn(1,{location:f});w=m.record.name,y=pe(Ea(d.params,m.keys.filter(E=>!E.optional).concat(m.parent?m.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&Ea(f.params,m.keys.map(E=>E.name))),S=m.stringify(y)}else if(f.path!=null)S=f.path,m=n.find(E=>E.re.test(S)),m&&(y=m.parse(S),w=m.record.name);else{if(m=d.name?r.get(d.name):n.find(E=>E.re.test(d.path)),!m)throw zn(1,{location:f,currentLocation:d});w=m.record.name,y=pe({},d.params,f.params),S=m.stringify(y)}const R=[];let D=m;for(;D;)R.unshift(D.record),D=D.parent;return{name:w,path:S,params:y,matched:R,meta:rm(R)}}e.forEach(f=>o(f));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Ea(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function va(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:nm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function nm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Sa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rm(e){return e.reduce((t,n)=>pe(t,n.meta),{})}function wa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function sm(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;yu(e,t[o])<0?r=o:n=o+1}const s=om(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function om(e){let t=e;for(;t=t.parent;)if(bu(t)&&yu(e,t)===0)return t}function bu({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function im(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Oo(o)):[r&&Oo(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function am(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const lm=Symbol(""),Ca=Symbol(""),Fs=Symbol(""),di=Symbol(""),No=Symbol("");function ar(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function an(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(zn(4,{from:n,to:t})):d instanceof Error?l(d):Gp(d)?l(zn(2,{from:t,to:d})):(i&&r.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),a())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function lo(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(lu(l)){const u=(l.__vccOpts||l)[t];u&&o.push(an(u,n,r,i,a,s))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=pp(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const m=(f.__vccOpts||f)[t];return m&&an(m,n,r,i,a,s)()}))}}return o}function La(e){const t=et(Fs),n=et(di),r=Ee(()=>{const l=Te(e.to);return t.resolve(l)}),s=Ee(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(qn.bind(null,u));if(d>-1)return d;const m=Pa(l[c-2]);return c>1&&Pa(u)===m&&f[f.length-1].path!==m?f.findIndex(qn.bind(null,l[c-2])):d}),o=Ee(()=>s.value>-1&&hm(n.params,r.value.params)),i=Ee(()=>s.value>-1&&s.value===n.matched.length-1&&pu(n.params,r.value.params));function a(l={}){if(dm(l)){const c=t[Te(e.replace)?"replace":"push"](Te(e.to)).catch(yr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Ee(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}function cm(e){return e.length===1?e[0]:e}const um=Xt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:La,setup(e,{slots:t}){const n=Mr(La(e)),{options:r}=et(Fs),s=Ee(()=>({[Aa(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Aa(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&cm(t.default(n));return e.custom?o:pn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),fm=um;function dm(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function hm(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!wt(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Aa=(e,t,n)=>e??t??n,pm=Xt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=et(No),s=Ee(()=>e.route||r.value),o=et(Ca,0),i=Ee(()=>{let c=Te(o);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Ee(()=>s.value.matched[i.value]);In(Ca,Ee(()=>i.value+1)),In(lm,a),In(No,s);const l=it();return un(()=>[l.value,a.value,e.name],([c,u,f],[d,m,y])=>{u&&(u.instances[f]=c,m&&m!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!qn(u,m)||!d)&&(u.enterCallbacks[f]||[]).forEach(S=>S(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Oa(n.default,{Component:d,route:c});const m=f.props[u],y=m?m===!0?c.params:typeof m=="function"?m(c):m:null,w=pn(d,pe({},y,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Oa(n.default,{Component:w,route:c})||w}}});function Oa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Eu=pm;function mm(e){const t=tm(e.routes,e),n=e.parseQuery||im,r=e.stringifyQuery||Ta,s=e.history,o=ar(),i=ar(),a=ar(),l=oi(en);let c=en;$n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=io.bind(null,M=>""+M),f=io.bind(null,Pp),d=io.bind(null,Rr);function m(M,Y){let j,z;return gu(M)?(j=t.getRecordMatcher(M),z=Y):z=M,t.addRoute(z,j)}function y(M){const Y=t.getRecordMatcher(M);Y&&t.removeRoute(Y)}function S(){return t.getRoutes().map(M=>M.record)}function w(M){return!!t.getRecordMatcher(M)}function R(M,Y){if(Y=pe({},Y||l.value),typeof M=="string"){const _=ao(n,M,Y.path),P=t.resolve({path:_.path},Y),U=s.createHref(_.fullPath);return pe(_,P,{params:d(P.params),hash:Rr(_.hash),redirectedFrom:void 0,href:U})}let j;if(M.path!=null)j=pe({},M,{path:ao(n,M.path,Y.path).path});else{const _=pe({},M.params);for(const P in _)_[P]==null&&delete _[P];j=pe({},M,{params:f(_)}),Y.params=f(Y.params)}const z=t.resolve(j,Y),fe=M.hash||"";z.params=u(d(z.params));const g=Rp(r,pe({},M,{hash:Tp(fe),path:z.path})),b=s.createHref(g);return pe({fullPath:g,hash:fe,query:r===Ta?am(M.query):M.query||{}},z,{redirectedFrom:void 0,href:b})}function D(M){return typeof M=="string"?ao(n,M,l.value.path):pe({},M)}function E(M,Y){if(c!==M)return zn(8,{from:Y,to:M})}function v(M){return x(M)}function O(M){return v(pe(D(M),{replace:!0}))}function N(M){const Y=M.matched[M.matched.length-1];if(Y&&Y.redirect){const{redirect:j}=Y;let z=typeof j=="function"?j(M):j;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=D(z):{path:z},z.params={}),pe({query:M.query,hash:M.hash,params:z.path!=null?{}:M.params},z)}}function x(M,Y){const j=c=R(M),z=l.value,fe=M.state,g=M.force,b=M.replace===!0,_=N(j);if(_)return x(pe(D(_),{state:typeof _=="object"?pe({},fe,_.state):fe,force:g,replace:b}),Y||j);const P=j;P.redirectedFrom=Y;let U;return!g&&Np(r,z,j)&&(U=zn(16,{to:P,from:z}),he(z,z,!0,!1)),(U?Promise.resolve(U):q(P,z)).catch(F=>Dt(F)?Dt(F,2)?F:Ye(F):re(F,P,z)).then(F=>{if(F){if(Dt(F,2))return x(pe({replace:b},D(F.to),{state:typeof F.to=="object"?pe({},fe,F.to.state):fe,force:g}),Y||P)}else F=$(P,z,!0,b,fe);return Z(P,z,F),F})}function V(M,Y){const j=E(M,Y);return j?Promise.reject(j):Promise.resolve()}function L(M){const Y=De.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(M):M()}function q(M,Y){let j;const[z,fe,g]=gm(M,Y);j=lo(z.reverse(),"beforeRouteLeave",M,Y);for(const _ of z)_.leaveGuards.forEach(P=>{j.push(an(P,M,Y))});const b=V.bind(null,M,Y);return j.push(b),Me(j).then(()=>{j=[];for(const _ of o.list())j.push(an(_,M,Y));return j.push(b),Me(j)}).then(()=>{j=lo(fe,"beforeRouteUpdate",M,Y);for(const _ of fe)_.updateGuards.forEach(P=>{j.push(an(P,M,Y))});return j.push(b),Me(j)}).then(()=>{j=[];for(const _ of g)if(_.beforeEnter)if(wt(_.beforeEnter))for(const P of _.beforeEnter)j.push(an(P,M,Y));else j.push(an(_.beforeEnter,M,Y));return j.push(b),Me(j)}).then(()=>(M.matched.forEach(_=>_.enterCallbacks={}),j=lo(g,"beforeRouteEnter",M,Y,L),j.push(b),Me(j))).then(()=>{j=[];for(const _ of i.list())j.push(an(_,M,Y));return j.push(b),Me(j)}).catch(_=>Dt(_,8)?_:Promise.reject(_))}function Z(M,Y,j){a.list().forEach(z=>L(()=>z(M,Y,j)))}function $(M,Y,j,z,fe){const g=E(M,Y);if(g)return g;const b=Y===en,_=$n?history.state:{};j&&(z||b?s.replace(M.fullPath,pe({scroll:b&&_&&_.scroll},fe)):s.push(M.fullPath,fe)),l.value=M,he(M,Y,j,b),Ye()}let X;function ue(){X||(X=s.listen((M,Y,j)=>{if(!ct.listening)return;const z=R(M),fe=N(z);if(fe){x(pe(fe,{replace:!0,force:!0}),z).catch(yr);return}c=z;const g=l.value;$n&&$p(ma(g.fullPath,j.delta),ks()),q(z,g).catch(b=>Dt(b,12)?b:Dt(b,2)?(x(pe(D(b.to),{force:!0}),z).then(_=>{Dt(_,20)&&!j.delta&&j.type===Nr.pop&&s.go(-1,!1)}).catch(yr),Promise.reject()):(j.delta&&s.go(-j.delta,!1),re(b,z,g))).then(b=>{b=b||$(z,g,!1),b&&(j.delta&&!Dt(b,8)?s.go(-j.delta,!1):j.type===Nr.pop&&Dt(b,20)&&s.go(-1,!1)),Z(z,g,b)}).catch(yr)}))}let Pe=ar(),te=ar(),ee;function re(M,Y,j){Ye(M);const z=te.list();return z.length?z.forEach(fe=>fe(M,Y,j)):console.error(M),Promise.reject(M)}function Fe(){return ee&&l.value!==en?Promise.resolve():new Promise((M,Y)=>{Pe.add([M,Y])})}function Ye(M){return ee||(ee=!M,ue(),Pe.list().forEach(([Y,j])=>M?j(M):Y()),Pe.reset()),M}function he(M,Y,j,z){const{scrollBehavior:fe}=e;if(!$n||!fe)return Promise.resolve();const g=!j&&Vp(ma(M.fullPath,0))||(z||!j)&&history.state&&history.state.scroll||null;return As().then(()=>fe(M,Y,g)).then(b=>b&&Up(b)).catch(b=>re(b,M,Y))}const ge=M=>s.go(M);let qe;const De=new Set,ct={currentRoute:l,listening:!0,addRoute:m,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:S,resolve:R,options:e,push:v,replace:O,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:te.add,isReady:Fe,install(M){const Y=this;M.component("RouterLink",fm),M.component("RouterView",Eu),M.config.globalProperties.$router=Y,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>Te(l)}),$n&&!qe&&l.value===en&&(qe=!0,v(s.location).catch(fe=>{}));const j={};for(const fe in en)Object.defineProperty(j,fe,{get:()=>l.value[fe],enumerable:!0});M.provide(Fs,Y),M.provide(di,ec(j)),M.provide(No,l);const z=M.unmount;De.add(M),M.unmount=function(){De.delete(M),De.size<1&&(c=en,X&&X(),X=null,l.value=en,qe=!1,ee=!1),z()}}};function Me(M){return M.reduce((Y,j)=>Y.then(()=>L(j)),Promise.resolve())}return ct}function gm(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iqn(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>qn(c,l))||s.push(l))}return[n,r,s]}function _m(){return et(Fs)}function ym(e){return et(di)}const Ra=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Em=e=>{const t=bm(e);return t.charAt(0).toUpperCase()+t.slice(1)},vm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();var Xr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Sm=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:s,name:o,class:i,...a},{slots:l})=>pn("svg",{...Xr,width:e||Xr.width,height:e||Xr.height,stroke:r||Xr.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:vm("lucide",...o?[`lucide-${Ra(Em(o))}-icon`,`lucide-${Ra(o)}`]:["lucide-icon"]),...a},[...s.map(c=>pn(...c)),...l.default?[l.default()]:[]]);const Qt=(e,t)=>(n,{slots:r})=>pn(Sm,{...n,iconNode:t,name:e},r);const wm=Qt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Tm=Qt("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Cm=Qt("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const Lm=Qt("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const Pm=Qt("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const Am=Qt("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);const Om=Qt("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const Rm=Qt("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Nm=Qt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Im=Xt({__name:"ThemeToggle",setup(e){const t=et("isDarkMode"),n=et("toggleTheme"),r=()=>{n()};return(s,o)=>(Ke(),jt("button",{onClick:r,class:Nt(["p-2 rounded-full transition-all duration-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transform hover:rotate-180",Te(t)?"bg-gray-800 text-yellow-300":"bg-white text-gray-800"])},[Te(t)?(Ke(),dn(Te(Am),{key:1,class:"w-6 h-6"})):(Ke(),dn(Te(Om),{key:0,class:"w-6 h-6"}))],2))}});function xm(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ys=typeof window<"u",_n=(e,t=!1)=>t?Symbol.for(e):Symbol(e),km=(e,t,n)=>Fm({l:e,k:t,s:n}),Fm=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),Dm=e=>Su(e)==="[object Date]",mn=e=>Su(e)==="[object RegExp]",Ds=e=>oe(e)&&Object.keys(e).length===0,Ge=Object.assign,Mm=Object.create,_e=(e=null)=>Mm(e);let Na;const Bt=()=>Na||(Na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:_e());function Ia(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function xa(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Um(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,o)=>`${s}="${xa(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,o)=>`${s}='${xa(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const $m=Object.prototype.hasOwnProperty;function yt(e,t){return $m.call(e,t)}const Ce=Array.isArray,Se=e=>typeof e=="function",G=e=>typeof e=="string",ae=e=>typeof e=="boolean",de=e=>e!==null&&typeof e=="object",Vm=e=>de(e)&&Se(e.then)&&Se(e.catch),vu=Object.prototype.toString,Su=e=>vu.call(e),oe=e=>{if(!de(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Hm=e=>e==null?"":Ce(e)||oe(e)&&e.toString===vu?JSON.stringify(e,null,2):String(e);function Wm(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function Ms(e){let t=e;return()=>++t}const Jr=e=>!de(e)||Ce(e);function rs(e,t){if(Jr(e)||Jr(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(de(r[o])&&!de(s[o])&&(s[o]=Array.isArray(r[o])?[]:_e()),Jr(s[o])||Jr(r[o])?s[o]=r[o]:n.push({src:r[o],des:s[o]}))})}}function Bm(e,t,n){return{line:e,column:t,offset:n}}function bs(e,t,n){return{start:e,end:t}}const jm=/\{([0-9a-zA-Z]+)\}/g;function wu(e,...t){return t.length===1&&Km(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(jm,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Tu=Object.assign,ka=e=>typeof e=="string",Km=e=>e!==null&&typeof e=="object";function Cu(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const hi={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Gm={[hi.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Ym(e,t,...n){const r=wu(Gm[e],...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const ne={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},qm={[ne.EXPECTED_TOKEN]:"Expected token: '{0}'",[ne.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ne.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ne.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ne.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ne.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ne.EMPTY_PLACEHOLDER]:"Empty placeholder",[ne.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ne.INVALID_LINKED_FORMAT]:"Invalid linked format",[ne.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ne.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ne.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ne.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ne.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ne.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function nr(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=wu((s||qm)[e]||"",...o||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function zm(e){throw e}const Mt=" ",Xm="\r",rt=` `,Jm="\u2028",Qm="\u2029";function Zm(e){const t=e;let n=0,r=1,s=1,o=0;const i=x=>t[x]===Xm&&t[x+1]===rt,a=x=>t[x]===rt,l=x=>t[x]===Qm,c=x=>t[x]===Jm,u=x=>i(x)||a(x)||l(x)||c(x),f=()=>n,d=()=>r,m=()=>s,y=()=>o,S=x=>i(x)||l(x)||c(x)?rt:t[x],w=()=>S(n),R=()=>S(n+o);function D(){return o=0,u(n)&&(r++,s=0),i(n)&&n++,n++,s++,t[n]}function E(){return i(n+o)&&o++,o++,t[n+o]}function v(){n=0,r=1,s=1,o=0}function O(x=0){o=x}function N(){const x=n+o;for(;x!==n;)D();o=0}return{index:f,line:d,column:m,peekOffset:y,charAt:S,currentChar:w,currentPeek:R,next:D,peek:E,reset:v,resetPeek:O,skipToPeek:N}}const tn=void 0,eg=".",Fa="'",tg="tokenizer";function ng(e,t={}){const n=t.location!==!1,r=Zm(e),s=()=>r.index(),o=()=>Bm(r.line(),r.column(),r.index()),i=o(),a=s(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(h,p,C,...I){const K=c();if(p.column+=C,p.offset+=C,u){const H=n?bs(K.startLoc,p):null,T=nr(h,H,{domain:tg,args:I});u(T)}}function d(h,p,C){h.endLoc=o(),h.currentType=p;const I={type:p};return n&&(I.loc=bs(h.startLoc,h.endLoc)),C!=null&&(I.value=C),I}const m=h=>d(h,14);function y(h,p){return h.currentChar()===p?(h.next(),p):(f(ne.EXPECTED_TOKEN,o(),0,p),"")}function S(h){let p="";for(;h.currentPeek()===Mt||h.currentPeek()===rt;)p+=h.currentPeek(),h.peek();return p}function w(h){const p=S(h);return h.skipToPeek(),p}function R(h){if(h===tn)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function D(h){if(h===tn)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function E(h,p){const{currentType:C}=p;if(C!==2)return!1;S(h);const I=R(h.currentPeek());return h.resetPeek(),I}function v(h,p){const{currentType:C}=p;if(C!==2)return!1;S(h);const I=h.currentPeek()==="-"?h.peek():h.currentPeek(),K=D(I);return h.resetPeek(),K}function O(h,p){const{currentType:C}=p;if(C!==2)return!1;S(h);const I=h.currentPeek()===Fa;return h.resetPeek(),I}function N(h,p){const{currentType:C}=p;if(C!==8)return!1;S(h);const I=h.currentPeek()===".";return h.resetPeek(),I}function x(h,p){const{currentType:C}=p;if(C!==9)return!1;S(h);const I=R(h.currentPeek());return h.resetPeek(),I}function V(h,p){const{currentType:C}=p;if(!(C===8||C===12))return!1;S(h);const I=h.currentPeek()===":";return h.resetPeek(),I}function L(h,p){const{currentType:C}=p;if(C!==10)return!1;const I=()=>{const H=h.currentPeek();return H==="{"?R(h.peek()):H==="@"||H==="%"||H==="|"||H===":"||H==="."||H===Mt||!H?!1:H===rt?(h.peek(),I()):$(h,!1)},K=I();return h.resetPeek(),K}function q(h){S(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function Z(h){const p=S(h),C=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:C,hasSpace:p.length>0}}function $(h,p=!0){const C=(K=!1,H="",T=!1)=>{const k=h.currentPeek();return k==="{"?H==="%"?!1:K:k==="@"||!k?H==="%"?!0:K:k==="%"?(h.peek(),C(K,"%",!0)):k==="|"?H==="%"||T?!0:!(H===Mt||H===rt):k===Mt?(h.peek(),C(!0,Mt,T)):k===rt?(h.peek(),C(!0,rt,T)):!0},I=C();return p&&h.resetPeek(),I}function X(h,p){const C=h.currentChar();return C===tn?tn:p(C)?(h.next(),C):null}function ue(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function Pe(h){return X(h,ue)}function te(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function ee(h){return X(h,te)}function re(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function Fe(h){return X(h,re)}function Ye(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function he(h){return X(h,Ye)}function ge(h){let p="",C="";for(;p=Fe(h);)C+=p;return C}function qe(h){w(h);const p=h.currentChar();return p!=="%"&&f(ne.EXPECTED_TOKEN,o(),0,p),h.next(),"%"}function De(h){let p="";for(;;){const C=h.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C==="%")if($(h))p+=C,h.next();else break;else if(C===Mt||C===rt)if($(h))p+=C,h.next();else{if(q(h))break;p+=C,h.next()}else p+=C,h.next()}return p}function ct(h){w(h);let p="",C="";for(;p=ee(h);)C+=p;return h.currentChar()===tn&&f(ne.UNTERMINATED_CLOSING_BRACE,o(),0),C}function Me(h){w(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${ge(h)}`):p+=ge(h),h.currentChar()===tn&&f(ne.UNTERMINATED_CLOSING_BRACE,o(),0),p}function M(h){return h!==Fa&&h!==rt}function Y(h){w(h),y(h,"'");let p="",C="";for(;p=X(h,M);)p==="\\"?C+=j(h):C+=p;const I=h.currentChar();return I===rt||I===tn?(f(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),I===rt&&(h.next(),y(h,"'")),C):(y(h,"'"),C)}function j(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return z(h,p,4);case"U":return z(h,p,6);default:return f(ne.UNKNOWN_ESCAPE_SEQUENCE,o(),0,p),""}}function z(h,p,C){y(h,p);let I="";for(let K=0;K{const I=h.currentChar();return I==="{"||I==="%"||I==="@"||I==="|"||I==="("||I===")"||!I||I===Mt?C:(C+=I,h.next(),p(C))};return p("")}function P(h){w(h);const p=y(h,"|");return w(h),p}function U(h,p){let C=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(ne.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),h.next(),C=d(p,2,"{"),w(h),p.braceNest++,C;case"}":return p.braceNest>0&&p.currentType===2&&f(ne.EMPTY_PLACEHOLDER,o(),0),h.next(),C=d(p,3,"}"),p.braceNest--,p.braceNest>0&&w(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),C;case"@":return p.braceNest>0&&f(ne.UNTERMINATED_CLOSING_BRACE,o(),0),C=F(h,p)||m(p),p.braceNest=0,C;default:{let K=!0,H=!0,T=!0;if(q(h))return p.braceNest>0&&f(ne.UNTERMINATED_CLOSING_BRACE,o(),0),C=d(p,1,P(h)),p.braceNest=0,p.inLinked=!1,C;if(p.braceNest>0&&(p.currentType===5||p.currentType===6||p.currentType===7))return f(ne.UNTERMINATED_CLOSING_BRACE,o(),0),p.braceNest=0,B(h,p);if(K=E(h,p))return C=d(p,5,ct(h)),w(h),C;if(H=v(h,p))return C=d(p,6,Me(h)),w(h),C;if(T=O(h,p))return C=d(p,7,Y(h)),w(h),C;if(!K&&!H&&!T)return C=d(p,13,g(h)),f(ne.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,C.value),w(h),C;break}}return C}function F(h,p){const{currentType:C}=p;let I=null;const K=h.currentChar();switch((C===8||C===9||C===12||C===10)&&(K===rt||K===Mt)&&f(ne.INVALID_LINKED_FORMAT,o(),0),K){case"@":return h.next(),I=d(p,8,"@"),p.inLinked=!0,I;case".":return w(h),h.next(),d(p,9,".");case":":return w(h),h.next(),d(p,10,":");default:return q(h)?(I=d(p,1,P(h)),p.braceNest=0,p.inLinked=!1,I):N(h,p)||V(h,p)?(w(h),F(h,p)):x(h,p)?(w(h),d(p,12,b(h))):L(h,p)?(w(h),K==="{"?U(h,p)||I:d(p,11,_(h))):(C===8&&f(ne.INVALID_LINKED_FORMAT,o(),0),p.braceNest=0,p.inLinked=!1,B(h,p))}}function B(h,p){let C={type:14};if(p.braceNest>0)return U(h,p)||m(p);if(p.inLinked)return F(h,p)||m(p);switch(h.currentChar()){case"{":return U(h,p)||m(p);case"}":return f(ne.UNBALANCED_CLOSING_BRACE,o(),0),h.next(),d(p,3,"}");case"@":return F(h,p)||m(p);default:{if(q(h))return C=d(p,1,P(h)),p.braceNest=0,p.inLinked=!1,C;const{isModulo:K,hasSpace:H}=Z(h);if(K)return H?d(p,0,De(h)):d(p,4,qe(h));if($(h))return d(p,0,De(h));break}}return C}function W(){const{currentType:h,offset:p,startLoc:C,endLoc:I}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=C,l.lastEndLoc=I,l.offset=s(),l.startLoc=o(),r.currentChar()===tn?d(l,14):B(r,l)}return{nextToken:W,currentOffset:s,currentPosition:o,context:c}}const rg="parser",sg=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function og(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ig(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function s(E,v,O,N,...x){const V=E.currentPosition();if(V.offset+=N,V.column+=N,n){const L=t?bs(O,V):null,q=nr(v,L,{domain:rg,args:x});n(q)}}function o(E,v,O,N,...x){const V=E.currentPosition();if(V.offset+=N,V.column+=N,r){const L=t?bs(O,V):null;r(Ym(v,L,x))}}function i(E,v,O){const N={type:E};return t&&(N.start=v,N.end=v,N.loc={start:O,end:O}),N}function a(E,v,O,N){t&&(E.end=v,E.loc&&(E.loc.end=O))}function l(E,v){const O=E.context(),N=i(3,O.offset,O.startLoc);return N.value=v,a(N,E.currentOffset(),E.currentPosition()),N}function c(E,v){const O=E.context(),{lastOffset:N,lastStartLoc:x}=O,V=i(5,N,x);return V.index=parseInt(v,10),E.nextToken(),a(V,E.currentOffset(),E.currentPosition()),V}function u(E,v,O){const N=E.context(),{lastOffset:x,lastStartLoc:V}=N,L=i(4,x,V);return L.key=v,O===!0&&(L.modulo=!0),E.nextToken(),a(L,E.currentOffset(),E.currentPosition()),L}function f(E,v){const O=E.context(),{lastOffset:N,lastStartLoc:x}=O,V=i(9,N,x);return V.value=v.replace(sg,og),E.nextToken(),a(V,E.currentOffset(),E.currentPosition()),V}function d(E){const v=E.nextToken(),O=E.context(),{lastOffset:N,lastStartLoc:x}=O,V=i(8,N,x);return v.type!==12?(s(E,ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),V.value="",a(V,N,x),{nextConsumeToken:v,node:V}):(v.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,_t(v)),V.value=v.value||"",a(V,E.currentOffset(),E.currentPosition()),{node:V})}function m(E,v){const O=E.context(),N=i(7,O.offset,O.startLoc);return N.value=v,a(N,E.currentOffset(),E.currentPosition()),N}function y(E){const v=E.context(),O=i(6,v.offset,v.startLoc);let N=E.nextToken();if(N.type===9){const x=d(E);O.modifier=x.node,N=x.nextConsumeToken||E.nextToken()}switch(N.type!==10&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t(N)),N=E.nextToken(),N.type===2&&(N=E.nextToken()),N.type){case 11:N.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t(N)),O.key=m(E,N.value||"");break;case 5:N.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t(N)),O.key=u(E,N.value||"");break;case 6:N.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t(N)),O.key=c(E,N.value||"");break;case 7:N.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t(N)),O.key=f(E,N.value||"");break;default:{s(E,ne.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const x=E.context(),V=i(7,x.offset,x.startLoc);return V.value="",a(V,x.offset,x.startLoc),O.key=V,a(O,x.offset,x.startLoc),{nextConsumeToken:N,node:O}}}return a(O,E.currentOffset(),E.currentPosition()),{node:O}}function S(E){const v=E.context(),O=v.currentType===1?E.currentOffset():v.offset,N=v.currentType===1?v.endLoc:v.startLoc,x=i(2,O,N);x.items=[];let V=null,L=null;do{const $=V||E.nextToken();switch(V=null,$.type){case 0:$.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t($)),x.items.push(l(E,$.value||""));break;case 6:$.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t($)),x.items.push(c(E,$.value||""));break;case 4:L=!0;break;case 5:$.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t($)),x.items.push(u(E,$.value||"",!!L)),L&&(o(E,hi.USE_MODULO_SYNTAX,v.lastStartLoc,0,_t($)),L=null);break;case 7:$.value==null&&s(E,ne.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_t($)),x.items.push(f(E,$.value||""));break;case 8:{const X=y(E);x.items.push(X.node),V=X.nextConsumeToken||null;break}}}while(v.currentType!==14&&v.currentType!==1);const q=v.currentType===1?v.lastOffset:E.currentOffset(),Z=v.currentType===1?v.lastEndLoc:E.currentPosition();return a(x,q,Z),x}function w(E,v,O,N){const x=E.context();let V=N.items.length===0;const L=i(1,v,O);L.cases=[],L.cases.push(N);do{const q=S(E);V||(V=q.items.length===0),L.cases.push(q)}while(x.currentType!==14);return V&&s(E,ne.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(L,E.currentOffset(),E.currentPosition()),L}function R(E){const v=E.context(),{offset:O,startLoc:N}=v,x=S(E);return v.currentType===14?x:w(E,O,N,x)}function D(E){const v=ng(E,Tu({},e)),O=v.context(),N=i(0,O.offset,O.startLoc);return t&&N.loc&&(N.loc.source=E),N.body=R(v),e.onCacheKey&&(N.cacheKey=e.onCacheKey(E)),O.currentType!==14&&s(v,ne.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,E[O.offset]||""),a(N,v.currentOffset(),v.currentPosition()),N}return{parse:D}}function _t(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ag(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Da(e,t){for(let n=0;nMa(n)),e}function Ma(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function l(S,w){i.code+=S}function c(S,w=!0){const R=w?r:"";l(s?R+" ".repeat(S):R)}function u(S=!0){const w=++i.indentLevel;S&&c(w)}function f(S=!0){const w=--i.indentLevel;S&&c(w)}function d(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:d,helper:S=>`_${S}`,needIndent:()=>i.needIndent}}function hg(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Xn(e,t.key),t.modifier?(e.push(", "),Xn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function pg(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let o=0;o{const n=ka(t.mode)?t.mode:"normal",r=ka(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=dg(e,{filename:r,breakLineCode:s,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${Cu(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Xn(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function yg(e,t={}){const n=Tu({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,a=ig(n).parse(e);return r?(o&&cg(a),s&&Vn(a),{ast:a,code:""}):(lg(a,n),_g(a,n))}function bg(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Bt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Bt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Bt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function kt(e){return de(e)&&mi(e)===0&&(yt(e,"b")||yt(e,"body"))}const Lu=["b","body"];function Eg(e){return yn(e,Lu)}const Pu=["c","cases"];function vg(e){return yn(e,Pu,[])}const Au=["s","static"];function Sg(e){return yn(e,Au)}const Ou=["i","items"];function wg(e){return yn(e,Ou,[])}const Ru=["t","type"];function mi(e){return yn(e,Ru)}const Nu=["v","value"];function Qr(e,t){const n=yn(e,Nu);if(n!=null)return n;throw Ir(t)}const Iu=["m","modifier"];function Tg(e){return yn(e,Iu)}const xu=["k","key"];function Cg(e){const t=yn(e,xu);if(t)return t;throw Ir(6)}function yn(e,t,n){for(let r=0;r{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,i===void 0||(i=Rg(i),i===!1))return!1;d[1]()}};function m(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&m())){if(l=Og(o),f=bn[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=o,u()===!1))))return;if(r===7)return t}}const Ua=new Map;function Ig(e,t){return de(e)?e[t]:null}function xg(e,t){if(!de(e))return null;let n=Ua.get(t);if(n||(n=Ng(t),n&&Ua.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,Fg=e=>"",Dg="text",Mg=e=>e.length===0?"":Wm(e),Ug=Hm;function $a(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function $g(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function Vg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Hg(e={}){const t=e.locale,n=$g(e),r=de(e.pluralRules)&&G(t)&&Se(e.pluralRules[t])?e.pluralRules[t]:$a,s=de(e.pluralRules)&&G(t)&&Se(e.pluralRules[t])?$a:void 0,o=R=>R[r(n,R.length,s)],i=e.list||[],a=R=>i[R],l=e.named||_e();Ie(e.pluralIndex)&&Vg(n,l);const c=R=>l[R];function u(R){const D=Se(e.messages)?e.messages(R):de(e.messages)?e.messages[R]:!1;return D||(e.parent?e.parent.message(R):Fg)}const f=R=>e.modifiers?e.modifiers[R]:kg,d=oe(e.processor)&&Se(e.processor.normalize)?e.processor.normalize:Mg,m=oe(e.processor)&&Se(e.processor.interpolate)?e.processor.interpolate:Ug,y=oe(e.processor)&&G(e.processor.type)?e.processor.type:Dg,w={list:a,named:c,plural:o,linked:(R,...D)=>{const[E,v]=D;let O="text",N="";D.length===1?de(E)?(N=E.modifier||N,O=E.type||O):G(E)&&(N=E||N):D.length===2&&(G(E)&&(N=E||N),G(v)&&(O=v||O));const x=u(R)(w),V=O==="vnode"&&Ce(x)&&N?x[0]:x;return N?f(N)(V,O):V},message:u,type:y,interpolate:m,normalize:d,values:Ge(_e(),i,l)};return w}let xr=null;function Wg(e){xr=e}function Bg(e,t,n){xr&&xr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const jg=Kg("function:translate");function Kg(e){return t=>xr&&xr.emit(e,t)}const Gg=hi.__EXTEND_POINT__,Tn=Ms(Gg),Yg={FALLBACK_TO_TRANSLATE:Tn(),CANNOT_FORMAT_NUMBER:Tn(),FALLBACK_TO_NUMBER_FORMAT:Tn(),CANNOT_FORMAT_DATE:Tn(),FALLBACK_TO_DATE_FORMAT:Tn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Tn(),__EXTEND_POINT__:Tn()},Fu=ne.__EXTEND_POINT__,Cn=Ms(Fu),bt={INVALID_ARGUMENT:Fu,INVALID_DATE_ARGUMENT:Cn(),INVALID_ISO_DATE_ARGUMENT:Cn(),NOT_SUPPORT_NON_STRING_MESSAGE:Cn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Cn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Cn(),NOT_SUPPORT_LOCALE_TYPE:Cn(),__EXTEND_POINT__:Cn()};function It(e){return nr(e,null,void 0)}function gi(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let co;function Va(e){if(G(e))return e;if(Se(e)){if(e.resolvedOnce&&co!=null)return co;if(e.constructor.name==="Function"){const t=e();if(Vm(t))throw It(bt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return co=t}else throw It(bt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw It(bt.NOT_SUPPORT_LOCALE_TYPE)}function qg(e,t,n){return[...new Set([n,...Ce(t)?t:de(t)?Object.keys(t):G(t)?[t]:[n]])]}function Du(e,t,n){const r=G(n)?n:Jn,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;Ce(i);)i=Ha(o,i,t);const a=Ce(t)||!oe(t)?t:t.default?t.default:null;i=G(a)?[a]:a,Ce(i)&&Ha(o,i,!1),s.__localeChainCache.set(r,o)}return o}function Ha(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Qg(){return{upper:(e,t)=>t==="text"&&G(e)?e.toUpperCase():t==="vnode"&&de(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&G(e)?e.toLowerCase():t==="vnode"&&de(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&G(e)?Ba(e):t==="vnode"&&de(e)&&"__v_isVNode"in e?Ba(e.children):e}}let Mu;function ja(e){Mu=e}let Uu;function Zg(e){Uu=e}let $u;function e_(e){$u=e}let Vu=null;const t_=e=>{Vu=e},n_=()=>Vu;let Hu=null;const Ka=e=>{Hu=e},r_=()=>Hu;let Ga=0;function s_(e={}){const t=Se(e.onWarn)?e.onWarn:xm,n=G(e.version)?e.version:Jg,r=G(e.locale)||Se(e.locale)?e.locale:Jn,s=Se(r)?Jn:r,o=Ce(e.fallbackLocale)||oe(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=oe(e.messages)?e.messages:uo(s),a=oe(e.datetimeFormats)?e.datetimeFormats:uo(s),l=oe(e.numberFormats)?e.numberFormats:uo(s),c=Ge(_e(),e.modifiers,Qg()),u=e.pluralRules||_e(),f=Se(e.missing)?e.missing:null,d=ae(e.missingWarn)||mn(e.missingWarn)?e.missingWarn:!0,m=ae(e.fallbackWarn)||mn(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,S=!!e.unresolving,w=Se(e.postTranslation)?e.postTranslation:null,R=oe(e.processor)?e.processor:null,D=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,v=Se(e.messageCompiler)?e.messageCompiler:Mu,O=Se(e.messageResolver)?e.messageResolver:Uu||Ig,N=Se(e.localeFallbacker)?e.localeFallbacker:$u||qg,x=de(e.fallbackContext)?e.fallbackContext:void 0,V=e,L=de(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,q=de(V.__numberFormatters)?V.__numberFormatters:new Map,Z=de(V.__meta)?V.__meta:{};Ga++;const $={version:n,cid:Ga,locale:r,fallbackLocale:o,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:S,postTranslation:w,processor:R,warnHtmlMessage:D,escapeParameter:E,messageCompiler:v,messageResolver:O,localeFallbacker:N,fallbackContext:x,onWarn:t,__meta:Z};return $.datetimeFormats=a,$.numberFormats=l,$.__datetimeFormatters=L,$.__numberFormatters=q,__INTLIFY_PROD_DEVTOOLS__&&Bg($,n,Z),$}const uo=e=>({[e]:_e()});function _i(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,s);return G(a)?a:t}else return t}function lr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function o_(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function i_(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;ra_(n,e)}function a_(e,t){const n=Eg(t);if(n==null)throw Ir(0);if(mi(n)===1){const o=vg(n);return e.plural(o.reduce((i,a)=>[...i,Ya(e,a)],[]))}else return Ya(e,n)}function Ya(e,t){const n=Sg(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=wg(t).reduce((s,o)=>[...s,Io(e,o)],[]);return e.normalize(r)}}function Io(e,t){const n=mi(t);switch(n){case 3:return Qr(t,n);case 9:return Qr(t,n);case 4:{const r=t;if(yt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(yt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ir(n)}case 5:{const r=t;if(yt(r,"i")&&Ie(r.i))return e.interpolate(e.list(r.i));if(yt(r,"index")&&Ie(r.index))return e.interpolate(e.list(r.index));throw Ir(n)}case 6:{const r=t,s=Tg(r),o=Cg(r);return e.linked(Io(e,o),s?Io(e,s):void 0,e.type)}case 7:return Qr(t,n);case 8:return Qr(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Wu=e=>e;let Hn=_e();function Bu(e,t={}){let n=!1;const r=t.onError||zm;return t.onError=s=>{n=!0,r(s)},{...yg(e,t),detectError:n}}const l_=(e,t)=>{if(!G(e))throw It(bt.NOT_SUPPORT_NON_STRING_MESSAGE);{ae(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Wu)(e),s=Hn[r];if(s)return s;const{code:o,detectError:i}=Bu(e,t),a=new Function(`return ${o}`)();return i?a:Hn[r]=a}};function c_(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&G(e)){ae(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Wu)(e),s=Hn[r];if(s)return s;const{ast:o,detectError:i}=Bu(e,{...t,location:!1,jit:!0}),a=fo(o);return i?a:Hn[r]=a}else{const n=e.cacheKey;if(n){const r=Hn[n];return r||(Hn[n]=fo(e))}else return fo(e)}}const qa=()=>"",pt=e=>Se(e);function za(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:a}=e,[l,c]=xo(...t),u=ae(c.missingWarn)?c.missingWarn:e.missingWarn,f=ae(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=ae(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,y=G(c.default)||ae(c.default)?ae(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",S=n||y!=="",w=gi(e,c);d&&u_(c);let[R,D,E]=m?[l,w,a[w]||_e()]:ju(e,l,w,i,f,u),v=R,O=l;if(!m&&!(G(v)||kt(v)||pt(v))&&S&&(v=y,O=v),!m&&(!(G(v)||kt(v)||pt(v))||!G(D)))return s?Us:l;let N=!1;const x=()=>{N=!0},V=pt(v)?v:Ku(e,l,D,v,O,x);if(N)return v;const L=h_(e,D,E,c),q=Hg(L),Z=f_(e,V,q);let $=r?r(Z,l):Z;if(d&&G($)&&($=Um($)),__INTLIFY_PROD_DEVTOOLS__){const X={timestamp:Date.now(),key:G(l)?l:pt(v)?v.key:"",locale:D||(pt(v)?v.locale:""),format:G(v)?v:pt(v)?v.source:"",message:$};X.meta=Ge({},e.__meta,n_()||{}),jg(X)}return $}function u_(e){Ce(e.list)?e.list=e.list.map(t=>G(t)?Ia(t):t):de(e.named)&&Object.keys(e.named).forEach(t=>{G(e.named[t])&&(e.named[t]=Ia(e.named[t]))})}function ju(e,t,n,r,s,o){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f=_e(),d,m=null;const y="translate";for(let S=0;Sr);return c.locale=n,c.key=t,c}const l=i(r,d_(e,n,s,r,a,o));return l.locale=n,l.key=t,l.source=r,l}function f_(e,t,n){return t(n)}function xo(...e){const[t,n,r]=e,s=_e();if(!G(t)&&!Ie(t)&&!pt(t)&&!kt(t))throw It(bt.INVALID_ARGUMENT);const o=Ie(t)?String(t):(pt(t),t);return Ie(n)?s.plural=n:G(n)?s.default=n:oe(n)&&!Ds(n)?s.named=n:Ce(n)&&(s.list=n),Ie(r)?s.plural=r:G(r)?s.default=r:oe(r)&&Ge(s,r),[o,s]}function d_(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>km(t,n,i)}}function h_(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:s,pluralRules:o,messages:m=>{let y=i(n,m);if(y==null&&u){const[,,S]=ju(u,m,t,a,l,c);y=i(S,m)}if(G(y)||kt(y)){let S=!1;const R=Ku(e,m,t,y,m,()=>{S=!0});return S?qa:R}else return pt(y)?y:qa}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ie(r.plural)&&(d.pluralIndex=r.plural),d}function Xa(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,c,u,f]=ko(...t),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn;ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,y=gi(e,u),S=i(e,s,y);if(!G(l)||l==="")return new Intl.DateTimeFormat(y,f).format(c);let w={},R,D=null;const E="datetime format";for(let N=0;N{Gu.includes(l)?i[l]=n[l]:o[l]=n[l]}),G(r)?o.locale=r:oe(r)&&(i=r),oe(s)&&(i=s),[o.key||"",a,o,i]}function Ja(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Qa(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=Fo(...t),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn;ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,y=gi(e,u),S=i(e,s,y);if(!G(l)||l==="")return new Intl.NumberFormat(y,f).format(c);let w={},R,D=null;const E="number format";for(let N=0;N{Yu.includes(l)?i[l]=n[l]:o[l]=n[l]}),G(r)?o.locale=r:oe(r)&&(i=r),oe(s)&&(i=s),[o.key||"",a,o,i]}function Za(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}bg();const p_="9.14.5";function m_(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Bt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Bt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Bt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Bt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Bt().__INTLIFY_PROD_DEVTOOLS__=!1)}const g_=Yg.__EXTEND_POINT__,Ut=Ms(g_);Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut();const qu=bt.__EXTEND_POINT__,ot=Ms(qu),xe={UNEXPECTED_RETURN_TYPE:qu,INVALID_ARGUMENT:ot(),MUST_BE_CALL_SETUP_TOP:ot(),NOT_INSTALLED:ot(),NOT_AVAILABLE_IN_LEGACY_MODE:ot(),REQUIRED_VALUE:ot(),INVALID_VALUE:ot(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ot(),NOT_INSTALLED_WITH_PROVIDE:ot(),UNEXPECTED_ERROR:ot(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ot(),BRIDGE_SUPPORT_VUE_2_ONLY:ot(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ot(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ot(),__EXTEND_POINT__:ot()};function $e(e,...t){return nr(e,null,void 0)}const Do=_n("__translateVNode"),Mo=_n("__datetimeParts"),Uo=_n("__numberParts"),zu=_n("__setPluralRules"),Xu=_n("__injectWithOption"),$o=_n("__dispose");function kr(e){if(!de(e)||kt(e))return e;for(const t in e)if(yt(e,t))if(!t.includes("."))de(e[t])&&kr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||_e(),rs(c,i[l])):rs(c,i)}else G(a)&&rs(JSON.parse(a),i)}),s==null&&o)for(const a in i)yt(i,a)&&kr(i[a]);return i}function Ju(e){return e.type}function Qu(e,t,n){let r=de(t.messages)?t.messages:_e();"__i18nGlobal"in n&&(r=$s(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(de(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(de(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function el(e){return Oe($r,null,e,0)}const tl="__INTLIFY_META__",nl=()=>[],__=()=>!1;let rl=0;function sl(e){return((t,n,r,s)=>e(n,r,zt()||void 0,s))}const y_=()=>{const e=zt();let t=null;return e&&(t=Ju(e)[tl])?{[tl]:t}:null};function yi(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,o=e.flatJson,i=ys?it:oi,a=!!e.translateExistCompatible;let l=ae(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&l?n.locale.value:G(e.locale)?e.locale:Jn),u=i(n&&l?n.fallbackLocale.value:G(e.fallbackLocale)||Ce(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=i($s(c.value,e)),d=i(oe(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),m=i(oe(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=n?n.missingWarn:ae(e.missingWarn)||mn(e.missingWarn)?e.missingWarn:!0,S=n?n.fallbackWarn:ae(e.fallbackWarn)||mn(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,R=!!e.fallbackFormat,D=Se(e.missing)?e.missing:null,E=Se(e.missing)?sl(e.missing):null,v=Se(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const x=n?n.modifiers:oe(e.modifiers)?e.modifiers:{};let V=e.pluralRules||n&&n.pluralRules,L;L=(()=>{s&&Ka(null);const T={version:p_,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:x,pluralRules:V,missing:E===null?void 0:E,missingWarn:y,fallbackWarn:S,fallbackFormat:R,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:O,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=m.value,T.__datetimeFormatters=oe(L)?L.__datetimeFormatters:void 0,T.__numberFormatters=oe(L)?L.__numberFormatters:void 0;const k=s_(T);return s&&Ka(k),k})(),lr(L,c.value,u.value);function Z(){return[c.value,u.value,f.value,d.value,m.value]}const $=Ee({get:()=>c.value,set:T=>{c.value=T,L.locale=c.value}}),X=Ee({get:()=>u.value,set:T=>{u.value=T,L.fallbackLocale=u.value,lr(L,c.value,T)}}),ue=Ee(()=>f.value),Pe=Ee(()=>d.value),te=Ee(()=>m.value);function ee(){return Se(v)?v:null}function re(T){v=T,L.postTranslation=T}function Fe(){return D}function Ye(T){T!==null&&(E=sl(T)),D=T,L.missing=E}const he=(T,k,J,le,Ae,tt)=>{Z();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,s||(L.fallbackContext=n?r_():void 0),Ve=T(L)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(L.fallbackContext=void 0)}if(J!=="translate exists"&&Ie(Ve)&&Ve===Us||J==="translate exists"&&!Ve){const[En,Gs]=k();return n&&w?le(n):Ae(En)}else{if(tt(Ve))return Ve;throw $e(xe.UNEXPECTED_RETURN_TYPE)}};function ge(...T){return he(k=>Reflect.apply(za,null,[k,...T]),()=>xo(...T),"translate",k=>Reflect.apply(k.t,k,[...T]),k=>k,k=>G(k))}function qe(...T){const[k,J,le]=T;if(le&&!de(le))throw $e(xe.INVALID_ARGUMENT);return ge(k,J,Ge({resolvedMessage:!0},le||{}))}function De(...T){return he(k=>Reflect.apply(Xa,null,[k,...T]),()=>ko(...T),"datetime format",k=>Reflect.apply(k.d,k,[...T]),()=>Wa,k=>G(k))}function ct(...T){return he(k=>Reflect.apply(Qa,null,[k,...T]),()=>Fo(...T),"number format",k=>Reflect.apply(k.n,k,[...T]),()=>Wa,k=>G(k))}function Me(T){return T.map(k=>G(k)||Ie(k)||ae(k)?el(String(k)):k)}const Y={normalize:Me,interpolate:T=>T,type:"vnode"};function j(...T){return he(k=>{let J;const le=k;try{le.processor=Y,J=Reflect.apply(za,null,[le,...T])}finally{le.processor=null}return J},()=>xo(...T),"translate",k=>k[Do](...T),k=>[el(k)],k=>Ce(k))}function z(...T){return he(k=>Reflect.apply(Qa,null,[k,...T]),()=>Fo(...T),"number format",k=>k[Uo](...T),nl,k=>G(k)||Ce(k))}function fe(...T){return he(k=>Reflect.apply(Xa,null,[k,...T]),()=>ko(...T),"datetime format",k=>k[Mo](...T),nl,k=>G(k)||Ce(k))}function g(T){V=T,L.pluralRules=V}function b(T,k){return he(()=>{if(!T)return!1;const J=G(k)?k:c.value,le=U(J),Ae=L.messageResolver(le,T);return a?Ae!=null:kt(Ae)||pt(Ae)||G(Ae)},()=>[T],"translate exists",J=>Reflect.apply(J.te,J,[T,k]),__,J=>ae(J))}function _(T){let k=null;const J=Du(L,u.value,c.value);for(let le=0;le{l&&(c.value=T,L.locale=T,lr(L,c.value,u.value))}),un(n.fallbackLocale,T=>{l&&(u.value=T,L.fallbackLocale=T,lr(L,c.value,u.value))}));const H={id:rl,locale:$,fallbackLocale:X,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,lr(L,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:ue,get modifiers(){return x},get pluralRules(){return V||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(T){y=T,L.missingWarn=y},get fallbackWarn(){return S},set fallbackWarn(T){S=T,L.fallbackWarn=S},get fallbackRoot(){return w},set fallbackRoot(T){w=T},get fallbackFormat(){return R},set fallbackFormat(T){R=T,L.fallbackFormat=R},get warnHtmlMessage(){return O},set warnHtmlMessage(T){O=T,L.warnHtmlMessage=T},get escapeParameter(){return N},set escapeParameter(T){N=T,L.escapeParameter=T},t:ge,getLocaleMessage:U,setLocaleMessage:F,mergeLocaleMessage:B,getPostTranslationHandler:ee,setPostTranslationHandler:re,getMissingHandler:Fe,setMissingHandler:Ye,[zu]:g};return H.datetimeFormats=Pe,H.numberFormats=te,H.rt=qe,H.te=b,H.tm=P,H.d=De,H.n=ct,H.getDateTimeFormat=W,H.setDateTimeFormat=h,H.mergeDateTimeFormat=p,H.getNumberFormat=C,H.setNumberFormat=I,H.mergeNumberFormat=K,H[Xu]=r,H[Do]=j,H[Mo]=fe,H[Uo]=z,H}function b_(e){const t=G(e.locale)?e.locale:Jn,n=G(e.fallbackLocale)||Ce(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Se(e.missing)?e.missing:void 0,s=ae(e.silentTranslationWarn)||mn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=ae(e.silentFallbackWarn)||mn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ae(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=oe(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Se(e.postTranslation)?e.postTranslation:void 0,f=G(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=ae(e.sync)?e.sync:!0;let y=e.messages;if(oe(e.sharedMessages)){const N=e.sharedMessages;y=Object.keys(N).reduce((V,L)=>{const q=V[L]||(V[L]={});return Ge(q,N[L]),V},y||{})}const{__i18n:S,__root:w,__injectWithOption:R}=e,D=e.datetimeFormats,E=e.numberFormats,v=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:y,flatJson:v,datetimeFormats:D,numberFormats:E,missing:r,missingWarn:s,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:O,__i18n:S,__root:w,__injectWithOption:R}}function Vo(e={},t){{const n=yi(b_(e)),{__extender:r}=e,s={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return ae(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=ae(o)?!o:o},get silentFallbackWarn(){return ae(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=ae(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[i,a,l]=o,c={};let u=null,f=null;if(!G(i))throw $e(xe.INVALID_ARGUMENT);const d=i;return G(a)?c.locale=a:Ce(a)?u=a:oe(a)&&(f=a),Ce(l)?u=l:oe(l)&&(f=l),Reflect.apply(n.t,n,[d,u||f||{},c])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[i,a,l]=o,c={plural:1};let u=null,f=null;if(!G(i))throw $e(xe.INVALID_ARGUMENT);const d=i;return G(a)?c.locale=a:Ie(a)?c.plural=a:Ce(a)?u=a:oe(a)&&(f=a),G(l)?c.locale=l:Ce(l)?u=l:oe(l)&&(f=l),Reflect.apply(n.t,n,[d,u||f||{},c])},te(o,i){return n.te(o,i)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,i){n.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){n.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,i){n.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){n.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,i){n.setNumberFormat(o,i)},mergeNumberFormat(o,i){n.mergeNumberFormat(o,i)},getChoiceIndex(o,i){return-1}};return s.__extender=r,s}}const bi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function E_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ue?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},_e())}function Zu(e){return Ue}const v_=Xt({name:"i18n-t",props:Ge({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},bi),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Hr({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),i=_e();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=G(e.plural)?+e.plural:e.plural);const a=E_(t,o),l=s[Do](e.keypath,a,i),c=Ge(_e(),r),u=G(e.tag)||de(e.tag)?e.tag:Zu();return pn(u,c,l)}}}),ol=v_;function S_(e){return Ce(e)&&!G(e[0])}function ef(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let a=_e();e.locale&&(i.locale=e.locale),G(e.format)?i.key=e.format:de(e.format)&&(G(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Ge(_e(),d,{[m]:e.format[m]}):d,_e()));const l=r(e.value,i,a);let c=[i.key];Ce(l)?c=l.map((d,m)=>{const y=s[d.type],S=y?y({[d.type]:d.value,index:m,parts:l}):[d.value];return S_(S)&&(S[0].key=`${d.type}-${m}`),S}):G(l)&&(c=[l]);const u=Ge(_e(),o),f=G(e.tag)||de(e.tag)?e.tag:Zu();return pn(f,u,c)}}const w_=Xt({name:"i18n-n",props:Ge({value:{type:Number,required:!0},format:{type:[String,Object]}},bi),setup(e,t){const n=e.i18n||Hr({useScope:e.scope,__useComponent:!0});return ef(e,t,Yu,(...r)=>n[Uo](...r))}}),il=w_,T_=Xt({name:"i18n-d",props:Ge({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bi),setup(e,t){const n=e.i18n||Hr({useScope:e.scope,__useComponent:!0});return ef(e,t,Gu,(...r)=>n[Mo](...r))}}),al=T_;function C_(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function L_(e){const t=i=>{const{instance:a,modifiers:l,value:c}=i;if(!a||!a.$)throw $e(xe.UNEXPECTED_ERROR);const u=C_(e,a.$),f=ll(c);return[Reflect.apply(u.t,u,[...cl(f)]),u]};return{created:(i,a)=>{const[l,c]=t(a);ys&&e.global===c&&(i.__i18nWatcher=un(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{ys&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=ll(a);i.textContent=Reflect.apply(l.t,l,[...cl(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function ll(e){if(G(e))return{path:e};if(oe(e)){if(!("path"in e))throw $e(xe.REQUIRED_VALUE,"path");return e}else throw $e(xe.INVALID_VALUE)}function cl(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};return G(n)&&(i.locale=n),Ie(s)&&(i.plural=s),Ie(o)&&(i.plural=o),[t,a,i]}function P_(e,t,...n){const r=oe(n[0])?n[0]:{},s=!!r.useI18nComponentName;(!ae(r.globalInstall)||r.globalInstall)&&([s?"i18n":ol.name,"I18nT"].forEach(i=>e.component(i,ol)),[il.name,"I18nN"].forEach(i=>e.component(i,il)),[al.name,"I18nD"].forEach(i=>e.component(i,al))),e.directive("t",L_(t))}function A_(e,t,n){return{beforeCreate(){const r=zt();if(!r)throw $e(xe.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const o=s.i18n;if(s.__i18n&&(o.__i18n=s.__i18n),o.__root=t,this===this.$root)this.$i18n=ul(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Vo(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ul(e,s);else{this.$i18n=Vo({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Qu(t,s,s),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=zt();if(!r)throw $e(xe.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function ul(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[zu](t.pluralizationRules||e.pluralizationRules);const n=$s(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const O_=_n("global-vue-i18n");function R_(e={},t){const n=__VUE_I18N_LEGACY_API__&&ae(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ae(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[i,a]=N_(e,n),l=_n("");function c(d){return o.get(d)||null}function u(d,m){o.set(d,m)}function f(d){o.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(m,...y){if(m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,d),oe(y[0])){const R=y[0];d.__composerExtend=R.__composerExtend,d.__vueI18nExtend=R.__vueI18nExtend}let S=null;!n&&r&&(S=V_(m,d.global)),__VUE_I18N_FULL_INSTALL__&&P_(m,d,...y),__VUE_I18N_LEGACY_API__&&n&&m.mixin(A_(a,a.__composer,d));const w=m.unmount;m.unmount=()=>{S&&S(),d.dispose(),w()}},get global(){return a},dispose(){i.stop()},__instances:o,__getInstance:c,__setInstance:u,__deleteInstance:f};return d}}function Hr(e={}){const t=zt();if(t==null)throw $e(xe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $e(xe.NOT_INSTALLED);const n=I_(t),r=k_(n),s=Ju(t),o=x_(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw $e(xe.NOT_AVAILABLE_IN_LEGACY_MODE);return U_(t,o,r,e)}if(o==="global")return Qu(r,e,s),r;if(o==="parent"){let l=F_(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Ge({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=yi(l),i.__composerExtend&&(a[$o]=i.__composerExtend(a)),M_(i,t,a),i.__setInstance(t,a)}return a}function N_(e,t,n){const r=Xo();{const s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Vo(e)):r.run(()=>yi(e));if(s==null)throw $e(xe.UNEXPECTED_ERROR);return[r,s]}}function I_(e){{const t=et(e.isCE?O_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $e(e.isCE?xe.NOT_INSTALLED_WITH_PROVIDE:xe.UNEXPECTED_ERROR);return t}}function x_(e,t){return Ds(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function k_(e){return e.mode==="composition"?e.global:e.global.__composer}function F_(e,t,n=!1){let r=null;const s=t.root;let o=D_(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(r=a.__composer,n&&r&&!r[Xu]&&(r=null))}if(r!=null||s===o)break;o=o.parent}return r}function D_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function M_(e,t,n){er(()=>{},t),tr(()=>{const r=n;e.__deleteInstance(t);const s=r[$o];s&&(s(),delete r[$o])},t)}function U_(e,t,n,r={}){const s=t==="local",o=oi(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw $e(xe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=ae(r.inheritLocale)?r.inheritLocale:!G(r.locale),a=it(!s||i?n.locale.value:G(r.locale)?r.locale:Jn),l=it(!s||i?n.fallbackLocale.value:G(r.fallbackLocale)||Ce(r.fallbackLocale)||oe(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=it($s(a.value,r)),u=it(oe(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=it(oe(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=s?n.missingWarn:ae(r.missingWarn)||mn(r.missingWarn)?r.missingWarn:!0,m=s?n.fallbackWarn:ae(r.fallbackWarn)||mn(r.fallbackWarn)?r.fallbackWarn:!0,y=s?n.fallbackRoot:ae(r.fallbackRoot)?r.fallbackRoot:!0,S=!!r.fallbackFormat,w=Se(r.missing)?r.missing:null,R=Se(r.postTranslation)?r.postTranslation:null,D=s?n.warnHtmlMessage:ae(r.warnHtmlMessage)?r.warnHtmlMessage:!0,E=!!r.escapeParameter,v=s?n.modifiers:oe(r.modifiers)?r.modifiers:{},O=r.pluralRules||s&&n.pluralRules;function N(){return[a.value,l.value,c.value,u.value,f.value]}const x=Ee({get:()=>o.value?o.value.locale.value:a.value,set:_=>{o.value&&(o.value.locale.value=_),a.value=_}}),V=Ee({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:_=>{o.value&&(o.value.fallbackLocale.value=_),l.value=_}}),L=Ee(()=>o.value?o.value.messages.value:c.value),q=Ee(()=>u.value),Z=Ee(()=>f.value);function $(){return o.value?o.value.getPostTranslationHandler():R}function X(_){o.value&&o.value.setPostTranslationHandler(_)}function ue(){return o.value?o.value.getMissingHandler():w}function Pe(_){o.value&&o.value.setMissingHandler(_)}function te(_){return N(),_()}function ee(..._){return o.value?te(()=>Reflect.apply(o.value.t,null,[..._])):te(()=>"")}function re(..._){return o.value?Reflect.apply(o.value.rt,null,[..._]):""}function Fe(..._){return o.value?te(()=>Reflect.apply(o.value.d,null,[..._])):te(()=>"")}function Ye(..._){return o.value?te(()=>Reflect.apply(o.value.n,null,[..._])):te(()=>"")}function he(_){return o.value?o.value.tm(_):{}}function ge(_,P){return o.value?o.value.te(_,P):!1}function qe(_){return o.value?o.value.getLocaleMessage(_):{}}function De(_,P){o.value&&(o.value.setLocaleMessage(_,P),c.value[_]=P)}function ct(_,P){o.value&&o.value.mergeLocaleMessage(_,P)}function Me(_){return o.value?o.value.getDateTimeFormat(_):{}}function M(_,P){o.value&&(o.value.setDateTimeFormat(_,P),u.value[_]=P)}function Y(_,P){o.value&&o.value.mergeDateTimeFormat(_,P)}function j(_){return o.value?o.value.getNumberFormat(_):{}}function z(_,P){o.value&&(o.value.setNumberFormat(_,P),f.value[_]=P)}function fe(_,P){o.value&&o.value.mergeNumberFormat(_,P)}const g={get id(){return o.value?o.value.id:-1},locale:x,fallbackLocale:V,messages:L,datetimeFormats:q,numberFormats:Z,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(_){o.value&&(o.value.inheritLocale=_)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:v},get pluralRules(){return o.value?o.value.pluralRules:O},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:d},set missingWarn(_){o.value&&(o.value.missingWarn=_)},get fallbackWarn(){return o.value?o.value.fallbackWarn:m},set fallbackWarn(_){o.value&&(o.value.missingWarn=_)},get fallbackRoot(){return o.value?o.value.fallbackRoot:y},set fallbackRoot(_){o.value&&(o.value.fallbackRoot=_)},get fallbackFormat(){return o.value?o.value.fallbackFormat:S},set fallbackFormat(_){o.value&&(o.value.fallbackFormat=_)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:D},set warnHtmlMessage(_){o.value&&(o.value.warnHtmlMessage=_)},get escapeParameter(){return o.value?o.value.escapeParameter:E},set escapeParameter(_){o.value&&(o.value.escapeParameter=_)},t:ee,getPostTranslationHandler:$,setPostTranslationHandler:X,getMissingHandler:ue,setMissingHandler:Pe,rt:re,d:Fe,n:Ye,tm:he,te:ge,getLocaleMessage:qe,setLocaleMessage:De,mergeLocaleMessage:ct,getDateTimeFormat:Me,setDateTimeFormat:M,mergeDateTimeFormat:Y,getNumberFormat:j,setNumberFormat:z,mergeNumberFormat:fe};function b(_){_.locale.value=a.value,_.fallbackLocale.value=l.value,Object.keys(c.value).forEach(P=>{_.mergeLocaleMessage(P,c.value[P])}),Object.keys(u.value).forEach(P=>{_.mergeDateTimeFormat(P,u.value[P])}),Object.keys(f.value).forEach(P=>{_.mergeNumberFormat(P,f.value[P])}),_.escapeParameter=E,_.fallbackFormat=S,_.fallbackRoot=y,_.fallbackWarn=m,_.missingWarn=d,_.warnHtmlMessage=D}return yc(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw $e(xe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const _=o.value=e.proxy.$i18n.__composer;t==="global"?(a.value=_.locale.value,l.value=_.fallbackLocale.value,c.value=_.messages.value,u.value=_.datetimeFormats.value,f.value=_.numberFormats.value):s&&b(_)}),g}const $_=["locale","fallbackLocale","availableLocales"],fl=["t","rt","d","n","tm","te"];function V_(e,t){const n=Object.create(null);return $_.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o)throw $e(xe.UNEXPECTED_ERROR);const i=Le(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,fl.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o||!o.value)throw $e(xe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,o)}),()=>{delete e.config.globalProperties.$i18n,fl.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}m_();__INTLIFY_JIT_COMPILATION__?ja(c_):ja(l_);Zg(xg);e_(Du);if(__INTLIFY_PROD_DEVTOOLS__){const e=Bt();e.__INTLIFY__=!0,Wg(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const H_={common:{confirm:"确认",cancel:"取消",close:"关闭",delete:"删除",edit:"编辑",save:"保存",add:"添加",back:"返回",next:"下一页",previous:"上一页",loading:"加载中...",success:"成功",error:"错误",warning:"警告",info:"信息",search:"搜索",copy:"复制",uploadSuccess:"上传成功",uploadFailed:"上传失败",copySuccess:"复制成功",copyFailed:"复制失败",deleteSuccess:"删除成功",deleteFailed:"删除失败",downloadSuccess:"下载成功",downloadFailed:"下载失败",shareSuccess:"分享成功",shareFailed:"分享失败",expiredFile:"文件已过期",fileNotFound:"文件不存在",networkError:"网络错误",unknownError:"未知错误",invalidFileType:"不支持的文件类型",fileTooLarge:"文件过大",uploadCanceled:"上传已取消",processing:"处理中...",pleaseWait:"请稍候...",fileDetails:"文件详情",enabled:"已开启",disabled:"已关闭",minute:"分钟",files:"个文件",second:"秒",hour:"小时",day:"天",times:"次",appName:"文件快递柜 - FileCodeBox",appDescription:"开箱即用的文件快传系统"},admin:{dashboard:{title:"仪表盘",totalFiles:"总文件数",storageSpace:"存储空间",activeUsers:"活跃用户",systemStatus:"系统状态",yesterday:"昨天:",today:"今天:",weeklyChange:"↓ 5% 较上周",normal:"正常",serverUptime:"服务器运行时间:",version:"版本 v2.2.1 更新时间:2025-09-04"},fileManage:{title:"文件管理"},settings:{title:"系统设置",basicSettings:"基本设置",websiteInfo:"网站基本信息",websiteName:"网站名称",websiteDescription:"网站描述",siteName:"网站名称",adminPassword:"管理员密码",passwordPlaceholder:"如需修改请输入新密码",passwordNote:"不修改请留空",keywords:"SEO 关键词",themeSelection:"界面主题",robotsFile:"Robots.txt 配置",notificationSettings:"通知设置",notificationTitle:"公告标题",notificationContent:"公告内容",storageSettings:"存储配置",storagePath:"文件存储路径",storagePathPlaceholder:"使用默认路径可留空",storageMethod:"存储方式",localStorage:"本地存储",s3Storage:"S3 对象存储",webdavStorage:"WebDAV 存储",chunkUploadNote:"分片上传(实验性功能,大文件上传更稳定)",s3AccessKeyId:"Access Key ID",s3SecretAccessKey:"Secret Access Key",s3BucketName:"存储桶名称",s3EndpointUrl:"服务端点 URL",s3RegionName:"区域名称",s3SignatureVersion:"签名版本",s3Hostname:"自定义域名",s3v2:"S3v2",s3v4:"S3v4",autoPlaceholder:"自动识别",enabled:"已启用",disabled:"已禁用",webdavUrl:"输入 WebDAV 服务地址",webdavUsername:"输入 WebDAV 用户名",webdavPassword:"输入 WebDAV 密码",webdavUrlPlaceholder:"输入 WebDAV 服务地址",webdavUsernamePlaceholder:"输入 WebDAV 用户名",webdavPasswordPlaceholder:"输入 WebDAV 密码",enableProxy:"启用下载代理",uploadLimits:"上传设置",uploadRateLimit:"限流时间窗口(在此时间内限制上传次数)",uploadPerMinute:"限流时间窗口(在此时间内限制上传次数)",minute:"分钟",uploadCountLimit:"允许上传文件数(限流窗口内最多上传几个文件)",files:"个文件",fileSizeLimit:"单文件大小上限",expirationMethod:"过期方式",expirationType:"过期方式",expiration:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},maxSaveTime:"文件最长保存时间",timeUnits:{second:"秒",minute:"分钟",hour:"小时",day:"天"},guestUpload:"允许游客上传",errorLimits:"访问保护",errorRateLimit:"检测时间窗口(在此时间内统计错误次数)",errorPerMinute:"检测时间窗口(在此时间内统计错误次数)",errorCountLimit:"允许错误次数(超过后临时封禁)",times:"次",saveChanges:"保存设置",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"}}},nav:{sendFile:"发送文件",retrieveFile:"取件",fileRecords:"取件记录"},retrieve:{title:"文件取件",codeInput:{placeholder:"请输入5位取件码",label:"取件码"},submit:"取件",needSendFile:"需要发送文件?点击这里",recordsDrawer:"取件记录",messages:{invalidCode:"请输入5位取件码",retrieveSuccess:"文件获取成功",invalidCodeError:"无效的取件码",retrieveFailure:"获取文件失败:",networkError:"取件失败,请稍后重试:",unknownError:"未知错误"}},send:{title:"文件发送",sendText:"发送文本",fileDetails:"文件详情",expirationMethod:"过期方式",uploadArea:{dragText:"拖拽文件到此处或",clickText:"点击选择文件",textInput:"在此输入要发送的文本...",placeholder:"点击或拖放文件到此处上传",description:"支持各种常见格式"},submit:"安全寄送",needRetrieveFile:"需要取件?点击这里",sendRecords:"发件记录",secureEncryption:"安全加密",fileDetail:{title:"文件详情",content:"文件内容",previewContent:"预览内容",download:"点击下载",qrCode:"取件二维码",scanQrCode:"扫描二维码快速取件"},contentPreview:{title:"内容预览"},fileManage:{title:"文件管理",searchPlaceholder:"搜索文件名称、描述...",allFiles:"所有文件",editFileInfo:"编辑文件信息",saveChanges:"保存更改",headers:{code:"取件码",name:"名称",size:"大小",description:"描述",expiration:"过期时间",actions:"操作"},form:{code:"取件码",codePlaceholder:"输入取件码",filename:"文件名称",filenamePlaceholder:"输入文件名称",suffix:"文件后缀",suffixPlaceholder:"输入文件后缀",downloadLimit:"下载次数限制",downloadLimitPlaceholder:"输入下载次数限制"}},expiration:{label:"过期时间",placeholders:{days:"输入天数",hours:"输入小时数",minutes:"输入分钟数",count:"输入查看次数",forever:"永久",default:"输入值"},units:{days:"天",hours:"小时",minutes:"分钟",times:"次",forever:"永久"}},time:{day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"},messages:{selectFile:"请选择要上传的文件",enterText:"请输入要发送的文本",enterExpirationValue:"请输入过期值",expirationTooLong:"过期时间不能超过{days}天",sendSuccess:"文件发送成功!取件码:{code}",initChunkUploadFailed:"初始化切片上传失败",chunkUploadFailed:"切片 {index} 上传失败",completeUploadFailed:"完成上传失败",uploadFailed:"上传失败,请稍后重试",guestUploadDisabled:"游客上传功能已关闭",fileSizeExceeded:"文件大小超过限制 ({size})",serverError:"服务器响应异常",sendFailed:"发送失败,请稍后重试",expiresAfterCount:"{count}次后过期",expiresAt:"{date}过期",emptyFileError:"无法读取空文件",fileAddedFromClipboard:"已从剪贴板添加文件:{filename}",fileProcessingFailed:"文件处理失败",expiresAfter:"{value}{unit}后过期"}},fileManage:{title:"文件管理",searchPlaceholder:"搜索文件名称、描述...",allFiles:"所有文件",editFileInfo:"编辑文件信息",saveChanges:"保存更改",viewText:"查看",textPreview:"文本预览",copyText:"复制文本",copySuccess:"文本已复制到剪贴板",copyFailed:"复制失败,请重试",charCount:"共 {count} 个字符",headers:{code:"取件码",name:"名称",size:"大小",description:"描述",expiration:"过期时间",actions:"操作"},form:{code:"取件码",codePlaceholder:"输入取件码",filename:"文件名称",filenamePlaceholder:"输入文件名称",suffix:"文件后缀",suffixPlaceholder:"输入文件后缀",downloadLimit:"下载次数限制",downloadLimitPlaceholder:"输入下载次数限制"}},fileRecord:{filename:"文件名",size:"文件大小",date:"取件日期",code:"取件码",actions:"操作",download:"下载",viewDetails:"查看详情",deleteRecord:"删除记录",preview:"预览",copyContent:"复制内容",contentCopied:"内容已复制到剪贴板",copyFailed:"复制失败,请重试"},fileDetail:{title:"文件详情",content:"文件内容",previewContent:"预览内容",download:"点击下载",qrCode:"取件二维码",scanQrCode:"扫描二维码快速取件"},contentPreview:{title:"内容预览"},drawer:{noRecords:"暂无记录"},fileSize:{bytes:"Bytes",kb:"KB",mb:"MB",gb:"GB",tb:"TB"},manage:{settings:{title:"系统设置",basicSettings:"基本设置",siteName:"网站名称",adminPassword:"管理员密码",passwordPlaceholder:"如需修改请输入新密码",passwordNote:"不修改请留空",keywords:"SEO 关键词",themeSelection:"界面主题",robotsFile:"Robots.txt 配置",notificationSettings:"通知设置",notificationTitle:"公告标题",notificationContent:"公告内容",storageSettings:"存储配置",storagePath:"文件存储路径",storagePathPlaceholder:"使用默认路径可留空",storageMethod:"存储方式",localStorage:"本地存储",s3Storage:"S3 对象存储",webdavStorage:"WebDAV 存储",chunkUploadNote:"分片上传(实验性功能,大文件上传更稳定)",uploadLimits:"上传设置",uploadPerMinute:"限流时间窗口(在此时间内限制上传次数)",uploadCountLimit:"允许上传文件数(限流窗口内最多上传几个文件)",fileSizeLimit:"单文件大小上限",expiration:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},maxSaveTime:"文件最长保存时间",s3AccessKeyId:"Access Key ID",s3SecretAccessKey:"Secret Access Key",s3BucketName:"存储桶名称",s3EndpointUrl:"服务端点 URL",s3RegionName:"区域名称",s3SignatureVersion:"签名版本",s3Hostname:"自定义域名",s3v2:"S3v2",s3v4:"S3v4",autoPlaceholder:"自动识别",enableProxy:"启用下载代理",webdavUrlPlaceholder:"输入 WebDAV 服务地址",webdavUsernamePlaceholder:"输入 WebDAV 用户名",webdavPasswordPlaceholder:"输入 WebDAV 密码",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"},expirationType:"过期方式",guestUpload:"允许游客上传",errorLimits:"访问保护",errorPerMinute:"检测时间窗口(在此时间内统计错误次数)",errorCountLimit:"允许错误次数(超过后临时封禁)",saveChanges:"保存设置"},dashboard:{title:"仪表盘",totalFiles:"总文件数",storageSpace:"存储空间",activeUsers:"活跃用户",systemStatus:"系统状态",yesterday:"昨天:",today:"今天:",weeklyChange:"↓ 5% 较上周",normal:"正常",serverUptime:"服务器运行时间:",version:"版本 v2.2.1 更新时间:2025-09-04"},fileManage:{title:"文件管理",searchPlaceholder:"搜索文件名称、描述...",allFiles:"所有文件",editFileInfo:"编辑文件信息",saveChanges:"保存更改",headers:{code:"取件码",name:"名称",size:"大小",description:"描述",expiration:"过期时间",actions:"操作"},form:{code:"取件码",codePlaceholder:"输入取件码",filename:"文件名称",filenamePlaceholder:"输入文件名称",suffix:"文件后缀",suffixPlaceholder:"输入文件后缀",downloadLimit:"下载次数限制",downloadLimitPlaceholder:"输入下载次数限制"},updateFailed:"更新失败",deleteFailed:"删除失败",loadFileListFailed:"加载文件列表失败"},systemSettings:{title:"系统设置",basicSettings:"基本设置",websiteInfo:"网站基本信息",websiteName:"网站名称",websiteDescription:"网站描述",adminPassword:"管理员密码",passwordPlaceholder:"如需修改请输入新密码",passwordNote:"不修改请留空",keywords:"SEO 关键词",themeSelection:"界面主题",notificationSettings:"通知设置",notificationTitle:"公告标题",notificationContent:"公告内容",storageSettings:"存储配置",storagePath:"文件存储路径",storagePathPlaceholder:"使用默认路径可留空",storageMethod:"存储方式",localStorage:"本地存储",s3Storage:"S3 对象存储",webdavStorage:"WebDAV 存储",chunkUploadNote:"分片上传(实验性功能,大文件上传更稳定)",enabled:"已启用",disabled:"已禁用",webdavUrl:"输入 WebDAV 服务地址",webdavUsername:"输入 WebDAV 用户名",webdavPassword:"输入 WebDAV 密码",enableProxy:"启用下载代理",uploadLimits:"上传设置",uploadRateLimit:"限流时间窗口(在此时间内限制上传次数)",minute:"分钟",uploadCountLimit:"允许上传文件数(限流窗口内最多上传几个文件)",files:"个文件",fileSizeLimit:"单文件大小上限",expirationMethod:"过期方式",expirationMethods:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},expiration:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},maxSaveTime:"文件最长保存时间",timeUnits:{second:"秒",minute:"分钟",hour:"小时",day:"天"},guestUpload:"允许游客上传",errorLimits:"访问保护",errorRateLimit:"检测时间窗口(在此时间内统计错误次数)",errorCountLimit:"允许错误次数(超过后临时封禁)",times:"次",saveSettings:"保存设置",saveSuccess:"设置已保存",saveFailed:"保存失败,请重试",getConfigFailed:"获取配置失败,请刷新页面"},login:{title:"登录",password:"密码",passwordPlaceholder:"密码",loginButton:"登录",loggingIn:"登录中...",invalidPassword:"无效的密码",passwordTooShort:"密码长度至少为6位",loginFailed:"登录失败",noValidToken:"登录失败:未获取到有效令牌"}},utils:{common:{formatTime:"格式化时间戳为可读格式",formatFileSize:"格式化文件大小",formatDuration:"格式化持续时间",time:{forever:"永久",day:"天",hour:"小时",minute:"分钟",second:"秒"},copyToClipboard:"复制文本到剪贴板",copyFailed:"复制失败:",debounce:"防抖函数",throttle:"节流函数",validateEmail:"验证邮箱格式",validateUrl:"验证URL格式",generateRandomString:"生成随机字符串",deepClone:"深度克隆对象",getFileExtension:"获取文件扩展名",isMobileDevice:"检查是否为移动设备",formatNumber:"格式化数字,添加千分位分隔符"},clipboard:{title:"剪贴板工具函数",copyText:"复制文本到剪贴板",copySuccess:"复制成功",copyFailed:"复制失败,请手动复制"}},components:{pagination:{showing:"显示第",to:"到",of:"条,共",total:"条",previous:"上一页",next:"下一页"},languageSwitcher:{clickOutsideToClose:"点击外部关闭下拉菜单"},borderProgressBar:{borderWidth:"边框宽度",cornerRadius:"拐角半径",createGradient:"创建渐变",drawBackground:"绘制背景",calculateProgress:"计算进度",drawProgress:"绘制进度"}},misc:{emptyFileError:"无法读取空文件",fileAddedFromClipboard:"已从剪贴板添加文件:",fileProcessFailed:"文件处理失败",chunkSize:"保持 2MB 的切片大小用于计算哈希",secureContext:"如果不是安全上下文(HTTP),则返回一个基于文件信息的替代哈希",cryptoFallback:"如果 crypto.subtle.digest 失败,使用替代方案",generateAlternativeHash:"生成替代哈希的函数",fileInfoHash:"使用文件名、大小和最后修改时间生成一个简单的哈希",convertToHex:"转换为16进制字符串并填充到64位",defaultChunkSize:"默认切片大小为5MB",initChunkUpload:"1. 初始化切片上传",uploadChunk:"2. 上传切片",completeUpload:"3. 完成上传",chunkUploadFailed:"切片上传失败:",uploadProgressListener:"添加上传进度监听",noLimitCheck:"如果没有限制,直接返回true",expirationValidation:"添加过期时间验证",chunkUploadReplacement:"使用切片上传替代原来的直接上传",textUploadUnchanged:"文本上传保持不变",addSendRecord:"添加新的发送记录",permanent:"永久",sendSuccessMessage:"显示发送成功消息",resetForm:"重置表单 - 只重置文件和文本内容,保留过期信息",showDetails:"显示详情",autoCopyLink:"自动复制取件码链接",delayedLoading:"使用 onMounted 钩子延迟加载一些非关键资源或初始化",nonCriticalInit:"这里可以放置一些非立即需要的初始化代码"}},W_={common:{confirm:"Confirm",cancel:"Cancel",close:"Close",delete:"Delete",edit:"Edit",save:"Save",add:"Add",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",noData:"No Data",success:"Success",error:"Error",warning:"Warning",info:"Information",search:"Search",copy:"Copy",uploadSuccess:"Upload successful",uploadFailed:"Upload failed",copySuccess:"Copy successful",copyFailed:"Copy failed",deleteSuccess:"Delete successful",deleteFailed:"Delete failed",downloadSuccess:"Download successful",downloadFailed:"Download failed",shareSuccess:"Share successful",shareFailed:"Share failed",expiredFile:"File has expired",fileNotFound:"File not found",networkError:"Network error",unknownError:"Unknown error",invalidFileType:"Invalid file type",fileTooLarge:"File too large",uploadCanceled:"Upload canceled",processing:"Processing",pleaseWait:"Please wait",fileDetails:"File Details",enabled:"Enabled",disabled:"Disabled",minute:"minute",files:"files",second:"second",hour:"hour",day:"day",times:"times",appName:"FileCodeBox - File Transfer",appDescription:"Ready-to-use file transfer system"},admin:{dashboard:{title:"Dashboard",totalFiles:"Total Files",storageSpace:"Storage Space",activeUsers:"Active Users",systemStatus:"System Status",yesterday:"Yesterday:",today:"Today:",weeklyChange:"↓ 5% from last week",normal:"Normal",serverUptime:"Server Uptime:",version:"Version v2.2.1 Updated: 2025-09-04"},fileManage:{title:"File Management"},settings:{title:"System Settings",basicSettings:"General",websiteInfo:"Site Information",websiteName:"Site Name",websiteDescription:"Site Description",siteName:"Site Name",adminPassword:"Admin Password",passwordPlaceholder:"Enter new password to change",passwordNote:"Leave empty to keep current",keywords:"SEO Keywords",themeSelection:"Theme",robotsFile:"Robots.txt Configuration",notificationSettings:"Notifications",notificationTitle:"Announcement Title",notificationContent:"Announcement Content",storageSettings:"Storage",storagePath:"Storage Path",storagePathPlaceholder:"Leave empty for default path",storageMethod:"Storage Type",localStorage:"Local Storage",s3Storage:"S3 Object Storage",webdavStorage:"WebDAV Storage",chunkUploadNote:"Chunked Upload (experimental, better for large files)",s3AccessKeyId:"Access Key ID",s3SecretAccessKey:"Secret Access Key",s3BucketName:"Bucket Name",s3EndpointUrl:"Endpoint URL",s3RegionName:"Region Name",s3SignatureVersion:"Signature Version",s3Hostname:"Custom Domain",s3v2:"S3v2",s3v4:"S3v4",autoPlaceholder:"Auto-detect",enabled:"Enabled",disabled:"Disabled",webdavUrl:"Enter WebDAV server URL",webdavUsername:"Enter WebDAV username",webdavPassword:"Enter WebDAV password",webdavUrlPlaceholder:"Enter WebDAV server URL",webdavUsernamePlaceholder:"Enter WebDAV username",webdavPasswordPlaceholder:"Enter WebDAV password",enableProxy:"Enable Download Proxy",uploadLimits:"Upload Settings",uploadRateLimit:"Time Window (limit uploads within this period)",uploadPerMinute:"Time Window (limit uploads within this period)",minute:"min",uploadCountLimit:"Max Files Allowed (within the time window)",files:"files",fileSizeLimit:"Max File Size",expirationMethod:"Expiration Options",expirationType:"Expiration Options",expiration:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},maxSaveTime:"Max Retention Period",timeUnits:{second:"sec",minute:"min",hour:"hr",day:"day"},guestUpload:"Allow Guest Uploads",errorLimits:"Access Protection",errorRateLimit:"Detection Window (count errors within this period)",errorPerMinute:"Detection Window (count errors within this period)",errorCountLimit:"Max Errors Allowed (block after exceeding)",times:"times",saveChanges:"Save Settings",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"}}},nav:{sendFile:"Send File",retrieveFile:"Retrieve",fileRecords:"File Records"},retrieve:{title:"File Retrieval",codeInput:{placeholder:"Enter 5-digit retrieval code",label:"Retrieval Code"},submit:"Retrieve",needSendFile:"Need to send a file? Click here",recordsDrawer:"Retrieval Records",messages:{invalidCode:"Please enter a 5-digit retrieval code",retrieveSuccess:"File retrieved successfully",invalidCodeError:"Invalid retrieval code",retrieveFailure:"Failed to retrieve file: ",networkError:"Retrieval failed, please try again later: ",unknownError:"Unknown error"}},send:{title:"File Send",sendText:"Send Text",uploadArea:{dragText:"Drag files here or",clickText:"click to select files",textInput:"Enter text to send here...",placeholder:"Click or drag files here to upload",description:"Supports various common formats"},submit:"Secure Send",needRetrieveFile:"Need to retrieve? Click here",sendRecords:"Send Records",secureEncryption:"Secure Encryption",fileDetails:"File Details",expirationMethod:"Expiration Method",expiration:{day:"By Day",hour:"By Hour",minute:"By Minute",forever:"Forever",count:"By Count",label:"Expiration Time",placeholders:{days:"Enter days",hours:"Enter hours",minutes:"Enter minutes",count:"Enter view count",forever:"Forever",default:"Enter value"},units:{days:"days",hours:"hours",minutes:"minutes",times:"times",forever:"Forever"}},time:{day:"By Day",hour:"By Hour",minute:"By Minute",forever:"Forever",count:"By Count"},messages:{selectFile:"Please select a file to upload",enterText:"Please enter text to send",enterExpirationValue:"Please enter expiration value",expirationTooLong:"Expiration time cannot exceed {days} days",sendSuccess:"File sent successfully! Retrieve code: {code}",initChunkUploadFailed:"Failed to initialize chunk upload",chunkUploadFailed:"Chunk {index} upload failed",completeUploadFailed:"Failed to complete upload",uploadFailed:"Upload failed, please try again later",guestUploadDisabled:"Guest upload feature is disabled",fileSizeExceeded:"File size exceeds limit ({size})",serverError:"Server response error",sendFailed:"Send failed, please try again later",expiresAfterCount:"Expires after {count} times",expiresAt:"Expires at {date}",emptyFileError:"Cannot read empty file",fileAddedFromClipboard:"File added from clipboard: {filename}",fileProcessingFailed:"File processing failed",expiresAfter:"Expires after {value} {unit}"}},fileRecord:{filename:"Filename",size:"Size",date:"Date",code:"Code",actions:"Actions",download:"Download",viewDetails:"View Details",deleteRecord:"Delete Record",preview:"Preview",copyContent:"Copy Content",contentCopied:"Content copied to clipboard",copyFailed:"Copy failed, please try again"},fileDetail:{title:"File Details",content:"File Content",previewContent:"Preview Content",download:"Click to Download",qrCode:"Retrieve QR Code",scanQrCode:"Scan QR code for quick retrieval"},contentPreview:{title:"Content Preview"},fileManage:{title:"File Management",searchPlaceholder:"Search file name, description...",allFiles:"All Files",editFileInfo:"Edit File Information",saveChanges:"Save Changes",viewText:"View",textPreview:"Text Preview",copyText:"Copy Text",copySuccess:"Text copied to clipboard",copyFailed:"Copy failed, please try again",charCount:"{count} characters",headers:{code:"Retrieve Code",name:"Name",size:"Size",description:"Description",expiration:"Expiration",actions:"Actions"},form:{code:"Retrieve Code",codePlaceholder:"Enter retrieve code",filename:"File Name",filenamePlaceholder:"Enter file name",suffix:"File Extension",suffixPlaceholder:"Enter file extension",downloadLimit:"Download Limit",downloadLimitPlaceholder:"Enter download limit"}},drawer:{noRecords:"No records"},manage:{settings:{title:"System Settings",basicSettings:"General",websiteInfo:"Site Information",websiteName:"Site Name",websiteDescription:"Site Description",siteName:"Site Name",adminPassword:"Admin Password",passwordPlaceholder:"Enter new password to change",passwordNote:"Leave empty to keep current",keywords:"SEO Keywords",themeSelection:"Theme",notificationSettings:"Notifications",notificationTitle:"Announcement Title",notificationContent:"Announcement Content",storageSettings:"Storage",storagePath:"Storage Path",storagePathPlaceholder:"Leave empty for default path",storageMethod:"Storage Type",localStorage:"Local Storage",s3Storage:"S3 Object Storage",webdavStorage:"WebDAV Storage",chunkUploadNote:"Chunked Upload (experimental, better for large files)",enabled:"Enabled",disabled:"Disabled",webdavUrl:"Enter WebDAV server URL",webdavUsername:"Enter WebDAV username",webdavPassword:"Enter WebDAV password",webdavUrlPlaceholder:"Enter WebDAV server URL",webdavUsernamePlaceholder:"Enter WebDAV username",webdavPasswordPlaceholder:"Enter WebDAV password",enableProxy:"Enable Download Proxy",uploadLimits:"Upload Settings",uploadRateLimit:"Time Window (limit uploads within this period)",uploadPerMinute:"Time Window (limit uploads within this period)",minute:"min",uploadCountLimit:"Max Files Allowed (within the time window)",files:"files",fileSizeLimit:"Max File Size",expirationMethod:"Expiration Options",expirationType:"Expiration Options",expiration:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},maxSaveTime:"Max Retention Period",timeUnits:{second:"sec",minute:"min",hour:"hr",day:"day"},guestUpload:"Allow Guest Uploads",errorLimits:"Access Protection",errorRateLimit:"Detection Window (count errors within this period)",errorPerMinute:"Detection Window (count errors within this period)",errorCountLimit:"Max Errors Allowed (block after exceeding)",times:"times",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"},saveChanges:"Save Settings"},systemSettings:{title:"System Settings",basicSettings:"General",websiteInfo:"Site Information",websiteName:"Site Name",websiteDescription:"Site Description",adminPassword:"Admin Password",passwordPlaceholder:"Enter new password to change",passwordNote:"Leave empty to keep current",keywords:"SEO Keywords",themeSelection:"Theme",notificationSettings:"Notifications",notificationTitle:"Announcement Title",notificationContent:"Announcement Content",storageSettings:"Storage",storagePath:"Storage Path",storagePathPlaceholder:"Leave empty for default path",storageMethod:"Storage Type",localStorage:"Local Storage",s3Storage:"S3 Object Storage",webdavStorage:"WebDAV Storage",chunkUploadNote:"Chunked Upload (experimental, better for large files)",enabled:"Enabled",disabled:"Disabled",webdavUrl:"Enter WebDAV server URL",webdavUsername:"Enter WebDAV username",webdavPassword:"Enter WebDAV password",enableProxy:"Enable Download Proxy",uploadLimits:"Upload Settings",uploadRateLimit:"Time Window (limit uploads within this period)",minute:"min",uploadCountLimit:"Max Files Allowed (within the time window)",files:"files",fileSizeLimit:"Max File Size",expirationMethod:"Expiration Options",expirationMethods:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},expiration:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},maxSaveTime:"Max Retention Period",timeUnits:{second:"sec",minute:"min",hour:"hr",day:"day"},guestUpload:"Allow Guest Uploads",errorLimits:"Access Protection",errorRateLimit:"Detection Window (count errors within this period)",errorCountLimit:"Max Errors Allowed (block after exceeding)",times:"times",saveSettings:"Save Settings",saveSuccess:"Settings saved successfully",saveFailed:"Failed to save, please try again",getConfigFailed:"Failed to load settings, please refresh"},dashboard:{title:"Dashboard",totalFiles:"Total Files",storageSpace:"Storage Space",activeUsers:"Active Users",systemStatus:"System Status",yesterday:"Yesterday:",today:"Today:",weeklyChange:"↓ 5% from last week",normal:"Normal",serverUptime:"Server Uptime:",version:"Version v2.2.1 Updated: 2025-09-04"},fileManage:{title:"File Management",searchPlaceholder:"Search file name, description...",allFiles:"All Files",editFileInfo:"Edit File Info",saveChanges:"Save Changes",headers:{code:"Code",name:"Name",size:"Size",description:"Description",expiration:"Expiration",actions:"Actions"},form:{code:"Code",codePlaceholder:"Enter code",filename:"File Name",filenamePlaceholder:"Enter file name",suffix:"File Suffix",suffixPlaceholder:"Enter file suffix",downloadLimit:"Download Limit",downloadLimitPlaceholder:"Enter download limit"},updateFailed:"Update failed",deleteFailed:"Delete failed",loadFileListFailed:"Failed to load file list"},login:{title:"Login",password:"Password",passwordPlaceholder:"Password",loginButton:"Login",loggingIn:"Logging in...",invalidPassword:"Invalid password",passwordTooShort:"Password must be at least 6 characters",loginFailed:"Login failed",noValidToken:"Login failed: No valid token received"}},fileSize:{bytes:"Bytes",kb:"KB",mb:"MB",gb:"GB",tb:"TB"},utils:{formatTime:"Format timestamp to readable format",formatFileSize:"Format file size",formatDuration:"Format duration",time:{forever:"Forever",day:"day",hour:"hour",minute:"minute",second:"second"},copyToClipboard:"Copy text to clipboard",copyFailed:"Copy failed:",debounce:"Debounce function",throttle:"Throttle function",validateEmail:"Validate email format",validateUrl:"Validate URL format",generateRandomString:"Generate random string",deepClone:"Deep clone object",getFileExtension:"Get file extension",isMobileDevice:"Check if mobile device",formatNumber:"Format number with thousand separators",clipboard:{title:"Clipboard utility functions",copyText:"Copy text to clipboard",copySuccess:"Copy successful",copyFailed:"Copy failed, please copy manually"}},components:{pagination:{showing:"Showing",to:"to",of:"of",total:"total",previous:"Previous",next:"Next"},languageSwitcher:{clickOutsideToClose:"Click outside to close dropdown menu"},borderProgressBar:{borderWidth:"Border width",cornerRadius:"Corner radius",createGradient:"Create gradient",drawBackground:"Draw background",calculateProgress:"Calculate progress",drawProgress:"Draw progress"}},misc:{emptyFileError:"Cannot read empty file",fileAddedFromClipboard:"File added from clipboard: ",fileProcessFailed:"File processing failed",chunkSize:"Keep 2MB chunk size for hash calculation",secureContext:"If not in secure context (HTTP), return an alternative hash based on file info",cryptoFallback:"If crypto.subtle.digest fails, use fallback method",generateAlternativeHash:"Function to generate alternative hash",fileInfoHash:"Generate simple hash using filename, size and last modified time",convertToHex:"Convert to hex string and pad to 64 bits",defaultChunkSize:"Default chunk size is 5MB",initChunkUpload:"1. Initialize chunk upload",uploadChunk:"2. Upload chunk",completeUpload:"3. Complete upload",chunkUploadFailed:"Chunk upload failed: ",uploadProgressListener:"Add upload progress listener",noLimitCheck:"If no limit, return true directly",expirationValidation:"Add expiration time validation",chunkUploadReplacement:"Use chunk upload to replace direct upload",textUploadUnchanged:"Text upload remains unchanged",addSendRecord:"Add new send record",permanent:"Permanent",sendSuccessMessage:"Show send success message",resetForm:"Reset form - only reset file and text content, keep expiration info",showDetails:"Show details",autoCopyLink:"Auto copy retrieve code link",delayedLoading:"Use onMounted hook to delay load non-critical resources or initialization",nonCriticalInit:"Place non-immediately needed initialization code here"}},B_=()=>{const e=localStorage.getItem("locale");return e||(navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en-US")},j_={"zh-CN":H_,"en-US":W_},tf=R_({legacy:!1,locale:B_(),fallbackLocale:"zh-CN",messages:j_,globalInjection:!0}),K_=e=>{tf.global.locale.value=e,localStorage.setItem("locale",e),document.documentElement.lang=e},ho=[{code:"zh-CN",name:"中文"},{code:"en-US",name:"English"}],G_={class:"relative"},Y_={class:"text-sm font-medium"},q_={class:"py-1"},z_=["onClick"],X_=Xt({__name:"LanguageSwitcher",setup(e){const{locale:t}=Hr(),n=et("isDarkMode"),r=it(!1),s=Ee(()=>t.value),o=Ee(()=>ho.find(c=>c.code===s.value)||ho[0]),i=()=>{r.value=!r.value},a=c=>{K_(c),r.value=!1},l=c=>{c.target.closest(".relative")||(r.value=!1)};return er(()=>{document.addEventListener("click",l)}),tr(()=>{document.removeEventListener("click",l)}),(c,u)=>(Ke(),jt("div",G_,[We("button",{onClick:i,class:Nt(["flex items-center space-x-2 px-3 py-2 rounded-lg transition-all duration-200",Te(n)?"bg-gray-800/60 hover:bg-gray-700/80 text-gray-300 hover:text-white":"bg-gray-100 hover:bg-gray-200 text-gray-700 hover:text-gray-900"])},[Oe(Te(Lm),{class:"w-4 h-4"}),We("span",Y_,Er(o.value.name),1),Oe(Te(wm),{class:Nt(["w-4 h-4 transition-transform duration-200",{"rotate-180":r.value}])},null,8,["class"])],2),Oe(Qc,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:Tr(()=>[r.value?(Ke(),jt("div",{key:0,class:Nt(["absolute right-0 mt-2 w-32 rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 z-50",Te(n)?"bg-gray-800 border border-gray-700":"bg-white border border-gray-200"])},[We("div",q_,[(Ke(!0),jt(Ue,null,Cc(Te(ho),f=>(Ke(),jt("button",{key:f.code,onClick:d=>a(f.code),class:Nt(["w-full text-left px-4 py-2 text-sm transition-colors duration-150",s.value===f.code?Te(n)?"bg-indigo-600 text-white":"bg-indigo-50 text-indigo-600":Te(n)?"text-gray-300 hover:bg-gray-700 hover:text-white":"text-gray-700 hover:bg-gray-100"])},Er(f.name),11,z_))),128))])],2)):Gc("",!0)]),_:1})]))}}),dl={COLOR_MODE:"colorMode",ADMIN_PASSWORD:"adminPassword",TOKEN:"token"},He={LIGHT:"light",DARK:"dark",SYSTEM:"system"},nE={IDLE:"idle",UPLOADING:"uploading",SUCCESS:"success",ERROR:"error"},rE={MAX_FILE_SIZE:100*1024*1024},nf={ALERT_DURATION:5e3,REQUEST_TIMEOUT:3e8},rf=dp("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=nf.ALERT_DURATION){const r=Date.now(),s=Date.now();this.alerts.push({id:r,message:e,type:t,progress:100,duration:n,startTime:s}),setTimeout(()=>this.removeAlert(r),n)},removeAlert(e){const t=this.alerts.findIndex(n=>n.id===e);t>-1&&this.alerts.splice(t,1)},updateAlertProgress(e){const t=this.alerts.find(n=>n.id===e);if(t){const r=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,r),t.progress<=0&&this.removeAlert(e)}}}}),J_={class:"p-4"},Q_={class:"flex items-start"},Z_={class:"flex-shrink-0"},ey={class:"ml-3 flex-1 pt-0.5"},ty={class:"text-sm font-medium text-white"},ny={class:"ml-4 flex-shrink-0 flex"},ry=["onClick"],sy={class:"sr-only"},oy={class:"h-1 bg-white bg-opacity-25"},iy=Xt({__name:"AlertComponent",setup(e){const{t}=Hr(),n=rf(),{alerts:r}=hp(n),{removeAlert:s,updateAlertProgress:o}=n,i={success:"from-green-500 to-green-600",error:"from-red-500 to-red-600",warning:"from-yellow-500 to-yellow-600",info:"from-blue-500 to-blue-600"},a={success:Cm,error:Rm,warning:Tm,info:Pm};let l;return er(()=>{l=setInterval(()=>{r.value.forEach(c=>{o(c.id)})},100)}),tr(()=>{clearInterval(l)}),(c,u)=>(Ke(),dn(Gh,{name:"alert-fade",tag:"div",class:"fixed top-4 left-4 z-50 w-full sm:max-w-sm md:max-w-md space-y-4 px-4 sm:px-0"},{default:Tr(()=>[(Ke(!0),jt(Ue,null,Cc(Te(r),f=>(Ke(),jt("div",{key:f.id,class:Nt(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",i[f.type]])},[We("div",J_,[We("div",Q_,[We("div",Z_,[(Ke(),dn(wc(a[f.type]),{class:"h-6 w-6 text-white"}))]),We("div",ey,[We("p",ty,Er(f.message),1)]),We("div",ny,[We("button",{onClick:d=>Te(s)(f.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[We("span",sy,Er(Te(t)("common.close")),1),Oe(Te(Nm),{class:"h-5 w-5"})],8,ry)])])]),We("div",oy,[We("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Cs({width:`${f.progress}%`})},null,4)])],2))),128))]),_:1}))}}),ay=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ly=ay(iy,[["__scopeId","data-v-59f86e5f"]]);function sf(e,t){return function(){return e.apply(t,arguments)}}const{toString:cy}=Object.prototype,{getPrototypeOf:Ei}=Object,{iterator:Vs,toStringTag:of}=Symbol,Hs=(e=>t=>{const n=cy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tt=e=>(e=e.toLowerCase(),t=>Hs(t)===e),Ws=e=>t=>typeof t===e,{isArray:rr}=Array,Qn=Ws("undefined");function Wr(e){return e!==null&&!Qn(e)&&e.constructor!==null&&!Qn(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const af=Tt("ArrayBuffer");function uy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&af(e.buffer),t}const fy=Ws("string"),at=Ws("function"),lf=Ws("number"),Br=e=>e!==null&&typeof e=="object",dy=e=>e===!0||e===!1,ss=e=>{if(Hs(e)!=="object")return!1;const t=Ei(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(of in e)&&!(Vs in e)},hy=e=>{if(!Br(e)||Wr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},py=Tt("Date"),my=Tt("File"),gy=Tt("Blob"),_y=Tt("FileList"),yy=e=>Br(e)&&at(e.pipe),by=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Hs(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ey=Tt("URLSearchParams"),[vy,Sy,wy,Ty]=["ReadableStream","Request","Response","Headers"].map(Tt),Cy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),rr(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uf=e=>!Qn(e)&&e!==On;function Ho(){const{caseless:e,skipUndefined:t}=uf(this)&&this||{},n={},r=(s,o)=>{const i=e&&cf(n,o)||o;ss(n[i])&&ss(s)?n[i]=Ho(n[i],s):ss(s)?n[i]=Ho({},s):rr(s)?n[i]=s.slice():(!t||!Qn(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s(jr(t,(s,o)=>{n&&at(s)?e[o]=sf(s,n):e[o]=s},{allOwnKeys:r}),e),Py=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ay=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Oy=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Ei(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ry=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ny=e=>{if(!e)return null;if(rr(e))return e;let t=e.length;if(!lf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Iy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ei(Uint8Array)),xy=(e,t)=>{const r=(e&&e[Vs]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},ky=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Fy=Tt("HTMLFormElement"),Dy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),hl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),My=Tt("RegExp"),ff=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Uy=e=>{ff(e,(t,n)=>{if(at(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(at(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$y=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return rr(e)?r(e):r(String(e).split(t)),n},Vy=()=>{},Hy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Wy(e){return!!(e&&at(e.append)&&e[of]==="FormData"&&e[Vs])}const By=e=>{const t=new Array(10),n=(r,s)=>{if(Br(r)){if(t.indexOf(r)>=0)return;if(Wr(r))return r;if(!("toJSON"in r)){t[s]=r;const o=rr(r)?[]:{};return jr(r,(i,a)=>{const l=n(i,s+1);!Qn(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},jy=Tt("AsyncFunction"),Ky=e=>e&&(Br(e)||at(e))&&at(e.then)&&at(e.catch),df=((e,t)=>e?setImmediate:t?((n,r)=>(On.addEventListener("message",({source:s,data:o})=>{s===On&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),On.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",at(On.postMessage)),Gy=typeof queueMicrotask<"u"?queueMicrotask.bind(On):typeof process<"u"&&process.nextTick||df,Yy=e=>e!=null&&at(e[Vs]),A={isArray:rr,isArrayBuffer:af,isBuffer:Wr,isFormData:by,isArrayBufferView:uy,isString:fy,isNumber:lf,isBoolean:dy,isObject:Br,isPlainObject:ss,isEmptyObject:hy,isReadableStream:vy,isRequest:Sy,isResponse:wy,isHeaders:Ty,isUndefined:Qn,isDate:py,isFile:my,isBlob:gy,isRegExp:My,isFunction:at,isStream:yy,isURLSearchParams:Ey,isTypedArray:Iy,isFileList:_y,forEach:jr,merge:Ho,extend:Ly,trim:Cy,stripBOM:Py,inherits:Ay,toFlatObject:Oy,kindOf:Hs,kindOfTest:Tt,endsWith:Ry,toArray:Ny,forEachEntry:xy,matchAll:ky,isHTMLForm:Fy,hasOwnProperty:hl,hasOwnProp:hl,reduceDescriptors:ff,freezeMethods:Uy,toObjectSet:$y,toCamelCase:Dy,noop:Vy,toFiniteNumber:Hy,findKey:cf,global:On,isContextDefined:uf,isSpecCompliantForm:Wy,toJSONObject:By,isAsyncFn:jy,isThenable:Ky,setImmediate:df,asap:Gy,isIterable:Yy};function ie(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}A.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const hf=ie.prototype,pf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pf[e]={value:e}});Object.defineProperties(ie,pf);Object.defineProperty(hf,"isAxiosError",{value:!0});ie.from=(e,t,n,r,s,o)=>{const i=Object.create(hf);A.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ie.call(i,a,l,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const qy=null;function Wo(e){return A.isPlainObject(e)||A.isArray(e)}function mf(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function pl(e,t,n){return e?e.concat(t).map(function(s,o){return s=mf(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function zy(e){return A.isArray(e)&&!e.some(Wo)}const Xy=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!A.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(s))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(A.isDate(y))return y.toISOString();if(A.isBoolean(y))return y.toString();if(!l&&A.isBlob(y))throw new ie("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(y)||A.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,S,w){let R=y;if(y&&!w&&typeof y=="object"){if(A.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(A.isArray(y)&&zy(y)||(A.isFileList(y)||A.endsWith(S,"[]"))&&(R=A.toArray(y)))return S=mf(S),R.forEach(function(E,v){!(A.isUndefined(E)||E===null)&&t.append(i===!0?pl([S],v,o):i===null?S:S+"[]",c(E))}),!1}return Wo(y)?!0:(t.append(pl(w,S,o),c(y)),!1)}const f=[],d=Object.assign(Xy,{defaultVisitor:u,convertValue:c,isVisitable:Wo});function m(y,S){if(!A.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(y),A.forEach(y,function(R,D){(!(A.isUndefined(R)||R===null)&&s.call(t,R,A.isString(D)?D.trim():D,S,d))===!0&&m(R,S?S.concat(D):[D])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ml(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vi(e,t){this._pairs=[],e&&Bs(e,this,t)}const gf=vi.prototype;gf.append=function(t,n){this._pairs.push([t,n])};gf.toString=function(t){const n=t?function(r){return t.call(this,r,ml)}:ml;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _f(e,t,n){if(!t)return e;const r=n&&n.encode||Jy;A.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=A.isURLSearchParams(t)?t.toString():new vi(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class gl{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qy=typeof URLSearchParams<"u"?URLSearchParams:vi,Zy=typeof FormData<"u"?FormData:null,eb=typeof Blob<"u"?Blob:null,tb={isBrowser:!0,classes:{URLSearchParams:Qy,FormData:Zy,Blob:eb},protocols:["http","https","file","blob","url","data"]},Si=typeof window<"u"&&typeof document<"u",Bo=typeof navigator=="object"&&navigator||void 0,nb=Si&&(!Bo||["ReactNative","NativeScript","NS"].indexOf(Bo.product)<0),rb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sb=Si&&window.location.href||"http://localhost",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Si,hasStandardBrowserEnv:nb,hasStandardBrowserWebWorkerEnv:rb,navigator:Bo,origin:sb},Symbol.toStringTag,{value:"Module"})),Ze={...ob,...tb};function ib(e,t){return Bs(e,new Ze.classes.URLSearchParams,{visitor:function(n,r,s,o){return Ze.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function ab(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lb(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&A.isArray(s)?s.length:i,l?(A.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!A.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&A.isArray(s[i])&&(s[i]=lb(s[i])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,s)=>{t(ab(r),s,n,0)}),n}return null}function cb(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kr={transitional:yf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=A.isObject(t);if(o&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return s?JSON.stringify(bf(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ib(t,this.formSerializer).toString();if((a=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),cb(t)):t}],transformResponse:[function(t){const n=this.transitional||Kr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const ub=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fb=e=>{const t={};let n,r,s;return e&&e.split(` +`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=dg(e,{filename:r,breakLineCode:s,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${Cu(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Xn(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function yg(e,t={}){const n=Tu({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,a=ig(n).parse(e);return r?(o&&cg(a),s&&Vn(a),{ast:a,code:""}):(lg(a,n),_g(a,n))}function bg(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Bt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Bt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Bt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function kt(e){return de(e)&&mi(e)===0&&(yt(e,"b")||yt(e,"body"))}const Lu=["b","body"];function Eg(e){return yn(e,Lu)}const Pu=["c","cases"];function vg(e){return yn(e,Pu,[])}const Au=["s","static"];function Sg(e){return yn(e,Au)}const Ou=["i","items"];function wg(e){return yn(e,Ou,[])}const Ru=["t","type"];function mi(e){return yn(e,Ru)}const Nu=["v","value"];function Qr(e,t){const n=yn(e,Nu);if(n!=null)return n;throw Ir(t)}const Iu=["m","modifier"];function Tg(e){return yn(e,Iu)}const xu=["k","key"];function Cg(e){const t=yn(e,xu);if(t)return t;throw Ir(6)}function yn(e,t,n){for(let r=0;r{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,i===void 0||(i=Rg(i),i===!1))return!1;d[1]()}};function m(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&m())){if(l=Og(o),f=bn[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=o,u()===!1))))return;if(r===7)return t}}const Ua=new Map;function Ig(e,t){return de(e)?e[t]:null}function xg(e,t){if(!de(e))return null;let n=Ua.get(t);if(n||(n=Ng(t),n&&Ua.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,Fg=e=>"",Dg="text",Mg=e=>e.length===0?"":Wm(e),Ug=Hm;function $a(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function $g(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function Vg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Hg(e={}){const t=e.locale,n=$g(e),r=de(e.pluralRules)&&G(t)&&Se(e.pluralRules[t])?e.pluralRules[t]:$a,s=de(e.pluralRules)&&G(t)&&Se(e.pluralRules[t])?$a:void 0,o=R=>R[r(n,R.length,s)],i=e.list||[],a=R=>i[R],l=e.named||_e();Ie(e.pluralIndex)&&Vg(n,l);const c=R=>l[R];function u(R){const D=Se(e.messages)?e.messages(R):de(e.messages)?e.messages[R]:!1;return D||(e.parent?e.parent.message(R):Fg)}const f=R=>e.modifiers?e.modifiers[R]:kg,d=oe(e.processor)&&Se(e.processor.normalize)?e.processor.normalize:Mg,m=oe(e.processor)&&Se(e.processor.interpolate)?e.processor.interpolate:Ug,y=oe(e.processor)&&G(e.processor.type)?e.processor.type:Dg,w={list:a,named:c,plural:o,linked:(R,...D)=>{const[E,v]=D;let O="text",N="";D.length===1?de(E)?(N=E.modifier||N,O=E.type||O):G(E)&&(N=E||N):D.length===2&&(G(E)&&(N=E||N),G(v)&&(O=v||O));const x=u(R)(w),V=O==="vnode"&&Ce(x)&&N?x[0]:x;return N?f(N)(V,O):V},message:u,type:y,interpolate:m,normalize:d,values:Ge(_e(),i,l)};return w}let xr=null;function Wg(e){xr=e}function Bg(e,t,n){xr&&xr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const jg=Kg("function:translate");function Kg(e){return t=>xr&&xr.emit(e,t)}const Gg=hi.__EXTEND_POINT__,Tn=Ms(Gg),Yg={FALLBACK_TO_TRANSLATE:Tn(),CANNOT_FORMAT_NUMBER:Tn(),FALLBACK_TO_NUMBER_FORMAT:Tn(),CANNOT_FORMAT_DATE:Tn(),FALLBACK_TO_DATE_FORMAT:Tn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Tn(),__EXTEND_POINT__:Tn()},Fu=ne.__EXTEND_POINT__,Cn=Ms(Fu),bt={INVALID_ARGUMENT:Fu,INVALID_DATE_ARGUMENT:Cn(),INVALID_ISO_DATE_ARGUMENT:Cn(),NOT_SUPPORT_NON_STRING_MESSAGE:Cn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Cn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Cn(),NOT_SUPPORT_LOCALE_TYPE:Cn(),__EXTEND_POINT__:Cn()};function It(e){return nr(e,null,void 0)}function gi(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let co;function Va(e){if(G(e))return e;if(Se(e)){if(e.resolvedOnce&&co!=null)return co;if(e.constructor.name==="Function"){const t=e();if(Vm(t))throw It(bt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return co=t}else throw It(bt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw It(bt.NOT_SUPPORT_LOCALE_TYPE)}function qg(e,t,n){return[...new Set([n,...Ce(t)?t:de(t)?Object.keys(t):G(t)?[t]:[n]])]}function Du(e,t,n){const r=G(n)?n:Jn,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;Ce(i);)i=Ha(o,i,t);const a=Ce(t)||!oe(t)?t:t.default?t.default:null;i=G(a)?[a]:a,Ce(i)&&Ha(o,i,!1),s.__localeChainCache.set(r,o)}return o}function Ha(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Qg(){return{upper:(e,t)=>t==="text"&&G(e)?e.toUpperCase():t==="vnode"&&de(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&G(e)?e.toLowerCase():t==="vnode"&&de(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&G(e)?Ba(e):t==="vnode"&&de(e)&&"__v_isVNode"in e?Ba(e.children):e}}let Mu;function ja(e){Mu=e}let Uu;function Zg(e){Uu=e}let $u;function e_(e){$u=e}let Vu=null;const t_=e=>{Vu=e},n_=()=>Vu;let Hu=null;const Ka=e=>{Hu=e},r_=()=>Hu;let Ga=0;function s_(e={}){const t=Se(e.onWarn)?e.onWarn:xm,n=G(e.version)?e.version:Jg,r=G(e.locale)||Se(e.locale)?e.locale:Jn,s=Se(r)?Jn:r,o=Ce(e.fallbackLocale)||oe(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=oe(e.messages)?e.messages:uo(s),a=oe(e.datetimeFormats)?e.datetimeFormats:uo(s),l=oe(e.numberFormats)?e.numberFormats:uo(s),c=Ge(_e(),e.modifiers,Qg()),u=e.pluralRules||_e(),f=Se(e.missing)?e.missing:null,d=ae(e.missingWarn)||mn(e.missingWarn)?e.missingWarn:!0,m=ae(e.fallbackWarn)||mn(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,S=!!e.unresolving,w=Se(e.postTranslation)?e.postTranslation:null,R=oe(e.processor)?e.processor:null,D=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,v=Se(e.messageCompiler)?e.messageCompiler:Mu,O=Se(e.messageResolver)?e.messageResolver:Uu||Ig,N=Se(e.localeFallbacker)?e.localeFallbacker:$u||qg,x=de(e.fallbackContext)?e.fallbackContext:void 0,V=e,L=de(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,q=de(V.__numberFormatters)?V.__numberFormatters:new Map,Z=de(V.__meta)?V.__meta:{};Ga++;const $={version:n,cid:Ga,locale:r,fallbackLocale:o,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:S,postTranslation:w,processor:R,warnHtmlMessage:D,escapeParameter:E,messageCompiler:v,messageResolver:O,localeFallbacker:N,fallbackContext:x,onWarn:t,__meta:Z};return $.datetimeFormats=a,$.numberFormats=l,$.__datetimeFormatters=L,$.__numberFormatters=q,__INTLIFY_PROD_DEVTOOLS__&&Bg($,n,Z),$}const uo=e=>({[e]:_e()});function _i(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,s);return G(a)?a:t}else return t}function lr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function o_(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function i_(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;ra_(n,e)}function a_(e,t){const n=Eg(t);if(n==null)throw Ir(0);if(mi(n)===1){const o=vg(n);return e.plural(o.reduce((i,a)=>[...i,Ya(e,a)],[]))}else return Ya(e,n)}function Ya(e,t){const n=Sg(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=wg(t).reduce((s,o)=>[...s,Io(e,o)],[]);return e.normalize(r)}}function Io(e,t){const n=mi(t);switch(n){case 3:return Qr(t,n);case 9:return Qr(t,n);case 4:{const r=t;if(yt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(yt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ir(n)}case 5:{const r=t;if(yt(r,"i")&&Ie(r.i))return e.interpolate(e.list(r.i));if(yt(r,"index")&&Ie(r.index))return e.interpolate(e.list(r.index));throw Ir(n)}case 6:{const r=t,s=Tg(r),o=Cg(r);return e.linked(Io(e,o),s?Io(e,s):void 0,e.type)}case 7:return Qr(t,n);case 8:return Qr(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Wu=e=>e;let Hn=_e();function Bu(e,t={}){let n=!1;const r=t.onError||zm;return t.onError=s=>{n=!0,r(s)},{...yg(e,t),detectError:n}}const l_=(e,t)=>{if(!G(e))throw It(bt.NOT_SUPPORT_NON_STRING_MESSAGE);{ae(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Wu)(e),s=Hn[r];if(s)return s;const{code:o,detectError:i}=Bu(e,t),a=new Function(`return ${o}`)();return i?a:Hn[r]=a}};function c_(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&G(e)){ae(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Wu)(e),s=Hn[r];if(s)return s;const{ast:o,detectError:i}=Bu(e,{...t,location:!1,jit:!0}),a=fo(o);return i?a:Hn[r]=a}else{const n=e.cacheKey;if(n){const r=Hn[n];return r||(Hn[n]=fo(e))}else return fo(e)}}const qa=()=>"",pt=e=>Se(e);function za(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:a}=e,[l,c]=xo(...t),u=ae(c.missingWarn)?c.missingWarn:e.missingWarn,f=ae(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=ae(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,y=G(c.default)||ae(c.default)?ae(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",S=n||y!=="",w=gi(e,c);d&&u_(c);let[R,D,E]=m?[l,w,a[w]||_e()]:ju(e,l,w,i,f,u),v=R,O=l;if(!m&&!(G(v)||kt(v)||pt(v))&&S&&(v=y,O=v),!m&&(!(G(v)||kt(v)||pt(v))||!G(D)))return s?Us:l;let N=!1;const x=()=>{N=!0},V=pt(v)?v:Ku(e,l,D,v,O,x);if(N)return v;const L=h_(e,D,E,c),q=Hg(L),Z=f_(e,V,q);let $=r?r(Z,l):Z;if(d&&G($)&&($=Um($)),__INTLIFY_PROD_DEVTOOLS__){const X={timestamp:Date.now(),key:G(l)?l:pt(v)?v.key:"",locale:D||(pt(v)?v.locale:""),format:G(v)?v:pt(v)?v.source:"",message:$};X.meta=Ge({},e.__meta,n_()||{}),jg(X)}return $}function u_(e){Ce(e.list)?e.list=e.list.map(t=>G(t)?Ia(t):t):de(e.named)&&Object.keys(e.named).forEach(t=>{G(e.named[t])&&(e.named[t]=Ia(e.named[t]))})}function ju(e,t,n,r,s,o){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f=_e(),d,m=null;const y="translate";for(let S=0;Sr);return c.locale=n,c.key=t,c}const l=i(r,d_(e,n,s,r,a,o));return l.locale=n,l.key=t,l.source=r,l}function f_(e,t,n){return t(n)}function xo(...e){const[t,n,r]=e,s=_e();if(!G(t)&&!Ie(t)&&!pt(t)&&!kt(t))throw It(bt.INVALID_ARGUMENT);const o=Ie(t)?String(t):(pt(t),t);return Ie(n)?s.plural=n:G(n)?s.default=n:oe(n)&&!Ds(n)?s.named=n:Ce(n)&&(s.list=n),Ie(r)?s.plural=r:G(r)?s.default=r:oe(r)&&Ge(s,r),[o,s]}function d_(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>km(t,n,i)}}function h_(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:s,pluralRules:o,messages:m=>{let y=i(n,m);if(y==null&&u){const[,,S]=ju(u,m,t,a,l,c);y=i(S,m)}if(G(y)||kt(y)){let S=!1;const R=Ku(e,m,t,y,m,()=>{S=!0});return S?qa:R}else return pt(y)?y:qa}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ie(r.plural)&&(d.pluralIndex=r.plural),d}function Xa(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,c,u,f]=ko(...t),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn;ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,y=gi(e,u),S=i(e,s,y);if(!G(l)||l==="")return new Intl.DateTimeFormat(y,f).format(c);let w={},R,D=null;const E="datetime format";for(let N=0;N{Gu.includes(l)?i[l]=n[l]:o[l]=n[l]}),G(r)?o.locale=r:oe(r)&&(i=r),oe(s)&&(i=s),[o.key||"",a,o,i]}function Ja(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Qa(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=Fo(...t),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn;ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,y=gi(e,u),S=i(e,s,y);if(!G(l)||l==="")return new Intl.NumberFormat(y,f).format(c);let w={},R,D=null;const E="number format";for(let N=0;N{Yu.includes(l)?i[l]=n[l]:o[l]=n[l]}),G(r)?o.locale=r:oe(r)&&(i=r),oe(s)&&(i=s),[o.key||"",a,o,i]}function Za(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}bg();const p_="9.14.5";function m_(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Bt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Bt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Bt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Bt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Bt().__INTLIFY_PROD_DEVTOOLS__=!1)}const g_=Yg.__EXTEND_POINT__,Ut=Ms(g_);Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut(),Ut();const qu=bt.__EXTEND_POINT__,ot=Ms(qu),xe={UNEXPECTED_RETURN_TYPE:qu,INVALID_ARGUMENT:ot(),MUST_BE_CALL_SETUP_TOP:ot(),NOT_INSTALLED:ot(),NOT_AVAILABLE_IN_LEGACY_MODE:ot(),REQUIRED_VALUE:ot(),INVALID_VALUE:ot(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ot(),NOT_INSTALLED_WITH_PROVIDE:ot(),UNEXPECTED_ERROR:ot(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ot(),BRIDGE_SUPPORT_VUE_2_ONLY:ot(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ot(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ot(),__EXTEND_POINT__:ot()};function $e(e,...t){return nr(e,null,void 0)}const Do=_n("__translateVNode"),Mo=_n("__datetimeParts"),Uo=_n("__numberParts"),zu=_n("__setPluralRules"),Xu=_n("__injectWithOption"),$o=_n("__dispose");function kr(e){if(!de(e)||kt(e))return e;for(const t in e)if(yt(e,t))if(!t.includes("."))de(e[t])&&kr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||_e(),rs(c,i[l])):rs(c,i)}else G(a)&&rs(JSON.parse(a),i)}),s==null&&o)for(const a in i)yt(i,a)&&kr(i[a]);return i}function Ju(e){return e.type}function Qu(e,t,n){let r=de(t.messages)?t.messages:_e();"__i18nGlobal"in n&&(r=$s(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(de(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(de(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function el(e){return Oe($r,null,e,0)}const tl="__INTLIFY_META__",nl=()=>[],__=()=>!1;let rl=0;function sl(e){return((t,n,r,s)=>e(n,r,zt()||void 0,s))}const y_=()=>{const e=zt();let t=null;return e&&(t=Ju(e)[tl])?{[tl]:t}:null};function yi(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,o=e.flatJson,i=ys?it:oi,a=!!e.translateExistCompatible;let l=ae(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&l?n.locale.value:G(e.locale)?e.locale:Jn),u=i(n&&l?n.fallbackLocale.value:G(e.fallbackLocale)||Ce(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=i($s(c.value,e)),d=i(oe(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),m=i(oe(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=n?n.missingWarn:ae(e.missingWarn)||mn(e.missingWarn)?e.missingWarn:!0,S=n?n.fallbackWarn:ae(e.fallbackWarn)||mn(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,R=!!e.fallbackFormat,D=Se(e.missing)?e.missing:null,E=Se(e.missing)?sl(e.missing):null,v=Se(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const x=n?n.modifiers:oe(e.modifiers)?e.modifiers:{};let V=e.pluralRules||n&&n.pluralRules,L;L=(()=>{s&&Ka(null);const T={version:p_,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:x,pluralRules:V,missing:E===null?void 0:E,missingWarn:y,fallbackWarn:S,fallbackFormat:R,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:O,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=m.value,T.__datetimeFormatters=oe(L)?L.__datetimeFormatters:void 0,T.__numberFormatters=oe(L)?L.__numberFormatters:void 0;const k=s_(T);return s&&Ka(k),k})(),lr(L,c.value,u.value);function Z(){return[c.value,u.value,f.value,d.value,m.value]}const $=Ee({get:()=>c.value,set:T=>{c.value=T,L.locale=c.value}}),X=Ee({get:()=>u.value,set:T=>{u.value=T,L.fallbackLocale=u.value,lr(L,c.value,T)}}),ue=Ee(()=>f.value),Pe=Ee(()=>d.value),te=Ee(()=>m.value);function ee(){return Se(v)?v:null}function re(T){v=T,L.postTranslation=T}function Fe(){return D}function Ye(T){T!==null&&(E=sl(T)),D=T,L.missing=E}const he=(T,k,J,le,Ae,tt)=>{Z();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,s||(L.fallbackContext=n?r_():void 0),Ve=T(L)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(L.fallbackContext=void 0)}if(J!=="translate exists"&&Ie(Ve)&&Ve===Us||J==="translate exists"&&!Ve){const[En,Gs]=k();return n&&w?le(n):Ae(En)}else{if(tt(Ve))return Ve;throw $e(xe.UNEXPECTED_RETURN_TYPE)}};function ge(...T){return he(k=>Reflect.apply(za,null,[k,...T]),()=>xo(...T),"translate",k=>Reflect.apply(k.t,k,[...T]),k=>k,k=>G(k))}function qe(...T){const[k,J,le]=T;if(le&&!de(le))throw $e(xe.INVALID_ARGUMENT);return ge(k,J,Ge({resolvedMessage:!0},le||{}))}function De(...T){return he(k=>Reflect.apply(Xa,null,[k,...T]),()=>ko(...T),"datetime format",k=>Reflect.apply(k.d,k,[...T]),()=>Wa,k=>G(k))}function ct(...T){return he(k=>Reflect.apply(Qa,null,[k,...T]),()=>Fo(...T),"number format",k=>Reflect.apply(k.n,k,[...T]),()=>Wa,k=>G(k))}function Me(T){return T.map(k=>G(k)||Ie(k)||ae(k)?el(String(k)):k)}const Y={normalize:Me,interpolate:T=>T,type:"vnode"};function j(...T){return he(k=>{let J;const le=k;try{le.processor=Y,J=Reflect.apply(za,null,[le,...T])}finally{le.processor=null}return J},()=>xo(...T),"translate",k=>k[Do](...T),k=>[el(k)],k=>Ce(k))}function z(...T){return he(k=>Reflect.apply(Qa,null,[k,...T]),()=>Fo(...T),"number format",k=>k[Uo](...T),nl,k=>G(k)||Ce(k))}function fe(...T){return he(k=>Reflect.apply(Xa,null,[k,...T]),()=>ko(...T),"datetime format",k=>k[Mo](...T),nl,k=>G(k)||Ce(k))}function g(T){V=T,L.pluralRules=V}function b(T,k){return he(()=>{if(!T)return!1;const J=G(k)?k:c.value,le=U(J),Ae=L.messageResolver(le,T);return a?Ae!=null:kt(Ae)||pt(Ae)||G(Ae)},()=>[T],"translate exists",J=>Reflect.apply(J.te,J,[T,k]),__,J=>ae(J))}function _(T){let k=null;const J=Du(L,u.value,c.value);for(let le=0;le{l&&(c.value=T,L.locale=T,lr(L,c.value,u.value))}),un(n.fallbackLocale,T=>{l&&(u.value=T,L.fallbackLocale=T,lr(L,c.value,u.value))}));const H={id:rl,locale:$,fallbackLocale:X,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,lr(L,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:ue,get modifiers(){return x},get pluralRules(){return V||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(T){y=T,L.missingWarn=y},get fallbackWarn(){return S},set fallbackWarn(T){S=T,L.fallbackWarn=S},get fallbackRoot(){return w},set fallbackRoot(T){w=T},get fallbackFormat(){return R},set fallbackFormat(T){R=T,L.fallbackFormat=R},get warnHtmlMessage(){return O},set warnHtmlMessage(T){O=T,L.warnHtmlMessage=T},get escapeParameter(){return N},set escapeParameter(T){N=T,L.escapeParameter=T},t:ge,getLocaleMessage:U,setLocaleMessage:F,mergeLocaleMessage:B,getPostTranslationHandler:ee,setPostTranslationHandler:re,getMissingHandler:Fe,setMissingHandler:Ye,[zu]:g};return H.datetimeFormats=Pe,H.numberFormats=te,H.rt=qe,H.te=b,H.tm=P,H.d=De,H.n=ct,H.getDateTimeFormat=W,H.setDateTimeFormat=h,H.mergeDateTimeFormat=p,H.getNumberFormat=C,H.setNumberFormat=I,H.mergeNumberFormat=K,H[Xu]=r,H[Do]=j,H[Mo]=fe,H[Uo]=z,H}function b_(e){const t=G(e.locale)?e.locale:Jn,n=G(e.fallbackLocale)||Ce(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Se(e.missing)?e.missing:void 0,s=ae(e.silentTranslationWarn)||mn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=ae(e.silentFallbackWarn)||mn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ae(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=oe(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Se(e.postTranslation)?e.postTranslation:void 0,f=G(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=ae(e.sync)?e.sync:!0;let y=e.messages;if(oe(e.sharedMessages)){const N=e.sharedMessages;y=Object.keys(N).reduce((V,L)=>{const q=V[L]||(V[L]={});return Ge(q,N[L]),V},y||{})}const{__i18n:S,__root:w,__injectWithOption:R}=e,D=e.datetimeFormats,E=e.numberFormats,v=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:y,flatJson:v,datetimeFormats:D,numberFormats:E,missing:r,missingWarn:s,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:O,__i18n:S,__root:w,__injectWithOption:R}}function Vo(e={},t){{const n=yi(b_(e)),{__extender:r}=e,s={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return ae(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=ae(o)?!o:o},get silentFallbackWarn(){return ae(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=ae(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[i,a,l]=o,c={};let u=null,f=null;if(!G(i))throw $e(xe.INVALID_ARGUMENT);const d=i;return G(a)?c.locale=a:Ce(a)?u=a:oe(a)&&(f=a),Ce(l)?u=l:oe(l)&&(f=l),Reflect.apply(n.t,n,[d,u||f||{},c])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[i,a,l]=o,c={plural:1};let u=null,f=null;if(!G(i))throw $e(xe.INVALID_ARGUMENT);const d=i;return G(a)?c.locale=a:Ie(a)?c.plural=a:Ce(a)?u=a:oe(a)&&(f=a),G(l)?c.locale=l:Ce(l)?u=l:oe(l)&&(f=l),Reflect.apply(n.t,n,[d,u||f||{},c])},te(o,i){return n.te(o,i)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,i){n.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){n.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,i){n.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){n.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,i){n.setNumberFormat(o,i)},mergeNumberFormat(o,i){n.mergeNumberFormat(o,i)},getChoiceIndex(o,i){return-1}};return s.__extender=r,s}}const bi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function E_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ue?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},_e())}function Zu(e){return Ue}const v_=Xt({name:"i18n-t",props:Ge({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},bi),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Hr({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),i=_e();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=G(e.plural)?+e.plural:e.plural);const a=E_(t,o),l=s[Do](e.keypath,a,i),c=Ge(_e(),r),u=G(e.tag)||de(e.tag)?e.tag:Zu();return pn(u,c,l)}}}),ol=v_;function S_(e){return Ce(e)&&!G(e[0])}function ef(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let a=_e();e.locale&&(i.locale=e.locale),G(e.format)?i.key=e.format:de(e.format)&&(G(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Ge(_e(),d,{[m]:e.format[m]}):d,_e()));const l=r(e.value,i,a);let c=[i.key];Ce(l)?c=l.map((d,m)=>{const y=s[d.type],S=y?y({[d.type]:d.value,index:m,parts:l}):[d.value];return S_(S)&&(S[0].key=`${d.type}-${m}`),S}):G(l)&&(c=[l]);const u=Ge(_e(),o),f=G(e.tag)||de(e.tag)?e.tag:Zu();return pn(f,u,c)}}const w_=Xt({name:"i18n-n",props:Ge({value:{type:Number,required:!0},format:{type:[String,Object]}},bi),setup(e,t){const n=e.i18n||Hr({useScope:e.scope,__useComponent:!0});return ef(e,t,Yu,(...r)=>n[Uo](...r))}}),il=w_,T_=Xt({name:"i18n-d",props:Ge({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bi),setup(e,t){const n=e.i18n||Hr({useScope:e.scope,__useComponent:!0});return ef(e,t,Gu,(...r)=>n[Mo](...r))}}),al=T_;function C_(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function L_(e){const t=i=>{const{instance:a,modifiers:l,value:c}=i;if(!a||!a.$)throw $e(xe.UNEXPECTED_ERROR);const u=C_(e,a.$),f=ll(c);return[Reflect.apply(u.t,u,[...cl(f)]),u]};return{created:(i,a)=>{const[l,c]=t(a);ys&&e.global===c&&(i.__i18nWatcher=un(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{ys&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=ll(a);i.textContent=Reflect.apply(l.t,l,[...cl(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function ll(e){if(G(e))return{path:e};if(oe(e)){if(!("path"in e))throw $e(xe.REQUIRED_VALUE,"path");return e}else throw $e(xe.INVALID_VALUE)}function cl(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};return G(n)&&(i.locale=n),Ie(s)&&(i.plural=s),Ie(o)&&(i.plural=o),[t,a,i]}function P_(e,t,...n){const r=oe(n[0])?n[0]:{},s=!!r.useI18nComponentName;(!ae(r.globalInstall)||r.globalInstall)&&([s?"i18n":ol.name,"I18nT"].forEach(i=>e.component(i,ol)),[il.name,"I18nN"].forEach(i=>e.component(i,il)),[al.name,"I18nD"].forEach(i=>e.component(i,al))),e.directive("t",L_(t))}function A_(e,t,n){return{beforeCreate(){const r=zt();if(!r)throw $e(xe.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const o=s.i18n;if(s.__i18n&&(o.__i18n=s.__i18n),o.__root=t,this===this.$root)this.$i18n=ul(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Vo(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ul(e,s);else{this.$i18n=Vo({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Qu(t,s,s),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=zt();if(!r)throw $e(xe.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function ul(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[zu](t.pluralizationRules||e.pluralizationRules);const n=$s(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const O_=_n("global-vue-i18n");function R_(e={},t){const n=__VUE_I18N_LEGACY_API__&&ae(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ae(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[i,a]=N_(e,n),l=_n("");function c(d){return o.get(d)||null}function u(d,m){o.set(d,m)}function f(d){o.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(m,...y){if(m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,d),oe(y[0])){const R=y[0];d.__composerExtend=R.__composerExtend,d.__vueI18nExtend=R.__vueI18nExtend}let S=null;!n&&r&&(S=V_(m,d.global)),__VUE_I18N_FULL_INSTALL__&&P_(m,d,...y),__VUE_I18N_LEGACY_API__&&n&&m.mixin(A_(a,a.__composer,d));const w=m.unmount;m.unmount=()=>{S&&S(),d.dispose(),w()}},get global(){return a},dispose(){i.stop()},__instances:o,__getInstance:c,__setInstance:u,__deleteInstance:f};return d}}function Hr(e={}){const t=zt();if(t==null)throw $e(xe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $e(xe.NOT_INSTALLED);const n=I_(t),r=k_(n),s=Ju(t),o=x_(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw $e(xe.NOT_AVAILABLE_IN_LEGACY_MODE);return U_(t,o,r,e)}if(o==="global")return Qu(r,e,s),r;if(o==="parent"){let l=F_(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Ge({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=yi(l),i.__composerExtend&&(a[$o]=i.__composerExtend(a)),M_(i,t,a),i.__setInstance(t,a)}return a}function N_(e,t,n){const r=Xo();{const s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Vo(e)):r.run(()=>yi(e));if(s==null)throw $e(xe.UNEXPECTED_ERROR);return[r,s]}}function I_(e){{const t=et(e.isCE?O_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $e(e.isCE?xe.NOT_INSTALLED_WITH_PROVIDE:xe.UNEXPECTED_ERROR);return t}}function x_(e,t){return Ds(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function k_(e){return e.mode==="composition"?e.global:e.global.__composer}function F_(e,t,n=!1){let r=null;const s=t.root;let o=D_(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(r=a.__composer,n&&r&&!r[Xu]&&(r=null))}if(r!=null||s===o)break;o=o.parent}return r}function D_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function M_(e,t,n){er(()=>{},t),tr(()=>{const r=n;e.__deleteInstance(t);const s=r[$o];s&&(s(),delete r[$o])},t)}function U_(e,t,n,r={}){const s=t==="local",o=oi(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw $e(xe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=ae(r.inheritLocale)?r.inheritLocale:!G(r.locale),a=it(!s||i?n.locale.value:G(r.locale)?r.locale:Jn),l=it(!s||i?n.fallbackLocale.value:G(r.fallbackLocale)||Ce(r.fallbackLocale)||oe(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=it($s(a.value,r)),u=it(oe(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=it(oe(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=s?n.missingWarn:ae(r.missingWarn)||mn(r.missingWarn)?r.missingWarn:!0,m=s?n.fallbackWarn:ae(r.fallbackWarn)||mn(r.fallbackWarn)?r.fallbackWarn:!0,y=s?n.fallbackRoot:ae(r.fallbackRoot)?r.fallbackRoot:!0,S=!!r.fallbackFormat,w=Se(r.missing)?r.missing:null,R=Se(r.postTranslation)?r.postTranslation:null,D=s?n.warnHtmlMessage:ae(r.warnHtmlMessage)?r.warnHtmlMessage:!0,E=!!r.escapeParameter,v=s?n.modifiers:oe(r.modifiers)?r.modifiers:{},O=r.pluralRules||s&&n.pluralRules;function N(){return[a.value,l.value,c.value,u.value,f.value]}const x=Ee({get:()=>o.value?o.value.locale.value:a.value,set:_=>{o.value&&(o.value.locale.value=_),a.value=_}}),V=Ee({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:_=>{o.value&&(o.value.fallbackLocale.value=_),l.value=_}}),L=Ee(()=>o.value?o.value.messages.value:c.value),q=Ee(()=>u.value),Z=Ee(()=>f.value);function $(){return o.value?o.value.getPostTranslationHandler():R}function X(_){o.value&&o.value.setPostTranslationHandler(_)}function ue(){return o.value?o.value.getMissingHandler():w}function Pe(_){o.value&&o.value.setMissingHandler(_)}function te(_){return N(),_()}function ee(..._){return o.value?te(()=>Reflect.apply(o.value.t,null,[..._])):te(()=>"")}function re(..._){return o.value?Reflect.apply(o.value.rt,null,[..._]):""}function Fe(..._){return o.value?te(()=>Reflect.apply(o.value.d,null,[..._])):te(()=>"")}function Ye(..._){return o.value?te(()=>Reflect.apply(o.value.n,null,[..._])):te(()=>"")}function he(_){return o.value?o.value.tm(_):{}}function ge(_,P){return o.value?o.value.te(_,P):!1}function qe(_){return o.value?o.value.getLocaleMessage(_):{}}function De(_,P){o.value&&(o.value.setLocaleMessage(_,P),c.value[_]=P)}function ct(_,P){o.value&&o.value.mergeLocaleMessage(_,P)}function Me(_){return o.value?o.value.getDateTimeFormat(_):{}}function M(_,P){o.value&&(o.value.setDateTimeFormat(_,P),u.value[_]=P)}function Y(_,P){o.value&&o.value.mergeDateTimeFormat(_,P)}function j(_){return o.value?o.value.getNumberFormat(_):{}}function z(_,P){o.value&&(o.value.setNumberFormat(_,P),f.value[_]=P)}function fe(_,P){o.value&&o.value.mergeNumberFormat(_,P)}const g={get id(){return o.value?o.value.id:-1},locale:x,fallbackLocale:V,messages:L,datetimeFormats:q,numberFormats:Z,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(_){o.value&&(o.value.inheritLocale=_)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:v},get pluralRules(){return o.value?o.value.pluralRules:O},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:d},set missingWarn(_){o.value&&(o.value.missingWarn=_)},get fallbackWarn(){return o.value?o.value.fallbackWarn:m},set fallbackWarn(_){o.value&&(o.value.missingWarn=_)},get fallbackRoot(){return o.value?o.value.fallbackRoot:y},set fallbackRoot(_){o.value&&(o.value.fallbackRoot=_)},get fallbackFormat(){return o.value?o.value.fallbackFormat:S},set fallbackFormat(_){o.value&&(o.value.fallbackFormat=_)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:D},set warnHtmlMessage(_){o.value&&(o.value.warnHtmlMessage=_)},get escapeParameter(){return o.value?o.value.escapeParameter:E},set escapeParameter(_){o.value&&(o.value.escapeParameter=_)},t:ee,getPostTranslationHandler:$,setPostTranslationHandler:X,getMissingHandler:ue,setMissingHandler:Pe,rt:re,d:Fe,n:Ye,tm:he,te:ge,getLocaleMessage:qe,setLocaleMessage:De,mergeLocaleMessage:ct,getDateTimeFormat:Me,setDateTimeFormat:M,mergeDateTimeFormat:Y,getNumberFormat:j,setNumberFormat:z,mergeNumberFormat:fe};function b(_){_.locale.value=a.value,_.fallbackLocale.value=l.value,Object.keys(c.value).forEach(P=>{_.mergeLocaleMessage(P,c.value[P])}),Object.keys(u.value).forEach(P=>{_.mergeDateTimeFormat(P,u.value[P])}),Object.keys(f.value).forEach(P=>{_.mergeNumberFormat(P,f.value[P])}),_.escapeParameter=E,_.fallbackFormat=S,_.fallbackRoot=y,_.fallbackWarn=m,_.missingWarn=d,_.warnHtmlMessage=D}return yc(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw $e(xe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const _=o.value=e.proxy.$i18n.__composer;t==="global"?(a.value=_.locale.value,l.value=_.fallbackLocale.value,c.value=_.messages.value,u.value=_.datetimeFormats.value,f.value=_.numberFormats.value):s&&b(_)}),g}const $_=["locale","fallbackLocale","availableLocales"],fl=["t","rt","d","n","tm","te"];function V_(e,t){const n=Object.create(null);return $_.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o)throw $e(xe.UNEXPECTED_ERROR);const i=Le(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,fl.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o||!o.value)throw $e(xe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,o)}),()=>{delete e.config.globalProperties.$i18n,fl.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}m_();__INTLIFY_JIT_COMPILATION__?ja(c_):ja(l_);Zg(xg);e_(Du);if(__INTLIFY_PROD_DEVTOOLS__){const e=Bt();e.__INTLIFY__=!0,Wg(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const H_={common:{confirm:"确认",cancel:"取消",close:"关闭",delete:"删除",edit:"编辑",save:"保存",add:"添加",back:"返回",next:"下一页",previous:"上一页",loading:"加载中...",success:"成功",error:"错误",warning:"警告",info:"信息",search:"搜索",copy:"复制",uploadSuccess:"上传成功",uploadFailed:"上传失败",copySuccess:"复制成功",copyFailed:"复制失败",deleteSuccess:"删除成功",deleteFailed:"删除失败",downloadSuccess:"下载成功",downloadFailed:"下载失败",shareSuccess:"分享成功",shareFailed:"分享失败",expiredFile:"文件已过期",fileNotFound:"文件不存在",networkError:"网络错误",unknownError:"未知错误",invalidFileType:"不支持的文件类型",fileTooLarge:"文件过大",uploadCanceled:"上传已取消",processing:"处理中...",pleaseWait:"请稍候...",fileDetails:"文件详情",enabled:"已开启",disabled:"已关闭",minute:"分钟",files:"个文件",second:"秒",hour:"小时",day:"天",times:"次",appName:"文件快递柜 - FileCodeBox",appDescription:"开箱即用的文件快传系统"},admin:{dashboard:{title:"仪表盘",totalFiles:"总文件数",storageSpace:"存储空间",activeUsers:"活跃用户",systemStatus:"系统状态",yesterday:"昨天:",today:"今天:",weeklyChange:"↓ 5% 较上周",normal:"正常",serverUptime:"服务器运行时间:",version:"版本 v2.2.1 更新时间:2025-09-04"},fileManage:{title:"文件管理"},settings:{title:"系统设置",basicSettings:"基本设置",websiteInfo:"网站基本信息",websiteName:"网站名称",websiteDescription:"网站描述",siteName:"网站名称",adminPassword:"管理员密码",passwordPlaceholder:"如需修改请输入新密码",passwordNote:"不修改请留空",keywords:"SEO 关键词",themeSelection:"界面主题",robotsFile:"Robots.txt 配置",notificationSettings:"通知设置",notificationTitle:"公告标题",notificationContent:"公告内容",storageSettings:"存储配置",storagePath:"文件存储路径",storagePathPlaceholder:"使用默认路径可留空",storageMethod:"存储方式",localStorage:"本地存储",s3Storage:"S3 对象存储",webdavStorage:"WebDAV 存储",chunkUploadNote:"分片上传(实验性功能,大文件上传更稳定)",s3AccessKeyId:"Access Key ID",s3SecretAccessKey:"Secret Access Key",s3BucketName:"存储桶名称",s3EndpointUrl:"服务端点 URL",s3RegionName:"区域名称",s3SignatureVersion:"签名版本",s3Hostname:"自定义域名",s3v2:"S3v2",s3v4:"S3v4",autoPlaceholder:"自动识别",enabled:"已启用",disabled:"已禁用",webdavUrl:"输入 WebDAV 服务地址",webdavUsername:"输入 WebDAV 用户名",webdavPassword:"输入 WebDAV 密码",webdavUrlPlaceholder:"输入 WebDAV 服务地址",webdavUsernamePlaceholder:"输入 WebDAV 用户名",webdavPasswordPlaceholder:"输入 WebDAV 密码",enableProxy:"启用下载代理",uploadLimits:"上传设置",uploadRateLimit:"限流时间窗口(在此时间内限制上传次数)",uploadPerMinute:"限流时间窗口(在此时间内限制上传次数)",minute:"分钟",uploadCountLimit:"允许上传文件数(限流窗口内最多上传几个文件)",files:"个文件",fileSizeLimit:"单文件大小上限",expirationMethod:"过期方式",expirationType:"过期方式",expiration:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},maxSaveTime:"文件最长保存时间",timeUnits:{second:"秒",minute:"分钟",hour:"小时",day:"天"},guestUpload:"允许游客上传",errorLimits:"访问保护",errorRateLimit:"检测时间窗口(在此时间内统计错误次数)",errorPerMinute:"检测时间窗口(在此时间内统计错误次数)",errorCountLimit:"允许错误次数(超过后临时封禁)",times:"次",saveChanges:"保存设置",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"}}},nav:{sendFile:"发送文件",retrieveFile:"取件",fileRecords:"取件记录"},retrieve:{title:"文件取件",codeInput:{placeholder:"请输入5位取件码",label:"取件码"},submit:"取件",needSendFile:"需要发送文件?点击这里",recordsDrawer:"取件记录",messages:{invalidCode:"请输入5位取件码",retrieveSuccess:"文件获取成功",invalidCodeError:"无效的取件码",retrieveFailure:"获取文件失败:",networkError:"取件失败,请稍后重试:",unknownError:"未知错误"}},send:{title:"文件发送",sendText:"发送文本",fileDetails:"文件详情",expirationMethod:"过期方式",uploadArea:{dragText:"拖拽文件到此处或",clickText:"点击选择文件",textInput:"在此输入要发送的文本...",placeholder:"点击或拖放文件到此处上传",description:"支持各种常见格式"},submit:"安全寄送",needRetrieveFile:"需要取件?点击这里",sendRecords:"发件记录",secureEncryption:"安全加密",fileDetail:{title:"文件详情",content:"文件内容",previewContent:"预览内容",download:"点击下载",qrCode:"取件二维码",scanQrCode:"扫描二维码快速取件"},contentPreview:{title:"内容预览"},fileManage:{title:"文件管理",searchPlaceholder:"搜索文件名称、描述...",allFiles:"所有文件",editFileInfo:"编辑文件信息",saveChanges:"保存更改",headers:{code:"取件码",name:"名称",size:"大小",description:"描述",expiration:"过期时间",actions:"操作"},form:{code:"取件码",codePlaceholder:"输入取件码",filename:"文件名称",filenamePlaceholder:"输入文件名称",suffix:"文件后缀",suffixPlaceholder:"输入文件后缀",downloadLimit:"下载次数限制",downloadLimitPlaceholder:"输入下载次数限制"}},expiration:{label:"过期时间",placeholders:{days:"输入天数",hours:"输入小时数",minutes:"输入分钟数",count:"输入查看次数",forever:"永久",default:"输入值"},units:{days:"天",hours:"小时",minutes:"分钟",times:"次",forever:"永久"}},time:{day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"},messages:{selectFile:"请选择要上传的文件",enterText:"请输入要发送的文本",enterExpirationValue:"请输入过期值",expirationTooLong:"过期时间不能超过{days}天",sendSuccess:"文件发送成功!取件码:{code}",initChunkUploadFailed:"初始化切片上传失败",chunkUploadFailed:"切片 {index} 上传失败",completeUploadFailed:"完成上传失败",uploadFailed:"上传失败,请稍后重试",guestUploadDisabled:"游客上传功能已关闭",fileSizeExceeded:"文件大小超过限制 ({size})",serverError:"服务器响应异常",sendFailed:"发送失败,请稍后重试",expiresAfterCount:"{count}次后过期",expiresAt:"{date}过期",emptyFileError:"无法读取空文件",fileAddedFromClipboard:"已从剪贴板添加文件:{filename}",fileProcessingFailed:"文件处理失败",expiresAfter:"{value}{unit}后过期"}},fileManage:{title:"文件管理",searchPlaceholder:"搜索文件名称、描述...",allFiles:"所有文件",editFileInfo:"编辑文件信息",saveChanges:"保存更改",viewText:"查看",textPreview:"文本预览",copyText:"复制文本",copySuccess:"文本已复制到剪贴板",copyFailed:"复制失败,请重试",charCount:"共 {count} 个字符",headers:{code:"取件码",name:"名称",size:"大小",description:"描述",expiration:"过期时间",actions:"操作"},form:{code:"取件码",codePlaceholder:"输入取件码",filename:"文件名称",filenamePlaceholder:"输入文件名称",suffix:"文件后缀",suffixPlaceholder:"输入文件后缀",downloadLimit:"下载次数限制",downloadLimitPlaceholder:"输入下载次数限制"}},fileRecord:{filename:"文件名",size:"文件大小",date:"取件日期",code:"取件码",actions:"操作",download:"下载",viewDetails:"查看详情",deleteRecord:"删除记录",preview:"预览",copyContent:"复制内容",contentCopied:"内容已复制到剪贴板",copyFailed:"复制失败,请重试"},fileDetail:{title:"文件详情",content:"文件内容",previewContent:"预览内容",download:"点击下载",qrCode:"取件二维码",scanQrCode:"扫描二维码快速取件"},contentPreview:{title:"内容预览"},drawer:{noRecords:"暂无记录"},fileSize:{bytes:"Bytes",kb:"KB",mb:"MB",gb:"GB",tb:"TB"},manage:{settings:{title:"系统设置",basicSettings:"基本设置",siteName:"网站名称",adminPassword:"管理员密码",passwordPlaceholder:"如需修改请输入新密码",passwordNote:"不修改请留空",keywords:"SEO 关键词",themeSelection:"界面主题",robotsFile:"Robots.txt 配置",notificationSettings:"通知设置",notificationTitle:"公告标题",notificationContent:"公告内容",storageSettings:"存储配置",storagePath:"文件存储路径",storagePathPlaceholder:"使用默认路径可留空",storageMethod:"存储方式",localStorage:"本地存储",s3Storage:"S3 对象存储",webdavStorage:"WebDAV 存储",chunkUploadNote:"分片上传(实验性功能,大文件上传更稳定)",uploadLimits:"上传设置",uploadPerMinute:"限流时间窗口(在此时间内限制上传次数)",uploadCountLimit:"允许上传文件数(限流窗口内最多上传几个文件)",fileSizeLimit:"单文件大小上限",expiration:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},maxSaveTime:"文件最长保存时间",s3AccessKeyId:"Access Key ID",s3SecretAccessKey:"Secret Access Key",s3BucketName:"存储桶名称",s3EndpointUrl:"服务端点 URL",s3RegionName:"区域名称",s3SignatureVersion:"签名版本",s3Hostname:"自定义域名",s3v2:"S3v2",s3v4:"S3v4",autoPlaceholder:"自动识别",enableProxy:"启用下载代理",webdavUrlPlaceholder:"输入 WebDAV 服务地址",webdavUsernamePlaceholder:"输入 WebDAV 用户名",webdavPasswordPlaceholder:"输入 WebDAV 密码",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"},expirationType:"过期方式",guestUpload:"允许游客上传",errorLimits:"访问保护",errorPerMinute:"检测时间窗口(在此时间内统计错误次数)",errorCountLimit:"允许错误次数(超过后临时封禁)",saveChanges:"保存设置"},dashboard:{title:"仪表盘",totalFiles:"总文件数",storageSpace:"存储空间",activeUsers:"活跃用户",systemStatus:"系统状态",yesterday:"昨天:",today:"今天:",weeklyChange:"↓ 5% 较上周",normal:"正常",serverUptime:"服务器运行时间:",version:"版本 v2.2.1 更新时间:2025-09-04"},fileManage:{title:"文件管理",searchPlaceholder:"搜索文件名称、描述...",allFiles:"所有文件",editFileInfo:"编辑文件信息",saveChanges:"保存更改",headers:{code:"取件码",name:"名称",size:"大小",description:"描述",expiration:"过期时间",actions:"操作"},form:{code:"取件码",codePlaceholder:"输入取件码",filename:"文件名称",filenamePlaceholder:"输入文件名称",suffix:"文件后缀",suffixPlaceholder:"输入文件后缀",downloadLimit:"下载次数限制",downloadLimitPlaceholder:"输入下载次数限制"},updateFailed:"更新失败",deleteFailed:"删除失败",loadFileListFailed:"加载文件列表失败"},systemSettings:{title:"系统设置",basicSettings:"基本设置",websiteInfo:"网站基本信息",websiteName:"网站名称",websiteDescription:"网站描述",adminPassword:"管理员密码",passwordPlaceholder:"如需修改请输入新密码",passwordNote:"不修改请留空",keywords:"SEO 关键词",themeSelection:"界面主题",notificationSettings:"通知设置",notificationTitle:"公告标题",notificationContent:"公告内容",storageSettings:"存储配置",storagePath:"文件存储路径",storagePathPlaceholder:"使用默认路径可留空",storageMethod:"存储方式",localStorage:"本地存储",s3Storage:"S3 对象存储",webdavStorage:"WebDAV 存储",chunkUploadNote:"分片上传(实验性功能,大文件上传更稳定)",enabled:"已启用",disabled:"已禁用",webdavUrl:"输入 WebDAV 服务地址",webdavUsername:"输入 WebDAV 用户名",webdavPassword:"输入 WebDAV 密码",enableProxy:"启用下载代理",uploadLimits:"上传设置",uploadRateLimit:"限流时间窗口(在此时间内限制上传次数)",minute:"分钟",uploadCountLimit:"允许上传文件数(限流窗口内最多上传几个文件)",files:"个文件",fileSizeLimit:"单文件大小上限",expirationMethod:"过期方式",expirationMethods:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},expiration:{day:"按天数",hour:"按小时",minute:"按分钟",forever:"永久有效",count:"按下载次数"},maxSaveTime:"文件最长保存时间",timeUnits:{second:"秒",minute:"分钟",hour:"小时",day:"天"},guestUpload:"允许游客上传",errorLimits:"访问保护",errorRateLimit:"检测时间窗口(在此时间内统计错误次数)",errorCountLimit:"允许错误次数(超过后临时封禁)",times:"次",saveSettings:"保存设置",saveSuccess:"设置已保存",saveFailed:"保存失败,请重试",getConfigFailed:"获取配置失败,请刷新页面"},login:{title:"登录",password:"密码",passwordPlaceholder:"密码",loginButton:"登录",loggingIn:"登录中...",invalidPassword:"无效的密码",passwordTooShort:"密码长度至少为6位",loginFailed:"登录失败",noValidToken:"登录失败:未获取到有效令牌"}},utils:{common:{formatTime:"格式化时间戳为可读格式",formatFileSize:"格式化文件大小",formatDuration:"格式化持续时间",time:{forever:"永久",day:"天",hour:"小时",minute:"分钟",second:"秒"},copyToClipboard:"复制文本到剪贴板",copyFailed:"复制失败:",debounce:"防抖函数",throttle:"节流函数",validateEmail:"验证邮箱格式",validateUrl:"验证URL格式",generateRandomString:"生成随机字符串",deepClone:"深度克隆对象",getFileExtension:"获取文件扩展名",isMobileDevice:"检查是否为移动设备",formatNumber:"格式化数字,添加千分位分隔符"},clipboard:{title:"剪贴板工具函数",copyText:"复制文本到剪贴板",copySuccess:"复制成功",copyFailed:"复制失败,请手动复制"}},components:{pagination:{showing:"显示第",to:"到",of:"条,共",total:"条",previous:"上一页",next:"下一页"},languageSwitcher:{clickOutsideToClose:"点击外部关闭下拉菜单"},borderProgressBar:{borderWidth:"边框宽度",cornerRadius:"拐角半径",createGradient:"创建渐变",drawBackground:"绘制背景",calculateProgress:"计算进度",drawProgress:"绘制进度"}},misc:{emptyFileError:"无法读取空文件",fileAddedFromClipboard:"已从剪贴板添加文件:",fileProcessFailed:"文件处理失败",chunkSize:"保持 2MB 的切片大小用于计算哈希",secureContext:"如果不是安全上下文(HTTP),则返回一个基于文件信息的替代哈希",cryptoFallback:"如果 crypto.subtle.digest 失败,使用替代方案",generateAlternativeHash:"生成替代哈希的函数",fileInfoHash:"使用文件名、大小和最后修改时间生成一个简单的哈希",convertToHex:"转换为16进制字符串并填充到64位",defaultChunkSize:"默认切片大小为5MB",initChunkUpload:"1. 初始化切片上传",uploadChunk:"2. 上传切片",completeUpload:"3. 完成上传",chunkUploadFailed:"切片上传失败:",uploadProgressListener:"添加上传进度监听",noLimitCheck:"如果没有限制,直接返回true",expirationValidation:"添加过期时间验证",chunkUploadReplacement:"使用切片上传替代原来的直接上传",textUploadUnchanged:"文本上传保持不变",addSendRecord:"添加新的发送记录",permanent:"永久",sendSuccessMessage:"显示发送成功消息",resetForm:"重置表单 - 只重置文件和文本内容,保留过期信息",showDetails:"显示详情",autoCopyLink:"自动复制取件码链接",delayedLoading:"使用 onMounted 钩子延迟加载一些非关键资源或初始化",nonCriticalInit:"这里可以放置一些非立即需要的初始化代码"}},W_={common:{confirm:"Confirm",cancel:"Cancel",close:"Close",delete:"Delete",edit:"Edit",save:"Save",add:"Add",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",noData:"No Data",success:"Success",error:"Error",warning:"Warning",info:"Information",search:"Search",copy:"Copy",uploadSuccess:"Upload successful",uploadFailed:"Upload failed",copySuccess:"Copy successful",copyFailed:"Copy failed",deleteSuccess:"Delete successful",deleteFailed:"Delete failed",downloadSuccess:"Download successful",downloadFailed:"Download failed",shareSuccess:"Share successful",shareFailed:"Share failed",expiredFile:"File has expired",fileNotFound:"File not found",networkError:"Network error",unknownError:"Unknown error",invalidFileType:"Invalid file type",fileTooLarge:"File too large",uploadCanceled:"Upload canceled",processing:"Processing",pleaseWait:"Please wait",fileDetails:"File Details",enabled:"Enabled",disabled:"Disabled",minute:"minute",files:"files",second:"second",hour:"hour",day:"day",times:"times",appName:"FileCodeBox - File Transfer",appDescription:"Ready-to-use file transfer system"},admin:{dashboard:{title:"Dashboard",totalFiles:"Total Files",storageSpace:"Storage Space",activeUsers:"Active Users",systemStatus:"System Status",yesterday:"Yesterday:",today:"Today:",weeklyChange:"↓ 5% from last week",normal:"Normal",serverUptime:"Server Uptime:",version:"Version v2.2.1 Updated: 2025-09-04"},fileManage:{title:"File Management"},settings:{title:"System Settings",basicSettings:"General",websiteInfo:"Site Information",websiteName:"Site Name",websiteDescription:"Site Description",siteName:"Site Name",adminPassword:"Admin Password",passwordPlaceholder:"Enter new password to change",passwordNote:"Leave empty to keep current",keywords:"SEO Keywords",themeSelection:"Theme",robotsFile:"Robots.txt Configuration",notificationSettings:"Notifications",notificationTitle:"Announcement Title",notificationContent:"Announcement Content",storageSettings:"Storage",storagePath:"Storage Path",storagePathPlaceholder:"Leave empty for default path",storageMethod:"Storage Type",localStorage:"Local Storage",s3Storage:"S3 Object Storage",webdavStorage:"WebDAV Storage",chunkUploadNote:"Chunked Upload (experimental, better for large files)",s3AccessKeyId:"Access Key ID",s3SecretAccessKey:"Secret Access Key",s3BucketName:"Bucket Name",s3EndpointUrl:"Endpoint URL",s3RegionName:"Region Name",s3SignatureVersion:"Signature Version",s3Hostname:"Custom Domain",s3v2:"S3v2",s3v4:"S3v4",autoPlaceholder:"Auto-detect",enabled:"Enabled",disabled:"Disabled",webdavUrl:"Enter WebDAV server URL",webdavUsername:"Enter WebDAV username",webdavPassword:"Enter WebDAV password",webdavUrlPlaceholder:"Enter WebDAV server URL",webdavUsernamePlaceholder:"Enter WebDAV username",webdavPasswordPlaceholder:"Enter WebDAV password",enableProxy:"Enable Download Proxy",uploadLimits:"Upload Settings",uploadRateLimit:"Time Window (limit uploads within this period)",uploadPerMinute:"Time Window (limit uploads within this period)",minute:"min",uploadCountLimit:"Max Files Allowed (within the time window)",files:"files",fileSizeLimit:"Max File Size",expirationMethod:"Expiration Options",expirationType:"Expiration Options",expiration:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},maxSaveTime:"Max Retention Period",timeUnits:{second:"sec",minute:"min",hour:"hr",day:"day"},guestUpload:"Allow Guest Uploads",errorLimits:"Access Protection",errorRateLimit:"Detection Window (count errors within this period)",errorPerMinute:"Detection Window (count errors within this period)",errorCountLimit:"Max Errors Allowed (block after exceeding)",times:"times",saveChanges:"Save Settings",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"}}},nav:{sendFile:"Send File",retrieveFile:"Retrieve",fileRecords:"File Records"},retrieve:{title:"File Retrieval",codeInput:{placeholder:"Enter 5-digit retrieval code",label:"Retrieval Code"},submit:"Retrieve",needSendFile:"Need to send a file? Click here",recordsDrawer:"Retrieval Records",messages:{invalidCode:"Please enter a 5-digit retrieval code",retrieveSuccess:"File retrieved successfully",invalidCodeError:"Invalid retrieval code",retrieveFailure:"Failed to retrieve file: ",networkError:"Retrieval failed, please try again later: ",unknownError:"Unknown error"}},send:{title:"File Send",sendText:"Send Text",uploadArea:{dragText:"Drag files here or",clickText:"click to select files",textInput:"Enter text to send here...",placeholder:"Click or drag files here to upload",description:"Supports various common formats"},submit:"Secure Send",needRetrieveFile:"Need to retrieve? Click here",sendRecords:"Send Records",secureEncryption:"Secure Encryption",fileDetails:"File Details",expirationMethod:"Expiration Method",expiration:{day:"By Day",hour:"By Hour",minute:"By Minute",forever:"Forever",count:"By Count",label:"Expiration Time",placeholders:{days:"Enter days",hours:"Enter hours",minutes:"Enter minutes",count:"Enter view count",forever:"Forever",default:"Enter value"},units:{days:"days",hours:"hours",minutes:"minutes",times:"times",forever:"Forever"}},time:{day:"By Day",hour:"By Hour",minute:"By Minute",forever:"Forever",count:"By Count"},messages:{selectFile:"Please select a file to upload",enterText:"Please enter text to send",enterExpirationValue:"Please enter expiration value",expirationTooLong:"Expiration time cannot exceed {days} days",sendSuccess:"File sent successfully! Retrieve code: {code}",initChunkUploadFailed:"Failed to initialize chunk upload",chunkUploadFailed:"Chunk {index} upload failed",completeUploadFailed:"Failed to complete upload",uploadFailed:"Upload failed, please try again later",guestUploadDisabled:"Guest upload feature is disabled",fileSizeExceeded:"File size exceeds limit ({size})",serverError:"Server response error",sendFailed:"Send failed, please try again later",expiresAfterCount:"Expires after {count} times",expiresAt:"Expires at {date}",emptyFileError:"Cannot read empty file",fileAddedFromClipboard:"File added from clipboard: {filename}",fileProcessingFailed:"File processing failed",expiresAfter:"Expires after {value} {unit}"}},fileRecord:{filename:"Filename",size:"Size",date:"Date",code:"Code",actions:"Actions",download:"Download",viewDetails:"View Details",deleteRecord:"Delete Record",preview:"Preview",copyContent:"Copy Content",contentCopied:"Content copied to clipboard",copyFailed:"Copy failed, please try again"},fileDetail:{title:"File Details",content:"File Content",previewContent:"Preview Content",download:"Click to Download",qrCode:"Retrieve QR Code",scanQrCode:"Scan QR code for quick retrieval"},contentPreview:{title:"Content Preview"},fileManage:{title:"File Management",searchPlaceholder:"Search file name, description...",allFiles:"All Files",editFileInfo:"Edit File Information",saveChanges:"Save Changes",viewText:"View",textPreview:"Text Preview",copyText:"Copy Text",copySuccess:"Text copied to clipboard",copyFailed:"Copy failed, please try again",charCount:"{count} characters",headers:{code:"Retrieve Code",name:"Name",size:"Size",description:"Description",expiration:"Expiration",actions:"Actions"},form:{code:"Retrieve Code",codePlaceholder:"Enter retrieve code",filename:"File Name",filenamePlaceholder:"Enter file name",suffix:"File Extension",suffixPlaceholder:"Enter file extension",downloadLimit:"Download Limit",downloadLimitPlaceholder:"Enter download limit"}},drawer:{noRecords:"No records"},manage:{settings:{title:"System Settings",basicSettings:"General",websiteInfo:"Site Information",websiteName:"Site Name",websiteDescription:"Site Description",siteName:"Site Name",adminPassword:"Admin Password",passwordPlaceholder:"Enter new password to change",passwordNote:"Leave empty to keep current",keywords:"SEO Keywords",themeSelection:"Theme",notificationSettings:"Notifications",notificationTitle:"Announcement Title",notificationContent:"Announcement Content",storageSettings:"Storage",storagePath:"Storage Path",storagePathPlaceholder:"Leave empty for default path",storageMethod:"Storage Type",localStorage:"Local Storage",s3Storage:"S3 Object Storage",webdavStorage:"WebDAV Storage",chunkUploadNote:"Chunked Upload (experimental, better for large files)",enabled:"Enabled",disabled:"Disabled",webdavUrl:"Enter WebDAV server URL",webdavUsername:"Enter WebDAV username",webdavPassword:"Enter WebDAV password",webdavUrlPlaceholder:"Enter WebDAV server URL",webdavUsernamePlaceholder:"Enter WebDAV username",webdavPasswordPlaceholder:"Enter WebDAV password",enableProxy:"Enable Download Proxy",uploadLimits:"Upload Settings",uploadRateLimit:"Time Window (limit uploads within this period)",uploadPerMinute:"Time Window (limit uploads within this period)",minute:"min",uploadCountLimit:"Max Files Allowed (within the time window)",files:"files",fileSizeLimit:"Max File Size",expirationMethod:"Expiration Options",expirationType:"Expiration Options",expiration:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},maxSaveTime:"Max Retention Period",timeUnits:{second:"sec",minute:"min",hour:"hr",day:"day"},guestUpload:"Allow Guest Uploads",errorLimits:"Access Protection",errorRateLimit:"Detection Window (count errors within this period)",errorPerMinute:"Detection Window (count errors within this period)",errorCountLimit:"Max Errors Allowed (block after exceeding)",times:"times",fileSizeUnits:{kb:"KB",mb:"MB",gb:"GB"},saveChanges:"Save Settings"},systemSettings:{title:"System Settings",basicSettings:"General",websiteInfo:"Site Information",websiteName:"Site Name",websiteDescription:"Site Description",adminPassword:"Admin Password",passwordPlaceholder:"Enter new password to change",passwordNote:"Leave empty to keep current",keywords:"SEO Keywords",themeSelection:"Theme",notificationSettings:"Notifications",notificationTitle:"Announcement Title",notificationContent:"Announcement Content",storageSettings:"Storage",storagePath:"Storage Path",storagePathPlaceholder:"Leave empty for default path",storageMethod:"Storage Type",localStorage:"Local Storage",s3Storage:"S3 Object Storage",webdavStorage:"WebDAV Storage",chunkUploadNote:"Chunked Upload (experimental, better for large files)",enabled:"Enabled",disabled:"Disabled",webdavUrl:"Enter WebDAV server URL",webdavUsername:"Enter WebDAV username",webdavPassword:"Enter WebDAV password",enableProxy:"Enable Download Proxy",uploadLimits:"Upload Settings",uploadRateLimit:"Time Window (limit uploads within this period)",minute:"min",uploadCountLimit:"Max Files Allowed (within the time window)",files:"files",fileSizeLimit:"Max File Size",expirationMethod:"Expiration Options",expirationMethods:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},expiration:{day:"Days",hour:"Hours",minute:"Minutes",forever:"Never Expire",count:"Download Count"},maxSaveTime:"Max Retention Period",timeUnits:{second:"sec",minute:"min",hour:"hr",day:"day"},guestUpload:"Allow Guest Uploads",errorLimits:"Access Protection",errorRateLimit:"Detection Window (count errors within this period)",errorCountLimit:"Max Errors Allowed (block after exceeding)",times:"times",saveSettings:"Save Settings",saveSuccess:"Settings saved successfully",saveFailed:"Failed to save, please try again",getConfigFailed:"Failed to load settings, please refresh"},dashboard:{title:"Dashboard",totalFiles:"Total Files",storageSpace:"Storage Space",activeUsers:"Active Users",systemStatus:"System Status",yesterday:"Yesterday:",today:"Today:",weeklyChange:"↓ 5% from last week",normal:"Normal",serverUptime:"Server Uptime:",version:"Version v2.2.1 Updated: 2025-09-04"},fileManage:{title:"File Management",searchPlaceholder:"Search file name, description...",allFiles:"All Files",editFileInfo:"Edit File Info",saveChanges:"Save Changes",headers:{code:"Code",name:"Name",size:"Size",description:"Description",expiration:"Expiration",actions:"Actions"},form:{code:"Code",codePlaceholder:"Enter code",filename:"File Name",filenamePlaceholder:"Enter file name",suffix:"File Suffix",suffixPlaceholder:"Enter file suffix",downloadLimit:"Download Limit",downloadLimitPlaceholder:"Enter download limit"},updateFailed:"Update failed",deleteFailed:"Delete failed",loadFileListFailed:"Failed to load file list"},login:{title:"Login",password:"Password",passwordPlaceholder:"Password",loginButton:"Login",loggingIn:"Logging in...",invalidPassword:"Invalid password",passwordTooShort:"Password must be at least 6 characters",loginFailed:"Login failed",noValidToken:"Login failed: No valid token received"}},fileSize:{bytes:"Bytes",kb:"KB",mb:"MB",gb:"GB",tb:"TB"},utils:{formatTime:"Format timestamp to readable format",formatFileSize:"Format file size",formatDuration:"Format duration",time:{forever:"Forever",day:"day",hour:"hour",minute:"minute",second:"second"},copyToClipboard:"Copy text to clipboard",copyFailed:"Copy failed:",debounce:"Debounce function",throttle:"Throttle function",validateEmail:"Validate email format",validateUrl:"Validate URL format",generateRandomString:"Generate random string",deepClone:"Deep clone object",getFileExtension:"Get file extension",isMobileDevice:"Check if mobile device",formatNumber:"Format number with thousand separators",clipboard:{title:"Clipboard utility functions",copyText:"Copy text to clipboard",copySuccess:"Copy successful",copyFailed:"Copy failed, please copy manually"}},components:{pagination:{showing:"Showing",to:"to",of:"of",total:"total",previous:"Previous",next:"Next"},languageSwitcher:{clickOutsideToClose:"Click outside to close dropdown menu"},borderProgressBar:{borderWidth:"Border width",cornerRadius:"Corner radius",createGradient:"Create gradient",drawBackground:"Draw background",calculateProgress:"Calculate progress",drawProgress:"Draw progress"}},misc:{emptyFileError:"Cannot read empty file",fileAddedFromClipboard:"File added from clipboard: ",fileProcessFailed:"File processing failed",chunkSize:"Keep 2MB chunk size for hash calculation",secureContext:"If not in secure context (HTTP), return an alternative hash based on file info",cryptoFallback:"If crypto.subtle.digest fails, use fallback method",generateAlternativeHash:"Function to generate alternative hash",fileInfoHash:"Generate simple hash using filename, size and last modified time",convertToHex:"Convert to hex string and pad to 64 bits",defaultChunkSize:"Default chunk size is 5MB",initChunkUpload:"1. Initialize chunk upload",uploadChunk:"2. Upload chunk",completeUpload:"3. Complete upload",chunkUploadFailed:"Chunk upload failed: ",uploadProgressListener:"Add upload progress listener",noLimitCheck:"If no limit, return true directly",expirationValidation:"Add expiration time validation",chunkUploadReplacement:"Use chunk upload to replace direct upload",textUploadUnchanged:"Text upload remains unchanged",addSendRecord:"Add new send record",permanent:"Permanent",sendSuccessMessage:"Show send success message",resetForm:"Reset form - only reset file and text content, keep expiration info",showDetails:"Show details",autoCopyLink:"Auto copy retrieve code link",delayedLoading:"Use onMounted hook to delay load non-critical resources or initialization",nonCriticalInit:"Place non-immediately needed initialization code here"}},B_=()=>{const e=localStorage.getItem("locale");return e||(navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en-US")},j_={"zh-CN":H_,"en-US":W_},tf=R_({legacy:!1,locale:B_(),fallbackLocale:"zh-CN",messages:j_,globalInjection:!0}),K_=e=>{tf.global.locale.value=e,localStorage.setItem("locale",e),document.documentElement.lang=e},ho=[{code:"zh-CN",name:"中文"},{code:"en-US",name:"English"}],G_={class:"relative"},Y_={class:"text-sm font-medium"},q_={class:"py-1"},z_=["onClick"],X_=Xt({__name:"LanguageSwitcher",setup(e){const{locale:t}=Hr(),n=et("isDarkMode"),r=it(!1),s=Ee(()=>t.value),o=Ee(()=>ho.find(c=>c.code===s.value)||ho[0]),i=()=>{r.value=!r.value},a=c=>{K_(c),r.value=!1},l=c=>{c.target.closest(".relative")||(r.value=!1)};return er(()=>{document.addEventListener("click",l)}),tr(()=>{document.removeEventListener("click",l)}),(c,u)=>(Ke(),jt("div",G_,[We("button",{onClick:i,class:Nt(["flex items-center space-x-2 px-3 py-2 rounded-lg transition-all duration-200",Te(n)?"bg-gray-800/60 hover:bg-gray-700/80 text-gray-300 hover:text-white":"bg-gray-100 hover:bg-gray-200 text-gray-700 hover:text-gray-900"])},[Oe(Te(Lm),{class:"w-4 h-4"}),We("span",Y_,Er(o.value.name),1),Oe(Te(wm),{class:Nt(["w-4 h-4 transition-transform duration-200",{"rotate-180":r.value}])},null,8,["class"])],2),Oe(Qc,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:Tr(()=>[r.value?(Ke(),jt("div",{key:0,class:Nt(["absolute right-0 mt-2 w-32 rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 z-50",Te(n)?"bg-gray-800 border border-gray-700":"bg-white border border-gray-200"])},[We("div",q_,[(Ke(!0),jt(Ue,null,Cc(Te(ho),f=>(Ke(),jt("button",{key:f.code,onClick:d=>a(f.code),class:Nt(["w-full text-left px-4 py-2 text-sm transition-colors duration-150",s.value===f.code?Te(n)?"bg-indigo-600 text-white":"bg-indigo-50 text-indigo-600":Te(n)?"text-gray-300 hover:bg-gray-700 hover:text-white":"text-gray-700 hover:bg-gray-100"])},Er(f.name),11,z_))),128))])],2)):Gc("",!0)]),_:1})]))}}),dl={COLOR_MODE:"colorMode",ADMIN_PASSWORD:"adminPassword",TOKEN:"token",CONFIG:"config",NOTIFY:"notify"},He={LIGHT:"light",DARK:"dark",SYSTEM:"system"},nE={IDLE:"idle",UPLOADING:"uploading",SUCCESS:"success",ERROR:"error"},rE={MAX_FILE_SIZE:100*1024*1024},nf={ALERT_DURATION:5e3,REQUEST_TIMEOUT:3e8},rf=dp("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=nf.ALERT_DURATION){const r=Date.now(),s=Date.now();this.alerts.push({id:r,message:e,type:t,progress:100,duration:n,startTime:s}),setTimeout(()=>this.removeAlert(r),n)},removeAlert(e){const t=this.alerts.findIndex(n=>n.id===e);t>-1&&this.alerts.splice(t,1)},updateAlertProgress(e){const t=this.alerts.find(n=>n.id===e);if(t){const r=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,r),t.progress<=0&&this.removeAlert(e)}}}}),J_={class:"p-4"},Q_={class:"flex items-start"},Z_={class:"flex-shrink-0"},ey={class:"ml-3 flex-1 pt-0.5"},ty={class:"text-sm font-medium text-white"},ny={class:"ml-4 flex-shrink-0 flex"},ry=["onClick"],sy={class:"sr-only"},oy={class:"h-1 bg-white bg-opacity-25"},iy=Xt({__name:"AlertComponent",setup(e){const{t}=Hr(),n=rf(),{alerts:r}=hp(n),{removeAlert:s,updateAlertProgress:o}=n,i={success:"from-green-500 to-green-600",error:"from-red-500 to-red-600",warning:"from-yellow-500 to-yellow-600",info:"from-blue-500 to-blue-600"},a={success:Cm,error:Rm,warning:Tm,info:Pm};let l;return er(()=>{l=setInterval(()=>{r.value.forEach(c=>{o(c.id)})},100)}),tr(()=>{clearInterval(l)}),(c,u)=>(Ke(),dn(Gh,{name:"alert-fade",tag:"div",class:"fixed top-4 left-4 z-50 w-full sm:max-w-sm md:max-w-md space-y-4 px-4 sm:px-0"},{default:Tr(()=>[(Ke(!0),jt(Ue,null,Cc(Te(r),f=>(Ke(),jt("div",{key:f.id,class:Nt(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",i[f.type]])},[We("div",J_,[We("div",Q_,[We("div",Z_,[(Ke(),dn(wc(a[f.type]),{class:"h-6 w-6 text-white"}))]),We("div",ey,[We("p",ty,Er(f.message),1)]),We("div",ny,[We("button",{onClick:d=>Te(s)(f.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[We("span",sy,Er(Te(t)("common.close")),1),Oe(Te(Nm),{class:"h-5 w-5"})],8,ry)])])]),We("div",oy,[We("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Cs({width:`${f.progress}%`})},null,4)])],2))),128))]),_:1}))}}),ay=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ly=ay(iy,[["__scopeId","data-v-59f86e5f"]]);function sf(e,t){return function(){return e.apply(t,arguments)}}const{toString:cy}=Object.prototype,{getPrototypeOf:Ei}=Object,{iterator:Vs,toStringTag:of}=Symbol,Hs=(e=>t=>{const n=cy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tt=e=>(e=e.toLowerCase(),t=>Hs(t)===e),Ws=e=>t=>typeof t===e,{isArray:rr}=Array,Qn=Ws("undefined");function Wr(e){return e!==null&&!Qn(e)&&e.constructor!==null&&!Qn(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const af=Tt("ArrayBuffer");function uy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&af(e.buffer),t}const fy=Ws("string"),at=Ws("function"),lf=Ws("number"),Br=e=>e!==null&&typeof e=="object",dy=e=>e===!0||e===!1,ss=e=>{if(Hs(e)!=="object")return!1;const t=Ei(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(of in e)&&!(Vs in e)},hy=e=>{if(!Br(e)||Wr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},py=Tt("Date"),my=Tt("File"),gy=Tt("Blob"),_y=Tt("FileList"),yy=e=>Br(e)&&at(e.pipe),by=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Hs(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ey=Tt("URLSearchParams"),[vy,Sy,wy,Ty]=["ReadableStream","Request","Response","Headers"].map(Tt),Cy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),rr(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uf=e=>!Qn(e)&&e!==On;function Ho(){const{caseless:e,skipUndefined:t}=uf(this)&&this||{},n={},r=(s,o)=>{const i=e&&cf(n,o)||o;ss(n[i])&&ss(s)?n[i]=Ho(n[i],s):ss(s)?n[i]=Ho({},s):rr(s)?n[i]=s.slice():(!t||!Qn(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s(jr(t,(s,o)=>{n&&at(s)?e[o]=sf(s,n):e[o]=s},{allOwnKeys:r}),e),Py=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ay=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Oy=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Ei(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ry=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ny=e=>{if(!e)return null;if(rr(e))return e;let t=e.length;if(!lf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Iy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ei(Uint8Array)),xy=(e,t)=>{const r=(e&&e[Vs]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},ky=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Fy=Tt("HTMLFormElement"),Dy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),hl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),My=Tt("RegExp"),ff=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Uy=e=>{ff(e,(t,n)=>{if(at(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(at(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$y=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return rr(e)?r(e):r(String(e).split(t)),n},Vy=()=>{},Hy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Wy(e){return!!(e&&at(e.append)&&e[of]==="FormData"&&e[Vs])}const By=e=>{const t=new Array(10),n=(r,s)=>{if(Br(r)){if(t.indexOf(r)>=0)return;if(Wr(r))return r;if(!("toJSON"in r)){t[s]=r;const o=rr(r)?[]:{};return jr(r,(i,a)=>{const l=n(i,s+1);!Qn(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},jy=Tt("AsyncFunction"),Ky=e=>e&&(Br(e)||at(e))&&at(e.then)&&at(e.catch),df=((e,t)=>e?setImmediate:t?((n,r)=>(On.addEventListener("message",({source:s,data:o})=>{s===On&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),On.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",at(On.postMessage)),Gy=typeof queueMicrotask<"u"?queueMicrotask.bind(On):typeof process<"u"&&process.nextTick||df,Yy=e=>e!=null&&at(e[Vs]),A={isArray:rr,isArrayBuffer:af,isBuffer:Wr,isFormData:by,isArrayBufferView:uy,isString:fy,isNumber:lf,isBoolean:dy,isObject:Br,isPlainObject:ss,isEmptyObject:hy,isReadableStream:vy,isRequest:Sy,isResponse:wy,isHeaders:Ty,isUndefined:Qn,isDate:py,isFile:my,isBlob:gy,isRegExp:My,isFunction:at,isStream:yy,isURLSearchParams:Ey,isTypedArray:Iy,isFileList:_y,forEach:jr,merge:Ho,extend:Ly,trim:Cy,stripBOM:Py,inherits:Ay,toFlatObject:Oy,kindOf:Hs,kindOfTest:Tt,endsWith:Ry,toArray:Ny,forEachEntry:xy,matchAll:ky,isHTMLForm:Fy,hasOwnProperty:hl,hasOwnProp:hl,reduceDescriptors:ff,freezeMethods:Uy,toObjectSet:$y,toCamelCase:Dy,noop:Vy,toFiniteNumber:Hy,findKey:cf,global:On,isContextDefined:uf,isSpecCompliantForm:Wy,toJSONObject:By,isAsyncFn:jy,isThenable:Ky,setImmediate:df,asap:Gy,isIterable:Yy};function ie(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}A.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const hf=ie.prototype,pf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pf[e]={value:e}});Object.defineProperties(ie,pf);Object.defineProperty(hf,"isAxiosError",{value:!0});ie.from=(e,t,n,r,s,o)=>{const i=Object.create(hf);A.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ie.call(i,a,l,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const qy=null;function Wo(e){return A.isPlainObject(e)||A.isArray(e)}function mf(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function pl(e,t,n){return e?e.concat(t).map(function(s,o){return s=mf(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function zy(e){return A.isArray(e)&&!e.some(Wo)}const Xy=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!A.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(s))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(A.isDate(y))return y.toISOString();if(A.isBoolean(y))return y.toString();if(!l&&A.isBlob(y))throw new ie("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(y)||A.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,S,w){let R=y;if(y&&!w&&typeof y=="object"){if(A.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(A.isArray(y)&&zy(y)||(A.isFileList(y)||A.endsWith(S,"[]"))&&(R=A.toArray(y)))return S=mf(S),R.forEach(function(E,v){!(A.isUndefined(E)||E===null)&&t.append(i===!0?pl([S],v,o):i===null?S:S+"[]",c(E))}),!1}return Wo(y)?!0:(t.append(pl(w,S,o),c(y)),!1)}const f=[],d=Object.assign(Xy,{defaultVisitor:u,convertValue:c,isVisitable:Wo});function m(y,S){if(!A.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(y),A.forEach(y,function(R,D){(!(A.isUndefined(R)||R===null)&&s.call(t,R,A.isString(D)?D.trim():D,S,d))===!0&&m(R,S?S.concat(D):[D])}),f.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ml(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vi(e,t){this._pairs=[],e&&Bs(e,this,t)}const gf=vi.prototype;gf.append=function(t,n){this._pairs.push([t,n])};gf.toString=function(t){const n=t?function(r){return t.call(this,r,ml)}:ml;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _f(e,t,n){if(!t)return e;const r=n&&n.encode||Jy;A.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=A.isURLSearchParams(t)?t.toString():new vi(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class gl{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qy=typeof URLSearchParams<"u"?URLSearchParams:vi,Zy=typeof FormData<"u"?FormData:null,eb=typeof Blob<"u"?Blob:null,tb={isBrowser:!0,classes:{URLSearchParams:Qy,FormData:Zy,Blob:eb},protocols:["http","https","file","blob","url","data"]},Si=typeof window<"u"&&typeof document<"u",Bo=typeof navigator=="object"&&navigator||void 0,nb=Si&&(!Bo||["ReactNative","NativeScript","NS"].indexOf(Bo.product)<0),rb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sb=Si&&window.location.href||"http://localhost",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Si,hasStandardBrowserEnv:nb,hasStandardBrowserWebWorkerEnv:rb,navigator:Bo,origin:sb},Symbol.toStringTag,{value:"Module"})),Ze={...ob,...tb};function ib(e,t){return Bs(e,new Ze.classes.URLSearchParams,{visitor:function(n,r,s,o){return Ze.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function ab(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lb(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&A.isArray(s)?s.length:i,l?(A.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!A.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&A.isArray(s[i])&&(s[i]=lb(s[i])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,s)=>{t(ab(r),s,n,0)}),n}return null}function cb(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kr={transitional:yf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=A.isObject(t);if(o&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return s?JSON.stringify(bf(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ib(t,this.formSerializer).toString();if((a=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),cb(t)):t}],transformResponse:[function(t){const n=this.transitional||Kr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const ub=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fb=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ub[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_l=Symbol("internals");function cr(e){return e&&String(e).trim().toLowerCase()}function os(e){return e===!1||e==null?e:A.isArray(e)?e.map(os):String(e)}function db(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const hb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function po(e,t,n,r,s){if(A.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function pb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function mb(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let lt=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,c){const u=cr(l);if(!u)throw new Error("header name must be a non-empty string");const f=A.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=os(a))}const i=(a,l)=>A.forEach(a,(c,u)=>o(c,u,l));if(A.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(A.isString(t)&&(t=t.trim())&&!hb(t))i(fb(t),n);else if(A.isObject(t)&&A.isIterable(t)){let a={},l,c;for(const u of t){if(!A.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?A.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=cr(t),t){const r=A.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return db(s);if(A.isFunction(n))return n.call(this,s,r);if(A.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cr(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||po(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=cr(i),i){const a=A.findKey(r,i);a&&(!n||po(r,r[a],a,n))&&(delete r[a],s=!0)}}return A.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||po(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return A.forEach(this,(s,o)=>{const i=A.findKey(r,o);if(i){n[i]=os(s),delete n[o];return}const a=t?pb(o):String(o).trim();a!==o&&delete n[o],n[a]=os(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[_l]=this[_l]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=cr(i);r[a]||(mb(s,i),r[a]=!0)}return A.isArray(t)?t.forEach(o):o(t),this}};lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(lt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(lt);function mo(e,t){const n=this||Kr,r=t||n,s=lt.from(r.headers);let o=r.data;return A.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ef(e){return!!(e&&e.__CANCEL__)}function sr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(sr,ie,{__CANCEL__:!0});function vf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _b(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];i||(i=c),n[s]=l,r[s]=c;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i{n=u,s=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const Es=(e,t,n=3)=>{let r=0;const s=_b(50,250);return yb(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,c=s(l),u=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},yl=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bl=e=>(...t)=>A.asap(()=>e(...t)),bb=Ze.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ze.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ze.origin),Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent)):()=>!0,Eb=Ze.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];A.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),A.isString(r)&&a.push(`path=${r}`),A.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),A.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sf(e,t,n){let r=!vb(t);return e&&(r||n==!1)?Sb(e,t):t}const El=e=>e instanceof lt?{...e}:e;function Fn(e,t){t=t||{};const n={};function r(c,u,f,d){return A.isPlainObject(c)&&A.isPlainObject(u)?A.merge.call({caseless:d},c,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function s(c,u,f,d){if(A.isUndefined(u)){if(!A.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function o(c,u){if(!A.isUndefined(u))return r(void 0,u)}function i(c,u){if(A.isUndefined(u)){if(!A.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u,f)=>s(El(c),El(u),f,!0)};return A.forEach(Object.keys({...e,...t}),function(u){const f=l[u]||s,d=f(e[u],t[u],u);A.isUndefined(d)&&f!==a||(n[u]=d)}),n}const wf=e=>{const t=Fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;if(t.headers=i=lt.from(i),t.url=_f(Sf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),A.isFormData(n)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,f])=>{c.includes(u.toLowerCase())&&i.set(u,f)})}}if(Ze.hasStandardBrowserEnv&&(r&&A.isFunction(r)&&(r=r(t)),r||r!==!1&&bb(t.url))){const l=s&&o&&Eb.read(o);l&&i.set(s,l)}return t},wb=typeof XMLHttpRequest<"u",Tb=wb&&function(e){return new Promise(function(n,r){const s=wf(e);let o=s.data;const i=lt.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,u,f,d,m,y;function S(){m&&m(),y&&y(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function R(){if(!w)return;const E=lt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:E,config:e,request:w};vf(function(x){n(x),S()},function(x){r(x),S()},O),w=null}"onloadend"in w?w.onloadend=R:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(R)},w.onabort=function(){w&&(r(new ie("Request aborted",ie.ECONNABORTED,e,w)),w=null)},w.onerror=function(v){const O=v&&v.message?v.message:"Network Error",N=new ie(O,ie.ERR_NETWORK,e,w);N.event=v||null,r(N),w=null},w.ontimeout=function(){let v=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||yf;s.timeoutErrorMessage&&(v=s.timeoutErrorMessage),r(new ie(v,O.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,w)),w=null},o===void 0&&i.setContentType(null),"setRequestHeader"in w&&A.forEach(i.toJSON(),function(v,O){w.setRequestHeader(O,v)}),A.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),a&&a!=="json"&&(w.responseType=s.responseType),c&&([d,y]=Es(c,!0),w.addEventListener("progress",d)),l&&w.upload&&([f,m]=Es(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",m)),(s.cancelToken||s.signal)&&(u=E=>{w&&(r(!E||E.type?new sr(null,e,w):E),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const D=gb(s.url);if(D&&Ze.protocols.indexOf(D)===-1){r(new ie("Unsupported protocol "+D+":",ie.ERR_BAD_REQUEST,e));return}w.send(o||null)})},Cb=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(c){if(!s){s=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof ie?u:new sr(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>A.asap(a),l}},Lb=function*(e,t){let n=e.byteLength;if(n{const s=Pb(e,t);let o=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await s.next();if(c){a(),l.close();return}let f=u.byteLength;if(n){let d=o+=f;n(d)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Sl=64*1024,{isFunction:Zr}=A,Ob=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:wl,TextEncoder:Tl}=A.global,Cl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rb=e=>{e=A.merge.call({skipUndefined:!0},Ob,e);const{fetch:t,Request:n,Response:r}=e,s=t?Zr(t):typeof fetch=="function",o=Zr(n),i=Zr(r);if(!s)return!1;const a=s&&Zr(wl),l=s&&(typeof Tl=="function"?(y=>S=>y.encode(S))(new Tl):async y=>new Uint8Array(await new n(y).arrayBuffer())),c=o&&a&&Cl(()=>{let y=!1;const S=new n(Ze.origin,{body:new wl,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),u=i&&a&&Cl(()=>A.isReadableStream(new r("").body)),f={stream:u&&(y=>y.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!f[y]&&(f[y]=(S,w)=>{let R=S&&S[y];if(R)return R.call(S);throw new ie(`Response type '${y}' is not supported`,ie.ERR_NOT_SUPPORT,w)})});const d=async y=>{if(y==null)return 0;if(A.isBlob(y))return y.size;if(A.isSpecCompliantForm(y))return(await new n(Ze.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(A.isArrayBufferView(y)||A.isArrayBuffer(y))return y.byteLength;if(A.isURLSearchParams(y)&&(y=y+""),A.isString(y))return(await l(y)).byteLength},m=async(y,S)=>{const w=A.toFiniteNumber(y.getContentLength());return w??d(S)};return async y=>{let{url:S,method:w,data:R,signal:D,cancelToken:E,timeout:v,onDownloadProgress:O,onUploadProgress:N,responseType:x,headers:V,withCredentials:L="same-origin",fetchOptions:q}=wf(y),Z=t||fetch;x=x?(x+"").toLowerCase():"text";let $=Cb([D,E&&E.toAbortSignal()],v),X=null;const ue=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let Pe;try{if(N&&c&&w!=="get"&&w!=="head"&&(Pe=await m(V,R))!==0){let he=new n(S,{method:"POST",body:R,duplex:"half"}),ge;if(A.isFormData(R)&&(ge=he.headers.get("content-type"))&&V.setContentType(ge),he.body){const[qe,De]=yl(Pe,Es(bl(N)));R=vl(he.body,Sl,qe,De)}}A.isString(L)||(L=L?"include":"omit");const te=o&&"credentials"in n.prototype,ee={...q,signal:$,method:w.toUpperCase(),headers:V.normalize().toJSON(),body:R,duplex:"half",credentials:te?L:void 0};X=o&&new n(S,ee);let re=await(o?Z(X,q):Z(S,ee));const Fe=u&&(x==="stream"||x==="response");if(u&&(O||Fe&&ue)){const he={};["status","statusText","headers"].forEach(ct=>{he[ct]=re[ct]});const ge=A.toFiniteNumber(re.headers.get("content-length")),[qe,De]=O&&yl(ge,Es(bl(O),!0))||[];re=new r(vl(re.body,Sl,qe,()=>{De&&De(),ue&&ue()}),he)}x=x||"text";let Ye=await f[A.findKey(f,x)||"text"](re,y);return!Fe&&ue&&ue(),await new Promise((he,ge)=>{vf(he,ge,{data:Ye,headers:lt.from(re.headers),status:re.status,statusText:re.statusText,config:y,request:X})})}catch(te){throw ue&&ue(),te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,y,X),{cause:te.cause||te}):ie.from(te,te&&te.code,y,X)}}},Nb=new Map,Tf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,a=i,l,c,u=Nb;for(;a--;)l=o[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:Rb(t)),u=c;return c};Tf();const wi={http:qy,xhr:Tb,fetch:{get:Tf}};A.forEach(wi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ll=e=>`- ${e}`,Ib=e=>A.isFunction(e)||e===null||e===!1;function xb(e,t){e=A.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since : `+i.map(Ll).join(` `):" "+Ll(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Cf={getAdapter:xb,adapters:wi};function go(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sr(null,e)}function Pl(e){return go(e),e.headers=lt.from(e.headers),e.data=mo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cf.getAdapter(e.adapter||Kr.adapter,e)(e).then(function(r){return go(e),r.data=mo.call(e,e.transformResponse,r),r.headers=lt.from(r.headers),r},function(r){return Ef(r)||(go(e),r&&r.response&&(r.response.data=mo.call(e,e.transformResponse,r.response),r.response.headers=lt.from(r.response.headers))),Promise.reject(r)})}const Lf="1.13.2",js={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{js[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Al={};js.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Lf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new ie(s(i," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Al[i]&&(Al[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};js.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function kb(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new ie("option "+o+" must be "+l,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+o,ie.ERR_BAD_OPTION)}}const is={assertOptions:kb,validators:js},Pt=is.validators;let xn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gl,response:new gl}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&is.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),s!=null&&(A.isFunction(s)?n.paramsSerializer={serialize:s}:is.assertOptions(s,{encode:Pt.function,serialize:Pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),is.assertOptions(n,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&A.merge(o.common,o[n.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=lt.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let u,f=0,d;if(!l){const y=[Pl.bind(this),void 0];for(y.unshift(...a),y.push(...c),d=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new sr(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pf(function(s){t=s}),cancel:t}}};function Db(e){return function(n){return e.apply(null,n)}}function Mb(e){return A.isObject(e)&&e.isAxiosError===!0}const jo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jo).forEach(([e,t])=>{jo[t]=e});function Af(e){const t=new xn(e),n=sf(xn.prototype.request,t);return A.extend(n,xn.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Af(Fn(e,s))},n}const Ne=Af(Kr);Ne.Axios=xn;Ne.CanceledError=sr;Ne.CancelToken=Fb;Ne.isCancel=Ef;Ne.VERSION=Lf;Ne.toFormData=Bs;Ne.AxiosError=ie;Ne.Cancel=Ne.CanceledError;Ne.all=function(t){return Promise.all(t)};Ne.spread=Db;Ne.isAxiosError=Mb;Ne.mergeConfig=Fn;Ne.AxiosHeaders=lt;Ne.formToJSON=e=>bf(A.isHTMLForm(e)?new FormData(e):e);Ne.getAdapter=Cf.getAdapter;Ne.HttpStatusCode=jo;Ne.default=Ne;const{Axios:iE,AxiosError:aE,CanceledError:lE,isCancel:cE,CancelToken:uE,VERSION:fE,all:dE,Cancel:hE,isAxiosError:pE,spread:mE,toFormData:gE,AxiosHeaders:_E,HttpStatusCode:yE,formToJSON:bE,getAdapter:EE,mergeConfig:vE}=Ne,Ub="",Of=Ub,we=Ne.create({baseURL:Of,timeout:nf.REQUEST_TIMEOUT,headers:{"Content-Type":"application/json"}});we.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${Of}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));we.interceptors.response.use(e=>e.data,e=>{if(e.response){const{status:t}=e.response;t===401&&(localStorage.removeItem("token"),window.location.hash!=="#/login"&&(window.location.href="/#/login"))}else e.request;return Promise.reject(e)});class $b{static async getConfig(){return we.get("/admin/config/get")}static async getUserConfig(){return we.post("/")}static async updateConfig(t){return we.patch("/admin/config/update",t)}}class SE{static async uploadFile(t,n){const r=new FormData;return r.append("file",t),we.post("/share/file/",r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:s=>{if(n&&s.total){const o={loaded:s.loaded,total:s.total,percentage:Math.round(s.loaded*100/s.total)};n(o)}}})}static async uploadText(t){return we.post("/share/text/",{content:t})}static async getFile(t){return we.get(`/file/${t}`)}static async downloadFile(t){return(await we.get(`/download/${t}`,{responseType:"blob"})).data}static async deleteFile(t){return we.post("/admin/file/delete",{id:t})}static async getFileList(t=1,n=10){return we.get("/admin/file/list",{params:{page:t,size:n}})}static async getAdminFileList(t){return we.get("/admin/file/list",{params:t})}static async updateFile(t){return we.patch("/admin/file/update",t)}static async deleteAdminFile(t){return we.delete("/admin/file/delete",{data:{id:t}})}static async downloadAdminFile(t){return we.get("/admin/file/download",{params:{id:t},responseType:"blob"})}}class wE{static async login(t){return we.post("/admin/login",{password:t})}static async logout(){return we.post("/admin/logout")}static async verifyToken(){return we.get("/admin/verify")}}class TE{static async getDashboardStats(){return we.get("/admin/dashboard")}static async getDashboard(){return we.get("/admin/dashboard")}}class CE{static async initUpload(t){return we.post("/presign/upload/init",t)}static async proxyUpload(t,n,r){const s=new FormData;return s.append("file",n),we.put(`/presign/upload/proxy/${t}`,s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:o=>{if(r&&o.total){const i={loaded:o.loaded,total:o.total,percentage:Math.round(o.loaded*100/o.total)};r(i)}}})}static async confirmUpload(t,n){return we.post(`/presign/upload/confirm/${t}`,n||{})}static async getUploadStatus(t){return we.get(`/presign/upload/status/${t}`)}static async cancelUpload(t){return we.delete(`/presign/upload/${t}`)}static async directUploadToS3(t,n,r){try{return await Ne.put(t,n,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:s=>{if(r&&s.total){const o={loaded:s.loaded,total:s.total,percentage:Math.round(s.loaded*100/s.total)};r(o)}}}),!0}catch{return!1}}}function Vb(){const e=it(!1),t=it(He.SYSTEM),n=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>{const f=localStorage.getItem(dl.COLOR_MODE);return f&&Object.values(He).includes(f)?f:null},s=f=>{t.value=f,localStorage.setItem(dl.COLOR_MODE,f),f===He.SYSTEM?e.value=n():e.value=f===He.DARK,o()},o=()=>{const f=document.documentElement;e.value?f.classList.add("dark"):f.classList.remove("dark")},i=()=>{t.value===He.LIGHT?s(He.DARK):t.value===He.DARK?s(He.SYSTEM):s(He.LIGHT)},a=()=>{if(window.matchMedia){const f=window.matchMedia("(prefers-color-scheme: dark)"),d=m=>{t.value===He.SYSTEM&&(e.value=m.matches,o())};return f.addEventListener("change",d),()=>{f.removeEventListener("change",d)}}return()=>{}},l=()=>{const f=r();return s(f||He.SYSTEM),a()},c=Ee(()=>{switch(t.value){case He.LIGHT:return"sun";case He.DARK:return"moon";case He.SYSTEM:return"monitor";default:return"monitor"}}),u=Ee(()=>{switch(t.value){case He.LIGHT:return"浅色模式";case He.DARK:return"深色模式";case He.SYSTEM:return"跟随系统";default:return"跟随系统"}});return{isDarkMode:e,themeMode:t,themeIcon:c,themeLabel:u,setThemeMode:s,toggleTheme:i,initTheme:l,checkSystemColorScheme:n}}const Hb={class:"fixed top-4 right-4 z-50 flex items-center space-x-3"},Wb={key:0,class:"loading-overlay"},Bb=Xt({__name:"App",setup(e){const t=it(!1),n=_m(),r=ym(),s=rf(),{isDarkMode:o,toggleTheme:i,initTheme:a}=Vb();let l=null;return er(()=>{l=a(),$b.getUserConfig().then(c=>{c.code===200&&c.detail&&(localStorage.setItem("config",JSON.stringify(c.detail)),c.detail.notify_title&&c.detail.notify_content&&localStorage.getItem("notify")!==c.detail.notify_title+c.detail.notify_content&&(localStorage.setItem("notify",c.detail.notify_title+c.detail.notify_content),s.showAlert(c.detail.notify_title+": "+c.detail.notify_content,"success")))})}),tr(()=>{l&&l()}),n.beforeEach((c,u,f)=>{t.value=!0,f()}),n.afterEach(()=>{setTimeout(()=>{t.value=!1},200)}),In("isDarkMode",o),In("toggleTheme",i),In("isLoading",t),(c,u)=>(Ke(),jt("div",{class:Nt(["app-container",Te(o)?"dark":"light"])},[We("div",Hb,[Oe(X_),Oe(Im,{modelValue:Te(o),"onUpdate:modelValue":u[0]||(u[0]=f=>Le(o)?o.value=f:null)},null,8,["modelValue"])]),t.value?(Ke(),jt("div",Wb,[...u[1]||(u[1]=[We("div",{class:"loading-spinner"},null,-1)])])):Gc("",!0),Oe(Te(Eu),null,{default:Tr(({Component:f})=>[Oe(Qc,{name:"fade",mode:"out-in"},{default:Tr(()=>[(Ke(),dn(wc(f),{key:Te(r).fullPath}))]),_:2},1024)]),_:1}),Oe(ly)],2))}}),jb="modulepreload",Kb=function(e){return"/"+e},Ol={},Pn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");s=l(n.map(c=>{if(c=Kb(c),c in Ol)return;Ol[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":jb,u||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((m,y)=>{d.addEventListener("load",m),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Gb=()=>Pn(()=>import("./SendFileView-DsVuX-HF.js"),__vite__mapDeps([0,1,2,3,4,5,6])),Yb=mm({history:Kp("/"),routes:[{path:"/",name:"Retrieve",component:()=>Pn(()=>import("./RetrievewFileView-CSTBscGQ.js"),__vite__mapDeps([7,1,2,3,4,8,5,9,10]))},{path:"/send",name:"Send",component:Gb},{path:"/admin",name:"Manage",component:()=>Pn(()=>import("./AdminLayout-V4TGAipv.js"),__vite__mapDeps([11,2,12])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>Pn(()=>import("./DashboardView-Bi1R6Lfw.js"),__vite__mapDeps([13,4,8]))},{path:"/admin/files",name:"FileManage",component:()=>Pn(()=>import("./FileManageView-Dl2tHKSM.js"),__vite__mapDeps([14,9,4,5,15]))},{path:"/admin/settings",name:"Settings",component:()=>Pn(()=>import("./SystemSettingsView-DODzTKap.js"),[])}]},{path:"/login",name:"Login",component:()=>Pn(()=>import("./LoginView-BiEXW3sl.js"),__vite__mapDeps([16,2,17]))}]}),Ks=rp(Bb);Ks.use(ip());Ks.use(Yb);Ks.use(tf);Ks.mount("#app");export{Qb as $,Zb as A,Cs as B,Cm as C,Cc as D,fh as E,rE as F,zb as G,Gh as H,_m as I,we as J,Xb as K,hp as L,ym as M,pn as N,bc as O,CE as P,dp as Q,tr as R,Mr as S,Qc as T,nE as U,TE as V,tE as W,Nm as X,SE as Y,$b as Z,ay as _,jt as a,dl as a0,wE as a1,We as b,Qt as c,Xt as d,Te as e,er as f,Ee as g,eE as h,et as i,Gc as j,dn as k,Oe as l,wc as m,Nt as n,Ke as o,rf as p,tc as q,it as r,Ne as s,Er as t,Hr as u,Tr as v,un as w,qb as x,Ue as y,Jb as z}; +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&is.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),s!=null&&(A.isFunction(s)?n.paramsSerializer={serialize:s}:is.assertOptions(s,{encode:Pt.function,serialize:Pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),is.assertOptions(n,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&A.merge(o.common,o[n.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=lt.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let u,f=0,d;if(!l){const y=[Pl.bind(this),void 0];for(y.unshift(...a),y.push(...c),d=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new sr(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pf(function(s){t=s}),cancel:t}}};function Db(e){return function(n){return e.apply(null,n)}}function Mb(e){return A.isObject(e)&&e.isAxiosError===!0}const jo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jo).forEach(([e,t])=>{jo[t]=e});function Af(e){const t=new xn(e),n=sf(xn.prototype.request,t);return A.extend(n,xn.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Af(Fn(e,s))},n}const Ne=Af(Kr);Ne.Axios=xn;Ne.CanceledError=sr;Ne.CancelToken=Fb;Ne.isCancel=Ef;Ne.VERSION=Lf;Ne.toFormData=Bs;Ne.AxiosError=ie;Ne.Cancel=Ne.CanceledError;Ne.all=function(t){return Promise.all(t)};Ne.spread=Db;Ne.isAxiosError=Mb;Ne.mergeConfig=Fn;Ne.AxiosHeaders=lt;Ne.formToJSON=e=>bf(A.isHTMLForm(e)?new FormData(e):e);Ne.getAdapter=Cf.getAdapter;Ne.HttpStatusCode=jo;Ne.default=Ne;const{Axios:iE,AxiosError:aE,CanceledError:lE,isCancel:cE,CancelToken:uE,VERSION:fE,all:dE,Cancel:hE,isAxiosError:pE,spread:mE,toFormData:gE,AxiosHeaders:_E,HttpStatusCode:yE,formToJSON:bE,getAdapter:EE,mergeConfig:vE}=Ne,Ub="",Of=Ub,we=Ne.create({baseURL:Of,timeout:nf.REQUEST_TIMEOUT,headers:{"Content-Type":"application/json"}});we.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${Of}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));we.interceptors.response.use(e=>e.data,e=>{if(e.response){const{status:t}=e.response;t===401&&(localStorage.removeItem("token"),window.location.hash!=="#/login"&&(window.location.href="/#/login"))}else e.request;return Promise.reject(e)});class $b{static async getConfig(){return we.get("/admin/config/get")}static async getUserConfig(){return we.post("/")}static async updateConfig(t){return we.patch("/admin/config/update",t)}}class SE{static async uploadFile(t,n){const r=new FormData;return r.append("file",t),we.post("/share/file/",r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:s=>{if(n&&s.total){const o={loaded:s.loaded,total:s.total,percentage:Math.round(s.loaded*100/s.total)};n(o)}}})}static async uploadText(t){return we.post("/share/text/",{content:t})}static async getFile(t){return we.get(`/file/${t}`)}static async downloadFile(t){return(await we.get(`/download/${t}`,{responseType:"blob"})).data}static async deleteFile(t){return we.post("/admin/file/delete",{id:t})}static async getFileList(t=1,n=10){return we.get("/admin/file/list",{params:{page:t,size:n}})}static async getAdminFileList(t){return we.get("/admin/file/list",{params:t})}static async updateFile(t){return we.patch("/admin/file/update",t)}static async deleteAdminFile(t){return we.delete("/admin/file/delete",{data:{id:t}})}static async downloadAdminFile(t){return we.get("/admin/file/download",{params:{id:t},responseType:"blob"})}}class wE{static async login(t){return we.post("/admin/login",{password:t})}static async logout(){return we.post("/admin/logout")}static async verifyToken(){return we.get("/admin/verify")}}class TE{static async getDashboardStats(){return we.get("/admin/dashboard")}static async getDashboard(){return we.get("/admin/dashboard")}}class CE{static async initUpload(t){return we.post("/presign/upload/init",t)}static async proxyUpload(t,n,r){const s=new FormData;return s.append("file",n),we.put(`/presign/upload/proxy/${t}`,s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:o=>{if(r&&o.total){const i={loaded:o.loaded,total:o.total,percentage:Math.round(o.loaded*100/o.total)};r(i)}}})}static async confirmUpload(t,n){return we.post(`/presign/upload/confirm/${t}`,n||{})}static async getUploadStatus(t){return we.get(`/presign/upload/status/${t}`)}static async cancelUpload(t){return we.delete(`/presign/upload/${t}`)}static async directUploadToS3(t,n,r){try{return await Ne.put(t,n,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:s=>{if(r&&s.total){const o={loaded:s.loaded,total:s.total,percentage:Math.round(s.loaded*100/s.total)};r(o)}}}),!0}catch{return!1}}}function Vb(){const e=it(!1),t=it(He.SYSTEM),n=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>{const f=localStorage.getItem(dl.COLOR_MODE);return f&&Object.values(He).includes(f)?f:null},s=f=>{t.value=f,localStorage.setItem(dl.COLOR_MODE,f),f===He.SYSTEM?e.value=n():e.value=f===He.DARK,o()},o=()=>{const f=document.documentElement;e.value?f.classList.add("dark"):f.classList.remove("dark")},i=()=>{t.value===He.LIGHT?s(He.DARK):t.value===He.DARK?s(He.SYSTEM):s(He.LIGHT)},a=()=>{if(window.matchMedia){const f=window.matchMedia("(prefers-color-scheme: dark)"),d=m=>{t.value===He.SYSTEM&&(e.value=m.matches,o())};return f.addEventListener("change",d),()=>{f.removeEventListener("change",d)}}return()=>{}},l=()=>{const f=r();return s(f||He.SYSTEM),a()},c=Ee(()=>{switch(t.value){case He.LIGHT:return"sun";case He.DARK:return"moon";case He.SYSTEM:return"monitor";default:return"monitor"}}),u=Ee(()=>{switch(t.value){case He.LIGHT:return"浅色模式";case He.DARK:return"深色模式";case He.SYSTEM:return"跟随系统";default:return"跟随系统"}});return{isDarkMode:e,themeMode:t,themeIcon:c,themeLabel:u,setThemeMode:s,toggleTheme:i,initTheme:l,checkSystemColorScheme:n}}const Hb={class:"fixed top-4 right-4 z-50 flex items-center space-x-3"},Wb={key:0,class:"loading-overlay"},Bb=Xt({__name:"App",setup(e){const t=it(!1),n=_m(),r=ym(),s=rf(),{isDarkMode:o,toggleTheme:i,initTheme:a}=Vb();let l=null;return er(()=>{l=a(),$b.getUserConfig().then(c=>{c.code===200&&c.detail&&(localStorage.setItem("config",JSON.stringify(c.detail)),c.detail.notify_title&&c.detail.notify_content&&localStorage.getItem("notify")!==c.detail.notify_title+c.detail.notify_content&&(localStorage.setItem("notify",c.detail.notify_title+c.detail.notify_content),s.showAlert(c.detail.notify_title+": "+c.detail.notify_content,"success")))})}),tr(()=>{l&&l()}),n.beforeEach((c,u,f)=>{t.value=!0,f()}),n.afterEach(()=>{setTimeout(()=>{t.value=!1},200)}),In("isDarkMode",o),In("toggleTheme",i),In("isLoading",t),(c,u)=>(Ke(),jt("div",{class:Nt(["app-container",Te(o)?"dark":"light"])},[We("div",Hb,[Oe(X_),Oe(Im,{modelValue:Te(o),"onUpdate:modelValue":u[0]||(u[0]=f=>Le(o)?o.value=f:null)},null,8,["modelValue"])]),t.value?(Ke(),jt("div",Wb,[...u[1]||(u[1]=[We("div",{class:"loading-spinner"},null,-1)])])):Gc("",!0),Oe(Te(Eu),null,{default:Tr(({Component:f})=>[Oe(Qc,{name:"fade",mode:"out-in"},{default:Tr(()=>[(Ke(),dn(wc(f),{key:Te(r).fullPath}))]),_:2},1024)]),_:1}),Oe(ly)],2))}}),jb="modulepreload",Kb=function(e){return"/"+e},Ol={},Pn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");s=l(n.map(c=>{if(c=Kb(c),c in Ol)return;Ol[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":jb,u||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((m,y)=>{d.addEventListener("load",m),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Gb=()=>Pn(()=>import("./SendFileView-DW3wRbaM.js"),__vite__mapDeps([0,1,2,3,4,5,6])),Yb=mm({history:Kp("/"),routes:[{path:"/",name:"Retrieve",component:()=>Pn(()=>import("./RetrievewFileView-CWZH6U-r.js"),__vite__mapDeps([7,1,2,3,4,8,5,9,10]))},{path:"/send",name:"Send",component:Gb},{path:"/admin",name:"Manage",component:()=>Pn(()=>import("./AdminLayout-CIwHWF3v.js"),__vite__mapDeps([11,2,12])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>Pn(()=>import("./DashboardView-CPuETXoG.js"),__vite__mapDeps([13,4,8]))},{path:"/admin/files",name:"FileManage",component:()=>Pn(()=>import("./FileManageView-D9LkQK2i.js"),__vite__mapDeps([14,9,4,5,15]))},{path:"/admin/settings",name:"Settings",component:()=>Pn(()=>import("./SystemSettingsView-9k34DWo0.js"),[])}]},{path:"/login",name:"Login",component:()=>Pn(()=>import("./LoginView-DN8sBu46.js"),__vite__mapDeps([16,2,17]))}]}),Ks=rp(Bb);Ks.use(ip());Ks.use(Yb);Ks.use(tf);Ks.mount("#app");export{$b as $,Zb as A,Cs as B,Cm as C,Cc as D,fh as E,rE as F,zb as G,Gh as H,_m as I,we as J,Xb as K,hp as L,ym as M,pn as N,bc as O,CE as P,dp as Q,tr as R,dl as S,Qc as T,nE as U,Mr as V,TE as W,Nm as X,tE as Y,SE as Z,ay as _,jt as a,Qb as a0,wE as a1,We as b,Qt as c,Xt as d,Te as e,er as f,Ee as g,eE as h,et as i,Gc as j,dn as k,Oe as l,wc as m,Nt as n,Ke as o,rf as p,tc as q,it as r,Ne as s,Er as t,Hr as u,Tr as v,un as w,qb as x,Ue as y,Jb as z}; diff --git a/themes/2024/assets/trash-JuhqIjo3.js b/themes/2024/assets/trash-CdDjPTBr.js similarity index 85% rename from themes/2024/assets/trash-JuhqIjo3.js rename to themes/2024/assets/trash-CdDjPTBr.js index 88a3cde..7b0a69c 100644 --- a/themes/2024/assets/trash-JuhqIjo3.js +++ b/themes/2024/assets/trash-CdDjPTBr.js @@ -1 +1 @@ -import{c as a}from"./index-DaP6hnmm.js";const c=a("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const t=a("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);export{c as E,t as T}; +import{c as a}from"./index-B3zfsvgW.js";const c=a("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const t=a("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);export{c as E,t as T}; diff --git a/themes/2024/index.html b/themes/2024/index.html index b8818b4..a05a5e6 100644 --- a/themes/2024/index.html +++ b/themes/2024/index.html @@ -13,7 +13,7 @@ {{title}} - +