From 2e44fe29a40322892504c94cfdea18e976c51723 Mon Sep 17 00:00:00 2001 From: Lan Date: Sat, 8 Feb 2025 22:53:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5title=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ut-CGK4cUFs.js => AdminLayout-DQKUNxBs.js} | 2 +- ...-BJPa45w6.js => DashboardView-BQkdUNcj.js} | 2 +- ...5nbkRxSF.js => FileManageView-FEOrQKbl.js} | 2 +- ...View-B7G0ZQAI.js => LoginView-DMl24bJ-.js} | 2 +- .../assets/RetrievewFileView-Bf7MFUAC.css | 1 - ...KIrRO.js => RetrievewFileView-C8jq0XcR.js} | 42 +++++++++---------- .../assets/RetrievewFileView-DguaL712.css | 1 + themes/2024/assets/SendFileView-D1tJweYo.css | 1 + themes/2024/assets/SendFileView-D4o7eZLc.css | 1 - themes/2024/assets/SendFileView-DRPDfOMx.js | 21 ---------- themes/2024/assets/SendFileView-DneMQ9So.js | 21 ++++++++++ ...I7eX.js => SystemSettingsView-DdLYY83m.js} | 2 +- ...0FHX1E.js => _commonjsHelpers-CljsJuVy.js} | 2 +- .../{box-D_IdGY4o.js => box-C9xlYTT6.js} | 2 +- .../{file-CY1Cm1A5.js => file-AHrKtGwY.js} | 2 +- .../{index-Ch_yhQYc.js => index-BIfJi_O-.js} | 4 +- .../{trash-Y8g6Hj4p.js => trash-wtxrZ93m.js} | 2 +- themes/2024/index.html | 2 +- 18 files changed, 56 insertions(+), 56 deletions(-) rename themes/2024/assets/{AdminLayout-CGK4cUFs.js => AdminLayout-DQKUNxBs.js} (98%) rename themes/2024/assets/{DashboardView-BJPa45w6.js => DashboardView-BQkdUNcj.js} (98%) rename themes/2024/assets/{FileManageView-5nbkRxSF.js => FileManageView-FEOrQKbl.js} (98%) rename themes/2024/assets/{LoginView-B7G0ZQAI.js => LoginView-DMl24bJ-.js} (98%) delete mode 100644 themes/2024/assets/RetrievewFileView-Bf7MFUAC.css rename themes/2024/assets/{RetrievewFileView-DExKIrRO.js => RetrievewFileView-C8jq0XcR.js} (59%) create mode 100644 themes/2024/assets/RetrievewFileView-DguaL712.css create mode 100644 themes/2024/assets/SendFileView-D1tJweYo.css delete mode 100644 themes/2024/assets/SendFileView-D4o7eZLc.css delete mode 100644 themes/2024/assets/SendFileView-DRPDfOMx.js create mode 100644 themes/2024/assets/SendFileView-DneMQ9So.js rename themes/2024/assets/{SystemSettingsView-UJvuI7eX.js => SystemSettingsView-DdLYY83m.js} (99%) rename themes/2024/assets/{_commonjsHelpers-Bz0FHX1E.js => _commonjsHelpers-CljsJuVy.js} (99%) rename themes/2024/assets/{box-D_IdGY4o.js => box-C9xlYTT6.js} (90%) rename themes/2024/assets/{file-CY1Cm1A5.js => file-AHrKtGwY.js} (88%) rename themes/2024/assets/{index-Ch_yhQYc.js => index-BIfJi_O-.js} (99%) rename themes/2024/assets/{trash-Y8g6Hj4p.js => trash-wtxrZ93m.js} (95%) diff --git a/themes/2024/assets/AdminLayout-CGK4cUFs.js b/themes/2024/assets/AdminLayout-DQKUNxBs.js similarity index 98% rename from themes/2024/assets/AdminLayout-CGK4cUFs.js rename to themes/2024/assets/AdminLayout-DQKUNxBs.js index 96737c9..85c0fbe 100644 --- a/themes/2024/assets/AdminLayout-CGK4cUFs.js +++ b/themes/2024/assets/AdminLayout-DQKUNxBs.js @@ -1,4 +1,4 @@ -import{c as i,B as k,r as h,o as u,I as v,d as x,e as t,n as o,g as e,i as w,f as n,X as _,F as M,q as C,p as z,y as B,J as L,m as D,K as F,t as I,z as d}from"./index-Ch_yhQYc.js";import{B as j}from"./box-D_IdGY4o.js";/** +import{c as i,B as k,r as h,o as u,I as v,d as x,e as t,n as o,g as e,i as w,f as n,X as _,F as M,q as C,p as z,y as B,J as L,m as D,K as F,t as I,z as d}from"./index-BIfJi_O-.js";import{B as j}from"./box-C9xlYTT6.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/assets/DashboardView-BJPa45w6.js b/themes/2024/assets/DashboardView-BQkdUNcj.js similarity index 98% rename from themes/2024/assets/DashboardView-BJPa45w6.js rename to themes/2024/assets/DashboardView-BQkdUNcj.js index 3839364..243a577 100644 --- a/themes/2024/assets/DashboardView-BJPa45w6.js +++ b/themes/2024/assets/DashboardView-BQkdUNcj.js @@ -1,4 +1,4 @@ -import{c as g,B as v,H as w,o as _,d as u,e as t,n as a,g as e,i as k,t as i,f as y,F as U,q as F,A as M,z as p,J as z,K as C}from"./index-Ch_yhQYc.js";import{F as m}from"./file-CY1Cm1A5.js";import{H as D,T as S}from"./trash-Y8g6Hj4p.js";/** +import{c as g,B as v,H as w,o as _,d as u,e as t,n as a,g as e,i as k,t as i,f as y,F as U,q as F,A as M,z as p,J as z,K as C}from"./index-BIfJi_O-.js";import{F as m}from"./file-AHrKtGwY.js";import{H as D,T as S}from"./trash-wtxrZ93m.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/assets/FileManageView-5nbkRxSF.js b/themes/2024/assets/FileManageView-FEOrQKbl.js similarity index 98% rename from themes/2024/assets/FileManageView-5nbkRxSF.js rename to themes/2024/assets/FileManageView-FEOrQKbl.js index 7f55955..e79df43 100644 --- a/themes/2024/assets/FileManageView-5nbkRxSF.js +++ b/themes/2024/assets/FileManageView-FEOrQKbl.js @@ -1,4 +1,4 @@ -import{c as V,B as T,u as q,r as _,b as k,d as c,e as t,n as o,g as a,i as A,j as P,f as m,v as H,m as I,F as v,q as w,t as d,A as S,z as g}from"./index-Ch_yhQYc.js";import{F as L}from"./file-CY1Cm1A5.js";/** +import{c as V,B as T,u as q,r as _,b as k,d as c,e as t,n as o,g as a,i as A,j as P,f as m,v as H,m as I,F as v,q as w,t as d,A as S,z as g}from"./index-BIfJi_O-.js";import{F as L}from"./file-AHrKtGwY.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/assets/LoginView-B7G0ZQAI.js b/themes/2024/assets/LoginView-DMl24bJ-.js similarity index 98% rename from themes/2024/assets/LoginView-B7G0ZQAI.js rename to themes/2024/assets/LoginView-DMl24bJ-.js index 2ccb6fe..59b9e30 100644 --- a/themes/2024/assets/LoginView-B7G0ZQAI.js +++ b/themes/2024/assets/LoginView-DMl24bJ-.js @@ -1 +1 @@ -import{G as y,r as u,B as v,u as b,d as w,e,n as l,g as o,i as x,f as h,h as k,j as S,v as A,m as V,t as B,y as D,z as j,A as P,_}from"./index-Ch_yhQYc.js";import{B as z}from"./box-D_IdGY4o.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(t){d.value=t,localStorage.setItem("token",t)}return{adminPassword:d,updateAdminPwd:n}}),I={class:"mx-auto h-16 w-16 relative"},L={class:"rounded-md shadow-sm -space-y-px"},N=["disabled"],T=v({__name:"LoginView",setup(d){const n=b(),t=u(""),i=u(!1),s=x("isDarkMode"),c=M(),p=()=>{let a=!0;return t.value?t.value.length<6&&(n.showAlert("密码长度至少为6位","error"),a=!1):(n.showAlert("无效的密码","error"),a=!1),a},m=D(),f=async()=>{if(p()){c.updateAdminPwd(t.value),P.post("/admin/login",{password:t.value}).then(()=>{m.push("/admin")}).catch(a=>{n.showAlert(a.response.data.detail,"error")}),i.value=!0;try{await new Promise(a=>setTimeout(a,2e3))}catch{}finally{i.value=!1}}};return(a,r)=>(j(),w("div",{class:l(["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",o(s)?"bg-gray-900":"bg-gray-50"])},[r[6]||(r[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:l(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[o(s)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",I,[r[1]||(r[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)),r[2]||(r[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:l(["absolute inset-1 rounded-full flex items-center justify-center",o(s)?"bg-gray-800":"bg-white"])},[h(o(z),{class:l(["h-8 w-8",o(s)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:l(["mt-6 text-center text-3xl font-extrabold",o(s)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:k(f,["prevent"])},[r[5]||(r[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[r[3]||(r[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":r[0]||(r[0]=g=>t.value=g),class:l(["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",o(s)?"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),[[A,t.value]])])]),e("div",null,[e("button",{type:"submit",class:l(["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",o(s)?"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",i.value?"opacity-75 cursor-not-allowed":""]),disabled:i.value},[r[4]||(r[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+B(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=_(T,[["__scopeId","data-v-2e50c3fa"]]);export{E as default}; +import{G as y,r as u,B as v,u as b,d as w,e,n as l,g as o,i as x,f as h,h as k,j as S,v as A,m as V,t as B,y as D,z as j,A as P,_}from"./index-BIfJi_O-.js";import{B as z}from"./box-C9xlYTT6.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(t){d.value=t,localStorage.setItem("token",t)}return{adminPassword:d,updateAdminPwd:n}}),I={class:"mx-auto h-16 w-16 relative"},L={class:"rounded-md shadow-sm -space-y-px"},N=["disabled"],T=v({__name:"LoginView",setup(d){const n=b(),t=u(""),i=u(!1),s=x("isDarkMode"),c=M(),p=()=>{let a=!0;return t.value?t.value.length<6&&(n.showAlert("密码长度至少为6位","error"),a=!1):(n.showAlert("无效的密码","error"),a=!1),a},m=D(),f=async()=>{if(p()){c.updateAdminPwd(t.value),P.post("/admin/login",{password:t.value}).then(()=>{m.push("/admin")}).catch(a=>{n.showAlert(a.response.data.detail,"error")}),i.value=!0;try{await new Promise(a=>setTimeout(a,2e3))}catch{}finally{i.value=!1}}};return(a,r)=>(j(),w("div",{class:l(["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",o(s)?"bg-gray-900":"bg-gray-50"])},[r[6]||(r[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:l(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[o(s)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",I,[r[1]||(r[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)),r[2]||(r[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:l(["absolute inset-1 rounded-full flex items-center justify-center",o(s)?"bg-gray-800":"bg-white"])},[h(o(z),{class:l(["h-8 w-8",o(s)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:l(["mt-6 text-center text-3xl font-extrabold",o(s)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:k(f,["prevent"])},[r[5]||(r[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[r[3]||(r[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":r[0]||(r[0]=g=>t.value=g),class:l(["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",o(s)?"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),[[A,t.value]])])]),e("div",null,[e("button",{type:"submit",class:l(["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",o(s)?"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",i.value?"opacity-75 cursor-not-allowed":""]),disabled:i.value},[r[4]||(r[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+B(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=_(T,[["__scopeId","data-v-2e50c3fa"]]);export{E as default}; diff --git a/themes/2024/assets/RetrievewFileView-Bf7MFUAC.css b/themes/2024/assets/RetrievewFileView-Bf7MFUAC.css deleted file mode 100644 index 5c21496..0000000 --- a/themes/2024/assets/RetrievewFileView-Bf7MFUAC.css +++ /dev/null @@ -1 +0,0 @@ -@keyframes blob-4324157a{0%,to{transform:translate(0) scale(1)}25%{transform:translate(20px,-50px) scale(1.1)}50%{transform:translate(-20px,20px) scale(.9)}75%{transform:translate(50px,50px) scale(1.05)}}.animate-blob-1[data-v-4324157a]{animation:blob-4324157a 25s infinite}.animate-blob-2[data-v-4324157a]{animation:blob-4324157a 30s infinite}.animate-blob-3[data-v-4324157a]{animation:blob-4324157a 35s infinite}.animate-blob-4[data-v-4324157a]{animation:blob-4324157a 40s infinite}.animate-spin-slow[data-v-4324157a]{animation:spin-4324157a 8s linear infinite}@keyframes spin-4324157a{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-enter-active[data-v-4324157a],.fade-leave-active[data-v-4324157a]{transition:opacity .3s ease}.fade-enter-from[data-v-4324157a],.fade-leave-to[data-v-4324157a]{opacity:0}.list-enter-active[data-v-4324157a],.list-leave-active[data-v-4324157a]{transition:all .5s ease}.list-enter-from[data-v-4324157a],.list-leave-to[data-v-4324157a]{opacity:0;transform:translate(30px)}.drawer-enter-active[data-v-4324157a],.drawer-leave-active[data-v-4324157a]{transition:transform .3s ease}.drawer-enter-from[data-v-4324157a],.drawer-leave-to[data-v-4324157a]{transform:translate(100%)}.w-97-100[data-v-4324157a]{width:97%}[data-v-4324157a] .prose{text-align:left}[data-v-4324157a] .prose h1,[data-v-4324157a] .prose h2,[data-v-4324157a] .prose h3,[data-v-4324157a] .prose h4,[data-v-4324157a] .prose h5,[data-v-4324157a] .prose h6{color:#4f46e5}@media (prefers-color-scheme: dark){[data-v-4324157a] .prose h1,[data-v-4324157a] .prose h2,[data-v-4324157a] .prose h3,[data-v-4324157a] .prose h4,[data-v-4324157a] .prose h5,[data-v-4324157a] .prose h6{color:#818cf8}}@media (min-width: 640px){.sm\:w-120[data-v-4324157a]{width:30rem}} diff --git a/themes/2024/assets/RetrievewFileView-DExKIrRO.js b/themes/2024/assets/RetrievewFileView-C8jq0XcR.js similarity index 59% rename from themes/2024/assets/RetrievewFileView-DExKIrRO.js rename to themes/2024/assets/RetrievewFileView-C8jq0XcR.js index 6cc6b5e..9d73471 100644 --- a/themes/2024/assets/RetrievewFileView-DExKIrRO.js +++ b/themes/2024/assets/RetrievewFileView-C8jq0XcR.js @@ -1,39 +1,39 @@ -var qe=Object.defineProperty;var De=(d,e,t)=>e in d?qe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>De(d,typeof e!="symbol"?e+"":e,t);import{c as $e,_ as Pe,u as Fe,s as Ze,r as q,o as Ue,a as Oe,w as Qe,b as He,d as I,e as h,f as $,n as w,g as f,i as Ne,h as Ve,j as Ge,k as Y,v as We,t as D,l as O,m as Z,p as Xe,X as ge,T as Ke,F as Je,q as Ye,x as oe,y as et,z as C,A as tt}from"./index-Ch_yhQYc.js";import{c as Q,u as nt,S as st,C as it,a as rt,Q as ot,E as lt}from"./_commonjsHelpers-Bz0FHX1E.js";import{B as at}from"./box-D_IdGY4o.js";import{F as xe}from"./file-CY1Cm1A5.js";import{H as ct,T as ut}from"./trash-Y8g6Hj4p.js";/** +var De=Object.defineProperty;var Pe=(d,e,t)=>e in d?De(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>Pe(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Fe,u as Ze,s as Oe,r as D,o as Ue,a as Qe,w as He,b as Ne,d as I,e as p,f as $,n as w,g as f,i as Ve,t as j,h as Ge,j as We,k as Y,v as Xe,l as Q,m as Z,p as Ke,X as xe,T as Je,F as Ye,q as et,x as le,y as tt,z as L,A as nt}from"./index-BIfJi_O-.js";import{c as H,u as st,S as it,C as rt,a as ot,Q as lt,E as at}from"./_commonjsHelpers-CljsJuVy.js";import{B as ct}from"./box-C9xlYTT6.js";import{F as ke}from"./file-AHrKtGwY.js";import{H as ut,T as pt}from"./trash-wtxrZ93m.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ht=$e("ArrowRightIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** + */const ht=_e("ArrowRightIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ke=$e("DownloadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);var _e={exports:{}};(function(d,e){(function(t,n){n()})(Q,function(){function t(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.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 n(c,l,u){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){a(p.response,l,u)},p.onerror=function(){console.error("could not download file")},p.send()}function s(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Q=="object"&&Q.global===Q?Q:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,l,u){var p=r.URL||r.webkitURL,g=document.createElement("a");l=l||c.name||"download",g.download=l,g.rel="noopener",typeof c=="string"?(g.href=c,g.origin===location.origin?i(g):s(g.href)?n(c,l,u):i(g,g.target="_blank")):(g.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(g.href)},4e4),setTimeout(function(){i(g)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,u){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(t(c,u),l);else if(s(c))n(c,l,u);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){i(p)})}}:function(c,l,u,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return n(c,l,u);var g=c.type==="application/octet-stream",b=/constructor/i.test(r.HTMLElement)||r.safari,R=/CriOS\/[\d]+/.test(navigator.userAgent);if((R||g&&b||o)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var E=T.result;E=R?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=E:location=E,p=null},T.readAsDataURL(c)}else{var B=r.URL||r.webkitURL,M=B.createObjectURL(c);p?p.location=M:location.href=M,p=null,setTimeout(function(){B.revokeObjectURL(M)},4e4)}});r.saveAs=a.saveAs=a,d.exports=a})})(_e);var pt=_e.exports;function ae(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let F=ae();function Re(d){F=d}const Te=/[&<>"']/,dt=new RegExp(Te.source,"g"),ze=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ft=new RegExp(ze.source,"g"),gt={"&":"&","<":"<",">":">",'"':""","'":"'"},we=d=>gt[d];function z(d,e){if(e){if(Te.test(d))return d.replace(dt,we)}else if(ze.test(d))return d.replace(ft,we);return d}const xt=/(^|[^\[])\^/g;function y(d,e){let t=typeof d=="string"?d:d.source;e=e||"";const n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(xt,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}function be(d){try{d=encodeURI(d).replace(/%25/g,"%")}catch{return null}return d}const V={exec:()=>null};function me(d,e){const t=d.replace(/\|/g,(i,r,o)=>{let a=!1,c=r;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),n=t.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.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 n(c,l,u){var h=new XMLHttpRequest;h.open("GET",c),h.responseType="blob",h.onload=function(){a(h.response,l,u)},h.onerror=function(){console.error("could not download file")},h.send()}function s(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof H=="object"&&H.global===H?H:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,l,u){var h=r.URL||r.webkitURL,g=document.createElement("a");l=l||c.name||"download",g.download=l,g.rel="noopener",typeof c=="string"?(g.href=c,g.origin===location.origin?i(g):s(g.href)?n(c,l,u):i(g,g.target="_blank")):(g.href=h.createObjectURL(c),setTimeout(function(){h.revokeObjectURL(g.href)},4e4),setTimeout(function(){i(g)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,u){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(t(c,u),l);else if(s(c))n(c,l,u);else{var h=document.createElement("a");h.href=c,h.target="_blank",setTimeout(function(){i(h)})}}:function(c,l,u,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof c=="string")return n(c,l,u);var g=c.type==="application/octet-stream",b=/constructor/i.test(r.HTMLElement)||r.safari,R=/CriOS\/[\d]+/.test(navigator.userAgent);if((R||g&&b||o)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var E=T.result;E=R?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},T.readAsDataURL(c)}else{var C=r.URL||r.webkitURL,B=C.createObjectURL(c);h?h.location=B:location.href=B,h=null,setTimeout(function(){C.revokeObjectURL(B)},4e4)}});r.saveAs=a.saveAs=a,d.exports=a})})(Re);var dt=Re.exports;function ce(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let F=ce();function Te(d){F=d}const ze=/[&<>"']/,ft=new RegExp(ze.source,"g"),Se=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,gt=new RegExp(Se.source,"g"),xt={"&":"&","<":"<",">":">",'"':""","'":"'"},be=d=>xt[d];function z(d,e){if(e){if(ze.test(d))return d.replace(ft,be)}else if(Se.test(d))return d.replace(gt,be);return d}const kt=/(^|[^\[])\^/g;function y(d,e){let t=typeof d=="string"?d:d.source;e=e||"";const n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(kt,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}function me(d){try{d=encodeURI(d).replace(/%25/g,"%")}catch{return null}return d}const G={exec:()=>null};function ye(d,e){const t=d.replace(/\|/g,(i,r,o)=>{let a=!1,c=r;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),n=t.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length{const i=s.match(/^\s+/);if(i===null)return s;const[r]=i;return r.length>=n.length?s.slice(n.length):s}).join(` -`)}class te{constructor(e){v(this,"options");v(this,"rules");v(this,"lexer");this.options=e||F}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:H(n,` -`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],s=wt(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const s=H(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:H(t[0],` -`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=H(t[0],` +`)}class te{constructor(e){v(this,"options");v(this,"rules");v(this,"lexer");this.options=e||F}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:N(n,` +`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],s=bt(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const s=N(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:N(t[0],` +`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=N(t[0],` `).split(` `),s="",i="";const r=[];for(;n.length>0;){let o=!1;const a=[];let c;for(c=0;c/.test(n[c]))a.push(n[c]),o=!0;else if(!o)a.push(n[c]);else break;n=n.slice(c);const l=a.join(` `),u=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` $1`).replace(/^ {0,3}>[ \t]?/gm,"");s=s?`${s} ${l}`:l,i=i?`${i} -${u}`:u;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=p,n.length===0)break;const g=r[r.length-1];if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const b=g,R=b.raw+` +${u}`:u;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=h,n.length===0)break;const g=r[r.length-1];if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const b=g,R=b.raw+` `+n.join(` `),T=this.blockquote(R);r[r.length-1]=T,s=s.substring(0,s.length-b.raw.length)+T.raw,i=i.substring(0,i.length-b.text.length)+T.text;break}else if((g==null?void 0:g.type)==="list"){const b=g,R=b.raw+` `+n.join(` `),T=this.list(R);r[r.length-1]=T,s=s.substring(0,s.length-g.raw.length)+T.raw,i=i.substring(0,i.length-b.raw.length)+T.raw,n=R.substring(r[r.length-1].raw.length).split(` `);continue}}return{type:"blockquote",raw:s,tokens:r,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,i={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const r=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let a=!1,c="",l="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let u=t[2].split(` -`,1)[0].replace(/^\t+/,B=>" ".repeat(3*B.length)),p=e.split(` -`,1)[0],g=!u.trim(),b=0;if(this.options.pedantic?(b=2,l=u.trimStart()):g?b=t[1].length+1:(b=t[2].search(/[^ ]/),b=b>4?1:b,l=u.slice(b),b+=t[1].length),g&&/^[ \t]*$/.test(p)&&(c+=p+` -`,e=e.substring(p.length+1),a=!0),!a){const B=new RegExp(`^ {0,${Math.min(3,b-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),M=new RegExp(`^ {0,${Math.min(3,b-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),E=new RegExp(`^ {0,${Math.min(3,b-1)}}(?:\`\`\`|~~~)`),K=new RegExp(`^ {0,${Math.min(3,b-1)}}#`),re=new RegExp(`^ {0,${Math.min(3,b-1)}}<(?:[a-z].*>|!--)`,"i");for(;e;){const U=e.split(` -`,1)[0];let L;if(p=U,this.options.pedantic?(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),L=p):L=p.replace(/\t/g," "),E.test(p)||K.test(p)||re.test(p)||B.test(p)||M.test(p))break;if(L.search(/[^ ]/)>=b||!p.trim())l+=` -`+L.slice(b);else{if(g||u.replace(/\t/g," ").search(/[^ ]/)>=4||E.test(u)||K.test(u)||M.test(u))break;l+=` -`+p}!g&&!p.trim()&&(g=!0),c+=U+` -`,e=e.substring(U.length+1),u=L.slice(b)}}i.loose||(o?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(c)&&(o=!0));let R=null,T;this.options.gfm&&(R=/^\[[ xX]\] /.exec(l),R&&(T=R[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:c,task:!!R,checked:T,loose:!1,text:l,tokens:[]}),i.raw+=c}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let a=0;au.type==="space"),l=c.length>0&&c.some(u=>/\n.*\n/.test(u.raw));i.loose=l}if(i.loose)for(let a=0;a$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:s,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const n=me(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` -`):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const o of s)/^ *-+: *$/.test(o)?r.align.push("right"):/^ *:-+: *$/.test(o)?r.align.push("center"):/^ *:-+ *$/.test(o)?r.align.push("left"):r.align.push(null);for(let o=0;o({text:a,tokens:this.lexer.inline(a),header:!1,align:r.align[c]})));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===` -`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:z(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const r=H(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=kt(t[2],"()");if(r>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],i="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);r&&(s=r[1],i=r[3])}else i=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s=s.slice(1):s=s.slice(1,-1)),ye(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const s=(n[2]||n[1]).replace(/\s+/g," "),i=t[s.toLowerCase()];if(!i){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return ye(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const r=[...s[0]].length-1;let o,a,c=r,l=0;const u=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+r);(s=u.exec(t))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(a=[...o].length,s[3]||s[4]){c+=a;continue}else if((s[5]||s[6])&&r%3&&!((r+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const p=[...s[0]][0].length,g=e.slice(0,r+s.index+p+a);if(Math.min(r,a)%2){const R=g.slice(1,-1);return{type:"em",raw:g,text:R,tokens:this.lexer.inlineTokens(R)}}const b=g.slice(2,-2);return{type:"strong",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const s=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return s&&i&&(n=n.substring(1,n.length-1)),n=z(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,s;return t[2]==="@"?(n=z(t[1]),s="mailto:"+n):(n=z(t[1]),s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=z(t[0]),i="mailto:"+s;else{let r;do r=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(r!==t[0]);s=z(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=z(t[0]),{type:"text",raw:t[0],text:n}}}}const bt=/^(?:[ \t]*(?:\n|$))+/,mt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Se=/(?:[*+-]|\d{1,9}[.)])/,Ae=y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Se).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/).getRegex(),ce=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$t=/^[^\n]+/,ue=/(?!\s*\])(?:\\.|[^\[\]\\])+/,_t=y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ue).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rt=y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Se).getRegex(),ie="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",he=/|$))/,Tt=y("^ {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",he).replace("tag",ie).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ee=y(ce).replace("hr",W).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",ie).getRegex(),zt=y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ee).getRegex(),pe={blockquote:zt,code:mt,def:_t,fences:yt,heading:vt,hr:W,html:Tt,lheading:Ae,list:Rt,newline:bt,paragraph:Ee,table:V,text:$t},ve=y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W).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",ie).getRegex(),St={...pe,table:ve,paragraph:y(ce).replace("hr",W).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ve).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",ie).getRegex()},At={...pe,html:y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",he).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:V,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y(ce).replace("hr",W).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Le=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Et=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ie=/^( {2,}|\\)\n(?!\s*$)/,Lt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Bt=y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,X).getRegex(),Mt=y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,X).getRegex(),jt=y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,X).getRegex(),qt=y(/\\([punct])/,"gu").replace(/punct/g,X).getRegex(),Dt=y(/^<(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(),Pt=y(he).replace("(?:-->|$)","-->").getRegex(),Ft=y("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ne=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Zt=y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ne).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ce=y(/^!?\[(label)\]\[(ref)\]/).replace("label",ne).replace("ref",ue).getRegex(),Be=y(/^!?\[(ref)\](?:\[\])?/).replace("ref",ue).getRegex(),Ut=y("reflink|nolink(?!\\()","g").replace("reflink",Ce).replace("nolink",Be).getRegex(),de={_backpedal:V,anyPunctuation:qt,autolink:Dt,blockSkip:Ct,br:Ie,code:Et,del:V,emStrongLDelim:Bt,emStrongRDelimAst:Mt,emStrongRDelimUnd:jt,escape:Le,link:Zt,nolink:Be,punctuation:It,reflink:Ce,reflinkSearch:Ut,tag:Ft,text:Lt,url:V},Ot={...de,link:y(/^!?\[(label)\]\((.*?)\)/).replace("label",ne).getRegex(),reflink:y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ne).getRegex()},le={...de,escape:y(Le).replace("])","~|])").getRegex(),url:y(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\" ".repeat(3*C.length)),h=e.split(` +`,1)[0],g=!u.trim(),b=0;if(this.options.pedantic?(b=2,l=u.trimStart()):g?b=t[1].length+1:(b=t[2].search(/[^ ]/),b=b>4?1:b,l=u.slice(b),b+=t[1].length),g&&/^[ \t]*$/.test(h)&&(c+=h+` +`,e=e.substring(h.length+1),a=!0),!a){const C=new RegExp(`^ {0,${Math.min(3,b-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),B=new RegExp(`^ {0,${Math.min(3,b-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),E=new RegExp(`^ {0,${Math.min(3,b-1)}}(?:\`\`\`|~~~)`),O=new RegExp(`^ {0,${Math.min(3,b-1)}}#`),re=new RegExp(`^ {0,${Math.min(3,b-1)}}<(?:[a-z].*>|!--)`,"i");for(;e;){const U=e.split(` +`,1)[0];let q;if(h=U,this.options.pedantic?(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),q=h):q=h.replace(/\t/g," "),E.test(h)||O.test(h)||re.test(h)||C.test(h)||B.test(h))break;if(q.search(/[^ ]/)>=b||!h.trim())l+=` +`+q.slice(b);else{if(g||u.replace(/\t/g," ").search(/[^ ]/)>=4||E.test(u)||O.test(u)||B.test(u))break;l+=` +`+h}!g&&!h.trim()&&(g=!0),c+=U+` +`,e=e.substring(U.length+1),u=q.slice(b)}}i.loose||(o?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(c)&&(o=!0));let R=null,T;this.options.gfm&&(R=/^\[[ xX]\] /.exec(l),R&&(T=R[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:c,task:!!R,checked:T,loose:!1,text:l,tokens:[]}),i.raw+=c}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let a=0;au.type==="space"),l=c.length>0&&c.some(u=>/\n.*\n/.test(u.raw));i.loose=l}if(i.loose)for(let a=0;a$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:s,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const n=ye(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const o of s)/^ *-+: *$/.test(o)?r.align.push("right"):/^ *:-+: *$/.test(o)?r.align.push("center"):/^ *:-+ *$/.test(o)?r.align.push("left"):r.align.push(null);for(let o=0;o({text:a,tokens:this.lexer.inline(a),header:!1,align:r.align[c]})));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:z(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const r=N(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=wt(t[2],"()");if(r>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],i="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);r&&(s=r[1],i=r[3])}else i=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s=s.slice(1):s=s.slice(1,-1)),ve(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const s=(n[2]||n[1]).replace(/\s+/g," "),i=t[s.toLowerCase()];if(!i){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return ve(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const r=[...s[0]].length-1;let o,a,c=r,l=0;const u=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+r);(s=u.exec(t))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(a=[...o].length,s[3]||s[4]){c+=a;continue}else if((s[5]||s[6])&&r%3&&!((r+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const h=[...s[0]][0].length,g=e.slice(0,r+s.index+h+a);if(Math.min(r,a)%2){const R=g.slice(1,-1);return{type:"em",raw:g,text:R,tokens:this.lexer.inlineTokens(R)}}const b=g.slice(2,-2);return{type:"strong",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const s=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return s&&i&&(n=n.substring(1,n.length-1)),n=z(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,s;return t[2]==="@"?(n=z(t[1]),s="mailto:"+n):(n=z(t[1]),s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=z(t[0]),i="mailto:"+s;else{let r;do r=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(r!==t[0]);s=z(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=z(t[0]),{type:"text",raw:t[0],text:n}}}}const mt=/^(?:[ \t]*(?:\n|$))+/,yt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,X=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$t=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ae=/(?:[*+-]|\d{1,9}[.)])/,Ee=y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ae).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/).getRegex(),ue=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_t=/^[^\n]+/,pe=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Rt=y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",pe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tt=y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ae).getRegex(),ie="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",he=/|$))/,zt=y("^ {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",he).replace("tag",ie).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ie=y(ue).replace("hr",X).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",ie).getRegex(),St=y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ie).getRegex(),de={blockquote:St,code:yt,def:Rt,fences:vt,heading:$t,hr:X,html:zt,lheading:Ee,list:Tt,newline:mt,paragraph:Ie,table:G,text:_t},$e=y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",X).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",ie).getRegex(),At={...de,table:$e,paragraph:y(ue).replace("hr",X).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$e).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",ie).getRegex()},Et={...de,html:y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",he).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:G,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y(ue).replace("hr",X).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ee).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Le=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,It=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ce=/^( {2,}|\\)\n(?!\s*$)/,Lt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Mt=y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,K).getRegex(),jt=y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,K).getRegex(),qt=y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,K).getRegex(),Dt=y(/\\([punct])/,"gu").replace(/punct/g,K).getRegex(),Pt=y(/^<(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(),Ft=y(he).replace("(?:-->|$)","-->").getRegex(),Zt=y("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Ft).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ne=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ot=y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ne).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Be=y(/^!?\[(label)\]\[(ref)\]/).replace("label",ne).replace("ref",pe).getRegex(),Me=y(/^!?\[(ref)\](?:\[\])?/).replace("ref",pe).getRegex(),Ut=y("reflink|nolink(?!\\()","g").replace("reflink",Be).replace("nolink",Me).getRegex(),fe={_backpedal:G,anyPunctuation:Dt,autolink:Pt,blockSkip:Bt,br:Ce,code:It,del:G,emStrongLDelim:Mt,emStrongRDelimAst:jt,emStrongRDelimUnd:qt,escape:Le,link:Ot,nolink:Me,punctuation:Ct,reflink:Be,reflinkSearch:Ut,tag:Zt,text:Lt,url:G},Qt={...fe,link:y(/^!?\[(label)\]\((.*?)\)/).replace("label",ne).getRegex(),reflink:y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ne).getRegex()},ae={...fe,escape:y(Le).replace("])","~|])").getRegex(),url:y(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(s=o.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))){if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length),s.raw.length===1&&t.length>0?t[t.length-1].raw+=` `:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` `+s.raw,i.text+=` @@ -43,7 +43,7 @@ ${u}`:u;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block `+s.raw,i.text+=` `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(s),n=r.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=` `+s.raw,i.text+=` -`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(s);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,s,i,r=e,o,a,c;if(this.tokens.links){const l=Object.keys(this.tokens.links);if(l.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(l=>(n=l.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),s=t[t.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),s=t[t.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let l=1/0;const u=e.slice(1);let p;this.options.extensions.startInline.forEach(g=>{p=g.call({lexer:this},u),typeof p=="number"&&p>=0&&(l=Math.min(l,p))}),l<1/0&&l>=0&&(i=e.substring(0,l+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),a=!0,s=t[t.length-1],s&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return t}}class se{constructor(e){v(this,"options");v(this,"parser");this.options=e||F}space(e){return""}code({text:e,lang:t,escaped:n}){var r;const s=(r=(t||"").match(/^\S*/))==null?void 0:r[0],i=e.replace(/\n$/,"")+` +`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(s);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,s,i,r=e,o,a,c;if(this.tokens.links){const l=Object.keys(this.tokens.links);if(l.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(l=>(n=l.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),s=t[t.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),s=t[t.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let l=1/0;const u=e.slice(1);let h;this.options.extensions.startInline.forEach(g=>{h=g.call({lexer:this},u),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(i=e.substring(0,l+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),a=!0,s=t[t.length-1],s&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return t}}class se{constructor(e){v(this,"options");v(this,"parser");this.options=e||F}space(e){return""}code({text:e,lang:t,escaped:n}){var r;const s=(r=(t||"").match(/^\S*/))==null?void 0:r[0],i=e.replace(/\n$/,"")+` `;return s?'
'+(n?i:z(i,!0))+`
`:"
"+(n?i:z(i,!0))+`
`}blockquote({tokens:e}){return`
@@ -61,6 +61,6 @@ ${this.parser.parse(e)}
`}tablerow({text:e}){return` ${e} `}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` -`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${e}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),i=be(e);if(i===null)return s;e=i;let r='
",r}image({href:e,title:t,text:n}){const s=be(e);if(s===null)return n;e=s;let i=`${n}{const c=o[a].flat(1/0);n=n.concat(this.walkTokens(c,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const r=t.renderers[i.name];r?t.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=r.apply(this,o)),a}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=t[i.level];r?r.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),s.extensions=t),n.renderer){const i=this.defaults.renderer||new se(this.defaults);for(const r in n.renderer){if(!(r in i))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const o=r,a=n.renderer[o],c=i[o];i[o]=(...l)=>{let u=a.apply(i,l);return u===!1&&(u=c.apply(i,l)),u||""}}s.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new te(this.defaults);for(const r in n.tokenizer){if(!(r in i))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const o=r,a=n.tokenizer[o],c=i[o];i[o]=(...l)=>{let u=a.apply(i,l);return u===!1&&(u=c.apply(i,l)),u}}s.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new G;for(const r in n.hooks){if(!(r in i))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;const o=r,a=n.hooks[o],c=i[o];G.passThroughHooks.has(r)?i[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(i,l)).then(p=>c.call(i,p));const u=a.call(i,l);return c.call(i,u)}:i[o]=(...l)=>{let u=a.apply(i,l);return u===!1&&(u=c.apply(i,l)),u}}s.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,r=n.walkTokens;s.walkTokens=function(o){let a=[];return a.push(r.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return S.lex(e,t??this.defaults)}parser(e,t){return A.parse(e,t??this.defaults)}parseMarkdown(e){return(n,s)=>{const i={...s},r={...this.defaults,...i},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const a=r.hooks?r.hooks.provideLexer():e?S.lex:S.lexInline,c=r.hooks?r.hooks.provideParser():e?A.parse:A.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(l=>a(l,r)).then(l=>r.hooks?r.hooks.processAllTokens(l):l).then(l=>r.walkTokens?Promise.all(this.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>c(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));let l=a(n,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let u=c(l,r);return r.hooks&&(u=r.hooks.postprocess(u)),u}catch(l){return o(l)}}}onError(e,t){return n=>{if(n.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const s="

An error occurred:

"+z(n.message+"",!0)+"
";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}}const P=new Ht;function m(d,e){return P.parse(d,e)}m.options=m.setOptions=function(d){return P.setOptions(d),m.defaults=P.defaults,Re(m.defaults),m};m.getDefaults=ae;m.defaults=F;m.use=function(...d){return P.use(...d),m.defaults=P.defaults,Re(m.defaults),m};m.walkTokens=function(d,e){return P.walkTokens(d,e)};m.parseInline=P.parseInline;m.Parser=A;m.parser=A.parse;m.Renderer=se;m.TextRenderer=fe;m.Lexer=S;m.lexer=S.lex;m.Tokenizer=te;m.Hooks=G;m.parse=m;m.options;m.setOptions;m.use;m.walkTokens;m.parseInline;A.parse;S.lex;const Nt={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},Vt={class:"w-full max-w-md relative z-10"},Gt={class:"p-8"},Wt={class:"flex justify-center mb-8"},Xt={class:"rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 p-1 animate-spin-slow"},Kt={class:"rounded-full bg-gray-900 p-2"},Jt={class:"mb-6 relative"},Yt={class:"relative"},en=["readonly"],tn={key:0,class:"absolute inset-y-0 right-0 flex items-center pr-3"},nn=["disabled"],sn={class:"flex items-center justify-center relative z-10"},rn={class:"mt-6 text-center"},on={class:"flex-grow overflow-y-auto p-6"},ln={class:"flex-shrink-0 mr-4"},an={class:"flex-grow min-w-0 mr-4"},cn={class:"flex-shrink-0 flex space-x-2"},un=["onClick"],hn=["onClick"],pn=["onClick"],dn={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},fn={class:"space-y-4"},gn={class:"flex items-center"},xn={class:"flex items-center"},kn={class:"flex items-center"},wn={class:"flex items-center"},bn={key:0,class:"ml-2"},mn={key:1},yn=["href"],vn={class:"mt-6 flex flex-col items-center"},$n={class:"bg-white p-2 rounded-lg shadow-md"},_n={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Rn={class:"flex justify-between items-center mb-4"},Tn=["innerHTML"],zn={__name:"RetrievewFileView",setup(d){const e=Fe(),t=window.location.origin,n=et(),s=Ne("isDarkMode"),i=nt(),{receiveData:r}=Ze(i),o=q(""),a=q({readonly:!1,loading:!1}),c=q(!1),l=q(""),u=q(null),p=q(!1),g=Oe(),b=r;Ue(()=>{const k=g.query.code;k&&(o.value=k)}),Qe(o,k=>{k.length===5&&R()});const R=async()=>{if(o.value.length!==5){e.showAlert("请输入5位取件码","error");return}a.value.readonly=!0,a.value.loading=!0;try{const k=await tt.post("/share/select/",{code:o.value});if(k.code===200)if(k.detail){const x=k.detail.text.startsWith("/share/download")||k.detail.name!=="Text",j={id:Date.now(),code:k.detail.code,filename:k.detail.name,size:T(k.detail.size),downloadUrl:x?k.detail.text:null,content:x?null:k.detail.text,date:new Date().toLocaleString()};let _=!0;i.receiveData.forEach(J=>{if(J.code===j.code){_=!1;return}}),_&&i.addReceiveData(j),p.value=!0,e.showAlert("文件获取成功","success")}else e.showAlert("无效的取件码","error");else e.showAlert(k.detail||"获取文件失败","error")}catch(k){console.error("取件失败:",k),e.showAlert("取件失败,请稍后重试","error")}finally{a.value.readonly=!1,a.value.loading=!1,o.value=""}},T=k=>{if(k===0)return"0 Bytes";const x=1024,j=["Bytes","KB","MB","GB","TB"],_=Math.floor(Math.log(k)/Math.log(x));return parseFloat((k/Math.pow(x,_)).toFixed(2))+" "+j[_]},B=k=>{u.value=k},M=k=>{const x=b.value.findIndex(j=>j.id===k);x!==-1&&i.deleteReceiveData(x)},E=()=>{p.value=!p.value},K=()=>{n.push("/send")},re=k=>k.downloadUrl?`${t}${k.downloadUrl}`:`${t}?code=${k.code}`,U=k=>{if(console.log(k),k.downloadUrl)window.open(`${k.downloadUrl.startsWith("http")?"":t}${k.downloadUrl}`,"_blank");else if(k.content){const x=new Blob([k.content],{type:"text/plain;charset=utf-8"});pt.saveAs(x,`${k.filename}.txt`)}},L=q(!1),Me=He(()=>u.value&&u.value.content?m(u.value.content):""),je=()=>{L.value=!0};return(k,x)=>{const j=Xe("router-link");return C(),I("div",Nt,[h("div",Vt,[h("div",{class:w(["rounded-3xl shadow-2xl overflow-hidden border transform transition-all duration-300",[f(s)?"bg-gray-800 bg-opacity-50 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[h("div",Gt,[h("div",Wt,[h("div",Xt,[h("div",Kt,[$(f(at),{class:"w-8 h-8 text-white"})])])]),h("h2",{onClick:K,class:w(["text-3xl cursor-pointer font-extrabold text-center mb-6",[f(s)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]])}," FileCodeBox ",2),h("form",{onSubmit:Ve(R,["prevent"])},[h("div",Jt,[h("label",{for:"code",class:w(["block text-sm font-medium mb-2",[f(s)?"text-gray-300":"text-gray-800"]])},"取件码",2),h("div",Yt,[Ge(h("input",{id:"code","onUpdate:modelValue":x[0]||(x[0]=_=>o.value=_),type:"text",class:w(["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",[f(s)?"bg-gray-700 bg-opacity-50":"bg-gray-100",{"ring-2 ring-red-500":l.value},f(s)?"text-gray-300":"text-gray-800"]]),placeholder:"请输入5位取件码",required:"",readonly:a.value.readonly,maxlength:"5",onFocus:x[1]||(x[1]=_=>c.value=!0),onBlur:x[2]||(x[2]=_=>c.value=!1)},null,42,en),[[We,o.value]]),a.value.loading?(C(),I("div",tn,x[5]||(x[5]=[h("span",{class:"animate-spin rounded-full h-5 w-5 border-b-2 border-indigo-500"},null,-1)]))):Y("",!0)]),h("div",{class:w(["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":c.value,"w-0":!c.value}])},null,2)]),h("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:a.value.loading},[h("span",sn,[h("span",null,D(a.value.loading?"处理中...":"提取文件"),1),$(f(ht),{class:"w-5 h-5 ml-2 transition-transform duration-300 transform group-hover:translate-x-1"})]),x[6]||(x[6]=h("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,nn)],32),h("div",rn,[$(j,{to:"/send",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:O(()=>x[7]||(x[7]=[Z(" 需要发送文件?点击这里 ")])),_:1})])]),h("div",{class:w(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[f(s)?"bg-gray-800":"bg-gray-100"]])},[h("span",{class:w(["text-sm flex items-center",[f(s)?"text-gray-300":"text-gray-800"]])},[$(f(st),{class:"w-4 h-4 mr-1 text-green-400"}),x[8]||(x[8]=Z(" 安全加密 "))],2),h("button",{onClick:E,class:w(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[f(s)?"text-indigo-400":"text-indigo-600"]])},[x[9]||(x[9]=Z(" 取件记录 ")),$(f(it),{class:"w-4 h-4 ml-1"})],2)],2)],2)]),$(oe,{name:"drawer"},{default:O(()=>[p.value?(C(),I("div",{key:0,class:w(["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",[f(s)?"bg-gray-900":"bg-white"]])},[h("div",{class:w(["flex justify-between items-center p-6 border-b",[f(s)?"border-gray-700":"border-gray-200"]])},[h("h3",{class:w(["text-2xl font-bold",[f(s)?"text-white":"text-gray-800"]])}," 取件记录 ",2),h("button",{onClick:E,class:w(["hover:text-white transition duration-300",[f(s)?"text-gray-400":"text-gray-800"]])},[$(f(ge),{class:"w-6 h-6"})],2)],2),h("div",on,[$(Ke,{name:"list",tag:"div",class:"space-y-4"},{default:O(()=>[(C(!0),I(Je,null,Ye(f(b),_=>(C(),I("div",{key:_.id,class:w(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[f(s)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[h("div",ln,[$(f(xe),{class:w(["w-10 h-10",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),h("div",an,[h("p",{class:w(["font-medium text-lg truncate",[f(s)?"text-white":"text-gray-800"]])},D(_.filename),3),h("p",{class:w(["text-sm truncate",[f(s)?"text-gray-400":"text-gray-600"]])},D(_.date)+" · "+D(_.size),3)]),h("div",cn,[h("button",{onClick:J=>B(_),class:w(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[f(s)?"hover:bg-indigo-400 text-indigo-400":"hover:bg-indigo-100 text-indigo-600"]])},[$(f(lt),{class:"w-5 h-5"})],10,un),h("button",{onClick:J=>U(_),class:w(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[f(s)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[$(f(ke),{class:"w-5 h-5"})],10,hn),h("button",{onClick:J=>M(_.id),class:w(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[f(s)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[$(f(ut),{class:"w-5 h-5"})],10,pn)])],2))),128))]),_:1})])],2)):Y("",!0)]),_:1}),$(oe,{name:"fade"},{default:O(()=>[u.value?(C(),I("div",dn,[h("div",{class:w(["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 bg-opacity-70 overflow-hidden",[f(s)?"bg-gray-800":"bg-white"]])},[h("h3",{class:w(["text-2xl font-bold mb-6 truncate",[f(s)?"text-white":"text-gray-800"]])}," 文件详情 ",2),h("div",fn,[h("div",gn,[$(f(xe),{class:w(["w-6 h-6 mr-3 flex-shrink-0",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),h("p",{class:w([[f(s)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[x[10]||(x[10]=h("span",{class:"font-medium"},"文件名:",-1)),Z(D(u.value.filename),1)],2)]),h("div",xn,[$(f(rt),{class:w(["w-6 h-6 mr-3 flex-shrink-0",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),h("p",{class:w([[f(s)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[x[11]||(x[11]=h("span",{class:"font-medium"},"取件日期:",-1)),Z(D(u.value.date),1)],2)]),h("div",kn,[$(f(ct),{class:w(["w-6 h-6 mr-3 flex-shrink-0",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),h("p",{class:w([[f(s)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[x[12]||(x[12]=h("span",{class:"font-medium"},"文件大小:",-1)),Z(D(u.value.size),1)],2)]),h("div",wn,[$(f(ke),{class:w(["w-6 h-6 mr-3",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),h("p",{class:w([f(s)?"text-gray-300":"text-gray-800"])},x[13]||(x[13]=[h("span",{class:"font-medium"},"文件内容:",-1)]),2),u.value.filename=="Text"?(C(),I("div",bn,[h("button",{onClick:je,class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"}," 预览内容 ")])):(C(),I("div",mn,[h("a",{href:`${f(t)}${u.value.downloadUrl}`,target:"_blank",rel:"noopener noreferrer",class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"}," 点击下载 ",8,yn)]))])]),h("div",vn,[h("h4",{class:w(["text-lg font-semibold mb-3",[f(s)?"text-white":"text-gray-800"]])}," 取件二维码 ",2),h("div",$n,[$(ot,{value:re(u.value),size:128,level:"M"},null,8,["value"])]),h("p",{class:w(["mt-2 text-sm",[f(s)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)]),h("button",{onClick:x[3]||(x[3]=_=>u.value=null),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"}," 关闭 ")],2)])):Y("",!0)]),_:1}),$(oe,{name:"fade"},{default:O(()=>[L.value?(C(),I("div",_n,[h("div",{class:w(["p-8 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-[80vh] overflow-y-auto",[f(s)?"bg-gray-800":"bg-white"]])},[h("div",Rn,[h("h3",{class:w(["text-2xl font-bold",[f(s)?"text-white":"text-gray-800"]])}," 内容预览 ",2),h("button",{onClick:x[4]||(x[4]=_=>L.value=!1),class:"text-gray-500 hover:text-gray-700"},[$(f(ge),{class:"w-6 h-6"})])]),h("div",{class:w(["prose max-w-none",[f(s)?"prose-invert":""]]),innerHTML:Me.value},null,10,Tn)],2)])):Y("",!0)]),_:1})])}}},Bn=Pe(zn,[["__scopeId","data-v-4324157a"]]);export{Bn as default}; +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${e}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),i=me(e);if(i===null)return s;e=i;let r='
",r}image({href:e,title:t,text:n}){const s=me(e);if(s===null)return n;e=s;let i=`${n}{const c=o[a].flat(1/0);n=n.concat(this.walkTokens(c,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const r=t.renderers[i.name];r?t.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=r.apply(this,o)),a}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=t[i.level];r?r.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),s.extensions=t),n.renderer){const i=this.defaults.renderer||new se(this.defaults);for(const r in n.renderer){if(!(r in i))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const o=r,a=n.renderer[o],c=i[o];i[o]=(...l)=>{let u=a.apply(i,l);return u===!1&&(u=c.apply(i,l)),u||""}}s.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new te(this.defaults);for(const r in n.tokenizer){if(!(r in i))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const o=r,a=n.tokenizer[o],c=i[o];i[o]=(...l)=>{let u=a.apply(i,l);return u===!1&&(u=c.apply(i,l)),u}}s.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new W;for(const r in n.hooks){if(!(r in i))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;const o=r,a=n.hooks[o],c=i[o];W.passThroughHooks.has(r)?i[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(i,l)).then(h=>c.call(i,h));const u=a.call(i,l);return c.call(i,u)}:i[o]=(...l)=>{let u=a.apply(i,l);return u===!1&&(u=c.apply(i,l)),u}}s.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,r=n.walkTokens;s.walkTokens=function(o){let a=[];return a.push(r.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return S.lex(e,t??this.defaults)}parser(e,t){return A.parse(e,t??this.defaults)}parseMarkdown(e){return(n,s)=>{const i={...s},r={...this.defaults,...i},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const a=r.hooks?r.hooks.provideLexer():e?S.lex:S.lexInline,c=r.hooks?r.hooks.provideParser():e?A.parse:A.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(l=>a(l,r)).then(l=>r.hooks?r.hooks.processAllTokens(l):l).then(l=>r.walkTokens?Promise.all(this.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>c(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));let l=a(n,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let u=c(l,r);return r.hooks&&(u=r.hooks.postprocess(u)),u}catch(l){return o(l)}}}onError(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){const s="

An error occurred:

"+z(n.message+"",!0)+"
";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}}const P=new Nt;function m(d,e){return P.parse(d,e)}m.options=m.setOptions=function(d){return P.setOptions(d),m.defaults=P.defaults,Te(m.defaults),m};m.getDefaults=ce;m.defaults=F;m.use=function(...d){return P.use(...d),m.defaults=P.defaults,Te(m.defaults),m};m.walkTokens=function(d,e){return P.walkTokens(d,e)};m.parseInline=P.parseInline;m.Parser=A;m.parser=A.parse;m.Renderer=se;m.TextRenderer=ge;m.Lexer=S;m.lexer=S.lex;m.Tokenizer=te;m.Hooks=W;m.parse=m;m.options;m.setOptions;m.use;m.walkTokens;m.parseInline;A.parse;S.lex;const Vt={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},Gt={class:"w-full max-w-md relative z-10"},Wt={class:"p-8"},Xt={class:"flex justify-center mb-8"},Kt={class:"rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 p-1 animate-spin-slow"},Jt={class:"rounded-full bg-gray-900 p-2"},Yt={class:"mb-6 relative"},en={class:"relative"},tn=["readonly"],nn={key:0,class:"absolute inset-y-0 right-0 flex items-center pr-3"},sn=["disabled"],rn={class:"flex items-center justify-center relative z-10"},on={class:"mt-6 text-center"},ln={class:"flex-grow overflow-y-auto p-6"},an={class:"flex-shrink-0 mr-4"},cn={class:"flex-grow min-w-0 mr-4"},un={class:"flex-shrink-0 flex space-x-2"},pn=["onClick"],hn=["onClick"],dn=["onClick"],fn={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},gn={class:"space-y-4"},xn={class:"flex items-center"},kn={class:"flex items-center"},wn={class:"flex items-center"},bn={class:"flex items-center"},mn={key:0,class:"ml-2"},yn={key:1},vn=["href"],$n={class:"mt-6 flex flex-col items-center"},_n={class:"bg-white p-2 rounded-lg shadow-md"},Rn={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},Tn={class:"flex justify-between items-center mb-4"},zn=["innerHTML"],Sn={__name:"RetrievewFileView",setup(d){const e=Ze(),t=window.location.origin,n=tt(),s=Ve("isDarkMode"),i=st(),{receiveData:r}=Oe(i),o=D(""),a=D({readonly:!1,loading:!1}),c=D(!1),l=D(""),u=D(null),h=D(!1),g=Qe(),b=r,R=JSON.parse(localStorage.getItem("config")||"{}");Ue(()=>{const k=g.query.code;k&&(o.value=k)}),He(o,k=>{k.length===5&&T()});const T=async()=>{if(o.value.length!==5){e.showAlert("请输入5位取件码","error");return}a.value.readonly=!0,a.value.loading=!0;try{const k=await nt.post("/share/select/",{code:o.value});if(k.code===200)if(k.detail){const x=k.detail.text.startsWith("/share/download")||k.detail.name!=="Text",M={id:Date.now(),code:k.detail.code,filename:k.detail.name,size:C(k.detail.size),downloadUrl:x?k.detail.text:null,content:x?null:k.detail.text,date:new Date().toLocaleString()};let _=!0;i.receiveData.forEach(J=>{if(J.code===M.code){_=!1;return}}),_&&i.addReceiveData(M),h.value=!0,e.showAlert("文件获取成功","success")}else e.showAlert("无效的取件码","error");else e.showAlert(k.detail||"获取文件失败","error")}catch(k){console.error("取件失败:",k),e.showAlert("取件失败,请稍后重试","error")}finally{a.value.readonly=!1,a.value.loading=!1,o.value=""}},C=k=>{if(k===0)return"0 Bytes";const x=1024,M=["Bytes","KB","MB","GB","TB"],_=Math.floor(Math.log(k)/Math.log(x));return parseFloat((k/Math.pow(x,_)).toFixed(2))+" "+M[_]},B=k=>{u.value=k},E=k=>{const x=b.value.findIndex(M=>M.id===k);x!==-1&&i.deleteReceiveData(x)},O=()=>{h.value=!h.value},re=()=>{n.push("/send")},U=k=>k.downloadUrl?`${t}${k.downloadUrl}`:`${t}?code=${k.code}`,q=k=>{if(console.log(k),k.downloadUrl)window.open(`${k.downloadUrl.startsWith("http")?"":t}${k.downloadUrl}`,"_blank");else if(k.content){const x=new Blob([k.content],{type:"text/plain;charset=utf-8"});dt.saveAs(x,`${k.filename}.txt`)}},oe=D(!1),je=Ne(()=>u.value&&u.value.content?m(u.value.content):""),qe=()=>{oe.value=!0};return(k,x)=>{const M=Ke("router-link");return L(),I("div",Vt,[p("div",Gt,[p("div",{class:w(["rounded-3xl shadow-2xl overflow-hidden border transform transition-all duration-300",[f(s)?"bg-gray-800 bg-opacity-50 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[p("div",Wt,[p("div",Xt,[p("div",Kt,[p("div",Jt,[$(f(ct),{class:"w-8 h-8 text-white"})])])]),p("h2",{onClick:re,class:w(["text-3xl cursor-pointer font-extrabold text-center mb-6",[f(s)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]])},j(f(R).name),3),p("form",{onSubmit:Ge(T,["prevent"])},[p("div",Yt,[p("label",{for:"code",class:w(["block text-sm font-medium mb-2",[f(s)?"text-gray-300":"text-gray-800"]])},"取件码",2),p("div",en,[We(p("input",{id:"code","onUpdate:modelValue":x[0]||(x[0]=_=>o.value=_),type:"text",class:w(["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",[f(s)?"bg-gray-700 bg-opacity-50":"bg-gray-100",{"ring-2 ring-red-500":l.value},f(s)?"text-gray-300":"text-gray-800"]]),placeholder:"请输入5位取件码",required:"",readonly:a.value.readonly,maxlength:"5",onFocus:x[1]||(x[1]=_=>c.value=!0),onBlur:x[2]||(x[2]=_=>c.value=!1)},null,42,tn),[[Xe,o.value]]),a.value.loading?(L(),I("div",nn,x[5]||(x[5]=[p("span",{class:"animate-spin rounded-full h-5 w-5 border-b-2 border-indigo-500"},null,-1)]))):Y("",!0)]),p("div",{class:w(["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":c.value,"w-0":!c.value}])},null,2)]),p("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:a.value.loading},[p("span",rn,[p("span",null,j(a.value.loading?"处理中...":"提取文件"),1),$(f(ht),{class:"w-5 h-5 ml-2 transition-transform duration-300 transform group-hover:translate-x-1"})]),x[6]||(x[6]=p("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,sn)],32),p("div",on,[$(M,{to:"/send",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:Q(()=>x[7]||(x[7]=[Z(" 需要发送文件?点击这里 ")])),_:1})])]),p("div",{class:w(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[f(s)?"bg-gray-800":"bg-gray-100"]])},[p("span",{class:w(["text-sm flex items-center",[f(s)?"text-gray-300":"text-gray-800"]])},[$(f(it),{class:"w-4 h-4 mr-1 text-green-400"}),x[8]||(x[8]=Z(" 安全加密 "))],2),p("button",{onClick:O,class:w(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[f(s)?"text-indigo-400":"text-indigo-600"]])},[x[9]||(x[9]=Z(" 取件记录 ")),$(f(rt),{class:"w-4 h-4 ml-1"})],2)],2)],2)]),$(le,{name:"drawer"},{default:Q(()=>[h.value?(L(),I("div",{key:0,class:w(["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",[f(s)?"bg-gray-900":"bg-white"]])},[p("div",{class:w(["flex justify-between items-center p-6 border-b",[f(s)?"border-gray-700":"border-gray-200"]])},[p("h3",{class:w(["text-2xl font-bold",[f(s)?"text-white":"text-gray-800"]])}," 取件记录 ",2),p("button",{onClick:O,class:w(["hover:text-white transition duration-300",[f(s)?"text-gray-400":"text-gray-800"]])},[$(f(xe),{class:"w-6 h-6"})],2)],2),p("div",ln,[$(Je,{name:"list",tag:"div",class:"space-y-4"},{default:Q(()=>[(L(!0),I(Ye,null,et(f(b),_=>(L(),I("div",{key:_.id,class:w(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[f(s)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[p("div",an,[$(f(ke),{class:w(["w-10 h-10",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),p("div",cn,[p("p",{class:w(["font-medium text-lg truncate",[f(s)?"text-white":"text-gray-800"]])},j(_.filename),3),p("p",{class:w(["text-sm truncate",[f(s)?"text-gray-400":"text-gray-600"]])},j(_.date)+" · "+j(_.size),3)]),p("div",un,[p("button",{onClick:J=>B(_),class:w(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[f(s)?"hover:bg-indigo-400 text-indigo-400":"hover:bg-indigo-100 text-indigo-600"]])},[$(f(at),{class:"w-5 h-5"})],10,pn),p("button",{onClick:J=>q(_),class:w(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[f(s)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[$(f(we),{class:"w-5 h-5"})],10,hn),p("button",{onClick:J=>E(_.id),class:w(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[f(s)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[$(f(pt),{class:"w-5 h-5"})],10,dn)])],2))),128))]),_:1})])],2)):Y("",!0)]),_:1}),$(le,{name:"fade"},{default:Q(()=>[u.value?(L(),I("div",fn,[p("div",{class:w(["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 bg-opacity-70 overflow-hidden",[f(s)?"bg-gray-800":"bg-white"]])},[p("h3",{class:w(["text-2xl font-bold mb-6 truncate",[f(s)?"text-white":"text-gray-800"]])}," 文件详情 ",2),p("div",gn,[p("div",xn,[$(f(ke),{class:w(["w-6 h-6 mr-3 flex-shrink-0",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),p("p",{class:w([[f(s)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[x[10]||(x[10]=p("span",{class:"font-medium"},"文件名:",-1)),Z(j(u.value.filename),1)],2)]),p("div",kn,[$(f(ot),{class:w(["w-6 h-6 mr-3 flex-shrink-0",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),p("p",{class:w([[f(s)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[x[11]||(x[11]=p("span",{class:"font-medium"},"取件日期:",-1)),Z(j(u.value.date),1)],2)]),p("div",wn,[$(f(ut),{class:w(["w-6 h-6 mr-3 flex-shrink-0",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),p("p",{class:w([[f(s)?"text-gray-300":"text-gray-800"],"truncate flex-grow"])},[x[12]||(x[12]=p("span",{class:"font-medium"},"文件大小:",-1)),Z(j(u.value.size),1)],2)]),p("div",bn,[$(f(we),{class:w(["w-6 h-6 mr-3",[f(s)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),p("p",{class:w([f(s)?"text-gray-300":"text-gray-800"])},x[13]||(x[13]=[p("span",{class:"font-medium"},"文件内容:",-1)]),2),u.value.filename=="Text"?(L(),I("div",mn,[p("button",{onClick:qe,class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"}," 预览内容 ")])):(L(),I("div",yn,[p("a",{href:`${f(t)}${u.value.downloadUrl}`,target:"_blank",rel:"noopener noreferrer",class:"px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition duration-300"}," 点击下载 ",8,vn)]))])]),p("div",$n,[p("h4",{class:w(["text-lg font-semibold mb-3",[f(s)?"text-white":"text-gray-800"]])}," 取件二维码 ",2),p("div",_n,[$(lt,{value:U(u.value),size:128,level:"M"},null,8,["value"])]),p("p",{class:w(["mt-2 text-sm",[f(s)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)]),p("button",{onClick:x[3]||(x[3]=_=>u.value=null),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"}," 关闭 ")],2)])):Y("",!0)]),_:1}),$(le,{name:"fade"},{default:Q(()=>[oe.value?(L(),I("div",Rn,[p("div",{class:w(["p-8 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-[80vh] overflow-y-auto",[f(s)?"bg-gray-800":"bg-white"]])},[p("div",Tn,[p("h3",{class:w(["text-2xl font-bold",[f(s)?"text-white":"text-gray-800"]])}," 内容预览 ",2),p("button",{onClick:x[4]||(x[4]=_=>oe.value=!1),class:"text-gray-500 hover:text-gray-700"},[$(f(xe),{class:"w-6 h-6"})])]),p("div",{class:w(["prose max-w-none",[f(s)?"prose-invert":""]]),innerHTML:je.value},null,10,zn)],2)])):Y("",!0)]),_:1})])}}},Mn=Fe(Sn,[["__scopeId","data-v-5fc1dac8"]]);export{Mn as default}; diff --git a/themes/2024/assets/RetrievewFileView-DguaL712.css b/themes/2024/assets/RetrievewFileView-DguaL712.css new file mode 100644 index 0000000..9912892 --- /dev/null +++ b/themes/2024/assets/RetrievewFileView-DguaL712.css @@ -0,0 +1 @@ +@keyframes blob-5fc1dac8{0%,to{transform:translate(0) scale(1)}25%{transform:translate(20px,-50px) scale(1.1)}50%{transform:translate(-20px,20px) scale(.9)}75%{transform:translate(50px,50px) scale(1.05)}}.animate-blob-1[data-v-5fc1dac8]{animation:blob-5fc1dac8 25s infinite}.animate-blob-2[data-v-5fc1dac8]{animation:blob-5fc1dac8 30s infinite}.animate-blob-3[data-v-5fc1dac8]{animation:blob-5fc1dac8 35s infinite}.animate-blob-4[data-v-5fc1dac8]{animation:blob-5fc1dac8 40s infinite}.animate-spin-slow[data-v-5fc1dac8]{animation:spin-5fc1dac8 8s linear infinite}@keyframes spin-5fc1dac8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-enter-active[data-v-5fc1dac8],.fade-leave-active[data-v-5fc1dac8]{transition:opacity .3s ease}.fade-enter-from[data-v-5fc1dac8],.fade-leave-to[data-v-5fc1dac8]{opacity:0}.list-enter-active[data-v-5fc1dac8],.list-leave-active[data-v-5fc1dac8]{transition:all .5s ease}.list-enter-from[data-v-5fc1dac8],.list-leave-to[data-v-5fc1dac8]{opacity:0;transform:translate(30px)}.drawer-enter-active[data-v-5fc1dac8],.drawer-leave-active[data-v-5fc1dac8]{transition:transform .3s ease}.drawer-enter-from[data-v-5fc1dac8],.drawer-leave-to[data-v-5fc1dac8]{transform:translate(100%)}.w-97-100[data-v-5fc1dac8]{width:97%}[data-v-5fc1dac8] .prose{text-align:left}[data-v-5fc1dac8] .prose h1,[data-v-5fc1dac8] .prose h2,[data-v-5fc1dac8] .prose h3,[data-v-5fc1dac8] .prose h4,[data-v-5fc1dac8] .prose h5,[data-v-5fc1dac8] .prose h6{color:#4f46e5}@media (prefers-color-scheme: dark){[data-v-5fc1dac8] .prose h1,[data-v-5fc1dac8] .prose h2,[data-v-5fc1dac8] .prose h3,[data-v-5fc1dac8] .prose h4,[data-v-5fc1dac8] .prose h5,[data-v-5fc1dac8] .prose h6{color:#818cf8}}@media (min-width: 640px){.sm\:w-120[data-v-5fc1dac8]{width:30rem}} diff --git a/themes/2024/assets/SendFileView-D1tJweYo.css b/themes/2024/assets/SendFileView-D1tJweYo.css new file mode 100644 index 0000000..f893b34 --- /dev/null +++ b/themes/2024/assets/SendFileView-D1tJweYo.css @@ -0,0 +1 @@ +.border-progress-container[data-v-2fbf5085]{position:relative;width:100%;height:100%}.border-progress-canvas[data-v-2fbf5085]{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s ease}.fade-enter-active[data-v-a1508baa],.fade-leave-active[data-v-a1508baa]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-a1508baa],.fade-leave-to[data-v-a1508baa]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-a1508baa]{width:30rem}}.fade-enter-to[data-v-a1508baa],.fade-leave-from[data-v-a1508baa]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-a1508baa],.drawer-leave-active[data-v-a1508baa]{transition:transform .3s ease}.drawer-enter-from[data-v-a1508baa],.drawer-leave-to[data-v-a1508baa]{transform:translate(100%)}.list-enter-active[data-v-a1508baa],.list-leave-active[data-v-a1508baa]{transition:all .5s ease}.list-enter-from[data-v-a1508baa],.list-leave-to[data-v-a1508baa]{opacity:0;transform:translate(30px)} diff --git a/themes/2024/assets/SendFileView-D4o7eZLc.css b/themes/2024/assets/SendFileView-D4o7eZLc.css deleted file mode 100644 index f77415b..0000000 --- a/themes/2024/assets/SendFileView-D4o7eZLc.css +++ /dev/null @@ -1 +0,0 @@ -.border-progress-container[data-v-2fbf5085]{position:relative;width:100%;height:100%}.border-progress-canvas[data-v-2fbf5085]{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s ease}.fade-enter-active[data-v-ce38a7bd],.fade-leave-active[data-v-ce38a7bd]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-ce38a7bd],.fade-leave-to[data-v-ce38a7bd]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-ce38a7bd]{width:30rem}}.fade-enter-to[data-v-ce38a7bd],.fade-leave-from[data-v-ce38a7bd]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-ce38a7bd],.drawer-leave-active[data-v-ce38a7bd]{transition:transform .3s ease}.drawer-enter-from[data-v-ce38a7bd],.drawer-leave-to[data-v-ce38a7bd]{transform:translate(100%)}.list-enter-active[data-v-ce38a7bd],.list-leave-active[data-v-ce38a7bd]{transition:all .5s ease}.list-enter-from[data-v-ce38a7bd],.list-leave-to[data-v-ce38a7bd]{opacity:0;transform:translate(30px)} diff --git a/themes/2024/assets/SendFileView-DRPDfOMx.js b/themes/2024/assets/SendFileView-DRPDfOMx.js deleted file mode 100644 index 24f3a9f..0000000 --- a/themes/2024/assets/SendFileView-DRPDfOMx.js +++ /dev/null @@ -1,21 +0,0 @@ -import{c as W,B as oe,r as D,o as ne,w as he,d as U,z as F,e as a,_ as se,u as ae,y as ge,i as pe,b as ye,p as ve,f as M,n as f,g as i,h as Q,l as E,k as N,t as P,j as J,v as X,x as K,C as xe,F as Y,q as Z,m as V,X as be,T as me,A as ee}from"./index-Ch_yhQYc.js";import{g as we,u as _e,S as Ce,C as Ae,E as Me,a as Se,Q as Be}from"./_commonjsHelpers-Bz0FHX1E.js";import{F as te}from"./file-CY1Cm1A5.js";import{T as Ie,H as Te}from"./trash-Y8g6Hj4p.js";/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ue=W("ClipboardCopyIcon",[["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"}]]);/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Fe=W("ClockIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const De=W("CloudUploadIcon",[["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"}]]);/** - * @license lucide-vue-next v0.445.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ze=W("SendIcon",[["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"}]]),Pe=oe({__name:"BorderProgressBar",props:{progress:{}},setup(S){const k=S,T=D(null),u=D(null);let d=null;const C=()=>{if(!d||!u.value||!T.value)return;const v=T.value.clientWidth,b=T.value.clientHeight;u.value.width=v,u.value.height=b;const p=4,c=8;d.lineWidth=p;const A=d.createLinearGradient(0,0,v,b);A.addColorStop(0,"#4f46e5"),A.addColorStop(.5,"#7c3aed"),A.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",w(d,p/2,p/2,v-p,b-p,c),d.stroke();const I=((v+b)*2-8*c+2*Math.PI*c)*k.progress/100;d.strokeStyle=A,d.lineCap="round",d.lineJoin="round",d.beginPath();let y=I;const m=p/2,h=v-p,s=b-p;if(y>0){const n=Math.min(h-2*c,y);d.moveTo(c+m,m),d.lineTo(n+c+m,m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(h-c+m,c+m,c,-Math.PI/2,n-Math.PI/2,!1),y-=n*c}if(y>0){const n=Math.min(s-2*c,y);d.lineTo(h+m,n+c+m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(h-c+m,s-c+m,c,0,n,!1),y-=n*c}if(y>0){const n=Math.min(h-2*c,y);d.lineTo(h-n-c+m,s+m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(c+m,s-c+m,c,Math.PI/2,Math.PI/2+n,!1),y-=n*c}if(y>0){const n=Math.min(s-2*c,y);d.lineTo(m,s-n-c+m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(c+m,c+m,c,Math.PI,Math.PI+n,!1)}d.stroke()};function w(v,b,p,c,A,_){v.beginPath(),v.moveTo(b+_,p),v.lineTo(b+c-_,p),v.arcTo(b+c,p,b+c,p+_,_),v.lineTo(b+c,p+A-_),v.arcTo(b+c,p+A,b+c-_,p+A,_),v.lineTo(b+_,p+A),v.arcTo(b,p+A,b,p+A-_,_),v.lineTo(b,p+_),v.arcTo(b,p,b+_,p,_),v.closePath()}return ne(()=>{u.value&&(d=u.value.getContext("2d"),C())}),he(()=>k.progress,C),(v,b)=>(F(),U("div",{class:"border-progress-container",ref_key:"container",ref:T},[a("canvas",{ref_key:"canvas",ref:u,class:"border-progress-canvas"},null,512)],512))}}),ke=se(Pe,[["__scopeId","data-v-2fbf5085"]]);var ie={exports:{}};(function(S,k){(function(T){S.exports=T()})(function(T){var u=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(s,n){var t=s[0],e=s[1],o=s[2],r=s[3];t+=(e&o|~e&r)+n[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[3]-1044525330|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[7]-45705983|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[11]-1990404162|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[15]+1236535329|0,e=(e<<22|e>>>10)+o|0,t+=(e&r|o&~r)+n[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[0]-373897302|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[4]-405537848|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[8]+1163531501|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[12]-1926607734|0,e=(e<<20|e>>>12)+o|0,t+=(e^o^r)+n[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[14]-35309556|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[10]-1094730640|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[6]+76029189|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[2]-995338651|0,e=(e<<23|e>>>9)+o|0,t+=(o^(e|~r))+n[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[5]-57434055|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[1]-2054922799|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[13]+1309151649|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[9]-343485551|0,e=(e<<21|e>>>11)+o|0,s[0]=t+s[0]|0,s[1]=e+s[1]|0,s[2]=o+s[2]|0,s[3]=r+s[3]|0}function C(s){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=s.charCodeAt(t)+(s.charCodeAt(t+1)<<8)+(s.charCodeAt(t+2)<<16)+(s.charCodeAt(t+3)<<24);return n}function w(s){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=s[t]+(s[t+1]<<8)+(s[t+2]<<16)+(s[t+3]<<24);return n}function v(s){var n=s.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,B,$,L;for(e=64;e<=n;e+=64)d(t,C(s.substring(e-64,e)));for(s=s.substring(e-64),o=s.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=s.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return B=n*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(B[2],16),L=parseInt(B[1],16)||0,r[14]=$,r[15]=L,d(t,r),t}function b(s){var n=s.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,B,$,L;for(e=64;e<=n;e+=64)d(t,w(s.subarray(e-64,e)));for(s=e-64>2]|=s[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return B=n*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(B[2],16),L=parseInt(B[1],16)||0,r[14]=$,r[15]=L,d(t,r),t}function p(s){var n="",t;for(t=0;t<4;t+=1)n+=u[s>>t*8+4&15]+u[s>>t*8&15];return n}function c(s){var n;for(n=0;nr?new ArrayBuffer(0):(B=r-o,$=new ArrayBuffer(B),L=new Uint8Array($),q=new Uint8Array(this,o,B),L.set(q),$)}}();function A(s){return/[\u0080-\uFFFF]/.test(s)&&(s=unescape(encodeURIComponent(s))),s}function _(s,n){var t=s.length,e=new ArrayBuffer(t),o=new Uint8Array(e),r;for(r=0;r>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,t),r=c(this._hash),s&&(r=m(r)),this.reset(),r},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(s){return this._buff=s.buff,this._length=s.length,this._hash=s.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(s,n){var t=n,e,o,r;if(s[t>>2]|=128<<(t%4<<3),t>55)for(d(this._hash,s),t=0;t<16;t+=1)s[t]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(e[2],16),r=parseInt(e[1],16)||0,s[14]=o,s[15]=r,d(this._hash,s)},h.hash=function(s,n){return h.hashBinary(A(s),n)},h.hashBinary=function(s,n){var t=v(s),e=c(t);return n?m(e):e},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(s){var n=y(this._buff.buffer,s),t=n.length,e;for(this._length+=s.byteLength,e=64;e<=t;e+=64)d(this._hash,w(n.subarray(e-64,e)));return this._buff=e-64>2]|=n[o]<<(o%4<<3);return this._finish(e,t),r=c(this._hash),s&&(r=m(r)),this.reset(),r},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var s=h.prototype.getState.call(this);return s.buff=I(s.buff),s},h.ArrayBuffer.prototype.setState=function(s){return s.buff=_(s.buff,!0),h.prototype.setState.call(this,s)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(s,n){var t=b(new Uint8Array(s)),e=c(t);return n?m(e):e},h})})(ie);var $e=ie.exports;const Le=we($e),le=async(S,k={})=>{const{successMsg:T="复制成功",errorMsg:u="复制失败,请手动复制",showMsg:d=!0}=k,C=ae();try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(S),d&&C.showAlert(T,"success"),!0;const w=document.createElement("textarea");w.value=S,w.style.position="fixed",w.style.opacity="0",document.body.appendChild(w),w.select();const v=document.execCommand("copy");if(document.body.removeChild(w),v)return d&&C.showAlert(T,"success"),!0;throw new Error("execCommand copy failed")}catch(w){return console.error("复制失败:",w),d&&C.showAlert(u,"error"),!1}},re=async S=>{const k=`${window.location.origin}/#/?code=${S}`;return le(k,{successMsg:"取件链接已复制到剪贴板",errorMsg:"复制失败,请手动复制取件链接"})},je=async S=>le(S,{successMsg:"取件码已复制到剪贴板",errorMsg:"复制失败,请手动复制取件码"}),Re=S=>S>=1024*1024*1024?Math.round(S/(1024*1024*1024))+"GB":S>=1024*1024?Math.round(S/(1024*1024))+"MB":Math.round(S/1024)+"KB",Ve={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},He={class:"p-8"},Ee={class:"flex justify-center space-x-4 mb-6"},Ne={key:"file",class:"grid grid-cols-1 gap-8"},qe={key:0,class:"absolute inset-0 w-full h-full"},We={class:"block truncate"},Ge={key:"text",class:"grid grid-cols-1 gap-8"},Qe={key:0,class:"flex flex-col"},Je={class:"flex flex-col space-y-4"},Ke=["value"],Oe={key:0,class:"flex items-center space-x-2"},Xe={class:"relative flex-grow"},Ye=["placeholder"],Ze={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"},et={class:"relative z-10 flex items-center justify-center text-lg"},tt={class:"mt-6 text-center"},rt={class:"flex-grow overflow-y-auto p-6"},ot={class:"flex-shrink-0 mr-4"},nt={class:"flex-grow min-w-0 mr-4"},st={class:"flex-shrink-0 flex space-x-2"},at=["onClick"],it=["onClick"],lt=["onClick"],ut={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ct={class:"space-y-4"},dt={class:"flex items-center"},ft={class:"flex items-center"},ht={class:"flex items-center"},gt={class:"flex items-center"},pt={class:"mt-6 flex justify-between items-center"},yt={class:"flex flex-col items-center w-1/2 pr-2"},vt={class:"text-2xl font-bold text-indigo-600"},xt={class:"flex flex-col items-center w-1/2 pl-2"},bt={class:"bg-white p-2 rounded-lg shadow-md"},mt=oe({__name:"SendFileView",setup(S){const k=JSON.parse(localStorage.getItem("config")||"{}");console.log(k);const T=ge(),u=pe("isDarkMode"),d=_e(),C=D("file"),w=D(null),v=D(""),b=D(null),p=D("day"),c=D("1"),A=D(0),_=D(!1),I=D(null),y=ae(),m=ye(()=>d.shareData),h=D("");D(new Set);const s=()=>{var g;(g=b.value)==null||g.click()},n=async g=>{const l=g.target;l.files&&l.files.length>0&&(w.value=l.files[0],h.value=await e(w.value))},t=async g=>{var l;(l=g.dataTransfer)!=null&&l.files&&g.dataTransfer.files.length>0&&(w.value=g.dataTransfer.files[0],h.value=await e(w.value))},e=async g=>new Promise(l=>{const x=new Le.ArrayBuffer,z=new FileReader;let R=0;const G=Math.ceil(g.size/2097152);z.onload=H=>{x.append(H.target.result),R++,R{const H=R*2097152,fe=H+2097152>=g.size?g.size:H+2097152;z.readAsArrayBuffer(g.slice(H,fe))};O()}),o=(g=p.value)=>{switch(g){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},r=(g=p.value)=>{switch(g){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},B=async()=>{if(C.value==="file"&&!w.value){y.showAlert("请选择要上传的文件","error");return}if(C.value==="text"&&!v.value.trim()){y.showAlert("请输入要发送的文本","error");return}if(p.value!=="forever"&&!c.value){y.showAlert("请输入过期值","error");return}try{let g;const l=new FormData,j=C.value==="file";j?l.append("file",w.value):l.append("text",v.value),p.value!=="forever"&&l.append("expire_value",c.value),l.append("expire_style",p.value);const x={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:z=>{const R=Math.round(z.loaded*100/z.total);A.value=R}};if(j?g=await ee.post("/share/file/",l,x):g=await ee.post("/share/text/",l,x),g&&g.code===200){const z=g.detail.code,R=g.detail.name,G={id:Date.now(),filename:R,date:new Date().toISOString().split("T")[0],size:C.value==="text"?`${(v.value.length/1024).toFixed(2)} KB`:`${(w.value.size/(1024*1024)).toFixed(1)} MB`,expiration:p.value==="forever"?"永久":`${c.value}${r()}后过期`,retrieveCode:z};d.addShareData(G),y.showAlert(`文件发送成功!取件码:${z}`,"success"),w.value=null,v.value="",c.value="",A.value=0,_.value=!0,await re(z)}else throw new Error("服务器响应异常")}catch(g){console.error("发送失败:",g),g.response.data.detail?y.showAlert(g.response.data.detail,"error"):y.showAlert("发送失败,请稍后重试","error")}finally{A.value=0}},$=()=>{T.push("/")},L=()=>{_.value=!_.value},q=g=>{I.value=g},ue=g=>{const l=d.shareData.findIndex(j=>j.id===g);l!==-1&&d.deleteShareData(l)},ce=window.location.origin+"/#/",de=g=>`${ce}?code=${g.retrieveCode}`;return ne(()=>{console.log("SendFileView mounted")}),(g,l)=>{const j=ve("router-link");return F(),U("div",Ve,[a("div",{class:f(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[i(u)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[a("div",He,[a("h2",{class:f(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[i(u)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:$}," FileCodeBox ",2),a("form",{onSubmit:Q(B,["prevent"]),class:"space-y-8"},[a("div",Ee,[a("button",{type:"button",onClick:l[0]||(l[0]=x=>C.value="file"),class:f(["px-4 py-2 rounded-lg",C.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),a("button",{type:"button",onClick:l[1]||(l[1]=x=>C.value="text"),class:f(["px-4 py-2 rounded-lg",C.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),M(K,{name:"fade",mode:"out-in"},{default:E(()=>[C.value==="file"?(F(),U("div",Ne,[a("div",{class:f(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[i(u)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:s,onDragover:l[2]||(l[2]=Q(()=>{},["prevent"])),onDrop:Q(t,["prevent"])},[a("input",{id:"file-upload",type:"file",class:"hidden",onChange:n,ref_key:"fileInput",ref:b},null,544),A.value>0?(F(),U("div",qe,[M(ke,{progress:A.value},null,8,["progress"])])):N("",!0),M(i(De),{class:f(["w-16 h-16 transition-colors duration-300",i(u)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),a("p",{class:f(["mt-4 text-sm transition-colors duration-300 w-full text-center",i(u)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[a("span",We,P(w.value?w.value.name:"点击或拖放文件到此处上传"),1)],2),a("p",{class:f(["mt-2 text-xs",i(u)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大"+P(i(Re)(i(k).uploadSize)),3)],34)])):(F(),U("div",Ge,[C.value==="text"?(F(),U("div",Qe,[J(a("textarea",{id:"text-content","onUpdate:modelValue":l[3]||(l[3]=x=>v.value=x),rows:"7",class:f(["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",i(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[X,v.value]])])):N("",!0)]))]),_:1}),a("div",Je,[a("label",{class:f(["text-sm font-medium",i(u)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),J(a("select",{"onUpdate:modelValue":l[4]||(l[4]=x=>p.value=x),class:f(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",i(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},[(F(!0),U(Y,null,Z(i(k).expireStyle,x=>(F(),U("option",{value:x,key:x},P(r(x)),9,Ke))),128))],2),[[xe,p.value]]),p.value!=="forever"?(F(),U("div",Oe,[a("div",Xe,[J(a("input",{"onUpdate:modelValue":l[5]||(l[5]=x=>c.value=x),type:"number",placeholder:o(),class:f(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",i(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,Ye),[[X,c.value]]),a("span",{class:f(["absolute right-3 top-1/2 transform -translate-y-1/2",i(u)?"text-gray-300":"text-gray-700"])},P(r()),3)])])):N("",!0)]),a("button",Ze,[l[9]||(l[9]=a("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)),a("span",et,[M(i(ze),{class:"w-6 h-6 mr-2"}),l[8]||(l[8]=a("span",null,"安全寄送",-1))])])],32),a("div",tt,[M(j,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:E(()=>l[10]||(l[10]=[V(" 需要取件?点击这里 ")])),_:1})])]),a("div",{class:f(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[i(u)?"bg-gray-800":"bg-gray-100"]])},[a("span",{class:f(["text-sm flex items-center",[i(u)?"text-gray-300":"text-gray-800"]])},[M(i(Ce),{class:"w-4 h-4 mr-1 text-green-400"}),l[11]||(l[11]=V(" 安全加密 "))],2),a("button",{onClick:L,class:f(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[i(u)?"text-indigo-400":"text-indigo-600"]])},[l[12]||(l[12]=V(" 发件记录 ")),M(i(Ae),{class:"w-4 h-4 ml-1"})],2)],2)],2),M(K,{name:"drawer"},{default:E(()=>[_.value?(F(),U("div",{key:0,class:f(["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",[i(u)?"bg-gray-900":"bg-white"]])},[a("div",{class:f(["flex justify-between items-center p-6 border-b",[i(u)?"border-gray-700":"border-gray-200"]])},[a("h3",{class:f(["text-2xl font-bold",[i(u)?"text-white":"text-gray-800"]])}," 发件记录 ",2),a("button",{onClick:L,class:f(["hover:text-white transition duration-300",[i(u)?"text-gray-400":"text-gray-800"]])},[M(i(be),{class:"w-6 h-6"})],2)],2),a("div",rt,[M(me,{name:"list",tag:"div",class:"space-y-4"},{default:E(()=>[(F(!0),U(Y,null,Z(m.value,x=>(F(),U("div",{key:x.id,class:f(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[i(u)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[a("div",ot,[M(i(te),{class:f(["w-10 h-10",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),a("div",nt,[a("p",{class:f(["font-medium text-lg truncate",[i(u)?"text-white":"text-gray-800"]])},P(x.filename?x.filename:"Text"),3),a("p",{class:f(["text-sm truncate",[i(u)?"text-gray-400":"text-gray-600"]])},P(x.date)+" · "+P(x.size),3)]),a("div",st,[a("button",{onClick:z=>i(re)(x.retrieveCode),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[i(u)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[M(i(Ue),{class:"w-5 h-5"})],10,at),a("button",{onClick:z=>q(x),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[i(u)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[M(i(Me),{class:"w-5 h-5"})],10,it),a("button",{onClick:z=>ue(x.id),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[i(u)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[M(i(Ie),{class:"w-5 h-5"})],10,lt)])],2))),128))]),_:1})])],2)):N("",!0)]),_:1}),M(K,{name:"fade"},{default:E(()=>[I.value?(F(),U("div",ut,[a("div",{class:f(["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 bg-opacity-70",[i(u)?"bg-gray-800":"bg-white"]])},[a("h3",{class:f(["text-2xl font-bold mb-6",[i(u)?"text-white":"text-gray-800"]])}," 文件详情 ",2),a("div",ct,[a("div",dt,[M(i(te),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[13]||(l[13]=a("span",{class:"font-medium"},"文件名:",-1)),V(P(I.value.filename),1)],2)]),a("div",ft,[M(i(Se),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[14]||(l[14]=a("span",{class:"font-medium"},"发送日期:",-1)),V(P(I.value.date),1)],2)]),a("div",ht,[M(i(Te),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[15]||(l[15]=a("span",{class:"font-medium"},"文件大小:",-1)),V(P(I.value.size),1)],2)]),a("div",gt,[M(i(Fe),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[16]||(l[16]=a("span",{class:"font-medium"},"过期时间:",-1)),V(P(I.value.expiration),1)],2)])]),a("div",pt,[a("div",yt,[a("h4",{class:f(["text-lg font-semibold mb-3",[i(u)?"text-white":"text-gray-800"]])}," 取件码 ",2),a("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:l[6]||(l[6]=x=>i(je)(I.value.retrieveCode))},[a("p",vt,P(I.value.retrieveCode),1)]),a("p",{class:f(["mt-2 text-sm",[i(u)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),a("div",xt,[a("h4",{class:f(["text-lg font-semibold mb-3",[i(u)?"text-white":"text-gray-800"]])}," 二维码 ",2),a("div",bt,[M(Be,{value:de(I.value),size:128,level:"M"},null,8,["value"])]),a("p",{class:f(["mt-2 text-sm",[i(u)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),a("button",{onClick:l[7]||(l[7]=x=>I.value=null),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"}," 关闭 ")],2)])):N("",!0)]),_:1})])}}}),Mt=se(mt,[["__scopeId","data-v-ce38a7bd"]]);export{Mt as default}; diff --git a/themes/2024/assets/SendFileView-DneMQ9So.js b/themes/2024/assets/SendFileView-DneMQ9So.js new file mode 100644 index 0000000..217ef2e --- /dev/null +++ b/themes/2024/assets/SendFileView-DneMQ9So.js @@ -0,0 +1,21 @@ +import{c as W,B as oe,r as z,o as ne,w as he,d as F,z as D,e as a,_ as se,u as ae,y as ge,i as pe,b as ye,p as ve,f as M,n as f,g as i,t as U,h as Q,l as E,k as N,j as J,v as X,x as K,C as be,F as Y,q as Z,m as V,X as xe,T as me,A as ee}from"./index-BIfJi_O-.js";import{g as we,u as _e,S as Ce,C as Ae,E as Me,a as Se,Q as Be}from"./_commonjsHelpers-CljsJuVy.js";import{F as te}from"./file-AHrKtGwY.js";import{T as Ie,H as Te}from"./trash-wtxrZ93m.js";/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ue=W("ClipboardCopyIcon",[["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"}]]);/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fe=W("ClockIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const De=W("CloudUploadIcon",[["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"}]]);/** + * @license lucide-vue-next v0.445.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ze=W("SendIcon",[["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"}]]),Pe=oe({__name:"BorderProgressBar",props:{progress:{}},setup(S){const k=S,T=z(null),u=z(null);let d=null;const C=()=>{if(!d||!u.value||!T.value)return;const v=T.value.clientWidth,x=T.value.clientHeight;u.value.width=v,u.value.height=x;const p=4,c=8;d.lineWidth=p;const A=d.createLinearGradient(0,0,v,x);A.addColorStop(0,"#4f46e5"),A.addColorStop(.5,"#7c3aed"),A.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",w(d,p/2,p/2,v-p,x-p,c),d.stroke();const I=((v+x)*2-8*c+2*Math.PI*c)*k.progress/100;d.strokeStyle=A,d.lineCap="round",d.lineJoin="round",d.beginPath();let y=I;const m=p/2,h=v-p,s=x-p;if(y>0){const n=Math.min(h-2*c,y);d.moveTo(c+m,m),d.lineTo(n+c+m,m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(h-c+m,c+m,c,-Math.PI/2,n-Math.PI/2,!1),y-=n*c}if(y>0){const n=Math.min(s-2*c,y);d.lineTo(h+m,n+c+m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(h-c+m,s-c+m,c,0,n,!1),y-=n*c}if(y>0){const n=Math.min(h-2*c,y);d.lineTo(h-n-c+m,s+m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(c+m,s-c+m,c,Math.PI/2,Math.PI/2+n,!1),y-=n*c}if(y>0){const n=Math.min(s-2*c,y);d.lineTo(m,s-n-c+m),y-=n}if(y>0){const n=Math.min(Math.PI/2,y/c);d.arc(c+m,c+m,c,Math.PI,Math.PI+n,!1)}d.stroke()};function w(v,x,p,c,A,_){v.beginPath(),v.moveTo(x+_,p),v.lineTo(x+c-_,p),v.arcTo(x+c,p,x+c,p+_,_),v.lineTo(x+c,p+A-_),v.arcTo(x+c,p+A,x+c-_,p+A,_),v.lineTo(x+_,p+A),v.arcTo(x,p+A,x,p+A-_,_),v.lineTo(x,p+_),v.arcTo(x,p,x+_,p,_),v.closePath()}return ne(()=>{u.value&&(d=u.value.getContext("2d"),C())}),he(()=>k.progress,C),(v,x)=>(D(),F("div",{class:"border-progress-container",ref_key:"container",ref:T},[a("canvas",{ref_key:"canvas",ref:u,class:"border-progress-canvas"},null,512)],512))}}),ke=se(Pe,[["__scopeId","data-v-2fbf5085"]]);var ie={exports:{}};(function(S,k){(function(T){S.exports=T()})(function(T){var u=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(s,n){var t=s[0],e=s[1],o=s[2],r=s[3];t+=(e&o|~e&r)+n[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[3]-1044525330|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[7]-45705983|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[11]-1990404162|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[15]+1236535329|0,e=(e<<22|e>>>10)+o|0,t+=(e&r|o&~r)+n[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[0]-373897302|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[4]-405537848|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[8]+1163531501|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[12]-1926607734|0,e=(e<<20|e>>>12)+o|0,t+=(e^o^r)+n[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[14]-35309556|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[10]-1094730640|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[6]+76029189|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[2]-995338651|0,e=(e<<23|e>>>9)+o|0,t+=(o^(e|~r))+n[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[5]-57434055|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[1]-2054922799|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[13]+1309151649|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[9]-343485551|0,e=(e<<21|e>>>11)+o|0,s[0]=t+s[0]|0,s[1]=e+s[1]|0,s[2]=o+s[2]|0,s[3]=r+s[3]|0}function C(s){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=s.charCodeAt(t)+(s.charCodeAt(t+1)<<8)+(s.charCodeAt(t+2)<<16)+(s.charCodeAt(t+3)<<24);return n}function w(s){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=s[t]+(s[t+1]<<8)+(s[t+2]<<16)+(s[t+3]<<24);return n}function v(s){var n=s.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,B,$,L;for(e=64;e<=n;e+=64)d(t,C(s.substring(e-64,e)));for(s=s.substring(e-64),o=s.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=s.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return B=n*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(B[2],16),L=parseInt(B[1],16)||0,r[14]=$,r[15]=L,d(t,r),t}function x(s){var n=s.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,B,$,L;for(e=64;e<=n;e+=64)d(t,w(s.subarray(e-64,e)));for(s=e-64>2]|=s[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return B=n*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(B[2],16),L=parseInt(B[1],16)||0,r[14]=$,r[15]=L,d(t,r),t}function p(s){var n="",t;for(t=0;t<4;t+=1)n+=u[s>>t*8+4&15]+u[s>>t*8&15];return n}function c(s){var n;for(n=0;nr?new ArrayBuffer(0):(B=r-o,$=new ArrayBuffer(B),L=new Uint8Array($),q=new Uint8Array(this,o,B),L.set(q),$)}}();function A(s){return/[\u0080-\uFFFF]/.test(s)&&(s=unescape(encodeURIComponent(s))),s}function _(s,n){var t=s.length,e=new ArrayBuffer(t),o=new Uint8Array(e),r;for(r=0;r>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,t),r=c(this._hash),s&&(r=m(r)),this.reset(),r},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(s){return this._buff=s.buff,this._length=s.length,this._hash=s.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(s,n){var t=n,e,o,r;if(s[t>>2]|=128<<(t%4<<3),t>55)for(d(this._hash,s),t=0;t<16;t+=1)s[t]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(e[2],16),r=parseInt(e[1],16)||0,s[14]=o,s[15]=r,d(this._hash,s)},h.hash=function(s,n){return h.hashBinary(A(s),n)},h.hashBinary=function(s,n){var t=v(s),e=c(t);return n?m(e):e},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(s){var n=y(this._buff.buffer,s),t=n.length,e;for(this._length+=s.byteLength,e=64;e<=t;e+=64)d(this._hash,w(n.subarray(e-64,e)));return this._buff=e-64>2]|=n[o]<<(o%4<<3);return this._finish(e,t),r=c(this._hash),s&&(r=m(r)),this.reset(),r},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var s=h.prototype.getState.call(this);return s.buff=I(s.buff),s},h.ArrayBuffer.prototype.setState=function(s){return s.buff=_(s.buff,!0),h.prototype.setState.call(this,s)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(s,n){var t=x(new Uint8Array(s)),e=c(t);return n?m(e):e},h})})(ie);var $e=ie.exports;const Le=we($e),le=async(S,k={})=>{const{successMsg:T="复制成功",errorMsg:u="复制失败,请手动复制",showMsg:d=!0}=k,C=ae();try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(S),d&&C.showAlert(T,"success"),!0;const w=document.createElement("textarea");w.value=S,w.style.position="fixed",w.style.opacity="0",document.body.appendChild(w),w.select();const v=document.execCommand("copy");if(document.body.removeChild(w),v)return d&&C.showAlert(T,"success"),!0;throw new Error("execCommand copy failed")}catch(w){return console.error("复制失败:",w),d&&C.showAlert(u,"error"),!1}},re=async S=>{const k=`${window.location.origin}/#/?code=${S}`;return le(k,{successMsg:"取件链接已复制到剪贴板",errorMsg:"复制失败,请手动复制取件链接"})},je=async S=>le(S,{successMsg:"取件码已复制到剪贴板",errorMsg:"复制失败,请手动复制取件码"}),Re=S=>S>=1024*1024*1024?Math.round(S/(1024*1024*1024))+"GB":S>=1024*1024?Math.round(S/(1024*1024))+"MB":Math.round(S/1024)+"KB",Ve={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},He={class:"p-8"},Ee={class:"flex justify-center space-x-4 mb-6"},Ne={key:"file",class:"grid grid-cols-1 gap-8"},qe={key:0,class:"absolute inset-0 w-full h-full"},We={class:"block truncate"},Ge={key:"text",class:"grid grid-cols-1 gap-8"},Qe={key:0,class:"flex flex-col"},Je={class:"flex flex-col space-y-4"},Ke=["value"],Oe={key:0,class:"flex items-center space-x-2"},Xe={class:"relative flex-grow"},Ye=["placeholder"],Ze={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"},et={class:"relative z-10 flex items-center justify-center text-lg"},tt={class:"mt-6 text-center"},rt={class:"flex-grow overflow-y-auto p-6"},ot={class:"flex-shrink-0 mr-4"},nt={class:"flex-grow min-w-0 mr-4"},st={class:"flex-shrink-0 flex space-x-2"},at=["onClick"],it=["onClick"],lt=["onClick"],ut={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ct={class:"space-y-4"},dt={class:"flex items-center"},ft={class:"flex items-center"},ht={class:"flex items-center"},gt={class:"flex items-center"},pt={class:"mt-6 flex justify-between items-center"},yt={class:"flex flex-col items-center w-1/2 pr-2"},vt={class:"text-2xl font-bold text-indigo-600"},bt={class:"flex flex-col items-center w-1/2 pl-2"},xt={class:"bg-white p-2 rounded-lg shadow-md"},mt=oe({__name:"SendFileView",setup(S){const k=JSON.parse(localStorage.getItem("config")||"{}"),T=ge(),u=pe("isDarkMode"),d=_e(),C=z("file"),w=z(null),v=z(""),x=z(null),p=z("day"),c=z("1"),A=z(0),_=z(!1),I=z(null),y=ae(),m=ye(()=>d.shareData),h=z("");z(new Set);const s=()=>{var g;(g=x.value)==null||g.click()},n=async g=>{const l=g.target;l.files&&l.files.length>0&&(w.value=l.files[0],h.value=await e(w.value))},t=async g=>{var l;(l=g.dataTransfer)!=null&&l.files&&g.dataTransfer.files.length>0&&(w.value=g.dataTransfer.files[0],h.value=await e(w.value))},e=async g=>new Promise(l=>{const b=new Le.ArrayBuffer,P=new FileReader;let R=0;const G=Math.ceil(g.size/2097152);P.onload=H=>{b.append(H.target.result),R++,R{const H=R*2097152,fe=H+2097152>=g.size?g.size:H+2097152;P.readAsArrayBuffer(g.slice(H,fe))};O()}),o=(g=p.value)=>{switch(g){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},r=(g=p.value)=>{switch(g){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},B=async()=>{if(C.value==="file"&&!w.value){y.showAlert("请选择要上传的文件","error");return}if(C.value==="text"&&!v.value.trim()){y.showAlert("请输入要发送的文本","error");return}if(p.value!=="forever"&&!c.value){y.showAlert("请输入过期值","error");return}try{let g;const l=new FormData,j=C.value==="file";j?l.append("file",w.value):l.append("text",v.value),p.value!=="forever"&&l.append("expire_value",c.value),l.append("expire_style",p.value);const b={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:P=>{const R=Math.round(P.loaded*100/P.total);A.value=R}};if(j?g=await ee.post("/share/file/",l,b):g=await ee.post("/share/text/",l,b),g&&g.code===200){const P=g.detail.code,R=g.detail.name,G={id:Date.now(),filename:R,date:new Date().toISOString().split("T")[0],size:C.value==="text"?`${(v.value.length/1024).toFixed(2)} KB`:`${(w.value.size/(1024*1024)).toFixed(1)} MB`,expiration:p.value==="forever"?"永久":`${c.value}${r()}后过期`,retrieveCode:P};d.addShareData(G),y.showAlert(`文件发送成功!取件码:${P}`,"success"),w.value=null,v.value="",c.value="",A.value=0,_.value=!0,await re(P)}else throw new Error("服务器响应异常")}catch(g){console.error("发送失败:",g),g.response.data.detail?y.showAlert(g.response.data.detail,"error"):y.showAlert("发送失败,请稍后重试","error")}finally{A.value=0}},$=()=>{T.push("/")},L=()=>{_.value=!_.value},q=g=>{I.value=g},ue=g=>{const l=d.shareData.findIndex(j=>j.id===g);l!==-1&&d.deleteShareData(l)},ce=window.location.origin+"/#/",de=g=>`${ce}?code=${g.retrieveCode}`;return ne(()=>{console.log("SendFileView mounted")}),(g,l)=>{const j=ve("router-link");return D(),F("div",Ve,[a("div",{class:f(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[i(u)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[a("div",He,[a("h2",{class:f(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[i(u)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:$},U(i(k).name),3),a("form",{onSubmit:Q(B,["prevent"]),class:"space-y-8"},[a("div",Ee,[a("button",{type:"button",onClick:l[0]||(l[0]=b=>C.value="file"),class:f(["px-4 py-2 rounded-lg",C.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),a("button",{type:"button",onClick:l[1]||(l[1]=b=>C.value="text"),class:f(["px-4 py-2 rounded-lg",C.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),M(K,{name:"fade",mode:"out-in"},{default:E(()=>[C.value==="file"?(D(),F("div",Ne,[a("div",{class:f(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[i(u)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:s,onDragover:l[2]||(l[2]=Q(()=>{},["prevent"])),onDrop:Q(t,["prevent"])},[a("input",{id:"file-upload",type:"file",class:"hidden",onChange:n,ref_key:"fileInput",ref:x},null,544),A.value>0?(D(),F("div",qe,[M(ke,{progress:A.value},null,8,["progress"])])):N("",!0),M(i(De),{class:f(["w-16 h-16 transition-colors duration-300",i(u)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),a("p",{class:f(["mt-4 text-sm transition-colors duration-300 w-full text-center",i(u)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[a("span",We,U(w.value?w.value.name:"点击或拖放文件到此处上传"),1)],2),a("p",{class:f(["mt-2 text-xs",i(u)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大"+U(i(Re)(i(k).uploadSize)),3)],34)])):(D(),F("div",Ge,[C.value==="text"?(D(),F("div",Qe,[J(a("textarea",{id:"text-content","onUpdate:modelValue":l[3]||(l[3]=b=>v.value=b),rows:"7",class:f(["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",i(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[X,v.value]])])):N("",!0)]))]),_:1}),a("div",Je,[a("label",{class:f(["text-sm font-medium",i(u)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),J(a("select",{"onUpdate:modelValue":l[4]||(l[4]=b=>p.value=b),class:f(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",i(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},[(D(!0),F(Y,null,Z(i(k).expireStyle,b=>(D(),F("option",{value:b,key:b},U(r(b)),9,Ke))),128))],2),[[be,p.value]]),p.value!=="forever"?(D(),F("div",Oe,[a("div",Xe,[J(a("input",{"onUpdate:modelValue":l[5]||(l[5]=b=>c.value=b),type:"number",placeholder:o(),class:f(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",i(u)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,Ye),[[X,c.value]]),a("span",{class:f(["absolute right-3 top-1/2 transform -translate-y-1/2",i(u)?"text-gray-300":"text-gray-700"])},U(r()),3)])])):N("",!0)]),a("button",Ze,[l[9]||(l[9]=a("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)),a("span",et,[M(i(ze),{class:"w-6 h-6 mr-2"}),l[8]||(l[8]=a("span",null,"安全寄送",-1))])])],32),a("div",tt,[M(j,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:E(()=>l[10]||(l[10]=[V(" 需要取件?点击这里 ")])),_:1})])]),a("div",{class:f(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[i(u)?"bg-gray-800":"bg-gray-100"]])},[a("span",{class:f(["text-sm flex items-center",[i(u)?"text-gray-300":"text-gray-800"]])},[M(i(Ce),{class:"w-4 h-4 mr-1 text-green-400"}),l[11]||(l[11]=V(" 安全加密 "))],2),a("button",{onClick:L,class:f(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[i(u)?"text-indigo-400":"text-indigo-600"]])},[l[12]||(l[12]=V(" 发件记录 ")),M(i(Ae),{class:"w-4 h-4 ml-1"})],2)],2)],2),M(K,{name:"drawer"},{default:E(()=>[_.value?(D(),F("div",{key:0,class:f(["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",[i(u)?"bg-gray-900":"bg-white"]])},[a("div",{class:f(["flex justify-between items-center p-6 border-b",[i(u)?"border-gray-700":"border-gray-200"]])},[a("h3",{class:f(["text-2xl font-bold",[i(u)?"text-white":"text-gray-800"]])}," 发件记录 ",2),a("button",{onClick:L,class:f(["hover:text-white transition duration-300",[i(u)?"text-gray-400":"text-gray-800"]])},[M(i(xe),{class:"w-6 h-6"})],2)],2),a("div",rt,[M(me,{name:"list",tag:"div",class:"space-y-4"},{default:E(()=>[(D(!0),F(Y,null,Z(m.value,b=>(D(),F("div",{key:b.id,class:f(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[i(u)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[a("div",ot,[M(i(te),{class:f(["w-10 h-10",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),a("div",nt,[a("p",{class:f(["font-medium text-lg truncate",[i(u)?"text-white":"text-gray-800"]])},U(b.filename?b.filename:"Text"),3),a("p",{class:f(["text-sm truncate",[i(u)?"text-gray-400":"text-gray-600"]])},U(b.date)+" · "+U(b.size),3)]),a("div",st,[a("button",{onClick:P=>i(re)(b.retrieveCode),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[i(u)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[M(i(Ue),{class:"w-5 h-5"})],10,at),a("button",{onClick:P=>q(b),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[i(u)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[M(i(Me),{class:"w-5 h-5"})],10,it),a("button",{onClick:P=>ue(b.id),class:f(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[i(u)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[M(i(Ie),{class:"w-5 h-5"})],10,lt)])],2))),128))]),_:1})])],2)):N("",!0)]),_:1}),M(K,{name:"fade"},{default:E(()=>[I.value?(D(),F("div",ut,[a("div",{class:f(["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 bg-opacity-70",[i(u)?"bg-gray-800":"bg-white"]])},[a("h3",{class:f(["text-2xl font-bold mb-6",[i(u)?"text-white":"text-gray-800"]])}," 文件详情 ",2),a("div",ct,[a("div",dt,[M(i(te),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[13]||(l[13]=a("span",{class:"font-medium"},"文件名:",-1)),V(U(I.value.filename),1)],2)]),a("div",ft,[M(i(Se),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[14]||(l[14]=a("span",{class:"font-medium"},"发送日期:",-1)),V(U(I.value.date),1)],2)]),a("div",ht,[M(i(Te),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[15]||(l[15]=a("span",{class:"font-medium"},"文件大小:",-1)),V(U(I.value.size),1)],2)]),a("div",gt,[M(i(Fe),{class:f(["w-6 h-6 mr-3",[i(u)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),a("p",{class:f([i(u)?"text-gray-300":"text-gray-800"])},[l[16]||(l[16]=a("span",{class:"font-medium"},"过期时间:",-1)),V(U(I.value.expiration),1)],2)])]),a("div",pt,[a("div",yt,[a("h4",{class:f(["text-lg font-semibold mb-3",[i(u)?"text-white":"text-gray-800"]])}," 取件码 ",2),a("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:l[6]||(l[6]=b=>i(je)(I.value.retrieveCode))},[a("p",vt,U(I.value.retrieveCode),1)]),a("p",{class:f(["mt-2 text-sm",[i(u)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),a("div",bt,[a("h4",{class:f(["text-lg font-semibold mb-3",[i(u)?"text-white":"text-gray-800"]])}," 二维码 ",2),a("div",xt,[M(Be,{value:de(I.value),size:128,level:"M"},null,8,["value"])]),a("p",{class:f(["mt-2 text-sm",[i(u)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),a("button",{onClick:l[7]||(l[7]=b=>I.value=null),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"}," 关闭 ")],2)])):N("",!0)]),_:1})])}}}),Mt=se(mt,[["__scopeId","data-v-a1508baa"]]);export{Mt as default}; diff --git a/themes/2024/assets/SystemSettingsView-UJvuI7eX.js b/themes/2024/assets/SystemSettingsView-DdLYY83m.js similarity index 99% rename from themes/2024/assets/SystemSettingsView-UJvuI7eX.js rename to themes/2024/assets/SystemSettingsView-DdLYY83m.js index f04d567..e3d4d24 100644 --- a/themes/2024/assets/SystemSettingsView-UJvuI7eX.js +++ b/themes/2024/assets/SystemSettingsView-DdLYY83m.js @@ -1 +1 @@ -import{B as C,r as b,u as B,d as m,e,n as t,g as s,i as M,j as l,v as i,C as v,F as f,q as _,k as F,t as p,A as w,L as A,z as x}from"./index-Ch_yhQYc.js";const z={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},E={class:"space-y-4"},T={class:"grid grid-cols-1 gap-6"},K={class:"space-y-2"},j={class:"space-y-2"},I={class:"space-y-2"},G={class:"relative"},N={class:"space-y-2"},L={class:"space-y-2"},R=["value"],$={class:"space-y-2"},q={class:"grid grid-cols-1 gap-6 mt-8"},H={class:"space-y-2"},J={class:"space-y-2"},O={class:"space-y-4"},P={class:"space-y-2"},Q={class:"space-y-4"},W={class:"space-y-2"},X={key:0,class:"space-y-4"},Y={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Z={class:"space-y-2"},ee={class:"space-y-2"},oe={class:"space-y-2"},re={class:"space-y-2"},te={class:"space-y-2"},ae={class:"space-y-2"},se={class:"space-y-2"},ne={class:"space-y-2"},le={class:"flex items-center"},ie=["aria-checked"],de={class:"mt-8"},ue={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ge={class:"space-y-2"},ce={class:"flex items-center space-x-2"},ye={class:"space-y-2"},pe={class:"flex items-center space-x-2"},be={class:"space-y-2"},me={class:"flex items-center space-x-2"},ve={class:"space-y-2"},xe={class:"flex flex-wrap gap-3"},he=["value"],fe={class:"space-y-2"},_e={class:"flex items-center space-x-2"},we={class:"space-y-2"},ke={class:"flex items-center"},Ue=["aria-checked"],Se={class:"mt-8"},Ve={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},De={class:"space-y-2"},Ce={class:"flex items-center space-x-2"},Be={class:"space-y-2"},Me={class:"flex items-center space-x-2"},ze=C({__name:"SystemSettingsView",setup(Fe){const a=M("isDarkMode"),n=b({name:"",description:"",file_storage:"",themesChoices:[],expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",storage_path:"",notify_content:"",openUpload:1,uploadSize:1,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:""}),c=b(1),y=b("MB"),u=b(1),g=b("天"),k=(d,o)=>d*{秒:1,分:60,时:3600,天:86400}[o],U=()=>{w({url:"/admin/config/get",method:"get"}).then(d=>{n.value=d.detail;let o=n.value.uploadSize;o>=1024*1024*1024?(c.value=Math.round(o/(1024*1024*1024)),y.value="GB"):o>=1024*1024?(c.value=Math.round(o/(1024*1024)),y.value="MB"):(c.value=Math.round(o/1024),y.value="KB");let r=n.value.max_save_seconds;r===0?(u.value=7,g.value="天"):r%86400===0&&r>=86400?(u.value=r/86400,g.value="天"):r%3600===0&&r>=3600?(u.value=r/3600,g.value="时"):r%60===0&&r>=60?(u.value=r/60,g.value="分"):(u.value=r,g.value="秒")})},h=B(),S=(d,o)=>d*{KB:1024,MB:1048576,GB:1073741824}[o],V=()=>{const d={...n.value};d.uploadSize=S(c.value,y.value),u.value===0?d.max_save_seconds=7*86400:d.max_save_seconds=k(u.value,g.value),w({url:"/admin/config/update",method:"patch",data:d}).then(o=>{o.code==200?h.showAlert("保存成功","success"):h.showAlert(o.message,"error")})};return U(),(d,o)=>(x(),m("div",z,[e("h2",{class:t(["text-2xl font-bold mb-6",[s(a)?"text-white":"text-gray-800"]])}," 系统设置 ",2),e("div",{class:t(["space-y-6 rounded-lg shadow-md p-6",[s(a)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",E,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 基本设置 ",2),e("div",T,[e("div",K,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站名称 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=r=>n.value.name=r),class:t(["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",[s(a)?"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),[[i,n.value.name]])]),e("div",j,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站描述 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=r=>n.value.description=r),class:t(["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",[s(a)?"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),[[i,n.value.description]])]),e("div",I,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 管理员密码 ",2),e("div",G,[l(e("input",{type:"password","onUpdate:modelValue":o[2]||(o[2]=r=>n.value.admin_token=r),placeholder:"留空则不修改密码",class:t(["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",[s(a)?"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),[[i,n.value.admin_token]]),e("div",{class:t(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[s(a)?"text-gray-500":"text-gray-400"]])},o[28]||(o[28]=[e("span",{class:"text-xs"},"留空则不修改",-1)]),2)])]),e("div",N,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 关键词 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=r=>n.value.keywords=r),class:t(["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",[s(a)?"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),[[i,n.value.keywords]])]),e("div",L,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 主题选择 ",2),l(e("select",{"onUpdate:modelValue":o[4]||(o[4]=r=>n.value.themesSelect=r),class:t(["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",[s(a)?"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')"}},[(x(!0),m(f,null,_(n.value.themesChoices,r=>(x(),m("option",{value:r.key,key:r.key},p(r.name)+" (by "+p(r.author)+" V"+p(r.version)+") ",9,R))),128))],2),[[v,n.value.themesSelect]])]),e("div",$,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," Robots.txt ",2),l(e("textarea",{"onUpdate:modelValue":o[5]||(o[5]=r=>n.value.robotsText=r),rows:"3",class:t(["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",[s(a)?"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),[[i,n.value.robotsText]])])]),e("div",q,[e("div",H,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知标题 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[6]||(o[6]=r=>n.value.notify_title=r),class:t(["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",[s(a)?"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),[[i,n.value.notify_title]])]),e("div",J,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知内容 ",2),l(e("textarea",{"onUpdate:modelValue":o[7]||(o[7]=r=>n.value.notify_content=r),rows:"3",class:t(["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",[s(a)?"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),[[i,n.value.notify_content]])])]),e("div",O,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 存储设置 ",2),e("div",P,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 存储路径 ",2),l(e("input",{type:"text",placeholder:"留空则使用默认路径,可不填写","onUpdate:modelValue":o[8]||(o[8]=r=>n.value.storage_path=r),class:t(["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",[s(a)?"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),[[i,n.value.storage_path]])]),e("div",Q,[e("div",W,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 存储方式 ",2),l(e("select",{"onUpdate:modelValue":o[9]||(o[9]=r=>n.value.file_storage=r),class:t(["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",[s(a)?"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')"}},o[29]||(o[29]=[e("option",{value:"local"},"本地存储",-1),e("option",{value:"s3"},"S3 存储",-1)]),2),[[v,n.value.file_storage]])]),n.value.file_storage==="s3"?(x(),m("div",X,[e("div",Y,[e("div",Z,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 AccessKeyId ",2),l(e("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=r=>n.value.s3_access_key_id=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_access_key_id]])]),e("div",ee,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 SecretAccessKey ",2),l(e("input",{type:"password","onUpdate:modelValue":o[11]||(o[11]=r=>n.value.s3_secret_access_key=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_secret_access_key]])]),e("div",oe,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 BucketName ",2),l(e("input",{type:"text","onUpdate:modelValue":o[12]||(o[12]=r=>n.value.s3_bucket_name=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_bucket_name]])]),e("div",re,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 EndpointUrl ",2),l(e("input",{type:"text","onUpdate:modelValue":o[13]||(o[13]=r=>n.value.s3_endpoint_url=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_endpoint_url]])]),e("div",te,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Region Name ",2),l(e("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=r=>n.value.s3_region_name=r),placeholder:"auto",class:t(["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",[s(a)?"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),[[i,n.value.s3_region_name]])]),e("div",ae,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Signature Version ",2),l(e("select",{"onUpdate:modelValue":o[15]||(o[15]=r=>n.value.s3_signature_version=r),class:t(["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",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[30]||(o[30]=[e("option",{value:"s3v2"},"S3v2",-1),e("option",{value:"s3v4"},"S3v4",-1)]),2),[[v,n.value.s3_signature_version]])]),e("div",se,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Hostname ",2),l(e("input",{type:"text","onUpdate:modelValue":o[16]||(o[16]=r=>n.value.s3_hostname=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_hostname]])]),e("div",ne,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 启用代理 ",2),e("div",le,[e("button",{type:"button",onClick:o[17]||(o[17]=r=>n.value.s3_proxy=n.value.s3_proxy===1?0:1),class:t(["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",[n.value.s3_proxy===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.s3_proxy===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.s3_proxy===1?"translate-x-5":"translate-x-0",s(a)&&n.value.s3_proxy!==1?"bg-gray-100":"bg-white"]])},null,2)],10,ie),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},p(n.value.s3_proxy===1?"已开启":"已关闭"),3)])])])])):F("",!0)])]),e("div",de,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 上传限制 ",2),e("div",ue,[e("div",ge,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟上传限制 ",2),e("div",ce,[l(e("input",{type:"number","onUpdate:modelValue":o[18]||(o[18]=r=>n.value.uploadMinute=r),class:t(["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",[s(a)?"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),[[i,n.value.uploadMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",ye,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 上传数量限制 ",2),e("div",pe,[l(e("input",{type:"number","onUpdate:modelValue":o[19]||(o[19]=r=>n.value.uploadCount=r),class:t(["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",[s(a)?"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),[[i,n.value.uploadCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"个文件",2)])]),e("div",be,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 文件大小限制 ",2),e("div",me,[l(e("input",{type:"number","onUpdate:modelValue":o[20]||(o[20]=r=>c.value=r),class:t(["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",[s(a)?"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),[[i,c.value]]),l(e("select",{"onUpdate:modelValue":o[21]||(o[21]=r=>y.value=r),class:t(["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",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[31]||(o[31]=[e("option",{value:"KB"},"KB",-1),e("option",{value:"MB"},"MB",-1),e("option",{value:"GB"},"GB",-1)]),2),[[v,y.value]])])]),e("div",ve,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 过期方式 ",2),e("div",xe,[(x(),m(f,null,_(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[l(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":o[22]||(o[22]=D=>n.value.expireStyle=D),class:"peer sr-only"},null,8,he),[[A,n.value.expireStyle]]),e("div",{class:t(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[n.value.expireStyle.includes(r)?(s(a),"bg-indigo-600 border-indigo-600 text-white"):s(a)?"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"]])},p({day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"}[r]),3)])),64))])]),e("div",fe,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 最长保存时间 ",2),e("div",_e,[l(e("input",{type:"number","onUpdate:modelValue":o[23]||(o[23]=r=>u.value=r),class:t(["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",[s(a)?"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),[[i,u.value]]),l(e("select",{"onUpdate:modelValue":o[24]||(o[24]=r=>g.value=r),class:t(["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",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[32]||(o[32]=[e("option",{value:"秒"},"秒",-1),e("option",{value:"分"},"分",-1),e("option",{value:"时"},"时",-1),e("option",{value:"天"},"天",-1)]),2),[[v,g.value]])])]),e("div",we,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 游客上传 ",2),e("div",ke,[e("button",{type:"button",onClick:o[25]||(o[25]=r=>n.value.openUpload=n.value.openUpload===1?0:1),class:t(["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",[n.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.openUpload===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.openUpload===1?"translate-x-5":"translate-x-0",s(a)&&n.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,Ue),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},p(n.value.openUpload===1?"已开启":"已关闭"),3)])])])]),e("div",Se,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 错误限制 ",2),e("div",Ve,[e("div",De,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟错误限制 ",2),e("div",Ce,[l(e("input",{type:"number","onUpdate:modelValue":o[26]||(o[26]=r=>n.value.errorMinute=r),class:t(["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",[s(a)?"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),[[i,n.value.errorMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",Be,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 错误次数限制 ",2),e("div",Me,[l(e("input",{type:"number","onUpdate:modelValue":o[27]||(o[27]=r=>n.value.errorCount=r),class:t(["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",[s(a)?"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),[[i,n.value.errorCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"次",2)])])])]),e("div",{class:"flex justify-end mt-8"},[e("button",{onClick:V,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"}," 保存设置 ")])])],2)]))}});export{ze as default}; +import{B as C,r as b,u as B,d as m,e,n as t,g as s,i as M,j as l,v as i,C as v,F as f,q as _,k as F,t as p,A as w,L as A,z as x}from"./index-BIfJi_O-.js";const z={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},E={class:"space-y-4"},T={class:"grid grid-cols-1 gap-6"},K={class:"space-y-2"},j={class:"space-y-2"},I={class:"space-y-2"},G={class:"relative"},N={class:"space-y-2"},L={class:"space-y-2"},R=["value"],$={class:"space-y-2"},q={class:"grid grid-cols-1 gap-6 mt-8"},H={class:"space-y-2"},J={class:"space-y-2"},O={class:"space-y-4"},P={class:"space-y-2"},Q={class:"space-y-4"},W={class:"space-y-2"},X={key:0,class:"space-y-4"},Y={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Z={class:"space-y-2"},ee={class:"space-y-2"},oe={class:"space-y-2"},re={class:"space-y-2"},te={class:"space-y-2"},ae={class:"space-y-2"},se={class:"space-y-2"},ne={class:"space-y-2"},le={class:"flex items-center"},ie=["aria-checked"],de={class:"mt-8"},ue={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},ge={class:"space-y-2"},ce={class:"flex items-center space-x-2"},ye={class:"space-y-2"},pe={class:"flex items-center space-x-2"},be={class:"space-y-2"},me={class:"flex items-center space-x-2"},ve={class:"space-y-2"},xe={class:"flex flex-wrap gap-3"},he=["value"],fe={class:"space-y-2"},_e={class:"flex items-center space-x-2"},we={class:"space-y-2"},ke={class:"flex items-center"},Ue=["aria-checked"],Se={class:"mt-8"},Ve={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},De={class:"space-y-2"},Ce={class:"flex items-center space-x-2"},Be={class:"space-y-2"},Me={class:"flex items-center space-x-2"},ze=C({__name:"SystemSettingsView",setup(Fe){const a=M("isDarkMode"),n=b({name:"",description:"",file_storage:"",themesChoices:[],expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",storage_path:"",notify_content:"",openUpload:1,uploadSize:1,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:""}),c=b(1),y=b("MB"),u=b(1),g=b("天"),k=(d,o)=>d*{秒:1,分:60,时:3600,天:86400}[o],U=()=>{w({url:"/admin/config/get",method:"get"}).then(d=>{n.value=d.detail;let o=n.value.uploadSize;o>=1024*1024*1024?(c.value=Math.round(o/(1024*1024*1024)),y.value="GB"):o>=1024*1024?(c.value=Math.round(o/(1024*1024)),y.value="MB"):(c.value=Math.round(o/1024),y.value="KB");let r=n.value.max_save_seconds;r===0?(u.value=7,g.value="天"):r%86400===0&&r>=86400?(u.value=r/86400,g.value="天"):r%3600===0&&r>=3600?(u.value=r/3600,g.value="时"):r%60===0&&r>=60?(u.value=r/60,g.value="分"):(u.value=r,g.value="秒")})},h=B(),S=(d,o)=>d*{KB:1024,MB:1048576,GB:1073741824}[o],V=()=>{const d={...n.value};d.uploadSize=S(c.value,y.value),u.value===0?d.max_save_seconds=7*86400:d.max_save_seconds=k(u.value,g.value),w({url:"/admin/config/update",method:"patch",data:d}).then(o=>{o.code==200?h.showAlert("保存成功","success"):h.showAlert(o.message,"error")})};return U(),(d,o)=>(x(),m("div",z,[e("h2",{class:t(["text-2xl font-bold mb-6",[s(a)?"text-white":"text-gray-800"]])}," 系统设置 ",2),e("div",{class:t(["space-y-6 rounded-lg shadow-md p-6",[s(a)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",E,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 基本设置 ",2),e("div",T,[e("div",K,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站名称 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=r=>n.value.name=r),class:t(["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",[s(a)?"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),[[i,n.value.name]])]),e("div",j,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 网站描述 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=r=>n.value.description=r),class:t(["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",[s(a)?"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),[[i,n.value.description]])]),e("div",I,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 管理员密码 ",2),e("div",G,[l(e("input",{type:"password","onUpdate:modelValue":o[2]||(o[2]=r=>n.value.admin_token=r),placeholder:"留空则不修改密码",class:t(["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",[s(a)?"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),[[i,n.value.admin_token]]),e("div",{class:t(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[s(a)?"text-gray-500":"text-gray-400"]])},o[28]||(o[28]=[e("span",{class:"text-xs"},"留空则不修改",-1)]),2)])]),e("div",N,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 关键词 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=r=>n.value.keywords=r),class:t(["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",[s(a)?"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),[[i,n.value.keywords]])]),e("div",L,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 主题选择 ",2),l(e("select",{"onUpdate:modelValue":o[4]||(o[4]=r=>n.value.themesSelect=r),class:t(["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",[s(a)?"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')"}},[(x(!0),m(f,null,_(n.value.themesChoices,r=>(x(),m("option",{value:r.key,key:r.key},p(r.name)+" (by "+p(r.author)+" V"+p(r.version)+") ",9,R))),128))],2),[[v,n.value.themesSelect]])]),e("div",$,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," Robots.txt ",2),l(e("textarea",{"onUpdate:modelValue":o[5]||(o[5]=r=>n.value.robotsText=r),rows:"3",class:t(["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",[s(a)?"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),[[i,n.value.robotsText]])])]),e("div",q,[e("div",H,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知标题 ",2),l(e("input",{type:"text","onUpdate:modelValue":o[6]||(o[6]=r=>n.value.notify_title=r),class:t(["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",[s(a)?"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),[[i,n.value.notify_title]])]),e("div",J,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 通知内容 ",2),l(e("textarea",{"onUpdate:modelValue":o[7]||(o[7]=r=>n.value.notify_content=r),rows:"3",class:t(["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",[s(a)?"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),[[i,n.value.notify_content]])])]),e("div",O,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 存储设置 ",2),e("div",P,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 存储路径 ",2),l(e("input",{type:"text",placeholder:"留空则使用默认路径,可不填写","onUpdate:modelValue":o[8]||(o[8]=r=>n.value.storage_path=r),class:t(["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",[s(a)?"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),[[i,n.value.storage_path]])]),e("div",Q,[e("div",W,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 存储方式 ",2),l(e("select",{"onUpdate:modelValue":o[9]||(o[9]=r=>n.value.file_storage=r),class:t(["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",[s(a)?"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')"}},o[29]||(o[29]=[e("option",{value:"local"},"本地存储",-1),e("option",{value:"s3"},"S3 存储",-1)]),2),[[v,n.value.file_storage]])]),n.value.file_storage==="s3"?(x(),m("div",X,[e("div",Y,[e("div",Z,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 AccessKeyId ",2),l(e("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=r=>n.value.s3_access_key_id=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_access_key_id]])]),e("div",ee,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 SecretAccessKey ",2),l(e("input",{type:"password","onUpdate:modelValue":o[11]||(o[11]=r=>n.value.s3_secret_access_key=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_secret_access_key]])]),e("div",oe,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 BucketName ",2),l(e("input",{type:"text","onUpdate:modelValue":o[12]||(o[12]=r=>n.value.s3_bucket_name=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_bucket_name]])]),e("div",re,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 EndpointUrl ",2),l(e("input",{type:"text","onUpdate:modelValue":o[13]||(o[13]=r=>n.value.s3_endpoint_url=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_endpoint_url]])]),e("div",te,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Region Name ",2),l(e("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=r=>n.value.s3_region_name=r),placeholder:"auto",class:t(["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",[s(a)?"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),[[i,n.value.s3_region_name]])]),e("div",ae,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Signature Version ",2),l(e("select",{"onUpdate:modelValue":o[15]||(o[15]=r=>n.value.s3_signature_version=r),class:t(["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",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[30]||(o[30]=[e("option",{value:"s3v2"},"S3v2",-1),e("option",{value:"s3v4"},"S3v4",-1)]),2),[[v,n.value.s3_signature_version]])]),e("div",se,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," S3 Hostname ",2),l(e("input",{type:"text","onUpdate:modelValue":o[16]||(o[16]=r=>n.value.s3_hostname=r),class:t(["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",[s(a)?"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),[[i,n.value.s3_hostname]])]),e("div",ne,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 启用代理 ",2),e("div",le,[e("button",{type:"button",onClick:o[17]||(o[17]=r=>n.value.s3_proxy=n.value.s3_proxy===1?0:1),class:t(["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",[n.value.s3_proxy===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.s3_proxy===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.s3_proxy===1?"translate-x-5":"translate-x-0",s(a)&&n.value.s3_proxy!==1?"bg-gray-100":"bg-white"]])},null,2)],10,ie),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},p(n.value.s3_proxy===1?"已开启":"已关闭"),3)])])])])):F("",!0)])]),e("div",de,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 上传限制 ",2),e("div",ue,[e("div",ge,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟上传限制 ",2),e("div",ce,[l(e("input",{type:"number","onUpdate:modelValue":o[18]||(o[18]=r=>n.value.uploadMinute=r),class:t(["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",[s(a)?"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),[[i,n.value.uploadMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",ye,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 上传数量限制 ",2),e("div",pe,[l(e("input",{type:"number","onUpdate:modelValue":o[19]||(o[19]=r=>n.value.uploadCount=r),class:t(["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",[s(a)?"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),[[i,n.value.uploadCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"个文件",2)])]),e("div",be,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 文件大小限制 ",2),e("div",me,[l(e("input",{type:"number","onUpdate:modelValue":o[20]||(o[20]=r=>c.value=r),class:t(["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",[s(a)?"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),[[i,c.value]]),l(e("select",{"onUpdate:modelValue":o[21]||(o[21]=r=>y.value=r),class:t(["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",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[31]||(o[31]=[e("option",{value:"KB"},"KB",-1),e("option",{value:"MB"},"MB",-1),e("option",{value:"GB"},"GB",-1)]),2),[[v,y.value]])])]),e("div",ve,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 过期方式 ",2),e("div",xe,[(x(),m(f,null,_(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[l(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":o[22]||(o[22]=D=>n.value.expireStyle=D),class:"peer sr-only"},null,8,he),[[A,n.value.expireStyle]]),e("div",{class:t(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[n.value.expireStyle.includes(r)?(s(a),"bg-indigo-600 border-indigo-600 text-white"):s(a)?"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"]])},p({day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"}[r]),3)])),64))])]),e("div",fe,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 最长保存时间 ",2),e("div",_e,[l(e("input",{type:"number","onUpdate:modelValue":o[23]||(o[23]=r=>u.value=r),class:t(["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",[s(a)?"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),[[i,u.value]]),l(e("select",{"onUpdate:modelValue":o[24]||(o[24]=r=>g.value=r),class:t(["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",[s(a)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[32]||(o[32]=[e("option",{value:"秒"},"秒",-1),e("option",{value:"分"},"分",-1),e("option",{value:"时"},"时",-1),e("option",{value:"天"},"天",-1)]),2),[[v,g.value]])])]),e("div",we,[e("label",{class:t(["block text-sm font-medium mb-2",[s(a)?"text-gray-300":"text-gray-700"]])}," 游客上传 ",2),e("div",ke,[e("button",{type:"button",onClick:o[25]||(o[25]=r=>n.value.openUpload=n.value.openUpload===1?0:1),class:t(["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",[n.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":n.value.openUpload===1},[e("span",{class:t(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[n.value.openUpload===1?"translate-x-5":"translate-x-0",s(a)&&n.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,Ue),e("span",{class:t(["ml-3 text-sm",[s(a)?"text-gray-300":"text-gray-700"]])},p(n.value.openUpload===1?"已开启":"已关闭"),3)])])])]),e("div",Se,[e("h3",{class:t(["text-lg font-medium mb-4",[s(a)?"text-white":"text-gray-800"]])}," 错误限制 ",2),e("div",Ve,[e("div",De,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 每分钟错误限制 ",2),e("div",Ce,[l(e("input",{type:"number","onUpdate:modelValue":o[26]||(o[26]=r=>n.value.errorMinute=r),class:t(["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",[s(a)?"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),[[i,n.value.errorMinute]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",Be,[e("label",{class:t(["block text-sm font-medium",[s(a)?"text-gray-300":"text-gray-700"]])}," 错误次数限制 ",2),e("div",Me,[l(e("input",{type:"number","onUpdate:modelValue":o[27]||(o[27]=r=>n.value.errorCount=r),class:t(["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",[s(a)?"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),[[i,n.value.errorCount]]),e("span",{class:t([s(a)?"text-gray-300":"text-gray-700"])},"次",2)])])])]),e("div",{class:"flex justify-end mt-8"},[e("button",{onClick:V,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"}," 保存设置 ")])])],2)]))}});export{ze as default}; diff --git a/themes/2024/assets/_commonjsHelpers-Bz0FHX1E.js b/themes/2024/assets/_commonjsHelpers-CljsJuVy.js similarity index 99% rename from themes/2024/assets/_commonjsHelpers-Bz0FHX1E.js rename to themes/2024/assets/_commonjsHelpers-CljsJuVy.js index f74b457..62d3d43 100644 --- a/themes/2024/assets/_commonjsHelpers-Bz0FHX1E.js +++ b/themes/2024/assets/_commonjsHelpers-CljsJuVy.js @@ -1,4 +1,4 @@ -import{c as k,B as F,D as R,r as _,E as K,o as V,F as X,G as x,H as Y}from"./index-Ch_yhQYc.js";/** +import{c as k,B as F,D as R,r as _,E as K,o as V,F as X,G as x,H as Y}from"./index-BIfJi_O-.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/assets/box-D_IdGY4o.js b/themes/2024/assets/box-C9xlYTT6.js similarity index 90% rename from themes/2024/assets/box-D_IdGY4o.js rename to themes/2024/assets/box-C9xlYTT6.js index 0a903ca..13462e3 100644 --- a/themes/2024/assets/box-D_IdGY4o.js +++ b/themes/2024/assets/box-C9xlYTT6.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-Ch_yhQYc.js";/** +import{c as a}from"./index-BIfJi_O-.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/assets/file-CY1Cm1A5.js b/themes/2024/assets/file-AHrKtGwY.js similarity index 88% rename from themes/2024/assets/file-CY1Cm1A5.js rename to themes/2024/assets/file-AHrKtGwY.js index 676e48b..a84074a 100644 --- a/themes/2024/assets/file-CY1Cm1A5.js +++ b/themes/2024/assets/file-AHrKtGwY.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-Ch_yhQYc.js";/** +import{c as a}from"./index-BIfJi_O-.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/assets/index-Ch_yhQYc.js b/themes/2024/assets/index-BIfJi_O-.js similarity index 99% rename from themes/2024/assets/index-Ch_yhQYc.js rename to themes/2024/assets/index-BIfJi_O-.js index 1b0cba0..2f49fbf 100644 --- a/themes/2024/assets/index-Ch_yhQYc.js +++ b/themes/2024/assets/index-BIfJi_O-.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileView-DExKIrRO.js","assets/_commonjsHelpers-Bz0FHX1E.js","assets/box-D_IdGY4o.js","assets/file-CY1Cm1A5.js","assets/trash-Y8g6Hj4p.js","assets/RetrievewFileView-Bf7MFUAC.css","assets/SendFileView-DRPDfOMx.js","assets/SendFileView-D4o7eZLc.css","assets/AdminLayout-CGK4cUFs.js","assets/AdminLayout-BA8HwEVA.css","assets/DashboardView-BJPa45w6.js","assets/FileManageView-5nbkRxSF.js","assets/LoginView-B7G0ZQAI.js","assets/LoginView-Cf0iN_2x.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileView-C8jq0XcR.js","assets/_commonjsHelpers-CljsJuVy.js","assets/box-C9xlYTT6.js","assets/file-AHrKtGwY.js","assets/trash-wtxrZ93m.js","assets/RetrievewFileView-DguaL712.css","assets/SendFileView-DneMQ9So.js","assets/SendFileView-D1tJweYo.css","assets/AdminLayout-DQKUNxBs.js","assets/AdminLayout-BA8HwEVA.css","assets/DashboardView-BQkdUNcj.js","assets/FileManageView-FEOrQKbl.js","assets/LoginView-DMl24bJ-.js","assets/LoginView-Cf0iN_2x.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -83,4 +83,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileVi `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[hi]=this[hi]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=gn(i);s[l]||(Jh(r,i),s[l]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}};Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Le.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});b.freezeMethods(Le);function or(e,t){const n=this||Wn,s=t||n,r=Le.from(s.headers);let o=s.data;return b.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Rc(e){return!!(e&&e.__CANCEL__)}function fn(e,t,n){J.call(this,e??"canceled",J.ERR_CANCELED,t,n),this.name="CanceledError"}b.inherits(fn,J,{__CANCEL__:!0});function Cc(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Gh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xh(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[o];i||(i=u),n[r]=c,s[r]=u;let f=o,p=0;for(;f!==r;)p+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i{n=a,r=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const a=Date.now(),f=a-n;f>=s?i(u,a):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const gs=(e,t,n=3)=>{let s=0;const r=Xh(50,250);return Qh(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,u=r(c),a=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},pi=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},mi=e=>(...t)=>b.asap(()=>e(...t)),Yh=ve.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ve.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ve.origin),ve.navigator&&/(msie|trident)/i.test(ve.navigator.userAgent)):()=>!0,Zh=ve.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];b.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),b.isString(s)&&i.push("path="+s),b.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ep(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Tc(e,t){return e&&!ep(t)?tp(e,t):t}const gi=e=>e instanceof Le?{...e}:e;function Ut(e,t){t=t||{};const n={};function s(u,a,f,p){return b.isPlainObject(u)&&b.isPlainObject(a)?b.merge.call({caseless:p},u,a):b.isPlainObject(a)?b.merge({},a):b.isArray(a)?a.slice():a}function r(u,a,f,p){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u,f,p)}else return s(u,a,f,p)}function o(u,a){if(!b.isUndefined(a))return s(void 0,a)}function i(u,a){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u)}else return s(void 0,a)}function l(u,a,f){if(f in t)return s(u,a);if(f in e)return s(void 0,u)}const c={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:l,headers:(u,a,f)=>r(gi(u),gi(a),f,!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(a){const f=c[a]||r,p=f(e[a],t[a],a);b.isUndefined(p)&&f!==l||(n[a]=p)}),n}const Ac=e=>{const t=Ut({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Le.from(i),t.url=Ec(Tc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(b.isFormData(n)){if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...a]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...a].join("; "))}}if(ve.hasStandardBrowserEnv&&(s&&b.isFunction(s)&&(s=s(t)),s||s!==!1&&Yh(t.url))){const u=r&&o&&Zh.read(o);u&&i.set(r,u)}return t},np=typeof XMLHttpRequest<"u",sp=np&&function(e){return new Promise(function(n,s){const r=Ac(e);let o=r.data;const i=Le.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=r,a,f,p,m,y;function _(){m&&m(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function A(){if(!x)return;const P=Le.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:P,config:e,request:x};Cc(function(z){n(z),_()},function(z){s(z),_()},j),x=null}"onloadend"in x?x.onloadend=A:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(A)},x.onabort=function(){x&&(s(new J("Request aborted",J.ECONNABORTED,e,x)),x=null)},x.onerror=function(){s(new J("Network Error",J.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let L=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const j=r.transitional||Sc;r.timeoutErrorMessage&&(L=r.timeoutErrorMessage),s(new J(L,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,x)),x=null},o===void 0&&i.setContentType(null),"setRequestHeader"in x&&b.forEach(i.toJSON(),function(L,j){x.setRequestHeader(j,L)}),b.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),l&&l!=="json"&&(x.responseType=r.responseType),u&&([p,y]=gs(u,!0),x.addEventListener("progress",p)),c&&x.upload&&([f,m]=gs(c),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(a=P=>{x&&(s(!P||P.type?new fn(null,e,x):P),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const C=Gh(r.url);if(C&&ve.protocols.indexOf(C)===-1){s(new J("Unsupported protocol "+C+":",J.ERR_BAD_REQUEST,e));return}x.send(o||null)})},rp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(u){if(!r){r=!0,l();const a=u instanceof Error?u:this.reason;s.abort(a instanceof J?a:new fn(a instanceof Error?a.message:a))}};let i=t&&setTimeout(()=>{i=null,o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>b.asap(l),c}},op=function*(e,t){let n=e.byteLength;if(n{const r=ip(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:a}=await r.next();if(u){l(),c.close();return}let f=a.byteLength;if(n){let p=o+=f;n(p)}c.enqueue(new Uint8Array(a))}catch(u){throw l(u),u}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Bs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Oc=Bs&&typeof ReadableStream=="function",cp=Bs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ap=Oc&&Pc(()=>{let e=!1;const t=new Request(ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),bi=64*1024,Cr=Oc&&Pc(()=>b.isReadableStream(new Response("").body)),ys={stream:Cr&&(e=>e.body)};Bs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ys[t]&&(ys[t]=b.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,s)})})})(new Response);const up=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(ve.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await cp(e)).byteLength},fp=async(e,t)=>{const n=b.toFiniteNumber(e.getContentLength());return n??up(t)},dp=Bs&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:f="same-origin",fetchOptions:p}=Ac(e);u=u?(u+"").toLowerCase():"text";let m=rp([r,o&&o.toAbortSignal()],i),y;const _=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let x;try{if(c&&ap&&n!=="get"&&n!=="head"&&(x=await fp(a,s))!==0){let j=new Request(t,{method:"POST",body:s,duplex:"half"}),X;if(b.isFormData(s)&&(X=j.headers.get("content-type"))&&a.setContentType(X),j.body){const[z,V]=pi(x,gs(mi(c)));s=yi(j.body,bi,z,V)}}b.isString(f)||(f=f?"include":"omit");const A="credentials"in Request.prototype;y=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:s,duplex:"half",credentials:A?f:void 0});let C=await fetch(y);const P=Cr&&(u==="stream"||u==="response");if(Cr&&(l||P&&_)){const j={};["status","statusText","headers"].forEach(N=>{j[N]=C[N]});const X=b.toFiniteNumber(C.headers.get("content-length")),[z,V]=l&&pi(X,gs(mi(l),!0))||[];C=new Response(yi(C.body,bi,z,()=>{V&&V(),_&&_()}),j)}u=u||"text";let L=await ys[b.findKey(ys,u)||"text"](C,e);return!P&&_&&_(),await new Promise((j,X)=>{Cc(j,X,{data:L,headers:Le.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:y})})}catch(A){throw _&&_(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,y),{cause:A.cause||A}):J.from(A,A&&A.code,e,y)}}),Tr={http:Th,xhr:sp,fetch:dp};b.forEach(Tr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,hp=e=>b.isFunction(e)||e===null||e===!1,Lc={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(_i).join(` `):" "+_i(o[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Tr};function ir(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fn(null,e)}function vi(e){return ir(e),e.headers=Le.from(e.headers),e.data=or.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lc.getAdapter(e.adapter||Wn.adapter)(e).then(function(s){return ir(e),s.data=or.call(e,e.transformResponse,s),s.headers=Le.from(s.headers),s},function(s){return Rc(s)||(ir(e),s&&s.response&&(s.response.data=or.call(e,e.transformResponse,s.response),s.response.headers=Le.from(s.response.headers))),Promise.reject(s)})}const Ic="1.7.9",$s={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$s[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const wi={};$s.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Ic+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new J(r(i," has been removed"+(n?" in "+n:"")),J.ERR_DEPRECATED);return n&&!wi[i]&&(wi[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};$s.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function pp(e,t,n){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new J("option "+o+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}}const rs={assertOptions:pp,validators:$s},et=rs.validators;let Bt=class{constructor(t){this.defaults=t,this.interceptors={request:new di,response:new di}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ut(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&rs.assertOptions(s,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:rs.assertOptions(r,{encode:et.function,serialize:et.function},!0)),rs.assertOptions(n,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Le.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let a,f=0,p;if(!c){const y=[vi.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,a=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new fn(o,i,l),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Nc(function(r){t=r}),cancel:t}}};function gp(e){return function(n){return e.apply(null,n)}}function yp(e){return b.isObject(e)&&e.isAxiosError===!0}const Ar={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};Object.entries(Ar).forEach(([e,t])=>{Ar[t]=e});function Mc(e){const t=new Bt(e),n=uc(Bt.prototype.request,t);return b.extend(n,Bt.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Mc(Ut(e,r))},n}const he=Mc(Wn);he.Axios=Bt;he.CanceledError=fn;he.CancelToken=mp;he.isCancel=Rc;he.VERSION=Ic;he.toFormData=js;he.AxiosError=J;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=gp;he.isAxiosError=yp;he.mergeConfig=Ut;he.AxiosHeaders=Le;he.formToJSON=e=>xc(b.isHTMLForm(e)?new FormData(e):e);he.getAdapter=Lc.getAdapter;he.HttpStatusCode=Ar;he.default=he;const{Axios:qp,AxiosError:Kp,CanceledError:Wp,isCancel:zp,CancelToken:Jp,VERSION:Gp,all:Xp,Cancel:Qp,isAxiosError:Yp,spread:Zp,toFormData:em,AxiosHeaders:tm,HttpStatusCode:nm,formToJSON:sm,getAdapter:rm,mergeConfig:om}=he,bp="",kc=bp,Zr=he.create({baseURL:kc,timeout:1e15,headers:{"Content-Type":"application/json"}});Zr.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${kc}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));Zr.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 401:console.error("未授权,请重新登录"),localStorage.clear(),window.location.href="/#/login";break;case 403:console.error("禁止访问");break;case 404:console.error("请求的资源不存在");break;default:console.error("发生错误:",e.response.data)}else e.request?console.error("未收到响应:",e.request):console.error("请求配置错误:",e.message);return Promise.reject(e)});const Fc=Cf("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=5e3){const s=Date.now(),r=Date.now();this.alerts.push({id:s,message:e,type:t,progress:100,duration:n,startTime:r}),setTimeout(()=>this.removeAlert(s),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 s=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,s),t.progress<=0&&this.removeAlert(e)}}}}),_p={class:"p-4"},vp={class:"flex items-start"},wp={class:"flex-shrink-0"},Ep={class:"ml-3 flex-1 pt-0.5"},Sp=["innerHTML"],xp={class:"ml-4 flex-shrink-0 flex"},Rp=["onClick"],Cp={class:"h-1 bg-white bg-opacity-25"},Tp=Vn({__name:"AlertComponent",setup(e){const t=Fc(),{alerts:n}=Tf(t),{removeAlert:s,updateAlertProgress:r}=t,o={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"},i={success:kd,error:Bd,warning:Md,info:Fd};let l;return As(()=>{l=setInterval(()=>{n.value.forEach(c=>{r(c.id)})},100)}),qr(()=>{clearInterval(l)}),(c,u)=>(qe(),tn(lf,{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:us(()=>[(qe(!0),Nn(He,null,Va(Oe(n),a=>(qe(),Nn("div",{key:a.id,class:an(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",o[a.type]])},[ke("div",_p,[ke("div",vp,[ke("div",wp,[(qe(),tn(ml(i[a.type]),{class:"h-6 w-6 text-white"}))]),ke("div",Ep,[ke("p",{class:"text-sm font-medium text-white",innerHTML:a.message},null,8,Sp)]),ke("div",xp,[ke("button",{onClick:f=>Oe(s)(a.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[u[0]||(u[0]=ke("span",{class:"sr-only"},"关闭",-1)),me(Oe($d),{class:"h-5 w-5"})],8,Rp)])])]),ke("div",Cp,[ke("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Es({width:`${a.progress}%`})},null,4)])],2))),128))]),_:1}))}}),Ap=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Op=Ap(Tp,[["__scopeId","data-v-6fdbaa84"]]),Pp={key:0,class:"loading-overlay"},Lp=Vn({__name:"App",setup(e){const t=en(!1),n=en(!1),s=Ld(),r=Fc(),o=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,i=()=>{const c=localStorage.getItem("colorMode");return c?c==="dark":null},l=c=>{t.value=c,localStorage.setItem("colorMode",c?"dark":"light")};return As(()=>{const c=i();l(c!==null?c:o()),Zr.post("/",{}).then(u=>{u.code===200&&(localStorage.setItem("config",JSON.stringify(u.detail)),u.detail.notify_title&&u.detail.notify_content&&localStorage.getItem("notify")!==u.detail.notify_title+u.detail.notify_content&&(localStorage.setItem("notify",u.detail.notify_title+u.detail.notify_content),r.showAlert(u.detail.notify_title+": "+u.detail.notify_content,"success")))})}),fu(()=>{document.documentElement.classList.toggle("dark",t.value)}),s.beforeEach((c,u,a)=>{n.value=!0,a()}),s.afterEach(()=>{setTimeout(()=>{n.value=!1},200)}),jt("isDarkMode",t),jt("setColorMode",l),jt("isLoading",n),(c,u)=>(qe(),Nn("div",{class:an(["app-container",t.value?"dark":"light"])},[me(Hd,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=a=>t.value=a)},null,8,["modelValue"]),n.value?(qe(),Nn("div",Pp,u[1]||(u[1]=[ke("div",{class:"loading-spinner"},null,-1)]))):xu("",!0),me(Oe(ac),null,{default:us(({Component:a})=>[me($u,{name:"fade",mode:"out-in"},{default:us(()=>[(qe(),tn(ml(a),{key:c.$route.fullPath}))]),_:2},1024)]),_:1}),me(Op)],2))}}),Ip="modulepreload",Np=function(e){return"/"+e},Ei={},vt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=Np(c),c in Ei)return;Ei[c]=!0;const u=c.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Ip,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Mp=Od({history:od("/"),routes:[{path:"/",name:"Retrieve",component:()=>vt(()=>import("./RetrievewFileView-DExKIrRO.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/send",name:"Send",component:()=>vt(()=>import("./SendFileView-DRPDfOMx.js"),__vite__mapDeps([6,1,3,4,7]))},{path:"/admin",name:"Manage",component:()=>vt(()=>import("./AdminLayout-CGK4cUFs.js"),__vite__mapDeps([8,2,9])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>vt(()=>import("./DashboardView-BJPa45w6.js"),__vite__mapDeps([10,3,4]))},{path:"/admin/files",name:"FileManage",component:()=>vt(()=>import("./FileManageView-5nbkRxSF.js"),__vite__mapDeps([11,3]))},{path:"/admin/settings",name:"Settings",component:()=>vt(()=>import("./SystemSettingsView-UJvuI7eX.js"),[])}]},{path:"/login",name:"Login",component:()=>vt(()=>import("./LoginView-B7G0ZQAI.js"),__vite__mapDeps([12,2,13]))}]});vt(()=>import("./SendFileView-DRPDfOMx.js"),__vite__mapDeps([6,1,3,4,7]));const eo=yf(Lp);eo.use(vf());eo.use(Mp);eo.mount("#app");export{Zr as A,Vn as B,Bp as C,nn as D,fl as E,He as F,Cf as G,Hn as H,qr as I,tn as J,ml as K,jp as L,lf as T,$d as X,Ap as _,Hp as a,Fe as b,qt as c,Nn as d,ke as e,me as f,Oe as g,$p as h,Pe as i,kp as j,xu as k,us as l,Su as m,an as n,As as o,Fp as p,Va as q,en as r,Tf as s,Xc as t,Fc as u,Dp as v,Sn as w,$u as x,Ld as y,qe as z}; +`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ut(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&rs.assertOptions(s,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:rs.assertOptions(r,{encode:et.function,serialize:et.function},!0)),rs.assertOptions(n,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Le.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let a,f=0,p;if(!c){const y=[vi.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,a=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new fn(o,i,l),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Nc(function(r){t=r}),cancel:t}}};function gp(e){return function(n){return e.apply(null,n)}}function yp(e){return b.isObject(e)&&e.isAxiosError===!0}const Ar={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};Object.entries(Ar).forEach(([e,t])=>{Ar[t]=e});function Mc(e){const t=new Bt(e),n=uc(Bt.prototype.request,t);return b.extend(n,Bt.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Mc(Ut(e,r))},n}const he=Mc(Wn);he.Axios=Bt;he.CanceledError=fn;he.CancelToken=mp;he.isCancel=Rc;he.VERSION=Ic;he.toFormData=js;he.AxiosError=J;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=gp;he.isAxiosError=yp;he.mergeConfig=Ut;he.AxiosHeaders=Le;he.formToJSON=e=>xc(b.isHTMLForm(e)?new FormData(e):e);he.getAdapter=Lc.getAdapter;he.HttpStatusCode=Ar;he.default=he;const{Axios:qp,AxiosError:Kp,CanceledError:Wp,isCancel:zp,CancelToken:Jp,VERSION:Gp,all:Xp,Cancel:Qp,isAxiosError:Yp,spread:Zp,toFormData:em,AxiosHeaders:tm,HttpStatusCode:nm,formToJSON:sm,getAdapter:rm,mergeConfig:om}=he,bp="",kc=bp,Zr=he.create({baseURL:kc,timeout:1e15,headers:{"Content-Type":"application/json"}});Zr.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${kc}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));Zr.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 401:console.error("未授权,请重新登录"),localStorage.clear(),window.location.href="/#/login";break;case 403:console.error("禁止访问");break;case 404:console.error("请求的资源不存在");break;default:console.error("发生错误:",e.response.data)}else e.request?console.error("未收到响应:",e.request):console.error("请求配置错误:",e.message);return Promise.reject(e)});const Fc=Cf("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=5e3){const s=Date.now(),r=Date.now();this.alerts.push({id:s,message:e,type:t,progress:100,duration:n,startTime:r}),setTimeout(()=>this.removeAlert(s),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 s=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,s),t.progress<=0&&this.removeAlert(e)}}}}),_p={class:"p-4"},vp={class:"flex items-start"},wp={class:"flex-shrink-0"},Ep={class:"ml-3 flex-1 pt-0.5"},Sp=["innerHTML"],xp={class:"ml-4 flex-shrink-0 flex"},Rp=["onClick"],Cp={class:"h-1 bg-white bg-opacity-25"},Tp=Vn({__name:"AlertComponent",setup(e){const t=Fc(),{alerts:n}=Tf(t),{removeAlert:s,updateAlertProgress:r}=t,o={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"},i={success:kd,error:Bd,warning:Md,info:Fd};let l;return As(()=>{l=setInterval(()=>{n.value.forEach(c=>{r(c.id)})},100)}),qr(()=>{clearInterval(l)}),(c,u)=>(qe(),tn(lf,{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:us(()=>[(qe(!0),Nn(He,null,Va(Oe(n),a=>(qe(),Nn("div",{key:a.id,class:an(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",o[a.type]])},[ke("div",_p,[ke("div",vp,[ke("div",wp,[(qe(),tn(ml(i[a.type]),{class:"h-6 w-6 text-white"}))]),ke("div",Ep,[ke("p",{class:"text-sm font-medium text-white",innerHTML:a.message},null,8,Sp)]),ke("div",xp,[ke("button",{onClick:f=>Oe(s)(a.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[u[0]||(u[0]=ke("span",{class:"sr-only"},"关闭",-1)),me(Oe($d),{class:"h-5 w-5"})],8,Rp)])])]),ke("div",Cp,[ke("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Es({width:`${a.progress}%`})},null,4)])],2))),128))]),_:1}))}}),Ap=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Op=Ap(Tp,[["__scopeId","data-v-6fdbaa84"]]),Pp={key:0,class:"loading-overlay"},Lp=Vn({__name:"App",setup(e){const t=en(!1),n=en(!1),s=Ld(),r=Fc(),o=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,i=()=>{const c=localStorage.getItem("colorMode");return c?c==="dark":null},l=c=>{t.value=c,localStorage.setItem("colorMode",c?"dark":"light")};return As(()=>{const c=i();l(c!==null?c:o()),Zr.post("/",{}).then(u=>{u.code===200&&(localStorage.setItem("config",JSON.stringify(u.detail)),u.detail.notify_title&&u.detail.notify_content&&localStorage.getItem("notify")!==u.detail.notify_title+u.detail.notify_content&&(localStorage.setItem("notify",u.detail.notify_title+u.detail.notify_content),r.showAlert(u.detail.notify_title+": "+u.detail.notify_content,"success")))})}),fu(()=>{document.documentElement.classList.toggle("dark",t.value)}),s.beforeEach((c,u,a)=>{n.value=!0,a()}),s.afterEach(()=>{setTimeout(()=>{n.value=!1},200)}),jt("isDarkMode",t),jt("setColorMode",l),jt("isLoading",n),(c,u)=>(qe(),Nn("div",{class:an(["app-container",t.value?"dark":"light"])},[me(Hd,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=a=>t.value=a)},null,8,["modelValue"]),n.value?(qe(),Nn("div",Pp,u[1]||(u[1]=[ke("div",{class:"loading-spinner"},null,-1)]))):xu("",!0),me(Oe(ac),null,{default:us(({Component:a})=>[me($u,{name:"fade",mode:"out-in"},{default:us(()=>[(qe(),tn(ml(a),{key:c.$route.fullPath}))]),_:2},1024)]),_:1}),me(Op)],2))}}),Ip="modulepreload",Np=function(e){return"/"+e},Ei={},vt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=Np(c),c in Ei)return;Ei[c]=!0;const u=c.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Ip,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Mp=Od({history:od("/"),routes:[{path:"/",name:"Retrieve",component:()=>vt(()=>import("./RetrievewFileView-C8jq0XcR.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/send",name:"Send",component:()=>vt(()=>import("./SendFileView-DneMQ9So.js"),__vite__mapDeps([6,1,3,4,7]))},{path:"/admin",name:"Manage",component:()=>vt(()=>import("./AdminLayout-DQKUNxBs.js"),__vite__mapDeps([8,2,9])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>vt(()=>import("./DashboardView-BQkdUNcj.js"),__vite__mapDeps([10,3,4]))},{path:"/admin/files",name:"FileManage",component:()=>vt(()=>import("./FileManageView-FEOrQKbl.js"),__vite__mapDeps([11,3]))},{path:"/admin/settings",name:"Settings",component:()=>vt(()=>import("./SystemSettingsView-DdLYY83m.js"),[])}]},{path:"/login",name:"Login",component:()=>vt(()=>import("./LoginView-DMl24bJ-.js"),__vite__mapDeps([12,2,13]))}]});vt(()=>import("./SendFileView-DneMQ9So.js"),__vite__mapDeps([6,1,3,4,7]));const eo=yf(Lp);eo.use(vf());eo.use(Mp);eo.mount("#app");export{Zr as A,Vn as B,Bp as C,nn as D,fl as E,He as F,Cf as G,Hn as H,qr as I,tn as J,ml as K,jp as L,lf as T,$d as X,Ap as _,Hp as a,Fe as b,qt as c,Nn as d,ke as e,me as f,Oe as g,$p as h,Pe as i,kp as j,xu as k,us as l,Su as m,an as n,As as o,Fp as p,Va as q,en as r,Tf as s,Xc as t,Fc as u,Dp as v,Sn as w,$u as x,Ld as y,qe as z}; diff --git a/themes/2024/assets/trash-Y8g6Hj4p.js b/themes/2024/assets/trash-wtxrZ93m.js similarity index 95% rename from themes/2024/assets/trash-Y8g6Hj4p.js rename to themes/2024/assets/trash-wtxrZ93m.js index d5dfa6b..4a9cb82 100644 --- a/themes/2024/assets/trash-Y8g6Hj4p.js +++ b/themes/2024/assets/trash-wtxrZ93m.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-Ch_yhQYc.js";/** +import{c as a}from"./index-BIfJi_O-.js";/** * @license lucide-vue-next v0.445.0 - ISC * * This source code is licensed under the ISC license. diff --git a/themes/2024/index.html b/themes/2024/index.html index 613e1c7..b0b7588 100644 --- a/themes/2024/index.html +++ b/themes/2024/index.html @@ -11,7 +11,7 @@ {{title}} - +