ray-template/assets/hooks-aPwUAFNt.js
XiaoDaiGua-Ray 486dacff2f build
2023-12-06 12:34:05 +08:00

17 lines
100 KiB
JavaScript

var So=Object.defineProperty;var wo=(e,t,o)=>t in e?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Le=(e,t,o)=>(wo(e,typeof t!="symbol"?t+"":t,o),o);import"./print-js@1.6.0-gYKv6oGQ.js";import{l as _o}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{u as Ue}from"./vue-hooks-plus@1.8.5_vue@3.3.10-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import{d as B}from"./dayjs@1.11.10-IrZctHvJ.js";import{g as ae,u as Y,i as X,a as ve,s as Ce,c as D,r as oe,b as L,d as Co,e as de,f as No,p as ko,q as Ve,h as To,j as Oo,k as xo,w as Ro,l as Ao,m as Lo,n as Mo}from"./utils-B6Okv4Kv.js";import{u as Po,a as Se,b as Ne,c as ge,d as Do}from"./@vueuse_core@10.6.1_vue@3.3.10-finMrxOz.js";import{i as Me}from"./interactjs@1.10.21-7zFZdvts.js";import{s as zo}from"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.6-fNhqB16x.js";import{s as ce,c as pe,t as ke,d as Io,i as Eo}from"./lodash-es@4.17.21-B0eCOOcg.js";import{u as te,r as jo,i as $o,a as Bo,b as Fo,c as Wo,d as Ko,e as Uo,f as qo,g as Go,h as Ho,j as Yo,k as Xo,l as Zo,m as Qo,n as Jo,o as en,p as tn,q as on,s as nn}from"./echarts@5.4.3-Vt5ZmFiA.js";import{o as qe,c as Ge,a as He}from"./@vue_runtime-core@3.3.10-40cgyS5D.js";const an="modulepreload",rn=function(e){return"/ray-template/"+e},Pe={},T=function(t,o,r){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(a=>{if(a=rn(a),a in Pe)return;Pe[a]=!0;const i=a.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=n.length-1;u>=0;u--){const m=n[u];if(m.href===a&&(!i||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":an,i||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),i)return new Promise((u,m)=>{c.addEventListener("load",u),c.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},ln=(e,t)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((r,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Ye=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],sn="zh-CN",cn="zh-CN",un={"zh-CN":"zh-cn","en-US":"en"},dn="zh-cn",Xe={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},pn={name:"Dashboard",path:"/dashboard"},U={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Te={signing:"signing",localeLanguage:"localeLanguage",token:"token"},mn={content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},Jr=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(r=>{const n=e[r].default;let a=r.replace(`./${t}/`,"").replace(/^\.\//,"");const i=a.lastIndexOf(".");a=a.substring(0,i);const l=a.split("/"),s=l.shift(),c=l.join(".");s&&(c?(ce(o,s,o[s]||{}),ce(o[s],c,n)):ce(o,s,n||{}))}),o},hn=async e=>{var o;const t={};for(const r of e){const n=await ln(Object.assign({"./lang/en-US.ts":()=>T(()=>import("./en-US-a1_w6Ie9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),"./lang/zh-CN.ts":()=>T(()=>import("./zh-CN-69rzQYDa.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]))}),`./lang/${r.key}.ts`),a=r.key;a&&(t[a]=((o=n==null?void 0:n.default)==null?void 0:o.message)??{})}return t},el=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Ze=()=>ae(Te.localeLanguage,"localStorage",sn);let Qe;const gn=async()=>{const e=Ze(),t=await hn(Ye);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:cn})},tl=async e=>{const t=await gn();Qe=t,e.use(t)},fn=(e,t)=>!e||t.startsWith(e)?t:`${e}.${t}`,Z=e=>{const{t,locale:o,...r}=Qe.global;return{...r,t:(i,...l)=>i?!i.includes(".")&&!e?i:t(fn(e,i),...l):"",locale:i=>{const l=o;l.value=i}}},x=e=>e,yn={path:"/dashboard",name:"RDashboard",component:()=>T(()=>import("./index-BLnYeGI8.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,33,18,19,20,21,22,23,24,25,26,27,28,29,30,34])),meta:{i18nKey:x("menu.Dashboard"),icon:"dashboard",order:0}},bn=Object.freeze(Object.defineProperty({__proto__:null,default:yn},Symbol.toStringTag,{value:"Module"})),vn={path:"/axios",name:"RAxios",component:()=>T(()=>import("./index-8IKjByf3.js"),__vite__mapDeps([35,5,6,2,3,4,7,8,9,10,11,12,13,14,15,16,36,18,1,19,20,17,21,22,23,24,25,26,27,28,29,30,37])),meta:{i18nKey:x("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Vn=Object.freeze(Object.defineProperty({__proto__:null,default:vn},Symbol.toStringTag,{value:"Module"})),Sn={path:"/context-menu",name:"ContextMenuDemo",component:()=>T(()=>import("./index-yGgdYlS5.js"),__vite__mapDeps([38,21,22])),meta:{i18nKey:x("menu.ContextMenu"),icon:"other",order:2}},wn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"})),_n={path:"/directive",name:"RDirective",component:()=>T(()=>import("./index-gRQOEXFu.js"),__vite__mapDeps([])),meta:{i18nKey:x("menu.Directive"),icon:"other",order:2}},Cn=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"})),F=()=>T(()=>Promise.resolve().then(()=>Wa),void 0),Nn={path:"/doc",name:"RDocLayout",component:F,meta:{i18nKey:x("menu.Doc"),icon:"doc",order:5},children:[{path:"doc-inside",name:"RDocInside",component:()=>T(()=>import("./index-L7wcF_Gk.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{i18nKey:x("menu.DocLocalInside")}},{path:"doc-outside",name:"RDoc",component:F,meta:{i18nKey:x("menu.Doc"),windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},{path:"doc-outside-local",name:"RDocLocal",component:F,meta:{i18nKey:x("menu.DocLocal"),windowOpen:"https://ray-template.yunkuangao.com/ray-template-doc/"}}]},kn=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"})),Tn={path:"/echart",name:"REchart",component:()=>T(()=>import("./index-olXYPpee.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,41])),meta:{i18nKey:x("menu.Echart"),icon:"echart",order:1}},On=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"})),xn={path:"/iframe",name:"IframeDemo",component:()=>T(()=>import("./index-Ah2u6u11.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},Rn=Object.freeze(Object.defineProperty({__proto__:null,default:xn},Symbol.toStringTag,{value:"Module"})),An={path:"/mock-demo",name:"MockDemo",component:()=>T(()=>import("./index-09TcvWUe.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,36,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{i18nKey:x("menu.Mock"),icon:"other",order:3,keepAlive:!0}},Ln=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Mn={path:"/modal-demo",name:"ModalDemo",component:()=>T(()=>import("./index-HI97-lGW.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{i18nKey:x("menu.Modal"),icon:"other",order:3}},Pn=Object.freeze(Object.defineProperty({__proto__:null,default:Mn},Symbol.toStringTag,{value:"Module"})),Dn={path:"/multi",name:"MultiMenu",component:F,meta:{i18nKey:x("menu.MultiMenu"),icon:"other",order:4},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>T(()=>import("./index-OlZM-6Aq.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:F,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>T(()=>import("./index-7HAQIe0w.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:F,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>T(()=>import("./index-vRnYP7XJ.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},zn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),In={path:"/precision",name:"CalculatePrecision",component:()=>T(()=>import("./index-tc9r9SRT.js"),__vite__mapDeps([45,18,1,2,3,4,19,20])),meta:{i18nKey:x("menu.CalculatePrecision"),icon:"other",order:2}},En=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),jn={path:"/qrcode",name:"RQRCode",component:()=>T(()=>import("./index-serutCs-.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,47,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{i18nKey:x("menu.QRCode"),icon:"other",order:3}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"})),Bn={path:"/rely",name:"Rely",component:F,meta:{i18nKey:x("menu.Rely"),icon:"rely",order:999},children:[{path:"rely-about",name:"RelyAbout",component:()=>T(()=>import("./index-FeWEAadL.js"),__vite__mapDeps([48,49])),meta:{i18nKey:x("menu.RelyAbout")}}]},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),Wn={path:"/router-demo",name:"RouterDemoRoot",component:F,meta:{i18nKey:x("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",name:"RouterDemoHome",component:()=>T(()=>import("./index-tKuos9N3.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",name:"RouterDemoDetail",component:()=>T(()=>import("./index-5YvNvrKO.js"),__vite__mapDeps([])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Un={path:"/scroll-reveal",name:"ScrollReveal",component:()=>T(()=>import("./index-v5xFQW7A.js"),__vite__mapDeps([51,52])),meta:{i18nKey:x("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},qn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),Gn={path:"/svg-icons",name:"PreviewSVGIcons",component:()=>T(()=>import("./index-La0mWDXU.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,54])),meta:{i18nKey:x("menu.SvgIcon"),icon:"other",order:3}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/table",name:"TableView",component:()=>T(()=>import("./index-l_23Na7f.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{i18nKey:x("menu.Table"),icon:"other",order:2}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/template-hooks",name:"TemplateHooks",component:()=>T(()=>import("./index-NwClnS-g.js"),__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),meta:{i18nKey:x("menu.TemplateHooks"),icon:"other",order:1}},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Jn={path:"/:catchAll(.*)",name:"ErrorPage",component:()=>T(()=>import("./index-Pdf0DJXE.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,58])),meta:{i18nKey:x("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},ea=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),Oe=Vue.ref(null),ta={setupRouterLoadingBar:!0,setupRouterGuard:!0},oa=["RLogin","ErrorPage","RayTemplateDoc"],le=["admin"],na=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":bn,"/src/router/modules/demo/axios.ts":Vn,"/src/router/modules/demo/context-menu.ts":wn,"/src/router/modules/demo/directive.ts":Cn,"/src/router/modules/demo/doc.ts":kn,"/src/router/modules/demo/echart.ts":On,"/src/router/modules/demo/iframe.ts":Rn,"/src/router/modules/demo/mock.ts":Ln,"/src/router/modules/demo/modal.ts":Pn,"/src/router/modules/demo/multi-menu.ts":zn,"/src/router/modules/demo/precision.ts":En,"/src/router/modules/demo/qrcode.ts":$n,"/src/router/modules/demo/rely.ts":Fn,"/src/router/modules/demo/router-demo.ts":Kn,"/src/router/modules/demo/scroll-reveal.ts":qn,"/src/router/modules/demo/svg-icons.ts":Hn,"/src/router/modules/demo/table.ts":Xn,"/src/router/modules/demo/template-hooks.ts":Qn,"/src/router/modules/error404.ts":ea});return Object.keys(e).reduce((o,r)=>{const n=e[r].default;if(n)o.push(n);else throw new Error("router helper combine: an exception occurred while parsing the routing file!");return o},[])},aa=e=>e.sort((t,o)=>{var a,i;const r=((a=t.meta)==null?void 0:a.order)??1,n=((i=o.meta)==null?void 0:i.order)??0;if(typeof r!="number"||typeof n!="number")throw new TypeError("orderRoutes error: order must be a number!");return r===n?t.name?o.name?t.name.localeCompare(o.name):-1:1:r-n}),ra=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=Oe.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Je=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,globalRootRoute:pe(pn),layoutContentSpinning:!1});function E(e,t,o){Je[e]=t,o==null||o()}function j(e){return Vue.readonly(Vue.toRef(Je,e))}const et=()=>({isLayoutContentMaximized:Vue.computed(()=>j("layoutContentMaximize").value),maximize:(o,r)=>{const n=Y(Oe),{toggleFullscreen:a}=kr(n,r);E("layoutContentMaximize",o),a()}}),tt=()=>({reload:(r=800)=>{E("globalMainLayoutLoad",!1),setTimeout(()=>E("globalMainLayoutLoad",!0),r)},openSpin:()=>{E("layoutContentSpinning",!0)},closeSpin:()=>{E("layoutContentSpinning",!1)}}),ol=()=>({setWatermarkContent:n=>{const{getWatermarkConfig:a}=$(),i=Object.assign(a.value,{content:n}),{updateSettingState:l}=z();l("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:n}=z();n("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:n}=z();n("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:n}=$(),{updateSettingState:a}=z();a("watermarkSwitch",!n.value)}}),la=()=>{const e=()=>{const{getAppTheme:n}=$(),{t:a}=Z();return{theme:n.value,themeLabel:n.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:n}=z();n("appTheme",!0)},changeLightTheme:()=>{const{updateSettingState:n}=z();n("appTheme",!1)},toggleTheme:()=>{const{theme:n}=e(),{updateSettingState:a}=z();a("appTheme",!n)},getAppTheme:e}},H=(e,t)=>{const{getMenuTagOptions:o}=q();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const r=o.value.findIndex(n=>n.key===e);return r>-1?{option:o.value[r],index:r}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{key:r}=e,n=o.value.findIndex(a=>a.key===r);if(n===-1){console.warn(`${t}: The incoming menuTag option ${e.key} did not match the corresponding item.`);return}return{option:e,index:n}}};function ia(){const{getMenuTagOptions:e,getMenuKey:t}=q(),{changeMenuModelValue:o,spliceMenTagOptions:r,emptyMenuTagOptions:n,setMenuTagOptions:a}=J(),i=()=>e.value.findIndex(V=>V.key===t.value);return{close:V=>{const p=H(V,"close");if(p){const{index:g,option:h}=p;if(r(g),h.key===t.value){const v=e.value[g-1];v&&o(v.key,v)}}},closeAll:()=>{n(),ue()},closeRight:V=>{const p=H(V,"closeRight");if(p){const{option:g,index:h}=p,v=e.value.length-h,d=i();r(h+1,v),h<=d&&t.value!==g.key&&o(g.key,g)}},closeLeft:V=>{const p=H(V,"closeLeft");if(p){const{option:g,index:h}=p,v=i();r(0,h),v<=h&&t.value!==g.key&&o(g.key,g)}},closeOther:V=>{const p=H(V,"closeOther");if(p){const{option:g}=p;t.value!==g.key?(n(),o(g.key,g)):a(g,!1)}},getCurrentTagIndex:i,checkCloseRight:V=>{const p=H(V,"checkCloseRight");if(p){const{index:g}=p,h=e.value.length-1;return!(g>=h)}return!1},checkCloseLeft:V=>{const p=H(V,"checkCloseRight");if(p){const{index:g}=p,h=e.value.length-1;return g===0?!1:g>0&&h>0}return!1}}}function nl(){const{changeMenuModelValue:e}=J();return{navigationTo:o=>{if(typeof o=="number"){if(isNaN(o)){console.warn(`navigationTo: The ${o} is NaN, expect number.`);return}const{getMenuOptions:r}=q();if(o>r.value.length){console.warn(`navigationTo: The current ${o} exceeds the maximum number of menus.`);return}const n=r.value[o],a=i=>{if(i.children&&i.children.length>0){const{children:[l]}=i;a(l);return}e(i.key,i)};a(n)}else e(o.key,o)}}}function Q(){const e=j("globalRootRoute"),t=Vue.computed(()=>e.value),o=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:r,setRootRoute:a=>{const i=j("globalRootRoute"),l=Object.assign(pe(i.value),a);E("globalRootRoute",l)}}}const sa=e=>{const{beforeEach:t}=e,{getRootPath:o}=Q(),r=(n,a)=>n.path==="/"||a.path==="/login";t((n,a,i)=>{const l=ae(Te.token),s=ae("menuKey","sessionStorage",o.value),{meta:c,name:u}=n;l!==null?r(n,a)?ue(!0):!X(u,"Symbol")&&u&&oa.includes(u)?i():ot(c)?r(n,a)?s?i(s):ue(!0):i():ue(!0):r(n,a)?i():i("/")})},ot=e=>{const{getSigningCallback:t}=Mr(),{role:o}=e;return le!=null&&le.length&&le.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},we=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:r,env:n}=t,{MODE:a}=ve();return!(r||o||n&&typeof n=="string"&&n!==a||n&&Array.isArray(n)&&!n.includes(a))},ca=e=>{e.beforeEach(()=>{var t;(t=window==null?void 0:window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window==null?void 0:window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window==null?void 0:window.$loadingBar)==null||t.error()})},ua=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=ta;t&&ca(e),o&&sa(e)},ue=(e=!0)=>{const{router:t}=Re(),{push:o,replace:r}=t,{getRootPath:n}=Q();Ce("menuKey",n.value),e?r(n.value):o(n.value)},nt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],at="#18181c",rt={},lt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},it={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},st={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},ct={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},dt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},pt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},vt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Vt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},St={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},wt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},_t={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ct={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Nt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},kt={textStyle:{color:"#999999"}},Tt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Ot={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},xt={color:["#fc97af","#87f7cf"]},Rt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},At={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},da={color:nt,backgroundColor:at,textStyle:rt,title:lt,line:it,radar:st,bar:ct,pie:ut,scatter:dt,boxplot:pt,parallel:mt,sankey:ht,funnel:gt,gauge:ft,candlestick:yt,graph:bt,map:vt,geo:Vt,categoryAxis:St,valueAxis:wt,logAxis:_t,timeAxis:Ct,toolbox:Nt,legend:kt,tooltip:Tt,timeline:Ot,visualMap:xt,dataZoom:Rt,markPoint:At},pa=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:at,bar:ct,boxplot:pt,candlestick:yt,categoryAxis:St,color:nt,dataZoom:Rt,default:da,funnel:gt,gauge:ft,geo:Vt,graph:bt,legend:kt,line:it,logAxis:_t,map:vt,markPoint:At,parallel:mt,pie:ut,radar:st,sankey:ht,scatter:dt,textStyle:rt,timeAxis:Ct,timeline:Ot,title:lt,toolbox:Nt,tooltip:Tt,valueAxis:wt,visualMap:xt},Symbol.toStringTag,{value:"Module"})),Lt=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],Mt="rgba(0,0,0,0)",Pt={},Dt={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},zt={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},It={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Et={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},$t={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Bt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Wt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Kt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},qt={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},Gt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},Ht={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Yt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Xt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Zt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Qt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Jt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},eo={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},to={textStyle:{color:"#333333"}},oo={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},no={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},ao={color:["#5ab1ef","#e0ffff"]},ro={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},lo={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},ma={color:Lt,backgroundColor:Mt,textStyle:Pt,title:Dt,line:zt,radar:It,bar:Et,pie:jt,scatter:$t,boxplot:Bt,parallel:Ft,sankey:Wt,funnel:Kt,gauge:Ut,candlestick:qt,graph:Gt,map:Ht,geo:Yt,categoryAxis:Xt,valueAxis:Zt,logAxis:Qt,timeAxis:Jt,toolbox:eo,legend:to,tooltip:oo,timeline:no,visualMap:ao,dataZoom:ro,markPoint:lo},ha=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Mt,bar:Et,boxplot:Bt,candlestick:qt,categoryAxis:Xt,color:Lt,dataZoom:ro,default:ma,funnel:Kt,gauge:Ut,geo:Yt,graph:Gt,legend:to,line:zt,logAxis:Qt,map:Ht,markPoint:lo,parallel:Ft,pie:jt,radar:It,sankey:Wt,scatter:$t,textStyle:Pt,timeAxis:Jt,timeline:no,title:Dt,toolbox:eo,tooltip:oo,valueAxis:Zt,visualMap:ao},Symbol.toStringTag,{value:"Module"})),ga=()=>{const e=Object.assign({"/src/echart-themes/macarons/macarons-dark.json":pa,"/src/echart-themes/macarons/macarons.json":ha}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,n)=>{var i;const a=(i=n.match(t))==null?void 0:i[1];if(a)return r.push({name:a,theme:e[n].default}),r;throw new Error("theme name is not found")},[])},fa=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),ya={bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>fa()},observer:{type:Object,default:null},throttleWait:{type:Number,default:500},animation:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({})}},xe={appThemeColors:["#2d8cf0","#0960bd","#536dfe","#ff5c93","#ee4f12","#9c27b0","#ff9800","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{},echartTheme:"macarons"},ba={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},va=ga(),al=Vue.defineComponent({name:"RChart",props:ya,setup(e,{expose:t}){const{getAppTheme:o}=$(),r=Vue.ref(),n=Vue.ref(),a=Vue.ref();let i,l;const{echartTheme:s}=xe;let c,u;const m=Vue.computed(()=>[{label:"下载图片",key:"downloadChart",disabled:!(a.value&&a.value.getDom())}]),S=Vue.computed(()=>({"--ray-chart-width":D(e.width),"--ray-chart-height":D(e.height)})),b=async()=>{var y;te([Bo,Fo,Wo,Ko,Uo,qo,Go,Ho]),te([Yo,Xo,Zo,Qo,Jo,en]),te([tn,on]),te([nn]);try{te((y=e.use)==null?void 0:y.filter(Boolean))}catch{console.error("register chart Core error: wrong property and method passed in extend attribute")}},V=()=>{if(e.theme==="default"){e.autoChangeTheme?g("dark"):g("");return}if(e.theme)g(e.theme);else{const y=e.autoChangeTheme&&o.value?`${s}-dark`:s;g(y)}},p=y=>{let w=Vue.unref(y);const R=M=>Object.assign({animation:!0},w,M);return e.showAria&&(w=R({aria:{enabled:!0,decal:{show:!0}}})),w},g=(y=s)=>{const w=r.value,R=p(e.options),{height:M,width:A}=w.getBoundingClientRect(),{onSuccess:W,onError:ee}=e;try{va.forEach(G=>{jo(G.name,G.theme)}),u=$o(w,y,{width:A===0?200:void 0,height:M===0?200:void 0}),a.value=u,e.animation?(u.setOption({}),setTimeout(()=>{R&&(u==null||u.setOption(R))})):R&&(u==null||u.setOption(R)),W&&L(W,u)}catch(G){ee&&L(ee),console.error("RChart render error: ",G)}},h=()=>!!(u&&u.getDom()),v=()=>{h()&&(u.clear(),u.dispose(),a.value=void 0)},d=()=>{u&&u.resize()},f=(y,w)=>{if(y==="downloadChart"&&h()){const{filename:M,...A}=e.downloadOptions;Co(u.getDataURL(A),M??`${new Date().getTime()}`)}const{onDropdownSelect:R}=e;R&&L(R,y,w)},N=()=>{if(u!=null&&u.getDom()){console.warn("RChart mount: There is a chart instance already initialized on the dom. Execution was interrupted.");return}V(),e.autoResize&&(i=ke(d,e.throttleWait),l=Po(e.observer||n,i))},O=()=>{var y;v(),i==null||i.cancel(),(y=l==null?void 0:l.stop)==null||y.call(l)};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(v(),V())}),Vue.watch(()=>e.showAria,()=>{v(),V()}),Vue.watchEffect(()=>{e.watchOptions?c=Vue.watch(()=>e.options,y=>{const w=p(y),R=Object.assign(e.setChartOptions,ba);u==null||u.setOption(w,R)},{deep:!0}):c==null||c(),e.loading?u==null||u.showLoading(e.loadingOptions):u==null||u.hideLoading()}),t({echart:a,dispose:O,render:N}),Vue.onBeforeMount(async()=>{await b()}),Vue.onMounted(()=>{N()}),Vue.onBeforeUnmount(()=>{O(),c==null||c()}),{rayChartRef:r,cssVarsRef:S,rayChartWrapperRef:n,moreDropDownOptions:m,dropdownSelect:f}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:r,dropdownSelect:n,bordered:a,dropdownOptions:i}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a},{default:oe(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:oe(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":oe(l,{defaultElement:Vue.createVNode(io,{iconSize:18,cursor:"pointer",options:i??r,trigger:"click",onSelect:n.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Va={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},rl=Vue.defineComponent({name:"RCollapseGrid",props:Va,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:n,"onUpdate:value":a}=e;n&&L(n,t.value),a&&L(a,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(k,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NSpace,{justify:"end"},{default:()=>{var o,r;return[(r=(o=this.$slots).action)==null?void 0:r.call(o),this.CollapseIcon()]}})]})]}})})}}),Sa={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},k=Vue.defineComponent({name:"RIcon",props:Sa,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?D(e.width):D(e.size),"--ray-icon-height":e.height?D(e.height):D(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:n=>{const{onClick:a}=e;a&&L(a,n)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),wa={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},wrapperClass:{type:String,default:null}},ll=Vue.defineComponent({name:"RIframe",props:wa,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":D(e.frameborder),"--ray-iframe-width":D(e.width),"--ray-iframe-height":D(e.height)})),r=Vue.ref(),n=Vue.ref(!0),a=l=>{n.value=!1;const{onSuccess:s}=e;s&&L(s,r.value,l)},i=l=>{n.value=!1;const{onError:s}=e;s&&L(s,l)};return Se(r,"load",a),Se(r,"error",i),t({iframeInst:r}),{cssVars:o,iframeRef:r,spinShow:n}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),_a={...naive.modalProps,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Ca=(e,t)=>new Promise(o=>{setTimeout(()=>{const r=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const n=Me(e).draggable({inertia:!0,autoScroll:!0,allowFrom:r,modifiers:[Me.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:a=>{const i=a.target,l=(parseFloat(i.getAttribute("data-x"))||0)+a.dx,s=(parseFloat(i.getAttribute("data-y"))||0)+a.dy;i.style.transform="translate("+l+"px, "+s+"px)",i.setAttribute("data-x",l),i.setAttribute("data-y",s)}}}).resizable(!1);o(n)}},30)}),il=Vue.defineComponent({name:"RModal",props:_a,setup(e){const{height:t}=Ne(),o=Vue.computed(()=>({"--r-modal-width":D(e.width??600),"--r-modal-card-width":D(e.cardWidth??600),"--r-modal-dialog-width":D(e.dialogWidth??446)})),r=de();let n;const a=()=>e.preset==="card"&&e.fullscreen,i=()=>{const l=document.getElementById(r);l&&Ca(l,e.preset).then(s=>{n=s})};return Vue.watch(()=>e.show,l=>{l&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{i()}):(n==null||n.unset(),n=null)}),{cssVars:o,height:t,isFullscreenCardType:a,uuidEl:r}},render(){const{isFullscreenCardType:e}=this,{$props:t,$slots:o,$attrs:r}=this,{preset:n,...a}=t,{cssVars:i,height:l,uuidEl:s}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:["r-modal",e()?"r-modal__preset-card--fullscreen":""],style:[i,e()?`height: ${l}px`:""],preset:n},{id:s},a,r),{...o})}}),Na={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function ka(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const io=Vue.defineComponent({name:"RMoreDropdown",props:Na,render(){let e;const{iconSize:t,cursor:o}=this,{default:r}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),ka(e=oe(r,{defaultElement:Vue.createVNode(k,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),Ta={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},Oa=e=>new Promise((t,o)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const n=new FileReader;n.onloadend=()=>{t(n.result)},n.onerror=a=>{o(a)},n.onabort=a=>{o(a)},n.readAsArrayBuffer(r.response)},r.open("GET",e),r.send()}),sl=Vue.defineComponent({name:"RayQRcode",props:Ta,setup(e,t){const{expose:o}=t,r=Vue.ref(),n={opacitySpinning:"0.1"};let a,i;const l=async()=>{const{gifBackgroundURL:m}=e;if(m)try{a=await Oa(m)}catch(S){console.error(S)}},s=()=>{const{gifBackground:m,...S}=e;new _o.AwesomeQR({...S,gifBackground:a??void 0}).draw().then(b=>{const{onSuccess:V}=e;V&&L(V,b),r.value=b}).catch(b=>{const{onError:V}=e;V&&L(V,b)})},c=()=>{if(t.slots.errorAction)return;const{onReload:m}=e;m&&L(m)},u=m=>{r.value&&X(r.value,"String")&&No(r.value,m||new Date().getTime()+".png")};return Vue.watchEffect(()=>{e.watchText?i=Vue.watch(()=>e.text,()=>s()):i==null||i()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await l(),s()}),Vue.onBeforeUnmount(()=>{i==null||i()}),{qrcodeURL:r,spinOverrides:n,errorActionClick:c}},render(){return Vue.createVNode("div",{class:"ray-qrcode"},[Vue.createVNode(naive.NSpin,{show:this.status==="loading",themeOverrides:this.spinOverrides,description:this.loadingDescription},{default:()=>[Vue.createVNode("img",{src:this.qrcodeURL},null)]}),this.status==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[X(this.errorDescription,"String")?this.errorDescription:()=>this.errorDescription]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0},{default:()=>this.errorActionDescription,icon:()=>Vue.createVNode(k,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),me={...naive.dataTableProps,title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},downloadTableOptions:{type:Object,default:()=>({})},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onDownloadSuccess:{type:[Function,Array],default:null},onDownloadError:{type:[Function,Array],default:null},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null}},I={tableIconSize:"18",tableKey:Symbol("r-table")},xa=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...me},setup(e){const t=Vue.ref(!1);return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],popoverShow:t,updatePopselectValue:a=>{const{onChangeSize:i}=e;i&&L(i,a)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(k,{name:"adjustment",size:I.tableIconSize,cursor:"pointer"},null),default:()=>"密度"})]})}}),Ra=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(I.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:r}]=Ue(e);return{toggleFullscreen:o,isFullscreen:t,isEnabled:r}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(k,{name:"fullscreen",size:I.tableIconSize,cursor:"pointer",onClick:()=>{t||o("globalMessage.isEnabledFullscreen"),e()}},null),default:()=>this.isFullscreen?"取消全屏":"全屏表格"})}}),Aa=()=>Vue.createVNode(k,{name:"draggable",size:I.tableIconSize},null),De=({icon:e,title:t,onClick:o,customClassName:r})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(k,{name:e,size:I.tableIconSize,cursor:"pointer",customClassName:r,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),_e=(e,t)=>{if(!t)return[null,null];for(let o=0;o<t.length;++o){const r=t[o];if(r.key===e.key)return[t,o];const[n,a]=_e(e,r.children);if(n&&a!==null)return[n,a]}return[null,null]},La=Vue.defineComponent({name:"TableC",props:{...me,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){const t=Vue.computed({get:()=>e.columns.map((i,l)=>{const{key:s,title:c,children:u,fixed:m,isResizable:S,...b}=i,V=m==="left",p=m==="right",g={...b,title:c,key:s,fixed:m,isLeftFixedActivated:V,isRightFixedActivated:p,isResizable:S};return{...g,suffix:()=>Vue.createVNode(naive.NSpace,{wrapItem:!1,style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(De,{icon:"row_head",title:"固定在列首",customClassName:V?"r-table__c-tool-icon--active":"",onClick:n.bind(this,"left",g,l)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(k,{name:"resize_h",size:I.tableIconSize,cursor:"pointer",customClassName:S?"r-table__c-tool-icon--active":"",onClick:r.bind(this,g,l)},null),default:()=>"修改列宽"}),Vue.createVNode(De,{icon:"row_end",title:"固定在列尾",customClassName:p?"r-table__c-tool-icon--active":"",onClick:n.bind(this,"right",g,l)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:l}=e;l&&L(l,i)},r=(i,l)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[l]=i,o(t.value)},n=(i,l,s)=>{const c=`${i}FixedActivated`,u=`${i==="left"?"right":"left"}FixedActivated`;l[u]=!1,l[c]=!l[c],l[c]?l.fixed=i:l.fixed=void 0,t.value[s]=l,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:l,dropPosition:s})=>{const[c,u]=_e(l,t.value);if(c===null||u===null)return;c.splice(u,1);const[m,S]=_e(i,t.value);m===null||S===null||(s==="before"?m.splice(S,0,l):m.splice(S+1,0,l),o(m))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(k,{name:"setting",size:I.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Aa.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Ma=Vue.defineComponent({name:"TablePrint",props:me,setup(e){const{uuidTable:t}=Vue.inject(I.tableKey,{});return{printTableClick:()=>{const{printTableOptions:r}=e,{type:n="html",printOptions:a={}}=r??{},i=Object.assign(a,{printable:t,type:n,documentTitle:a.documentTitle?a.documentTitle:"表格"});ko(document.getElementById(t),i)}}},render(){return Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(k,{name:"print",size:I.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null),default:()=>"打印表格"})}});function Pa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const cl=Vue.defineComponent({name:"RTable",props:me,setup(e,t){const{expose:o}=t,r=Vue.ref(null),n=Vue.ref(null),a=de(16),i=de(16),l=Vue.reactive({x:0,y:0,showContextMenu:!1}),s=Vue.reactive({size:e.size}),c=(p,g)=>{const{onContextMenuClick:h}=e;h&&L(h,p,g),l.showContextMenu=!1},u=(p,g)=>{var v;return{...(v=e.rowProps)==null?void 0:v.call(e,p,g),onContextmenu:e.disabledContextMenu?void 0:d=>{d.preventDefault(),l.showContextMenu=!1,Vue.nextTick().then(()=>{l.showContextMenu=!0,l.x=d.clientX,l.y=d.clientY})}}},m=p=>{s.size=p},S=p=>{const{onUpdateColumns:g,"onUpdate:columns":h}=e;g&&L(g,p),h&&L(h,p)},b=()=>{const{toolOptions:p}=e;return p==null?void 0:p.filter(()=>Boolean).map(g=>typeof g=="function"?g():g)},V=p=>{const g=()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Ma,p,null),Vue.createVNode(xa,Vue.mergeProps(p,{onChangeSize:m.bind(this)}),null),Vue.createVNode(Ra,null,null),Vue.createVNode(La,Vue.mergeProps(p,{onUpdateColumn:S.bind(this)}),null)]);return e.toolOptions?e.coverTool?b:()=>Vue.createVNode(Vue.Fragment,null,[g(),b()]):g};return Vue.provide(I.tableKey,{uuidTable:i,uuidWrapper:a,wrapperRef:n}),o({rTableInst:r,uuidTable:i,uuidWrapper:a}),{uuidWrapper:a,uuidTable:i,contextMenuReactive:l,rTableInst:r,combineRowProps:u,contextMenuSelect:c,privateReactive:s,tool:V,wrapperRef:n}},render(){const{tool:e}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps({ref:"wrapperRef",bordered:this.wrapperBordered},{id:this.uuidWrapper}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({ref:"rTableInst"},{id:this.uuidTable},this.$props,this.$attrs,{rowProps:this.combineRowProps.bind(this),size:this.privateReactive.size}),{...this.$slots}),this.disabledContextMenu?null:Vue.createVNode(naive.NDropdown,{show:this.contextMenuReactive.showContextMenu,placement:"bottom-start",trigger:"manual",x:this.contextMenuReactive.x,y:this.contextMenuReactive.y,options:this.contextMenuOptions,onClickoutside:()=>this.contextMenuReactive.showContextMenu=!1,onSelect:this.contextMenuSelect.bind(this)},null)]),header:oe(this.title,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":()=>{let t;return Vue.createVNode(naive.NSpace,{wrapItem:!1,align:"center"},Pa(t=e(this.$props))?t:{default:()=>[t]})},footer:()=>{var t,o;return(o=(t=this.$slots).tableFooter)==null?void 0:o.call(t)},action:()=>{var t,o;return(o=(t=this.$slots).tableAction)==null?void 0:o.call(t)}})}}),Da={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},za=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Da),setup(e){const{getKeepAliveInclude:t}=Dr(),{setupKeepAlive:o,maxKeepAliveLength:r,keepAliveExclude:n}=Xe;return(a,i)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(l,null,{default:Vue.withCtx(({Component:s,route:c})=>[s?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(r),include:Vue.unref(t),exclude:Vue.unref(n)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:c.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:c.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}});var Ia={pkg:{dependencies:{"@vueuse/core":"^10.6.1","awesome-qr":"2.1.5-rc.0",axios:"^1.5.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.4.3",interactjs:"1.10.21","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.35.0",pinia:"^2.1.6","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.3.10","vue-hooks-plus":"1.8.5","vue-i18n":"^9.7.1","vue-router":"^4.2.4",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^4.4.1","@vitejs/plugin-vue-jsx":"^3.0.2","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"^8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.4","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.4.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ea=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=Ia;return{sideBarLogo:t,handleSideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:n})=>Vue.createVNode(k,{name:t.icon,size:"30",cursor:n},null)}},render(){var e,t,o,r;return(e=this.sideBarLogo)!=null&&e.icon&&((t=this.sideBarLogo)!=null&&t.title)?Vue.createVNode("div",{class:["ray-menu__logo",(o=this.sideBarLogo)!=null&&o.url?"ray-menu__logo-url":null],onClick:this.handleSideBarLogoClick.bind(this)},[(r=this.sideBarLogo)!=null&&r.icon?this.collapsed?Vue.createVNode(naive.NPopover,{placement:"right"},{trigger:()=>Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null),default:()=>{var n;return(n=this.sideBarLogo)==null?void 0:n.title}}):Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null):null,Vue.createVNode("h1",{class:[this.collapsed?null:"ray-menu__logo-title--open","ray-menu__logo-title"]},[Vue.createVNode(naive.NEllipsis,null,{default:()=>{var n;return[(n=this.sideBarLogo)==null?void 0:n.title]}})])]):null}}),ja=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=J(),{getMenuOptions:r,getCollapsed:n,getMenuKey:a}=q(),i=Vue.computed({get:()=>(Vue.nextTick().then(()=>{c()}),a.value),set:()=>{l.value&&E("globalDrawerValue",!1)}}),{isTabletOrSmaller:l}=he(),s=Vue.computed({get:()=>j("globalDrawerValue").value,set:m=>{E("globalDrawerValue",m)}}),c=()=>{const m=i.value;Vue.nextTick().then(()=>{var S,b;(b=(S=e.value)==null?void 0:S.showOption)==null||b.call(S,m)})};return{isTabletOrSmaller:l,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{bordered:!0,showTrigger:!l.value,collapseMode:U.menuCollapsedMode,collapsedWidth:U.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1},{default:()=>[Vue.createVNode(Ea,{collapsed:n.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",value:i.value,"onUpdate:value":m=>i.value=m,options:r.value,indent:U.menuCollapsedIndent,collapsed:n.value,collapsedIconSize:U.menuCollapsedIconSize,collapsedWidth:U.menuCollapsedWidth,onUpdateValue:(m,S)=>{t(m,S)},accordion:U.menuAccordion},null)]}),modelGlobalDrawerValue:s}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class $a{constructor(){Le(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.needCancel)??!0}generateRequestKey(t){const{method:o,url:r}=t;return[r||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){const r=this.generateRequestKey(t);if(this.pendingRequest.has(r))t.signal=(o=this.pendingRequest.get(r))==null?void 0:o.signal;else{const n=new AbortController;t.signal=n.signal,this.pendingRequest.set(r,n)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const fe={requestInstance:null,responseInstance:null},ye={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},ie={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Ba=new $a,ul=()=>{const e=(l,s)=>{s==="requestInstance"?fe.requestInstance=l:fe.responseInstance=l},t=l=>fe[l],o=(l,s,c)=>{c==="ok"?ye[l]=s:ie[l]=s},r=(l,s)=>s==="ok"?ye[l]:ie[l],n=(l,...s)=>{Array.isArray(l)&&(l==null||l.forEach(c=>{typeof c=="function"&&c(...s)}))};return{createAxiosInstance:e,setImplement:o,getImplement:r,getAxiosInstance:t,beforeFetch:(l,s,c)=>{const u=c==="ok"?ye[s]:ie[s],m=t(l),{MODE:S}=ve();m&&n(u,m,S)},fetchError:(l,s,c)=>{const u=ie[c],{MODE:m}=ve();n(u,s,m)}}},Fa=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Ba.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{style:{display:"none"}},null)}}),so=Vue.defineComponent({name:"LayoutContentWrapper",setup(){const e=VueRouter.useRouter(),{maximize:t}=et(),{getContentTransition:o}=$(),r=Vue.ref(!1),n={opacitySpinning:"0"},a=j("globalMainLayoutLoad"),i=j("layoutContentMaximize"),l=j("layoutContentSpinning");return(()=>{e.beforeEach(()=>{r.value=!0}),e.afterEach(()=>{r.value=!1})})(),{globalMainLayoutLoad:a,spinning:r,themeOverridesSpin:n,getContentTransition:o,layoutContentMaximize:i,maximize:t,layoutContentSpinning:l}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o}=this,{maximize:r}=this;return Vue.createVNode(naive.NSpin,{show:this.spinning||!e||o,description:"loading...",size:"large",themeOverrides:this.themeOverridesSpin,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{r(!1)}},[Vue.createVNode(k,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(Fa,null,null),e?Vue.createVNode(za,{class:"content-wrapper",transitionPropName:this.getContentTransition+"-transform"},null):null]})}}),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"}));var Ka={pkg:{dependencies:{"@vueuse/core":"^10.6.1","awesome-qr":"2.1.5-rc.0",axios:"^1.5.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.4.3",interactjs:"1.10.21","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.35.0",pinia:"^2.1.6","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.3.10","vue-hooks-plus":"1.8.5","vue-i18n":"^9.7.1","vue-router":"^4.2.4",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^4.4.1","@vitejs/plugin-vue-jsx":"^3.0.2","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"^8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.4","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.4.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ua=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ka;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),ze=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=n=>{t("click",n)};return{iconClick:o,Icon:()=>Vue.createVNode(k,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),qa=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=la(),{getAppTheme:o}=$(),r=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:r}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:r}=this;return Vue.createVNode(naive.NSpace,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":n=>this.modelAppThemeRef=n,railStyle:r.bind(this),onUpdateValue:n=>n?t():o()},{"checked-icon":()=>Vue.createVNode(k,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(k,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function se(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ga=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:r}=z(),{getAppTheme:n,getPrimaryColorOverride:a,getMenuTagSwitch:i,getBreadcrumbSwitch:l,getCopyrightSwitch:s,getContentTransition:c,getWatermarkSwitch:u}=$(),m=Vue.computed({get:()=>e.show,set:V=>{t("update:show",V)}}),S=[{label:"无",value:"none"},{label:"缩放效果",value:"scale"},{label:"淡入淡出",value:"fade"},{label:"闪入效果",value:"opacity"}],b=Vue.reactive({getMenuTagSwitch:i.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:s.value,getContentTransition:c.value,getWatermarkSwitch:u.value});return{modelShow:m,changePrimaryColor:o,getAppTheme:n,getPrimaryColorOverride:a,contentTransitionOptions:S,updateSettingState:r,modelSwitchReactive:b}},render(){let e,t,o,r;const{$t:n}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:n("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NSpace,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},se(e=n("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(qa,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},se(t=n("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:xe.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":a=>this.getPrimaryColorOverride.common.primaryColor=a,onUpdateValue:this.changePrimaryColor.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},se(o=n("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":a=>this.modelSwitchReactive.getContentTransition=a,options:this.contentTransitionOptions,onUpdateValue:a=>{this.updateSettingState("contentTransition",a)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},se(r=n("headerSettingOptions.InterfaceDisplay"))?r:{default:()=>[r]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getMenuTagSwitch=a,onUpdateValue:a=>this.updateSettingState("menuTagSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getBreadcrumbSwitch=a,onUpdateValue:a=>this.updateSettingState("breadcrumbSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getWatermarkSwitch=a,onUpdateValue:a=>this.updateSettingState("watermarkSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getCopyrightSwitch=a,onUpdateValue:a=>this.updateSettingState("copyrightSwitch",a)},null)]})]})]})]})]})}});function Ha(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ya=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=J(),{getBreadcrumbOptions:t}=q(),{isTabletOrSmaller:o}=he();return{getBreadcrumbOptions:t,dropdownSelect:(a,i)=>{e(a,i)},breadcrumbItemClick:a=>{var i;if(!((i=a.children)!=null&&i.length)){const{meta:l={}}=a;l.sameLevel||e(a.key,a)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:r,breadcrumbItemClick:n}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Ha(e=o.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.path,onClick:n.bind(this,a)},{default:()=>{var i;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",options:a.children&&((i=a.children)==null?void 0:i.length)>1?a.children:[],onSelect:r.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Ie(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Xa=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o}=J(),r=Vue.computed({get:()=>e.show,set:d=>{t("update:show",d),d||u()}}),{getMenuOptions:n}=q(),a=Vue.reactive({searchValue:null,searchOptions:[]}),i=[{icon:"cmd / ctrl + k",label:"唤起",plain:!0},{icon:"↑ ↓",label:"切换",plain:!0},{icon:"↵",label:"选择",plain:!0},{icon:"esc",label:"关闭",plain:!0}];let l=0,s=l;const{isTabletOrSmaller:c}=he(),u=()=>{a.searchOptions=[],a.searchValue=null,l=0,s=l},m=d=>{(d.ctrlKey||d.metaKey)&&d.key==="k"&&(d.preventDefault(),d.stopPropagation(),u(),r.value=!0)},S=d=>{const f=[],N=O=>{O.forEach(y=>{var M,A,W;(M=y.children)!=null&&M.length&&we(y)&&N(y.children);const w=(A=y.breadcrumbLabel)==null?void 0:A.toLocaleLowerCase(),R=String(d).toLocaleLowerCase();w!=null&&w.includes(R)&&we(y)&&!((W=y.children)!=null&&W.length)&&f.push(y)})};d?(N(n.value),a.searchOptions=f):a.searchOptions=[],Vue.nextTick().then(()=>{V()})},b=d=>{if(d){const{meta:f}=d;f.windowOpen?window.open(f.windowOpen):(r.value=!1,o(d.key,d))}},V=()=>{const d=a.searchOptions[l],f=a.searchOptions[s],N="content-item--active";d&&Vue.nextTick().then(()=>{const O=Ve(`attr:data_path="${d.path}"`),y=f?Ve(`attr:data_path="${f==null?void 0:f.path}"`):null;if(y!=null&&y.length){const[w]=y;To(w,N)}if(O!=null&&O.length){const[w]=O;Oo(w,N)}})},p=d=>{const{icon:f}=d;return typeof f=="string"?Vue.createVNode(k,{name:f,size:"24"},null):typeof f=="function"?()=>f:Vue.createVNode(k,{name:"table",size:"24"},null)},g=d=>{d==="up"?l=l-1<0?0:l-1:d==="down"&&(l=l+1>=a.searchOptions.length?a.searchOptions.length-1:l+1)},h=d=>{const f=d.key;switch((f==="ArrowUp"||f==="ArrowDown")&&(d.preventDefault(),d.stopPropagation()),s=l<=0?0:l,f){case"ArrowUp":g("up");break;case"ArrowDown":g("down");break;case"Enter":const N=a.searchOptions[l];N&&b(N);break}V()},v=({menuOption:d})=>Vue.createVNode(naive.NSpace,Vue.mergeProps({align:"center",wrapItem:!1,class:"content-item"},{onClick:b.bind(this,d),data_path:d.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[p(d.meta)]),Vue.createVNode("div",{class:"content-item-label"},[d.breadcrumbLabel])]});return Vue.watchEffect(()=>{c.value&&(r.value=!1)}),Se(window,"keydown",d=>{m(d),h(d)}),{...Vue.toRefs(a),modelShow:r,helperTipOptions:i,fuzzySearchMenuOptions:Io(S,300),handleSearchItemClick:b,RenderPreIcon:p,isTabletOrSmaller:c,SearchItem:v}},render(){let e,t;const{isTabletOrSmaller:o,searchOptions:r}=this,{SearchItem:n}=this;return o?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode("div",{class:"global-search__card"},[Vue.createVNode("div",{class:"global-search__card-header"},[Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:this.fuzzySearchMenuOptions.bind(this)},{prefix:()=>Vue.createVNode(k,{name:"search",size:"24"},null)})]),Vue.createVNode(naive.NScrollbar,{class:"global-search__card-content"},{default:()=>[r.length?Vue.createVNode(naive.NSpace,{vertical:!0,wrapItem:!1,size:[8,8]},Ie(e=r.map(a=>Vue.createVNode(n,{menuOption:a,key:a.key},null)))?e:{default:()=>[e]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NSpace,{wrapItem:!1,justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(k,{name:"empty",size:"24"},null),Vue.createTextVNode("暂无搜索结果")]})})]}),Vue.createVNode("div",{class:"global-search__card-footer"},[Vue.createVNode(naive.NSpace,{class:"card-footer__tip-wrapper",align:"center",wrapItem:!1,size:[24,8]},Ie(t=this.helperTipOptions.map(a=>Vue.createVNode("div",{class:"tip-wrapper-item",key:a.label},[Vue.createVNode("div",{class:"item-icon"},[a.plain?Vue.createVNode("span",null,[a.icon]):Vue.createVNode(k,{name:a.icon,size:"18"},null)]),Vue.createVNode("div",{class:"item-label"},[a.label])])))?t:{default:()=>[t]})])])])])]})}}),Za=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,...naive.spaceProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){const t=ae(Te.signing),o=Vue.computed(()=>({"--app-avatar-cursor":e.cursor}));return{signing:t,cssVars:o}},render(){return Vue.createVNode(naive.NSpace,Vue.mergeProps({class:"app-avatar"},this.$props,{wrapItem:!1,style:this.cssVars,size:this.spaceSize}),{default:()=>{var e,t;return[Vue.createVNode(naive.NAvatar,Vue.mergeProps(this.$props,{src:(e=this.signing)==null?void 0:e.avatar,objectFit:"cover",round:!0,size:this.avatarSize}),null),Vue.createVNode("div",{class:"app-avatar__name"},[(t=this.signing)==null?void 0:t.name])]}})}}),Qa=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ja={logout:()=>{const{logout:e}=Pr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=z();e("lockScreenSwitch",!0)}},er=e=>{const t=Ja[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},tr=e=>{const{isTabletOrSmaller:t,globalMainLayoutLoad:o}=e,{t:r}=Z(),n=[{name:"reload",size:18,tooltip:r("headerTooltip.Reload"),iconClass:o.value?"":"ray-icon__reload--loading",eventKey:"reload"}],a=[{name:"menu",size:18,eventKey:"menu"}];return t.value?a:n},or=e=>{const{isFullscreen:t,isTabletOrSmaller:o}=e,{t:r}=Z(),n=[{name:"fullscreen",size:18,tooltip:t.value?r("headerTooltip.CancelFullScreen"):r("headerTooltip.FullScreen"),eventKey:"screen"},{name:"github",size:18,tooltip:r("headerTooltip.Github"),eventKey:"github"},{name:"setting",size:18,tooltip:r("headerTooltip.Setting"),eventKey:"setting"}],a=[{name:"search",size:18,tooltip:r("headerTooltip.Search"),eventKey:"search"},...n],i=[...n];return o.value?i:a},nr=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=z(),{t:o}=Z(),{reload:r}=tt(),[n,{toggleFullscreen:a,isEnabled:i}]=Ue(document.getElementsByTagName("html")[0]),{getDrawerPlacement:l,getBreadcrumbSwitch:s}=$(),c=Vue.ref(!1),u={display:"flex"},m=Vue.ref(!1),{isTabletOrSmaller:S}=he(),b=j("globalDrawerValue"),V=j("globalMainLayoutLoad"),p=Vue.computed(()=>tr({isFullscreen:n,isTabletOrSmaller:S,globalMainLayoutLoad:V})),g=Vue.computed(()=>or({isFullscreen:n,isTabletOrSmaller:S,globalMainLayoutLoad:V})),h={reload:()=>{r()},setting:()=>{c.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{i||window.$message.warning(o("globalMessage.isEnabledFullscreen")),a()},search:()=>{m.value=!0},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{E("globalDrawerValue",!b.value)}};return{leftIconOptions:p,rightTooltipIconOptions:g,toolIconClick:d=>{var f;(f=h[d])==null||f.call(h)},showSettings:c,updateLocale:e,spaceItemStyle:u,getDrawerPlacement:l,getBreadcrumbSwitch:s,globalSearchShown:m}},render(){return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header",bordered:!0},{default:()=>[Vue.createVNode(Xa,{show:this.globalSearchShown,"onUpdate:show":e=>this.globalSearchShown=e},null),Vue.createVNode(naive.NSpace,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[Vue.createVNode(naive.NSpace,{align:"center",wrapItem:!1,itemStyle:this.spaceItemStyle},{default:()=>[this.leftIconOptions.map(e=>Vue.createVNode(ze,{key:e.name,iconName:e.name,tooltipText:Vue.isRef(e.tooltip)?e.tooltip.value:e.tooltip,customClassName:e.iconClass,onClick:this.toolIconClick.bind(this,e.name)},null)),this.getBreadcrumbSwitch?Vue.createVNode(Ya,null,null):null]}),Vue.createVNode(naive.NSpace,{align:"center",wrapItem:!1,itemStyle:this.spaceItemStyle},{default:()=>[this.rightTooltipIconOptions.map(e=>Vue.createVNode(ze,{key:e.name,iconName:e.name,tooltipText:Vue.isRef(e.tooltip)?e.tooltip.value:e.tooltip,customClassName:e.iconClass,onClick:this.toolIconClick.bind(this,e.name)},null)),Vue.createVNode(naive.NDropdown,{options:Ye,onSelect:e=>this.updateLocale(String(e)),trigger:"click"},{default:()=>[Vue.createVNode(k,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]}),Vue.createVNode(naive.NDropdown,{options:Qa(),onSelect:er.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Za,{avatarSize:"small",align:"center",cursor:"pointer"},null)]})]})]}),Vue.createVNode(Ga,{show:this.showSettings,"onUpdate:show":e=>this.showSettings=e,placement:this.getDrawerPlacement},null)]})}}),ar=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NSpace,{wrapItem:!1,size:[0,0]},{default:()=>[Vue.createVNode(nr,null,null)]})}}),rr={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},lr=He('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="20" stroke-dashoffset="20" d="M21 3v18"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="20;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M3 12h13.5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.4s" dur="0.2s" values="15;0"></animate></path><path stroke-dasharray="12" stroke-dashoffset="12" d="m17 12-7 7m7-7-7-7"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="12;0"></animate></path></g>',1),ir=[lr];function sr(e,t){return qe(),Ge("svg",rr,[...ir])}const cr={render:sr},ur={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},dr=He('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path stroke-dasharray="20" stroke-dashoffset="20" d="M3 3v18"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="20;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M21 12H7.5"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.4s" dur="0.2s" values="15;0"></animate></path><path stroke-dasharray="12" stroke-dashoffset="12" d="m7 12 7 7m-7-7 7-7"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="12;0"></animate></path></g>',1),pr=[dr];function mr(e,t){return qe(),Ge("svg",ur,[...pr])}const hr={render:mr};function gr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const fr=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:r,getMenuTagOptions:n}=q(),{changeMenuModelValue:a}=J(),{getRootPath:i}=Q(),{maximize:l}=et(),{reload:s}=tt(),{close:c,closeAll:u,closeRight:m,closeLeft:S,closeOther:b}=ia(),V=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let p=-1;const g={size:16},h=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(k,{name:"reload",size:g.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(k,{name:"close",size:g.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(hr,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(cr,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(k,{name:"other",size:g.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(k,{name:"resize_h",size:g.size},null),disabled:!1}]),v=de(16),d={closeCurrentPage:()=>{r.value!==i.value&&c(p)},reloadCurrentPage:()=>{s()},closeAll:()=>{u()},closeRight:()=>{m(p)},closeLeft:()=>{S(p)},closeOther:()=>{b(p)}},f=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),N="menu_tag_data",O=_=>{c(_)},y=(_,C)=>{h.value.forEach(P=>{if(P.key===_){P.disabled=C;return}})},w=_=>{f.actionDropdownShow=!1,a(_.key,_)},R=()=>{const _=document.getElementById(v);if(_)return Array.from(_.childNodes).find(re=>xo(re,"n-scrollbar-container").value)},M=_=>{var P;const C=R();if(C){const re=C.scrollLeft||0,Ae=_==="left"?Math.max(0,re-200):re+200;(P=o.value)==null||P.scrollTo({left:Ae,behavior:"smooth"})}},A=_=>{var C;f.actionDropdownShow=!1,(C=d[_])==null||C.call(d)},W=(_,C)=>{C.preventDefault(),f.actionDropdownShow=!1,p=_,Vue.nextTick(()=>{f.actionDropdownShow=!0,f.x=C.clientX,f.y=C.clientY})},ee=()=>{const _=n.value.length-1,{closeable:C}=n.value[p]??{};y("closeCurrentPage",!C),p===_?y("closeRight",!0):p<_&&y("closeRight",!1),p===0?y("closeLeft",!0):p>0&&y("closeLeft",!1)},G=()=>{p=n.value.findIndex(C=>C.key===r.value),ee()},yo=_=>{n.value.length>1&&_.key!==i.value&&(_.closeable=!0)},bo=_=>{_.key!==r.value&&(_.closeable=!1)},vo=()=>{R()&&Vue.nextTick().then(()=>{var C;(C=o.value)==null||C.scrollTo({left:99999,behavior:"smooth"})})},Vo=()=>{Vue.nextTick().then(()=>{const _=Ve(`attr:${N}="${r.value}"`);if(_!=null&&_.length){const[C]=_;Vue.nextTick().then(()=>{var P;(P=o.value)==null||P.scrollTo({left:C.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>n.value,(_,C)=>{h.value.forEach(P=>{V.includes(P.key)&&(_.length>1?P.disabled=!1:P.disabled=!0)}),C!=null&&C.length&&(_.length>(C==null?void 0:C.length)?vo():_.length===(C==null?void 0:C.length)&&Vo())},{immediate:!0}),Vue.watch(()=>f.actionDropdownShow,_=>{var C;_&&((C=ke(ee,100))==null||C())}),t({}),{getMenuTagOptions:n,changeMenuModelValue:a,closeCurrentMenuTag:O,getMenuKey:r,handleTagClick:w,moreOptions:h,scrollX:M,scrollRef:o,uuidScrollBar:v,actionDropdownSelect:A,actionState:f,handleContextMenu:W,setCurrentContextmenuIndex:G,menuTagMouseenter:yo,menuTagMouseleave:bo,MENU_TAG_DATA:N,iconConfig:{width:20,height:28},maximize:l,getRootPath:i}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:r}=this,{maximize:n,closeCurrentMenuTag:a,scrollX:i,$t:l}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:this.actionDropdownSelect.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NSpace,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,wrapItem:!1},{default:()=>[Vue.createVNode(k,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:r}),{default:()=>[Vue.createVNode(naive.NSpace,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},gr(e=this.getMenuTagOptions.map((s,c)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:s.key,class:["menu-tag__btn"],strong:!0,secondary:!0,type:s.key===this.getMenuKey?"primary":"default"},{onClick:this.handleTagClick.bind(this,s),onContextmenu:this.handleContextMenu.bind(this,c),onMouseenter:this.menuTagMouseenter.bind(this,s),onMouseleave:this.menuTagMouseleave.bind(this,s),[this.MENU_TAG_DATA]:s.path}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:u,meta:{i18nKey:m}}=s;return m?l(m):u}}),(s.closeable||this.getMenuTagOptions.length===1)&&s.key!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:a.bind(this,c)}),{default:()=>[Vue.createVNode(k,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[s.key!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NSpace,{class:"menu-tag__right-wrapper",wrapItem:!1,align:"center",inline:!0,wrap:!1,size:[6,6]},{default:()=>[Vue.createVNode(k,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:i.bind(this,"right")},null),Vue.createVNode(k,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{n(!0)}},null),Vue.createVNode(io,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(k,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),yr=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(fr,null,null)}}),br=e=>{const t=ge(e[0]),o=ge(e[1]),r=ge(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${r.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${r.height.value}px`}))},Ee=Do("isAppLockScreen",!1,sessionStorage,{mergeDefaults:!0}),vr=()=>({setLockAppScreen:o=>{Ee.value=o},getLockAppScreen:()=>Ee.value}),Vr=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:r,getCopyrightSwitch:n}=$(),{getLockAppScreen:a}=vr(),i=br([e,t,o]);return{getMenuTagSwitch:r,cssVarsRef:i,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:n}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:r}=this;return r()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0},{default:()=>[Vue.createVNode(ja,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(ar,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(yr,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Oe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(so,null,null)]}),o?Vue.createVNode(Ua,{ref:"layoutFooterRef"},null):null]})]})}}),je=e=>e.startsWith("/"),co=(e,t=[],o="")=>Array.isArray(e)?(e.forEach(n=>{var a;if((a=n.children)!=null&&a.length)co(n.children,t,o+(je(n.path)?n.path:"/"+n.path));else{const i=o+(je(n.path)?n.path:"/"+n.path),l={...n,path:i};t.push(l)}}),t):[],Sr=e=>Array.isArray(e)?co(pe(e)):[],uo=()=>aa(na()),wr=Sr(uo()),_r=async()=>{const{getRootPath:e}=Q();return[{path:"/",name:"login",component:()=>T(()=>import("./index-e4YID1gZ.js"),__vite__mapDeps([59,18,1,2,3,4,19,20,5,6,7,8,9,10,11,12,13,14,15,16,17,47,21,22,33,23,24,25,26,27,28,29,30,60]))},{path:"/",name:"layout",redirect:e.value,component:Vr,children:wr}]};let ne;const Cr=async()=>VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:await _r(),scrollBehavior:e=>(ra(e),{top:0,left:0})}),dl=async e=>{ne=await Cr(),ua(ne),e.use(ne),Re()},Re=()=>{try{if(ne)return{router:ne};throw new Error}catch{throw new Error("router is not defined")}},$e="YYYY-MM-DD HH:mm:ss",Nr=()=>({locale:i=>{const l=un[i];l?B.locale(l):B.locale(dn)},getStartAndEndOfDay:i=>{const{format:l=$e}=i??{},s=B(),c=s.startOf("day"),u=s.endOf("day"),m=s.format(l),S=c.format(l);return{today:s,startOfDay:c,endOfDay:u,formatToday:m,formatStartOfDay:S}},format:(i,l)=>{const{format:s=$e}=l??{};return B(i).format(s)},isDayjs:i=>B.isDayjs(i),daysDiff:(i,l)=>{const s=B(i);return B(l).diff(s,"days")},isDateInRange:(i,l)=>{const{start:s,end:c}=l,u=B(i);return u.isAfter(s)&&u.isBefore(c)}});function he(){const{width:e,height:t}=Ne(),o=Vue.ref(!1);return Ro(()=>{o.value=e.value<=768}),{width:e,height:t,isTabletOrSmaller:o}}let Be=999,be=!1;const K="ELEMENT-FULLSCREEN-RAY",{height:Fe}=Ne(),We=document.createElement("style"),kr=(e,t)=>{const{beforeEnter:o,beforeExit:r,backgroundColor:n,zIndex:a}=t??{},i={};let l=!1;const s=()=>{const b=Y(e);if(!b)return;const{left:V,top:p}=b.getBoundingClientRect(),g=`
[${K}] {
position: fixed;
width: 100% !important;
height: ${Fe.value}px !important;
transform: translate(-${V}px, -${p}px) !important;
transition: all 0.3s var(--r-bezier);
z-index: ${X(a,"Null")||X(a,"Undefined")?Be:a} !important;
background-color: ${n??null};
}
`;We.innerHTML=g,be||document.head.appendChild(We)},c=()=>{const b=Y(e);o==null||o(),b&&(b.getAttribute(K)||b.setAttribute(K,K),l||(l=!0,Be+=1),be||(s(),be=!0),i.transition=b.style.transition,b.style.transition="all 0.3s var(--r-bezier)")},u=()=>{r==null||r();const b=Y(e);b&&b.removeAttribute(K)},m=()=>{const b=Y(e);b&&(b.getAttribute(K)?u():c())},S=Vue.watch(()=>Fe.value,s);return Ao(()=>{const b=Y(e);b&&(b.style.transition=i.transition??"",b.removeAttribute(K)),S()}),{enter:c,exit:u,toggleFullscreen:m}};var Tr={pkg:{dependencies:{"@vueuse/core":"^10.6.1","awesome-qr":"2.1.5-rc.0",axios:"^1.5.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.4.3",interactjs:"1.10.21","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.35.0",pinia:"^2.1.6","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.3.10","vue-hooks-plus":"1.8.5","vue-i18n":"^9.7.1","vue-router":"^4.2.4",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^4.4.1","@vitejs/plugin-vue-jsx":"^3.0.2","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"^8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.4","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.4.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const po=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Tr,{locale:t}=Z(),{locale:o}=Nr(),r=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{...xe.appNaiveUIThemeOverrides,common:{primaryColor:e,primaryColorHover:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Ze(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:pe(mn)}),n=l=>{t(l),o(l),r.localeLanguage=l,Ce("localeLanguage",l,"localStorage")},a=(l,s=.3)=>{ce(r,"settingState.primaryColorOverride.common.primaryColorHover",l);const c=document.body;c.style.setProperty("--ray-theme-primary-color",l),c.style.setProperty("--ray-theme-primary-fade-color",Lo(l,s))},i=(l,s,c)=>{Object.hasOwn(r,l)&&(r[l]=s),c==null||c()};return{...Vue.toRefs(r),updateLocale:n,changePrimaryColor:a,updateSettingState:i}},{persist:{key:"piniaSettingStore"}});var Or={pkg:{dependencies:{"@vueuse/core":"^10.6.1","awesome-qr":"2.1.5-rc.0",axios:"^1.5.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.4.3",interactjs:"1.10.21","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.35.0",pinia:"^2.1.6","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.3.10","vue-hooks-plus":"1.8.5","vue-i18n":"^9.7.1","vue-router":"^4.2.4",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^4.4.1","@vitejs/plugin-vue-jsx":"^3.0.2","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"^8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.4","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.4.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const xr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,mo=(e,t,o)=>{const r=[];if(xr(e,t,o))return r.push(e),r;if(e.children&&e.children.length>0)for(const n of e.children){const a=mo(n,t,o);a.length>0&&r.push(e,...a)}return r},Rr=(e,t,o)=>{const r=[];for(const n of e){const a=mo(n,t,o);a.length>0&&r.push(...a)}return r},Ar=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Or,r=o?o.title:"";document.title=t+" - "+r},Lr=e=>{const{meta:t}=e;if(!t.icon)return;if(X(t.icon,"Object"))return()=>t.icon;const o=Vue.h(k,{name:t.icon,size:U.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},Ke=()=>{const{getRootPath:e}=Q();return ae("menuKey","sessionStorage",e.value)},ho=Pinia.defineStore("menu",()=>{const{router:e}=Re(),t=VueRouter.useRoute(),{t:o}=Z(),{setKeepAliveInclude:r}=zr(),n=Vue.reactive({menuKey:Ke(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),a=Vue.ref(!0),i=(h,v)=>Rr(h,"key",v),l=(h,v)=>{const{meta:d}=v;n.breadcrumbOptions=i(n.options,h),d.sameLevel&&Vue.nextTick().then(()=>{n.breadcrumbOptions.find(N=>N.path===v.path)||n.breadcrumbOptions.push(v)})},s=(h,v=!0)=>{const f=Array.isArray(h)?[...h]:[h];v?n.menuTagOptions.push(...f):n.menuTagOptions=f},c=(h,v)=>{n.menuTagOptions.find(f=>f.path===h)||n.menuTagOptions.push(v)},u=(h,v,d)=>{const{meta:f,path:N}=v;if(f.windowOpen)window.open(f.windowOpen);else{if(String(h).startsWith("/"))e.push({path:N,query:d});else{const y=i(n.options,h).map(w=>w.key).join("/");e.push({path:y,query:d})}const O=(N.match(new RegExp("/","g"))||[]).length;r(v),Ar(v),!f.sameLevel||f.sameLevel&&O===1?(c(h,v),l(h,v),n.menuKey=h,Ce("menuKey",h)):l(n.menuKey||"",v),n.currentMenuOption=v}},m=async(h,v)=>{const[d]=h.split("?"),f=(d.match(new RegExp("/","g"))||[]).length;let N=d;if(f>1){const y=d.split("/").filter(w=>w);N=y[y.length-1]}const O=(y,w)=>{var R,M;for(const A of w){if((R=A.children)!=null&&R.length){O(y,A.children);continue}if(y===A.key&&!((M=A==null?void 0:A.children)!=null&&M.length)){u(y,A,v);break}}};O(N,n.options)},S=()=>new Promise(h=>{const v=f=>{const{meta:N}=f,O=Vue.computed(()=>N!=null&&N.i18nKey?o(`${N.i18nKey}`):N==null?void 0:N.noLocalTitle),y={...f,key:f.path,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>O.value}),breadcrumbLabel:O.value},w=Object.assign({},y,{icon:Lr(f)});return f.path===Ke()&&c(f.path,w),w.show=we(w),w},d=(f,N)=>{var y;const O=[];for(const w of f){if((y=w.children)!=null&&y.length)w.children=d(w.children);else if(!ot(w.meta))continue;O.push(v(w))}return O};n.options=d(uo()),h()}),b=h=>n.collapsed=h,V=(h,v=1)=>n.menuTagOptions.splice(h,v),p=()=>{n.menuTagOptions=[]},g=async()=>{a.value&&(await S(),a.value=!1)};return Vue.watch(()=>t.fullPath,async(h,v)=>{await g(),h!==v&&await m(h,t.query)},{immediate:!0}),{...Vue.toRefs(n),changeMenuModelValue:ke(u,500),setupAppMenu:S,collapsedMenu:b,spliceMenTagOptions:V,emptyMenuTagOptions:p,setMenuTagOptions:s}},{persist:{key:"piniaMenuStore",storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),go=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=r=>new Promise((n,a)=>{Eo(r)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:r.name,avatar:"https://r2chevereto.yka.moe/longmao.navigator.png"},n({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),Mo("all-sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:"piniaSigningStore",paths:["signingCallback"],storage:sessionStorage}}),fo=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=Xe,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,r=a=>{const i=o(),{name:l,meta:{keepAlive:s}}=a;if(s){if(i<e&&!t.keepAliveInclude.includes(l)){t.keepAliveInclude.push(l);return}i>=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},n=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:r,getKeepAliveInclude:n}},{persist:{key:"piniaKeepAliveStore",storage:window.sessionStorage,paths:["keepAliveInclude"]}}),q=()=>{const e=ho(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),r=Vue.computed(()=>e.menuKey),n=Vue.computed(()=>{const{getRootPath:l}=Q();return e.menuTagOptions.map((s,c,u)=>(s.key===r.value&&s.key!==l.value?s.closeable=!0:s.closeable=!1,s.key===l.value&&(s.closeable=!1),u.length<=1&&(s.closeable=!1),s))}),a=Vue.computed(()=>e.currentMenuOption),i=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:r,getMenuTagOptions:n,getCurrentMenuOption:a,getCollapsed:i}},J=()=>{const{changeMenuModelValue:e,setupAppMenu:t,collapsedMenu:o,spliceMenTagOptions:r,emptyMenuTagOptions:n,setMenuTagOptions:a}=ho();return{changeMenuModelValue:e,setupAppMenu:t,collapsedMenu:o,spliceMenTagOptions:r,emptyMenuTagOptions:n,setMenuTagOptions:a}},$=()=>{const e=po(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),r=Vue.computed(()=>e.appTheme),n=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),i=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),s=Vue.computed(()=>e.copyrightSwitch),c=Vue.computed(()=>e.contentTransition),u=Vue.computed(()=>e.watermarkSwitch),m=Vue.computed(()=>e.watermarkConfig);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:r,getMenuTagSwitch:n,getBreadcrumbSwitch:a,getLocaleLanguage:i,getLockScreenSwitch:l,getCopyrightSwitch:s,getContentTransition:c,getWatermarkSwitch:u,getWatermarkConfig:m}},z=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=po();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},Mr=()=>{const e=go();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Pr=()=>{const{signing:e,logout:t}=go();return{signing:e,logout:t}},Dr=()=>{const e=fo();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},zr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=fo();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},pl=async e=>{const t=Pinia.createPinia();e.use(t),t.use(zo)};export{Za as A,tt as B,ol as C,dn as D,la as E,ue as F,Ye as L,sl as R,qa as T,T as _,z as a,vr as b,Pr as c,he as d,pl as e,dl as f,j as g,Z as h,Q as i,E as j,Te as k,k as l,Jr as m,el as n,ll as o,al as p,rl as q,cl as r,tl as s,Ba as t,$ as u,ul as v,il as w,io as x,nl as y,et as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/en-US-a1_w6Ie9.js","assets/print-js@1.6.0-gYKv6oGQ.js","assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js","assets/canvas@2.11.2-dZp4QMlu.js","assets/js-binary-schema-parser@2.0.3-CCV6nRej.js","assets/vue-hooks-plus@1.8.5_vue@3.3.10-UGgZVZ2w.js","assets/lodash@4.17.21-yUHHMES2.js","assets/js-cookie@3.0.5-bc0KQLgp.js","assets/screenfull@5.2.0-q9gEF-YC.js","assets/qs@6.11.2-wwOruwhc.js","assets/side-channel@1.0.4-hl21th03.js","assets/get-intrinsic@1.2.1-NE0DZZ3B.js","assets/has-symbols@1.0.3-fNtejGuA.js","assets/has-proto@1.0.1-dzJH2Y5C.js","assets/function-bind@1.1.1-Y6-kkB5s.js","assets/has@1.0.3-rcPLRdvS.js","assets/call-bind@1.0.2-8lNE5ocE.js","assets/dayjs@1.11.10-IrZctHvJ.js","assets/utils-B6Okv4Kv.js","assets/lodash-es@4.17.21-B0eCOOcg.js","assets/currency.js@2.0.4--or6eeOG.js","assets/@vueuse_core@10.6.1_vue@3.3.10-finMrxOz.js","assets/@vueuse_shared@10.6.1_vue@3.3.10-DJDYauAH.js","assets/interactjs@1.10.21-7zFZdvts.js","assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.6-fNhqB16x.js","assets/echarts@5.4.3-Vt5ZmFiA.js","assets/zrender@5.4.4-fafgp4mQ.js","assets/tslib@2.3.0-21A5UWR7.js","assets/@vue_runtime-core@3.3.10-40cgyS5D.js","assets/@vue_reactivity@3.3.10-4kz9-9E4.js","assets/@vue_shared@3.3.10--wkmpvo9.js","assets/zh-CN-69rzQYDa.js","assets/index-BLnYeGI8.js","assets/index-gjWEVNq5.js","assets/index-3nkF0W6U.css","assets/index-8IKjByf3.js","assets/instance-8HvHQCfd.js","assets/index-kznjMqp-.css","assets/index-yGgdYlS5.js","assets/index-L7wcF_Gk.js","assets/index-olXYPpee.js","assets/index-ajyCn2oj.css","assets/index-Ah2u6u11.js","assets/index-09TcvWUe.js","assets/index-HI97-lGW.js","assets/index-tc9r9SRT.js","assets/index-serutCs-.js","assets/ray-9TfU2AhD.js","assets/index-FeWEAadL.js","assets/index-HDKPr_0g.css","assets/index-tKuos9N3.js","assets/index-v5xFQW7A.js","assets/index-4oPeexgb.css","assets/index-La0mWDXU.js","assets/index-iKuv6ZNn.css","assets/index-l_23Na7f.js","assets/index-NwClnS-g.js","assets/index-Pdf0DJXE.js","assets/index-Btqqg3j9.css","assets/index-e4YID1gZ.js","assets/index-48JFfn_Q.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}