From f16b3b649bdf97fb79dfe45a9cf178609417f624 Mon Sep 17 00:00:00 2001 From: pany-ang <939630029@qq.com> Date: Tue, 6 Feb 2024 12:23:19 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20b92a1?= =?UTF-8?q?a24fccc7c403df87780e29a09869bb60348=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- static/{403-wGgcw49t.js => 403-QVTmobQx.js} | 2 +- static/{404-NdZ_mb9M.js => 404-7FtoIsqY.js} | 2 +- ...ayout-bPBNbRn6.js => ErrorPageLayout-QC40NetK.js} | 2 +- static/SwitchRoles-I04jE-9Q.js | 1 - static/SwitchRoles-Mm3_plQD.js | 1 + static/SwitchRoles-MozfMXCY.css | 1 + static/SwitchRoles-NLnFn-tk.css | 1 - static/directive-2HmODsST.css | 1 - static/directive-Eo5DL1J-.css | 1 + static/directive-ExCCoxxf.js | 1 + static/directive-eCg5Mutp.js | 1 - static/{index-1bi1sHWy.js => index--PcluvJg.js} | 2 +- static/{index-lpTEHZ28.js => index-5cdbFfHh.js} | 2 +- static/index-8aC8ZOcR.js | 12 ------------ static/index-HHvEY1I5.js | 12 ++++++++++++ static/{index-TKGjDtZ9.js => index-NSolIJ6q.js} | 2 +- static/{index-cvoV6cdm.js => index-O_VWFwBn.js} | 2 +- static/{index-5f0uyP5t.js => index-RoRFMxCu.js} | 2 +- static/{index-7LHDGWqJ.js => index-TEp-ORP0.js} | 2 +- static/{index-SipYtAk7.js => index-Y-znXrkX.js} | 2 +- static/{index-Vnx_DxRw.js => index-be9b1hiH.js} | 2 +- static/{index-Dj2ZZ1P-.js => index-lwE5s-Lc.js} | 2 +- ....vue_vue_type_script_setup_true_lang-49QmwLLS.js} | 2 +- static/{page-BZY-9Gb7.js => page-srefMYCH.js} | 2 +- ...termark-6z1-3b-E.js => use-watermark-dcNU5dZU.js} | 2 +- 26 files changed, 32 insertions(+), 32 deletions(-) rename static/{403-wGgcw49t.js => 403-QVTmobQx.js} (99%) rename static/{404-NdZ_mb9M.js => 404-7FtoIsqY.js} (99%) rename static/{ErrorPageLayout-bPBNbRn6.js => ErrorPageLayout-QC40NetK.js} (87%) delete mode 100644 static/SwitchRoles-I04jE-9Q.js create mode 100644 static/SwitchRoles-Mm3_plQD.js create mode 100644 static/SwitchRoles-MozfMXCY.css delete mode 100644 static/SwitchRoles-NLnFn-tk.css delete mode 100644 static/directive-2HmODsST.css create mode 100644 static/directive-Eo5DL1J-.css create mode 100644 static/directive-ExCCoxxf.js delete mode 100644 static/directive-eCg5Mutp.js rename static/{index-1bi1sHWy.js => index--PcluvJg.js} (79%) rename static/{index-lpTEHZ28.js => index-5cdbFfHh.js} (92%) delete mode 100644 static/index-8aC8ZOcR.js create mode 100644 static/index-HHvEY1I5.js rename static/{index-TKGjDtZ9.js => index-NSolIJ6q.js} (93%) rename static/{index-cvoV6cdm.js => index-O_VWFwBn.js} (99%) rename static/{index-5f0uyP5t.js => index-RoRFMxCu.js} (97%) rename static/{index-7LHDGWqJ.js => index-TEp-ORP0.js} (97%) rename static/{index-SipYtAk7.js => index-Y-znXrkX.js} (91%) rename static/{index-Vnx_DxRw.js => index-be9b1hiH.js} (83%) rename static/{index-Dj2ZZ1P-.js => index-lwE5s-Lc.js} (91%) rename static/{index.vue_vue_type_script_setup_true_lang-VByHYqQP.js => index.vue_vue_type_script_setup_true_lang-49QmwLLS.js} (92%) rename static/{page-BZY-9Gb7.js => page-srefMYCH.js} (79%) rename static/{use-watermark-6z1-3b-E.js => use-watermark-dcNU5dZU.js} (96%) diff --git a/index.html b/index.html index 8831e215..bb57f33f 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ V3 Admin Vite - + diff --git a/static/403-wGgcw49t.js b/static/403-QVTmobQx.js similarity index 99% rename from static/403-wGgcw49t.js rename to static/403-QVTmobQx.js index 266e49a6..97876f91 100644 --- a/static/403-wGgcw49t.js +++ b/static/403-QVTmobQx.js @@ -1 +1 @@ -import{E as r}from"./ErrorPageLayout-bPBNbRn6.js";import{m as t,p as s,aL as l,l as i,M as h,O as n,U as c,u as p}from"./vue-edbHIJ2J.js";import"./index-8aC8ZOcR.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},k=l('',50),a=[k];function v(e,o){return t(),s("svg",d,[...a])}const f={render:v},j=i({__name:"403",setup(e){return(o,u)=>(t(),h(r,null,{default:n(()=>[c(p(f))]),_:1}))}});export{j as default}; +import{E as r}from"./ErrorPageLayout-QC40NetK.js";import{m as t,p as s,aL as l,l as i,M as h,O as n,U as c,u as p}from"./vue-edbHIJ2J.js";import"./index-HHvEY1I5.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},k=l('',50),a=[k];function v(e,o){return t(),s("svg",d,[...a])}const f={render:v},j=i({__name:"403",setup(e){return(o,u)=>(t(),h(r,null,{default:n(()=>[c(p(f))]),_:1}))}});export{j as default}; diff --git a/static/404-NdZ_mb9M.js b/static/404-7FtoIsqY.js similarity index 99% rename from static/404-NdZ_mb9M.js rename to static/404-7FtoIsqY.js index fa83da11..e1ad6bf1 100644 --- a/static/404-NdZ_mb9M.js +++ b/static/404-7FtoIsqY.js @@ -1 +1 @@ -import{E as c}from"./ErrorPageLayout-bPBNbRn6.js";import{m as a,p as h,aL as e,l as s,M as p,O as M,U as f,u as i}from"./vue-edbHIJ2J.js";import"./index-8aC8ZOcR.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},d=e('',141),r=[d];function v(l,t){return a(),h("svg",y,[...r])}const o={render:v},u=s({__name:"404",setup(l){return(t,m)=>(a(),p(c,null,{default:M(()=>[f(i(o))]),_:1}))}});export{u as default}; +import{E as c}from"./ErrorPageLayout-QC40NetK.js";import{m as a,p as h,aL as e,l as s,M as p,O as M,U as f,u as i}from"./vue-edbHIJ2J.js";import"./index-HHvEY1I5.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},d=e('',141),r=[d];function v(l,t){return a(),h("svg",y,[...r])}const o={render:v},u=s({__name:"404",setup(l){return(t,m)=>(a(),p(c,null,{default:M(()=>[f(i(o))]),_:1}))}});export{u as default}; diff --git a/static/ErrorPageLayout-bPBNbRn6.js b/static/ErrorPageLayout-QC40NetK.js similarity index 87% rename from static/ErrorPageLayout-bPBNbRn6.js rename to static/ErrorPageLayout-QC40NetK.js index b149008a..a43266a9 100644 --- a/static/ErrorPageLayout-bPBNbRn6.js +++ b/static/ErrorPageLayout-QC40NetK.js @@ -1 +1 @@ -import{_ as n}from"./index-8aC8ZOcR.js";import{ag as e,m as c,p as _,q as d,H as l,U as t,O as o,S as p}from"./vue-edbHIJ2J.js";const i={},u={class:"error-page"},f={class:"error-page-svg"};function m(r,g){const a=e("el-button"),s=e("router-link");return c(),_("div",u,[d("div",f,[l(r.$slots,"default",{},void 0,!0)]),t(s,{to:"/"},{default:o(()=>[t(a,{type:"primary"},{default:o(()=>[p("回到首页")]),_:1})]),_:1})])}const k=n(i,[["render",m],["__scopeId","data-v-2fba9562"]]);export{k as E}; +import{_ as n}from"./index-HHvEY1I5.js";import{ag as e,m as c,p as _,q as d,H as l,U as t,O as o,S as p}from"./vue-edbHIJ2J.js";const i={},u={class:"error-page"},f={class:"error-page-svg"};function m(r,g){const a=e("el-button"),s=e("router-link");return c(),_("div",u,[d("div",f,[l(r.$slots,"default",{},void 0,!0)]),t(s,{to:"/"},{default:o(()=>[t(a,{type:"primary"},{default:o(()=>[p("回到首页")]),_:1})]),_:1})])}const k=n(i,[["render",m],["__scopeId","data-v-2fba9562"]]);export{k as E}; diff --git a/static/SwitchRoles-I04jE-9Q.js b/static/SwitchRoles-I04jE-9Q.js deleted file mode 100644 index 9e59a2b8..00000000 --- a/static/SwitchRoles-I04jE-9Q.js +++ /dev/null @@ -1 +0,0 @@ -import{e as u,_ as m}from"./index-8aC8ZOcR.js";import{l as h,r as S,b as f,ag as c,m as v,p as w,q as t,T as g,u as b,U as s,O as I,aH as V,aI as x}from"./vue-edbHIJ2J.js";const R=e=>(V("data-v-54e6a169"),e=e(),x(),e),B={class:"switch-roles"},C=R(()=>t("span",null,"切换权限:",-1)),U=h({__name:"SwitchRoles",emits:["change"],setup(e,{emit:i}){const d=i,o=u(),a=S(o.roles[0]);return f(a,async l=>{await o.changeRoles(l),d("change")}),(l,n)=>{const r=c("el-radio-button"),p=c("el-radio-group");return v(),w("div",null,[t("div",null,"你的权限:"+g(b(o).roles),1),t("div",B,[C,s(p,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=_=>a.value=_)},{default:I(()=>[s(r,{label:"editor"}),s(r,{label:"admin"})]),_:1},8,["modelValue"])])])}}}),N=m(U,[["__scopeId","data-v-54e6a169"]]);export{N as S}; diff --git a/static/SwitchRoles-Mm3_plQD.js b/static/SwitchRoles-Mm3_plQD.js new file mode 100644 index 00000000..19475763 --- /dev/null +++ b/static/SwitchRoles-Mm3_plQD.js @@ -0,0 +1 @@ +import{e as _,_ as i}from"./index-HHvEY1I5.js";import{l as u,r as m,b as f,ag as c,m as h,p as S,q as a,T as v,u as w,U as t,O as b,aH as g,aI as I}from"./vue-edbHIJ2J.js";const V=e=>(g("data-v-9574dfe3"),e=e(),I(),e),x={class:"switch-roles"},R=V(()=>a("span",null,"切换权限(模拟权限变化后重新登陆):",-1)),B=u({__name:"SwitchRoles",setup(e){const o=_(),s=m(o.roles[0]);return f(s,l=>{o.changeRoles(l)}),(l,n)=>{const r=c("el-radio-button"),d=c("el-radio-group");return h(),S("div",null,[a("div",null,"你的权限:"+v(w(o).roles),1),a("div",x,[R,t(d,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=p=>s.value=p)},{default:b(()=>[t(r,{label:"editor"}),t(r,{label:"admin"})]),_:1},8,["modelValue"])])])}}}),k=i(B,[["__scopeId","data-v-9574dfe3"]]);export{k as S}; diff --git a/static/SwitchRoles-MozfMXCY.css b/static/SwitchRoles-MozfMXCY.css new file mode 100644 index 00000000..9abf9990 --- /dev/null +++ b/static/SwitchRoles-MozfMXCY.css @@ -0,0 +1 @@ +.switch-roles[data-v-9574dfe3]{margin-top:15px;display:flex;align-items:center} diff --git a/static/SwitchRoles-NLnFn-tk.css b/static/SwitchRoles-NLnFn-tk.css deleted file mode 100644 index d3efa964..00000000 --- a/static/SwitchRoles-NLnFn-tk.css +++ /dev/null @@ -1 +0,0 @@ -.switch-roles[data-v-54e6a169]{margin-top:15px;display:flex;align-items:center} diff --git a/static/directive-2HmODsST.css b/static/directive-2HmODsST.css deleted file mode 100644 index c19594bc..00000000 --- a/static/directive-2HmODsST.css +++ /dev/null @@ -1 +0,0 @@ -.margin-top-15[data-v-6d704b73]{margin-top:15px}.margin-top-30[data-v-6d704b73]{margin-top:30px} diff --git a/static/directive-Eo5DL1J-.css b/static/directive-Eo5DL1J-.css new file mode 100644 index 00000000..783b2227 --- /dev/null +++ b/static/directive-Eo5DL1J-.css @@ -0,0 +1 @@ +.margin-top-15[data-v-7b4b436a]{margin-top:15px}.margin-top-30[data-v-7b4b436a]{margin-top:30px} diff --git a/static/directive-ExCCoxxf.js b/static/directive-ExCCoxxf.js new file mode 100644 index 00000000..53c2f496 --- /dev/null +++ b/static/directive-ExCCoxxf.js @@ -0,0 +1 @@ +import{j as k,_ as g}from"./index-HHvEY1I5.js";import{S as b}from"./SwitchRoles-Mm3_plQD.js";import{l as y,ag as l,ap as P,m as s,p as x,U as a,q as r,P as m,M as o,O as t,S as e,u as _,R as p}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const u=n=>{if(Array.isArray(n)&&n.length>0){const{roles:f}=k();return f.some(v=>n.includes(v))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},w={class:"app-container"},z={class:"margin-top-30"},B={class:"margin-top-15"},C={class:"margin-top-30"},N=y({__name:"directive",setup(n){return(f,v)=>{const i=l("el-tag"),c=l("el-tab-pane"),h=l("el-tabs"),d=P("permission");return s(),x("div",w,[a(b),r("div",z,[r("div",null,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)]),_:1})),[[d,["admin"]]])]),r("div",null,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)]),_:1})),[[d,["editor"]]])]),r("div",B,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)]),_:1})),[[d,["admin","editor"]]])])]),r("div",C,[a(i,{type:"warning",size:"large"},{default:t(()=>[e(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")]),_:1}),a(h,{type:"border-card",class:"margin-top-15"},{default:t(()=>[_(u)(["admin"])?(s(),o(c,{key:0,label:"admin"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin'])"`)]),_:1}),e(" 所以只有 admin 可以看见这句话 ")]),_:1})):p("",!0),_(u)(["editor"])?(s(),o(c,{key:1,label:"editor"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['editor'])"`)]),_:1}),e(" 所以只有 editor 可以看见这句话 ")]),_:1})):p("",!0),_(u)(["admin","editor"])?(s(),o(c,{key:2,label:"admin 和 editor"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin', 'editor'])"`)]),_:1}),e(" 所以 admin 和 editor 都可以看见这句话 ")]),_:1})):p("",!0)]),_:1})])])}}}),U=g(N,[["__scopeId","data-v-7b4b436a"]]);export{U as default}; diff --git a/static/directive-eCg5Mutp.js b/static/directive-eCg5Mutp.js deleted file mode 100644 index 5c723da4..00000000 --- a/static/directive-eCg5Mutp.js +++ /dev/null @@ -1 +0,0 @@ -import{j as g,_ as y}from"./index-8aC8ZOcR.js";import{S as b}from"./SwitchRoles-I04jE-9Q.js";import{l as P,r as C,ag as m,ap as x,m as a,p,U as s,q as _,P as u,M as o,O as t,S as e,u as f,R as v}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const k=r=>{if(Array.isArray(r)&&r.length>0){const{roles:n}=g();return n.some(l=>r.includes(l))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},w={class:"app-container"},z={class:"margin-top-15"},B=P({__name:"directive",setup(r){const n=C(1),l=()=>{n.value++};return(N,S)=>{const i=m("el-tag"),c=m("el-tab-pane"),h=m("el-tabs"),d=x("permission");return a(),p("div",w,[s(b,{onChange:l}),(a(),p("div",{key:n.value,class:"margin-top-30"},[_("div",null,[u((a(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)]),_:1})),[[d,["admin"]]])]),_("div",null,[u((a(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)]),_:1})),[[d,["editor"]]])]),_("div",z,[u((a(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)]),_:1})),[[d,["admin","editor"]]])])])),(a(),p("div",{key:`checkPermission${n.value}`,class:"margin-top-30"},[s(i,{type:"warning",size:"large"},{default:t(()=>[e(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")]),_:1}),s(h,{type:"border-card",class:"margin-top-15"},{default:t(()=>[f(k)(["admin"])?(a(),o(c,{key:0,label:"admin"},{default:t(()=>[e(" 这里采用了 "),s(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin'])"`)]),_:1}),e(" 所以只有 admin 可以看见这句话 ")]),_:1})):v("",!0),f(k)(["editor"])?(a(),o(c,{key:1,label:"editor"},{default:t(()=>[e(" 这里采用了 "),s(i,null,{default:t(()=>[e(`v-if="checkPermission(['editor'])"`)]),_:1}),e(" 所以只有 editor 可以看见这句话 ")]),_:1})):v("",!0),f(k)(["admin","editor"])?(a(),o(c,{key:2,label:"admin 和 editor"},{default:t(()=>[e(" 这里采用了 "),s(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin', 'editor'])"`)]),_:1}),e(" 所以 admin 和 editor 都可以看见这句话 ")]),_:1})):v("",!0)]),_:1})]))])}}}),j=y(B,[["__scopeId","data-v-6d704b73"]]);export{j as default}; diff --git a/static/index-1bi1sHWy.js b/static/index--PcluvJg.js similarity index 79% rename from static/index-1bi1sHWy.js rename to static/index--PcluvJg.js index 94e5738b..9a86aada 100644 --- a/static/index-1bi1sHWy.js +++ b/static/index--PcluvJg.js @@ -1 +1 @@ -import{i as e}from"./index-8aC8ZOcR.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u}; +import{i as e}from"./index-HHvEY1I5.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u}; diff --git a/static/index-lpTEHZ28.js b/static/index-5cdbFfHh.js similarity index 92% rename from static/index-lpTEHZ28.js rename to static/index-5cdbFfHh.js index 69e831ea..a2df48e8 100644 --- a/static/index-lpTEHZ28.js +++ b/static/index-5cdbFfHh.js @@ -1 +1 @@ -import{_ as e}from"./index-8aC8ZOcR.js";import{m as o,p as n,q as t}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const a={},i={"h-full":"","uno-padding-20":""},s=t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),r=[s];function c(d,l){return o(),n("div",i,r)}const h=e(a,[["render",c]]);export{h as default}; +import{_ as e}from"./index-HHvEY1I5.js";import{m as o,p as n,q as t}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const a={},i={"h-full":"","uno-padding-20":""},s=t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),r=[s];function c(d,l){return o(),n("div",i,r)}const h=e(a,[["render",c]]);export{h as default}; diff --git a/static/index-8aC8ZOcR.js b/static/index-8aC8ZOcR.js deleted file mode 100644 index 561d3ce2..00000000 --- a/static/index-8aC8ZOcR.js +++ /dev/null @@ -1,12 +0,0 @@ -var Pt=Object.defineProperty;var xt=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>(xt(e,typeof t!="symbol"?t+"":t,n),n);import{r as P,w as Xe,l as Ye,M as Dt,O as Bt,u as Lt,ag as De,m as Ze,U as Nt,ax as Ft,ay as It,az as Vt,aA as ee,b as Qe,z as Mt,e as Ut,p as jt,q as zt,as as Ht}from"./vue-edbHIJ2J.js";import{E as qt,b as K,c as Wt,m as Jt,e as $t,g as Gt,i as Kt,f as Xt}from"./element-6bs1qbFv.js";import{V as we,a as Yt}from"./vxe-gaPTatyF.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const M="v3-admin-vite";class _{}F(_,"TOKEN",`${M}-token-key`),F(_,"CONFIG_LAYOUT",`${M}-config-layout-key`),F(_,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),F(_,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),F(_,"VISITED_VIEWS",`${M}-visited-views-key`),F(_,"CACHED_VIEWS",`${M}-cached-views-key`);const Zt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Qt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),bs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},en=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),tn=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},nn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},rn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},sn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},on=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",an=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],be=P(en()||et),cn=e=>{be.value=e},un=e=>{document.documentElement.className=e},ln=()=>{Xe(()=>{const e=be.value;un(e),tn(e)})};function dn(){return{themeList:an,activeThemeName:be,initTheme:ln,setTheme:cn}}var fn={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const mn=Ye({__name:"App",setup(e){const{initTheme:t}=dn();return t(),qt({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),Dt(o,{locale:Lt(fn)},{default:Bt(()=>[Nt(s)]),_:1},8,["locale"])}}}),ve=Ft(),pn="modulepreload",hn=function(e){return"/v3-admin-vite/"+e},Be={},v=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");s=Promise.all(n.map(i=>{if(i=hn(i),i in Be)return;Be[i]=!0;const d=i.endsWith(".css"),m=d?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const p=o[u];if(p.href===i&&(!d||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${m}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":pn,d||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),d)return new Promise((u,p)=>{f.addEventListener("load",u),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},En=It("/v3-admin-vite/"),tt={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>v(()=>import("./index-cvoV6cdm.js"),__vite__mapDeps([0,1,2,3,4,5,6])),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>v(()=>import("./index-eyJZxR0_.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>v(()=>import("./403-wGgcw49t.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-NdZ_mb9M.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-TKGjDtZ9.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-SipYtAk7.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-lpTEHZ28.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-5f0uyP5t.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-7LHDGWqJ.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-Dj2ZZ1P-.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-RF_9sazX.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-Vnx_DxRw.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>v(()=>import("./index-aJN4HYNR.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-PBw5UC4f.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-FAQjzuRs.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-qRHlpvtI.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-v_-wiev5.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-lHTCwpK_.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>v(()=>import("./use-watermark-6z1-3b-E.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],gn=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-BZY-9Gb7.js"),__vite__mapDeps([33,1,34,35,3,5,36])),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-eCg5Mutp.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],D=Vt({history:En,routes:nt});function Le(){try{D.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&D.hasRoute(t)&&D.removeRoute(t)})}catch{window.location.reload()}}const yn=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0},rt=(e,t)=>{const n=[];return e.forEach(r=>{const s={...r};yn(t,s)&&(s.children&&(s.children=rt(s.children,t)),n.push(s))}),n},st=ee("permission",()=>{const e=P([]),t=P([]);return{routes:e,dynamicRoutes:t,setRoutes:r=>{const s=rt(gn,r);e.value=nt.concat(s),t.value=s}}});function wn(){return st(ve)}var bn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(bn||{}),ot=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(ot||{});const vs="opened",Ss="closed",vn={layoutMode:ot.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},Sn={...vn,...Zt()},it=ee("settings",()=>{const e={};for(const[n,r]of Object.entries(Sn)){const s=P(r);e[n]=s,Qe(s,()=>{const o=t();Qt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),_n=ee("tags-view",()=>{const{cacheTagsView:e}=it(),t=P(e?nn():[]),n=P(e?sn():[]);return Xe(()=>{rn(t.value),on(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:u=>{const p=t.value.findIndex(w=>w.path===u.path);p!==-1?t.value[p].fullPath!==u.fullPath&&(t.value[p]={...u}):t.value.push({...u})},addCachedView:u=>{var p;typeof u.name=="string"&&(n.value.includes(u.name)||(p=u.meta)!=null&&p.keepAlive&&n.value.push(u.name))},delVisitedView:u=>{const p=t.value.findIndex(w=>w.path===u.path);p!==-1&&t.value.splice(p,1)},delCachedView:u=>{if(typeof u.name!="string")return;const p=n.value.indexOf(u.name);p!==-1&&n.value.splice(p,1)},delOthersVisitedViews:u=>{t.value=t.value.filter(p=>{var w;return((w=p.meta)==null?void 0:w.affix)||p.path===u.path})},delOthersCachedViews:u=>{if(typeof u.name!="string")return;const p=n.value.indexOf(u.name);p!==-1?n.value=n.value.slice(p,p+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(u=>{var p;return(p=u.meta)==null?void 0:p.affix})},delAllCachedViews:()=>{n.value=[]}}});function G(e){for(var t=1;t"u")){i=G({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var m in i)i[m]&&(d+="; "+m,i[m]!==!0&&(d+="="+i[m].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+d}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},d=0;dSe.get(_.TOKEN),Ne=e=>{Se.set(_.TOKEN,e)},Fe=()=>{Se.remove(_.TOKEN)};function at(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tn}=Object.prototype,{getPrototypeOf:Ae}=Object,te=(e=>t=>{const n=Tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>te(t)===e),ne=e=>t=>typeof t===e,{isArray:z}=Array,q=ne("undefined");function Rn(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ct=x("ArrayBuffer");function On(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ct(e.buffer),t}const Cn=ne("string"),R=ne("function"),ut=ne("number"),re=e=>e!==null&&typeof e=="object",kn=e=>e===!0||e===!1,X=e=>{if(te(e)!=="object")return!1;const t=Ae(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Pn=x("Date"),xn=x("File"),Dn=x("Blob"),Bn=x("FileList"),Ln=e=>re(e)&&R(e.pipe),Nn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=te(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Fn=x("URLSearchParams"),In=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const dt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ft=e=>!q(e)&&e!==dt;function de(){const{caseless:e}=ft(this)&&this||{},t={},n=(r,s)=>{const o=e&<(t,s)||s;X(t[o])&&X(r)?t[o]=de(t[o],r):X(r)?t[o]=de({},r):z(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(W(t,(s,o)=>{n&&R(s)?e[o]=at(s,n):e[o]=s},{allOwnKeys:r}),e),Mn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Un=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jn=(e,t,n,r)=>{let s,o,i;const d={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!d[i]&&(t[i]=e[i],d[i]=!0);e=n!==!1&&Ae(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Hn=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!ut(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ae(Uint8Array)),Wn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Jn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$n=x("HTMLFormElement"),Gn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kn=x("RegExp"),mt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};W(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Xn=e=>{mt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return z(e)?r(e):r(String(e).split(t)),n},Zn=()=>{},Qn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ie="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",pt={DIGIT:Ve,ALPHA:ie,ALPHA_DIGIT:ie+ie.toUpperCase()+Ve},er=(e=16,t=pt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tr(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nr=e=>{const t=new Array(10),n=(r,s)=>{if(re(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=z(r)?[]:{};return W(r,(i,d)=>{const m=n(i,s+1);!q(m)&&(o[d]=m)}),t[s]=void 0,o}}return r};return n(e,0)},rr=x("AsyncFunction"),sr=e=>e&&(re(e)||R(e))&&R(e.then)&&R(e.catch),c={isArray:z,isArrayBuffer:ct,isBuffer:Rn,isFormData:Nn,isArrayBufferView:On,isString:Cn,isNumber:ut,isBoolean:kn,isObject:re,isPlainObject:X,isUndefined:q,isDate:Pn,isFile:xn,isBlob:Dn,isRegExp:Kn,isFunction:R,isStream:Ln,isURLSearchParams:Fn,isTypedArray:qn,isFileList:Bn,forEach:W,merge:de,extend:Vn,trim:In,stripBOM:Mn,inherits:Un,toFlatObject:jn,kindOf:te,kindOfTest:x,endsWith:zn,toArray:Hn,forEachEntry:Wn,matchAll:Jn,isHTMLForm:$n,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:mt,freezeMethods:Xn,toObjectSet:Yn,toCamelCase:Gn,noop:Zn,toFiniteNumber:Qn,findKey:lt,global:dt,isContextDefined:ft,ALPHABET:pt,generateString:er,isSpecCompliantForm:tr,toJSONObject:nr,isAsyncFn:rr,isThenable:sr};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ht=g.prototype,Et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Et[e]={value:e}});Object.defineProperties(g,Et);Object.defineProperty(ht,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(ht);return c.toFlatObject(e,i,function(m){return m!==Error.prototype},d=>d!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const or=null;function fe(e){return c.isPlainObject(e)||c.isArray(e)}function gt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(s,o){return s=gt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function ir(e){return c.isArray(e)&&!e.some(fe)}const ar=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function se(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,h){return!c.isUndefined(h[l])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function E(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!m&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?m&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function f(a,l,h){let y=a;if(a&&!h&&typeof a=="object"){if(c.endsWith(l,"{}"))l=r?l:l.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&ir(a)||(c.isFileList(a)||c.endsWith(l,"[]"))&&(y=c.toArray(a)))return l=gt(l),y.forEach(function(T,b){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Me([l],b,o):i===null?l:l+"[]",E(T))}),!1}return fe(a)?!0:(t.append(Me(h,l,o),E(a)),!1)}const u=[],p=Object.assign(ar,{defaultVisitor:f,convertValue:E,isVisitable:fe});function w(a,l){if(!c.isUndefined(a)){if(u.indexOf(a)!==-1)throw Error("Circular reference detected in "+l.join("."));u.push(a),c.forEach(a,function(y,S){(!(c.isUndefined(y)||y===null)&&s.call(t,y,c.isString(S)?S.trim():S,l,p))===!0&&w(y,l?l.concat(S):[S])}),u.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Te(e,t){this._pairs=[],e&&se(e,this,t)}const yt=Te.prototype;yt.append=function(t,n){this._pairs.push([t,n])};yt.toString=function(t){const n=t?function(r){return t.call(this,r,Ue)}:Ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wt(e,t,n){if(!t)return e;const r=n&&n.encode||cr,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Te(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ur=typeof URLSearchParams<"u"?URLSearchParams:Te,lr=typeof FormData<"u"?FormData:null,dr=typeof Blob<"u"?Blob:null,fr={isBrowser:!0,classes:{URLSearchParams:ur,FormData:lr,Blob:dr},protocols:["http","https","file","blob","url","data"]},vt=typeof window<"u"&&typeof document<"u",mr=(e=>vt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vt,hasStandardBrowserEnv:mr,hasStandardBrowserWebWorkerEnv:pr},Symbol.toStringTag,{value:"Module"})),k={...hr,...fr};function Er(e,t){return se(e,new k.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return k.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function gr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,m?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!d):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=yr(s[i])),!d)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(gr(r),s,n,0)}),n}return null}function wr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Re={transitional:bt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(St(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Er(t,this.formSerializer).toString();if((d=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return se(d?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),wr(t)):t}],transformResponse:[function(t){const n=this.transitional||Re.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(d){if(i)throw d.name==="SyntaxError"?g.from(d,g.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Re.headers[e]={}});const Oe=Re,br=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vr=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&br[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function H(e){return e&&String(e).trim().toLowerCase()}function Y(e){return e===!1||e==null?e:c.isArray(e)?e.map(Y):String(e)}function Sr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const _r=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ae(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Ar(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Tr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class oe{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(d,m,E){const f=H(m);if(!f)throw new Error("header name must be a non-empty string");const u=c.findKey(s,f);(!u||s[u]===void 0||E===!0||E===void 0&&s[u]!==!1)&&(s[u||m]=Y(d))}const i=(d,m)=>c.forEach(d,(E,f)=>o(E,f,m));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!_r(t)?i(vr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=H(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Sr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=H(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ae(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=H(i),i){const d=c.findKey(r,i);d&&(!n||ae(r,r[d],d,n))&&(delete r[d],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ae(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=Y(s),delete n[o];return}const d=t?Ar(o):String(o).trim();d!==o&&delete n[o],n[d]=Y(s),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,s=this.prototype;function o(i){const d=H(i);r[d]||(Tr(s,i),r[d]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(oe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(oe);const B=oe;function ce(e,t){const n=this||Oe,r=t||n,s=B.from(r.headers);let o=r.data;return c.forEach(e,function(d){o=d.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function _t(e){return!!(e&&e.__CANCEL__)}function J(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(J,g,{__CANCEL__:!0});function Rr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Or=k.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),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 Cr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function At(e,t){return e&&!Cr(t)?kr(e,t):t}const Pr=k.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const d=c.isString(i)?s(i):i;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}();function xr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(m){const E=Date.now(),f=r[o];i||(i=E),n[s]=m,r[s]=E;let u=o,p=0;for(;u!==s;)p+=n[u++],u=u%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),E-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,d=o-n,m=r(d),E=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:d,rate:m||void 0,estimated:m&&i&&E?(i-o)/m:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const Br=typeof XMLHttpRequest<"u",Lr=Br&&function(e){return new Promise(function(n,r){let s=e.data;const o=B.from(e.headers).normalize();let{responseType:i,withXSRFToken:d}=e,m;function E(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}let f;if(c.isFormData(s)){if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[l,...h]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...h].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(l+":"+h))}const p=At(e.baseURL,e.url);u.open(e.method.toUpperCase(),wt(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function w(){if(!u)return;const l=B.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:l,config:e,request:u};Rr(function(T){n(T),E()},function(T){r(T),E()},y),u=null}if("onloadend"in u?u.onloadend=w:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(w)},u.onabort=function(){u&&(r(new g("Request aborted",g.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||bt;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new g(h,y.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,u)),u=null},k.hasStandardBrowserEnv&&(d&&c.isFunction(d)&&(d=d(e)),d||d!==!1&&Pr(p))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&Or.read(e.xsrfCookieName);l&&o.set(e.xsrfHeaderName,l)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&c.forEach(o.toJSON(),function(h,y){u.setRequestHeader(y,h)}),c.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",He(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",He(e.onUploadProgress)),(e.cancelToken||e.signal)&&(m=l=>{u&&(r(!l||l.type?new J(null,e,u):l),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m)));const a=xr(p);if(a&&k.protocols.indexOf(a)===-1){r(new g("Unsupported protocol "+a+":",g.ERR_BAD_REQUEST,e));return}u.send(s||null)})},me={http:or,xhr:Lr};c.forEach(me,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qe=e=>`- ${e}`,Nr=e=>c.isFunction(e)||e===null||e===!1,Tt={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${d} `+(m===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : -`+o.map(qe).join(` -`):" "+qe(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:me};function ue(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new J(null,e)}function We(e){return ue(e),e.headers=B.from(e.headers),e.data=ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tt.getAdapter(e.adapter||Oe.adapter)(e).then(function(r){return ue(e),r.data=ce.call(e,e.transformResponse,r),r.headers=B.from(r.headers),r},function(r){return _t(r)||(ue(e),r&&r.response&&(r.response.data=ce.call(e,e.transformResponse,r.response),r.response.headers=B.from(r.response.headers))),Promise.reject(r)})}const Je=e=>e instanceof B?e.toJSON():e;function j(e,t){t=t||{};const n={};function r(E,f,u){return c.isPlainObject(E)&&c.isPlainObject(f)?c.merge.call({caseless:u},E,f):c.isPlainObject(f)?c.merge({},f):c.isArray(f)?f.slice():f}function s(E,f,u){if(c.isUndefined(f)){if(!c.isUndefined(E))return r(void 0,E,u)}else return r(E,f,u)}function o(E,f){if(!c.isUndefined(f))return r(void 0,f)}function i(E,f){if(c.isUndefined(f)){if(!c.isUndefined(E))return r(void 0,E)}else return r(void 0,f)}function d(E,f,u){if(u in t)return r(E,f);if(u in e)return r(void 0,E)}const m={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:d,headers:(E,f)=>s(Je(E),Je(f),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(f){const u=m[f]||s,p=u(e[f],t[f],f);c.isUndefined(p)&&u!==d||(n[f]=p)}),n}const Rt="1.6.7",Ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $e={};Ce.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Rt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,d)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!$e[i]&&($e[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,d):!0}};function Fr(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const d=e[o],m=d===void 0||i(d,o,e);if(m!==!0)throw new g("option "+o+" must be "+m,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const pe={assertOptions:Fr,validators:Ce},L=pe.validators;class Q{constructor(t){this.defaults=t,this.interceptors={request:new je,response:new je}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=j(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&pe.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:pe.assertOptions(s,{encode:L.function,serialize:L.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=B.concat(i,o);const d=[];let m=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(n)===!1||(m=m&&l.synchronous,d.unshift(l.fulfilled,l.rejected))});const E=[];this.interceptors.response.forEach(function(l){E.push(l.fulfilled,l.rejected)});let f,u=0,p;if(!m){const a=[We.bind(this),void 0];for(a.unshift.apply(a,d),a.push.apply(a,E),p=a.length,f=Promise.resolve(n);u{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(d=>{r.subscribe(d),o=d}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,d){r.reason||(r.reason=new J(o,i,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ke(function(s){t=s}),cancel:t}}}const Ir=ke;function Vr(e){return function(n){return e.apply(null,n)}}function Mr(e){return c.isObject(e)&&e.isAxiosError===!0}const he={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(he).forEach(([e,t])=>{he[t]=e});const Ur=he;function Ot(e){const t=new Z(e),n=at(Z.prototype.request,t);return c.extend(n,Z.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ot(j(e,s))},n}const A=Ot(Oe);A.Axios=Z;A.CanceledError=J;A.CancelToken=Ir;A.isCancel=_t;A.VERSION=Rt;A.toFormData=se;A.AxiosError=g;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=Vr;A.isAxiosError=Mr;A.mergeConfig=j;A.AxiosHeaders=B;A.formToJSON=e=>St(c.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Tt.getAdapter;A.HttpStatusCode=Ur;A.default=A;function Ge(){xe().logout(),location.reload()}function jr(){const e=A.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return K.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return Ge();default:return K.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(Wt(t,"response.status")){case 400:t.message="请求错误";break;case 401:Ge();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return K.error(t.message),Promise.reject(t)}),e}function zr(e){return function(t){const n=_e(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1",data:{}},s=Jt(r,t);return e(s)}}const Hr=jr(),Pe=zr(Hr);function _s(){return Pe({url:"login/code",method:"get"})}function qr(e){return Pe({url:"users/login",method:"post",data:e})}function Wr(){return Pe({url:"users/info",method:"get"})}const Jr=ee("user",()=>{const e=P(_e()||""),t=P([]),n=P(""),r=st(),s=_n(),o=it(),i=async({username:p,password:w,code:a})=>{const{data:l}=await qr({username:p,password:w,code:a});Ne(l.token),e.value=l.token},d=async()=>{var w;const{data:p}=await Wr();n.value=p.username,t.value=((w=p.roles)==null?void 0:w.length)>0?p.roles:tt.defaultRoles},m=async p=>{const w="token-"+p;e.value=w,Ne(w),await d(),r.setRoutes(t.value),Le(),r.dynamicRoutes.forEach(a=>{D.addRoute(a)}),u()},E=()=>{Fe(),e.value="",t.value=[],Le(),u()},f=()=>{Fe(),e.value="",t.value=[]},u=()=>{o.cacheTagsView||(s.delAllVisitedViews(),s.delAllCachedViews())};return{token:e,roles:t,username:n,login:i,getInfo:d,changeRoles:m,logout:E,resetToken:f}});function xe(){return Jr(ve)}function $r(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const Ee=$r(),ge=Symbol("ROUTE_CHANGE");let ye;const Gr=e=>{Ee.emit(ge,e),ye=e};function As(){const e=[],t=(r,s=!1)=>{e.push(r),Ee.on(ge,r),s&&ye&&r(ye)},n=r=>{Ee.off(ge,r)};return Mt(()=>{for(let r=0;r{Ct.value=e?`${Ke} | ${e}`:Ke};Qe(Ct,(e,t)=>{document&&e!==t&&(document.title=e)});function Xr(){return{setTitle:Kr}}const Yr=["/login"],Zr=[],Qr=e=>Yr.indexOf(e.path)!==-1||Zr.indexOf(e.name)!==-1;var kt={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($t,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(a){var l,h;for(l in a)h=a[l],h!==void 0&&a.hasOwnProperty(l)&&(r[l]=h);return this},n.status=null,n.set=function(a){var l=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var h=n.render(!l),y=h.querySelector(r.barSelector),S=r.speed,T=r.easing;return h.offsetWidth,d(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),m(y,i(a,S,T)),a===1?(m(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){m(h,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},S)},S)):setTimeout(b,S)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var l=n.status;return l?(typeof a!="number"&&(a=(1-l)*s(Math.random()*l,.1,.95)),l=s(l+a,0,.994),n.set(l)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,l=0;n.promise=function(h){return!h||h.state()==="resolved"?this:(l===0&&n.start(),a++,l++,h.always(function(){l--,l===0?(a=0,n.done()):n.set((a-l)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var l=document.createElement("div");l.id="nprogress",l.innerHTML=r.template;var h=l.querySelector(r.barSelector),y=a?"-100":o(n.status||0),S=document.querySelector(r.parent),T;return m(h,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=l.querySelector(r.spinnerSelector),T&&w(T)),S!=document.body&&f(S,"nprogress-custom-parent"),S.appendChild(l),l},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&w(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,l="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return l+"Perspective"in a?"translate3d":l+"Transform"in a?"translate":"margin"};function s(a,l,h){return ah?h:a}function o(a){return(-1+a)*100}function i(a,l,h){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(a)+"%,0)"}:y={"margin-left":o(a)+"%"},y.transition="all "+l+"ms "+h,y}var d=function(){var a=[];function l(){var h=a.shift();h&&h(l)}return function(h){a.push(h),a.length==1&&l()}}(),m=function(){var a=["Webkit","O","Moz","ms"],l={};function h(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(O,C){return C.toUpperCase()})}function y(b){var O=document.body.style;if(b in O)return b;for(var C=a.length,V=b.charAt(0).toUpperCase()+b.slice(1),N;C--;)if(N=a[C]+V,N in O)return N;return b}function S(b){return b=h(b),l[b]||(l[b]=y(b))}function T(b,O,C){O=S(O),b.style[O]=C}return function(b,O){var C=arguments,V,N;if(C.length==2)for(V in O)N=O[V],N!==void 0&&O.hasOwnProperty(V)&&T(b,V,N);else T(b,C[1],C[2])}}();function E(a,l){var h=typeof a=="string"?a:p(a);return h.indexOf(" "+l+" ")>=0}function f(a,l){var h=p(a),y=h+l;E(h,l)||(a.className=y.substring(1))}function u(a,l){var h=p(a),y;E(a,l)&&(y=h.replace(" "+l+" "," "),a.className=y.substring(1,y.length-1))}function p(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function w(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(kt);var es=kt.exports;const U=Gt(es),{setTitle:ts}=Xr();U.configure({showSpinner:!1});D.beforeEach(async(e,t,n)=>{U.start();const r=xe(),s=wn();if(!_e()){Qr(e)?n():(U.done(),n("/login"));return}if(e.path==="/login")return U.done(),n({path:"/"});if(r.roles.length!==0)return n();try{if(await r.getInfo(),tt.async){const i=r.roles;s.setRoutes(i)}s.dynamicRoutes.forEach(i=>D.addRoute(i)),n({...e,replace:!0})}catch(i){r.resetToken(),K.error(i.message||"路由守卫过程发生错误"),U.done(),n("/login")}});D.afterEach(e=>{Gr(e),ts(e.meta.title),U.done()});const ns={class:"svg-icon","aria-hidden":"true"},rs=["href"],ss=Ye({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Ut(()=>`#${t.prefix}-${t.name}`);return(r,s)=>(Ze(),jt("svg",ns,[zt("use",{href:n.value},null,8,rs)]))}}),os=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},is=os(ss,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function as(e){e.component("SvgIcon",is)}function cs(e){e.use(Kt)}function us(e){for(const[t,n]of Object.entries(Xt))e.component(t,n)}we.use(Yt);we.setup({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0},columnConfig:{resizable:!1},align:"center",headerAlign:"center",rowId:"_VXE_ID"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function ls(e){e.use(we)}function ds(e){cs(e),us(e),ls(e)}const fs={mounted(e,t){var s;const{value:n}=t,{roles:r}=xe();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function ms(e){e.directive("permission",fs)}const $=Ht(mn);ds($);as($);ms($);$.use(ve).use(D);D.isReady().then(()=>{$.mount("#app")});export{bn as D,ot as L,Ss as S,os as _,vs as a,it as b,_n as c,st as d,Jr as e,_s as f,ws as g,dn as h,Pe as i,xe as j,ys as r,bs as s,As as u}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["static/index-cvoV6cdm.js","static/vue-edbHIJ2J.js","static/useWatermark-cvdbE1cJ.js","static/element-6bs1qbFv.js","static/index.vue_vue_type_script_setup_true_lang-VByHYqQP.js","static/vxe-gaPTatyF.js","static/index-ptz1g38e.css","static/index-eyJZxR0_.js","static/403-wGgcw49t.js","static/ErrorPageLayout-bPBNbRn6.js","static/ErrorPageLayout-MzgEGPxr.css","static/404-NdZ_mb9M.js","static/index-TKGjDtZ9.js","static/index-wzvf4Xdj.css","static/index-SipYtAk7.js","static/index-eNpFb1fr.css","static/index-lpTEHZ28.js","static/index-5f0uyP5t.js","static/index-1bi1sHWy.js","static/index-oijKSejA.css","static/index-7LHDGWqJ.js","static/index-Dj2ZZ1P-.js","static/index-A5kuWbk8.css","static/index-RF_9sazX.js","static/index-Vnx_DxRw.js","static/index-aJN4HYNR.js","static/index-PBw5UC4f.js","static/index-FAQjzuRs.js","static/index-qRHlpvtI.js","static/use-fetch-select-v_-wiev5.js","static/use-fullscreen-loading-lHTCwpK_.js","static/use-watermark-6z1-3b-E.js","static/use-watermark-vMj6GPUV.css","static/page-BZY-9Gb7.js","static/SwitchRoles-I04jE-9Q.js","static/SwitchRoles-NLnFn-tk.css","static/page-Tq1n9aA7.css","static/directive-eCg5Mutp.js","static/directive-2HmODsST.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/static/index-HHvEY1I5.js b/static/index-HHvEY1I5.js new file mode 100644 index 00000000..fd374c44 --- /dev/null +++ b/static/index-HHvEY1I5.js @@ -0,0 +1,12 @@ +var kt=Object.defineProperty;var Pt=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>(Pt(e,typeof t!="symbol"?t+"":t,n),n);import{r as P,w as Xe,l as Ye,M as xt,O as Dt,u as Bt,ag as De,m as Ze,U as Lt,ax as Nt,ay as Ft,az as It,aA as Q,b as Qe,z as Vt,e as Mt,p as Ut,q as jt,as as zt}from"./vue-edbHIJ2J.js";import{E as Ht,b as G,c as qt,m as Wt,e as Jt,g as $t,i as Gt,f as Kt}from"./element-6bs1qbFv.js";import{V as ye,a as Xt}from"./vxe-gaPTatyF.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const M="v3-admin-vite";class _{}F(_,"TOKEN",`${M}-token-key`),F(_,"CONFIG_LAYOUT",`${M}-config-layout-key`),F(_,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),F(_,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),F(_,"VISITED_VIEWS",`${M}-visited-views-key`),F(_,"CACHED_VIEWS",`${M}-cached-views-key`);const Yt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Zt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),bs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},Qt=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),en=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},tn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},nn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},rn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},sn=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",on=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],we=P(Qt()||et),an=e=>{we.value=e},cn=e=>{document.documentElement.className=e},un=()=>{Xe(()=>{const e=we.value;cn(e),en(e)})};function ln(){return{themeList:on,activeThemeName:we,initTheme:un,setTheme:an}}var dn={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const fn=Ye({__name:"App",setup(e){const{initTheme:t}=ln();return t(),Ht({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),xt(o,{locale:Bt(dn)},{default:Dt(()=>[Lt(s)]),_:1},8,["locale"])}}}),be=Nt(),mn="modulepreload",pn=function(e){return"/v3-admin-vite/"+e},Be={},v=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");s=Promise.all(n.map(i=>{if(i=pn(i),i in Be)return;Be[i]=!0;const l=i.endsWith(".css"),m=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const p=o[c];if(p.href===i&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${m}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":mn,l||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),l)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},hn=Ft("/v3-admin-vite/"),tt={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>v(()=>import("./index-O_VWFwBn.js"),__vite__mapDeps([0,1,2,3,4,5,6])),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>v(()=>import("./index-eyJZxR0_.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>v(()=>import("./403-QVTmobQx.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-7FtoIsqY.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-NSolIJ6q.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-Y-znXrkX.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-5cdbFfHh.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-RoRFMxCu.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-TEp-ORP0.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-lwE5s-Lc.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-RF_9sazX.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-be9b1hiH.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>v(()=>import("./index-aJN4HYNR.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-PBw5UC4f.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-FAQjzuRs.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-qRHlpvtI.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-v_-wiev5.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-lHTCwpK_.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>v(()=>import("./use-watermark-dcNU5dZU.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Le=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-srefMYCH.js"),__vite__mapDeps([33,1,34,35,3,5,36])),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-ExCCoxxf.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],L=It({history:hn,routes:nt});function En(){try{L.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&L.hasRoute(t)&&L.removeRoute(t)})}catch{window.location.reload()}}var gn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(gn||{}),rt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(rt||{});const vs="opened",Ss="closed",yn={layoutMode:rt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},wn={...yn,...Yt()},st=Q("settings",()=>{const e={};for(const[n,r]of Object.entries(wn)){const s=P(r);e[n]=s,Qe(s,()=>{const o=t();Zt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),bn=Q("tags-view",()=>{const{cacheTagsView:e}=st(),t=P(e?tn():[]),n=P(e?rn():[]);return Xe(()=>{nn(t.value),sn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:c=>{const p=t.value.findIndex(w=>w.path===c.path);p!==-1?t.value[p].fullPath!==c.fullPath&&(t.value[p]={...c}):t.value.push({...c})},addCachedView:c=>{var p;typeof c.name=="string"&&(n.value.includes(c.name)||(p=c.meta)!=null&&p.keepAlive&&n.value.push(c.name))},delVisitedView:c=>{const p=t.value.findIndex(w=>w.path===c.path);p!==-1&&t.value.splice(p,1)},delCachedView:c=>{if(typeof c.name!="string")return;const p=n.value.indexOf(c.name);p!==-1&&n.value.splice(p,1)},delOthersVisitedViews:c=>{t.value=t.value.filter(p=>{var w;return((w=p.meta)==null?void 0:w.affix)||p.path===c.path})},delOthersCachedViews:c=>{if(typeof c.name!="string")return;const p=n.value.indexOf(c.name);p!==-1?n.value=n.value.slice(p,p+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(c=>{var p;return(p=c.meta)==null?void 0:p.affix})},delAllCachedViews:()=>{n.value=[]}}});function $(e){for(var t=1;t"u")){i=$({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var m in i)i[m]&&(l+="; "+m,i[m]!==!0&&(l+="="+i[m].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;lve.get(_.TOKEN),Ne=e=>{ve.set(_.TOKEN,e)},Fe=()=>{ve.remove(_.TOKEN)};function ot(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sn}=Object.prototype,{getPrototypeOf:_e}=Object,ee=(e=>t=>{const n=Sn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>ee(t)===e),te=e=>t=>typeof t===e,{isArray:j}=Array,H=te("undefined");function _n(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const it=x("ArrayBuffer");function An(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&it(e.buffer),t}const Tn=te("string"),R=te("function"),at=te("number"),ne=e=>e!==null&&typeof e=="object",Rn=e=>e===!0||e===!1,K=e=>{if(ee(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},On=x("Date"),Cn=x("File"),kn=x("Blob"),Pn=x("FileList"),xn=e=>ne(e)&&R(e.pipe),Dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=ee(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Bn=x("URLSearchParams"),Ln=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),j(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lt=e=>!H(e)&&e!==ut;function le(){const{caseless:e}=lt(this)&&this||{},t={},n=(r,s)=>{const o=e&&ct(t,s)||s;K(t[o])&&K(r)?t[o]=le(t[o],r):K(r)?t[o]=le({},r):j(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(q(t,(s,o)=>{n&&R(s)?e[o]=ot(s,n):e[o]=s},{allOwnKeys:r}),e),Fn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),In=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&_e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Un=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!at(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),zn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Hn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qn=x("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jn=x("RegExp"),dt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},$n=e=>{dt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Gn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return j(e)?r(e):r(String(e).split(t)),n},Kn=()=>{},Xn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),oe="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",ft={DIGIT:Ve,ALPHA:oe,ALPHA_DIGIT:oe+oe.toUpperCase()+Ve},Yn=(e=16,t=ft.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zn(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qn=e=>{const t=new Array(10),n=(r,s)=>{if(ne(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=j(r)?[]:{};return q(r,(i,l)=>{const m=n(i,s+1);!H(m)&&(o[l]=m)}),t[s]=void 0,o}}return r};return n(e,0)},er=x("AsyncFunction"),tr=e=>e&&(ne(e)||R(e))&&R(e.then)&&R(e.catch),u={isArray:j,isArrayBuffer:it,isBuffer:_n,isFormData:Dn,isArrayBufferView:An,isString:Tn,isNumber:at,isBoolean:Rn,isObject:ne,isPlainObject:K,isUndefined:H,isDate:On,isFile:Cn,isBlob:kn,isRegExp:Jn,isFunction:R,isStream:xn,isURLSearchParams:Bn,isTypedArray:jn,isFileList:Pn,forEach:q,merge:le,extend:Nn,trim:Ln,stripBOM:Fn,inherits:In,toFlatObject:Vn,kindOf:ee,kindOfTest:x,endsWith:Mn,toArray:Un,forEachEntry:zn,matchAll:Hn,isHTMLForm:qn,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:dt,freezeMethods:$n,toObjectSet:Gn,toCamelCase:Wn,noop:Kn,toFiniteNumber:Xn,findKey:ct,global:ut,isContextDefined:lt,ALPHABET:ft,generateString:Yn,isSpecCompliantForm:Zn,toJSONObject:Qn,isAsyncFn:er,isThenable:tr};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}u.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=g.prototype,pt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pt[e]={value:e}});Object.defineProperties(g,pt);Object.defineProperty(mt,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(mt);return u.toFlatObject(e,i,function(m){return m!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const nr=null;function de(e){return u.isPlainObject(e)||u.isArray(e)}function ht(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(s,o){return s=ht(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function rr(e){return u.isArray(e)&&!e.some(de)}const sr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!u.isUndefined(h[d])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function E(a){if(a===null)return"";if(u.isDate(a))return a.toISOString();if(!m&&u.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(a)||u.isTypedArray(a)?m&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function f(a,d,h){let y=a;if(a&&!h&&typeof a=="object"){if(u.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(u.isArray(a)&&rr(a)||(u.isFileList(a)||u.endsWith(d,"[]"))&&(y=u.toArray(a)))return d=ht(d),y.forEach(function(T,b){!(u.isUndefined(T)||T===null)&&t.append(i===!0?Me([d],b,o):i===null?d:d+"[]",E(T))}),!1}return de(a)?!0:(t.append(Me(h,d,o),E(a)),!1)}const c=[],p=Object.assign(sr,{defaultVisitor:f,convertValue:E,isVisitable:de});function w(a,d){if(!u.isUndefined(a)){if(c.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(a),u.forEach(a,function(y,S){(!(u.isUndefined(y)||y===null)&&s.call(t,y,u.isString(S)?S.trim():S,d,p))===!0&&w(y,d?d.concat(S):[S])}),c.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ae(e,t){this._pairs=[],e&&re(e,this,t)}const Et=Ae.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Ue)}:Ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function or(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gt(e,t,n){if(!t)return e;const r=n&&n.encode||or,s=n&&n.serialize;let o;if(s?o=s(t,n):o=u.isURLSearchParams(t)?t.toString():new Ae(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir=typeof URLSearchParams<"u"?URLSearchParams:Ae,ar=typeof FormData<"u"?FormData:null,cr=typeof Blob<"u"?Blob:null,ur={isBrowser:!0,classes:{URLSearchParams:ir,FormData:ar,Blob:cr},protocols:["http","https","file","blob","url","data"]},wt=typeof window<"u"&&typeof document<"u",lr=(e=>wt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wt,hasStandardBrowserEnv:lr,hasStandardBrowserWebWorkerEnv:dr},Symbol.toStringTag,{value:"Module"})),k={...fr,...ur};function mr(e,t){return re(e,new k.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return k.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pr(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&u.isArray(s)?s.length:i,m?(u.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&u.isArray(s[i])&&(s[i]=hr(s[i])),!l)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(r,s)=>{t(pr(r),s,n,0)}),n}return null}function Er(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Te={transitional:yt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(bt(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mr(t,this.formSerializer).toString();if((l=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return re(l?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Er(t)):t}],transformResponse:[function(t){const n=this.transitional||Te.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&u.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?g.from(l,g.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{Te.headers[e]={}});const Re=Te,gr=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yr=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&gr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function X(e){return e===!1||e==null?e:u.isArray(e)?e.map(X):String(e)}function wr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const br=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ie(e,t,n,r,s){if(u.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!u.isString(t)){if(u.isString(r))return t.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(t)}}function vr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sr(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class se{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,m,E){const f=z(m);if(!f)throw new Error("header name must be a non-empty string");const c=u.findKey(s,f);(!c||s[c]===void 0||E===!0||E===void 0&&s[c]!==!1)&&(s[c||m]=X(l))}const i=(l,m)=>u.forEach(l,(E,f)=>o(E,f,m));return u.isPlainObject(t)||t instanceof this.constructor?i(t,n):u.isString(t)&&(t=t.trim())&&!br(t)?i(yr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=z(t),t){const r=u.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wr(s);if(u.isFunction(n))return n.call(this,s,r);if(u.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=u.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ie(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=z(i),i){const l=u.findKey(r,i);l&&(!n||ie(r,r[l],l,n))&&(delete r[l],s=!0)}}return u.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ie(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return u.forEach(this,(s,o)=>{const i=u.findKey(r,o);if(i){n[i]=X(s),delete n[o];return}const l=t?vr(o):String(o).trim();l!==o&&delete n[o],n[l]=X(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&u.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=z(i);r[l]||(Sr(s,i),r[l]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(se.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});u.freezeMethods(se);const D=se;function ae(e,t){const n=this||Re,r=t||n,s=D.from(r.headers);let o=r.data;return u.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function vt(e){return!!(e&&e.__CANCEL__)}function W(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(W,g,{__CANCEL__:!0});function _r(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ar=k.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),u.isString(r)&&i.push("path="+r),u.isString(s)&&i.push("domain="+s),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 Tr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t){return e&&!Tr(t)?Rr(e,t):t}const Or=k.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=u.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Cr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(m){const E=Date.now(),f=r[o];i||(i=E),n[s]=m,r[s]=E;let c=o,p=0;for(;c!==s;)p+=n[c++],c=c%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),E-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,m=r(l),E=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:m||void 0,estimated:m&&i&&E?(i-o)/m:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const Pr=typeof XMLHttpRequest<"u",xr=Pr&&function(e){return new Promise(function(n,r){let s=e.data;const o=D.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,m;function E(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}let f;if(u.isFormData(s)){if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[d,...h]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...h].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+h))}const p=St(e.baseURL,e.url);c.open(e.method.toUpperCase(),gt(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const d=D.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};_r(function(T){n(T),E()},function(T){r(T),E()},y),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new g("Request aborted",g.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||yt;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new g(h,y.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,c)),c=null},k.hasStandardBrowserEnv&&(l&&u.isFunction(l)&&(l=l(e)),l||l!==!1&&Or(p))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&Ar.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&u.forEach(o.toJSON(),function(h,y){c.setRequestHeader(y,h)}),u.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",He(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",He(e.onUploadProgress)),(e.cancelToken||e.signal)&&(m=d=>{c&&(r(!d||d.type?new W(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m)));const a=Cr(p);if(a&&k.protocols.indexOf(a)===-1){r(new g("Unsupported protocol "+a+":",g.ERR_BAD_REQUEST,e));return}c.send(s||null)})},fe={http:nr,xhr:xr};u.forEach(fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qe=e=>`- ${e}`,Dr=e=>u.isFunction(e)||e===null||e===!1,_t={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${l} `+(m===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(qe).join(` +`):" "+qe(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:fe};function ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new W(null,e)}function We(e){return ce(e),e.headers=D.from(e.headers),e.data=ae.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_t.getAdapter(e.adapter||Re.adapter)(e).then(function(r){return ce(e),r.data=ae.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return vt(r)||(ce(e),r&&r.response&&(r.response.data=ae.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const Je=e=>e instanceof D?e.toJSON():e;function U(e,t){t=t||{};const n={};function r(E,f,c){return u.isPlainObject(E)&&u.isPlainObject(f)?u.merge.call({caseless:c},E,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function s(E,f,c){if(u.isUndefined(f)){if(!u.isUndefined(E))return r(void 0,E,c)}else return r(E,f,c)}function o(E,f){if(!u.isUndefined(f))return r(void 0,f)}function i(E,f){if(u.isUndefined(f)){if(!u.isUndefined(E))return r(void 0,E)}else return r(void 0,f)}function l(E,f,c){if(c in t)return r(E,f);if(c in e)return r(void 0,E)}const m={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:(E,f)=>s(Je(E),Je(f),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=m[f]||s,p=c(e[f],t[f],f);u.isUndefined(p)&&c!==l||(n[f]=p)}),n}const At="1.6.7",Oe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $e={};Oe.transitional=function(t,n,r){function s(o,i){return"[Axios v"+At+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!$e[i]&&($e[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Br(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],m=l===void 0||i(l,o,e);if(m!==!0)throw new g("option "+o+" must be "+m,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const me={assertOptions:Br,validators:Oe},B=me.validators;class Z{constructor(t){this.defaults=t,this.interceptors={request:new je,response:new je}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&me.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:me.assertOptions(s,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=D.concat(i,o);const l=[];let m=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(m=m&&d.synchronous,l.unshift(d.fulfilled,d.rejected))});const E=[];this.interceptors.response.forEach(function(d){E.push(d.fulfilled,d.rejected)});let f,c=0,p;if(!m){const a=[We.bind(this),void 0];for(a.unshift.apply(a,l),a.push.apply(a,E),p=a.length,f=Promise.resolve(n);c{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new W(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ce(function(s){t=s}),cancel:t}}}const Lr=Ce;function Nr(e){return function(n){return e.apply(null,n)}}function Fr(e){return u.isObject(e)&&e.isAxiosError===!0}const pe={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(pe).forEach(([e,t])=>{pe[t]=e});const Ir=pe;function Tt(e){const t=new Y(e),n=ot(Y.prototype.request,t);return u.extend(n,Y.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Tt(U(e,s))},n}const A=Tt(Re);A.Axios=Y;A.CanceledError=W;A.CancelToken=Lr;A.isCancel=vt;A.VERSION=At;A.toFormData=re;A.AxiosError=g;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=Nr;A.isAxiosError=Fr;A.mergeConfig=U;A.AxiosHeaders=D;A.formToJSON=e=>bt(u.isHTMLForm(e)?new FormData(e):e);A.getAdapter=_t.getAdapter;A.HttpStatusCode=Ir;A.default=A;function Ge(){Pe().logout(),location.reload()}function Vr(){const e=A.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return G.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return Ge();default:return G.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(qt(t,"response.status")){case 400:t.message="请求错误";break;case 401:Ge();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return G.error(t.message),Promise.reject(t)}),e}function Mr(e){return function(t){const n=Se(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1",data:{}},s=Wt(r,t);return e(s)}}const Ur=Vr(),ke=Mr(Ur);function _s(){return ke({url:"login/code",method:"get"})}function jr(e){return ke({url:"users/login",method:"post",data:e})}function zr(){return ke({url:"users/info",method:"get"})}const Hr=Q("user",()=>{const e=P(Se()||""),t=P([]),n=P(""),r=bn(),s=st(),o=async({username:c,password:p,code:w})=>{const{data:a}=await jr({username:c,password:p,code:w});Ne(a.token),e.value=a.token},i=async()=>{var p;const{data:c}=await zr();n.value=c.username,t.value=((p=c.roles)==null?void 0:p.length)>0?c.roles:tt.defaultRoles},l=async c=>{const p="token-"+c;e.value=p,Ne(p),window.location.reload()},m=()=>{Fe(),e.value="",t.value=[],En(),f()},E=()=>{Fe(),e.value="",t.value=[]},f=()=>{s.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,login:o,getInfo:i,changeRoles:l,logout:m,resetToken:E}});function Pe(){return Hr(be)}const qr=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0},Rt=(e,t)=>{const n=[];return e.forEach(r=>{const s={...r};qr(t,s)&&(s.children&&(s.children=Rt(s.children,t)),n.push(s))}),n},Wr=Q("permission",()=>{const e=P([]),t=P([]),n=o=>{const i=Rt(Le,o);s(i)},r=()=>{s(Le)},s=o=>{e.value=nt.concat(o),t.value=o};return{routes:e,dynamicRoutes:t,setRoutes:n,setAllRoutes:r}});function Jr(){return Wr(be)}function $r(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const he=$r(),Ee=Symbol("ROUTE_CHANGE");let ge;const Gr=e=>{he.emit(Ee,e),ge=e};function As(){const e=[],t=(r,s=!1)=>{e.push(r),he.on(Ee,r),s&&ge&&r(ge)},n=r=>{he.off(Ee,r)};return Vt(()=>{for(let r=0;r{Ot.value=e?`${Ke} | ${e}`:Ke};Qe(Ot,(e,t)=>{document&&e!==t&&(document.title=e)});function Xr(){return{setTitle:Kr}}const Yr=["/login"],Zr=[],Qr=e=>Yr.indexOf(e.path)!==-1||Zr.indexOf(e.name)!==-1;var Ct={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jt,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(a){var d,h;for(d in a)h=a[d],h!==void 0&&a.hasOwnProperty(d)&&(r[d]=h);return this},n.status=null,n.set=function(a){var d=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var h=n.render(!d),y=h.querySelector(r.barSelector),S=r.speed,T=r.easing;return h.offsetWidth,l(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),m(y,i(a,S,T)),a===1?(m(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){m(h,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},S)},S)):setTimeout(b,S)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var d=n.status;return d?(typeof a!="number"&&(a=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+a,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,d=0;n.promise=function(h){return!h||h.state()==="resolved"?this:(d===0&&n.start(),a++,d++,h.always(function(){d--,d===0?(a=0,n.done()):n.set((a-d)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var h=d.querySelector(r.barSelector),y=a?"-100":o(n.status||0),S=document.querySelector(r.parent),T;return m(h,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&w(T)),S!=document.body&&f(S,"nprogress-custom-parent"),S.appendChild(d),d},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&w(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,d="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return d+"Perspective"in a?"translate3d":d+"Transform"in a?"translate":"margin"};function s(a,d,h){return ah?h:a}function o(a){return(-1+a)*100}function i(a,d,h){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(a)+"%,0)"}:y={"margin-left":o(a)+"%"},y.transition="all "+d+"ms "+h,y}var l=function(){var a=[];function d(){var h=a.shift();h&&h(d)}return function(h){a.push(h),a.length==1&&d()}}(),m=function(){var a=["Webkit","O","Moz","ms"],d={};function h(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(O,C){return C.toUpperCase()})}function y(b){var O=document.body.style;if(b in O)return b;for(var C=a.length,V=b.charAt(0).toUpperCase()+b.slice(1),N;C--;)if(N=a[C]+V,N in O)return N;return b}function S(b){return b=h(b),d[b]||(d[b]=y(b))}function T(b,O,C){O=S(O),b.style[O]=C}return function(b,O){var C=arguments,V,N;if(C.length==2)for(V in O)N=O[V],N!==void 0&&O.hasOwnProperty(V)&&T(b,V,N);else T(b,C[1],C[2])}}();function E(a,d){var h=typeof a=="string"?a:p(a);return h.indexOf(" "+d+" ")>=0}function f(a,d){var h=p(a),y=h+d;E(h,d)||(a.className=y.substring(1))}function c(a,d){var h=p(a),y;E(a,d)&&(y=h.replace(" "+d+" "," "),a.className=y.substring(1,y.length-1))}function p(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function w(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(Ct);var es=Ct.exports;const xe=$t(es),{setTitle:ts}=Xr();xe.configure({showSpinner:!1});L.beforeEach(async(e,t,n)=>{xe.start();const r=Pe(),s=Jr();if(!Se())return Qr(e)?n():n("/login");if(e.path==="/login")return n({path:"/"});if(r.roles.length!==0)return n();try{await r.getInfo();const i=r.roles;tt.async?s.setRoutes(i):s.setAllRoutes(),s.dynamicRoutes.forEach(l=>L.addRoute(l)),n({...e,replace:!0})}catch(i){r.resetToken(),G.error(i.message||"路由守卫过程发生错误"),n("/login")}});L.afterEach(e=>{Gr(e),ts(e.meta.title),xe.done()});const ns={class:"svg-icon","aria-hidden":"true"},rs=["href"],ss=Ye({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Mt(()=>`#${t.prefix}-${t.name}`);return(r,s)=>(Ze(),Ut("svg",ns,[jt("use",{href:n.value},null,8,rs)]))}}),os=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},is=os(ss,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function as(e){e.component("SvgIcon",is)}function cs(e){e.use(Gt)}function us(e){for(const[t,n]of Object.entries(Kt))e.component(t,n)}ye.use(Xt);ye.setup({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0},columnConfig:{resizable:!1},align:"center",headerAlign:"center",rowId:"_VXE_ID"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function ls(e){e.use(ye)}function ds(e){cs(e),us(e),ls(e)}const fs={mounted(e,t){var s;const{value:n}=t,{roles:r}=Pe();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function ms(e){e.directive("permission",fs)}const J=zt(fn);ds(J);as(J);ms(J);J.use(be).use(L);L.isReady().then(()=>{J.mount("#app")});export{gn as D,rt as L,Ss as S,os as _,vs as a,st as b,bn as c,Wr as d,Hr as e,_s as f,ws as g,ln as h,ke as i,Pe as j,ys as r,bs as s,As as u}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["static/index-O_VWFwBn.js","static/vue-edbHIJ2J.js","static/useWatermark-cvdbE1cJ.js","static/element-6bs1qbFv.js","static/index.vue_vue_type_script_setup_true_lang-49QmwLLS.js","static/vxe-gaPTatyF.js","static/index-ptz1g38e.css","static/index-eyJZxR0_.js","static/403-QVTmobQx.js","static/ErrorPageLayout-QC40NetK.js","static/ErrorPageLayout-MzgEGPxr.css","static/404-7FtoIsqY.js","static/index-NSolIJ6q.js","static/index-wzvf4Xdj.css","static/index-Y-znXrkX.js","static/index-eNpFb1fr.css","static/index-5cdbFfHh.js","static/index-RoRFMxCu.js","static/index--PcluvJg.js","static/index-oijKSejA.css","static/index-TEp-ORP0.js","static/index-lwE5s-Lc.js","static/index-A5kuWbk8.css","static/index-RF_9sazX.js","static/index-be9b1hiH.js","static/index-aJN4HYNR.js","static/index-PBw5UC4f.js","static/index-FAQjzuRs.js","static/index-qRHlpvtI.js","static/use-fetch-select-v_-wiev5.js","static/use-fullscreen-loading-lHTCwpK_.js","static/use-watermark-dcNU5dZU.js","static/use-watermark-vMj6GPUV.css","static/page-srefMYCH.js","static/SwitchRoles-Mm3_plQD.js","static/SwitchRoles-MozfMXCY.css","static/page-Tq1n9aA7.css","static/directive-ExCCoxxf.js","static/directive-Eo5DL1J-.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/static/index-TKGjDtZ9.js b/static/index-NSolIJ6q.js similarity index 93% rename from static/index-TKGjDtZ9.js rename to static/index-NSolIJ6q.js index 627d0bd6..2510f2a0 100644 --- a/static/index-TKGjDtZ9.js +++ b/static/index-NSolIJ6q.js @@ -1 +1 @@ -import{l as k,aD as C,r as f,Z as S,ag as s,m as U,p as z,U as e,q as c,O as t,u as i,a2 as I,S as q,a8 as F,aH as M,aI as R}from"./vue-edbHIJ2J.js";import{f as B,e as N,_ as D}from"./index-8aC8ZOcR.js";import{v as E,w as H,x as K,y as L,z as Z}from"./element-6bs1qbFv.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang-VByHYqQP.js";import"./vxe-gaPTatyF.js";const O="/v3-admin-vite/static/logo-text-2-lXsH_ESZ.png",T=d=>(M("data-v-79326910"),d=d(),R(),d),X={class:"login-container"},$={class:"login-card"},j=T(()=>c("div",{class:"title"},[c("img",{src:O})],-1)),G={class:"content"},J=k({__name:"index",setup(d){const h=C(),g=f(null),u=f(!1),p=f(""),o=S({username:"admin",password:"12345678",code:""}),w={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},x=()=>{var r;(r=g.value)==null||r.validate((a,l)=>{a?(u.value=!0,N().login(o).then(()=>{h.push({path:"/"})}).catch(()=>{m(),o.password=""}).finally(()=>{u.value=!1})):console.error("表单校验不通过",l)})},m=()=>{o.code="",p.value="",B().then(r=>{p.value=r.data})};return m(),(r,a)=>{const l=s("el-input"),_=s("el-form-item"),v=s("el-icon"),V=s("el-image"),y=s("el-button"),b=s("el-form");return U(),z("div",X,[e(A,{class:"theme-switch"}),c("div",$,[j,c("div",G,[e(b,{ref_key:"loginFormRef",ref:g,model:o,rules:w,onKeyup:F(x,["enter"])},{default:t(()=>[e(_,{prop:"username"},{default:t(()=>[e(l,{modelValue:o.username,"onUpdate:modelValue":a[0]||(a[0]=n=>o.username=n),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":i(E),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"password"},{default:t(()=>[e(l,{modelValue:o.password,"onUpdate:modelValue":a[1]||(a[1]=n=>o.password=n),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":i(H),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"code"},{default:t(()=>[e(l,{modelValue:o.code,"onUpdate:modelValue":a[2]||(a[2]=n=>o.code=n),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":i(K),maxlength:"7",size:"large"},{append:t(()=>[e(V,{src:p.value,onClick:m,draggable:"false"},{placeholder:t(()=>[e(v,null,{default:t(()=>[e(i(L))]),_:1})]),error:t(()=>[e(v,null,{default:t(()=>[e(i(Z))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(y,{loading:u.value,type:"primary",size:"large",onClick:I(x,["prevent"])},{default:t(()=>[q("登 录")]),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),oe=D(J,[["__scopeId","data-v-79326910"]]);export{oe as default}; +import{l as k,aD as C,r as f,Z as S,ag as s,m as U,p as z,U as e,q as c,O as t,u as i,a2 as I,S as q,a8 as F,aH as M,aI as R}from"./vue-edbHIJ2J.js";import{f as B,e as N,_ as D}from"./index-HHvEY1I5.js";import{v as E,w as H,x as K,y as L,z as Z}from"./element-6bs1qbFv.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang-49QmwLLS.js";import"./vxe-gaPTatyF.js";const O="/v3-admin-vite/static/logo-text-2-lXsH_ESZ.png",T=d=>(M("data-v-79326910"),d=d(),R(),d),X={class:"login-container"},$={class:"login-card"},j=T(()=>c("div",{class:"title"},[c("img",{src:O})],-1)),G={class:"content"},J=k({__name:"index",setup(d){const h=C(),g=f(null),u=f(!1),p=f(""),o=S({username:"admin",password:"12345678",code:""}),w={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},x=()=>{var r;(r=g.value)==null||r.validate((a,l)=>{a?(u.value=!0,N().login(o).then(()=>{h.push({path:"/"})}).catch(()=>{m(),o.password=""}).finally(()=>{u.value=!1})):console.error("表单校验不通过",l)})},m=()=>{o.code="",p.value="",B().then(r=>{p.value=r.data})};return m(),(r,a)=>{const l=s("el-input"),_=s("el-form-item"),v=s("el-icon"),V=s("el-image"),y=s("el-button"),b=s("el-form");return U(),z("div",X,[e(A,{class:"theme-switch"}),c("div",$,[j,c("div",G,[e(b,{ref_key:"loginFormRef",ref:g,model:o,rules:w,onKeyup:F(x,["enter"])},{default:t(()=>[e(_,{prop:"username"},{default:t(()=>[e(l,{modelValue:o.username,"onUpdate:modelValue":a[0]||(a[0]=n=>o.username=n),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":i(E),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"password"},{default:t(()=>[e(l,{modelValue:o.password,"onUpdate:modelValue":a[1]||(a[1]=n=>o.password=n),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":i(H),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"code"},{default:t(()=>[e(l,{modelValue:o.code,"onUpdate:modelValue":a[2]||(a[2]=n=>o.code=n),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":i(K),maxlength:"7",size:"large"},{append:t(()=>[e(V,{src:p.value,onClick:m,draggable:"false"},{placeholder:t(()=>[e(v,null,{default:t(()=>[e(i(L))]),_:1})]),error:t(()=>[e(v,null,{default:t(()=>[e(i(Z))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(y,{loading:u.value,type:"primary",size:"large",onClick:I(x,["prevent"])},{default:t(()=>[q("登 录")]),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),oe=D(J,[["__scopeId","data-v-79326910"]]);export{oe as default}; diff --git a/static/index-cvoV6cdm.js b/static/index-O_VWFwBn.js similarity index 99% rename from static/index-cvoV6cdm.js rename to static/index-O_VWFwBn.js index 0ac9faee..33afedc7 100644 --- a/static/index-cvoV6cdm.js +++ b/static/index-O_VWFwBn.js @@ -1 +1 @@ -import{aA as et,Z as tt,r as P,b as ze,E as Be,d as Se,z as We,e as M,l as R,m as u,p as E,T as N,u as f,ag as g,q as C,U as d,O as _,W as Oe,M as k,aB as nt,Q as ie,R as I,aC as me,aD as _e,F as U,a7 as j,a2 as re,H as ue,a9 as ot,S as G,I as H,aE as He,w as de,aF as st,aG as qe,c as Ue,J as Xe,aH as ke,aI as xe,s as at,a8 as le,aJ as ne,n as lt,aK as rt,P as ve,V as he}from"./vue-edbHIJ2J.js";import{g as ct,S as Ke,D as Y,s as Le,a as it,u as ge,b as J,L as ee,_ as D,c as Ge,r as ut,d as Ce,e as dt}from"./index-8aC8ZOcR.js";import{u as ft}from"./useWatermark-cvdbE1cJ.js";import{h as pt,j as mt,g as _t,k as vt,b as fe,l as ht,n as gt,o as Je,u as bt,r as yt,p as wt,q as St,s as kt,t as xt}from"./element-6bs1qbFv.js";import{_ as Ct}from"./index.vue_vue_type_script_setup_true_lang-VByHYqQP.js";import"./vxe-gaPTatyF.js";function Tt(n){n?Le(it):Le(Ke)}const oe=et("app",()=>{const n=tt({opened:ct()!==Ke,withoutAnimation:!1}),e=P(Y.Desktop);return ze(()=>n.opened,o=>Tt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),Et=992,$t=()=>{const n=oe(),{listenerRouteChange:e}=ge(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const a=t();n.toggleDevice(a?Y.Mobile:Y.Desktop),a&&n.closeSidebar(!0)}};e(()=>{n.device===Y.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Be(()=>{window.addEventListener("resize",l)}),Se(()=>{t()&&(n.toggleDevice(Y.Mobile),n.closeSidebar(!0))}),We(()=>{window.removeEventListener("resize",l)})},Ze=oe(),Vt=M(()=>Ze.device===Y.Mobile),Mt=M(()=>Ze.device===Y.Desktop);function se(){return{isMobile:Vt,isDesktop:Mt}}const be=J(),At=M(()=>be.layoutMode===ee.Left),It=M(()=>be.layoutMode===ee.Top),Lt=M(()=>be.layoutMode===ee.LeftTop),Rt=n=>{be.layoutMode=n};function ae(){return{isLeft:At,isTop:It,isLeftTop:Lt,setLayoutMode:Rt}}const Dt={class:"layout-footer"},Pt=R({__name:"index",setup(n){const e="V3 Admin Vite";return(t,l)=>(u(),E("footer",Dt,"MIT © 2021-PRESENT "+N(f(e)),1))}}),Ft=D(Pt,[["__scopeId","data-v-034a5242"]]),Nt={class:"app-main"},zt={class:"app-scrollbar"},Bt=R({__name:"AppMain",setup(n){const e=Ge(),t=J();return(l,a)=>{const o=g("router-view"),s=g("el-backtop");return u(),E("section",Nt,[C("div",zt,[d(o,null,{default:_(({Component:r,route:c})=>[d(Oe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(u(),k(nt,{include:f(e).cachedViews},[(u(),k(ie(r),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),f(t).showFooter?(u(),k(Ft,{key:0})):I("",!0)]),d(s),d(s,{target:".app-scrollbar"})])}}}),Te=D(Bt,[["__scopeId","data-v-d87ee2cd"]]),Wt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=e,a=()=>{l("toggleClick")};return(o,s)=>{const r=g("el-icon");return u(),E("div",{onClick:a},[d(r,{size:20,class:"icon"},{default:_(()=>[t.isActive?(u(),k(f(pt),{key:0})):(u(),k(f(mt),{key:1}))]),_:1})])}}}),Ot=D(Wt,[["__scopeId","data-v-252d9bf8"]]);function Ht(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){a+=n[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:a}),t=o;continue}if(l==="("){var r=1,c="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o{a.value=e.matched.filter(c=>{var p,m;return((p=c.meta)==null?void 0:p.title)&&((m=c.meta)==null?void 0:m.breadcrumb)!==!1})},s=c=>Ut(c)(e.params),r=c=>{const{redirect:p,path:m}=c;if(p){t.push(p);return}t.push(s(m))};return l(c=>{c.path.startsWith("/redirect/")||o()},!0),(c,p)=>{const m=g("el-breadcrumb-item"),i=g("el-breadcrumb");return u(),k(i,{class:"app-breadcrumb"},{default:_(()=>[(u(!0),E(U,null,j(a.value,(w,v)=>(u(),k(m,{key:w.path},{default:_(()=>[w.redirect==="noRedirect"||v===a.value.length-1?(u(),E("span",Jt,N(w.meta.title),1)):(u(),E("a",{key:1,onClick:re(h=>r(w),["prevent"])},N(w.meta.title),9,Zt))]),_:2},1024))),128))]),_:1})}}}),Yt=D(jt,[["__scopeId","data-v-2eef2d12"]]),pe=n=>/^(https?:|mailto:|tel:)/.test(n),Qt=["href"],en=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const a=g("router-link");return f(pe)(e.to)?(u(),E("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ue(t.$slots,"default")],8,Qt)):(u(),k(a,{key:1,to:e.to},{default:_(()=>[ue(t.$slots,"default")]),_:3},8,["to"]))}}});function K(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Re(n,e){for(var t="",l=0,a=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",l=0):(t=t.slice(0,c),l=t.length-1-t.lastIndexOf("/")),a=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,a=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(a+1,r):t=n.slice(a+1,r),l=r-a-1;a=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function tn(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var te={resolve:function(){for(var e="",t=!1,l,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(l===void 0&&(l=process.cwd()),o=l),K(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Re(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(K(e),e.length===0)return".";var t=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;return e=Re(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return K(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=l:e+="/"+l)}return e===void 0?".":te.normalize(e)},relative:function(e,t){if(K(e),K(t),e===t||(e=te.resolve(e),t=te.resolve(t),e===t))return"";for(var l=1;lp){if(t.charCodeAt(s+i)===47)return t.slice(s+i+1);if(i===0)return t.slice(s+i)}else o>p&&(e.charCodeAt(l+i)===47?m=i:i===0&&(m=0));break}var w=e.charCodeAt(l+i),v=t.charCodeAt(s+i);if(w!==v)break;w===47&&(m=i)}var h="";for(i=l+m+1;i<=a;++i)(i===a||e.charCodeAt(i)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(s+m):(s+=m,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(K(e),e.length===0)return".";for(var t=e.charCodeAt(0),l=t===47,a=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){a=s;break}}else o=!1;return a===-1?l?"/":".":l&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');K(e);var l=0,a=-1,o=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,c=-1;for(s=e.length-1;s>=0;--s){var p=e.charCodeAt(s);if(p===47){if(!o){l=s+1;break}}else c===-1&&(o=!1,c=s+1),r>=0&&(p===t.charCodeAt(r)?--r===-1&&(a=s):(r=-1,a=c))}return l===a?a=c:a===-1&&(a=e.length),e.slice(l,a)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){l=s+1;break}}else a===-1&&(o=!1,a=s+1);return a===-1?"":e.slice(l,a)}},extname:function(e){K(e);for(var t=-1,l=0,a=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!o){l=r+1;break}continue}a===-1&&(o=!1,a=r+1),c===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||a===-1||s===0||s===1&&t===a-1&&t===l+1?"":e.slice(t,a)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return tn("/",e)},parse:function(e){K(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),a=l===47,o;a?(t.root="/",o=1):o=0;for(var s=-1,r=0,c=-1,p=!0,m=e.length-1,i=0;m>=o;--m){if(l=e.charCodeAt(m),l===47){if(!p){r=m+1;break}continue}c===-1&&(p=!1,c=m+1),l===46?s===-1?s=m:i!==1&&(i=1):s!==-1&&(i=-1)}return s===-1||c===-1||i===0||i===1&&s===c-1&&s===r+1?c!==-1&&(r===0&&a?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(r,c)):(r===0&&a?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(r,s),t.base=e.slice(r,c)),t.ext=e.slice(s,c)),r>0?t.dir=e.slice(0,r-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};te.posix=te;var nn=te;const je=_t(nn),on={key:2},sn=R({__name:"SidebarItem",props:{item:{},isCollapse:{type:Boolean,default:!1},isTop:{type:Boolean,default:!1},isFirstLevel:{type:Boolean,default:!0},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(c=>{var p;return!((p=c.meta)!=null&&p.hidden)}))??[]}),a=M(()=>l.value.length),o=M(()=>{const r=a.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case pe(r):return r;case pe(e.basePath):return e.basePath;default:return je.resolve(e.basePath,r)}};return(r,c)=>{const p=g("SvgIcon"),m=g("el-menu-item"),i=g("SidebarItem",!0),w=g("el-sub-menu");return u(),E("div",{class:H({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(u(),E(U,{key:0},[o.value.meta?(u(),k(en,{key:0,to:s(o.value.path)},{default:_(()=>[d(m,{index:s(o.value.path)},ot({default:_(()=>[o.value.meta.svgIcon?(u(),k(p,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(u(),k(ie(o.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:_(()=>[G(N(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(u(),k(w,{key:1,index:s(e.item.path),teleported:""},{title:_(()=>{var v,h,y;return[(v=e.item.meta)!=null&&v.svgIcon?(u(),k(p,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(u(),k(ie(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(y=e.item.meta)!=null&&y.title?(u(),E("span",on,N(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(u(!0),E(U,{key:0},j(l.value,v=>(u(),k(i,{key:v.path,item:v,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":s(v.path)},null,8,["item","is-collapse","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))],2)}}}),an=D(sn,[["__scopeId","data-v-6ae03ba2"]]),ln="/v3-admin-vite/static/logo-WN1ETR0H.png",rn="/v3-admin-vite/static/logo-text-1-h7hJu_cc.png",cn="/v3-admin-vite/static/logo-text-2-lXsH_ESZ.png",un=["src"],dn=["src"],fn=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:l}=ae();return(a,o)=>{const s=g("router-link");return u(),E("div",{class:H(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":f(l)}])},[d(Oe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(u(),k(s,{key:"collapse",to:"/"},{default:_(()=>[C("img",{src:f(ln),class:"layout-logo"},null,8,un)]),_:1})):(u(),k(s,{key:"expand",to:"/"},{default:_(()=>[C("img",{src:f(t)?f(rn):f(cn),class:"layout-logo-text"},null,8,dn)]),_:1}))]),_:1})],2)}}}),Ee=D(fn,[["__scopeId","data-v-af87e7f4"]]),ce=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},De=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},pn=()=>{ut(),location.reload()},mn=R({__name:"index",setup(n){He(b=>({"7b90a116":O.value,"51f4669f":A.value,"0006b177":z.value,ec6d0d42:B.value,"1c74451c":L.value}));const e=ce("--v3-sidebar-menu-bg-color"),t=ce("--v3-sidebar-menu-text-color"),l=ce("--v3-sidebar-menu-active-text-color"),{isMobile:a}=se(),{isLeft:o,isTop:s}=ae(),r=me(),c=oe(),p=Ce(),m=J(),i=M(()=>{const{meta:{activeMenu:b},path:T}=r;return b||T}),w=M(()=>p.routes.filter(b=>{var T;return!((T=b.meta)!=null&&T.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>o.value&&m.showLogo),y=M(()=>o.value?e:void 0),x=M(()=>o.value?t:void 0),L=M(()=>o.value?l:void 0),z=M(()=>s.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=M(()=>s.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),O=M(()=>s.value?"0px":"2px"),A=M(()=>s.value?"none":"block");return(b,T)=>{const W=g("el-menu"),S=g("el-scrollbar");return u(),E("div",{class:H({"has-logo":h.value})},[h.value?(u(),k(Ee,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),d(S,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[d(W,{"default-active":i.value,collapse:v.value&&!f(s),"background-color":y.value,"text-color":x.value,"active-text-color":L.value,"unique-opened":!0,"collapse-transition":!1,mode:f(s)&&!f(a)?"horizontal":"vertical"},{default:_(()=>[(u(!0),E(U,null,j(w.value,V=>(u(),k(an,{key:V.path,item:V,"base-path":V.path,"is-collapse":v.value,"is-top":f(s)},null,8,["item","base-path","is-collapse","is-top"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),$e=D(mn,[["__scopeId","data-v-c09e2cfd"]]),_n={class:"card-header"},vn={class:"card-title"},hn={class:"card-time"},gn={key:0,class:"card-avatar"},bn=["src"],yn={class:"card-body"},wn=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const a=g("el-empty"),o=g("el-tag"),s=g("el-card");return e.list.length===0?(u(),k(a,{key:0})):(u(!0),E(U,{key:1},j(e.list,(r,c)=>(u(),k(s,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[C("div",_n,[C("div",null,[C("span",null,[C("span",vn,N(r.title),1),r.extra?(u(),k(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:_(()=>[G(N(r.extra),1)]),_:2},1032,["type"])):I("",!0)]),C("div",hn,N(r.datetime),1)]),r.avatar?(u(),E("div",gn,[C("img",{src:r.avatar,width:"34"},null,8,bn)])):I("",!0)])]),default:_(()=>[C("div",yn,N(r.description??"No Data"),1)]),_:2},1024))),128))}}}),Sn=D(wn,[["__scopeId","data-v-137655f9"]]),kn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"一年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"两年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],xn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],Cn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Tn={class:"notify"},En={class:"notify-history"},Pe=99,$n=350,Vn=R({__name:"index",setup(n){const e=M(()=>l.value.reduce((o,s)=>o+s.list.length,0)),t=P("通知"),l=P([{name:"通知",type:"primary",list:kn},{name:"消息",type:"danger",list:xn},{name:"待办",type:"warning",list:Cn}]),a=()=>{fe.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=g("el-icon"),c=g("el-tooltip"),p=g("el-badge"),m=g("el-scrollbar"),i=g("el-tab-pane"),w=g("el-tabs"),v=g("el-button"),h=g("el-popover");return u(),E("div",Tn,[d(h,{placement:"bottom",width:$n,trigger:"click"},{reference:_(()=>[d(p,{value:e.value,max:Pe,hidden:e.value===0},{default:_(()=>[d(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[d(r,{size:20},{default:_(()=>[d(f(vt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[d(w,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=y=>t.value=y),class:"demo-tabs",stretch:""},{default:_(()=>[(u(!0),E(U,null,j(l.value,(y,x)=>(u(),k(i,{name:y.name,key:x},{label:_(()=>[G(N(y.name)+" ",1),d(p,{value:y.list.length,max:Pe,type:y.type},null,8,["value","type"])]),default:_(()=>[d(m,{height:"400px"},{default:_(()=>[d(Sn,{list:y.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),C("div",En,[d(v,{link:"",onClick:a},{default:_(()=>[G("查看"+N(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),Mn=D(Vn,[["__scopeId","data-v-50089150"]]),Fe=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Z=(()=>{if(typeof document>"u")return!1;const n=Fe[0],e={};for(const t of Fe)if((t==null?void 0:t[1])in document){for(const[a,o]of t.entries())e[n[a]]=o;return e}return!1})(),Ne={change:Z.fullscreenchange,error:Z.fullscreenerror};let q={request(n=document.documentElement,e){return new Promise((t,l)=>{const a=()=>{q.off("change",a),t()};q.on("change",a);const o=n[Z.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(l)})},exit(){return new Promise((n,e)=>{if(!q.isFullscreen){n();return}const t=()=>{q.off("change",t),n()};q.on("change",t);const l=document[Z.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return q.isFullscreen?q.exit():q.request(n,e)},onchange(n){q.on("change",n)},onerror(n){q.on("error",n)},on(n,e){const t=Ne[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Ne[n];t&&document.removeEventListener(t,e,!1)},raw:Z};Object.defineProperties(q,{isFullscreen:{get:()=>!!document[Z.fullscreenElement]},element:{enumerable:!0,get:()=>document[Z.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Z.fullscreenEnabled]}});Z||(q={isEnabled:!1});const Q=q,An=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),l=M(()=>t.value?e.exitTips:e.openTips),a=M(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const i=document.querySelector(e.element)||void 0;Q.isEnabled?Q.toggle(i):fe.warning("您的浏览器无法工作")},s=()=>{t.value=Q.isFullscreen};de(i=>{Q.on("change",s),i(()=>{Q.isEnabled&&Q.off("change",s)})});const r=P(!1),c=M(()=>r.value?"内容区复原":"内容区放大"),p=M(()=>r.value?"fullscreen-exit":"fullscreen"),m=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(i,w)=>{const v=g("SvgIcon"),h=g("el-tooltip"),y=g("el-dropdown-item"),x=g("el-dropdown-menu"),L=g("el-dropdown");return u(),E("div",null,[i.content?(u(),k(L,{key:1},{dropdown:_(()=>[d(x,null,{default:_(()=>[d(y,{onClick:m},{default:_(()=>[G(N(c.value),1)]),_:1}),d(y,{onClick:o,disabled:t.value},{default:_(()=>[G("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:_(()=>[d(v,{name:p.value},null,8,["name"])]),_:1})):(u(),k(h,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:_(()=>[d(v,{name:a.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}}),Ye=D(An,[["__scopeId","data-v-9e7c36e4"]]),In=["onMouseenter"],Ln={class:"result-item-title"},Rn=R({__name:"SearchResult",props:st({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=qe(n,"modelValue"),l=n,a=Ue(),o=P(0),s=m=>{const i=m.name===t.value;return{background:i?"var(--el-color-primary)":"",color:i?"#fff":""}},r=m=>{l.isPressUpOrDown||(t.value=m.name)},c=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},p=m=>{var h;const i=(h=a==null?void 0:a.proxy)==null?void 0:h.$refs[`resultItemRef${m}`];if(!i)return 0;const v=i[0].offsetTop+128;return v>o.value?v-o.value:0};return Be(()=>{window.addEventListener("resize",c)}),Se(()=>{c()}),We(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:p}),(m,i)=>{const w=g("SvgIcon");return u(),E("div",null,[(u(!0),E(U,null,j(m.list,(v,h)=>{var y,x,L;return u(),E("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Xe(s(v)),onMouseenter:z=>r(v)},[(y=v.meta)!=null&&y.svgIcon?(u(),k(w,{key:0,name:v.meta.svgIcon},null,8,["name"])):(x=v.meta)!=null&&x.elIcon?(u(),k(ie(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),C("span",Ln,N((L=v.meta)==null?void 0:L.title),1),t.value&&t.value===v.name?(u(),k(w,{key:2,name:"keyboard-enter"})):I("",!0)],44,In)}),128))])}}}),Dn=D(Rn,[["__scopeId","data-v-aeacf5ae"]]),Ve=n=>(ke("data-v-8dce46e8"),n=n(),xe(),n),Pn={class:"search-footer"},Fn={class:"search-footer-item"},Nn=Ve(()=>C("span",null,"确认",-1)),zn={class:"search-footer-item"},Bn=Ve(()=>C("span",null,"切换",-1)),Wn={class:"search-footer-item"},On=Ve(()=>C("span",null,"关闭",-1)),Hn={class:"search-footer-total"},qn=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=se();return(l,a)=>{const o=g("SvgIcon");return u(),E("div",Pn,[f(t)?I("",!0):(u(),E(U,{key:0},[C("span",Fn,[d(o,{name:"keyboard-enter"}),Nn]),C("span",zn,[d(o,{name:"keyboard-up"}),d(o,{name:"keyboard-down"}),Bn]),C("span",Wn,[d(o,{name:"keyboard-esc"}),On])],64)),C("span",Hn,"共 "+N(e.total)+" 项",1)])}}}),Un=D(qn,[["__scopeId","data-v-8dce46e8"]]),Xn=C("p",null,"搜索结果",-1),Kn=R({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=qe(n,"modelValue"),t=_e(),{isMobile:l}=se(),a=P(null),o=P(null),s=P(null),r=P(""),c=at([]),p=P(void 0),m=P(!1),i=M(()=>l.value?"80vw":"40vw"),w=M(()=>ht(Ce().routes)),v=gt(()=>{var T;const A=h(w.value);c.value=A.filter(W=>{var S,V;return r.value?(V=(S=W.meta)==null?void 0:S.title)==null?void 0:V.toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim()):!1});const b=(T=c.value)==null?void 0:T.length;p.value=b>0?c.value[0].name:void 0},500),h=(A,b=[])=>(A.forEach(T=>{b.push(T),T.children&&h(T.children,b)}),b),y=()=>{e.value=!1,setTimeout(()=>{r.value="",c.value=[]},200)},x=A=>{var T;if(!s.value)return;const b=s.value.getScrollTop(A);(T=o.value)==null||T.setScrollTop(b)},L=()=>{m.value=!0;const{length:A}=c.value;if(A===0)return;const b=c.value.findIndex(T=>T.name===p.value);if(b===0){const T=c.value[A-1].name;p.value===T&&A>1?(p.value=c.value[A-2].name,x(A-2)):(p.value=T,x(A-1))}else p.value=c.value[b-1].name,x(b-1)},z=()=>{m.value=!0;const{length:A}=c.value;if(A===0)return;const b=c.value.map(T=>T.name).lastIndexOf(p.value);if(b===A-1){const T=c.value[0].name;p.value===T&&A>1?(p.value=c.value[1].name,x(1)):(p.value=T,x(0))}else p.value=c.value[b+1].name,x(b+1)},B=()=>{var W;const{length:A}=c.value;if(A===0)return;const b=p.value,T=(W=c.value.find(S=>S.name===b))==null?void 0:W.path;if(T&&pe(T)){window.open(T,"_blank","noopener, noreferrer");return}if(!b){fe.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:b})}catch{fe.error("该菜单有必填的动态参数,无法通过搜索进入");return}y()},O=()=>{m.value=!1};return(A,b)=>{const T=g("SvgIcon"),W=g("el-input"),S=g("el-empty"),V=g("el-dialog");return u(),k(V,{modelValue:e.value,"onUpdate:modelValue":b[2]||(b[2]=F=>e.value=F),onOpened:b[3]||(b[3]=F=>{var $;return($=a.value)==null?void 0:$.focus()}),onClosed:b[4]||(b[4]=F=>{var $;return($=a.value)==null?void 0:$.blur()}),onKeydown:[le(L,["up"]),le(z,["down"]),le(B,["enter"])],onKeyup:le(O,["up","down"]),"before-close":y,width:i.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[d(Un,{total:c.value.length},null,8,["total"])]),default:_(()=>[d(W,{ref_key:"inputRef",ref:a,modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=F=>r.value=F),onInput:f(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[d(T,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(u(),k(S,{key:0,description:"暂无搜索结果","image-size":100})):(u(),E(U,{key:1},[Xn,d(f(Je),{ref_key:"scrollbarRef",ref:o,"max-height":"40vh",always:""},{default:_(()=>[d(Dn,{ref_key:"searchResultRef",ref:s,modelValue:p.value,"onUpdate:modelValue":b[1]||(b[1]=F=>p.value=F),list:c.value,isPressUpOrDown:m.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),Gn=R({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(l,a)=>{const o=g("SvgIcon"),s=g("el-tooltip");return u(),E("div",null,[d(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[d(o,{name:"search",onClick:t})]),_:1}),d(Kn,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])])}}}),Jn=D(Gn,[["__scopeId","data-v-dc5accb4"]]),Zn=n=>(ke("data-v-4fbdf0bd"),n=n(),xe(),n),jn={class:"navigation-bar"},Yn={class:"right-menu"},Qn={class:"right-menu-avatar"},eo={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},to={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},no=Zn(()=>C("span",{style:{display:"block"}},"退出登录",-1)),oo=R({__name:"index",setup(n){const{isMobile:e}=se(),{isTop:t}=ae(),l=_e(),a=oe(),o=dt(),s=J(),{showNotify:r,showThemeSwitch:c,showScreenfull:p,showSearchMenu:m}=ne(s),i=()=>{a.toggleSidebar(!1)},w=()=>{o.logout(),l.push("/login")};return(v,h)=>{const y=g("el-avatar"),x=g("el-dropdown-item"),L=g("el-dropdown-menu"),z=g("el-dropdown");return u(),E("div",jn,[!f(t)||f(e)?(u(),k(Ot,{key:0,"is-active":f(a).sidebar.opened,class:"hamburger",onToggleClick:i},null,8,["is-active"])):I("",!0),!f(t)||f(e)?(u(),k(Yt,{key:1,class:"breadcrumb"})):I("",!0),f(t)&&!f(e)?(u(),k($e,{key:2,class:"sidebar"})):I("",!0),C("div",Yn,[f(m)?(u(),k(Jn,{key:0,class:"right-menu-item"})):I("",!0),f(p)?(u(),k(Ye,{key:1,class:"right-menu-item"})):I("",!0),f(c)?(u(),k(Ct,{key:2,class:"right-menu-item"})):I("",!0),f(r)?(u(),k(Mn,{key:3,class:"right-menu-item"})):I("",!0),d(z,{class:"right-menu-item"},{dropdown:_(()=>[d(L,null,{default:_(()=>[C("a",eo,[d(x,null,{default:_(()=>[G("GitHub")]),_:1})]),C("a",to,[d(x,null,{default:_(()=>[G("Gitee")]),_:1})]),d(x,{divided:"",onClick:w},{default:_(()=>[no]),_:1})]),_:1})]),default:_(()=>[C("div",Qn,[d(y,{icon:f(bt),size:30},null,8,["icon"]),C("span",null,N(f(o).username),1)])]),_:1})])])}}}),Me=D(oo,[["__scopeId","data-v-4fbdf0bd"]]),so={class:"select-layout-mode"},ao=R({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:l,setLayoutMode:a}=ae();return(o,s)=>{const r=g("el-aside"),c=g("el-header"),p=g("el-main"),m=g("el-container"),i=g("el-tooltip");return u(),E("div",so,[d(i,{content:"左侧模式"},{default:_(()=>[d(m,{class:H(["layout-mode left",{active:f(e)}]),onClick:s[0]||(s[0]=w=>f(a)(f(ee).Left))},{default:_(()=>[d(r),d(m,null,{default:_(()=>[d(c),d(p)]),_:1})]),_:1},8,["class"])]),_:1}),d(i,{content:"顶部模式"},{default:_(()=>[d(m,{class:H(["layout-mode top",{active:f(t)}]),onClick:s[1]||(s[1]=w=>f(a)(f(ee).Top))},{default:_(()=>[d(c),d(p)]),_:1},8,["class"])]),_:1}),d(i,{content:"混合模式"},{default:_(()=>[d(m,{class:H(["layout-mode left-top",{active:f(l)}]),onClick:s[2]||(s[2]=w=>f(a)(f(ee).LeftTop))},{default:_(()=>[d(c),d(m,null,{default:_(()=>[d(r),d(p)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),lo=D(ao,[["__scopeId","data-v-91891c4b"]]),Qe=n=>(ke("data-v-f5dfaf42"),n=n(),xe(),n),ro={class:"setting-container"},co=Qe(()=>C("h4",null,"布局配置",-1)),io=Qe(()=>C("h4",null,"功能配置",-1)),uo={class:"setting-name"},fo=R({__name:"index",setup(n){const{isLeft:e}=ae(),t=J(),{showTagsView:l,showLogo:a,fixedHeader:o,showFooter:s,showNotify:r,showThemeSwitch:c,showScreenfull:p,showSearchMenu:m,cacheTagsView:i,showWatermark:w,showGreyMode:v,showColorWeakness:h}=ne(t),y={显示标签栏:l,"显示 Logo":a,"固定 Header":o,"显示页脚 Footer":s,显示消息通知:r,显示切换主题按钮:c,显示全屏按钮:p,显示搜索按钮:m,是否缓存标签栏:i,开启系统水印:w,显示灰色模式:v,显示色弱模式:h};return de(()=>{e.value&&(o.value=!0)}),(x,L)=>{const z=g("el-divider"),B=g("el-switch"),O=g("el-button");return u(),E("div",ro,[co,d(lo),d(z),io,(u(),E(U,null,j(y,(A,b,T)=>C("div",{class:"setting-item",key:T},[C("span",uo,N(b),1),d(B,{modelValue:A.value,"onUpdate:modelValue":W=>A.value=W,disabled:!f(e)&&b==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(O,{type:"danger",icon:f(yt),onClick:f(pn)},{default:_(()=>[G("重 置")]),_:1},8,["icon","onClick"])])}}}),po=D(fo,[["__scopeId","data-v-f5dfaf42"]]),mo={class:"scroll-container"},_o=200,vo=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=me(),l=J(),{listenerRouteChange:a}=ge(),o=P(),s=P();let r=0;const c=({scrollLeft:v})=>{r=v},p=({deltaY:v})=>{/^-/.test(v.toString())?i("left"):i("right")},m=()=>{const v=s.value.clientWidth,h=o.value.wrapRef.clientWidth,y=v-h-r;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:y}},i=(v,h=_o)=>{let y=0;const{scrollbarContentRefWidth:x,scrollbarRefWidth:L,lastDistance:z}=m();L>x||(v==="left"?y=Math.max(0,r-h):y=Math.min(r+h,r+z),o.value.setScrollLeft(y))},w=()=>{const v=e.tagRefs;for(let h=0;hB){const O=L-B;i("right",O);return}}};return a(()=>{lt(w)}),(v,h)=>{const y=g("el-icon");return u(),E("div",mo,[d(y,{class:"arrow left",onClick:h[0]||(h[0]=x=>i("left"))},{default:_(()=>[d(f(wt))]),_:1}),d(f(Je),{ref_key:"scrollbarRef",ref:o,onWheelPassive:p,onScroll:c},{default:_(()=>[C("div",{ref_key:"scrollbarContentRef",ref:s,class:"scrollbar-content"},[ue(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(y,{class:"arrow right",onClick:h[1]||(h[1]=x=>i("right"))},{default:_(()=>[d(f(St))]),_:1}),f(l).showScreenfull?(u(),k(Ye,{key:0,element:".app-main",content:!0,class:"screenfull"})):I("",!0)])}}}),ho=D(vo,[["__scopeId","data-v-519b3baa"]]),go={class:"tags-view-container"},bo=R({__name:"index",setup(n){const e=Ue(),t=_e(),l=me(),a=Ge(),o=Ce(),{listenerRouteChange:s}=ge(),r=P([]),c=P(!1),p=P(0),m=P(0),i=P({});let w=[];const v=S=>S.path===l.path,h=S=>{var V;return(V=S.meta)==null?void 0:V.affix},y=(S,V="/")=>{const F=[];return S.forEach($=>{if(h($)){const X=je.resolve(V,$.path);F.push({fullPath:X,path:X,name:$.name,meta:{...$.meta}})}if($.children){const X=y($.children,$.path);F.push(...X)}}),F},x=()=>{w=y(o.routes);for(const S of w)S.name&&a.addVisitedView(S)},L=S=>{S.name&&(a.addVisitedView(S),a.addCachedView(S))},z=S=>{a.delCachedView(S),t.replace({path:"/redirect"+S.path,query:S.query})},B=S=>{a.delVisitedView(S),a.delCachedView(S),v(S)&&b(a.visitedViews,S)},O=()=>{const S=i.value.fullPath;S!==l.path&&S!==void 0&&t.push(S),a.delOthersVisitedViews(i.value),a.delOthersCachedViews(i.value)},A=S=>{a.delAllVisitedViews(),a.delAllCachedViews(),!w.some(V=>V.path===l.path)&&b(a.visitedViews,S)},b=(S,V)=>{const F=S.slice(-1)[0],$=F==null?void 0:F.fullPath;$!==void 0?t.push($):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},T=(S,V)=>{const $=e.proxy.$el.getBoundingClientRect().left,ye=e.proxy.$el.offsetWidth-105,Ie=V.clientX-$+15;m.value=Ie>ye?ye:Ie,p.value=V.clientY,c.value=!0,i.value=S},W=()=>{c.value=!1};return ze(c,S=>{S?document.body.addEventListener("click",W):document.body.removeEventListener("click",W)}),Se(()=>{x(),s(async S=>{L(S)},!0)}),(S,V)=>{const F=g("el-icon");return u(),E("div",go,[d(ho,{class:"tags-view-wrapper","tag-refs":r.value},{default:_(()=>[(u(!0),E(U,null,j(f(a).visitedViews,$=>(u(),k(f(rt),{ref_for:!0,ref_key:"tagRefs",ref:r,key:$.path,class:H([{active:v($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:re(X=>!h($)&&B($),["middle"]),onContextmenu:re(X=>T($,X),["prevent"])},{default:_(()=>{var X;return[G(N((X=$.meta)==null?void 0:X.title)+" ",1),h($)?I("",!0):(u(),k(F,{key:0,size:12,onClick:re(ye=>B($),["prevent","stop"])},{default:_(()=>[d(f(kt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ve(C("ul",{class:"contextmenu",style:Xe({left:m.value+"px",top:p.value+"px"})},[C("li",{onClick:V[0]||(V[0]=$=>z(i.value))},"刷新"),h(i.value)?I("",!0):(u(),E("li",{key:0,onClick:V[1]||(V[1]=$=>B(i.value))},"关闭")),C("li",{onClick:O},"关闭其它"),C("li",{onClick:V[2]||(V[2]=$=>A(i.value))},"关闭所有")],4),[[he,c.value]])])}}}),Ae=D(bo,[["__scopeId","data-v-3bc82890"]]),yo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){He(a=>({eee8c778:t}));const t=n.buttonTop+"px",l=P(!1);return(a,o)=>{const s=g("el-icon"),r=g("el-drawer");return u(),E(U,null,[C("div",{class:"handle-button",onClick:o[0]||(o[0]=c=>l.value=!0)},[d(s,{size:24},{default:_(()=>[d(f(xt))]),_:1})]),d(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=c=>l.value=c),size:"300px","with-header":!1},{default:_(()=>[ue(a.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),wo=D(yo,[["__scopeId","data-v-ec8bae57"]]),So=R({__name:"LeftMode",setup(n){const{isMobile:e}=se(),t=oe(),l=J(),{showTagsView:a,fixedHeader:o}=ne(l),s=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),r=()=>{t.closeSidebar(!1)};return(c,p)=>(u(),E("div",{class:H([s.value,"app-wrapper"])},[s.value.mobile&&s.value.openSidebar?(u(),E("div",{key:0,class:"drawer-bg",onClick:r})):I("",!0),d(f($e),{class:"sidebar-container"}),C("div",{class:H([{hasTagsView:f(a)},"main-container"])},[C("div",{class:H([{"fixed-header":f(o)},"layout-header"])},[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(a)]])],2),d(f(Te),{class:"app-main"})],2)],2))}}),ko=D(So,[["__scopeId","data-v-0f6725ea"]]),xo={class:"app-wrapper"},Co={class:"fixed-header layout-header"},To={class:"content"},Eo=R({__name:"TopMode",setup(n){const e=J(),{showTagsView:t,showLogo:l}=ne(e);return(a,o)=>(u(),E("div",xo,[C("div",Co,[C("div",To,[f(l)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),d(f(Me),{class:"navigation-bar"})]),ve(d(f(Ae),null,null,512),[[he,f(t)]])]),C("div",{class:H([{hasTagsView:f(t)},"main-container"])},[d(f(Te),{class:"app-main"})],2)]))}}),$o=D(Eo,[["__scopeId","data-v-2c80335d"]]),Vo={class:"fixed-header layout-header"},Mo={class:"content"},Ao=R({__name:"LeftTopMode",setup(n){const e=oe(),t=J(),{showTagsView:l,showLogo:a}=ne(t),o=M(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(u(),E("div",{class:H([o.value,"app-wrapper"])},[C("div",Vo,[f(a)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),C("div",Mo,[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(l)]])])]),C("div",{class:H([{hasTagsView:f(l)},"main-container"])},[d(f($e),{class:"sidebar-container"}),d(f(Te),{class:"app-main"})],2)],2))}}),Io=D(Ao,[["__scopeId","data-v-24f2539e"]]),we="--v3-tagsview-height",Lo=R({__name:"index",setup(n){$t();const{setWatermark:e,clearWatermark:t}=ft(),{isMobile:l}=se(),{isLeft:a,isTop:o,isLeftTop:s}=ae(),r=J(),{showSettings:c,showTagsView:p,showWatermark:m,showGreyMode:i,showColorWeakness:w}=ne(r),v=M(()=>({showGreyMode:i.value,showColorWeakness:w.value})),h=ce(we);return de(()=>{p.value?De(we,h):De(we,"0px")}),de(()=>{m.value?e("V3 Admin Vite"):t()}),(y,x)=>(u(),E("div",{class:H(v.value)},[f(a)||f(l)?(u(),k(ko,{key:0})):f(o)?(u(),k($o,{key:1})):f(s)?(u(),k(Io,{key:2})):I("",!0),f(c)?(u(),k(f(wo),{key:3},{default:_(()=>[d(f(po))]),_:1})):I("",!0)],2))}}),Bo=D(Lo,[["__scopeId","data-v-f8f963f5"]]);export{Bo as default}; +import{aA as et,Z as tt,r as P,b as ze,E as Be,d as Se,z as We,e as M,l as R,m as u,p as E,T as N,u as f,ag as g,q as C,U as d,O as _,W as Oe,M as k,aB as nt,Q as ie,R as I,aC as me,aD as _e,F as U,a7 as j,a2 as re,H as ue,a9 as ot,S as G,I as H,aE as He,w as de,aF as st,aG as qe,c as Ue,J as Xe,aH as ke,aI as xe,s as at,a8 as le,aJ as ne,n as lt,aK as rt,P as ve,V as he}from"./vue-edbHIJ2J.js";import{g as ct,S as Ke,D as Y,s as Le,a as it,u as ge,b as J,L as ee,_ as D,c as Ge,r as ut,d as Ce,e as dt}from"./index-HHvEY1I5.js";import{u as ft}from"./useWatermark-cvdbE1cJ.js";import{h as pt,j as mt,g as _t,k as vt,b as fe,l as ht,n as gt,o as Je,u as bt,r as yt,p as wt,q as St,s as kt,t as xt}from"./element-6bs1qbFv.js";import{_ as Ct}from"./index.vue_vue_type_script_setup_true_lang-49QmwLLS.js";import"./vxe-gaPTatyF.js";function Tt(n){n?Le(it):Le(Ke)}const oe=et("app",()=>{const n=tt({opened:ct()!==Ke,withoutAnimation:!1}),e=P(Y.Desktop);return ze(()=>n.opened,o=>Tt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),Et=992,$t=()=>{const n=oe(),{listenerRouteChange:e}=ge(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const a=t();n.toggleDevice(a?Y.Mobile:Y.Desktop),a&&n.closeSidebar(!0)}};e(()=>{n.device===Y.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Be(()=>{window.addEventListener("resize",l)}),Se(()=>{t()&&(n.toggleDevice(Y.Mobile),n.closeSidebar(!0))}),We(()=>{window.removeEventListener("resize",l)})},Ze=oe(),Vt=M(()=>Ze.device===Y.Mobile),Mt=M(()=>Ze.device===Y.Desktop);function se(){return{isMobile:Vt,isDesktop:Mt}}const be=J(),At=M(()=>be.layoutMode===ee.Left),It=M(()=>be.layoutMode===ee.Top),Lt=M(()=>be.layoutMode===ee.LeftTop),Rt=n=>{be.layoutMode=n};function ae(){return{isLeft:At,isTop:It,isLeftTop:Lt,setLayoutMode:Rt}}const Dt={class:"layout-footer"},Pt=R({__name:"index",setup(n){const e="V3 Admin Vite";return(t,l)=>(u(),E("footer",Dt,"MIT © 2021-PRESENT "+N(f(e)),1))}}),Ft=D(Pt,[["__scopeId","data-v-034a5242"]]),Nt={class:"app-main"},zt={class:"app-scrollbar"},Bt=R({__name:"AppMain",setup(n){const e=Ge(),t=J();return(l,a)=>{const o=g("router-view"),s=g("el-backtop");return u(),E("section",Nt,[C("div",zt,[d(o,null,{default:_(({Component:r,route:c})=>[d(Oe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(u(),k(nt,{include:f(e).cachedViews},[(u(),k(ie(r),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),f(t).showFooter?(u(),k(Ft,{key:0})):I("",!0)]),d(s),d(s,{target:".app-scrollbar"})])}}}),Te=D(Bt,[["__scopeId","data-v-d87ee2cd"]]),Wt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=e,a=()=>{l("toggleClick")};return(o,s)=>{const r=g("el-icon");return u(),E("div",{onClick:a},[d(r,{size:20,class:"icon"},{default:_(()=>[t.isActive?(u(),k(f(pt),{key:0})):(u(),k(f(mt),{key:1}))]),_:1})])}}}),Ot=D(Wt,[["__scopeId","data-v-252d9bf8"]]);function Ht(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){a+=n[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:a}),t=o;continue}if(l==="("){var r=1,c="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o{a.value=e.matched.filter(c=>{var p,m;return((p=c.meta)==null?void 0:p.title)&&((m=c.meta)==null?void 0:m.breadcrumb)!==!1})},s=c=>Ut(c)(e.params),r=c=>{const{redirect:p,path:m}=c;if(p){t.push(p);return}t.push(s(m))};return l(c=>{c.path.startsWith("/redirect/")||o()},!0),(c,p)=>{const m=g("el-breadcrumb-item"),i=g("el-breadcrumb");return u(),k(i,{class:"app-breadcrumb"},{default:_(()=>[(u(!0),E(U,null,j(a.value,(w,v)=>(u(),k(m,{key:w.path},{default:_(()=>[w.redirect==="noRedirect"||v===a.value.length-1?(u(),E("span",Jt,N(w.meta.title),1)):(u(),E("a",{key:1,onClick:re(h=>r(w),["prevent"])},N(w.meta.title),9,Zt))]),_:2},1024))),128))]),_:1})}}}),Yt=D(jt,[["__scopeId","data-v-2eef2d12"]]),pe=n=>/^(https?:|mailto:|tel:)/.test(n),Qt=["href"],en=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const a=g("router-link");return f(pe)(e.to)?(u(),E("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ue(t.$slots,"default")],8,Qt)):(u(),k(a,{key:1,to:e.to},{default:_(()=>[ue(t.$slots,"default")]),_:3},8,["to"]))}}});function K(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Re(n,e){for(var t="",l=0,a=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",l=0):(t=t.slice(0,c),l=t.length-1-t.lastIndexOf("/")),a=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,a=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(a+1,r):t=n.slice(a+1,r),l=r-a-1;a=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function tn(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var te={resolve:function(){for(var e="",t=!1,l,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(l===void 0&&(l=process.cwd()),o=l),K(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Re(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(K(e),e.length===0)return".";var t=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;return e=Re(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return K(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=l:e+="/"+l)}return e===void 0?".":te.normalize(e)},relative:function(e,t){if(K(e),K(t),e===t||(e=te.resolve(e),t=te.resolve(t),e===t))return"";for(var l=1;lp){if(t.charCodeAt(s+i)===47)return t.slice(s+i+1);if(i===0)return t.slice(s+i)}else o>p&&(e.charCodeAt(l+i)===47?m=i:i===0&&(m=0));break}var w=e.charCodeAt(l+i),v=t.charCodeAt(s+i);if(w!==v)break;w===47&&(m=i)}var h="";for(i=l+m+1;i<=a;++i)(i===a||e.charCodeAt(i)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(s+m):(s+=m,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(K(e),e.length===0)return".";for(var t=e.charCodeAt(0),l=t===47,a=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){a=s;break}}else o=!1;return a===-1?l?"/":".":l&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');K(e);var l=0,a=-1,o=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,c=-1;for(s=e.length-1;s>=0;--s){var p=e.charCodeAt(s);if(p===47){if(!o){l=s+1;break}}else c===-1&&(o=!1,c=s+1),r>=0&&(p===t.charCodeAt(r)?--r===-1&&(a=s):(r=-1,a=c))}return l===a?a=c:a===-1&&(a=e.length),e.slice(l,a)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){l=s+1;break}}else a===-1&&(o=!1,a=s+1);return a===-1?"":e.slice(l,a)}},extname:function(e){K(e);for(var t=-1,l=0,a=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!o){l=r+1;break}continue}a===-1&&(o=!1,a=r+1),c===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||a===-1||s===0||s===1&&t===a-1&&t===l+1?"":e.slice(t,a)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return tn("/",e)},parse:function(e){K(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),a=l===47,o;a?(t.root="/",o=1):o=0;for(var s=-1,r=0,c=-1,p=!0,m=e.length-1,i=0;m>=o;--m){if(l=e.charCodeAt(m),l===47){if(!p){r=m+1;break}continue}c===-1&&(p=!1,c=m+1),l===46?s===-1?s=m:i!==1&&(i=1):s!==-1&&(i=-1)}return s===-1||c===-1||i===0||i===1&&s===c-1&&s===r+1?c!==-1&&(r===0&&a?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(r,c)):(r===0&&a?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(r,s),t.base=e.slice(r,c)),t.ext=e.slice(s,c)),r>0?t.dir=e.slice(0,r-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};te.posix=te;var nn=te;const je=_t(nn),on={key:2},sn=R({__name:"SidebarItem",props:{item:{},isCollapse:{type:Boolean,default:!1},isTop:{type:Boolean,default:!1},isFirstLevel:{type:Boolean,default:!0},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(c=>{var p;return!((p=c.meta)!=null&&p.hidden)}))??[]}),a=M(()=>l.value.length),o=M(()=>{const r=a.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case pe(r):return r;case pe(e.basePath):return e.basePath;default:return je.resolve(e.basePath,r)}};return(r,c)=>{const p=g("SvgIcon"),m=g("el-menu-item"),i=g("SidebarItem",!0),w=g("el-sub-menu");return u(),E("div",{class:H({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(u(),E(U,{key:0},[o.value.meta?(u(),k(en,{key:0,to:s(o.value.path)},{default:_(()=>[d(m,{index:s(o.value.path)},ot({default:_(()=>[o.value.meta.svgIcon?(u(),k(p,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(u(),k(ie(o.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:_(()=>[G(N(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(u(),k(w,{key:1,index:s(e.item.path),teleported:""},{title:_(()=>{var v,h,y;return[(v=e.item.meta)!=null&&v.svgIcon?(u(),k(p,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(u(),k(ie(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(y=e.item.meta)!=null&&y.title?(u(),E("span",on,N(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(u(!0),E(U,{key:0},j(l.value,v=>(u(),k(i,{key:v.path,item:v,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":s(v.path)},null,8,["item","is-collapse","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))],2)}}}),an=D(sn,[["__scopeId","data-v-6ae03ba2"]]),ln="/v3-admin-vite/static/logo-WN1ETR0H.png",rn="/v3-admin-vite/static/logo-text-1-h7hJu_cc.png",cn="/v3-admin-vite/static/logo-text-2-lXsH_ESZ.png",un=["src"],dn=["src"],fn=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:l}=ae();return(a,o)=>{const s=g("router-link");return u(),E("div",{class:H(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":f(l)}])},[d(Oe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(u(),k(s,{key:"collapse",to:"/"},{default:_(()=>[C("img",{src:f(ln),class:"layout-logo"},null,8,un)]),_:1})):(u(),k(s,{key:"expand",to:"/"},{default:_(()=>[C("img",{src:f(t)?f(rn):f(cn),class:"layout-logo-text"},null,8,dn)]),_:1}))]),_:1})],2)}}}),Ee=D(fn,[["__scopeId","data-v-af87e7f4"]]),ce=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},De=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},pn=()=>{ut(),location.reload()},mn=R({__name:"index",setup(n){He(b=>({"7b90a116":O.value,"51f4669f":A.value,"0006b177":z.value,ec6d0d42:B.value,"1c74451c":L.value}));const e=ce("--v3-sidebar-menu-bg-color"),t=ce("--v3-sidebar-menu-text-color"),l=ce("--v3-sidebar-menu-active-text-color"),{isMobile:a}=se(),{isLeft:o,isTop:s}=ae(),r=me(),c=oe(),p=Ce(),m=J(),i=M(()=>{const{meta:{activeMenu:b},path:T}=r;return b||T}),w=M(()=>p.routes.filter(b=>{var T;return!((T=b.meta)!=null&&T.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>o.value&&m.showLogo),y=M(()=>o.value?e:void 0),x=M(()=>o.value?t:void 0),L=M(()=>o.value?l:void 0),z=M(()=>s.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=M(()=>s.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),O=M(()=>s.value?"0px":"2px"),A=M(()=>s.value?"none":"block");return(b,T)=>{const W=g("el-menu"),S=g("el-scrollbar");return u(),E("div",{class:H({"has-logo":h.value})},[h.value?(u(),k(Ee,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),d(S,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[d(W,{"default-active":i.value,collapse:v.value&&!f(s),"background-color":y.value,"text-color":x.value,"active-text-color":L.value,"unique-opened":!0,"collapse-transition":!1,mode:f(s)&&!f(a)?"horizontal":"vertical"},{default:_(()=>[(u(!0),E(U,null,j(w.value,V=>(u(),k(an,{key:V.path,item:V,"base-path":V.path,"is-collapse":v.value,"is-top":f(s)},null,8,["item","base-path","is-collapse","is-top"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),$e=D(mn,[["__scopeId","data-v-c09e2cfd"]]),_n={class:"card-header"},vn={class:"card-title"},hn={class:"card-time"},gn={key:0,class:"card-avatar"},bn=["src"],yn={class:"card-body"},wn=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const a=g("el-empty"),o=g("el-tag"),s=g("el-card");return e.list.length===0?(u(),k(a,{key:0})):(u(!0),E(U,{key:1},j(e.list,(r,c)=>(u(),k(s,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[C("div",_n,[C("div",null,[C("span",null,[C("span",vn,N(r.title),1),r.extra?(u(),k(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:_(()=>[G(N(r.extra),1)]),_:2},1032,["type"])):I("",!0)]),C("div",hn,N(r.datetime),1)]),r.avatar?(u(),E("div",gn,[C("img",{src:r.avatar,width:"34"},null,8,bn)])):I("",!0)])]),default:_(()=>[C("div",yn,N(r.description??"No Data"),1)]),_:2},1024))),128))}}}),Sn=D(wn,[["__scopeId","data-v-137655f9"]]),kn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"一年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"两年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],xn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],Cn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Tn={class:"notify"},En={class:"notify-history"},Pe=99,$n=350,Vn=R({__name:"index",setup(n){const e=M(()=>l.value.reduce((o,s)=>o+s.list.length,0)),t=P("通知"),l=P([{name:"通知",type:"primary",list:kn},{name:"消息",type:"danger",list:xn},{name:"待办",type:"warning",list:Cn}]),a=()=>{fe.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=g("el-icon"),c=g("el-tooltip"),p=g("el-badge"),m=g("el-scrollbar"),i=g("el-tab-pane"),w=g("el-tabs"),v=g("el-button"),h=g("el-popover");return u(),E("div",Tn,[d(h,{placement:"bottom",width:$n,trigger:"click"},{reference:_(()=>[d(p,{value:e.value,max:Pe,hidden:e.value===0},{default:_(()=>[d(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[d(r,{size:20},{default:_(()=>[d(f(vt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[d(w,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=y=>t.value=y),class:"demo-tabs",stretch:""},{default:_(()=>[(u(!0),E(U,null,j(l.value,(y,x)=>(u(),k(i,{name:y.name,key:x},{label:_(()=>[G(N(y.name)+" ",1),d(p,{value:y.list.length,max:Pe,type:y.type},null,8,["value","type"])]),default:_(()=>[d(m,{height:"400px"},{default:_(()=>[d(Sn,{list:y.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),C("div",En,[d(v,{link:"",onClick:a},{default:_(()=>[G("查看"+N(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),Mn=D(Vn,[["__scopeId","data-v-50089150"]]),Fe=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Z=(()=>{if(typeof document>"u")return!1;const n=Fe[0],e={};for(const t of Fe)if((t==null?void 0:t[1])in document){for(const[a,o]of t.entries())e[n[a]]=o;return e}return!1})(),Ne={change:Z.fullscreenchange,error:Z.fullscreenerror};let q={request(n=document.documentElement,e){return new Promise((t,l)=>{const a=()=>{q.off("change",a),t()};q.on("change",a);const o=n[Z.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(l)})},exit(){return new Promise((n,e)=>{if(!q.isFullscreen){n();return}const t=()=>{q.off("change",t),n()};q.on("change",t);const l=document[Z.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return q.isFullscreen?q.exit():q.request(n,e)},onchange(n){q.on("change",n)},onerror(n){q.on("error",n)},on(n,e){const t=Ne[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Ne[n];t&&document.removeEventListener(t,e,!1)},raw:Z};Object.defineProperties(q,{isFullscreen:{get:()=>!!document[Z.fullscreenElement]},element:{enumerable:!0,get:()=>document[Z.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Z.fullscreenEnabled]}});Z||(q={isEnabled:!1});const Q=q,An=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),l=M(()=>t.value?e.exitTips:e.openTips),a=M(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const i=document.querySelector(e.element)||void 0;Q.isEnabled?Q.toggle(i):fe.warning("您的浏览器无法工作")},s=()=>{t.value=Q.isFullscreen};de(i=>{Q.on("change",s),i(()=>{Q.isEnabled&&Q.off("change",s)})});const r=P(!1),c=M(()=>r.value?"内容区复原":"内容区放大"),p=M(()=>r.value?"fullscreen-exit":"fullscreen"),m=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(i,w)=>{const v=g("SvgIcon"),h=g("el-tooltip"),y=g("el-dropdown-item"),x=g("el-dropdown-menu"),L=g("el-dropdown");return u(),E("div",null,[i.content?(u(),k(L,{key:1},{dropdown:_(()=>[d(x,null,{default:_(()=>[d(y,{onClick:m},{default:_(()=>[G(N(c.value),1)]),_:1}),d(y,{onClick:o,disabled:t.value},{default:_(()=>[G("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:_(()=>[d(v,{name:p.value},null,8,["name"])]),_:1})):(u(),k(h,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:_(()=>[d(v,{name:a.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}}),Ye=D(An,[["__scopeId","data-v-9e7c36e4"]]),In=["onMouseenter"],Ln={class:"result-item-title"},Rn=R({__name:"SearchResult",props:st({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=qe(n,"modelValue"),l=n,a=Ue(),o=P(0),s=m=>{const i=m.name===t.value;return{background:i?"var(--el-color-primary)":"",color:i?"#fff":""}},r=m=>{l.isPressUpOrDown||(t.value=m.name)},c=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},p=m=>{var h;const i=(h=a==null?void 0:a.proxy)==null?void 0:h.$refs[`resultItemRef${m}`];if(!i)return 0;const v=i[0].offsetTop+128;return v>o.value?v-o.value:0};return Be(()=>{window.addEventListener("resize",c)}),Se(()=>{c()}),We(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:p}),(m,i)=>{const w=g("SvgIcon");return u(),E("div",null,[(u(!0),E(U,null,j(m.list,(v,h)=>{var y,x,L;return u(),E("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Xe(s(v)),onMouseenter:z=>r(v)},[(y=v.meta)!=null&&y.svgIcon?(u(),k(w,{key:0,name:v.meta.svgIcon},null,8,["name"])):(x=v.meta)!=null&&x.elIcon?(u(),k(ie(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),C("span",Ln,N((L=v.meta)==null?void 0:L.title),1),t.value&&t.value===v.name?(u(),k(w,{key:2,name:"keyboard-enter"})):I("",!0)],44,In)}),128))])}}}),Dn=D(Rn,[["__scopeId","data-v-aeacf5ae"]]),Ve=n=>(ke("data-v-8dce46e8"),n=n(),xe(),n),Pn={class:"search-footer"},Fn={class:"search-footer-item"},Nn=Ve(()=>C("span",null,"确认",-1)),zn={class:"search-footer-item"},Bn=Ve(()=>C("span",null,"切换",-1)),Wn={class:"search-footer-item"},On=Ve(()=>C("span",null,"关闭",-1)),Hn={class:"search-footer-total"},qn=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=se();return(l,a)=>{const o=g("SvgIcon");return u(),E("div",Pn,[f(t)?I("",!0):(u(),E(U,{key:0},[C("span",Fn,[d(o,{name:"keyboard-enter"}),Nn]),C("span",zn,[d(o,{name:"keyboard-up"}),d(o,{name:"keyboard-down"}),Bn]),C("span",Wn,[d(o,{name:"keyboard-esc"}),On])],64)),C("span",Hn,"共 "+N(e.total)+" 项",1)])}}}),Un=D(qn,[["__scopeId","data-v-8dce46e8"]]),Xn=C("p",null,"搜索结果",-1),Kn=R({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=qe(n,"modelValue"),t=_e(),{isMobile:l}=se(),a=P(null),o=P(null),s=P(null),r=P(""),c=at([]),p=P(void 0),m=P(!1),i=M(()=>l.value?"80vw":"40vw"),w=M(()=>ht(Ce().routes)),v=gt(()=>{var T;const A=h(w.value);c.value=A.filter(W=>{var S,V;return r.value?(V=(S=W.meta)==null?void 0:S.title)==null?void 0:V.toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim()):!1});const b=(T=c.value)==null?void 0:T.length;p.value=b>0?c.value[0].name:void 0},500),h=(A,b=[])=>(A.forEach(T=>{b.push(T),T.children&&h(T.children,b)}),b),y=()=>{e.value=!1,setTimeout(()=>{r.value="",c.value=[]},200)},x=A=>{var T;if(!s.value)return;const b=s.value.getScrollTop(A);(T=o.value)==null||T.setScrollTop(b)},L=()=>{m.value=!0;const{length:A}=c.value;if(A===0)return;const b=c.value.findIndex(T=>T.name===p.value);if(b===0){const T=c.value[A-1].name;p.value===T&&A>1?(p.value=c.value[A-2].name,x(A-2)):(p.value=T,x(A-1))}else p.value=c.value[b-1].name,x(b-1)},z=()=>{m.value=!0;const{length:A}=c.value;if(A===0)return;const b=c.value.map(T=>T.name).lastIndexOf(p.value);if(b===A-1){const T=c.value[0].name;p.value===T&&A>1?(p.value=c.value[1].name,x(1)):(p.value=T,x(0))}else p.value=c.value[b+1].name,x(b+1)},B=()=>{var W;const{length:A}=c.value;if(A===0)return;const b=p.value,T=(W=c.value.find(S=>S.name===b))==null?void 0:W.path;if(T&&pe(T)){window.open(T,"_blank","noopener, noreferrer");return}if(!b){fe.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:b})}catch{fe.error("该菜单有必填的动态参数,无法通过搜索进入");return}y()},O=()=>{m.value=!1};return(A,b)=>{const T=g("SvgIcon"),W=g("el-input"),S=g("el-empty"),V=g("el-dialog");return u(),k(V,{modelValue:e.value,"onUpdate:modelValue":b[2]||(b[2]=F=>e.value=F),onOpened:b[3]||(b[3]=F=>{var $;return($=a.value)==null?void 0:$.focus()}),onClosed:b[4]||(b[4]=F=>{var $;return($=a.value)==null?void 0:$.blur()}),onKeydown:[le(L,["up"]),le(z,["down"]),le(B,["enter"])],onKeyup:le(O,["up","down"]),"before-close":y,width:i.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[d(Un,{total:c.value.length},null,8,["total"])]),default:_(()=>[d(W,{ref_key:"inputRef",ref:a,modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=F=>r.value=F),onInput:f(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[d(T,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(u(),k(S,{key:0,description:"暂无搜索结果","image-size":100})):(u(),E(U,{key:1},[Xn,d(f(Je),{ref_key:"scrollbarRef",ref:o,"max-height":"40vh",always:""},{default:_(()=>[d(Dn,{ref_key:"searchResultRef",ref:s,modelValue:p.value,"onUpdate:modelValue":b[1]||(b[1]=F=>p.value=F),list:c.value,isPressUpOrDown:m.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),Gn=R({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(l,a)=>{const o=g("SvgIcon"),s=g("el-tooltip");return u(),E("div",null,[d(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[d(o,{name:"search",onClick:t})]),_:1}),d(Kn,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])])}}}),Jn=D(Gn,[["__scopeId","data-v-dc5accb4"]]),Zn=n=>(ke("data-v-4fbdf0bd"),n=n(),xe(),n),jn={class:"navigation-bar"},Yn={class:"right-menu"},Qn={class:"right-menu-avatar"},eo={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},to={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},no=Zn(()=>C("span",{style:{display:"block"}},"退出登录",-1)),oo=R({__name:"index",setup(n){const{isMobile:e}=se(),{isTop:t}=ae(),l=_e(),a=oe(),o=dt(),s=J(),{showNotify:r,showThemeSwitch:c,showScreenfull:p,showSearchMenu:m}=ne(s),i=()=>{a.toggleSidebar(!1)},w=()=>{o.logout(),l.push("/login")};return(v,h)=>{const y=g("el-avatar"),x=g("el-dropdown-item"),L=g("el-dropdown-menu"),z=g("el-dropdown");return u(),E("div",jn,[!f(t)||f(e)?(u(),k(Ot,{key:0,"is-active":f(a).sidebar.opened,class:"hamburger",onToggleClick:i},null,8,["is-active"])):I("",!0),!f(t)||f(e)?(u(),k(Yt,{key:1,class:"breadcrumb"})):I("",!0),f(t)&&!f(e)?(u(),k($e,{key:2,class:"sidebar"})):I("",!0),C("div",Yn,[f(m)?(u(),k(Jn,{key:0,class:"right-menu-item"})):I("",!0),f(p)?(u(),k(Ye,{key:1,class:"right-menu-item"})):I("",!0),f(c)?(u(),k(Ct,{key:2,class:"right-menu-item"})):I("",!0),f(r)?(u(),k(Mn,{key:3,class:"right-menu-item"})):I("",!0),d(z,{class:"right-menu-item"},{dropdown:_(()=>[d(L,null,{default:_(()=>[C("a",eo,[d(x,null,{default:_(()=>[G("GitHub")]),_:1})]),C("a",to,[d(x,null,{default:_(()=>[G("Gitee")]),_:1})]),d(x,{divided:"",onClick:w},{default:_(()=>[no]),_:1})]),_:1})]),default:_(()=>[C("div",Qn,[d(y,{icon:f(bt),size:30},null,8,["icon"]),C("span",null,N(f(o).username),1)])]),_:1})])])}}}),Me=D(oo,[["__scopeId","data-v-4fbdf0bd"]]),so={class:"select-layout-mode"},ao=R({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:l,setLayoutMode:a}=ae();return(o,s)=>{const r=g("el-aside"),c=g("el-header"),p=g("el-main"),m=g("el-container"),i=g("el-tooltip");return u(),E("div",so,[d(i,{content:"左侧模式"},{default:_(()=>[d(m,{class:H(["layout-mode left",{active:f(e)}]),onClick:s[0]||(s[0]=w=>f(a)(f(ee).Left))},{default:_(()=>[d(r),d(m,null,{default:_(()=>[d(c),d(p)]),_:1})]),_:1},8,["class"])]),_:1}),d(i,{content:"顶部模式"},{default:_(()=>[d(m,{class:H(["layout-mode top",{active:f(t)}]),onClick:s[1]||(s[1]=w=>f(a)(f(ee).Top))},{default:_(()=>[d(c),d(p)]),_:1},8,["class"])]),_:1}),d(i,{content:"混合模式"},{default:_(()=>[d(m,{class:H(["layout-mode left-top",{active:f(l)}]),onClick:s[2]||(s[2]=w=>f(a)(f(ee).LeftTop))},{default:_(()=>[d(c),d(m,null,{default:_(()=>[d(r),d(p)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),lo=D(ao,[["__scopeId","data-v-91891c4b"]]),Qe=n=>(ke("data-v-f5dfaf42"),n=n(),xe(),n),ro={class:"setting-container"},co=Qe(()=>C("h4",null,"布局配置",-1)),io=Qe(()=>C("h4",null,"功能配置",-1)),uo={class:"setting-name"},fo=R({__name:"index",setup(n){const{isLeft:e}=ae(),t=J(),{showTagsView:l,showLogo:a,fixedHeader:o,showFooter:s,showNotify:r,showThemeSwitch:c,showScreenfull:p,showSearchMenu:m,cacheTagsView:i,showWatermark:w,showGreyMode:v,showColorWeakness:h}=ne(t),y={显示标签栏:l,"显示 Logo":a,"固定 Header":o,"显示页脚 Footer":s,显示消息通知:r,显示切换主题按钮:c,显示全屏按钮:p,显示搜索按钮:m,是否缓存标签栏:i,开启系统水印:w,显示灰色模式:v,显示色弱模式:h};return de(()=>{e.value&&(o.value=!0)}),(x,L)=>{const z=g("el-divider"),B=g("el-switch"),O=g("el-button");return u(),E("div",ro,[co,d(lo),d(z),io,(u(),E(U,null,j(y,(A,b,T)=>C("div",{class:"setting-item",key:T},[C("span",uo,N(b),1),d(B,{modelValue:A.value,"onUpdate:modelValue":W=>A.value=W,disabled:!f(e)&&b==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(O,{type:"danger",icon:f(yt),onClick:f(pn)},{default:_(()=>[G("重 置")]),_:1},8,["icon","onClick"])])}}}),po=D(fo,[["__scopeId","data-v-f5dfaf42"]]),mo={class:"scroll-container"},_o=200,vo=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=me(),l=J(),{listenerRouteChange:a}=ge(),o=P(),s=P();let r=0;const c=({scrollLeft:v})=>{r=v},p=({deltaY:v})=>{/^-/.test(v.toString())?i("left"):i("right")},m=()=>{const v=s.value.clientWidth,h=o.value.wrapRef.clientWidth,y=v-h-r;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:y}},i=(v,h=_o)=>{let y=0;const{scrollbarContentRefWidth:x,scrollbarRefWidth:L,lastDistance:z}=m();L>x||(v==="left"?y=Math.max(0,r-h):y=Math.min(r+h,r+z),o.value.setScrollLeft(y))},w=()=>{const v=e.tagRefs;for(let h=0;hB){const O=L-B;i("right",O);return}}};return a(()=>{lt(w)}),(v,h)=>{const y=g("el-icon");return u(),E("div",mo,[d(y,{class:"arrow left",onClick:h[0]||(h[0]=x=>i("left"))},{default:_(()=>[d(f(wt))]),_:1}),d(f(Je),{ref_key:"scrollbarRef",ref:o,onWheelPassive:p,onScroll:c},{default:_(()=>[C("div",{ref_key:"scrollbarContentRef",ref:s,class:"scrollbar-content"},[ue(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(y,{class:"arrow right",onClick:h[1]||(h[1]=x=>i("right"))},{default:_(()=>[d(f(St))]),_:1}),f(l).showScreenfull?(u(),k(Ye,{key:0,element:".app-main",content:!0,class:"screenfull"})):I("",!0)])}}}),ho=D(vo,[["__scopeId","data-v-519b3baa"]]),go={class:"tags-view-container"},bo=R({__name:"index",setup(n){const e=Ue(),t=_e(),l=me(),a=Ge(),o=Ce(),{listenerRouteChange:s}=ge(),r=P([]),c=P(!1),p=P(0),m=P(0),i=P({});let w=[];const v=S=>S.path===l.path,h=S=>{var V;return(V=S.meta)==null?void 0:V.affix},y=(S,V="/")=>{const F=[];return S.forEach($=>{if(h($)){const X=je.resolve(V,$.path);F.push({fullPath:X,path:X,name:$.name,meta:{...$.meta}})}if($.children){const X=y($.children,$.path);F.push(...X)}}),F},x=()=>{w=y(o.routes);for(const S of w)S.name&&a.addVisitedView(S)},L=S=>{S.name&&(a.addVisitedView(S),a.addCachedView(S))},z=S=>{a.delCachedView(S),t.replace({path:"/redirect"+S.path,query:S.query})},B=S=>{a.delVisitedView(S),a.delCachedView(S),v(S)&&b(a.visitedViews,S)},O=()=>{const S=i.value.fullPath;S!==l.path&&S!==void 0&&t.push(S),a.delOthersVisitedViews(i.value),a.delOthersCachedViews(i.value)},A=S=>{a.delAllVisitedViews(),a.delAllCachedViews(),!w.some(V=>V.path===l.path)&&b(a.visitedViews,S)},b=(S,V)=>{const F=S.slice(-1)[0],$=F==null?void 0:F.fullPath;$!==void 0?t.push($):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},T=(S,V)=>{const $=e.proxy.$el.getBoundingClientRect().left,ye=e.proxy.$el.offsetWidth-105,Ie=V.clientX-$+15;m.value=Ie>ye?ye:Ie,p.value=V.clientY,c.value=!0,i.value=S},W=()=>{c.value=!1};return ze(c,S=>{S?document.body.addEventListener("click",W):document.body.removeEventListener("click",W)}),Se(()=>{x(),s(async S=>{L(S)},!0)}),(S,V)=>{const F=g("el-icon");return u(),E("div",go,[d(ho,{class:"tags-view-wrapper","tag-refs":r.value},{default:_(()=>[(u(!0),E(U,null,j(f(a).visitedViews,$=>(u(),k(f(rt),{ref_for:!0,ref_key:"tagRefs",ref:r,key:$.path,class:H([{active:v($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:re(X=>!h($)&&B($),["middle"]),onContextmenu:re(X=>T($,X),["prevent"])},{default:_(()=>{var X;return[G(N((X=$.meta)==null?void 0:X.title)+" ",1),h($)?I("",!0):(u(),k(F,{key:0,size:12,onClick:re(ye=>B($),["prevent","stop"])},{default:_(()=>[d(f(kt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ve(C("ul",{class:"contextmenu",style:Xe({left:m.value+"px",top:p.value+"px"})},[C("li",{onClick:V[0]||(V[0]=$=>z(i.value))},"刷新"),h(i.value)?I("",!0):(u(),E("li",{key:0,onClick:V[1]||(V[1]=$=>B(i.value))},"关闭")),C("li",{onClick:O},"关闭其它"),C("li",{onClick:V[2]||(V[2]=$=>A(i.value))},"关闭所有")],4),[[he,c.value]])])}}}),Ae=D(bo,[["__scopeId","data-v-3bc82890"]]),yo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){He(a=>({eee8c778:t}));const t=n.buttonTop+"px",l=P(!1);return(a,o)=>{const s=g("el-icon"),r=g("el-drawer");return u(),E(U,null,[C("div",{class:"handle-button",onClick:o[0]||(o[0]=c=>l.value=!0)},[d(s,{size:24},{default:_(()=>[d(f(xt))]),_:1})]),d(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=c=>l.value=c),size:"300px","with-header":!1},{default:_(()=>[ue(a.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),wo=D(yo,[["__scopeId","data-v-ec8bae57"]]),So=R({__name:"LeftMode",setup(n){const{isMobile:e}=se(),t=oe(),l=J(),{showTagsView:a,fixedHeader:o}=ne(l),s=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),r=()=>{t.closeSidebar(!1)};return(c,p)=>(u(),E("div",{class:H([s.value,"app-wrapper"])},[s.value.mobile&&s.value.openSidebar?(u(),E("div",{key:0,class:"drawer-bg",onClick:r})):I("",!0),d(f($e),{class:"sidebar-container"}),C("div",{class:H([{hasTagsView:f(a)},"main-container"])},[C("div",{class:H([{"fixed-header":f(o)},"layout-header"])},[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(a)]])],2),d(f(Te),{class:"app-main"})],2)],2))}}),ko=D(So,[["__scopeId","data-v-0f6725ea"]]),xo={class:"app-wrapper"},Co={class:"fixed-header layout-header"},To={class:"content"},Eo=R({__name:"TopMode",setup(n){const e=J(),{showTagsView:t,showLogo:l}=ne(e);return(a,o)=>(u(),E("div",xo,[C("div",Co,[C("div",To,[f(l)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),d(f(Me),{class:"navigation-bar"})]),ve(d(f(Ae),null,null,512),[[he,f(t)]])]),C("div",{class:H([{hasTagsView:f(t)},"main-container"])},[d(f(Te),{class:"app-main"})],2)]))}}),$o=D(Eo,[["__scopeId","data-v-2c80335d"]]),Vo={class:"fixed-header layout-header"},Mo={class:"content"},Ao=R({__name:"LeftTopMode",setup(n){const e=oe(),t=J(),{showTagsView:l,showLogo:a}=ne(t),o=M(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(u(),E("div",{class:H([o.value,"app-wrapper"])},[C("div",Vo,[f(a)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),C("div",Mo,[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(l)]])])]),C("div",{class:H([{hasTagsView:f(l)},"main-container"])},[d(f($e),{class:"sidebar-container"}),d(f(Te),{class:"app-main"})],2)],2))}}),Io=D(Ao,[["__scopeId","data-v-24f2539e"]]),we="--v3-tagsview-height",Lo=R({__name:"index",setup(n){$t();const{setWatermark:e,clearWatermark:t}=ft(),{isMobile:l}=se(),{isLeft:a,isTop:o,isLeftTop:s}=ae(),r=J(),{showSettings:c,showTagsView:p,showWatermark:m,showGreyMode:i,showColorWeakness:w}=ne(r),v=M(()=>({showGreyMode:i.value,showColorWeakness:w.value})),h=ce(we);return de(()=>{p.value?De(we,h):De(we,"0px")}),de(()=>{m.value?e("V3 Admin Vite"):t()}),(y,x)=>(u(),E("div",{class:H(v.value)},[f(a)||f(l)?(u(),k(ko,{key:0})):f(o)?(u(),k($o,{key:1})):f(s)?(u(),k(Io,{key:2})):I("",!0),f(c)?(u(),k(f(wo),{key:3},{default:_(()=>[d(f(po))]),_:1})):I("",!0)],2))}}),Bo=D(Lo,[["__scopeId","data-v-f8f963f5"]]);export{Bo as default}; diff --git a/static/index-5f0uyP5t.js b/static/index-RoRFMxCu.js similarity index 97% rename from static/index-5f0uyP5t.js rename to static/index-RoRFMxCu.js index dc243289..c64cb702 100644 --- a/static/index-5f0uyP5t.js +++ b/static/index-RoRFMxCu.js @@ -1 +1 @@ -import{c as Z,u as K,d as Q,g as W}from"./index-1bi1sHWy.js";import{B as X,r as Y,C as ee,D as ae,F as le,G as te,b as A,H as ne}from"./element-6bs1qbFv.js";import{Z as R,l as oe,r as b,b as re,ag as d,ap as se,m,p as ie,P as F,M as _,O as a,U as e,u as r,S as s,q as w,T as ue,R as de}from"./vue-edbHIJ2J.js";import{_ as pe}from"./index-8aC8ZOcR.js";import"./vxe-gaPTatyF.js";const ce={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function me(z={}){const i=R({...ce,...z});return{paginationData:i,handleCurrentChange:y=>{i.currentPage=y},handleSizeChange:y=>{i.pageSize=y}}}const fe={class:"app-container"},_e={class:"toolbar-wrapper"},ge={class:"table-wrapper"},ve={class:"pager-wrapper"},he=oe({name:"ElementPlus",__name:"index",setup(z){const i=b(!1),{paginationData:o,handleCurrentChange:D,handleSizeChange:y}=me(),x={id:void 0,username:"",password:""},g=b(!1),k=b(null),u=b(JSON.parse(JSON.stringify(x))),J={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]},E=()=>{var t;(t=k.value)==null||t.validate((n,v)=>{if(!n)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?Z:K)(u.value).then(()=>{A.success("操作成功"),g.value=!1,C()}).finally(()=>{i.value=!1})})},$=()=>{var t;(t=k.value)==null||t.clearValidate(),u.value=JSON.parse(JSON.stringify(x))},M=t=>{ne.confirm(`正在删除用户:${t.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Q(t.id).then(()=>{A.success("删除成功"),C()})})},q=t=>{g.value=!0,u.value=JSON.parse(JSON.stringify(t))},V=b([]),P=b(null),f=R({username:"",phone:""}),C=()=>{i.value=!0,W({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:t})=>{o.total=t.total,V.value=t.list}).catch(()=>{V.value=[]}).finally(()=>{i.value=!1})},T=()=>{o.currentPage===1?C():o.currentPage=1},j=()=>{var t;(t=P.value)==null||t.resetFields(),T()};return re([()=>o.currentPage,()=>o.pageSize],C,{immediate:!0}),(t,n)=>{const v=d("el-input"),h=d("el-form-item"),p=d("el-button"),N=d("el-form"),O=d("el-card"),U=d("el-tooltip"),c=d("el-table-column"),S=d("el-tag"),G=d("el-table"),H=d("el-pagination"),I=d("el-dialog"),B=se("loading");return m(),ie("div",fe,[F((m(),_(O,{shadow:"never",class:"search-wrapper"},{default:a(()=>[e(N,{ref_key:"searchFormRef",ref:P,inline:!0,model:f},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:f.username,"onUpdate:modelValue":n[0]||(n[0]=l=>f.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,{prop:"phone",label:"手机号"},{default:a(()=>[e(v,{modelValue:f.phone,"onUpdate:modelValue":n[1]||(n[1]=l=>f.phone=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(p,{type:"primary",icon:r(X),onClick:T},{default:a(()=>[s("查询")]),_:1},8,["icon"]),e(p,{icon:r(Y),onClick:j},{default:a(()=>[s("重置")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[B,i.value]]),F((m(),_(O,{shadow:"never"},{default:a(()=>[w("div",_e,[w("div",null,[e(p,{type:"primary",icon:r(ee),onClick:n[2]||(n[2]=l=>g.value=!0)},{default:a(()=>[s("新增用户")]),_:1},8,["icon"]),e(p,{type:"danger",icon:r(ae)},{default:a(()=>[s("批量删除")]),_:1},8,["icon"])]),w("div",null,[e(U,{content:"下载"},{default:a(()=>[e(p,{type:"primary",icon:r(le),circle:""},null,8,["icon"])]),_:1}),e(U,{content:"刷新当前页"},{default:a(()=>[e(p,{type:"primary",icon:r(te),circle:"",onClick:C},null,8,["icon"])]),_:1})])]),w("div",ge,[e(G,{data:V.value},{default:a(()=>[e(c,{type:"selection",width:"50",align:"center"}),e(c,{prop:"username",label:"用户名",align:"center"}),e(c,{prop:"roles",label:"角色",align:"center"},{default:a(l=>[l.row.roles==="admin"?(m(),_(S,{key:0,effect:"plain"},{default:a(()=>[s("admin")]),_:1})):(m(),_(S,{key:1,type:"warning",effect:"plain"},{default:a(()=>[s(ue(l.row.roles),1)]),_:2},1024))]),_:1}),e(c,{prop:"phone",label:"手机号",align:"center"}),e(c,{prop:"email",label:"邮箱",align:"center"}),e(c,{prop:"status",label:"状态",align:"center"},{default:a(l=>[l.row.status?(m(),_(S,{key:0,type:"success",effect:"plain"},{default:a(()=>[s("启用")]),_:1})):(m(),_(S,{key:1,type:"danger",effect:"plain"},{default:a(()=>[s("禁用")]),_:1}))]),_:1}),e(c,{prop:"createTime",label:"创建时间",align:"center"}),e(c,{fixed:"right",label:"操作",width:"150",align:"center"},{default:a(l=>[e(p,{type:"primary",text:"",bg:"",size:"small",onClick:L=>q(l.row)},{default:a(()=>[s("修改")]),_:2},1032,["onClick"]),e(p,{type:"danger",text:"",bg:"",size:"small",onClick:L=>M(l.row)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",ve,[e(H,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(y),onCurrentChange:r(D)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[B,i.value]]),e(I,{modelValue:g.value,"onUpdate:modelValue":n[6]||(n[6]=l=>g.value=l),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:$,width:"30%"},{footer:a(()=>[e(p,{onClick:n[5]||(n[5]=l=>g.value=!1)},{default:a(()=>[s("取消")]),_:1}),e(p,{type:"primary",onClick:E,loading:i.value},{default:a(()=>[s("确认")]),_:1},8,["loading"])]),default:a(()=>[e(N,{ref_key:"formRef",ref:k,model:u.value,rules:J,"label-width":"100px","label-position":"left"},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:u.value.username,"onUpdate:modelValue":n[3]||(n[3]=l=>u.value.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(m(),_(h,{key:0,prop:"password",label:"密码"},{default:a(()=>[e(v,{modelValue:u.value.password,"onUpdate:modelValue":n[4]||(n[4]=l=>u.value.password=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):de("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ke=pe(he,[["__scopeId","data-v-994dbbd1"]]);export{ke as default}; +import{c as Z,u as K,d as Q,g as W}from"./index--PcluvJg.js";import{B as X,r as Y,C as ee,D as ae,F as le,G as te,b as A,H as ne}from"./element-6bs1qbFv.js";import{Z as R,l as oe,r as b,b as re,ag as d,ap as se,m,p as ie,P as F,M as _,O as a,U as e,u as r,S as s,q as w,T as ue,R as de}from"./vue-edbHIJ2J.js";import{_ as pe}from"./index-HHvEY1I5.js";import"./vxe-gaPTatyF.js";const ce={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function me(z={}){const i=R({...ce,...z});return{paginationData:i,handleCurrentChange:y=>{i.currentPage=y},handleSizeChange:y=>{i.pageSize=y}}}const fe={class:"app-container"},_e={class:"toolbar-wrapper"},ge={class:"table-wrapper"},ve={class:"pager-wrapper"},he=oe({name:"ElementPlus",__name:"index",setup(z){const i=b(!1),{paginationData:o,handleCurrentChange:D,handleSizeChange:y}=me(),x={id:void 0,username:"",password:""},g=b(!1),k=b(null),u=b(JSON.parse(JSON.stringify(x))),J={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]},E=()=>{var t;(t=k.value)==null||t.validate((n,v)=>{if(!n)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?Z:K)(u.value).then(()=>{A.success("操作成功"),g.value=!1,C()}).finally(()=>{i.value=!1})})},$=()=>{var t;(t=k.value)==null||t.clearValidate(),u.value=JSON.parse(JSON.stringify(x))},M=t=>{ne.confirm(`正在删除用户:${t.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Q(t.id).then(()=>{A.success("删除成功"),C()})})},q=t=>{g.value=!0,u.value=JSON.parse(JSON.stringify(t))},V=b([]),P=b(null),f=R({username:"",phone:""}),C=()=>{i.value=!0,W({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:t})=>{o.total=t.total,V.value=t.list}).catch(()=>{V.value=[]}).finally(()=>{i.value=!1})},T=()=>{o.currentPage===1?C():o.currentPage=1},j=()=>{var t;(t=P.value)==null||t.resetFields(),T()};return re([()=>o.currentPage,()=>o.pageSize],C,{immediate:!0}),(t,n)=>{const v=d("el-input"),h=d("el-form-item"),p=d("el-button"),N=d("el-form"),O=d("el-card"),U=d("el-tooltip"),c=d("el-table-column"),S=d("el-tag"),G=d("el-table"),H=d("el-pagination"),I=d("el-dialog"),B=se("loading");return m(),ie("div",fe,[F((m(),_(O,{shadow:"never",class:"search-wrapper"},{default:a(()=>[e(N,{ref_key:"searchFormRef",ref:P,inline:!0,model:f},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:f.username,"onUpdate:modelValue":n[0]||(n[0]=l=>f.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,{prop:"phone",label:"手机号"},{default:a(()=>[e(v,{modelValue:f.phone,"onUpdate:modelValue":n[1]||(n[1]=l=>f.phone=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(p,{type:"primary",icon:r(X),onClick:T},{default:a(()=>[s("查询")]),_:1},8,["icon"]),e(p,{icon:r(Y),onClick:j},{default:a(()=>[s("重置")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[B,i.value]]),F((m(),_(O,{shadow:"never"},{default:a(()=>[w("div",_e,[w("div",null,[e(p,{type:"primary",icon:r(ee),onClick:n[2]||(n[2]=l=>g.value=!0)},{default:a(()=>[s("新增用户")]),_:1},8,["icon"]),e(p,{type:"danger",icon:r(ae)},{default:a(()=>[s("批量删除")]),_:1},8,["icon"])]),w("div",null,[e(U,{content:"下载"},{default:a(()=>[e(p,{type:"primary",icon:r(le),circle:""},null,8,["icon"])]),_:1}),e(U,{content:"刷新当前页"},{default:a(()=>[e(p,{type:"primary",icon:r(te),circle:"",onClick:C},null,8,["icon"])]),_:1})])]),w("div",ge,[e(G,{data:V.value},{default:a(()=>[e(c,{type:"selection",width:"50",align:"center"}),e(c,{prop:"username",label:"用户名",align:"center"}),e(c,{prop:"roles",label:"角色",align:"center"},{default:a(l=>[l.row.roles==="admin"?(m(),_(S,{key:0,effect:"plain"},{default:a(()=>[s("admin")]),_:1})):(m(),_(S,{key:1,type:"warning",effect:"plain"},{default:a(()=>[s(ue(l.row.roles),1)]),_:2},1024))]),_:1}),e(c,{prop:"phone",label:"手机号",align:"center"}),e(c,{prop:"email",label:"邮箱",align:"center"}),e(c,{prop:"status",label:"状态",align:"center"},{default:a(l=>[l.row.status?(m(),_(S,{key:0,type:"success",effect:"plain"},{default:a(()=>[s("启用")]),_:1})):(m(),_(S,{key:1,type:"danger",effect:"plain"},{default:a(()=>[s("禁用")]),_:1}))]),_:1}),e(c,{prop:"createTime",label:"创建时间",align:"center"}),e(c,{fixed:"right",label:"操作",width:"150",align:"center"},{default:a(l=>[e(p,{type:"primary",text:"",bg:"",size:"small",onClick:L=>q(l.row)},{default:a(()=>[s("修改")]),_:2},1032,["onClick"]),e(p,{type:"danger",text:"",bg:"",size:"small",onClick:L=>M(l.row)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",ve,[e(H,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(y),onCurrentChange:r(D)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[B,i.value]]),e(I,{modelValue:g.value,"onUpdate:modelValue":n[6]||(n[6]=l=>g.value=l),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:$,width:"30%"},{footer:a(()=>[e(p,{onClick:n[5]||(n[5]=l=>g.value=!1)},{default:a(()=>[s("取消")]),_:1}),e(p,{type:"primary",onClick:E,loading:i.value},{default:a(()=>[s("确认")]),_:1},8,["loading"])]),default:a(()=>[e(N,{ref_key:"formRef",ref:k,model:u.value,rules:J,"label-width":"100px","label-position":"left"},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:u.value.username,"onUpdate:modelValue":n[3]||(n[3]=l=>u.value.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(m(),_(h,{key:0,prop:"password",label:"密码"},{default:a(()=>[e(v,{modelValue:u.value.password,"onUpdate:modelValue":n[4]||(n[4]=l=>u.value.password=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):de("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ke=pe(he,[["__scopeId","data-v-994dbbd1"]]);export{ke as default}; diff --git a/static/index-7LHDGWqJ.js b/static/index-TEp-ORP0.js similarity index 97% rename from static/index-7LHDGWqJ.js rename to static/index-TEp-ORP0.js index c8b8c52a..d0a02727 100644 --- a/static/index-7LHDGWqJ.js +++ b/static/index-TEp-ORP0.js @@ -1 +1 @@ -import{g as D,d as T}from"./index-1bi1sHWy.js";import{U as l,l as P,r as y,Z as b,n as S,ag as v,m as $,p as M,O as p,S as _,K as k}from"./vue-edbHIJ2J.js";import{H as R,b as w}from"./element-6bs1qbFv.js";import"./index-8aC8ZOcR.js";import"./vxe-gaPTatyF.js";const U={default:({row:h,column:s})=>{const i=h[s.field];return[l("span",{class:`el-tag el-tag--${i==="admin"?"":"warning"} el-tag--plain`},[i])]}},E=U,O={default:({row:h,column:s})=>{const i=h[s.field],[c,g]=i?["success","启用"]:["danger","禁用"];return[l("span",{class:`el-tag el-tag--${c} el-tag--plain`},[g])]}},F=O,q={class:"app-container"},H=P({name:"VxeTable",__name:"index",setup(h){const s=y(),i=b({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:F},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,a.clearTable(),new Promise(o=>{let r=0,u=[];const d=n=>{n!=null&&n.data&&(r=n.data.total,u=n.data.list),i.loading=!1,o({total:r,result:u})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),c=y(),g=b({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=x.value)==null||e.clearValidate(),Promise.resolve()}}),x=y(),m=b({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=c.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>a.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),a=b({isUpdate:!0,commitQuery:()=>{var e;return(e=s.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=s.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,r,u,d;e?(a.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(a.isUpdate=!1,g.title="新增用户");const t=(u=(r=(o=m.items)==null?void 0:o[0])==null?void 0:r.itemRender)==null?void 0:u.props;t&&(t.disabled=a.isUpdate),(d=c.value)==null||d.open(),S(()=>{var f,n;!a.isUpdate&&((f=x.value)==null||f.reset()),(n=x.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=x.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var r;m.loading=!1,(r=c.value)==null||r.close(),w.success("操作成功"),!a.isUpdate&&a.afterInsert(),a.commitQuery()};a.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=s.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};R.confirm(t,"提示",o).then(()=>{T(e.id).then(()=>{w.success("删除成功"),a.afterDelete(),a.commitQuery()})})},afterDelete:()=>{var o,r;const e=s.value.getData(),t=(r=(o=s.value)==null?void 0:o.getProxyInfo())==null?void 0:r.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=v("vxe-button"),r=v("el-button"),u=v("vxe-grid"),d=v("vxe-form"),f=v("vxe-modal");return $(),M("div",q,[l(u,k({ref_key:"xGridDom",ref:s},i),{"toolbar-btns":p(()=>[l(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>a.onShowModal())},{default:p(()=>[_("新增用户")]),_:1}),l(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>[_("批量删除")]),_:1})]),"row-operate":p(({row:n})=>[l(r,{link:"",type:"primary",onClick:C=>a.onShowModal(n)},{default:p(()=>[_("修改")]),_:2},1032,["onClick"]),l(r,{link:"",type:"danger",onClick:C=>a.onDelete(n)},{default:p(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1},16),l(f,k({ref_key:"xModalDom",ref:c},g),{default:p(()=>[l(d,k({ref_key:"xFormDom",ref:x},m),null,16)]),_:1},16)])}}});export{H as default}; +import{g as D,d as T}from"./index--PcluvJg.js";import{U as l,l as P,r as y,Z as b,n as S,ag as v,m as $,p as M,O as p,S as _,K as k}from"./vue-edbHIJ2J.js";import{H as R,b as w}from"./element-6bs1qbFv.js";import"./index-HHvEY1I5.js";import"./vxe-gaPTatyF.js";const U={default:({row:h,column:s})=>{const i=h[s.field];return[l("span",{class:`el-tag el-tag--${i==="admin"?"":"warning"} el-tag--plain`},[i])]}},E=U,O={default:({row:h,column:s})=>{const i=h[s.field],[c,g]=i?["success","启用"]:["danger","禁用"];return[l("span",{class:`el-tag el-tag--${c} el-tag--plain`},[g])]}},F=O,q={class:"app-container"},H=P({name:"VxeTable",__name:"index",setup(h){const s=y(),i=b({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:F},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,a.clearTable(),new Promise(o=>{let r=0,u=[];const d=n=>{n!=null&&n.data&&(r=n.data.total,u=n.data.list),i.loading=!1,o({total:r,result:u})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),c=y(),g=b({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=x.value)==null||e.clearValidate(),Promise.resolve()}}),x=y(),m=b({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=c.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>a.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),a=b({isUpdate:!0,commitQuery:()=>{var e;return(e=s.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=s.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,r,u,d;e?(a.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(a.isUpdate=!1,g.title="新增用户");const t=(u=(r=(o=m.items)==null?void 0:o[0])==null?void 0:r.itemRender)==null?void 0:u.props;t&&(t.disabled=a.isUpdate),(d=c.value)==null||d.open(),S(()=>{var f,n;!a.isUpdate&&((f=x.value)==null||f.reset()),(n=x.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=x.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var r;m.loading=!1,(r=c.value)==null||r.close(),w.success("操作成功"),!a.isUpdate&&a.afterInsert(),a.commitQuery()};a.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=s.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};R.confirm(t,"提示",o).then(()=>{T(e.id).then(()=>{w.success("删除成功"),a.afterDelete(),a.commitQuery()})})},afterDelete:()=>{var o,r;const e=s.value.getData(),t=(r=(o=s.value)==null?void 0:o.getProxyInfo())==null?void 0:r.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=v("vxe-button"),r=v("el-button"),u=v("vxe-grid"),d=v("vxe-form"),f=v("vxe-modal");return $(),M("div",q,[l(u,k({ref_key:"xGridDom",ref:s},i),{"toolbar-btns":p(()=>[l(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>a.onShowModal())},{default:p(()=>[_("新增用户")]),_:1}),l(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>[_("批量删除")]),_:1})]),"row-operate":p(({row:n})=>[l(r,{link:"",type:"primary",onClick:C=>a.onShowModal(n)},{default:p(()=>[_("修改")]),_:2},1032,["onClick"]),l(r,{link:"",type:"danger",onClick:C=>a.onDelete(n)},{default:p(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1},16),l(f,k({ref_key:"xModalDom",ref:c},g),{default:p(()=>[l(d,k({ref_key:"xFormDom",ref:x},m),null,16)]),_:1},16)])}}});export{H as default}; diff --git a/static/index-SipYtAk7.js b/static/index-Y-znXrkX.js similarity index 91% rename from static/index-SipYtAk7.js rename to static/index-Y-znXrkX.js index 459a4077..88eff5ca 100644 --- a/static/index-SipYtAk7.js +++ b/static/index-Y-znXrkX.js @@ -1 +1 @@ -import{_ as c,e as a}from"./index-8aC8ZOcR.js";import{ag as s,m as n,p as r,U as _,l as i,M as p,Q as m,u as d}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const l={},u={class:"app-container center"};function f(t,o){const e=s("el-empty");return n(),r("div",u,[_(e,{description:"Admin 权限可见"})])}const v=c(l,[["render",f],["__scopeId","data-v-540a7bcc"]]),x={},h={class:"app-container center"};function y(t,o){const e=s("el-empty");return n(),r("div",h,[_(e,{description:"Editor 权限可见"})])}const $=c(x,[["render",y],["__scopeId","data-v-e677b768"]]),b=i({__name:"index",setup(t){const e=a().roles.includes("admin");return(k,A)=>(n(),p(m(d(e)?v:$)))}});export{b as default}; +import{_ as c,e as a}from"./index-HHvEY1I5.js";import{ag as s,m as n,p as r,U as _,l as i,M as p,Q as m,u as d}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const l={},u={class:"app-container center"};function f(t,o){const e=s("el-empty");return n(),r("div",u,[_(e,{description:"Admin 权限可见"})])}const v=c(l,[["render",f],["__scopeId","data-v-540a7bcc"]]),x={},h={class:"app-container center"};function y(t,o){const e=s("el-empty");return n(),r("div",h,[_(e,{description:"Editor 权限可见"})])}const $=c(x,[["render",y],["__scopeId","data-v-e677b768"]]),b=i({__name:"index",setup(t){const e=a().roles.includes("admin");return(k,A)=>(n(),p(m(d(e)?v:$)))}});export{b as default}; diff --git a/static/index-Vnx_DxRw.js b/static/index-be9b1hiH.js similarity index 83% rename from static/index-Vnx_DxRw.js rename to static/index-be9b1hiH.js index 0de43863..1e65ad32 100644 --- a/static/index-Vnx_DxRw.js +++ b/static/index-be9b1hiH.js @@ -1 +1 @@ -import{_ as n}from"./index-8aC8ZOcR.js";import{ag as e,m as c,p as a,U as o,O as s}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default}; +import{_ as n}from"./index-HHvEY1I5.js";import{ag as e,m as c,p as a,U as o,O as s}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default}; diff --git a/static/index-Dj2ZZ1P-.js b/static/index-lwE5s-Lc.js similarity index 91% rename from static/index-Dj2ZZ1P-.js rename to static/index-lwE5s-Lc.js index 48ec02c6..5de8a2a9 100644 --- a/static/index-Dj2ZZ1P-.js +++ b/static/index-lwE5s-Lc.js @@ -1 +1 @@ -import{_ as s}from"./index-8aC8ZOcR.js";import{ag as e,m as _,p as i,q as p,S as o,U as t,O as n}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const l={},m={class:"app-container"};function d(u,f){const r=e("el-link"),a=e("router-view"),c=e("el-card");return _(),i("div",m,[p("h4",null,[o(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: "),t(r,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:n(()=>[o(" src/config/route.ts ")]),_:1})]),t(c,{header:"二级路由 - menu1"},{default:n(()=>[t(a)]),_:1})])}const g=s(l,[["render",d],["__scopeId","data-v-6b5ec9cb"]]);export{g as default}; +import{_ as s}from"./index-HHvEY1I5.js";import{ag as e,m as _,p as i,q as p,S as o,U as t,O as n}from"./vue-edbHIJ2J.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const l={},m={class:"app-container"};function d(u,f){const r=e("el-link"),a=e("router-view"),c=e("el-card");return _(),i("div",m,[p("h4",null,[o(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: "),t(r,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:n(()=>[o(" src/config/route.ts ")]),_:1})]),t(c,{header:"二级路由 - menu1"},{default:n(()=>[t(a)]),_:1})])}const g=s(l,[["render",d],["__scopeId","data-v-6b5ec9cb"]]);export{g as default}; diff --git a/static/index.vue_vue_type_script_setup_true_lang-VByHYqQP.js b/static/index.vue_vue_type_script_setup_true_lang-49QmwLLS.js similarity index 92% rename from static/index.vue_vue_type_script_setup_true_lang-VByHYqQP.js rename to static/index.vue_vue_type_script_setup_true_lang-49QmwLLS.js index 6a2801de..ae35ef3c 100644 --- a/static/index.vue_vue_type_script_setup_true_lang-VByHYqQP.js +++ b/static/index.vue_vue_type_script_setup_true_lang-49QmwLLS.js @@ -1 +1 @@ -import{h as k}from"./index-8aC8ZOcR.js";import{A as g}from"./element-6bs1qbFv.js";import{l as h,ag as o,m as l,M as m,O as e,U as n,p as C,a7 as x,u as t,F as B,q as s,T}from"./vue-edbHIJ2J.js";const V=h({__name:"index",setup(b){const{themeList:c,activeThemeName:d,setTheme:r}=k();return(v,N)=>{const _=o("el-icon"),p=o("el-tooltip"),i=o("el-dropdown-item"),u=o("el-dropdown-menu"),f=o("el-dropdown");return l(),m(f,{trigger:"click",onCommand:t(r)},{dropdown:e(()=>[n(u,null,{default:e(()=>[(l(!0),C(B,null,x(t(c),(a,w)=>(l(),m(i,{key:w,disabled:t(d)===a.name,command:a.name},{default:e(()=>[s("span",null,T(a.title),1)]),_:2},1032,["disabled","command"]))),128))]),_:1})]),default:e(()=>[s("div",null,[n(p,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[n(_,{size:20},{default:e(()=>[n(t(g))]),_:1})]),_:1})])]),_:1},8,["onCommand"])}}});export{V as _}; +import{h as k}from"./index-HHvEY1I5.js";import{A as g}from"./element-6bs1qbFv.js";import{l as h,ag as o,m as l,M as m,O as e,U as n,p as C,a7 as x,u as t,F as B,q as s,T}from"./vue-edbHIJ2J.js";const V=h({__name:"index",setup(b){const{themeList:c,activeThemeName:d,setTheme:r}=k();return(v,N)=>{const _=o("el-icon"),p=o("el-tooltip"),i=o("el-dropdown-item"),u=o("el-dropdown-menu"),f=o("el-dropdown");return l(),m(f,{trigger:"click",onCommand:t(r)},{dropdown:e(()=>[n(u,null,{default:e(()=>[(l(!0),C(B,null,x(t(c),(a,w)=>(l(),m(i,{key:w,disabled:t(d)===a.name,command:a.name},{default:e(()=>[s("span",null,T(a.title),1)]),_:2},1032,["disabled","command"]))),128))]),_:1})]),default:e(()=>[s("div",null,[n(p,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[n(_,{size:20},{default:e(()=>[n(t(g))]),_:1})]),_:1})])]),_:1},8,["onCommand"])}}});export{V as _}; diff --git a/static/page-BZY-9Gb7.js b/static/page-srefMYCH.js similarity index 79% rename from static/page-BZY-9Gb7.js rename to static/page-srefMYCH.js index f00aa042..10e546d6 100644 --- a/static/page-BZY-9Gb7.js +++ b/static/page-srefMYCH.js @@ -1 +1 @@ -import{l as s,aD as n,ag as r,m as p,p as c,U as e,O as _,S as m}from"./vue-edbHIJ2J.js";import{S as i}from"./SwitchRoles-I04jE-9Q.js";import{_ as l}from"./index-8aC8ZOcR.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const d={class:"app-container"},f=s({__name:"page",setup(g){const t=n(),a=()=>{t.push({path:"/403"})};return(h,u)=>{const o=r("el-tag");return p(),c("div",d,[e(i,{onChange:a}),e(o,{type:"warning",size:"large"},{default:_(()=>[m("当前页面只有 admin 权限可见,切换权限后将不能进入该页面")]),_:1})])}}}),S=l(f,[["__scopeId","data-v-7986af66"]]);export{S as default}; +import{l as s,aD as n,ag as r,m as p,p as c,U as e,O as _,S as m}from"./vue-edbHIJ2J.js";import{S as i}from"./SwitchRoles-Mm3_plQD.js";import{_ as l}from"./index-HHvEY1I5.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const d={class:"app-container"},f=s({__name:"page",setup(g){const t=n(),a=()=>{t.push({path:"/403"})};return(h,u)=>{const o=r("el-tag");return p(),c("div",d,[e(i,{onChange:a}),e(o,{type:"warning",size:"large"},{default:_(()=>[m("当前页面只有 admin 权限可见,切换权限后将不能进入该页面")]),_:1})])}}}),S=l(f,[["__scopeId","data-v-7986af66"]]);export{S as default}; diff --git a/static/use-watermark-6z1-3b-E.js b/static/use-watermark-dcNU5dZU.js similarity index 96% rename from static/use-watermark-6z1-3b-E.js rename to static/use-watermark-dcNU5dZU.js index 3be7e60b..2ef3eae5 100644 --- a/static/use-watermark-6z1-3b-E.js +++ b/static/use-watermark-dcNU5dZU.js @@ -1 +1 @@ -import{u as f}from"./useWatermark-cvdbE1cJ.js";import{l as C,r as v,ag as m,m as y,p as b,q as i,U as t,O as a,u as r,S as l,aH as W,aI as g}from"./vue-edbHIJ2J.js";import{_ as w}from"./index-8aC8ZOcR.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const x=n=>(W("data-v-dbeea05d"),n=n(),g(),n),I={class:"app-container"},$=x(()=>i("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),S=C({__name:"use-watermark",setup(n){const p=v(null),{setWatermark:c,clearWatermark:_}=f(p),{setWatermark:d,clearWatermark:k}=f();return(B,e)=>{const o=m("el-button"),u=m("el-button-group");return y(),b("div",I,[$,i("div",{ref_key:"localRef",ref:p,class:"local"},null,512),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[0]||(e[0]=s=>r(c)("局部水印",{color:"#409eff"}))},{default:a(()=>[l("创建局部水印")]),_:1}),t(o,{type:"warning",onClick:e[1]||(e[1]=s=>r(c)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(_)},{default:a(()=>[l("清除局部水印")]),_:1},8,["onClick"])]),_:1}),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[2]||(e[2]=s=>r(d)("全局水印",{color:"#409eff"}))},{default:a(()=>[l("创建全局水印")]),_:1}),t(o,{type:"warning",onClick:e[3]||(e[3]=s=>r(d)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(k)},{default:a(()=>[l("清除全局水印")]),_:1},8,["onClick"])]),_:1})])}}}),E=w(S,[["__scopeId","data-v-dbeea05d"]]);export{E as default}; +import{u as f}from"./useWatermark-cvdbE1cJ.js";import{l as C,r as v,ag as m,m as y,p as b,q as i,U as t,O as a,u as r,S as l,aH as W,aI as g}from"./vue-edbHIJ2J.js";import{_ as w}from"./index-HHvEY1I5.js";import"./element-6bs1qbFv.js";import"./vxe-gaPTatyF.js";const x=n=>(W("data-v-dbeea05d"),n=n(),g(),n),I={class:"app-container"},$=x(()=>i("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),S=C({__name:"use-watermark",setup(n){const p=v(null),{setWatermark:c,clearWatermark:_}=f(p),{setWatermark:d,clearWatermark:k}=f();return(B,e)=>{const o=m("el-button"),u=m("el-button-group");return y(),b("div",I,[$,i("div",{ref_key:"localRef",ref:p,class:"local"},null,512),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[0]||(e[0]=s=>r(c)("局部水印",{color:"#409eff"}))},{default:a(()=>[l("创建局部水印")]),_:1}),t(o,{type:"warning",onClick:e[1]||(e[1]=s=>r(c)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(_)},{default:a(()=>[l("清除局部水印")]),_:1},8,["onClick"])]),_:1}),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[2]||(e[2]=s=>r(d)("全局水印",{color:"#409eff"}))},{default:a(()=>[l("创建全局水印")]),_:1}),t(o,{type:"warning",onClick:e[3]||(e[3]=s=>r(d)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(k)},{default:a(()=>[l("清除全局水印")]),_:1},8,["onClick"])]),_:1})])}}}),E=w(S,[["__scopeId","data-v-dbeea05d"]]);export{E as default};