ray-template/js/hooks-AGBWEt_R.js

13 lines
113 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-2VuRs5Do.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12--wFVw10U.js","js/@vue_reactivity@3.5.12-Bs6EYLxJ.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-rIgKm_Vg.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/jsbarcode@3.11.6-DGNGFp02.js","js/@logicflow_core@2.0.6-CHqfytjt.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js","js/preact@10.22.0-D1_UwAj3.js","js/mobx@5.15.7-CEMJDQot.js","js/lodash-es@4.17.21-B-5kLwAl.js","js/uuid@9.0.1-CQkTLCs1.js","js/classnames@2.5.1-nUTIn1-D.js","js/mousetrap@1.6.5-BTGDluHR.js","js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js","css/@logicflow_core@2.0-DY-ASpx_.css","js/currency.js@2.0.4-9OAR_aOO.js","js/naive-ui@2.40.1_vue@3.5.12-i2yA9The.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12-CjNIvAko.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-BZYDXyJG.js","js/vooks@0.2.12_vue@3.5.12--iLh4DJ5.js","js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-BKraWVUW.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js","js/@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js","js/utils-DweTa4yD.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js","js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js","js/vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/interactjs@1.10.26-DZL_TZzP.js","js/zh-CN-BB2toPf1.js","js/index-D0Y6CCZo.js","js/index-CycY2SEi.js","css/index-D_4DGt8i.css","js/Flow-D7UO5ALg.js","js/index-BcG8w8Qo.js","js/instance-DjIgqIpD.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-UEinYhgS.js","js/index-DUgu3oDp.js","js/index-H9US9qo_.js","js/index-DMvEZ4XM.js","js/index-CJ5lja3E.js","css/index-DHYYVpM7.css","js/index-BiuetcEk.js","js/index-B7I8d6oq.js","js/index-DM9M6Dwk.js","js/index-B8O3KhRo.js","js/index-B8UExuJq.js","js/index-DQg7_Qc2.js","js/index-E47eBjhl.js","js/index-DgT5nHqP.js","js/index-a7mlN0Lt.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-CQLHJkiJ.js","css/index-B6yUFiKH.css","js/index-B9mAhQoY.js","js/index-CE3CXnQ0.js","js/index-CQvxTDy_.js","css/index-Dig957GB.css","js/index-Ckm8bBsN.js","js/index-DP1d3Otc.js","css/index-Eq1L-L2-.css","js/TablePro-CLiR80o6.js","js/mockjs@1.1.0-CxlURkif.js","js/index-DcQdji55.js","js/index-YChggc46.js","js/index-Dxathzqh.js","css/index-74sXJ5VP.css","js/index-CzkwrEb-.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]);
var eo=Object.defineProperty;var to=(e,n,t)=>n in e?eo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var jt=(e,n,t)=>to(e,typeof n!="symbol"?n+"":n,t);import{s as pt,c as Xe,l as Rt,v as rn,p as Fe,y as Ve,z as no}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as Bt,d as Vt,f as oo,g as ao,N as ot,a as lo,b as ro,c as D,e as at,m as so,h as sn,u as io,S as Pt,i as uo,j as ke,k as co,l as un,n as je,o as po,p as mo,q as me,t as fo,r as go,s as cn,v as ho,w as dn,x as Je,y as Nt,A as pn,B as vo,C as yo,D as bo,E as oe,F as So,G as Ut,H as L,I as Q,J as K,K as _o,L as mn,M as fn,O as Z,P as wo,Q as Co,R as Ke,T as To,U as Oo,V as ko,W as Ao,X as Ro,Y as gn,Z as Po,_ as $t,$ as xo}from"./naive-ui@2.40.1_vue@3.5.12-i2yA9The.js";import{o as Eo,u as Be,a as zo,b as Mo,c as hn,d as mt,e as Io,f as Lo}from"./@vueuse_core@11.1.0_vue@3.5.12-DNt1HURo.js";import{k as M,l as Te,e as le,n as Do,x as Re,a as vn,s as yn,u as ee}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as X,j as ie,l as x,b as r,m as N,p as ge,q as se,f as C,w as Pe,t as Fo,k as xe,v as bn,h as lt,i as Ee,x as Sn,F as _n,y as jo,z as Se,A as Bo,C as ft,D as Vo,E as Le,S as No,K as Uo,G as Kt,H as $o,I as Y}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as ue}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Ko}from"./print-js@1.6.0-BdoEj60G.js";import{u as wn}from"./vue-hooks-plus@2.2.1_vue@3.5.12--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as Wo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{L as Wt}from"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as xt,g as Ze,i as fe,s as Et,a as Tt,c as qo,b as Qe,l as Cn,d as Tn,e as Go,f as V,r as ye,h as F,j as Ho,k as et,q as tt,m as On,p as kn,n as zt,o as qt,t as _e,v as Yo,w as Xo,x as Jo,y as Zo,z as Qo,A as de}from"./utils-DweTa4yD.js";import{s as ea}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_rollup@4.20.0-_Zka_ujQ.js";import{d as rt,c as ta}from"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12-DK9mYMr0.js";import{t as na,a as oa,b as aa,c as la,d as ra,e as sa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as st,a as ia,o as ua,c as ca,b as da}from"./vue-router@4.3.2_vue@3.5.12-Brd4YmBy.js";import{c as pa}from"./vue-i18n@9.13.1_vue@3.5.12-DVUVmCuN.js";import{r as ma,u as De,i as fa,a as ga,b as ha,c as va,d as ya,e as ba,f as Sa,g as _a,h as wa,j as Ca,k as Ta,l as Oa,m as ka,n as Aa,o as Ra,p as Pa,q as xa,s as Ea}from"./echarts@5.5.0-CezqL3m-.js";import{g as za}from"./@vueuse_shared@11.1.0_vue@3.5.12-DnrABUGp.js";import{T as Ma,a as Ia}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import{i as Gt}from"./interactjs@1.10.26-DZL_TZzP.js";const ti=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const l=e[o].default;let a=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const i=a.split("/"),u=i.shift(),d=i.join(".");u&&(d?(pt(t,u,t[u]||{}),pt(t[u],d,l)):pt(t,u,l||{}))}),t},La="modulepreload",Da=function(e){return"/ray-template/"+e},Ht={},I=function(n,t,o){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));l=Promise.all(t.map(i=>{if(i=Da(i),i in Ht)return;Ht[i]=!0;const u=i.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":La,u||(p.as="script"),p.crossOrigin="",p.href=i,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${i}`)))})}))}return l.then(()=>n()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},Fa=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((l,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},ja=async e=>{var t;const n={};for(const o of e){const l=await Fa(Object.assign({"../lang/en-US.ts":()=>I(()=>import("./en-US-2VuRs5Do.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,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>I(()=>import("./zh-CN-BB2toPf1.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,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),a=o.key;a&&(n[a]=((t=l==null?void 0:l.default)==null?void 0:t.message)??{})}return n},ni=e=>{switch(e){case"zh-CN":return{locale:Bt,dateLocal:Vt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Bt,dateLocal:Vt}}},oi={darkClassName:"ray-template--dark",lightClassName:"ray-template--light"},ai={max:5,closable:!1},li="loading",ri="",J={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ba=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],ae={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},An=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Va="zh-CN",Na="zh-CN",Ua={"zh-CN":"zh-cn","en-US":"en"},$a="zh-cn",si={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},ii={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Ce=M(null),Rn=M(null),Ka={setupRouterLoadingBar:!0,setupRouterGuard:!0},Wa=["RLogin","ErrorPage","RayTemplateDoc"],We=[],ui=(e,n)=>{const t=M(0),o=M(0),l=M(!1),{clickOutside:a}={},s=g=>{l.value=g},i=g=>{g.preventDefault(),s(!1),X().then(()=>{const{clientX:y,clientY:f}=g;t.value=y,o.value=f,s(!0)})};a&&Eo(e,g=>{a(g)});const u=Be(e,"contextmenu",i,n),d=Be(e,"click",()=>{s(!1)});return{stop:()=>{u(),d()},x:Te(t),y:Te(o),show:Te(l),updateShow:s}},Mt=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function pe(e,n,t){xt(Mt,e,n,t)}function it(e){return Te(Do(Mt,e))}function qa(){return{...Re(Te(Mt))}}let ce;const Ga=async()=>{const e=Hn(),n=await ja(An);return pa({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Na})},ci=async e=>{const n=await Ga();e.use(n),ce=n},Yt=(e,n)=>n,Ne=e=>{if(!ce)return{t:a=>Yt(e,a),locale:a=>{}};const{t:n,...t}=ce.global;return{...t,t:(a,...s)=>a?!a.includes(".")&&!e?a:n(Yt(e,a),...s):"",locale:a=>{ce.mode==="legacy"?ce.global.locale=a:vn(ce.global.locale)?ce.global.locale.value=a:ce.global.locale=a}}},B=e=>e,Ha={path:"/dashboard",component:()=>I(()=>import("./index-D0Y6CCZo.js"),__vite__mapDeps([58,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:B("menu.Dashboard"),icon:"dashboard",order:0}},Ya=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"})),Xa={path:"/flow",component:()=>I(()=>import("./Flow-D7UO5ALg.js"),__vite__mapDeps([61,22,1,2,3,4,5,6,7,8,9,10,11,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,39,40,12,13,14,15,17,18,19,20,21,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Flow"),icon:"other",order:2}},Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"})),Za={path:"/axios",name:"RAxios",component:()=>I(()=>import("./index-BcG8w8Qo.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:B("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),el={path:"barcode",component:()=>I(()=>import("./BarcodeDemo-UEinYhgS.js"),__vite__mapDeps([66,22,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,11,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),nl={path:"/cache-demo",component:()=>I(()=>import("./index-DUgu3oDp.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CacheDemo"),icon:"other",order:3}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/context-menu",component:()=>I(()=>import("./index-H9US9qo_.js"),__vite__mapDeps([68,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.ContextMenu"),icon:"other",order:2}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/directive",component:()=>I(()=>import("./index-DMvEZ4XM.js"),__vite__mapDeps([69,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:B("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/echart",component:()=>I(()=>import("./index-CJ5lja3E.js"),__vite__mapDeps([70,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,71])),meta:{i18nKey:B("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/form",component:()=>I(()=>import("./index-BiuetcEk.js"),__vite__mapDeps([72,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/iframe",component:()=>I(()=>import("./index-B7I8d6oq.js"),__vite__mapDeps([73,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/mock-demo",component:()=>I(()=>import("./index-DM9M6Dwk.js"),__vite__mapDeps([74,22,1,2,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,41,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/modal-demo",component:()=>I(()=>import("./index-B8O3KhRo.js"),__vite__mapDeps([75,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Modal"),icon:"other",order:3}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),Ye=()=>I(()=>Promise.resolve().then(()=>Wr),void 0),yl={path:"/multi",component:Ye,meta:{i18nKey:B("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>I(()=>import("./index-B8UExuJq.js"),__vite__mapDeps([76,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>I(()=>import("./index-DQg7_Qc2.js"),__vite__mapDeps([77,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>I(()=>import("./index-E47eBjhl.js"),__vite__mapDeps([78,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/precision",component:()=>I(()=>import("./index-DgT5nHqP.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CalculatePrecision"),icon:"other",order:2}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),wl={path:"/qrcode",component:()=>I(()=>import("./index-a7mlN0Lt.js"),__vite__mapDeps([80,81,7,5,6,82,83,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:B("menu.QRCode"),icon:"other",order:2}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"rely-about",component:()=>I(()=>import("./index-CQLHJkiJ.js"),__vite__mapDeps([84,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,85])),meta:{i18nKey:B("menu.RelyAbout"),icon:"rely",order:999}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),kl={path:"/router-demo",component:Ye,meta:{i18nKey:B("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>I(()=>import("./index-B9mAhQoY.js"),__vite__mapDeps([86,22,1,2,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,4,8,9,10,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>I(()=>import("./index-CE3CXnQ0.js"),__vite__mapDeps([87,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Al=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/scroll-reveal",component:()=>I(()=>import("./index-CQvxTDy_.js"),__vite__mapDeps([88,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,89])),meta:{i18nKey:B("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),xl={path:"/segment",component:()=>I(()=>import("./index-Ckm8bBsN.js"),__vite__mapDeps([90,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},El=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),zl={path:"/svg-icons",component:()=>I(()=>import("./index-DP1d3Otc.js"),__vite__mapDeps([91,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,92])),meta:{i18nKey:B("menu.SvgIcon"),icon:"other",order:3}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Il={path:"/table-pro",component:()=>I(()=>import("./TablePro-CLiR80o6.js"),__vite__mapDeps([93,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,94,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Dl={path:"/table",component:()=>I(()=>import("./index-DcQdji55.js"),__vite__mapDeps([95,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),jl={path:"/template-hooks",component:()=>I(()=>import("./index-YChggc46.js"),__vite__mapDeps([96,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TemplateHooks"),icon:"other",order:1}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Vl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ya,"/src/router/modules/demo/axios copy.ts":Ja,"/src/router/modules/demo/axios.ts":Qa,"/src/router/modules/demo/barcode.ts":tl,"/src/router/modules/demo/cache-demo.ts":ol,"/src/router/modules/demo/context-menu.ts":ll,"/src/router/modules/demo/directive.ts":sl,"/src/router/modules/demo/echart.ts":ul,"/src/router/modules/demo/form.ts":dl,"/src/router/modules/demo/iframe.ts":ml,"/src/router/modules/demo/mock.ts":gl,"/src/router/modules/demo/modal.ts":vl,"/src/router/modules/demo/multi-menu.ts":bl,"/src/router/modules/demo/precision.ts":_l,"/src/router/modules/demo/qrcode.ts":Cl,"/src/router/modules/demo/rely.ts":Ol,"/src/router/modules/demo/router-demo.ts":Al,"/src/router/modules/demo/scroll-reveal.ts":Pl,"/src/router/modules/demo/segment.ts":El,"/src/router/modules/demo/svg-icons.ts":Ml,"/src/router/modules/demo/table-pro.ts":Ll,"/src/router/modules/demo/table.ts":Fl,"/src/router/modules/demo/template-hooks.ts":Bl});return Object.keys(e).reduce((t,o)=>{const l=e[o].default;if(l)t.push(l);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},Nl=e=>e[0]==="/",Pn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const l of e){const a=t+(Nl(l.path)?l.path:"/"+l.path);if((o=l.children)!=null&&o.length){Pn(l.children,n,a);continue}else n.push({...l,path:a})}return n},Ul=e=>Array.isArray(e)?Pn(Xe(e)):[],$l=e=>e.sort((n,t)=>{var a,s;const o=((a=n.meta)==null?void 0:a.order)??1,l=((s=t.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof l!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===l?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-l}),Kl=e=>{const{beforeEach:n}=e,{getRootPath:t}=Ie(),o=(l,a)=>l.path==="/"||a.path==="/login";n((l,a,s)=>{const i=Ze(J.token,"localStorage"),u=Ze(J.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:d,name:p}=l;i!==null?o(l,a)?gt(!0):!fe(p,"Symbol")&&p&&Wa.includes(p)?s():Kn(d)?o(l,a)?u?s(u):gt(!0):s():gt(!0):o(l,a)?s():s("/")})},gt=(e=!0)=>{const{router:n}=Lt(),{push:t,replace:o}=n,{getRootPath:l}=Ie();Et(J.appMenuKey,l.value,"localStorage"),e?o(l.value):t(l.value)},Wl=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=Ce.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},ql=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},xn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:l}=n,{MODE:a}=Tt();return!(o||t||l&&typeof l=="string"&&l!==a||l&&Array.isArray(l)&&!l.includes(a))};var Gl={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.4"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ae=rt("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Gl,{locale:n}=Ne(),{locale:t}=ws(),o=le({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Hn(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,xGap:0,yGap:0,yOffset:60,rotate:-15,cross:!0},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},keepAliveConfig:{setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:10},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},colorWeakness:!1,dynamicDocumentTitle:!0}),l=u=>{n(u),t(u),o.localeLanguage=u,Et(J.localeLanguage,u,"localStorage")},a=(u,d=.3)=>{const p=qo(u,d),g={primaryColor:u,primaryColorHover:u,primaryColorPressed:u};o.primaryColorOverride.common=g;const y=document.documentElement;y.style.setProperty("--ray-theme-primary-color",u),y.style.setProperty("--ray-theme-primary-fade-color",p)},s=(u,d,p)=>{xt(o,u,d,p)},i=u=>{const d=document.documentElement;s("colorWeakness",u),Qe(d,{filter:u?"invert(100%)":""})};return ie(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{...Re(o),updateLocale:l,changePrimaryColor:a,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:J.appPiniaSettingStore}}),En={...oo,onRegister:{type:[Function,Array],default:null}},zn={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...ao};function Hl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const di=x({name:"RCollapse",props:Object.assign({},En,{...zn,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...l}=n;return r(br,N(l,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(Jl,l,Hl(e)?e:{default:()=>[e]})]})}}),Yl={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},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,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{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:()=>Cn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Tn()},onRegister:{type:[Function,Array],default:null}},Xl=Go(),Xt="__R_CHART_DOWN_LOAD_CHART__";Xl.forEach(e=>{ma(e.name,e.theme)});const pi=x({name:"RChart",props:Yl,setup(e,{expose:n}){const{getAppTheme:t}=W(),o=se("rayChartRef"),l=se("rayChartWrapperRef"),a=yn();let s,i;const{echartTheme:u}=ae;let d;const p=C(()=>[{label:"下载图片",key:Xt,disabled:!(a.value&&a.value.getDom())}]),g=C(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),y=M(!1);let f;const m={aria:e.showAria},h=async()=>{var O;De([ga,ha,va,ya,ba,Sa,_a,wa]),De([Ca,Ta,Oa,ka,Aa,Ra]),De([Pa,xa]),De([Ea]);try{De((O=e.use)==null?void 0:O.filter(Boolean))}catch(R){console.error("[RChart register error]: ",R)}},v=()=>{if(a.value&&T(),e.theme==="default"){e.autoChangeTheme?c("dark"):c("");return}if(e.theme)c(e.theme);else{const O=e.autoChangeTheme&&t.value?`${u}-dark`:u;c(O)}},b=O=>{let R=ee(O);return R=(q=>Object.assign({},R,q))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),R},c=(O=u)=>{var he;const R=o.value,j=b(e.options),{height:q,width:$}=R.getBoundingClientRect(),{onSuccess:te,onError:G}=e;try{a.value=fa(R,O,{width:$===0?200:void 0,height:q===0?200:void 0}),te&&F(te,a.value),e.nextTick?(a.value.setOption({}),X(()=>{var ne;j&&((ne=a.value)==null||ne.setOption(j))})):j&&((he=a.value)==null||he.setOption(j))}catch(ne){throw G&&F(G),new Error(`[RChart render error]: ${ne}`)}finally{const{onFinally:ne}=e;ne&&F(ne)}},_=()=>{var O;return!!((O=a.value)!=null&&O.isDisposed())},T=()=>{var O;_()||(O=a.value)==null||O.dispose()},w=()=>{a.value&&a.value.resize()},S=(O,R)=>{if(O===Xt&&!_()){const{filename:q,...$}=e.downloadOptions;Ho(a.value.getDataURL($),q??`${new Date().getTime()}`)}const{onDropdownSelect:j}=e;j&&F(j,O,R)},E=()=>{var R;if(e.autoResize&&(s||(s=Rt(w,500)),i||(i=Mo(e.autoResizeObserverTarget||l,s))),(R=a.value)!=null&&R.getDom()||!y.value&&e.intersectionObserver)return;v(),f==null||f.stop();const{onRegister:O}=e;O&&a.value&&F(O,a.value,E,k)},k=()=>{T(),s==null||s.cancel(),i==null||i.stop(),f==null||f.stop(),f=null,s=null,i=null};return Pe(()=>t.value,()=>{e.autoChangeTheme&&(T(),v())}),ie(()=>{var O,R;e.intersectionObserver&&(f=zo(e.intersectionObserverTarget||l,([j])=>{y.value=j.isIntersecting},e.intersectionOptions)),e.watchOptions?d=za(()=>e.options,j=>{var te;const q=b(j),$=Object.assign({},Tn(),e.setChartOptions);(te=a.value)==null||te.setOption(q,$)},{deep:!0,throttle:e.watchOptionsThrottleWait}):d==null||d(),e.loading?(O=a.value)==null||O.showLoading(Cn(e.loadingOptions)):(R=a.value)==null||R.hideLoading(),e.showAria!==m.aria&&a.value&&(a.value.setOption(b(e.options)),m.aria=e.showAria),y.value&&!_()&&E()}),n(),Fo(async()=>{await h()}),xe(()=>{E()}),bn(()=>{k(),d==null||d()}),{rayChartRef:o,cssVarsRef:g,rayChartWrapperRef:l,moreDropDownOptions:p,dropdownSelect:S}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:l,bordered:a,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(ot,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:a,embedded:!0},{default:ye(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ye(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":ye(i,{defaultElement:r(Ln,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:l.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),mi=()=>{let e,n,t;const o=(u,d,p)=>{u&&(e=u,n=p,t=d)},l=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:l,isDisposed:()=>{var u;return!!((u=l().echartInst)!=null&&u.isDisposed())},dispose:()=>l().dispose.call(null),render:()=>l().render.call(null)}]},Jl=x({name:"RCollapseGrid",props:zn,setup(e){const n=M(!e.open),t=C(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:a,"onUpdate:open":s}=e;n.value=!n.value,a&&F(a,n.value),s&&F(s,n.value)},l=a=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[a?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(P,{customClassName:`collapse-icon--arrow ${a?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ie(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:l,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:l,modelCollapsed:a,xGap:s,yGap:i,collapsedRows:u,cssVars:d,bordered:p}=this;return r(ot,{bordered:p,style:[d]},{default:()=>r(lo,N({class:"ray-collapse-grid"},l,{collapsed:a,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(ro,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(D,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(a):o(a)]})]})]})})}}),Zl={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}},P=x({name:"RIcon",props:Zl,setup(e){const n=C(()=>`#${e.prefix}-${e.name}`),t=C(()=>({"--ray-icon-width":e.width?V(e.width):V(e.size),"--ray-icon-height":e.height?V(e.height):V(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:l=>{const{onClick:a}=e;a&&F(a,l)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",N({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Ql={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,String],default:!0},iframeClass:{type:String,default:null}},fi=x({name:"RIframe",props:Ql,setup(e,{expose:n}){const t=C(()=>({"--ray-iframe-frameborder":V(e.frameborder),"--ray-iframe-width":V(e.width),"--ray-iframe-height":V(e.height)})),o=se("iframeRef"),l=M(!0),a=i=>{l.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{l.value=!1;const{onError:u}=e;u&&F(u,i)};return Be(o,"load",a),Be(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:l}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(at,N(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),er={...so,memo:{type:Boolean,default:!0},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}},tr=(e,n,t)=>{const{scheduler:o}=t??{};return new Promise(l=>{setTimeout(()=>{const a=n==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Gt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Gt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);l(s)}},30)})},Mn=(e,n)=>{const t=typeof e=="string"?document.querySelector(e):e;return new Promise((o,l)=>{if(t){t.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=n;let{x:i,y:u}=n;tr(t,a,{scheduler:d=>{const p=d.target;i+=d.dx,u+=d.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,d)}}).then(d=>{o(d)})}else l()})},nr="r-modal__preset-card--fullscreen",In="r-modal",Oe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},gi=x({name:"RModal",props:er,setup(e){const n=C(()=>({[Oe.width]:V(e.width??600),[Oe.cardWidth]:V(e.cardWidth??600),[Oe.dialogWidth]:V(e.dialogWidth??446)})),t=et();let o;const l={x:0,y:0},a=C(()=>e.preset==="card"&&e.fullscreen);return Pe(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?X(()=>{const i=document.getElementById(t);i&&Mn(i,{preset:e.preset,x:l.x,y:l.y,dargCallback:(u,d)=>{l.x=u,l.y=d}}).then(u=>{o=u}),e.memo&&i&&(i.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:n,isFullscreenCardType:a,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...l}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:i}=this;return r(sn,N({class:[In,i?nr:""],style:[a,i?"height: 100vh":""],preset:o},{id:s},l,t),{...n})}}),or=()=>{const{create:e,destroyAll:n}=io();return{create:o=>{const{content:l,...a}=o;let s=l;a.preset==="card"&&a.fullscreen&&(s=()=>lt(Pt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof l=="function"?l():l}));const{preset:i,dad:u,fullscreen:d,width:p,cardWidth:g,dialogWidth:y}=o,f=e({...a,content:s}),{key:m}=f,h={[Oe.width]:V(p??600),[Oe.cardWidth]:V(g??600),[Oe.dialogWidth]:V(y??446)};return X(()=>{const[v]=tt(`[internalkey="${m}"]`)||[];v&&(u&&Mn(v,{preset:i,x:0,y:0}),d&&i==="card"&&Qe(v,{width:"100%",height:"100vh"}),Qe(v,h),On(v,In))}),f},destroyAll:n}},ar={...uo,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function lr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ln=x({name:"RMoreDropdown",props:ar,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:l}=this.$slots;return r(ke,N(this.$props,this.$attrs,{placement:"bottom-start"}),lr(e=ye(l,{defaultElement:r(P,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),ze={...co,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},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},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},re={tableIconSize:"18",tableKey:Symbol("r-table")},rr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],sr=x({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ze},setup(e){return{size:M(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:l=>{const{onChangeSize:a}=e;a&&F(a,l)}}},render(){return r(un,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"adjustment",size:re.tableIconSize,cursor:"pointer"},null)]})}}),ir=x({name:"TableFullscreen",setup(){const{wrapperRef:e}=Ee(re.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=wn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(P,{name:"fullscreen",size:re.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),ur=()=>r(P,{name:"draggable",size:14,cursor:"grab"},null),Jt=({icon:e,title:n,onClick:t,customClassName:o})=>r(je,{showArrow:!1},{trigger:()=>r(P,{name:e,size:re.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Ot=(e,n)=>{if(!n)return[null,null];for(let t=0;t<n.length;++t){const o=n[t];if(o.key===e.key)return[n,t];const[l,a]=Ot(e,o.children);if(l&&a!==null)return[l,a]}return[null,null]},ht="r-table__c-tool-icon--active",cr=x({name:"TableC",props:{...ze,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let n;const t=C({get:()=>Xe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,d)=>{const{key:p,title:g,children:y,fixed:f,isResizable:m,...h}=u,v=f==="left",b=f==="right",c={...h,title:g,key:p,fixed:f,isLeftFixedActivated:v,isRightFixedActivated:b,isResizable:m};return{...c,suffix:()=>r(D,{style:"padding-left: 32px;"},{default:()=>[r(Jt,{icon:"row_head",title:"固定在列首",customClassName:v?ht:"",onClick:a.bind(this,"left",c,d)},null),r(je,{showArrow:!1},{trigger:()=>r(P,{name:"resize_h",size:re.tableIconSize,cursor:"pointer",customClassName:m?ht:"",onClick:l.bind(this,c,d)},null),default:()=>"修改列宽"}),r(Jt,{icon:"row_end",title:"固定在列尾",customClassName:b?ht:"",onClick:a.bind(this,"right",c,d)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},l=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},a=(i,u,d)=>{const p=`${i}FixedActivated`,g=`${i==="left"?"right":"left"}FixedActivated`;u[g]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[d]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:d})=>{const[p,g]=Ot(u,t.value);if(p===null||g===null)return;p.splice(g,1);const[y,f]=Ot(i,t.value);y===null||f===null||(d==="before"?y.splice(f,0,u):y.splice(f+1,0,u),rn(n)||y.unshift(n),o(y))}}},render(){return r(je,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(P,{name:"setting",size:re.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(po,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:ur.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),dr=x({name:"TablePrint",props:ze,setup(e){const{wrapperRef:n}=Ee(re.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:l}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),kn(n,{printOptions:o,domToImageOptions:l})}}},render(){return r(P,{name:"print",size:re.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),pr=x({name:"TablePropsSelect",props:{...ze,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=M(!1),t=M([]),o=a=>{const{onPopselectChange:s}=e;s&&F(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:i}=e;a&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(un,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:rr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"expanded",size:re.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function mr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const fr=x({name:"RTable",inheritAttrs:!1,props:ze,setup(e,n){const{expose:t,emit:o}=n,l=se("rTableInst"),a=se("wrapperRef"),s=et(16),i=et(16),u=le({x:0,y:0,showContextMenu:!1}),d=le({size:e.size}),p=M(Object.assign({striped:!1,bordered:!1},Fe(e,"striped","bordered"))),g=(c,_)=>{const{onContextMenuClick:T}=e;T&&F(T,c,_),u.showContextMenu=!1},y=(c,_)=>{var w;return{...(w=e.rowProps)==null?void 0:w.call(e,c,_),onContextmenu:e.disabledContextMenu?void 0:S=>{S.preventDefault(),u.showContextMenu=!1,X().then(()=>{u.showContextMenu=!0,u.x=S.clientX,u.y=S.clientY})}}},f=c=>{d.size=c},m=c=>{const{onUpdateColumns:_,"onUpdate:columns":T}=e;_&&F(_,c),T&&F(T,c)},h=()=>{const{toolOptions:c}=e;return c==null?void 0:c.filter(Boolean).map(_=>typeof _=="function"?_():_)},v=c=>{Object.keys(p.value).forEach(T=>{p.value[T]=c.includes(T)})},b=c=>{const{tool:_}=c;if(!_)return;const T=()=>r(D,{align:"center"},{default:()=>[r(dr,c,null),r(sr,N(c,{onChangeSize:f.bind(this)}),null),r(ir,null,null),r(cr,N(c,{onUpdateColumn:m.bind(this)}),null),r(pr,N(c,{onPopselectChange:v.bind(this),onInitialed:v.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let w;return r(D,{align:"center"},mr(w=h())?w:{default:()=>[w]})}:()=>r(D,{align:"center"},{default:()=>[T(),h()]}):T};return xe(()=>{const{onRegister:c}=e;c&&l.value&&F(c,l.value,{uuidTable:i,uuidWrapper:s,wrapperRef:a})}),Sn(re.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:a}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:l,combineRowProps:y,contextMenuSelect:g,privateReactive:d,tool:b,wrapperRef:a,propsPopselectValue:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:l,uuidWrapper:a,privateReactive:s,propsPopselectValue:i}=this,{class:u,...d}=n,{tool:p,combineRowProps:g,contextMenuSelect:y}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:h,contextMenuOptions:v,title:b,tableFlexHeight:c,cardProps:_,...T}=e;return r(ot,N(_,{id:a},d,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(_n,null,[r(mo,N({id:o},T,i,{rowProps:g.bind(this),size:s.size,ref:"rTableInst",style:{height:c!=null?V(c):null}}),{...t}),h?null:r(ke,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:v,onClickoutside:()=>l.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:f?ye(b,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var w;return(w=t.tableFooter)==null?void 0:w.call(t)},action:()=>{var w;return(w=t.tableAction)==null?void 0:w.call(t)}})}}),gr=()=>{const e=M();let n={};const t=(f,m)=>{f&&(e.value=f,n=m)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:f=>o().downloadCsv.call(null,f),filters:f=>o().filters.call(null,f),page:f=>o().page.call(null,f),scrollTo:f=>o().scrollTo(f),sort:(f,m)=>o().sort.call(null,f,m),print:f=>{const{uuidWrapper:m}=n;if(m){const h=document.getElementById(m);kn(h,f)}},filter:f=>o().filter.call(null,f)}]},Dn=(e,n,t)=>{var o;if(e.length)for(const l of e){if(l[n]===t)return l;if((o=l==null?void 0:l.children)!=null&&o.length){const a=Dn(l.children,n,t);if(a)return a}}},Zt=e=>{const n=ee(e);return n?n.findIndex(o=>{const{type:l,multiple:a}=o;if(l==="selection"&&(a==null||a===!0))return!0})!==-1:!0},hr=(e,n,t,o)=>{const l=ee(e);return l?n.reduce((a,s)=>{const i=ee(t).findIndex(d=>d[o]===s);if(i!==-1)return a.push(ee(t)[i]),a;const u=l.findIndex(d=>d[o]===s);return u!==-1&&a.push(l[u]),a},[]):t},hi=(e,n,t)=>{const o=M([]),l=M([]),{rowKey:a="key",onChange:s}=t||{},i=C(()=>Zt(n)),u=(m,h,v)=>{o.value=m,l.value=ee(hr(e,m,l,a)),s==null||s(m,l.value,v),Zt(n)},d=()=>o.value,p=()=>l.value,g=()=>{o.value=[],l.value=[],s==null||s(o.value,l.value,{row:void 0,action:"uncheckAll"})},y=m=>{if(m==null)return;let h;o.value=o.value.filter(v=>v!==m),l.value=l.value.filter(v=>v[a]===m?(h=v,!1):!0),s==null||s(o.value,l.value,{row:h,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const h=!i.value&&o.value.length>=1,v=Dn(ee(e)||[],a,m);h?o.value=[m]:o.value.push(m),v&&(h?l.value=[v]:l.value.push(v),s==null||s(o.value,l.value,{row:v,action:"check"}))};return zt(()=>{g()}),[o,{checkedRows:l,checkedRowKeysBind:u,getKeys:d,getRows:p,clearAll:g,clearKey:y,selectKey:f}]},vr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},yr=x({name:"RTransitionComponent",__name:"index",props:jo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},vr),setup(e){const{getKeepAliveInclude:n}=Dr(),{getKeepAliveConfig:t}=W();return(o,l)=>{const a=Vo("RouterView");return Se(),Bo("div",null,[r(a,null,{default:ft(({Component:s,route:i})=>[s?(Se(),Le(Ma,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:ft(()=>[(Se(),Le(No,null,{default:ft(()=>[ee(t).setupKeepAlive?(Se(),Le(Uo,{key:0,max:ee(t).maxKeepAliveLength,include:ee(n),exclude:ee(t).keepAliveExclude},[(Se(),Le(Kt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Se(),Le(Kt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):$o("",!0)]),_:1})])}}}),br=x({name:"RForm",props:En,setup(e,{expose:n}){const t=se("formRef");return xe(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(me,N(e,n,{ref:"formRef"}),{...t})}}),vi=(e,n)=>{const t=M(),o=d=>{d&&(t.value=d)},l=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:l,validate:(d,p)=>l().validate.call(null,d,p),restoreValidation:()=>l().restoreValidation.call(null),formModel:()=>Xe(e)||{},formRules:()=>Xe(n)||{}}]},Sr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],_r={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},wr=Ve({...fo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Sr);function Cr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const kt=e=>{const{icon:n,label:t}=e;return n?r(D,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=ye(n))==null?void 0:o(),r("div",null,[t])]}}):t},Tr=e=>{if(typeof e.popover=="string")return r(je,null,{trigger:()=>kt(e),default:()=>e.popover});if(fe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(je,o,{trigger:()=>kt(e),default:()=>t})}},Or=x({name:"RSegment",props:wr,setup(e,{expose:n}){const t=C(()=>{const{width:o}=e;let l="";switch(o){case"block":l="100%";break;case"fitContent":l="fit-content";break;default:l=typeof o=="number"?V(o):"fit-content"}return{"--r-segment-width":l}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:l}=this;return r(cn,N(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},_r,l)}),Cr(e=t.map(a=>r(go,{key:a.key,name:a.key,tab:a.popover?Tr(a):kt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),kr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},yi=x({name:"RBarcode",props:kr,setup(e){const n=se("barcodeRef"),t=C(()=>({"--r-barcode-width":V(e.width),"--r-barcode-height":V(e.height)}));let o;const l=()=>{try{const{format:a,text:s,options:i,onSuccess:u}=e,d=Object.assign({},i,{format:a});Wo(n.value,s!=null?s.toString():"",d),u&&F(u,s,a,i)}catch(a){const{onError:s}=e;s&&F(s,a)}finally{const{onFinally:a}=e;a&&F(a)}};return ie(()=>{e.watchText?o=Pe(()=>e.text,l):o==null||o()}),xe(()=>{l()}),bn(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(at,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Ar={...Ve(ze,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Rr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const bi=x({name:"RTablePro",props:Ar,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p}]=gr(),[g,{getPage:y,getPageSize:f,setCallback:m,setItemCount:h,resetPagination:v,getItemCount:b}]=Os(void 0,{prefix:k=>`${k.itemCount}`}),c=C(()=>e.request),_=()=>({getItemCount:b,getPage:y,getPageSize:f}),T=()=>{const{onTablePaginationUpdate:k}=e;k&&F(k,_())},w=k=>{const O=Object.assign({},e.requestConfig,k),{params:R,formatRangeTime:j}=O;return j!=null&&j.length&&R&&j.forEach($=>{const{key:te,target:G}=$,he=R[te];if(he&&(G!=null&&G.length)){const[ne,ct]=he;R[G[0]]=ne,R[G[1]]=ct}else R[te]=null,R[G[0]]=null,R[G[1]]=null}),Object.assign({},R,{page:y(),pageSize:f()})},S=k=>{var R;v();const O=w(k);(R=c.value)==null||R.call(c,O)},E=k=>{var R;const O=w(k);(R=c.value)==null||R.call(c,O)};return ie(()=>{h(e.paginationCount),m(()=>{const{manual:k}=e;k||E(),T()})}),xe(()=>{const{onRegister:k}=e;k&&F(k,{getTablePagination:_,runTableRequest:S,clearFilters:t,clearSorter:o,downloadCsv:l,filters:a,page:s,scrollTo:i,sort:u,print:d,filter:p,getCurrentTableRequestParams:w})}),{register:n,paginationRef:g}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:l,showPagination:a,...s}=n;return r(fr,N(s,{onRegister:e,pagination:a?t:void 0}),Rr(o)?o:{default:()=>[o]})}}),Si=()=>{const e=M(),n=m=>{m&&(e.value=m)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:m=>t().downloadCsv.call(null,m),filters:m=>t().filters.call(null,m),page:m=>t().page.call(null,m),scrollTo:m=>t().scrollTo(m),sort:(m,h)=>t().sort.call(null,m,h),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:m=>t().runTableRequest.call(null,m),print:m=>t().print.call(null,m),getCurrentTableRequestParams:m=>t().getCurrentTableRequestParams.call(null,m)}]},Pr=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),xr={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:Pr()},onRegister:{type:[Function,Array],default:void 0}};let Qt=!1;const _i=x({name:"RFlow",props:xr,setup(e){const n=se("flowDomRef"),t=C(()=>{const{width:g,height:y}=e;return{"--r-flow-width":V(g),"--r-flow-height":V(y)}}),o=yn(),l={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let a;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var g;Qt||((g=e.use)==null||g.filter(Boolean).forEach(y=>Wt.use(y)),Qt=!0)},d=g=>{if(!o.value)return;const y=Object.entries(l).reduce((f,[m])=>(f[m]=!g,f),{});Object.assign(l,y,{isSilentMode:g}),o.value.updateEditConfig(l)},p=g=>{if(u(),!n.value)return;const{options:y,readonly:f}=e;o.value=new Wt({container:ee(n.value),...Ve(y,"container")}),o.value.render(g||s),d(f)};return ie(()=>{e.watchData?a=Pe(()=>e.data,g=>{o.value?g&&o.value.renderRawData(g):p(g)}):a==null||a(),e.readonly!==i.readonly&&(d(e.readonly),i.readonly=e.readonly)}),xe(()=>{p();const{onRegister:g}=e;g&&o.value&&F(g,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),wi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Er=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Fn=(e,n,t)=>{const o=[];if(Er(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const l of e.children){const a=Fn(l,n,t);a.length>0&&o.push(e,...a)}return o},zr=(e,n,t)=>{const o=[];for(const l of e){const a=Fn(l,n,t);a.length>0&&o.push(...a)}return o},en=e=>{const{dynamicDocumentTitle:n}=Ae();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ae(),l=o?o.title:"";document.title=t+" - "+l},Mr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(fe(n,"Object"))return()=>n;const{menuConfig:t}=Ae(),{collapsed:o}=It(),l=lt(P,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>l},jn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ne(),{label:l,icon:a,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},d=()=>i?o(i):l||null,p=()=>a&&(i||l)||!a&&(i||l)?null:{"padding-right":"0"};if(fe(n,"Object"))return()=>lt(ho,{...u,type:s||"primary",style:p()},{default:()=>d(),icon:()=>a})},tn=()=>{const{getRootPath:e}=Ie();return Ze(J.appMenuKey,"sessionStorage",{defaultValue:e.value})},Bn=()=>$l(Vl()),Ir=()=>Ul(Bn()),At=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let qe;const Vn=(e,n)=>{var t;if(qe&&qt(qe.fullPath,n))return qe;for(const o of e){if(qt(o.fullPath,n))return qe=o,o;if((t=o.children)!=null&&t.length){Vn(o.children,n);continue}}},It=rt("menu",()=>{const{push:e,getRoutes:n}=st(),t=ia(),{t:o}=Ne(),{setKeepAliveInclude:l}=Fr(),a=le({menuKey:tn(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=M(!0),i=(c,_,T)=>{xt(a,c,_,T)},u=c=>{const{meta:_}=c,{i18nKey:T,noLocalTitle:w}=_,S=C(()=>T?o(`${T}`):w),E={...c,key:c.fullPath,label:()=>lt(dn,null,{default:()=>S.value}),breadcrumbLabel:S.value},k=Object.assign({},E,{icon:Mr(c),extra:jn(c)});return c.fullPath===tn()&&(a.currentMenuOption=k),k.show=xn(k),k},d=c=>{a.breadcrumbOptions=zr(a.options,"fullPath",c)},p=(c,_=!0)=>{const w=Array.isArray(c)?[...c]:[c];_?a.menuTagOptions.push(...w):a.menuTagOptions=w},g=(c,_)=>{a.menuTagOptions.find(w=>w.fullPath===c)||a.menuTagOptions.push(_)},y=(c,_,T)=>{const{meta:w}=_;if(w.windowOpen)window.open(w.windowOpen);else{e({path:String(c),query:T});const{sameLevel:S}=w;if(l(_),en(_),!S)g(c,_),d(c),a.menuKey=c,a.currentMenuOption=_,Et(J.appMenuKey,c);else{const E=Fe(u(_),At);a.breadcrumbOptions.find(O=>O.key===E.key)||a.breadcrumbOptions.push({...E,fullPath:String(E.key)})}}},f=async(c,_)=>{const[T]=c.split("?"),w=n().find(S=>S.path===T);if(!((w==null?void 0:w.path)==="/"||!(w!=null&&w.path)||(w==null?void 0:w.path)==="/login")&&w){const S=Fe(w,At);y(T,u({...S,fullPath:S.path}),_)}},m=()=>new Promise(c=>{const _=(T,w)=>{var E;const S=[];for(const k of T){let O=`${w.endsWith("/")?w:w+"/"}${k.path}`;if(O=O.replace(/\/+/g,"/"),(E=k.children)!=null&&E.length)k.children=_(k.children,O);else if(!Kn(k.meta))continue;S.push(u({...k,fullPath:O}))}return S};if(a.options=_(Bn(),""),a.currentMenuOption){const{currentMenuOption:T}=a;a.breadcrumbOptions.length||d(T.key),g(T.fullPath,T),en(T)}c()}),h=c=>a.collapsed=c,v=(c,_=1)=>a.menuTagOptions.splice(c,_),b=async()=>{s.value&&(await m(),s.value=!1)};return Pe(()=>t.fullPath,async(c,_)=>{await b(),c!==_&&await f(c,t.query)},{immediate:!0}),{...Re(a),changeMenuModelValue:y,collapsedMenu:h,spliceMenTagOptions:v,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:J.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Nn=rt("signing",()=>{const e=le({signingCallback:{}}),n=l=>new Promise((a,s)=>{rn(l)?s({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:l.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),t=l=>{const{closeAll:a}=Gn(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:d,appMenuKey:p}=J;window.$message.info("账号退出中..."),_e("__all_sessionStorage__","sessionStorage"),_e(i,"localStorage"),_e(s,"localStorage"),_e(u,"localStorage"),_e(d,"localStorage"),_e(p,"localStorage"),a(),l&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...Re(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:J.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Un=rt("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=l=>{const a=n(),{name:s,meta:{keepAlive:i}}=l,{maxKeepAliveLength:u}=Ae().keepAliveConfig;if(i){if(a<u&&!e.keepAliveInclude.includes(s)){e.keepAliveInclude.push(s);return}a>=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...Re(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:J.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),be=()=>{const e=It(),n=C(()=>e.options),t=C(()=>e.breadcrumbOptions),o=C(()=>e.menuKey),l=C(()=>{const{getRootPath:i}=Ie();return e.menuTagOptions.map((u,d,p)=>(u.key===o.value&&u.key!==i.value?u.closeable=!0:u.closeable=!1,u.key===i.value&&(u.closeable=!1),p.length<=1&&(u.closeable=!1),u))}),a=C(()=>e.currentMenuOption),s=C(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:l,getCurrentMenuOption:a,getCollapsed:s}},Me=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}=It();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:l,updateMenuState:a,setupAppMenu:s}},W=()=>{const e=Ae(),n=C(()=>e.drawerPlacement),t=C(()=>e.primaryColorOverride),o=C(()=>e._appTheme),l=C(()=>e.appTheme),a=C(()=>e.menuTagSwitch),s=C(()=>e.breadcrumbSwitch),i=C(()=>e.localeLanguage),u=C(()=>e.lockScreenSwitch),d=C(()=>e.copyrightSwitch),p=C(()=>e.contentTransition),g=C(()=>e.watermarkSwitch),y=C(()=>e.watermarkConfig),f=C(()=>e.appRootRoute),m=C(()=>e.sideBarLogo),h=C(()=>e.keepAliveConfig),v=C(()=>e.menuConfig),b=C(()=>e.colorWeakness),c=C(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:d,getContentTransition:p,getWatermarkSwitch:g,getWatermarkConfig:y,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:h,getMenuConfig:v,getAppThemeStr:l,getColorWeakness:b,getDynamicDocumentTitle:c}},U=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ae();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},$n=()=>{const e=Nn();return{getSigningCallback:C(()=>e.signingCallback)}},Lr=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Nn();return{signing:e,logout:n,clearSigningCallback:t}},Dr=()=>{const e=Un();return{getKeepAliveInclude:C(()=>e.keepAliveInclude)}},Fr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Un();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ci=e=>{const n=ta();e.use(n),n.use(ea)},Kn=e=>{const{getSigningCallback:n}=$n(),{role:t}=e;return We!=null&&We.length&&We.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},jr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Ka;n&&ql(e),t&&Kl(e)},Br=M(),Vr=x({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=st(),{getSideBarLogo:n}=W();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:l})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(P,{name:n.value.icon,size:"30",cursor:l},null);if(fe(n.value.icon,"Object"))return ye(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Br},[e!=null&&e.icon?n?r(Je,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(Je,{placement:"right"},{trigger:()=>r(Nt,{type:"primary",size:18},{default:()=>{var l;return[((l=e.title)==null?void 0:l[0])||null]}}),default:()=>e.title}):null,r(Nt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(dn,null,{default:()=>[e.title]})]})]):null}}),Nr=x({name:"AppMenu",setup(){const e=M(null),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Me(),{getMenuConfig:l}=W(),{getMenuOptions:a,getCollapsed:s,getMenuKey:i}=be(),u=C({get:()=>(X().then(()=>{g()}),i.value),set:()=>{d.value&&pe("globalDrawerValue",!1)}}),{isTabletOrSmaller:d}=ut({observer:f=>{f&&o("collapsed",!1)}}),p=C({get:()=>it("globalDrawerValue").value,set:f=>{pe("globalDrawerValue",f)}}),g=()=>{const f=u.value;f!=null&&X(()=>{var m,h;return(h=(m=e.value)==null?void 0:m.showOption)==null?void 0:h.call(m,f)})};return{isTabletOrSmaller:d,BasicMenu:()=>r(yo,{class:"app-menu__sider",showTrigger:!d.value,collapseMode:l.value.collapsedMode,collapsedWidth:l.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:l.value.menuWidth,nativeScrollbar:l.value.nativeScrollbar,ref:Rn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:l.value.inverted},{default:()=>[l.value.menuSiderBarLogo?r(Vr,{collapsed:s.value},null):null,r(vo,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":f=>u.value=f,options:a.value,indent:l.value.collapsedIndent,collapsed:s.value,collapsedIconSize:l.value.collapsedIconSize,collapsedWidth:l.value.collapsedWidth,onUpdateValue:(f,m)=>{n(f,m)},accordion:l.value.accordion,iconSize:l.value.iconSize,inverted:l.value.inverted},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(pn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class Ur{constructor(){jt(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const l=new AbortController;n.signal=l.signal,this.pendingRequest.set(o,l)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const vt={requestInstance:null,responseInstance:null},yt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Ge={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},$r=new Ur,Ti=()=>{const e=(i,u)=>{u==="requestInstance"?vt.requestInstance=i:vt.responseInstance=i},n=i=>vt[i],t=(i,u,d)=>{d==="ok"?yt[i]=u:Ge[i]=u},o=(i,u)=>u==="ok"?yt[i]:Ge[i],l=(i,...u)=>{Array.isArray(i)&&i.forEach(d=>{typeof d=="function"&&d(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,d)=>{const p=d==="ok"?yt[u]:Ge[u],g=n(i),{MODE:y}=Tt();g&&l(p,g,y)},fetchError:(i,u,d)=>{const p=Ge[d],{MODE:g}=Tt();l(p,u,g)}}},Kr=x({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ua(()=>{$r.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Wn=x({name:"LayoutContentWrapper",setup(){st();const{maximize:e}=qn(),{getContentTransition:n}=W(),t=M(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:l,layoutContentMaximize:a,layoutContentSpinning:s}=qa();return{globalMainLayoutLoad:l,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:l,themeOverridesSpin:a,getContentTransition:s}=this;return r(at,{show:l||!e||t,description:"loading...",size:"large",themeOverrides:a,class:[n?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(P,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Kr,null,null),e?r(yr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Wr=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"}));var qr={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.4"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Gr=x({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=qr;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Hr=x({name:"TooltipIcon",props:{...bo,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=l=>{n("click",l)};return{iconClick:t,Icon:()=>r(P,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(Je,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),Yr=x({name:"ThemeSegment",setup(){const{system:e}=hn(),{getAppThemeStr:n,getAppTheme:t}=W(),{updateSettingState:o}=U(),l=[{label:"深色",key:"dark",icon:()=>r(P,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(P,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(P,{name:"system_os",size:"16"},null)}],a=C({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return ie(()=>{s(a.value,e.value)}),{options:l,modelAppTheme:a}},render(){const{options:e}=this;return r(Or,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Xr={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},Jr=()=>Xr,Ue=Symbol("segmentDrawer"),Zr=x({name:"SegmentViewsAppearance",setup(){const e=Ee(Ue,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=U();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[Y("系统主题")]}),r(Yr,null,null),r(oe,null,{default:()=>[Y("内置主题")]}),r(So,{showPreview:!0,swatches:ae.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":l=>n.primaryColorOverride.common.primaryColor=l,onUpdateValue:t.bind(this)},null),r(oe,null,{default:()=>[Y("切换动画")]}),r(Ut,{value:n.contentTransition,"onUpdate:value":l=>n.contentTransition=l,options:Ba,onUpdateValue:l=>{o("contentTransition",l)}},null),r(oe,null,{default:()=>[Y("配置入口出现位置")]}),r(Ut,{value:n.drawerPlacement,"onUpdate:value":l=>n.drawerPlacement=l,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:l=>{o("drawerPlacement",l)}},null),r(oe,null,{default:()=>[Y("其他设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(L,{label:"面包屑"},{default:()=>[r(Q,{value:n.breadcrumbSwitch,"onUpdate:value":l=>n.breadcrumbSwitch=l,onUpdateValue:l=>o("breadcrumbSwitch",l)},null)]}),r(L,{label:"标签页"},{default:()=>[r(Q,{value:n.menuTagSwitch,"onUpdate:value":l=>n.menuTagSwitch=l,onUpdateValue:l=>o("menuTagSwitch",l)},null)]}),r(L,{label:"页底信息"},{default:()=>[r(Q,{value:n.copyrightSwitch,"onUpdate:value":l=>n.copyrightSwitch=l,onUpdateValue:l=>o("copyrightSwitch",l)},null)]}),r(L,{label:"色弱模式"},{default:()=>[r(Q,{value:n.colorWeakness,"onUpdate:value":l=>n.colorWeakness=l,onUpdateValue:l=>{o("colorWeakness",l),e(l)}},null)]})]})]})}}),Qr=x({name:"SegmentViewsCommon",setup(){const e=Ee(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[Y("基础设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(L,{label:"页面缓存"},{default:()=>[r(Q,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(L,{label:"动态浏览器标题"},{default:()=>[r(Q,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(oe,null,{default:()=>[Y("缓存设置")]}),r(me,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(L,{label:"最大缓存数",feedback:C(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时缓存将会失效":"").value},{default:()=>[r(K,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(L,{label:"排除缓存"},{default:()=>[r(_o,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),es=x({name:"SegmentViewsWatermark",setup(){const e=Ee(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,null,{default:()=>[Y("基础设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(L,{label:"全屏水印"},{default:()=>[r(Q,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(L,{label:"跨边界显示"},{default:()=>[r(Q,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(oe,null,{default:()=>[Y("个性化水印")]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(L,{label:"水印内容"},{default:()=>[r(mn,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(L,{label:"字体尺寸"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(L,{label:"字体行高"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(L,{label:"字体宽度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(L,{label:"字体高度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(L,{label:"x轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(L,{label:"x轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(L,{label:"y轴偏移"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(L,{label:"y轴间隙"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(L,{label:"旋转角度"},{default:()=>[r(K,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),ts=x({name:"SegmentViewsCustomMenu",setup(){const e=Ee(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(D,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(oe,{titlePlacement:"center"},{default:()=>[r(D,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Je,{placement:"top",showArrow:!1},{trigger:()=>r(P,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(fn,null,{default:()=>[Y("菜单样式")]})]})]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(L,{label:"每级菜单缩进"},{default:()=>[r(K,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(L,{label:"菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(L,{label:"折叠菜单图标尺寸"},{default:()=>[r(K,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(L,{label:"菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(L,{label:"折叠菜单宽度"},{default:()=>[r(K,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(L,{showFeedback:!1,showLabel:!1},{default:()=>[r(Z,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[Y("更新菜单")]})]})]}),r(oe,null,{default:()=>[Y("其他设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(L,{label:"反转色菜单"},{default:()=>[r(Q,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(L,{label:"菜单标题"},{default:()=>[r(Q,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(L,{label:"手风琴菜单"},{default:()=>[r(Q,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(L,{label:"原生滚动条"},{default:()=>[r(Q,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),ns=x({name:"SettingDrawer",props:wo,setup(){const{create:e}=or(),{changePrimaryColor:n,updateSettingState:t}=U(),{getAppTheme:o,getPrimaryColorOverride:l,getMenuTagSwitch:a,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d,getKeepAliveConfig:p,getMenuConfig:g,getDrawerPlacement:y,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:h}=W(),{setupAppMenu:v}=Me(),b=Rt(v,300),c=le({menuTagSwitch:a.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:d.value,keepAliveConfig:p.value,menuConfig:g.value,drawerPlacement:y.value,colorWeakness:f.value,primaryColorOverride:l.value,watermarkConfig:m.value,dynamicDocumentTitle:h.value,throttleSetupAppMenu:b}),_=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{no(Jr(),(T,w)=>{c[w]=T,t(w,T)}),b()}})};return Sn(Ue,c),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:l,updateSettingState:t,modelReactive:c,defaultSettingBtnClick:_}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:l,...a}=n;return r(pn,N(a,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Co,{title:"个性化配置",closable:!0},{default:()=>r(cn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ke,{name:"appearance",tab:"外观"},{default:()=>[r(Zr,null,null)]}),r(Ke,{name:"menu",tab:"菜单"},{default:()=>[r(ts,null,null)]}),r(Ke,{name:"watermark",tab:"水印"},{default:()=>[r(es,null,null)]}),r(Ke,{name:"common",tab:"通用"},{default:()=>[r(Qr,null,null)]})]}),footer:()=>r(D,{justify:"flex-start"},{default:()=>[r(Z,{type:"warning",onClick:e},{icon:()=>r(P,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function os(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const as=x({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Me(),{getBreadcrumbOptions:n}=be(),{isTabletOrSmaller:t}=ut();return{getBreadcrumbOptions:n,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:i={}}=a;i.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:l}=this;return n?r("div",{style:"display: none;"},null):r(Oo,null,{default:()=>[r(Ia,{tag:"li",name:"breadcrumb",appear:!0},os(e=t.map(a=>r(To,{key:a.fullPath,onClick:l.bind(this,a)},{default:()=>{var s;return[r(ke,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function bt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ls=x({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Me(),{getRoutes:l}=st(),a=C({get:()=>e.show,set:S=>{n("update:show",S),S||f()}}),s=le({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,d=u;const{isTabletOrSmaller:p}=ut(),g=M(!1),y="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,d=u},m=S=>{a.value||(S.ctrlKey||S.metaKey)&&S.key==="k"&&(S.preventDefault(),S.stopPropagation(),f(),a.value=!0)},h=S=>{if(S)g.value=!0;else{g.value=!1,s.searchOptions=[];return}const E=l().reduce((k,O)=>{var $;const R=Fe(O,["children","meta","path","name"]),j=o({...R,fullPath:O.path}),{breadcrumbLabel:q}=j;return($=q==null?void 0:q.toLocaleLowerCase())!=null&&$.includes(S.toLocaleLowerCase())&&xn(j)&&k.push(j),k},[]);setTimeout(()=>{s.searchOptions=E,X().then(()=>{b()}),g.value=!1},300)},v=S=>{if(S){const{meta:E}=S;E.windowOpen?window.open(E.windowOpen):(a.value=!1,t(S.fullPath,S),setTimeout(Yo,300))}},b=()=>{const S=s.searchOptions[u],E=s.searchOptions[d];S&&X().then(()=>{const k=tt(`attr:data_path="${S.path}"`),O=E?tt(`attr:data_path="${E==null?void 0:E.path}"`):null;if(O!=null&&O.length){const[R]=O;Xo(R,y)}if(k!=null&&k.length){const[R]=k;On(R,y)}})},c=S=>{const{icon:E}=S;return typeof E=="string"?r(P,{name:E,size:"24"},null):typeof E=="function"?()=>E:r(P,{name:"search",size:"24"},null)},_=S=>{S==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),S==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},T=S=>{const E=S.key;switch((E==="ArrowUp"||E==="ArrowDown"||E==="Enter")&&(S.preventDefault(),S.stopPropagation()),d=u<=0?0:u,E){case"ArrowUp":_("up");break;case"ArrowDown":_("down");break;case"Enter":const k=s.searchOptions[u];k&&v(k);break}b()},w=({menuOption:S})=>r(D,N({align:"center",class:"content-item"},{onClick:v.bind(this,S),data_path:S.path}),{default:()=>[r("div",{class:"content-item-icon"},[c(S.meta)]),r("div",{class:"content-item-label"},[S.breadcrumbLabel]),r(P,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ie(()=>{p.value&&(a.value=!1)}),Be(window,"keydown",S=>{m(S),T(S)},!0),{...Re(s),modelShow:a,helperTipOptions:i,fuzzySearchMenuOptions:Rt(h,300),searchItemClick:v,RenderPreIcon:c,isTabletOrSmaller:p,SearchItem:w,loading:g}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:l}=this;return e?r("div",{style:"display: none;"},null):r(sn,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(ot,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(mn,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:l.bind(this)},{prefix:()=>r(P,{name:"search",size:"24"},null)}),default:()=>{let a;return r(Pt,null,{default:()=>[r(at,{show:t},{default:()=>[n.length?r(D,{vertical:!0,size:[0,6],class:"global-search__card-content"},bt(a=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):r(ko,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(D,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(fn,null,{default:()=>[Y("没有搜索结果")]})]})})]})]})},action:()=>{let a;return r(D,{justify:"flex-start",align:"center",size:[16,0]},bt(a=this.helperTipOptions.map(s=>r(D,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(D,{class:"item-icon",align:"center",justify:"center"},bt(i)?i:{default:()=>[i]})),r(D,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),rs=x({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=Jo();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:l}=e;l&&F(l,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(Z,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(P,{name:"search",size:"16"},null),default:()=>r(D,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),ss=x({name:"AppAvatar",props:{...Ao,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=$n();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:l}=this;return r(Z,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(D,{align:"center",size:t,vertical:l},{default:()=>[r(Ro,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),e==null?void 0:e.name]})]})}}),is=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],us={logout:()=>{const{logout:e}=Lr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},cs=e=>{const n=us[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},ds=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},ps=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],l=[...t];return n.value?l:o},ms=x({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=U(),{t}=Ne(),[o,{toggleFullscreen:l,isEnabled:a}]=wn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=W(),u=M(!1),d=M(!1),{isTabletOrSmaller:p}=ut(),g=it("globalDrawerValue"),y=C(()=>ds({isFullscreen:o,isTabletOrSmaller:p})),f=C(()=>ps({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{d.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(t("globalMessage.isEnabledFullscreen")),l()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{pe("globalDrawerValue",!g.value)}};return{leftIconOptions:y,rightTooltipIconOptions:f,toolIconClick:b=>{var c;(c=m[b])==null||c.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:d,isRenderVNode:b=>p.value?null:b}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:l,updateLocale:a,isRenderVNode:s}=this;return r(gn,{class:"layout-header"},{default:()=>[r(ls,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(D,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(D,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(Hr,{key:i.name,iconName:i.name,tooltipText:vn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:l.bind(this,i.name)},null)),o?r(as,null,null):null]}),r(D,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(rs,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(Z,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:l.bind(this,i.name),focusable:!1},{default:()=>[r(P,{name:i.name,size:16,cursor:"pointer"},null)]})),r(ke,{options:An,onSelect:i=>a(String(i)),trigger:"click"},{default:()=>[r(Z,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(P,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ke,{options:is(),onSelect:cs.bind(this),trigger:"click"},{default:()=>[r(ss,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(ns,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),fs=x({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(D,{size:[0,0]},{default:()=>[r(ms,null,null)]})}});function gs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const hs=x({name:"AppMenuTag",setup(e,{expose:n}){const t=se("scrollRef"),{getMenuKey:o,getMenuTagOptions:l}=be(),{changeMenuModelValue:a}=Me(),{getRootPath:s}=Ie(),{maximize:i}=qn(),{reload:u}=ks(),{close:d,closeAll:p,closeRight:g,closeLeft:y,closeOther:f,checkCloseLeft:m,checkCloseRight:h}=Gn(),v=["closeAll","closeRight","closeLeft","closeOther"];let b=1/0;const c={size:16},_=M([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(P,{name:"close",size:c.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(P,{name:"fullscreen_fold",size:c.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(P,{name:"reload",size:c.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(P,{name:"shared",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(P,{name:"close_left",size:c.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(P,{name:"close_right",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(P,{name:"close_other",size:c.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(P,{name:"resize_h",size:c.size},null),disabled:!1}]),T=et(16),w={closeCurrentPage:()=>{o.value!==s.value&&d(b)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{g(b)},closeLeft:()=>{y(b)},closeOther:()=>{f(b)},windowOpenTab:()=>{const A=l.value[b];if(!(A!=null&&A.fullPath))return;const z=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(z,"_blank")},maximizeLayoutContent:()=>{const A=l.value[b];i(!0),A&&te(A)}},S=le({x:0,y:0,actionDropdownShow:!1}),E="menu_tag_data",k=it("globalMainLayoutLoad"),O="n-scrollbar-container";let R=o.value;const j=M(!1),q=A=>{d(A)},$=(A,z)=>{for(const H of _.value)if(H.key===A){H.disabled=z;break}},te=A=>{S.actionDropdownShow=!1,a(A.fullPath,A)},G=()=>{const A=document.getElementById(T);if(A)return Array.from(A.childNodes).find($e=>Zo($e,O).value)},he=A=>{var H;const z=G();if(z){const $e=z.scrollLeft||0,Ft=A==="left"?Math.max(0,$e-200):$e+200;(H=t.value)==null||H.scrollTo({left:Ft,behavior:"smooth"})}},ne=A=>{S.actionDropdownShow=!1;const z=w[A];z==null||z()},ct=(A,z)=>{z.preventDefault(),b=A,S.actionDropdownShow=!1,X(()=>{S.x=z.clientX,S.y=z.clientY,S.actionDropdownShow=!0})},Dt=()=>{h(b)?$("closeRight",!1):$("closeRight",!0),m(b)?$("closeLeft",!1):$("closeLeft",!0)},Yn=()=>{b=l.value.findIndex(z=>z.fullPath===o.value),Dt()},Xn=A=>{l.value.length>1&&A.fullPath!==s.value&&(A.closeable=!0),j.value=!0},Jn=A=>{A.fullPath!==o.value&&(A.closeable=!1),j.value=!1},Zn=()=>{G()&&X().then(()=>{var z;(z=t.value)==null||z.scrollTo({left:99999,behavior:"smooth"})})},dt=()=>{X().then(()=>{const A=tt(`attr:${E}="${o.value}"`);if(A!=null&&A.length){const[z]=A;X().then(()=>{var H;(H=t.value)==null||H.scrollTo({left:z.offsetLeft,behavior:"smooth"})})}})},Qn=()=>{i(!0)};return Pe(()=>l.value,(A,z)=>{_.value.forEach(H=>{v.includes(H.key)&&(A.length>1?H.disabled=!1:H.disabled=!0)}),z!=null&&z.length&&(A.length>(z==null?void 0:z.length)?Zn():A.length===(z==null?void 0:z.length)&&dt()),z===void 0&&dt()},{immediate:!0}),ie(()=>{S.actionDropdownShow&&Dt(),R!==o.value&&(R=o.value,dt())}),n(),{getMenuTagOptions:l,closeCurrentMenuTag:q,getMenuKey:o,menuTagClick:te,moreOptions:_,scrollX:he,scrollRef:t,uuidScrollBar:T,actionDropdownSelect:ne,actionState:S,menuTagContextMenu:ct,setCurrentContextmenuIndex:Yn,menuTagMouseenter:Xn,menuTagMouseleave:Jn,MENU_TAG_DATA:E,iconConfig:c,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:Qn,isMouseInMenuTag:j}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:l,globalMainLayoutLoad:a,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:d,$t:p,menuTagClick:g,menuTagContextMenu:y,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:h,reload:v}=this;return r(gn,null,{default:()=>[r("div",{class:"menu-tag"},[r(ke,{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:h.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(D,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Pt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(D,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},gs(e=o.map((b,c)=>r(Z,N({key:b.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:b.fullPath===this.getMenuKey?"primary":"default"},{onClick:g.bind(this,b),onContextmenu:y.bind(this,c),onMouseenter:f.bind(this,b),onMouseleave:m.bind(this,b),[l]:b.fullPath},{size:"small",focusable:!1}),{default:()=>r(_n,null,[r("span",null,{default:()=>{const{breadcrumbLabel:_,meta:{i18nKey:T}}=b;return T?p(T):_}}),r(Po,N({class:"menu-tag__btn-icon"},{onMousedown:u.bind(this,c)}),{default:()=>[r(P,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(D,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:d.bind(this,"right")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(P,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{v()}},{icon:()=>r(P,{name:"reload",width:n.size,height:n.size,customClassName:`${a?"":"menu-tag__right-setting--spinning"}`},null)}),r(Ln,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(P,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),vs=x({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(hs,null,null)}}),ys=e=>{const n=mt(e[0]),t=mt(e[1]),o=mt(e[2]);return C(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},nn=Io(J.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),bs=()=>({setLockAppScreen:t=>{nn.value=t},getLockAppScreen:()=>nn.value}),Ss=x({name:"RLayout",setup(){const e=M(),n=M(),t=M(),{getMenuTagSwitch:o,getCopyrightSwitch:l}=W(),{getLockAppScreen:a}=bs(),s=ys([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:l}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?null:r(xo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(Nr,null,null),r($t,{class:"r-layout-full__viewer"},{default:()=>[r(fs,{ref:"layoutSiderBarRef"},null),e?r(vs,{ref:"layoutMenuTagRef"},null):null,r($t,{ref:Ce,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Wn,null,null)]}),t?r(Gr,{ref:"layoutFooterRef"},null):null]})]})}}),_s=[{path:"/",name:"RLogin",component:()=>I(()=>import("./index-Dxathzqh.js"),__vite__mapDeps([97,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,81,82,83,39,40,59,42,43,44,45,46,47,49,50,51,52,53,54,55,56,98]))},{path:"/",name:"RLayout",component:Ss,children:[...Ir(),{path:"/:catchAll(.*)",component:()=>I(()=>import("./index-CzkwrEb-.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,100])),meta:{i18nKey:B("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],nt=ca({history:da(),routes:_s,scrollBehavior:e=>{Wl(e)}}),Oi=e=>{e.use(nt),jr(nt)},Lt=()=>nt?{router:nt}:{router:{}},on="YYYY-MM-DD HH:mm:ss",ws=()=>({locale:s=>{const i=Ua[s];i?ue.locale(i):ue.locale($a)},getStartAndEndOfDay:s=>{const{format:i=on}=s??{},u=ue(),d=u.startOf("day"),p=u.endOf("day"),g=u.format(i),y=d.format(i),f=p.format(i);return{today:u,startOfDay:d,endOfDay:p,formatToday:g,formatStartOfDay:y,formatEndOfDay:f}},format:(s,i)=>{const{format:u=on}=i??{};return ue(s).format(u)},isDayjs:s=>ue.isDayjs(s),daysDiff:(s,i)=>{const u=ue(s);return ue(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:d}=i,p=ue(s);return p.isAfter(u)&&p.isBefore(d)}});function ut(e){const{width:n,height:t}=Lo(e),o=M(!1),{observer:l}=e??{};return Qo(()=>{const{media:s=768}=e??{};o.value=n.value<=s,l==null||l(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:Te(o)}}let St=999,_t=!1;const ve="ELEMENT-FULLSCREEN-RAY",an=document.createElement("style"),Cs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:l,exit:a,backgroundColor:s,zIndex:i,transition:u="all 0.3s var(--r-bezier)"}=n??{};let d=!1;const p={x:null,y:null},g=()=>{const h=de(e);if(!h)return;const{left:v,top:b}=h.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-v,p.y=-b),Qe(document.body,{"--element-fullscreen-z-index":fe(i,"Null")||fe(i,"Undefined")?St:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const c=`
[${ve}] {
position: fixed;
width: var(--element-fullscreen-width) !important;
height: var(--element-fullscreen-height) !important;
transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important;
transition: var(--element-fullscreen-transition);
z-index: var(--element-fullscreen-z-index) !important;
background-color: var(--element-fullscreen-background-color);
}
`;an.innerHTML=c,_t||document.head.appendChild(an)},y=()=>{const h=de(e);t==null||t(),h&&(h.getAttribute(ve)||h.setAttribute(ve,ve),d||(d=!0,St+=1),_t||(g(),_t=!0),h.style.transition=u,l==null||l())},f=()=>{o==null||o();const h=de(e);h&&h.removeAttribute(ve),a==null||a()},m=()=>{const h=de(e);h&&(h.getAttribute(ve)?f():y())};return zt(()=>{const h=de(e);h&&h.removeAttribute(ve),St--}),{enter:y,exit:f,toggleFullscreen:m}},wt={svg:na,png:oa,jpeg:aa,blob:la,pixelData:ra,canvas:sa},ki=(e,n)=>{const{beforeCreate:t,created:o,createdError:l,finally:a,imageType:s}=n??{};return{create:u=>new Promise((d,p)=>{var f;const g=de(e);if(t==null||t(g),!g)return l==null||l(),p("useDomToImage: element is undefined.");(f=wt[u??s??"jpeg"])==null||f.call(wt,g,n).then(m=>(o==null||o(m,g),d(m))).catch(m=>(l==null||l(m),p(m))).finally(()=>{a==null||a(g)})})}},Ai=(e,n)=>({print:()=>{const o=de(e)||e;Ko({...Ve(n,["printable"]),printable:o})}}),Ts={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Os=(e,n)=>{const t=M(e),o=Ve(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a=M(Object.assign({},Ts,o,{onUpdatePage:c=>{var _;a.value.page=c,(_=t.value)==null||_.call(t)},onUpdatePageSize:c=>{var _;a.value.pageSize=c,a.value.page=1,(_=t.value)==null||_.call(t)}})),s=a.value.onUpdatePage,i=a.value.onUpdatePageSize,u=()=>a.value.itemCount,d=c=>{a.value.itemCount=c},p=()=>a.value.page,g=c=>{s(c)},y=()=>a.value.pageSize,f=c=>{i(c)},m=()=>a.value,h=e,v=c=>{t.value=c},b=()=>{const{pageSizes:c}=a.value;a.value.page=1,a.value.pageSize=(c==null?void 0:c[0])||10};return zt(()=>{t.value=void 0}),[a,{getItemCount:u,setItemCount:d,getPage:p,setPage:g,getPageSize:y,setPageSize:f,getPagination:m,getCallback:h,setCallback:v,resetPagination:b}]},qn=()=>({isLayoutContentMaximized:C(()=>it("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:l}=o??{},a=de(Ce),{toggleFullscreen:s}=Cs(a,o);pe("layoutContentMaximize",t),s(),l&&t&&((i=Ce==null?void 0:Ce.value)==null||i.scrollTo(l))}}),ks=()=>({reload:(o=800)=>{pe("globalMainLayoutLoad",!1),setTimeout(()=>pe("globalMainLayoutLoad",!0),o)},openSpin:()=>{pe("layoutContentSpinning",!0)},closeSpin:()=>{pe("layoutContentSpinning",!1)}}),Ri=()=>({setWatermarkContent:l=>{const{getWatermarkConfig:a}=W(),s=Object.assign({},a.value,{content:l}),{updateSettingState:i}=U();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:l}=U();l("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:l}=W(),{updateSettingState:a}=U();a("watermarkSwitch",!l.value)}}),He=e=>{const{getPrimaryColorOverride:n}=W(),{updateSettingState:t}=U();t("primaryColorOverride",e?Object.assign({},n.value,ae.appNaiveUIThemeOverrides.dark,ae.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,ae.appNaiveUIThemeOverrides.light,ae.appNaiveUIThemeOverridesCommon.light))},Pi=()=>{const e=()=>{const{getAppTheme:a}=W(),{t:s}=Ne();return{theme:a.value,themeI18nLabel:a.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:a.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:a}=U();a("_appTheme",!0),a("appTheme","dark"),He(!0)},lightTheme:()=>{const{updateSettingState:a}=U();a("_appTheme",!1),a("appTheme","light"),He(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:s}=U();s("_appTheme",!a),s("appTheme",a?"light":"dark"),He(!a)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:a}=W(),{updateSettingState:s}=U(),{system:i}=hn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),He(a.value)}}},we=(e,n)=>{const{getMenuTagOptions:t}=be();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(l=>l.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,l=t.value.findIndex(a=>a.fullPath===o);if(l===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:l}}};function Gn(){const{getMenuTagOptions:e,getMenuKey:n}=be(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:l,resolveOption:a}=Me(),s=()=>e.value.findIndex(m=>m.fullPath===n.value);return{close:m=>{const h=we(m,"close");if(e.value.length!==1&&h){const{index:v,option:b}=h;if(o(v),b.fullPath===n.value){const c=e.value[v-1];c&&t(c.fullPath,c)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=Ie(),{router:{getRoutes:h}}=Lt(),v=h().find(b=>b.path===m.value);if(v){const b=Fe(v,At),c=a(b);t(c.path,a({...c,fullPath:c.path}))}},closeRight:m=>{const h=we(m,"closeRight");if(h){const{option:v,index:b}=h,c=e.value.length-b,_=s();o(b+1,c),b<=_&&n.value!==v.fullPath&&t(v.fullPath,v)}},closeLeft:m=>{const h=we(m,"closeLeft");if(h){const{option:v,index:b}=h,c=s();o(0,b),c<=b&&n.value!==v.fullPath&&t(v.fullPath,v)}},closeOther:m=>{const h=we(m,"closeOther");if(h){const{option:v}=h;n.value!==v.fullPath?(o(0,e.value.length),t(v.fullPath,v)):l(v,!1)}},getCurrentTagIndex:s,checkCloseRight:m=>{const h=we(m,"checkCloseRight");if(h){const{index:v}=h,b=e.value.length-1;return!(v>=b)}return!1},checkCloseLeft:m=>{const h=we(m,"checkCloseRight");if(h){const{index:v}=h,b=e.value.length-1;return v===0?!1:v>0&&b>0}return!1}}}function xi(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:l,replace:a}}=Lt(),{isPush:s=!0,query:i}=t||{},u=d=>s?l({path:d,query:i}):a({path:d,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:d}=be();if(n>d.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=d.value[n],g=y=>{if(y.children&&y.children.length>0){const{children:[f]}=y;g(f);return}u(y.fullPath)};g(p)}else if(typeof n=="string"){const d=o().find(p=>p.path===n);d?u(d.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Ie(){const{getAppRootRoute:e}=W(),{updateSettingState:n}=U(),t=e,o=C(()=>e.value.path),l=C(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:l,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const As=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=jn(e)},ln=(e,n,t)=>{const o=Vn(e,n);o&&As(o,t)},Ct=(e,n,t)=>{const{getMenuOptions:o}=be();if(typeof e=="string")ln(o.value,e,t);else if(fe(e,"Object")){const{fullPath:l}=e;ln(o.value,l,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ei(){return{hidden:o=>{Ct(o,"hidden",{show:!1})},show:(o,l)=>{Ct(o,"show",{...l,show:!0})},update:(o,l)=>{Ct(o,"update",l)}}}const zi=()=>{const e=Rn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Hn=()=>Ze(J.localeLanguage,"localStorage",{defaultValue:Va});export{ii as $,ri as A,_i as B,wi as C,$a as D,yi as E,ui as F,pi as G,mi as H,vi as I,fi as J,Os as K,Rn as L,ai as M,di as N,fr as O,or as P,Or as Q,gi as R,Br as S,oi as T,Si as U,hi as V,bi as W,ws as X,$r as Y,Ti as Z,I as _,ki as a,gr as a0,Ln as a1,qn as a2,xi as a3,ks as a4,Ri as a5,Ei as a6,Ai as b,zi as c,si as d,W as e,J as f,ni as g,U as h,bs as i,Lr as j,ut as k,ss as l,it as m,li as n,ci as o,Oi as p,Ie as q,Ne as r,Ci as s,P as t,Pi as u,An as v,gt as w,Lt as x,ti as y,br as z};