-1||J(E,"default"))&&f.push(h)}}}const d=[i,f];return ue(e)&&l.set(e,d),d}function Kn(e){return e[0]!=="$"}function $n(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Wn(e,t){return $n(e)===$n(t)}function qn(e,t){return V(t)?t.findIndex(n=>Wn(n,e)):W(t)&&Wn(t,e)?0:-1}const Cl=e=>e[0]==="_"||e==="$stable",Tn=e=>V(e)?e.map(pe):[pe(e)],$s=(e,t,n)=>{if(t._n)return t;const l=ol((...r)=>Tn(t(...r)),n);return l._c=!1,l},Fl=(e,t,n)=>{const l=e._ctx;for(const r in e){if(Cl(r))continue;const s=e[r];if(W(s))t[r]=$s(r,s,l);else if(s!=null){const i=Tn(s);t[r]=()=>i}}},kl=(e,t)=>{const n=Tn(t);e.slots.default=()=>n},Ws=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Lt(t),tn(t,"_",n)):Fl(t,e.slots={})}else e.slots={},t&&kl(e,t);tn(e.slots,$t,1)},qs=(e,t,n)=>{const{vnode:l,slots:r}=e;let s=!0,i=S;if(l.shapeFlag&32){const f=t._;f?n&&f===1?s=!1:(he(r,t),!n&&f===1&&delete r._):(s=!t.$stable,Fl(t,r)),i=t}else t&&(kl(e,t),i={default:1});if(s)for(const f in r)!Cl(f)&&!(f in i)&&delete r[f]};function Tl(){return{app:null,config:{isNativeTag:Sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vs=0;function Js(e,t){return function(l,r=null){W(l)||(l=Object.assign({},l)),r!=null&&!ue(r)&&(r=null);const s=Tl(),i=new Set;let f=!1;const u=s.app={_uid:Vs++,_component:l,_props:r,_container:null,_context:s,_instance:null,version:cr,get config(){return s.config},set config(d){},use(d,...m){return i.has(d)||(d&&W(d.install)?(i.add(d),d.install(u,...m)):W(d)&&(i.add(d),d(u,...m))),u},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),u},component(d,m){return m?(s.components[d]=m,u):s.components[d]},directive(d,m){return m?(s.directives[d]=m,u):s.directives[d]},mount(d,m,h){if(!f){const y=te(l,r);return y.appContext=s,m&&t?t(y,d):e(y,d,h),f=!0,u._container=d,d.__vue_app__=u,qt(y.component)||y.component.proxy}},unmount(){f&&(e(null,u._container),delete u._container.__vue_app__)},provide(d,m){return s.provides[d]=m,u}};return u}}function Ht(e,t,n,l,r=!1){if(V(e)){e.forEach((y,E)=>Ht(y,t&&(V(t)?t[E]:t),n,l,r));return}if(We(l)&&!r)return;const s=l.shapeFlag&4?qt(l.component)||l.component.proxy:l.el,i=r?null:s,{i:f,r:u}=e,d=t&&t.r,m=f.refs===S?f.refs={}:f.refs,h=f.setupState;if(d!=null&&d!==u&&(me(d)?(m[d]=null,J(h,d)&&(h[d]=null)):qe(d)&&(d.value=null)),W(u))Ie(u,f,12,[i,m]);else{const y=me(u),E=qe(u);if(y||E){const O=()=>{if(e.f){const P=y?J(h,u)?h[u]:m[u]:u.value;r?V(P)&&gn(P,s):V(P)?P.includes(s)||P.push(s):y?(m[u]=[s],J(h,u)&&(h[u]=m[u])):(u.value=[s],e.k&&(m[e.k]=u.value))}else y?(m[u]=i,J(h,u)&&(h[u]=i)):E&&(u.value=i,e.k&&(m[e.k]=i))};i?(O.id=-1,se(O,n)):O()}}}let Me=!1;const Ft=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",kt=e=>e.nodeType===8;function Ys(e){const{mt:t,p:n,o:{patchProp:l,createText:r,nextSibling:s,parentNode:i,remove:f,insert:u,createComment:d}}=e,m=(b,a)=>{if(!a.hasChildNodes()){n(null,b,a),Pt(),a._vnode=b;return}Me=!1,h(a.firstChild,b,null,null,null),Pt(),a._vnode=b,Me&&console.error("Hydration completed but contains mismatches.")},h=(b,a,g,k,B,I=!1)=>{const H=kt(b)&&b.data==="[",F=()=>P(b,a,g,k,B,H),{type:R,ref:L,shapeFlag:j,patchFlag:le}=a;let Z=b.nodeType;a.el=b,le===-2&&(I=!1,a.dynamicChildren=null);let D=null;switch(R){case Se:Z!==3?a.children===""?(u(a.el=r(""),i(b),b),D=b):D=F():(b.data!==a.children&&(Me=!0,b.data=a.children),D=s(b));break;case fe:Z!==8||H?D=F():D=s(b);break;case ft:if(H&&(b=s(b),Z=b.nodeType),Z===1||Z===3){D=b;const Ce=!a.children.length;for(let z=0;z -1||J(E,"default"))&&f.push(h)}}}const d=[i,f];return ue(e)&&l.set(e,d),d}function Kn(e){return e[0]!=="$"}function $n(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Wn(e,t){return $n(e)===$n(t)}function qn(e,t){return V(t)?t.findIndex(n=>Wn(n,e)):W(t)&&Wn(t,e)?0:-1}const Cl=e=>e[0]==="_"||e==="$stable",Tn=e=>V(e)?e.map(pe):[pe(e)],$s=(e,t,n)=>{if(t._n)return t;const l=ol((...r)=>Tn(t(...r)),n);return l._c=!1,l},Fl=(e,t,n)=>{const l=e._ctx;for(const r in e){if(Cl(r))continue;const s=e[r];if(W(s))t[r]=$s(r,s,l);else if(s!=null){const i=Tn(s);t[r]=()=>i}}},kl=(e,t)=>{const n=Tn(t);e.slots.default=()=>n},Ws=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Lt(t),tn(t,"_",n)):Fl(t,e.slots={})}else e.slots={},t&&kl(e,t);tn(e.slots,$t,1)},qs=(e,t,n)=>{const{vnode:l,slots:r}=e;let s=!0,i=S;if(l.shapeFlag&32){const f=t._;f?n&&f===1?s=!1:(he(r,t),!n&&f===1&&delete r._):(s=!t.$stable,Fl(t,r)),i=t}else t&&(kl(e,t),i={default:1});if(s)for(const f in r)!Cl(f)&&!(f in i)&&delete r[f]};function Tl(){return{app:null,config:{isNativeTag:Sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vs=0;function Js(e,t){return function(l,r=null){W(l)||(l=Object.assign({},l)),r!=null&&!ue(r)&&(r=null);const s=Tl(),i=new Set;let f=!1;const u=s.app={_uid:Vs++,_component:l,_props:r,_container:null,_context:s,_instance:null,version:cr,get config(){return s.config},set config(d){},use(d,...m){return i.has(d)||(d&&W(d.install)?(i.add(d),d.install(u,...m)):W(d)&&(i.add(d),d(u,...m))),u},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),u},component(d,m){return m?(s.components[d]=m,u):s.components[d]},directive(d,m){return m?(s.directives[d]=m,u):s.directives[d]},mount(d,m,h){if(!f){const y=te(l,r);return y.appContext=s,m&&t?t(y,d):e(y,d,h),f=!0,u._container=d,d.__vue_app__=u,qt(y.component)||y.component.proxy}},unmount(){f&&(e(null,u._container),delete u._container.__vue_app__)},provide(d,m){return s.provides[d]=m,u}};return u}}function Ht(e,t,n,l,r=!1){if(V(e)){e.forEach((y,E)=>Ht(y,t&&(V(t)?t[E]:t),n,l,r));return}if(We(l)&&!r)return;const s=l.shapeFlag&4?qt(l.component)||l.component.proxy:l.el,i=r?null:s,{i:f,r:u}=e,d=t&&t.r,m=f.refs===S?f.refs={}:f.refs,h=f.setupState;if(d!=null&&d!==u&&(me(d)?(m[d]=null,J(h,d)&&(h[d]=null)):qe(d)&&(d.value=null)),W(u))Ie(u,f,12,[i,m]);else{const y=me(u),E=qe(u);if(y||E){const O=()=>{if(e.f){const P=y?J(h,u)?h[u]:m[u]:u.value;r?V(P)&&gn(P,s):V(P)?P.includes(s)||P.push(s):y?(m[u]=[s],J(h,u)&&(h[u]=m[u])):(u.value=[s],e.k&&(m[e.k]=u.value))}else y?(m[u]=i,J(h,u)&&(h[u]=i)):E&&(u.value=i,e.k&&(m[e.k]=i))};i?(O.id=-1,se(O,n)):O()}}}let Me=!1;const Ft=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",kt=e=>e.nodeType===8;function Ys(e){const{mt:t,p:n,o:{patchProp:l,createText:r,nextSibling:s,parentNode:i,remove:f,insert:u,createComment:d}}=e,m=(b,a)=>{if(!a.hasChildNodes()){n(null,b,a),Pt(),a._vnode=b;return}Me=!1,h(a.firstChild,b,null,null,null),Pt(),a._vnode=b,Me&&console.error("Hydration completed but contains mismatches.")},h=(b,a,g,k,B,I=!1)=>{const H=kt(b)&&b.data==="[",F=()=>P(b,a,g,k,B,H),{type:R,ref:L,shapeFlag:j,patchFlag:le}=a;let Z=b.nodeType;a.el=b,le===-2&&(I=!1,a.dynamicChildren=null);let D=null;switch(R){case Se:Z!==3?a.children===""?(u(a.el=r(""),i(b),b),D=b):D=F():(b.data!==a.children&&(Me=!0,b.data=a.children),D=s(b));break;case fe:Z!==8||H?D=F():D=s(b);break;case ft:if(H&&(b=s(b),Z=b.nodeType),Z===1||Z===3){D=b;const Ce=!a.children.length;for(let z=0;z 0&&k("closeLeft",!1)},Pe=()=>{w=P.value.findIndex(f=>f.key===a.value),V1()},Ee=p=>{P.value.length>1&&p.key!==C&&(p.closeable=!0)},ze=p=>{p.key!==a.value&&(p.closeable=!1)},xe=()=>{S()&&H().then(()=>{var f;(f=o.value)==null||f.scrollTo({left:99999,behavior:"smooth"})})},Re=()=>{H().then(()=>{var f;const p=k1(`attr:${m}="${a.value}"`);if(p!=null&&p.length){const[A]=p;(f=A.scrollIntoView)==null||f.call(A)}})};return e1(()=>P.value,(p,f)=>{j.value.forEach(A=>{z.includes(A.key)&&(p.length>1?A.disabled=!1:A.disabled=!0)}),f!=null&&f.length&&(p.length>(f==null?void 0:f.length)?xe():p.length===(f==null?void 0:f.length)&&Re())},{immediate:!0}),e1(()=>g.actionDropdownShow,()=>{V1()}),t({}),{modelMenuTagOptions:P,changeMenuModelValue:c,closeCurrentMenuTag:v,menuKey:a,handleTagClick:x,moreOptions:j,handleScrollX:i1,scrollRef:o,scrollBarUUID:r,actionDropdownSelect:a1,rootPath:C,actionState:g,handleContextMenu:Te,setCurrentContentmenuIndex:Pe,menuTagMouseenter:Ee,menuTagMouseleave:ze,MENU_TAG_DATA:m}},render(){let e;return i(oe,null,{default:()=>[i("div",{class:"menu-tag"},[i(Q,{options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onClickoutside:()=>{this.actionState.actionDropdownShow=!1},onSelect:this.actionDropdownSelect.bind(this)},null),i(V,{class:"menu-tag-sapce",wrap:!1,align:"center",justify:"space-between",inline:!0,wrapItem:!1},{default:()=>[i(L,{name:"expanded",width:"20",height:"28",customClassName:"menu-tag__left-arrow",onClick:this.handleScrollX.bind(this,"left")},null),i(ee,$({xScrollable:!0,ref:"scrollRef"},{id:this.scrollBarUUID}),{default:()=>[i(V,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Et(e=this.modelMenuTagOptions.map((t,o)=>i(t2,$({size:"large",strong:!0,closable:t.closeable,onClose:this.closeCurrentMenuTag.bind(this,o),type:t.key===this.menuKey?"primary":"default",bordered:!1},{onClick:this.handleTagClick.bind(this,t),onContextmenu:this.handleContextMenu.bind(this,o),onMouseenter:this.menuTagMouseenter.bind(this,t),onMouseleave:this.menuTagMouseleave.bind(this,t),[this.MENU_TAG_DATA]:t.path}),{default:()=>{var l;return[typeof t.label=="string"?t.label:(l=t.label)==null?void 0:l.call(t)]}})))?e:{default:()=>[e]})]}),i("div",{class:"menu-tag__right-wrapper"},[i(L,{name:"expanded",width:"20",height:"28",customClassName:"menu-tag__right-arrow",onClick:this.handleScrollX.bind(this,"right")},null),i(Q,{options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this)},{default:()=>[i(L,{name:"more",width:"20",height:"28",customClassName:"menu-tag__right-setting",onClick:this.setCurrentContentmenuIndex.bind(this)},null)]})])]})])]})}});const xt=O({__name:"TransitionComponent",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){const t=Ce(),{keepAliveInclude:o}=Z(t),{setupKeepAlive:l,maxKeepAliveLength:n,keepAliveExclude:a}=ue;return(s,c)=>{const u=h2("RouterView");return c1(),r1(u,null,{default:j1(({Component:h,route:_})=>[i(Ie,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:j1(()=>[s1(l)?(c1(),r1(m2,{key:0,max:s1(n),include:s1(o),exclude:s1(a)},[(c1(),r1(N1(h),{key:_.fullPath}))],1032,["max","include","exclude"])):(c1(),r1(N1(h),{key:_.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}}),ye=O({name:"ContentWrapper",setup(){const e=I(),t=g2(),{reloadRouteSwitch:o}=Z(e),l=T(!1);return(()=>{t.beforeEach(()=>{l.value=!0}),t.afterEach(()=>{setTimeout(()=>{l.value=!1},300)})})(),{reloadRouteSwitch:o,spinning:l}},render(){return this.reloadRouteSwitch?i(le,{show:this.spinning,description:"loading...",size:"large"},{default:()=>[i(xt,{class:"content-wrapper"},null)]}):i(f2,null,null)}}),Rt=Object.freeze(Object.defineProperty({__proto__:null,default:ye},Symbol.toStringTag,{value:"Module"}));const Vt=O({name:"FooterWrapper",setup(){const{layout:{copyright:e}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0",axios:"^1.2.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.4",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0","qrcode.vue":"^3.3.4",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.47","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.7","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.61.0","@typescript-eslint/parser":"^5.61.0","@vitejs/plugin-vue":"^4.1.0","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.44.0","eslint-config-prettier":"^8.8.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.15.1",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-px-to-viewport":"^1.1.1",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"^5.0.2","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^4.3.9","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.6.4","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.7.26","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.4.2"},name:"ray-template",version:"4.0.4"},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)"}};return{copyright:e}},render(){return this.copyright?i("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),It=e=>{const t=H1(e[0]),o=H1(e[1]);return M(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`}))},K1=w2("isAppLockScreen",!1,sessionStorage,{mergeDefaults:!0}),y1=()=>({setLockAppScreen:o=>{K1.value=o},getLockAppScreen:()=>K1.value}),q1=O({name:"RLayout",setup(){const e=T(),t=T(),o=I(),{height:l}=S2(),{menuTagSwitch:n}=Z(o),{getLockAppScreen:a}=y1(),s=It([e,t]);return{windowHeight:l,modelMenuTagSwitch:n,cssVarsRef:s,getLockAppScreen:a,LAYOUT_CONTENT_REF:ve,layoutSiderBarRef:e,layoutMenuTagRef:t}},render(){return i("div",{class:["layout"],style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[this.getLockAppScreen()?"":i(Z1,{class:"layout-full",hasSider:!0},{default:()=>[i(bt,null,null),i(Z1,{class:"layout__view-container__layout"},{default:()=>[i(Pt,{ref:"layoutSiderBarRef"},null),this.modelMenuTagSwitch?i(zt,{ref:"layoutMenuTagRef"},null):"",i(o2,{ref:"LAYOUT_CONTENT_REF",class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[i(ye,null,null),i(Vt,null,null)]})]})]})])}}),_e=()=>yt(vt()),W1=e=>e.startsWith("/"),be=(e,t=[],o="")=>Array.isArray(e)?(e.forEach(n=>{var a;if((a=n.children)!=null&&a.length)be(n.children,t,o+(W1(n.path)?n.path:"/"+n.path));else{const s=o+(W1(n.path)?n.path:"/"+n.path),c={...n,path:s};t.push(c)}}),t):[],Dt=e=>{if(!Array.isArray(e))return[];const t=e.slice();return be(t)},{path:Zt}=o1,jt=()=>[{path:"/",name:"login",component:()=>y(()=>import("./index-d0f77a01.js"),["assets/index-d0f77a01.js","assets/@vueuse_core@9.1.0_vue@3.2.47-6868176a.js","assets/@vueuse_shared@9.1.0_vue@3.2.47-0bbfe17c.js","assets/@vue_reactivity@3.2.47-f5c8a668.js","assets/@vue_shared@3.2.47-7b400ff4.js","assets/@vue_runtime-core@3.2.47-0e1d4738.js","assets/naive-ui@2.34.4_vue@3.2.47-32e0de7f.js","assets/date-fns@2.30.0-0bf1b710.js","assets/@babel_runtime@7.22.6-960cbc2f.js","assets/vueuc@0.4.51_vue@3.2.47-57ccb8de.js","assets/evtd@0.2.4-b614532e.js","assets/seemly@0.3.6-dc6f1e91.js","assets/@css-render_vue3-ssr@0.15.12_vue@3.2.47-1c0b4a7a.js","assets/vooks@0.2.12_vue@3.2.47-b42353d8.js","assets/vdirs@0.1.8_vue@3.2.47-4519c5fd.js","assets/@juggle_resize-observer@3.4.0-41516555.js","assets/css-render@0.15.12-57b1a53f.js","assets/@emotion_hash@0.8.0-8a8e73f6.js","assets/@vue_runtime-dom@3.2.47-43f0d619.js","assets/lodash-es@4.17.21-92f3d5bd.js","assets/treemate@0.3.11-25c27bff.js","assets/date-fns-tz@1.3.8_date-fns@2.30.0-7cff6900.js","assets/async-validator@4.2.5-dee29e8b.js","assets/@css-render_plugin-bem@0.15.12_css-render@0.15.12-9dde7ffe.js","assets/qrcode.vue@3.3.4_vue@3.2.47-5d13a20b.js","assets/index-c00a517f.js","assets/pinia@2.0.17_typescript@5.0.2_vue@3.2.47-a112ab9d.js","assets/vue-demi@0.14.5_vue@3.2.47-71ba0ef2.js","assets/vue-i18n@9.2.2_vue@3.2.47-89f98dc3.js","assets/@intlify_shared@9.2.2-e4047ebf.js","assets/@intlify_core-base@9.2.2-a0a8715c.js","assets/@intlify_message-compiler@9.2.2-8a818441.js","assets/@intlify_devtools-if@9.2.2-c61c979f.js","assets/dayjs@1.11.7-adc18375.js","assets/vue-router@4.1.3_vue@3.2.47-450d1fe0.js","assets/screenfull@6.0.2-b3e6dc1f.js","assets/pinia-plugin-persistedstate@2.4.0_pinia@2.0.17-d93b4f94.js","assets/clipboard@2.0.11-6193b289.js","assets/index-5c25c09e.css"])},{path:"/",name:"layout",redirect:Zt,component:q1,children:Dt(_e())},{path:"/:catchAll(.*)",name:"errorPage",component:q1,redirect:"/error"}];let X;const Nt=()=>v2({history:y2(),routes:jt(),scrollBehavior:e=>(_t(e),{top:0,left:0})}),we=e=>{X=Nt(),Bt(X),_1(),e.use(X)},_1=()=>{try{if(X)return{router:X};throw new Error}catch{throw new Error("router is not defined")}},Se=e=>{const{signinCallback:t}=Z(R1()),o=M(()=>t.value.role),{role:l}=e;return u1!=null&&u1.length&&u1.includes(o.value)||!l||!(l!=null&&l.length)?!0:l?l.includes(o.value):!0},O1=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:l}=t;return!(l||o)},Ht=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()})},Bt=e=>{Ht(e),N2(e)},h1=(e=!0)=>{const{router:t}=_1(),{push:o,replace:l}=t,{path:n}=o1;T1("menuKey",n),e?o(n):l(n)},Ut=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Me=(e,t,o)=>{const l=[];if(Ut(e,t,o))return l.push(e),l;if(e.children&&e.children.length>0)for(const n of e.children){const a=Me(n,t,o);a.length>0&&l.push(e,...a)}return l},Ft=(e,t,o)=>{const l=[];for(const n of e){const a=Me(n,t,o);a.length>0&&l.push(...a)}return l},$t=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0",axios:"^1.2.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.4",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0","qrcode.vue":"^3.3.4",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.47","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.7","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.61.0","@typescript-eslint/parser":"^5.61.0","@vitejs/plugin-vue":"^4.1.0","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.44.0","eslint-config-prettier":"^8.8.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.15.1",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-px-to-viewport":"^1.1.1",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"^5.0.2","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^4.3.9","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.6.4","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.7.26","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.4.2"},name:"ray-template",version:"4.0.4"},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)"}},l=o?o.title:"";document.title=t+" - "+l},Kt=e=>{const{meta:t}=e;if(!t.icon)return;if(l1(t.icon,"Object"))return()=>t.icon;const o=N(L,{name:t.icon,size:F.MENU_COLLAPSED_ICON_SIZE},{});return()=>o},Y1=()=>{const{path:e}=o1;return Y("menuKey","sessionStorage",e)},b1=f1("menu",()=>{const{router:e}=_1(),t=_2(),{t:o}=n1(),{setKeepAliveInclude:l}=Ce(),n=B({menuKey:Y1(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[]}),a=T(!0),s=(r,d)=>Ft(r,"key",d),c=(r,d)=>{const{meta:g}=d;n.breadcrumbOptions=s(n.options,r),g.sameLevel&&H().then(()=>{n.breadcrumbOptions.find(v=>v.path===d.path)||n.breadcrumbOptions.push(d)})},u=(r,d=!0)=>{const m=Array.isArray(r)?[...r]:[r];d?n.menuTagOptions.push(...m):n.menuTagOptions=m},h=(r,d)=>{n.menuTagOptions.find(m=>m.path===r)||n.menuTagOptions.push(d)},_=(r,d)=>{const{meta:g,path:m}=d;if(g.windowOpen)window.open(g.windowOpen);else{if(String(r).startsWith("/"))e.push(m);else{const k=s(n.options,r).map(x=>x.key).join("/");e.push(k)}const v=(m.match(new RegExp("/","g"))||[]).length;l(d),$t(d),!g.sameLevel||g.sameLevel&&v===1?(h(r,d),c(r,d),n.menuKey=r,T1("menuKey",r)):c(n.menuKey||"",d)}},b=async r=>{const d=(r.match(new RegExp("/","g"))||[]).length;let g=r;if(d>1){const v=r.split("/").filter(k=>k);g=v[v.length-1]}const m=(v,k)=>{var x;for(const S of k)if((x=S.children)!=null&&x.length&&m(v,S.children),v===S.key){_(v,S);break}};m(g,n.options)},C=()=>new Promise(r=>{const d=m=>{const{meta:v}=m,k=M(()=>v!=null&&v.i18nKey?o(`${v.i18nKey}`):v==null?void 0:v.noLocalTitle),x={...m,key:m.path,label:()=>N(Q1,null,{default:()=>k.value}),breadcrumbLabel:k.value},S=Object.assign({},x,{icon:Kt(m)});return m.path===Y1()&&h(m.path,S),S.show=O1(S),S},g=(m,v)=>{var x;const k=[];for(const S of m){if((x=S.children)!=null&&x.length)S.children=g(S.children);else if(!Se(S.meta))continue;k.push(d(S))}return k};n.options=g(_e()),r()}),z=r=>n.collapsed=r,w=(r,d=1)=>n.menuTagOptions.splice(r,d),P=()=>{n.menuTagOptions=[]},j=async()=>{a.value&&await C(),a.value=!1};return e1(()=>t.fullPath,async r=>{var m;const d=/^([^?]+)/,g=(m=r.match(d))==null?void 0:m[1];await j(),await b(g||"")},{immediate:!0}),{...K(n),changeMenuModelValue:_,setupAppMenu:C,collapsedMenu:z,spliceMenTagOptions:w,emptyMenuTagOptions:P,setMenuTagOptions:u}},{persist:{key:"piniaMenuStore",storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey"]}}),R1=f1("signin",()=>{const e=B({signinCallback:{}}),t=l=>new Promise((n,a)=>{Ze(l)?a({code:1,message:"登陆失败",data:null}):(e.signinCallback={role:"admin",name:l.name,avatar:"https://usc1.contabostorage.com/c2e495d7890844d392e8ec0c6e5d77eb:image/longmao.jpeg"},n({code:0,message:"登陆成功",data:e.signinCallback}))}),o=()=>{window.$message.info("账号退出中..."),L2("all-sessionStorage"),setTimeout(()=>window.location.reload())};return{...K(e),signin:t,logout:o}},{persist:{key:"piniaSigninStore",paths:["signinCallback"],storage:sessionStorage}}),Ce=f1("keepAlive",()=>{const{maxKeepAliveLength:e}=ue,t=B({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,l=n=>{const a=o(),{name:s,meta:{keepAlive:c}}=n;if(c){if(a 0&&k("closeLeft",!1)},Me=()=>{w=P.value.findIndex(f=>f.key===a.value),z1()},Ce=p=>{P.value.length>1&&p.key!==C&&(p.closeable=!0)},ke=p=>{p.key!==a.value&&(p.closeable=!1)},Oe=()=>{O()&&H().then(()=>{var f;(f=o.value)==null||f.scrollTo({left:99999,behavior:"smooth"})})},Le=()=>{H().then(()=>{var f;const p=S1(`attr:${m}="${a.value}"`);if(p!=null&&p.length){const[A]=p;(f=A.scrollIntoView)==null||f.call(A)}})};return X(()=>P.value,(p,f)=>{j.value.forEach(A=>{z.includes(A.key)&&(p.length>1?A.disabled=!1:A.disabled=!0)}),f!=null&&f.length&&(p.length>(f==null?void 0:f.length)?Oe():p.length===(f==null?void 0:f.length)&&Le())},{immediate:!0}),X(()=>g.actionDropdownShow,()=>{z1()}),t({}),{modelMenuTagOptions:P,changeMenuModelValue:c,closeCurrentMenuTag:v,menuKey:a,handleTagClick:x,moreOptions:j,handleScrollX:R,scrollRef:o,scrollBarUUID:u,actionDropdownSelect:n1,rootPath:C,actionState:g,handleContextMenu:Se,setCurrentContentmenuIndex:Me,menuTagMouseenter:Ce,menuTagMouseleave:ke,MENU_TAG_DATA:m}},render(){let e;return i(X1,null,{default:()=>[i("div",{class:"menu-tag"},[i(J,{options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onClickoutside:()=>{this.actionState.actionDropdownShow=!1},onSelect:this.actionDropdownSelect.bind(this)},null),i(V,{class:"menu-tag-sapce",wrap:!1,align:"center",justify:"space-between",inline:!0,wrapItem:!1},{default:()=>[i(L,{name:"expanded",width:"20",height:"28",customClassName:"menu-tag__left-arrow",onClick:this.handleScrollX.bind(this,"left")},null),i(G1,$({xScrollable:!0,ref:"scrollRef"},{id:this.scrollBarUUID}),{default:()=>[i(V,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Lt(e=this.modelMenuTagOptions.map((t,o)=>i(e2,$({size:"large",strong:!0,closable:t.closeable,onClose:this.closeCurrentMenuTag.bind(this,o),type:t.key===this.menuKey?"primary":"default",bordered:!1},{onClick:this.handleTagClick.bind(this,t),onContextmenu:this.handleContextMenu.bind(this,o),onMouseenter:this.menuTagMouseenter.bind(this,t),onMouseleave:this.menuTagMouseleave.bind(this,t),[this.MENU_TAG_DATA]:t.path}),{default:()=>{var n;return[typeof t.label=="string"?t.label:(n=t.label)==null?void 0:n.call(t)]}})))?e:{default:()=>[e]})]}),i("div",{class:"menu-tag__right-wrapper"},[i(L,{name:"expanded",width:"20",height:"28",customClassName:"menu-tag__right-arrow",onClick:this.handleScrollX.bind(this,"right")},null),i(J,{options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this)},{default:()=>[i(L,{name:"more",width:"20",height:"28",customClassName:"menu-tag__right-setting",onClick:this.setCurrentContentmenuIndex.bind(this)},null)]})])]})])]})}});const Tt=M({__name:"TransitionComponent",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){const t=ve(),{keepAliveInclude:o}=Z(t),{setupKeepAlive:n,maxKeepAliveLength:l,keepAliveExclude:a}=ae;return(s,c)=>{const r=d2("RouterView");return i1(),a1(r,null,{default:I1(({Component:h,route:y})=>[i(Te,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:I1(()=>[l1(n)?(i1(),a1(h2,{key:0,max:l1(l),include:l1(o),exclude:l1(a)},[(i1(),a1(D1(h),{key:y.fullPath}))],1032,["max","include","exclude"])):(i1(),a1(D1(h),{key:y.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}}),de=M({name:"ContentWrapper",setup(){const e=I(),t=Pe(),{reloadRouteSwitch:o}=Z(e),n=T(!1);return(()=>{t.beforeEach(()=>{n.value=!0}),t.afterEach(()=>{setTimeout(()=>{n.value=!1},300)})})(),{reloadRouteSwitch:o,spinning:n}},render(){return this.reloadRouteSwitch?i(Q1,{show:this.spinning,description:"loading...",size:"large"},{default:()=>[i(Tt,{class:"content-wrapper"},null)]}):i(m2,null,null)}}),Pt=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));const Et=M({name:"FooterWrapper",setup(){const{layout:{copyright:e}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0",axios:"^1.2.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.4",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0","qrcode.vue":"^3.3.4",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.47","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.7","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.61.0","@typescript-eslint/parser":"^5.61.0","@vitejs/plugin-vue":"^4.1.0","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.44.0","eslint-config-prettier":"^8.8.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.15.1",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-px-to-viewport":"^1.1.1",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"^5.0.2","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^4.3.9","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.6.4","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.7.26","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.4.2"},name:"ray-template",version:"4.0.4"},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)"}};return{copyright:e}},render(){return this.copyright?i("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),zt=e=>{const t=Z1(e[0]),o=Z1(e[1]);return S(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`}))},U1=f2("isAppLockScreen",!1,sessionStorage,{mergeDefaults:!0}),f1=()=>({setLockAppScreen:o=>{U1.value=o},getLockAppScreen:()=>U1.value}),xt=M({name:"RLayout",setup(){const e=T(),t=T(),o=I(),{height:n}=g2(),{menuTagSwitch:l}=Z(o),{getLockAppScreen:a}=f1(),s=zt([e,t]);return{windowHeight:n,modelMenuTagSwitch:l,cssVarsRef:s,getLockAppScreen:a,LAYOUT_CONTENT_REF:pe,layoutSiderBarRef:e,layoutMenuTagRef:t}},render(){return i("div",{class:["layout"],style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[this.getLockAppScreen()?"":i(V1,{class:"layout-full",hasSider:!0},{default:()=>[i(gt,null,null),i(V1,{class:"layout__view-container__layout"},{default:()=>[i(Ot,{ref:"layoutSiderBarRef"},null),this.modelMenuTagSwitch?i(At,{ref:"layoutMenuTagRef"},null):"",i(t2,{ref:"LAYOUT_CONTENT_REF",class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[i(de,null,null),i(Et,null,null)]})]})]})])}}),he=()=>mt(ht()),F1=e=>e.startsWith("/"),me=(e,t=[],o="")=>Array.isArray(e)?(e.forEach(l=>{var a;if((a=l.children)!=null&&a.length)me(l.children,t,o+(F1(l.path)?l.path:"/"+l.path));else{const s=o+(F1(l.path)?l.path:"/"+l.path),c={...l,path:s};t.push(c)}}),t):[],Rt=e=>Array.isArray(e)?me(Ie(e)):[],{path:Vt}=e1,It=()=>[{path:"/",name:"login",component:()=>_(()=>import("./index-aaee372a.js"),["assets/index-aaee372a.js","assets/@vueuse_core@9.1.0_vue@3.2.47-7dce8a3b.js","assets/@vueuse_shared@9.1.0_vue@3.2.47-d31e2061.js","assets/@vue_reactivity@3.2.47-2d471fc5.js","assets/@vue_shared@3.2.47-a2d211b5.js","assets/@vue_runtime-core@3.2.47-d3ee065b.js","assets/naive-ui@2.34.4_vue@3.2.47-31a93ea4.js","assets/date-fns@2.30.0-0bf1b710.js","assets/@babel_runtime@7.22.6-960cbc2f.js","assets/vueuc@0.4.51_vue@3.2.47-8cde9fac.js","assets/evtd@0.2.4-b614532e.js","assets/seemly@0.3.6-dc6f1e91.js","assets/@css-render_vue3-ssr@0.15.12_vue@3.2.47-71be054e.js","assets/vooks@0.2.12_vue@3.2.47-56ef56e2.js","assets/vdirs@0.1.8_vue@3.2.47-4519c5fd.js","assets/@juggle_resize-observer@3.4.0-41516555.js","assets/css-render@0.15.12-57b1a53f.js","assets/@emotion_hash@0.8.0-8a8e73f6.js","assets/@vue_runtime-dom@3.2.47-3602d578.js","assets/lodash-es@4.17.21-b7de4195.js","assets/treemate@0.3.11-25c27bff.js","assets/date-fns-tz@1.3.8_date-fns@2.30.0-7cff6900.js","assets/async-validator@4.2.5-dee29e8b.js","assets/@css-render_plugin-bem@0.15.12_css-render@0.15.12-9dde7ffe.js","assets/qrcode.vue@3.3.4_vue@3.2.47-afc34a76.js","assets/index-fc1277d6.js","assets/vue-router@4.1.3_vue@3.2.47-8626a243.js","assets/pinia@2.0.17_typescript@5.0.2_vue@3.2.47-765cf159.js","assets/vue-demi@0.14.5_vue@3.2.47-71ba0ef2.js","assets/vue-i18n@9.2.2_vue@3.2.47-49027c09.js","assets/@intlify_shared@9.2.2-e4047ebf.js","assets/@intlify_core-base@9.2.2-a0a8715c.js","assets/@intlify_message-compiler@9.2.2-8a818441.js","assets/@intlify_devtools-if@9.2.2-c61c979f.js","assets/dayjs@1.11.7-6cbb96c2.js","assets/screenfull@6.0.2-b3e6dc1f.js","assets/pinia-plugin-persistedstate@2.4.0_pinia@2.0.17-d93b4f94.js","assets/clipboard@2.0.11-6193b289.js","assets/index-5c25c09e.css"])},{path:"/",name:"layout",redirect:Vt,component:xt,children:Rt(he())}];let G;const Dt=()=>Ee({history:ze(),routes:It(),scrollBehavior:e=>(ft(e),{top:0,left:0})}),Zt=e=>{G=Dt(),Nt(G),g1(),e.use(G)},g1=()=>{try{if(G)return{router:G};throw new Error}catch{throw new Error("router is not defined")}},fe=e=>{const{signinCallback:t}=Z(E1()),o=S(()=>t.value.role),{role:n}=e;return s1!=null&&s1.length&&s1.includes(o.value)||!n||!(n!=null&&n.length)?!0:n?n.includes(o.value):!0},M1=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n}=t;return!(n||o)},jt=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()})},Nt=e=>{jt(e),I2(e)},u1=(e=!0)=>{const{router:t}=g1(),{push:o,replace:n}=t,{path:l}=e1;O1("menuKey",l),e?o(l):n(l)},Ht=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,ge=(e,t,o)=>{const n=[];if(Ht(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const l of e.children){const a=ge(l,t,o);a.length>0&&n.push(e,...a)}return n},Bt=(e,t,o)=>{const n=[];for(const l of e){const a=ge(l,t,o);a.length>0&&n.push(...a)}return n},Ut=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0",axios:"^1.2.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.4",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0","qrcode.vue":"^3.3.4",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.47","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/lodash-es":"^4.17.7","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.61.0","@typescript-eslint/parser":"^5.61.0","@vitejs/plugin-vue":"^4.1.0","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.44.0","eslint-config-prettier":"^8.8.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.15.1",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-px-to-viewport":"^1.1.1",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"^5.0.2","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^4.3.9","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.6.4","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.7.26","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.4.2"},name:"ray-template",version:"4.0.4"},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)"}},n=o?o.title:"";document.title=t+" - "+n},Ft=e=>{const{meta:t}=e;if(!t.icon)return;if(t1(t.icon,"Object"))return()=>t.icon;const o=N(L,{name:t.icon,size:F.MENU_COLLAPSED_ICON_SIZE},{});return()=>o},$1=()=>{const{path:e}=e1;return q("menuKey","sessionStorage",e)},v1=d1("menu",()=>{const{router:e}=g1(),t=xe(),{t:o}=o1(),{setKeepAliveInclude:n}=ve(),l=B({menuKey:$1(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[]}),a=T(!0),s=(u,d)=>Bt(u,"key",d),c=(u,d)=>{const{meta:g}=d;l.breadcrumbOptions=s(l.options,u),g.sameLevel&&H().then(()=>{l.breadcrumbOptions.find(v=>v.path===d.path)||l.breadcrumbOptions.push(d)})},r=(u,d=!0)=>{const m=Array.isArray(u)?[...u]:[u];d?l.menuTagOptions.push(...m):l.menuTagOptions=m},h=(u,d)=>{l.menuTagOptions.find(m=>m.path===u)||l.menuTagOptions.push(d)},y=(u,d)=>{const{meta:g,path:m}=d;if(g.windowOpen)window.open(g.windowOpen);else{if(String(u).startsWith("/"))e.push(m);else{const k=s(l.options,u).map(x=>x.key).join("/");e.push(k)}const v=(m.match(new RegExp("/","g"))||[]).length;n(d),Ut(d),!g.sameLevel||g.sameLevel&&v===1?(h(u,d),c(u,d),l.menuKey=u,O1("menuKey",u)):c(l.menuKey||"",d)}},b=async u=>{const d=(u.match(new RegExp("/","g"))||[]).length;let g=u;if(d>1){const v=u.split("/").filter(k=>k);g=v[v.length-1]}const m=(v,k)=>{var x,O;for(const R of k)if((x=R.children)!=null&&x.length&&m(v,R.children),v===R.key&&!((O=R==null?void 0:R.children)!=null&&O.length)){y(v,R);break}};m(g,l.options)},C=()=>new Promise(u=>{const d=m=>{const{meta:v}=m,k=S(()=>v!=null&&v.i18nKey?o(`${v.i18nKey}`):v==null?void 0:v.noLocalTitle),x={...m,key:m.path,label:()=>N(Y1,null,{default:()=>k.value}),breadcrumbLabel:k.value},O=Object.assign({},x,{icon:Ft(m)});return m.path===$1()&&h(m.path,O),O.show=M1(O),O},g=(m,v)=>{var x;const k=[];for(const O of m){if((x=O.children)!=null&&x.length)O.children=g(O.children);else if(!fe(O.meta))continue;k.push(d(O))}return k};l.options=g(he()),u()}),z=u=>l.collapsed=u,w=(u,d=1)=>l.menuTagOptions.splice(u,d),P=()=>{l.menuTagOptions=[]},j=async()=>{a.value&&await C(),a.value=!1};return X(()=>t.fullPath,async u=>{var m;const d=/^([^?]+)/,g=(m=u.match(d))==null?void 0:m[1];await j(),await b(g||"")},{immediate:!0}),{...K(l),changeMenuModelValue:y,setupAppMenu:C,collapsedMenu:z,spliceMenTagOptions:w,emptyMenuTagOptions:P,setMenuTagOptions:r}},{persist:{key:"piniaMenuStore",storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey"]}}),E1=d1("signin",()=>{const e=B({signinCallback:{}}),t=n=>new Promise((l,a)=>{De(n)?a({code:1,message:"登陆失败",data:null}):(e.signinCallback={role:"admin",name:n.name,avatar:"https://usc1.contabostorage.com/c2e495d7890844d392e8ec0c6e5d77eb:image/longmao.jpeg"},l({code:0,message:"登陆成功",data:e.signinCallback}))}),o=()=>{window.$message.info("账号退出中..."),w2("all-sessionStorage"),setTimeout(()=>window.location.reload())};return{...K(e),signin:t,logout:o}},{persist:{key:"piniaSigninStore",paths:["signinCallback"],storage:sessionStorage}}),ve=d1("keepAlive",()=>{const{maxKeepAliveLength:e}=ae,t=B({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=l=>{const a=o(),{name:s,meta:{keepAlive:c}}=l;if(c){if(a{if("locale"in u&&"resource"in u){const{locale:m,resource:_}=u;m?(l[m]=l[m]||{},w(_,l[m])):w(_,l)}else b(u)&&w(JSON.parse(u),l)}),o==null&&c)for(const u in l)Z(l,u)&&Q(l[u]);return l}const G=e=>!N(e)||R(e);function w(e,r){if(G(e)||G(r))throw T(p.INVALID_VALUE);for(const a in e)Z(e,a)&&(G(e[a])||G(r[a])?r[a]=e[a]:w(e[a],r[a]))}function De(e){return e.type}function wt(e,r,a){let s=N(r.messages)?r.messages:{};"__i18nGlobal"in a&&(s=Se(e.locale.value,{messages:s,__i18n:a.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(c=>{e.mergeLocaleMessage(c,s[c])});{if(N(r.datetimeFormats)){const c=Object.keys(r.datetimeFormats);c.length&&c.forEach(l=>{e.mergeDateTimeFormat(l,r.datetimeFormats[l])})}if(N(r.numberFormats)){const c=Object.keys(r.numberFormats);c.length&&c.forEach(l=>{e.mergeNumberFormat(l,r.numberFormats[l])})}}}function Ie(e){return Pt(St,null,e,0)}const Oe="__INTLIFY_META__";let Le=0;function pe(e){return(r,a,s,o)=>e(a,s,ee()||void 0,o)}const Wt=()=>{const e=ee();let r=null;return e&&(r=De(e)[Oe])?{[Oe]:r}:null};function he(e={},r){const{__root:a}=e,s=a===void 0;let o=C(e.inheritLocale)?e.inheritLocale:!0;const c=U(a&&o?a.locale.value:b(e.locale)?e.locale:Et),l=U(a&&o?a.fallbackLocale.value:b(e.fallbackLocale)||R(e.fallbackLocale)||y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=U(Se(c.value,e)),m=U(y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),_=U(y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let I=a?a.missingWarn:C(e.missingWarn)||se(e.missingWarn)?e.missingWarn:!0,f=a?a.fallbackWarn:C(e.fallbackWarn)||se(e.fallbackWarn)?e.fallbackWarn:!0,g=a?a.fallbackRoot:C(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,S=Y(e.missing)?e.missing:null,k=Y(e.missing)?pe(e.missing):null,A=Y(e.postTranslation)?e.postTranslation:null,H=a?a.warnHtmlMessage:C(e.warnHtmlMessage)?e.warnHtmlMessage:!0,B=!!e.escapeParameter;const ne=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let x=e.pluralRules||a&&a.pluralRules,i;i=(()=>{s&&Ee(null);const t={version:At,locale:c.value,fallbackLocale:l.value,messages:u.value,modifiers:ne,pluralRules:x,missing:k===null?void 0:k,missingWarn:I,fallbackWarn:f,fallbackFormat:L,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:H,escapeParameter:B,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=m.value,t.numberFormats=_.value,t.__datetimeFormatters=y(i)?i.__datetimeFormatters:void 0,t.__numberFormatters=y(i)?i.__numberFormatters:void 0;const n=pt(t);return s&&Ee(n),n})(),M(i,c.value,l.value);function Ve(){return[c.value,l.value,u.value,m.value,_.value]}const Ue=V({get:()=>c.value,set:t=>{c.value=t,i.locale=c.value}}),we=V({get:()=>l.value,set:t=>{l.value=t,i.fallbackLocale=l.value,M(i,c.value,t)}}),We=V(()=>u.value),xe=V(()=>m.value),je=V(()=>_.value);function Ye(){return Y(A)?A:null}function Ge(t){A=t,i.postTranslation=t}function He(){return S}function Be(t){t!==null&&(k=pe(t)),S=t,i.missing=k}const D=(t,n,v,E,X,j)=>{Ve();let h;if(__INTLIFY_PROD_DEVTOOLS__)try{ue(Wt()),s||(i.fallbackContext=a?Tt():void 0),h=t(i)}finally{ue(null),s||(i.fallbackContext=void 0)}else h=t(i);if(W(h)&&h===Nt){const[_t,na]=n();return a&&g?E(a):X(_t)}else{if(j(h))return h;throw T(p.UNEXPECTED_RETURN_TYPE)}};function re(...t){return D(n=>Reflect.apply(me,null,[n,...t]),()=>ie(...t),"translate",n=>Reflect.apply(n.t,n,[...t]),n=>n,n=>b(n))}function Xe(...t){const[n,v,E]=t;if(E&&!N(E))throw T(p.INVALID_ARGUMENT);return re(n,v,F({resolvedMessage:!0},E||{}))}function $e(...t){return D(n=>Reflect.apply(ge,null,[n,...t]),()=>fe(...t),"datetime format",n=>Reflect.apply(n.d,n,[...t]),()=>_e,n=>b(n))}function qe(...t){return D(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"number format",n=>Reflect.apply(n.n,n,[...t]),()=>_e,n=>b(n))}function Ke(t){return t.map(n=>b(n)||W(n)||C(n)?Ie(String(n)):n)}const Je={normalize:Ke,interpolate:t=>t,type:"vnode"};function ze(...t){return D(n=>{let v;const E=n;try{E.processor=Je,v=Reflect.apply(me,null,[E,...t])}finally{E.processor=null}return v},()=>ie(...t),"translate",n=>n[K](...t),n=>[Ie(n)],n=>R(n))}function Qe(...t){return D(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"number format",n=>n[z](...t),()=>[],n=>b(n)||R(n))}function Ze(...t){return D(n=>Reflect.apply(ge,null,[n,...t]),()=>fe(...t),"datetime format",n=>n[J](...t),()=>[],n=>b(n)||R(n))}function et(t){x=t,i.pluralRules=x}function tt(t,n){const v=b(n)?n:c.value,E=le(v);return i.messageResolver(E,t)!==null}function at(t){let n=null;const v=ke(i,l.value,c.value);for(let E=0;E{if("locale"in u&&"resource"in u){const{locale:m,resource:_}=u;m?(l[m]=l[m]||{},w(_,l[m])):w(_,l)}else b(u)&&w(JSON.parse(u),l)}),o==null&&c)for(const u in l)Z(l,u)&&Q(l[u]);return l}const G=e=>!N(e)||R(e);function w(e,r){if(G(e)||G(r))throw T(p.INVALID_VALUE);for(const a in e)Z(e,a)&&(G(e[a])||G(r[a])?r[a]=e[a]:w(e[a],r[a]))}function De(e){return e.type}function wt(e,r,a){let s=N(r.messages)?r.messages:{};"__i18nGlobal"in a&&(s=Se(e.locale.value,{messages:s,__i18n:a.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(c=>{e.mergeLocaleMessage(c,s[c])});{if(N(r.datetimeFormats)){const c=Object.keys(r.datetimeFormats);c.length&&c.forEach(l=>{e.mergeDateTimeFormat(l,r.datetimeFormats[l])})}if(N(r.numberFormats)){const c=Object.keys(r.numberFormats);c.length&&c.forEach(l=>{e.mergeNumberFormat(l,r.numberFormats[l])})}}}function Ie(e){return Pt(St,null,e,0)}const Oe="__INTLIFY_META__";let Le=0;function pe(e){return(r,a,s,o)=>e(a,s,ee()||void 0,o)}const Wt=()=>{const e=ee();let r=null;return e&&(r=De(e)[Oe])?{[Oe]:r}:null};function he(e={},r){const{__root:a}=e,s=a===void 0;let o=C(e.inheritLocale)?e.inheritLocale:!0;const c=U(a&&o?a.locale.value:b(e.locale)?e.locale:Et),l=U(a&&o?a.fallbackLocale.value:b(e.fallbackLocale)||R(e.fallbackLocale)||y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=U(Se(c.value,e)),m=U(y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),_=U(y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let I=a?a.missingWarn:C(e.missingWarn)||se(e.missingWarn)?e.missingWarn:!0,f=a?a.fallbackWarn:C(e.fallbackWarn)||se(e.fallbackWarn)?e.fallbackWarn:!0,g=a?a.fallbackRoot:C(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,S=Y(e.missing)?e.missing:null,k=Y(e.missing)?pe(e.missing):null,A=Y(e.postTranslation)?e.postTranslation:null,H=a?a.warnHtmlMessage:C(e.warnHtmlMessage)?e.warnHtmlMessage:!0,B=!!e.escapeParameter;const ne=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let j=e.pluralRules||a&&a.pluralRules,i;i=(()=>{s&&Ee(null);const t={version:At,locale:c.value,fallbackLocale:l.value,messages:u.value,modifiers:ne,pluralRules:j,missing:k===null?void 0:k,missingWarn:I,fallbackWarn:f,fallbackFormat:L,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:H,escapeParameter:B,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=m.value,t.numberFormats=_.value,t.__datetimeFormatters=y(i)?i.__datetimeFormatters:void 0,t.__numberFormatters=y(i)?i.__numberFormatters:void 0;const n=pt(t);return s&&Ee(n),n})(),M(i,c.value,l.value);function Ve(){return[c.value,l.value,u.value,m.value,_.value]}const Ue=V({get:()=>c.value,set:t=>{c.value=t,i.locale=c.value}}),we=V({get:()=>l.value,set:t=>{l.value=t,i.fallbackLocale=l.value,M(i,c.value,t)}}),We=V(()=>u.value),je=V(()=>m.value),xe=V(()=>_.value);function Ye(){return Y(A)?A:null}function Ge(t){A=t,i.postTranslation=t}function He(){return S}function Be(t){t!==null&&(k=pe(t)),S=t,i.missing=k}const D=(t,n,v,E,X,x)=>{Ve();let h;if(__INTLIFY_PROD_DEVTOOLS__)try{ue(Wt()),s||(i.fallbackContext=a?Tt():void 0),h=t(i)}finally{ue(null),s||(i.fallbackContext=void 0)}else h=t(i);if(W(h)&&h===Nt){const[_t,na]=n();return a&&g?E(a):X(_t)}else{if(x(h))return h;throw T(p.UNEXPECTED_RETURN_TYPE)}};function re(...t){return D(n=>Reflect.apply(me,null,[n,...t]),()=>ie(...t),"translate",n=>Reflect.apply(n.t,n,[...t]),n=>n,n=>b(n))}function Xe(...t){const[n,v,E]=t;if(E&&!N(E))throw T(p.INVALID_ARGUMENT);return re(n,v,F({resolvedMessage:!0},E||{}))}function $e(...t){return D(n=>Reflect.apply(ge,null,[n,...t]),()=>fe(...t),"datetime format",n=>Reflect.apply(n.d,n,[...t]),()=>_e,n=>b(n))}function qe(...t){return D(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"number format",n=>Reflect.apply(n.n,n,[...t]),()=>_e,n=>b(n))}function Ke(t){return t.map(n=>b(n)||W(n)||C(n)?Ie(String(n)):n)}const Je={normalize:Ke,interpolate:t=>t,type:"vnode"};function ze(...t){return D(n=>{let v;const E=n;try{E.processor=Je,v=Reflect.apply(me,null,[E,...t])}finally{E.processor=null}return v},()=>ie(...t),"translate",n=>n[K](...t),n=>[Ie(n)],n=>R(n))}function Qe(...t){return D(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"number format",n=>n[z](...t),()=>[],n=>b(n)||R(n))}function Ze(...t){return D(n=>Reflect.apply(ge,null,[n,...t]),()=>fe(...t),"datetime format",n=>n[J](...t),()=>[],n=>b(n)||R(n))}function et(t){j=t,i.pluralRules=j}function tt(t,n){const v=b(n)?n:c.value,E=le(v);return i.messageResolver(E,t)!==null}function at(t){let n=null;const v=ke(i,l.value,c.value);for(let E=0;E