ray-template/js/hooks-DAFrMGjY.js

13 lines
118 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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-zhDgnSGz.js","js/dayjs@1.11.13-BWvakrn1.js","js/call-bind-apply-helpers@1.0.1-BosuxZz1.js","js/print-js@1.6.0-BptnCCm-.js","js/vue-hooks-plus@2.2.3_vue@3.5.13_typescript@5.6.3_-F-c4u1GS.js","js/@vue_reactivity@3.5.13-CVvlldVq.js","js/@vue_shared@3.5.13-CQ6Z-5d1.js","js/@vue_runtime-core@3.5.13-pPpmd6wL.js","js/lodash@4.17.21-Bv2ueefR.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-CClqR5rE.js","js/jsbarcode@3.11.6-CfPZaUx-.js","js/@logicflow_core@2.0.10-ofLqxMRW.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js","js/preact@10.25.4--QYavupV.js","js/mobx@5.15.7-BvNiR7Ki.js","js/lodash-es@4.17.21-BbYRMHep.js","js/uuid@9.0.1-CtRu48qb.js","js/classnames@2.5.1-iH4Bdr9I.js","js/mousetrap@1.6.5-C2A6yrpM.js","js/mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js","css/@logicflow_core@2.0-Z6H4Q2Ml.css","js/currency.js@2.0.4-9OAR_aOO.js","js/crypto-js@4.2.0-CXjOS6lk.js","js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DW0tiym6.js","js/date-fns@3.6.0-CG906D2E.js","js/seemly@0.3.9-BnJ6M8Cl.js","js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js","js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js","js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-DY95s5UV.js","js/css-render@0.15.14-BwokE0u2.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.13-DJqlZTHq.js","js/treemate@0.3.11-CWtmm0QO.js","js/date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js","js/async-validator@4.2.5-P8scd9xB.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js","js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js","js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js","js/utils-Bic_iDtY.js","js/pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.31.0-7e9nenNP.js","js/destr@2.0.3-Cx7WjB9q.js","js/deep-pick-omit@1.2.1-B1UrSIxj.js","js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js","js/html-to-image@1.11.11-D6_yziCT.js","js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js","js/interactjs@1.10.27-0Tgk5CYh.js","js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-CVxc1Bsn.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.6.0-Dq866SEH.js","js/zrender@5.6.1-B_T0sHVE.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zh-CN-DtTnE_ME.js","js/index-B5AFEgYt.js","js/index-KVQuX6r5.js","css/index-BPwDcGFh.css","js/index-BGFkC73C.js","js/instance-Lnu85bZk.js","js/axios@1.7.9-upsvKRUO.js","css/index-C60eEB5E.css","js/barcode-demo-CTI0gVDr.js","js/index-BsBhO5KD.js","js/index-CIvQqKT5.js","js/index-Sl0awl2C.js","js/draggable-card-CU-L4b0j.js","js/index-sxkktQzF.js","css/index-D9y7XLpS.css","js/flow-demo-CUmrCN2Q.js","js/index-l7fSfQDK.js","js/index-B2wNkbzZ.js","js/index-sYTV1lQv.js","js/index-Dxwaq9TV.js","js/index-C0d6i1OB.js","js/index-CGF4AOp0.js","js/index-BwZLGLQy.js","js/index-PdfG5d8M.js","js/index-Caq9UL_D.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-BnS3AyZU.css","js/ray-dCjhX_JK.js","js/index-DmgxQ1v0.js","css/index-C7SBslZD.css","js/index-CDWeRbxT.js","js/index-BZPqABS2.js","js/index-u40HFa_6.js","css/index-CCBgYJcK.css","js/index-zcrZ2M2i.js","js/index-CT9fhFWm.js","css/index-Bit-kagu.css","js/table-pro-demo-D9QXUfgj.js","js/mockjs@1.1.0-D7bfvBF5.js","js/index-CEq6_GG6.js","js/index-Tan3v5mf.js","js/index-mSHWlsCH.js","css/index-DId3lj_V.css","js/index-BCyJGjGS.js","css/index-CEBSONXB.css"])))=>i.map(i=>d[i]);
var uo=Object.defineProperty;var co=(e,n,t)=>n in e?uo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var $t=(e,n,t)=>co(e,typeof n!="symbol"?n+"":n,t);import{s as yt,c as Ee,m as st,q as Et,w as mn,p as Ne,z as We,A as po}from"./lodash-es@4.17.21-BbYRMHep.js";import{z as Kt,d as Wt,f as mo,g as fo,c as go,N as De,a as ho,b as yo,e as I,h as pt,m as bo,i as fn,u as vo,S as Dt,j as _o,k as ze,l as So,n as gn,o as wo,p as Ue,q as Co,r as fe,t as To,s as Oo,v as hn,w as ko,x as yn,y as it,A as qt,B as bn,C as Ao,D as Po,E as Ro,F as le,G as xo,H as Gt,I as L,J as te,K as X,L as Mo,M as zt,O as vn,P as Z,Q as Eo,R as Do,T as Qe,U as zo,V as Lo,W as Io,X as Fo,Y as Bo,Z as _n,_ as Ht,$ as Vo}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DW0tiym6.js";import{o as jo,u as $e,a as No,b as Uo,c as Sn,d as $o,e as bt,f as Ko}from"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import{s as oe,k as j,n as ve,e as re,o as Wo,x as we,a as wn,y as ee}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{n as ne,j as de,m as x,b as r,p as N,q as he,t as ie,f as T,l as Ce,T as qo,i as Te,w as qe,v as Go,x as Lt,h as mt,y as Cn,F as Tn,z as Ho,A as Yo,C as vt,D as Xo,E as Ae,G as Ve,S as Jo,K as Zo,H as Yt,I as Qo,J as q}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CXjOS6lk.js";import{d as H}from"./dayjs@1.11.13-BWvakrn1.js";import{p as ea}from"./print-js@1.6.0-BptnCCm-.js";import{u as On}from"./vue-hooks-plus@2.2.3_vue@3.5.13_typescript@5.6.3_-F-c4u1GS.js";import"./lodash@4.17.21-Bv2ueefR.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-CClqR5rE.js";import{b as ta}from"./jsbarcode@3.11.6-CfPZaUx-.js";import{L as Xt}from"./@logicflow_core@2.0.10-ofLqxMRW.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{u as It,g as Le,i as ge,s as Re,a as Pt,c as na,b as ut,d as U,e as se,q as Ke,l as kn,f as An,h as oa,r as _e,j as B,k as aa,m as ct,n as Pn,p as Rn,o as Ft,t as la,v as Jt,w as ce,x as xn,y as ra,z as sa,A as ia,B as ua,C as ca}from"./utils-Bic_iDtY.js";import{s as da}from"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.31.0-7e9nenNP.js";import{d as ft,c as pa}from"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import{t as ma,a as fa,b as ga,c as ha,d as ya,e as ba}from"./html-to-image@1.11.11-D6_yziCT.js";import{u as Ge,a as va,o as _a,c as Sa,b as wa}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import{T as Mn,a as Ca}from"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import{i as Zt}from"./interactjs@1.10.27-0Tgk5CYh.js";import{c as Ta}from"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import{r as Oa,u as je,i as ka,a as Aa,b as Pa,c as Ra,d as xa,e as Ma,f as Ea,g as Da,h as za,j as La,k as Ia,l as Fa,m as Ba,n as Va,o as ja,p as Na,q as Ua,s as $a}from"./echarts@5.6.0-Dq866SEH.js";import{h as Ka}from"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";const fi=(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 a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(yt(t,u,t[u]||{}),yt(t[u],c,a)):yt(t,u,a||{}))}),t},Wa="modulepreload",qa=function(e){return"/ray-template/"+e},Qt={},z=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(t.map(u=>{if(u=qa(u),u in Qt)return;Qt[u]=!0;const c=u.endsWith(".css"),m=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${m}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Wa,c||(p.as="script"),p.crossOrigin="",p.href=u,i&&p.setAttribute("nonce",i),document.head.appendChild(p),c)return new Promise((w,g)=>{p.addEventListener("load",w),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return n().catch(l)})},Ga=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ha=async e=>{var t;const n={};for(const o of e){const a=await Ga(Object.assign({"../lang/en-US.ts":()=>z(()=>import("./en-US-zhDgnSGz.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":()=>z(()=>import("./zh-CN-DtTnE_ME.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),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},gi=e=>{switch(e){case"zh-CN":return{locale:Kt,dateLocal:Wt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Kt,dateLocal:Wt}}},Ya={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},hi={max:5,closable:!1},yi="loading",bi="",K={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions",appMenuTagOptions:"appMenuTagOptions",appLockScreenPasswordKey:"appLockScreenPasswordKey"},Xa=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Se={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgb(18, 18, 18)"}},light:{common:{borderRadius:"4px",baseColor:"rgb(255, 255, 255)"}}},echartTheme:"macarons"},En=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Ja="zh-CN",Za="zh-CN",Qa={"zh-CN":"zh-cn","en-US":"en"},el="zh-cn",vi={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$/},_i={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},xe=oe(null),Dn=oe(null),tl={setupRouterLoadingBar:!0,setupRouterGuard:!0},nl=["RLogin","ErrorPage","RayTemplateDoc"],et=[],Si=(e,n)=>{const t=j(0),o=j(0),a=j(!1),{clickOutside:l}={},s=p=>{a.value=p},i=p=>{p.preventDefault(),s(!1),ne().then(()=>{const{clientX:w,clientY:g}=p;t.value=w,o.value=g,s(!0)})};l&&jo(e,p=>{l(p)});const u=$e(e,"contextmenu",i,n),c=$e(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:ve(t),y:ve(o),show:ve(a),updateShow:s}},Bt=re({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function me(e,n,t){It(Bt,e,n,t)}function gt(e){return ve(Wo(Bt,e))}function ol(){return{...we(ve(Bt))}}let pe;const al=async()=>{const e=oo(),n=await Ha(En);return Ta({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Za})},wi=async e=>{const n=await al();e.use(n),pe=n},en=(e,n)=>n,He=e=>{if(!pe)return{t:l=>en(e,l),locale:l=>{}};const{t:n,...t}=pe.global;return{...t,t:(l,...s)=>l?l.includes(".")?n(en(e,l),...s):l:"",locale:l=>{pe.mode==="legacy"?pe.global.locale=l:wn(pe.global.locale)?pe.global.locale.value=l:pe.global.locale=l}}},V=e=>e,ll={path:"/dashboard",component:()=>z(()=>import("./index-B5AFEgYt.js"),__vite__mapDeps([58,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,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:V("menu.Dashboard"),icon:"dashboard",order:0}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sl={path:"/axios",name:"RAxios",component:()=>z(()=>import("./index-BGFkC73C.js"),__vite__mapDeps([61,4,5,6,7,8,2,9,10,62,63,1,3,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56,64])),meta:{i18nKey:V("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ul={path:"barcode",component:()=>z(()=>import("./barcode-demo-CTI0gVDr.js"),__vite__mapDeps([65,22,23,2,1,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,11,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),dl={path:"/cache-demo",component:()=>z(()=>import("./index-BsBhO5KD.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.CacheDemo"),icon:"other",order:3}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/context-menu",component:()=>z(()=>import("./index-CIvQqKT5.js"),__vite__mapDeps([67,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.ContextMenu"),icon:"other",order:2}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),gl={path:"/directive",component:()=>z(()=>import("./index-Sl0awl2C.js"),__vite__mapDeps([68,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{i18nKey:V("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),yl={path:"/draggable-card",component:()=>z(()=>import("./draggable-card-CU-L4b0j.js"),__vite__mapDeps([69,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.DraggableCard"),icon:"other",order:2,extra:{label:"drag"}}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),vl={path:"/echart",component:()=>z(()=>import("./index-sxkktQzF.js"),__vite__mapDeps([70,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/flow",component:()=>z(()=>import("./flow-demo-CUmrCN2Q.js"),__vite__mapDeps([72,22,23,2,1,3,4,5,6,7,8,9,10,11,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,40,41,12,13,14,15,17,18,19,20,21,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.Flow"),icon:"other",order:2}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Cl={path:"/form",component:()=>z(()=>import("./index-l7fSfQDK.js"),__vite__mapDeps([73,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Ol={path:"/iframe",component:()=>z(()=>import("./index-B2wNkbzZ.js"),__vite__mapDeps([74,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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"}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Al={path:"/mock-demo",component:()=>z(()=>import("./index-sYTV1lQv.js"),__vite__mapDeps([75,22,23,2,1,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,62,63,42,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Rl={path:"/modal-demo",component:()=>z(()=>import("./index-Dxwaq9TV.js"),__vite__mapDeps([76,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.Modal"),icon:"other",order:3}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),rt=()=>z(()=>Promise.resolve().then(()=>rs),void 0),Ml={path:"/multi",component:rt,meta:{i18nKey:V("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>z(()=>import("./index-C0d6i1OB.js"),__vite__mapDeps([77,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:rt,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>z(()=>import("./index-CGF4AOp0.js"),__vite__mapDeps([78,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:rt,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>z(()=>import("./index-BwZLGLQy.js"),__vite__mapDeps([79,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Dl={path:"/precision",component:()=>z(()=>import("./index-PdfG5d8M.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.CalculatePrecision"),icon:"other",order:2}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/qrcode",component:()=>z(()=>import("./index-Caq9UL_D.js"),__vite__mapDeps([81,82,7,5,6,83,84,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{i18nKey:V("menu.QRCode"),icon:"other",order:2}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Fl={path:"rely-about",component:()=>z(()=>import("./index-DmgxQ1v0.js"),__vite__mapDeps([85,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,86])),meta:{i18nKey:V("menu.RelyAbout"),icon:"rely",order:999}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),Vl={path:"/router-demo",component:rt,meta:{i18nKey:V("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>z(()=>import("./index-CDWeRbxT.js"),__vite__mapDeps([87,22,23,2,1,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,4,8,9,10,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>z(()=>import("./index-BZPqABS2.js"),__vite__mapDeps([88,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),Nl={path:"/scroll-reveal",component:()=>z(()=>import("./index-u40HFa_6.js"),__vite__mapDeps([89,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,90])),meta:{i18nKey:V("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),$l={path:"/segment",component:()=>z(()=>import("./index-zcrZ2M2i.js"),__vite__mapDeps([91,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Wl={path:"/svg-icons",component:()=>z(()=>import("./index-CT9fhFWm.js"),__vite__mapDeps([92,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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,93])),meta:{i18nKey:V("menu.SvgIcon"),icon:"other",order:3}},ql=Object.freeze(Object.defineProperty({__proto__:null,default:Wl},Symbol.toStringTag,{value:"Module"})),Gl={path:"/table-pro",component:()=>z(()=>import("./table-pro-demo-D9QXUfgj.js"),__vite__mapDeps([94,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,62,63,95,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Gl},Symbol.toStringTag,{value:"Module"})),Yl={path:"/table",component:()=>z(()=>import("./index-CEq6_GG6.js"),__vite__mapDeps([96,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:V("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Xl=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),Jl={path:"/template-hooks",component:()=>z(()=>import("./index-Tan3v5mf.js"),__vite__mapDeps([97,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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:V("menu.TemplateHooks"),icon:"other",order:1}},Zl=Object.freeze(Object.defineProperty({__proto__:null,default:Jl},Symbol.toStringTag,{value:"Module"})),Ql=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":rl,"/src/router/modules/demo/axios.ts":il,"/src/router/modules/demo/barcode.ts":cl,"/src/router/modules/demo/cache-demo.ts":pl,"/src/router/modules/demo/context-menu.ts":fl,"/src/router/modules/demo/directive.ts":hl,"/src/router/modules/demo/draggable-card.ts":bl,"/src/router/modules/demo/echart.ts":_l,"/src/router/modules/demo/flow.ts":wl,"/src/router/modules/demo/form.ts":Tl,"/src/router/modules/demo/iframe.ts":kl,"/src/router/modules/demo/mock.ts":Pl,"/src/router/modules/demo/modal.ts":xl,"/src/router/modules/demo/multi-menu.ts":El,"/src/router/modules/demo/precision.ts":zl,"/src/router/modules/demo/qrcode.ts":Il,"/src/router/modules/demo/rely.ts":Bl,"/src/router/modules/demo/router-demo.ts":jl,"/src/router/modules/demo/scroll-reveal.ts":Ul,"/src/router/modules/demo/segment.ts":Kl,"/src/router/modules/demo/svg-icons.ts":ql,"/src/router/modules/demo/table-pro.ts":Hl,"/src/router/modules/demo/table.ts":Xl,"/src/router/modules/demo/template-hooks.ts":Zl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},er=e=>e[0]==="/",zn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(er(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){zn(a.children,n,l);continue}else n.push({...a,path:l})}return n},tr=e=>Array.isArray(e)?zn(Ee(e)):[],nr=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),or=e=>{const{beforeEach:n}=e,{getRootPath:t}=Je(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=Le(K.token,"localStorage"),u=Le(K.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:m}=a;i!==null?o(a,l)?_t(!0):!ge(m,"Symbol")&&m&&nl.includes(m)?s():Jn(c)?o(a,l)?u?s(u):_t(!0):s():_t(!0):o(a,l)?s():s("/")})},_t=(e=!0)=>{const{router:n}=jt(),{push:t,replace:o}=n,{getRootPath:a}=Je();Re(K.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},ar=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=xe.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},lr=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()})},Ln=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Pt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))},rr={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},In=()=>rr,Ie=ft("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=Se,{locale:t}=He(),{locale:o}=Ls(),a=re({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}},_appTheme:!1,appTheme:"light",localeLanguage:oo(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...Ee(In())}),l=c=>{t(c),o(c),Re(K.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,m=.85)=>{const p=na(c,m),w={primaryColor:c,primaryColorHover:p,primaryColorPressed:c,primaryColorSuppl:p},{rayTemplateThemePrimaryColor:g,rayTemplateThemePrimaryFadeColor:b}=Ya,f=document.documentElement;a.primaryColorOverride.common=w,f.style.setProperty(g,c),f.style.setProperty(b,p)},i=(c,m,p)=>{It(a,c,m,p)},u=c=>{const m=document.documentElement;i("colorWeakness",c),ut(m,{filter:c?"invert(100%)":""})};return de(()=>{var c;a._appTheme?a.primaryColorOverride=st({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=st({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=((c=a.sideBarLogo)==null?void 0:c.title)||"Ray Template")}),{...we(a),updateLocale:l,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:K.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),Fn={...mo,onRegister:{type:[Function,Array],default:null}},Bn={actionSpan:{type:Number,default:1},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},...fo};function sr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Ci=x({name:"RCollapse",props:Object.assign({},Fn,{...Bn,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,...a}=n;return r(Un,N(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(pr,a,sr(e)?e:{default:()=>[e]})]})}}),ir={...go,restrictionElement:{type:[String,HTMLElement,Function,Object],default:"body"},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:[Object,String],default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1},padding:{type:Object,default:void 0}},Ti=x({name:"RDraggableCard",props:ir,setup(e,{expose:n}){const t=ie("cardRef");let o=null;const a={x:0,y:0},l="r-draggable-card-container",s=T(()=>({"--r-draggable-card-width":U(e.width),"--r-draggable-card-z-index":e.zIndex}));let i=!1;const u={defaultPosition:e.defaultPosition,dad:e.dad};(()=>{if(!document.getElementById(l)){const f=document.createElement("div");f.id=l,document.documentElement.appendChild(f)}})();const m=()=>{const f=se(t),h=typeof e.restrictionElement=="string"?Ke(e.restrictionElement):e.restrictionElement;let _=null;return Array.isArray(h)?_=h[0]:_=se(h),{card:f,restrictionElement:_}},p=(f,h)=>{const{defaultPosition:_,padding:d}=e,{x:y=0,y:S=0}=d??{},{x:C,y:v,width:A,height:k}=f,{width:E,height:O}=h;if(typeof _=="string")switch(_){case"top-center":{const P=(A-E)/2+C,F=S+v;return{x:y+P,y:F}}case"bottom-center":{const P=(A-E)/2+C,F=k-O-S+v;return{x:y+P,y:F}}case"center":{const P=(A-E)/2+C,F=(k-O)/2+v,$=y+P,Y=S+F;return{x:$,y:Y}}case"top-left":return{x:y+C,y:S+v};case"top-right":return{x:A-E-y+C,y:S+v};case"bottom-left":return{x:y+C,y:k-O-S+v};case"bottom-right":return{x:A-E-y+C,y:k-O-S+v};default:return{x:y+C,y:S+v}}else{const{x:P,y:F}=_;return{x:P+C+y,y:F+v+S}}},w=()=>{const{card:f,restrictionElement:h}=m();if(!f)return;const _=h==null?void 0:h.getBoundingClientRect(),d=f.querySelector(".n-card-header"),y=Object.assign({},{restriction:h,endOnly:!0},e.restrictRectOptions);if(_&&!i){const S=p(_,f.getBoundingClientRect());f.style.transform=`translate(${S.x}px, ${S.y}px)`,a.x=S.x,a.y=S.y}e.dad&&(o=Zt(f).draggable({inertia:!0,autoScroll:!0,allowFrom:d?".n-card-header":".n-card__content",modifiers:[Zt.modifiers.restrictRect(y)],listeners:{move:S=>{f.setAttribute("can-drag","true"),a.x+=S.dx,a.y+=S.dy,f.style.transform=`translate(${a.x}px, ${a.y}px)`}}}).resizable(!1),i=!0)},g=()=>{o==null||o.unset(),o=null},b=f=>{i=!1,f(),w()};return n(),de(()=>{e.dad?w():g(),e.defaultPosition!==u.defaultPosition&&b(()=>{u.defaultPosition=e.defaultPosition})}),Ce(()=>{ne(()=>{w()})}),{cardRef:t,CONTAINER_ID:l,cssVars:s}},render(){const{$attrs:e,$slots:n,$props:t,CONTAINER_ID:o,cssVars:a,animation:l}=this;return r(qo,{to:`#${o}`},{default:()=>[l?r(Mn,{name:"draggable-card",appear:!0,mode:"out-in"},{default:()=>[r(De,N(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]}):r(De,N(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]})}}),ur={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:()=>kn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>An()},onRegister:{type:[Function,Array],default:null}},cr=Symbol("USE_CHART_PROVIDER_KEY"),dr=oa(),tn="__R_CHART_DOWN_LOAD_CHART__";dr.forEach(e=>{Oa(e.name,e.theme)});const Oi=x({name:"RChart",props:ur,setup(e,{expose:n}){const{getAppTheme:t}=J(),o=ie("rayChartRef"),a=ie("rayChartWrapperRef"),l=oe();let s,i;const{echartTheme:u}=Se;let c;const m=T(()=>[{label:"下载图片",key:tn,disabled:!(l.value&&l.value.getDom())}]),p=T(()=>({"--ray-chart-width":U(e.width),"--ray-chart-height":U(e.height)})),w=j(!1);let g;const b={aria:e.showAria},f=Te(cr,{}),h=async()=>{var O;je([Aa,Pa,Ra,xa,Ma,Ea,Da,za]),je([La,Ia,Fa,Ba,Va,ja]),je([Na,Ua]),je([$a]);try{je((O=e.use)==null?void 0:O.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},_=()=>{const{theme:O}=f||{};if(l.value&&C(),O){y(O);return}if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const P=e.autoChangeTheme&&t.value?`${u}-dark`:u;y(P)}},d=O=>{let P=ee(O);return P=($=>Object.assign({},P,$))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},y=(O=u)=>{var ke;const P=o.value,F=d(e.options),{height:$,width:Y}=P.getBoundingClientRect(),{onSuccess:G,onError:ye}=e;try{l.value=ka(P,O,{width:Y===0?200:void 0,height:$===0?200:void 0}),G&&B(G,l.value),e.nextTick?(l.value.setOption({}),ne(()=>{var ae;F&&((ae=l.value)==null||ae.setOption(F))})):F&&((ke=l.value)==null||ke.setOption(F))}catch(ae){throw ye&&B(ye),new Error(`[RChart render error]: ${ae}`)}finally{const{onFinally:ae}=e;ae&&B(ae)}},S=()=>{var O;return!!((O=l.value)!=null&&O.isDisposed())},C=()=>{var O;S()||(O=l.value)==null||O.dispose()},v=()=>{l.value&&l.value.resize()},A=(O,P)=>{if(O===tn&&!S()){const{filename:$,...Y}=e.downloadOptions;aa(l.value.getDataURL(Y),$??`${new Date().getTime()}`)}const{onDropdownSelect:F}=e;F&&B(F,O,P)},k=()=>{var P;if(e.autoResize&&(s||(s=Et(v,500)),i||(i=Uo(e.autoResizeObserverTarget||a,s))),(P=l.value)!=null&&P.getDom()||!w.value&&e.intersectionObserver)return;_(),g==null||g.stop();const{onRegister:O}=e;O&&l.value&&B(O,l.value,k,E)},E=()=>{C(),s==null||s.cancel(),i==null||i.stop(),g==null||g.stop(),g=null,s=null,i=null};return qe(()=>t.value,()=>{e.autoChangeTheme&&(C(),_())}),de(()=>{var O,P;e.intersectionObserver&&(g=No(e.intersectionObserverTarget||a,([F])=>{w.value=F.isIntersecting},e.intersectionOptions)),e.watchOptions?c=Ka(()=>e.options,F=>{var G;const $=d(F),Y=Object.assign({},An(),e.setChartOptions);(G=l.value)==null||G.setOption($,Y)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(O=l.value)==null||O.showLoading(kn(e.loadingOptions)):(P=l.value)==null||P.hideLoading(),e.showAria!==b.aria&&l.value&&(l.value.setOption(d(e.options)),b.aria=e.showAria),w.value&&!S()&&k()}),n(),Go(async()=>{await h()}),Ce(()=>{k()}),Lt(()=>{E(),c==null||c()}),{rayChartRef:o,cssVarsRef:p,rayChartWrapperRef:a,moreDropDownOptions:m,dropdownSelect:A}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(De,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:_e(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:_e(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":_e(i,{defaultElement:r(jn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.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)])}}),ki=()=>{let e,n,t;const o=(u,c,m)=>{u&&(e=u,n=m,t=c)},a=()=>{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:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},pr=x({name:"RCollapseGrid",props:Bn,setup(e){const n=j(!e.open),t=T(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&B(l,n.value),s&&B(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(M,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return de(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,actionSpan:m,bordered:p}=this;return r(De,{bordered:p,style:[c]},{default:()=>r(ho,N({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(yo,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:m},{default:()=>[r(I,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),mr={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}},M=x({name:"RIcon",props:mr,setup(e){const n=T(()=>`#${e.prefix}-${e.name}`),t=T(()=>({"--ray-icon-width":e.width?U(e.width):U(e.size),"--ray-icon-height":e.height?U(e.height):U(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&B(l,a)}}},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)])])}}),fr={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}},Ai=x({name:"RIframe",props:fr,setup(e,{expose:n}){const t=T(()=>({"--ray-iframe-frameborder":U(e.frameborder),"--ray-iframe-width":U(e.width),"--ray-iframe-height":U(e.height)})),o=ie("iframeRef"),a=j(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&B(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&B(u,i)};return $e(o,"load",l),$e(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(pt,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)})])}}),gr={...bo,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446}},hr="r-modal__preset-card--fullscreen",Vn="r-modal",Me={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Pi=x({name:"RModal",props:gr,setup(e){const n=T(()=>({[Me.width]:U(e.width??600),[Me.cardWidth]:U(e.cardWidth??600),[Me.dialogWidth]:U(e.dialogWidth??446)})),t=ct(),o=T(()=>e.preset==="card"&&e.fullscreen);return{cssVars:n,isFullscreenCardType:o,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(fn,N({class:[Vn,i?hr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),yr=()=>{const{create:e,destroyAll:n}=vo();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>mt(Dt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"hover",style:{width:"auto",maxHeight:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,fullscreen:u,width:c,cardWidth:m,dialogWidth:p}=o,w=e({...l,content:s}),{key:g}=w,b={[Me.width]:U(c??600),[Me.cardWidth]:U(m??600),[Me.dialogWidth]:U(p??446)};return ne(()=>{const[f]=Ke(`[internalkey="${g}"]`)||[];f&&(u&&i==="card"&&ut(f,{width:"100%",height:"100vh"}),ut(f,b),Pn(f,Vn))}),w},destroyAll:n}},br={..._o,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const jn=x({name:"RMoreDropdown",props:br,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(ze,N(this.$props,this.$attrs,{placement:"bottom-start"}),vr(e=_e(a,{defaultElement:r(M,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Fe={...So,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}},ue={tableIconSize:"18",tableKey:Symbol("r-table")},_r=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Sr=x({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Fe},setup(e){return{size:j(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&B(l,a)}}},render(){return r(gn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(M,{name:"adjustment",size:ue.tableIconSize,cursor:"pointer"},null)]})}}),wr=x({name:"TableFullscreen",setup(){const{wrapperRef:e}=Te(ue.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=On(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(M,{name:"fullscreen",size:ue.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),Cr=()=>r(M,{name:"draggable",size:14,cursor:"grab"},null),nn=({icon:e,title:n,onClick:t,customClassName:o})=>r(Ue,{showArrow:!1},{trigger:()=>r(M,{name:e,size:ue.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Rt=(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[a,l]=Rt(e,o.children);if(a&&l!==null)return[a,l]}return[null,null]},St="r-table__c-tool-icon--active",Tr=x({name:"TableC",props:{...Fe,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let n;const t=T({get:()=>Ee(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:m,title:p,children:w,fixed:g,isResizable:b,...f}=u,h=g==="left",_=g==="right",d={...f,title:p,key:m,fixed:g,isLeftFixedActivated:h,isRightFixedActivated:_,isResizable:b};return{...d,suffix:()=>r(I,{style:"padding-left: 32px;"},{default:()=>[r(nn,{icon:"row_head",title:"固定在列首",customClassName:h?St:"",onClick:l.bind(this,"left",d,c)},null),r(Ue,{showArrow:!1},{trigger:()=>r(M,{name:"resize_h",size:ue.tableIconSize,cursor:"pointer",customClassName:b?St:"",onClick:a.bind(this,d,c)},null),default:()=>"修改列宽"}),r(nn,{icon:"row_end",title:"固定在列尾",customClassName:_?St:"",onClick:l.bind(this,"right",d,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&B(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const m=`${i}FixedActivated`,p=`${i==="left"?"right":"left"}FixedActivated`;u[p]=!1,u[m]=!u[m],u[m]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[m,p]=Rt(u,t.value);if(m===null||p===null)return;m.splice(p,1);const[w,g]=Rt(i,t.value);w===null||g===null||(c==="before"?w.splice(g,0,u):w.splice(g+1,0,u),mn(n)||w.unshift(n),o(w))}}},render(){return r(Ue,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(M,{name:"setting",size:ue.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(wo,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Cr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Or=x({name:"TablePrint",props:Fe,setup(e){const{wrapperRef:n}=Te(ue.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),Rn(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(M,{name:"print",size:ue.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),kr=x({name:"TablePropsSelect",props:{...Fe,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=j(!1),t=j([]),o=l=>{const{onPopselectChange:s}=e;s&&B(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&B(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(gn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:_r,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(M,{name:"expanded",size:ue.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Pr=x({name:"RTable",inheritAttrs:!1,props:Fe,setup(e,n){const{expose:t,emit:o}=n,a=ie("rTableInst"),l=ie("wrapperRef"),s=ct(16),i=ct(16),u=re({x:0,y:0,showContextMenu:!1}),c=re({size:e.size}),m=j(Object.assign({striped:!1,bordered:!1},Ne(e,"striped","bordered"))),p=T(()=>{const{title:y,tool:S,cardProps:C}=e,{headerStyle:v={}}=C??{};return!y&&!S?Object.assign({},{paddingTop:"0px"},v):v}),w=(y,S)=>{const{onContextMenuClick:C}=e;C&&B(C,y,S),u.showContextMenu=!1},g=(y,S)=>{var v;return{...(v=e.rowProps)==null?void 0:v.call(e,y,S),onContextmenu:e.disabledContextMenu?void 0:A=>{A.preventDefault(),u.showContextMenu=!1,ne().then(()=>{u.showContextMenu=!0,u.x=A.clientX,u.y=A.clientY})}}},b=y=>{c.size=y},f=y=>{const{onUpdateColumns:S,"onUpdate:columns":C}=e;S&&B(S,y),C&&B(C,y)},h=()=>{const{toolOptions:y}=e;return y==null?void 0:y.filter(Boolean).map(S=>typeof S=="function"?S():S)},_=y=>{Object.keys(m.value).forEach(C=>{m.value[C]=y.includes(C)})},d=y=>{const{tool:S}=y;if(!S)return;const C=()=>r(I,{align:"center"},{default:()=>[r(Or,y,null),r(Sr,N(y,{onChangeSize:b.bind(this)}),null),r(wr,null,null),r(Tr,N(y,{onUpdateColumn:f.bind(this)}),null),r(kr,N(y,{onPopselectChange:_.bind(this),onInitialed:_.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let v;return r(I,{align:"center"},Ar(v=h())?v:{default:()=>[v]})}:()=>r(I,{align:"center"},{default:()=>[C(),h()]}):C};return Ce(()=>{const{onRegister:y}=e;y&&a.value&&B(y,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Cn(ue.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:g,contextMenuSelect:w,privateReactive:c,tool:d,wrapperRef:l,propsPopselectValue:m,cardHeaderStyle:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i,cardHeaderStyle:u}=this,{class:c,...m}=n,{tool:p,combineRowProps:w,contextMenuSelect:g}=this,{renderWrapperHeader:b,wrapperBordered:f,disabledContextMenu:h,contextMenuOptions:_,title:d,tableFlexHeight:y,cardProps:S,...C}=e,{headerStyle:v,...A}=S??{};return r(De,N(A,{id:l},m,{ref:"wrapperRef",bordered:f,class:c,style:u}),{default:()=>r(Tn,null,[r(Co,N({id:o},C,i,{rowProps:w.bind(this),size:s.size,ref:"rTableInst",style:{height:y!=null?U(y):null}}),{...t}),h?null:r(ze,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:_,onClickoutside:()=>a.showContextMenu=!1,onSelect:g.bind(this)},null)]),header:b?_e(d,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var k;return(k=t.tableFooter)==null?void 0:k.call(t)},action:()=>{var k;return(k=t.tableAction)==null?void 0:k.call(t)}})}}),Rr=()=>{const e=oe();let n={};const t=(g,b)=>{g&&(e.value=g,n=b)},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:g=>o().downloadCsv.call(null,g),filters:g=>o().filters.call(null,g),page:g=>o().page.call(null,g),scrollTo:g=>o().scrollTo(g),sort:(g,b)=>o().sort.call(null,g,b),print:g=>{const{uuidWrapper:b}=n;if(b){const f=document.getElementById(b);Rn(f,g)}},filter:g=>o().filter.call(null,g)}]},Nn=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Nn(a.children,n,t);if(l)return l}}},on=e=>{const n=ee(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},xr=(e,n,t,o)=>{const a=ee(e);return a?n.reduce((l,s)=>{const i=ee(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(ee(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},Ri=(e,n,t)=>{const o=j([]),a=j([]),{rowKey:l="key",onChange:s}=t||{},i=T(()=>on(n)),u=(b,f,h)=>{o.value=b,a.value=ee(xr(e,b,a,l)),s==null||s(b,a.value,h),on(n)},c=()=>o.value,m=()=>a.value,p=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},w=b=>{if(b==null)return;let f;o.value=o.value.filter(h=>h!==b),a.value=a.value.filter(h=>h[l]===b?(f=h,!1):!0),s==null||s(o.value,a.value,{row:f,action:"uncheck"})},g=b=>{if(o.value.includes(b))return;const f=!i.value&&o.value.length>=1,h=Nn(ee(e)||[],l,b);f?o.value=[b]:o.value.push(b),h&&(f?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return Ft(()=>{p()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:m,clearAll:p,clearKey:w,selectKey:g}]},Mr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Er=x({name:"RTransitionComponent",__name:"index",props:Ho({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Mr),setup(e){const{getKeepAliveInclude:n}=Xr(),{getKeepAliveConfig:t}=J();return(o,a)=>{const l=Xo("RouterView");return Ae(),Yo("div",null,[r(l,null,{default:vt(({Component:s,route:i})=>[s?(Ae(),Ve(Mn,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:vt(()=>[(Ae(),Ve(Jo,null,{default:vt(()=>[ee(t).setupKeepAlive?(Ae(),Ve(Zo,{key:0,max:ee(t).maxKeepAliveLength,include:ee(n),exclude:ee(t).keepAliveExclude},[(Ae(),Ve(Yt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Ae(),Ve(Yt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Qo("",!0)]),_:1})])}}}),Un=x({name:"RForm",props:Fn,setup(e,{expose:n}){const t=ie("formRef");return Ce(()=>{const{onRegister:o}=e;o&&t.value&&B(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(fe,N(e,n,{ref:"formRef"}),{...t})}}),Dr=(e,n)=>{const t=oe(),o=c=>{c&&(t.value=c)},a=()=>{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:a,validate:(c,m)=>a().validate.call(null,c,m),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>Ee(e)||{},formRules:()=>Ee(n)||{}}]},zr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Lr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Ir=We({...To,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...zr);function Fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const xt=e=>{const{icon:n,label:t}=e;return n?r(I,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=_e(n))==null?void 0:o(),r("div",null,[t])]}}):t},Br=e=>{if(typeof e.popover=="string")return r(Ue,null,{trigger:()=>xt(e),default:()=>e.popover});if(ge(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Ue,o,{trigger:()=>xt(e),default:()=>t})}},Vr=x({name:"RSegment",props:Ir,setup(e,{expose:n}){const t=T(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?U(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(hn,N(n,{style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Lr,a)}),Fr(e=t.map(l=>r(Oo,{key:l.key,name:l.key,tab:l.popover?Br(l):xt(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),jr={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]}},xi=x({name:"RBarcode",props:jr,setup(e){const n=ie("barcodeRef"),t=T(()=>({"--r-barcode-width":U(e.width),"--r-barcode-height":U(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});ta(n.value,s!=null?s.toString():"",c),u&&B(u,s,l,i)}catch(l){const{onError:s}=e;s&&B(s,l)}finally{const{onFinally:l}=e;l&&B(l)}};return de(()=>{e.watchText?o=qe(()=>e.text,a):o==null||o()}),Ce(()=>{a()}),Lt(()=>{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(pt,{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)]})}}),Nr={...We(Fe,["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 Ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Mi=x({name:"RTablePro",props:Nr,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:m}]=Rr(),[p,{getPage:w,getPageSize:g,setCallback:b,setItemCount:f,resetPagination:h,getItemCount:_}]=Fs(void 0,{prefix:k=>`${k.itemCount}`}),d=T(()=>e.request),y=()=>({getItemCount:_,getPage:w,getPageSize:g}),S=()=>{const{onTablePaginationUpdate:k}=e;k&&B(k,y())},C=k=>{const E=Object.assign({},e.requestConfig,k),{formatRangeTime:O}=E;let P=E.params||{};return O!=null&&O.length&&P&&O.forEach($=>{const{key:Y,target:G}=$,ye=P[Y];if(ye&&(G!=null&&G.length)){const[ke,ae]=ye;P[G[0]]=ke,P[G[1]]=ae}else P[Y]=null,P[G[0]]=null,P[G[1]]=null}),P=la(P),Object.assign({},P,{page:w(),pageSize:g()})},v=k=>{var O;h();const E=C(k);(O=d.value)==null||O.call(d,E)},A=k=>{var O;const E=C(k);(O=d.value)==null||O.call(d,E)};return de(()=>{f(e.paginationCount),b(()=>{const{manual:k}=e;k||A(),S()})}),Ce(()=>{const{onRegister:k}=e;k&&B(k,{getTablePagination:y,runTableRequest:v,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:m,getCurrentTableRequestParams:C,resetTablePagination:h})}),{register:n,paginationRef:p}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(Pr,N(s,{onRegister:e,pagination:l?t:void 0}),Ur(o)?o:{default:()=>[o]})}}),Ei=()=>{const e=j(),n=f=>{f&&(e.value=f)},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:f=>t().downloadCsv.call(null,f),filters:f=>t().filters.call(null,f),page:f=>t().page.call(null,f),scrollTo:f=>t().scrollTo(f),sort:(f,h)=>t().sort.call(null,f,h),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:f=>t().runTableRequest.call(null,f),print:f=>t().print.call(null,f),getCurrentTableRequestParams:f=>t().getCurrentTableRequestParams.call(null,f),resetTablePagination:()=>t().resetTablePagination.call(null)}]},$r=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Kr={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:$r()},onRegister:{type:[Function,Array],default:void 0}};let an=!1;const Di=x({name:"RFlow",props:Kr,setup(e){const n=ie("flowDomRef"),t=T(()=>{const{width:p,height:w}=e;return{"--r-flow-width":U(p),"--r-flow-height":U(w)}}),o=oe(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var p;an||((p=e.use)==null||p.filter(Boolean).forEach(w=>Xt.use(w)),an=!0)},c=p=>{if(!o.value)return;const w=Object.entries(a).reduce((g,[b])=>(g[b]=!p,g),{});Object.assign(a,w,{isSilentMode:p}),o.value.updateEditConfig(a)},m=p=>{if(u(),!n.value)return;const{options:w,readonly:g}=e;o.value=new Xt({container:ee(n.value),...We(w,"container")}),o.value.render(p||s),c(g)};return de(()=>{e.watchData?l=qe(()=>e.data,p=>{o.value?p&&o.value.renderRawData(p):m(p)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),Ce(()=>{m();const{onRegister:p}=e;p&&o.value&&B(p,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),zi=()=>{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}}]},Wr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,$n=(e,n,t)=>{const o=[];if(Wr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=$n(a,n,t);l.length>0&&o.push(e,...l)}return o},qr=(e,n,t)=>{const o=[];for(const a of e){const l=$n(a,n,t);l.length>0&&o.push(...l)}return o},ln=e=>{const{dynamicDocumentTitle:n}=Ie();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ie(),a=o?o.title:"";document.title=t+" - "+a},Gr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(ge(n,"Object"))return()=>n;const{menuConfig:t}=Ie(),{collapsed:o}=Vt(),a=mt(M,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Kn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=He(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,m=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(ge(n,"Object"))return()=>mt(ko,{...u,type:s||"primary",style:m()},{default:()=>c(),icon:()=>l})},rn=()=>{const{getRootPath:e}=Je();return Le(K.appMenuKey,"sessionStorage",{defaultValue:e.value})},Hr=()=>Le(K.appMenuTagOptions,"sessionStorage",{defaultValue:[]}),Wn=()=>nr(Ql()),Yr=()=>tr(Wn()),Mt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let tt;const qn=(e,n)=>{var t;if(tt&&Jt(tt.fullPath,n))return tt;for(const o of e){if(Jt(o.fullPath,n))return tt=o,o;if((t=o.children)!=null&&t.length){qn(o.children,n);continue}}},Vt=ft("menu",()=>{const{push:e,getRoutes:n}=Ge(),t=va(),{t:o}=He(),{setKeepAliveInclude:a}=Jr(),l=re({menuKey:rn(),options:[],collapsed:!1,menuTagOptions:Hr(),breadcrumbOptions:[],currentMenuOption:null}),s=j(!0),i=(d,y,S)=>{It(l,d,y,S)},u=d=>{const{meta:y}=d,{i18nKey:S,noLocalTitle:C}=y,v=T(()=>S?o(`${S}`):C),A={...d,key:d.fullPath,label:()=>mt(yn,null,{default:()=>v.value}),breadcrumbLabel:v.value},k=Object.assign({},A,{icon:Gr(d),extra:Kn(d)});return d.fullPath===rn()&&(l.currentMenuOption=k),k.show=Ln(k),k},c=d=>{l.breadcrumbOptions=ee(qr(l.options,"fullPath",d))},m=(d,y=!0)=>{const C=Array.isArray(d)?[...d]:[d];y?l.menuTagOptions.push(...C):l.menuTagOptions=C,Re(K.appMenuTagOptions,l.menuTagOptions)},p=(d,y)=>{l.menuTagOptions.find(C=>C.fullPath===d)||l.menuTagOptions.push(y),l.menuTagOptions=l.menuTagOptions.filter(C=>{var v;return(v=C.fullPath)==null?void 0:v.startsWith("/")}),Re(K.appMenuTagOptions,l.menuTagOptions)},w=(d,y,S)=>{const{meta:C}=y;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(d),query:S});const{sameLevel:v}=C;if(a(y),ln(y),!v)p(d,y),c(d),l.menuKey=d,l.currentMenuOption=y,Re(K.appMenuKey,d);else{const A=Ne(u(y),Mt);l.breadcrumbOptions.find(E=>E.key===A.key)||l.breadcrumbOptions.push({...A,fullPath:String(A.key)})}}},g=async(d,y)=>{const[S]=d.split("?"),C=n().find(v=>v.path===S);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const v=Ne(C,Mt);w(S,u({...v,fullPath:v.path}),y)}},b=()=>new Promise(d=>{const y=(C,v)=>{var k;const A=[];for(const E of C){let O=`${v.endsWith("/")?v:v+"/"}${E.path}`;if(O=O.replace(/\/+/g,"/"),(k=E.children)!=null&&k.length)E.children=y(E.children,O);else if(!Jn(E.meta))continue;A.push(u({...E,fullPath:O}))}return A};l.options=y(Wn(),"");const S=l.currentMenuOption||Qr(l.options);S&&(l.breadcrumbOptions.length||c(S.key),p(S.fullPath,S),ln(S)),d()}),f=d=>l.collapsed=d,h=(d,y=1)=>{const S=l.menuTagOptions.splice(d,y);return Re(K.appMenuTagOptions,l.menuTagOptions),S},_=async()=>{s.value&&(await b(),s.value=!1)};return qe(()=>t.fullPath,async(d,y)=>{await _(),d!==y&&await g(d,t.query)},{immediate:!0}),{...we(l),changeMenuModelValue:w,collapsedMenu:f,spliceMenTagOptions:h,setMenuTagOptions:m,resolveOption:u,updateMenuState:i,setupAppMenu:b}},{persist:{key:K.appPiniaMenuStore,storage:window.localStorage,pick:["menuKey","collapsed"]}}),Gn=ft("signing",()=>{const{clearRoutes:e,replace:n}=Ge(),t=re({signingCallback:{}}),o=s=>new Promise((i,u)=>{mn(s)?u({code:1,message:"登陆失败",data:null}):(t.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},i({code:0,message:"登陆成功",data:t.signingCallback}))}),a=s=>{const{closeAll:i}=no(),{appPiniaMenuStore:u,appPiniaSigningStore:c,token:m,signing:p,appMenuKey:w}=K;window.$message.info("账号退出中..."),ce("__all_sessionStorage__","sessionStorage"),ce(c,"localStorage"),ce(u,"localStorage"),ce(m,"localStorage"),ce(p,"localStorage"),ce(w,"localStorage"),ce(K.isAppLockScreen,"localStorage"),i(),s&&(e(),n("/"),setTimeout(()=>{window.location.reload()},0))},l=()=>{a(!0)};return{...we(t),signing:o,logout:l,clearSigningCallback:a}},{persist:{key:K.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Hn=ft("keepAlive",()=>{const e=re({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Ie().keepAliveConfig;if(i){if(l<u&&!e.keepAliveInclude.includes(s)){e.keepAliveInclude.push(s);return}l>=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:K.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Oe=()=>{const e=Vt(),n=T(()=>e.options),t=T(()=>e.breadcrumbOptions),o=T(()=>e.menuKey),a=T(()=>e.menuTagOptions),l=T(()=>e.currentMenuOption),s=T(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},Be=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=Vt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},J=()=>{const e=Ie(),n=T(()=>e.drawerPlacement),t=T(()=>e.primaryColorOverride),o=T(()=>e._appTheme),a=T(()=>e.appTheme),l=T(()=>e.menuTagSwitch),s=T(()=>e.breadcrumbSwitch),i=T(()=>e.localeLanguage),u=T(()=>e.lockScreenSwitch),c=T(()=>e.copyrightSwitch),m=T(()=>e.contentTransition),p=T(()=>e.watermarkSwitch),w=T(()=>e.watermarkConfig),g=T(()=>e.appRootRoute),b=T(()=>e.sideBarLogo),f=T(()=>e.keepAliveConfig),h=T(()=>e.menuConfig),_=T(()=>e.colorWeakness),d=T(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:m,getWatermarkSwitch:p,getWatermarkConfig:w,getAppRootRoute:g,getSideBarLogo:b,getKeepAliveConfig:f,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:_,getDynamicDocumentTitle:d}},W=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ie();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Yn=()=>{const e=Gn();return{getSigningCallback:T(()=>e.signingCallback)}},Xn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Gn();return{signing:e,logout:n,clearSigningCallback:t}},Xr=()=>{const e=Hn();return{getKeepAliveInclude:T(()=>e.keepAliveInclude)}},Jr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Hn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Li=e=>{const n=pa();e.use(n),n.use(da)},Jn=e=>{const{getSigningCallback:n}=Yn(),{role:t}=e;return et!=null&&et.length&&et.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Zr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=tl;n&&lr(e),t&&or(e)},Qr=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},es=oe(),ts=x({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=Ge(),{getSideBarLogo:n}=J();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:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(M,{name:n.value.icon,size:"30",cursor:a},null);if(ge(n.value.icon,"Object"))return _e(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:es},[e!=null&&e.icon?n?r(it,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(it,{placement:"right"},{trigger:()=>r(qt,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r(qt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(yn,null,{default:()=>[e.title]})]})]):null}}),ns=x({name:"AppMenu",setup(){const e=oe(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Be(),{getMenuConfig:a}=J(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Oe(),u=T({get:()=>(setTimeout(()=>{p(),xn()},300),i.value),set:()=>{c.value&&me("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=Xe({observer:g=>{g&&o("collapsed",!1)}}),m=T({get:()=>gt("globalDrawerValue").value,set:g=>{me("globalDrawerValue",g)}}),p=()=>{const g=u.value;g!=null&&ne(()=>{var b,f;return(f=(b=e.value)==null?void 0:b.showOption)==null?void 0:f.call(b,g)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(Po,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:Dn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(ts,{collapsed:s.value},null):null,r(Ao,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":g=>u.value=g,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(g,b)=>{n(g,b)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:m}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(bn,{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 os{constructor(){$t(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 a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}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 wt={requestInstance:null,responseInstance:null},Ct={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},nt={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},as=new os,Ii=()=>{const e=(i,u)=>{u==="requestInstance"?wt.requestInstance=i:wt.responseInstance=i},n=i=>wt[i],t=(i,u,c)=>{c==="ok"?Ct[i]=u:nt[i]=u},o=(i,u)=>u==="ok"?Ct[i]:nt[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const m=c==="ok"?Ct[u]:nt[u],p=n(i),{MODE:w}=Pt();p&&a(m,p,w)},fetchError:(i,u,c)=>{const m=nt[c],{MODE:p}=Pt();a(m,u,p)}}},ls=x({name:"AppRequestCancelerProvider",setup(e,{expose:n}){_a(()=>{as.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Zn=x({name:"LayoutContentWrapper",setup(){Ge();const{maximize:e}=to(),{getContentTransition:n}=J(),t=j(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=ol();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(pt,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(M,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(ls,null,null),e?r(Er,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),rs=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));var ss={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^12.4.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.6.0","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.2.0","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.3","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@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.10","@types/three":"0.171.0","@typescript-eslint/eslint-plugin":"8.20.0","@typescript-eslint/parser":"8.20.0","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"2.1.8","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.18.0","eslint-config-prettier":"10.0.1","eslint-plugin-prettier":"5.2.2","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"16.6.0",husky:"8.0.3","lint-staged":"15.3.0",postcss:"8.5.1","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.4.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.4","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"19.0.0","unplugin-vue-components":"0.28.0",vite:"6.1.0","vite-bundle-analyzer":"0.16.0","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.1.8","vue-tsc":"2.2.0"},name:"ray-template",version:"5.1.0"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};const is=x({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ss;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),us=x({name:"TooltipIcon",props:{...Ro,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(M,{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(it,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),cs=x({name:"ThemeSegment",setup(){const{system:e}=Sn(),{getAppThemeStr:n,getAppTheme:t}=J(),{updateSettingState:o}=W(),a=[{label:"深色",key:"dark",icon:()=>r(M,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(M,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(M,{name:"system_os",size:"16"},null)}],l=T({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 de(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(Vr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Ye=Symbol("segmentDrawer"),ds=x({name:"SegmentViewsAppearance",setup(){const e=Te(Ye,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=W();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("系统主题")]}),r(cs,null,null),r(le,null,{default:()=>[q("内置主题")]}),r(xo,{showPreview:!0,swatches:Se.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(le,null,{default:()=>[q("切换动画")]}),r(Gt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Xa,onUpdateValue:a=>{o("contentTransition",a)}},null),r(le,null,{default:()=>[q("配置入口出现位置")]}),r(Gt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(le,null,{default:()=>[q("其他设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(L,{label:"面包屑"},{default:()=>[r(te,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(L,{label:"标签页"},{default:()=>[r(te,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(L,{label:"页底信息"},{default:()=>[r(te,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(L,{label:"色弱模式"},{default:()=>[r(te,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),ps=x({name:"SegmentViewsCommon",setup(){const e=Te(Ye,{}),{updateSettingState:n}=W();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(L,{label:"页面缓存"},{default:()=>[r(te,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(L,{label:"动态浏览器标题"},{default:()=>[r(te,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(le,null,{default:()=>[q("缓存设置")]}),r(fe,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(L,{label:"最大缓存数",feedback:T(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时缓存将会失效":"").value},{default:()=>[r(X,{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(Mo,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ms=x({name:"SegmentViewsWatermark",setup(){const e=Te(Ye,{}),{updateSettingState:n}=W();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(L,{label:"全屏水印"},{default:()=>[r(te,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(L,{label:"跨边界显示"},{default:()=>[r(te,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(le,null,{default:()=>[q("个性化水印")]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(L,{label:"水印内容"},{default:()=>[r(zt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(L,{label:"字体尺寸"},{default:()=>[r(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),fs=x({name:"SegmentViewsCustomMenu",setup(){const e=Te(Ye,{}),{updateSettingState:n}=W();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,{titlePlacement:"center"},{default:()=>[r(I,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(it,{placement:"top",showArrow:!1},{trigger:()=>r(M,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(vn,null,{default:()=>[q("菜单样式")]})]})]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(L,{label:"每级菜单缩进"},{default:()=>[r(X,{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(X,{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(X,{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(X,{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(X,{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:()=>[q("更新菜单")]})]})]}),r(le,null,{default:()=>[q("其他设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(L,{label:"反转色菜单"},{default:()=>[r(te,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(L,{label:"菜单标题"},{default:()=>[r(te,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(L,{label:"手风琴菜单"},{default:()=>[r(te,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(L,{label:"原生滚动条"},{default:()=>[r(te,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),gs=x({name:"SettingDrawer",props:Eo,setup(){const{create:e}=yr(),{changePrimaryColor:n,updateSettingState:t}=W(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:m,getMenuConfig:p,getDrawerPlacement:w,getColorWeakness:g,getWatermarkConfig:b,getDynamicDocumentTitle:f}=J(),{setupAppMenu:h}=Be(),_=Et(h,300),d=re({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:m.value,menuConfig:p.value,drawerPlacement:w.value,colorWeakness:g.value,primaryColorOverride:a.value,watermarkConfig:b.value,dynamicDocumentTitle:f.value,throttleSetupAppMenu:_}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{po(Ee(In()),(S,C)=>{d[C]=S,t(C,S)}),_()}})};return Cn(Ye,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(bn,N(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Do,{title:"个性化配置",closable:!0},{default:()=>r(hn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Qe,{name:"appearance",tab:"外观"},{default:()=>[r(ds,null,null)]}),r(Qe,{name:"menu",tab:"菜单"},{default:()=>[r(fs,null,null)]}),r(Qe,{name:"watermark",tab:"水印"},{default:()=>[r(ms,null,null)]}),r(Qe,{name:"common",tab:"通用"},{default:()=>[r(ps,null,null)]})]}),footer:()=>r(I,{justify:"flex-start"},{default:()=>[r(Z,{type:"warning",onClick:e},{icon:()=>r(M,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function hs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const ys=x({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Be(),{getBreadcrumbOptions:n}=Oe(),{isTabletOrSmaller:t}=Xe();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Lo,null,{default:()=>[r(Ca,{tag:"li",name:"breadcrumb",appear:!0},hs(e=t.map(l=>r(zo,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(ze,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const bs=x({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Be(),{getRoutes:a}=Ge(),l=T({get:()=>e.show,set:v=>{n("update:show",v),v||g()}}),s=re({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:m}=Xe({observer:v=>{v&&(l.value=!1)}}),p=j(!1),w="content-item--active",g=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},b=v=>{l.value||(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),v.stopPropagation(),g(),l.value=!0)},f=v=>{if(v)p.value=!0;else{p.value=!1,s.searchOptions=[];return}const A=a().reduce((k,E)=>{var $;const O=Ne(E,["children","meta","path","name"]),P=o({...O,fullPath:E.path}),{breadcrumbLabel:F}=P;return($=F==null?void 0:F.toLocaleLowerCase())!=null&&$.includes(v.toLocaleLowerCase())&&Ln(P)&&k.push(P),k},[]);setTimeout(()=>{s.searchOptions=A,ne().then(()=>{_()}),p.value=!1},300)},h=v=>{if(v){const{meta:A}=v;A.windowOpen?window.open(A.windowOpen):(l.value=!1,t(v.fullPath,v),setTimeout(xn,300))}},_=()=>{const v=s.searchOptions[u],A=s.searchOptions[c];v&&ne().then(()=>{const k=Ke(`attr:data_path="${v.path}"`),E=A?Ke(`attr:data_path="${A==null?void 0:A.path}"`):null;if(E!=null&&E.length){const[O]=E;ra(O,w)}if(k!=null&&k.length){const[O]=k;Pn(O,w)}})},d=v=>{const{icon:A}=v;return typeof A=="string"&&A?r(M,{name:A,size:"24"},null):typeof A=="function"?r(A,null,null):r(M,{name:"search",size:"24"},null)},y=v=>{v==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),v==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},S=v=>{const A=v.key;switch((A==="ArrowUp"||A==="ArrowDown"||A==="Enter")&&(v.preventDefault(),v.stopPropagation()),c=u<=0?0:u,A){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const k=s.searchOptions[u];k&&h(k);break}_()},C=({menuOption:v})=>r(I,N({align:"center",class:"content-item"},{onClick:h.bind(this,v),data_path:v.path}),{default:()=>[r("div",{class:"content-item-icon"},[d(v.meta)]),r("div",{class:"content-item-label"},[v.breadcrumbLabel]),r(M,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return $e(window,"keydown",b),{...we(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Et(f,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:m,SearchItem:C,loading:p,registerChangeSearchElementIndex:S}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a,registerChangeSearchElementIndex:l}=this;return e?r("div",{style:"display: none;"},null):r(fn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light",tabindex:"-1",onKeydown:l},[r("div",{class:"global-search__wrapper"},[r(De,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(zt,{size:"large",value:this.searchValue,"onUpdate:value":s=>this.searchValue=s,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(M,{name:"search",size:"24"},null)}),default:()=>{let s;return r(Dt,null,{default:()=>[r(pt,{show:t},{default:()=>[n.length?r(I,{vertical:!0,size:[0,6],class:"global-search__card-content"},Tt(s=n.map((i,u)=>r(o,{menuOption:i,key:i.fullPath},null)))?s:{default:()=>[s]}):r(Io,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(I,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(vn,null,{default:()=>[q("没有搜索结果")]})]})})]})]})},action:()=>{let s;return r(I,{justify:"flex-start",align:"center",size:[16,0]},Tt(s=this.helperTipOptions.map(i=>r(I,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(u=>r(I,{class:"item-icon",align:"center",justify:"center"},Tt(u)?u:{default:()=>[u]})),r(I,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?s:{default:()=>[s]})}})])])]})}}),vs=x({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=sa();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&B(a,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(M,{name:"search",size:"16"},null),default:()=>r(I,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Qn=x({name:"AppAvatar",props:{...Fo,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}=Yn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(Z,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(I,{align:"center",size:t,vertical:a},{default:()=>[r(Bo,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var l;return e.avatar?null:(l=e==null?void 0:e.name)==null?void 0:l[0]}}),e==null?void 0:e.name]})]})}}),_s=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ss={logout:()=>{const{logout:e}=Xn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=W();e("lockScreenSwitch",!0)}},ws=e=>{const n=Ss[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},Cs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},Ts=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],a=[...t];return n.value?a:o},Os=x({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=W(),{t}=He(),[o,{toggleFullscreen:a,isEnabled:l}]=On(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=J(),u=j(!1),c=j(!1),{isTabletOrSmaller:m}=Xe(),p=gt("globalDrawerValue"),w=T(()=>Cs({isFullscreen:o,isTabletOrSmaller:m})),g=T(()=>Ts({isFullscreen:o,isTabletOrSmaller:m})),b={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{me("globalDrawerValue",!p.value)}};return{leftIconOptions:w,rightTooltipIconOptions:g,toolIconClick:_=>{var d;(d=b[_])==null||d.call(b)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:_=>m.value?null:_}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(_n,{class:"layout-header"},{default:()=>[r(bs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(I,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(I,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(us,{key:i.name,iconName:i.name,tooltipText:wn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(ys,null,null):null]}),r(I,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(vs,{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:a.bind(this,i.name),focusable:!1},{default:()=>[r(M,{name:i.name,size:16,cursor:"pointer"},null)]})),r(ze,{options:En,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(Z,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(M,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ze,{options:_s(),onSelect:ws.bind(this),trigger:"click"},{default:()=>[r(Qn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(gs,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),ks=x({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(I,{size:[0,0]},{default:()=>[r(Os,null,null)]})}});function As(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Ps=x({name:"AppMenuTag",setup(e,{expose:n}){const t=ie("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Oe(),{changeMenuModelValue:l}=Be(),{getRootPath:s}=Je(),{maximize:i}=to(),{reload:u}=Bs(),{close:c,closeAll:m,closeRight:p,closeLeft:w,closeOther:g,checkCloseLeft:b,checkCloseRight:f}=no(),h=["closeAll","closeRight","closeLeft","closeOther"];let _=1/0;const d={size:16},y=j([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(M,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(M,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(M,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(M,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(M,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(M,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(M,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(M,{name:"resize_h",size:d.size},null),disabled:!1}]),S=ct(16),C={closeCurrentPage:()=>{o.value!==s.value&&c(_)},reloadCurrentPage:()=>{u()},closeAll:()=>{m()},closeRight:()=>{p(_)},closeLeft:()=>{w(_)},closeOther:()=>{g(_)},windowOpenTab:()=>{const R=a.value[_];if(!(R!=null&&R.fullPath))return;const D=R.fullPath.startsWith("#")?R.fullPath:`#${R.fullPath}`;window.open(D,"_blank")},maximizeLayoutContent:()=>{const R=a.value[_];i(!0),R&&Y(R)}},v=re({x:0,y:0,actionDropdownShow:!1}),A="menu_tag_data",k=gt("globalMainLayoutLoad"),E="n-scrollbar-container";let O=o.value;const P=j(!1),F=R=>{c(R)},$=(R,D)=>{for(const Q of y.value)if(Q.key===R){Q.disabled=D;break}},Y=R=>{v.actionDropdownShow=!1,l(R.fullPath,R)},G=()=>{const R=document.getElementById(S);if(R)return Array.from(R.childNodes).find(Ze=>ia(Ze,E).value)},ye=R=>{var Q;const D=G();if(D){const Ze=D.scrollLeft||0,Ut=R==="left"?Math.max(0,Ze-200):Ze+200;(Q=t.value)==null||Q.scrollTo({left:Ut,behavior:"smooth"})}},ke=R=>{v.actionDropdownShow=!1;const D=C[R];D==null||D()},ae=(R,D)=>{D.preventDefault(),_=R,v.actionDropdownShow=!1,ne(()=>{v.x=D.clientX,v.y=D.clientY,v.actionDropdownShow=!0})},Nt=()=>{f(_)?$("closeRight",!1):$("closeRight",!0),b(_)?$("closeLeft",!1):$("closeLeft",!0)},ao=()=>{_=a.value.findIndex(D=>D.fullPath===o.value),Nt()},lo=R=>{a.value.length>1&&R.fullPath!==s.value&&(R.closeable=!0),P.value=!0},ro=R=>{R.fullPath!==o.value&&(R.closeable=!1),P.value=!1},so=()=>{G()&&ne().then(()=>{var D;(D=t.value)==null||D.scrollTo({left:99999,behavior:"smooth"})})},ht=()=>{ne().then(()=>{const R=Ke(`attr:${A}="${o.value}"`);if(R!=null&&R.length){const[D]=R;ne().then(()=>{var Q;(Q=t.value)==null||Q.scrollTo({left:D.offsetLeft,behavior:"smooth"})})}})},io=()=>{i(!0)};return qe(()=>a.value,(R,D)=>{y.value.forEach(Q=>{h.includes(Q.key)&&(R.length>1?Q.disabled=!1:Q.disabled=!0)}),D!=null&&D.length&&(R.length>(D==null?void 0:D.length)?so():R.length===(D==null?void 0:D.length)&&ht()),D===void 0&&ht()},{immediate:!0}),de(()=>{v.actionDropdownShow&&Nt(),O!==o.value&&(O=o.value,ht())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:F,getMenuKey:o,menuTagClick:Y,moreOptions:y,scrollX:ye,scrollRef:t,uuidScrollBar:S,actionDropdownSelect:ke,actionState:v,menuTagContextMenu:ae,setCurrentContextmenuIndex:ao,menuTagMouseenter:lo,menuTagMouseleave:ro,MENU_TAG_DATA:A,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:io,isMouseInMenuTag:P}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:m,menuTagClick:p,menuTagContextMenu:w,menuTagMouseenter:g,menuTagMouseleave:b,actionDropdownSelect:f,reload:h}=this;return r(_n,null,{default:()=>[r("div",{class:"menu-tag"},[r(ze,{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:f.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(I,{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(M,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Dt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},As(e=o.map((_,d)=>r(Z,N({key:_.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:_.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,_),onContextmenu:w.bind(this,d),onMouseenter:g.bind(this,_),onMouseleave:b.bind(this,_),[a]:_.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(Tn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:S}}=_;return S?m(S):y}})]),icon:()=>r(M,N({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,d)}),null)})))?e:{default:()=>[e]})]}),r(I,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(M,{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(M,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(Z,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(M,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(jn,{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(M,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Rs=x({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(Ps,null,null)}}),xs={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},sn=()=>({lockPassword:null}),un=$o(K.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),eo=()=>({setLockAppScreen:t=>{un.value=t},getLockAppScreen:()=>un.value}),Ms=x({name:"UnlockScreen",setup(){const[e,{validate:n}]=Dr(),{logout:t}=Xn(),{updateSettingState:o}=W(),{setLockAppScreen:a}=eo(),{isTabletOrSmaller:l}=Xe(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",m=re({lockCondition:sn(),HH_MM:H().format(s),AM_PM:H().format(i),YY_MM_DD:H().format(u),DDD:H().format(c)}),p=setInterval(()=>{m.HH_MM=H().format(s),m.AM_PM=H().format(i)},6e3),w=setInterval(()=>{m.YY_MM_DD=H().format(u),m.DDD=H().format(c)},864e5),g=()=>{ce(K.appLockScreenPasswordKey,"localStorage"),o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)},b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页并且重新登录",positiveText:"确定",negativeText:"重新登录",onPositiveClick:g})},f=()=>{const h=Le(K.appLockScreenPasswordKey,"localStorage");if(!h){window.$dialog.warning({title:"警告",content:()=>"检测到锁屏密码被修改,请重新登录",closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:"重新登录",onPositiveClick:g});return}const _=ua(h);n().then(()=>{_===m.lockCondition.lockPassword?(a(!1),o("lockScreenSwitch",!1),ce(K.appLockScreenPasswordKey,"localStorage"),m.lockCondition=sn()):window.$message.warning("密码错误,请重新输入")})};return Lt(()=>{clearInterval(p),clearInterval(w)}),{...we(m),backToSigning:b,unlockScreen:f,isTabletOrSmaller:l,register:e}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i,register:u}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(Qn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r(Un,{onRegister:u,model:this.lockCondition,rules:xs},{default:()=>[r(L,{path:"lockPassword"},{default:()=>[r(zt,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),r(I,{justify:"space-between"},{default:()=>[r(Z,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[q("返回登陆")]}),r(Z,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[q("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,q(" "),r("span",null,[a]),q(" "),r("span",null,[t])])])])])])}}),Es=e=>{const n=bt(e[0]),t=bt(e[1]),o=bt(e[2]);return T(()=>({"--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`}))},Ds=x({name:"RLayout",setup(){const e=oe(),n=oe(),t=oe(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=J(),{getLockAppScreen:l}=eo(),s=Es([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Ms,null,null):r(Vo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(ns,null,null),r(Ht,{class:"r-layout-full__viewer"},{default:()=>[r(ks,{ref:"layoutSiderBarRef"},null),e?r(Rs,{ref:"layoutMenuTagRef"},null):null,r(Ht,{ref:xe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Zn,null,null)]}),t?r(is,{ref:"layoutFooterRef"},null):null]})]})}}),zs=[{path:"/",name:"RLogin",component:()=>z(()=>import("./index-mSHWlsCH.js"),__vite__mapDeps([98,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,82,83,84,40,41,59,43,44,45,46,47,49,50,51,52,53,54,55,56,99]))},{path:"/",name:"RLayout",component:Ds,children:[...Yr(),{path:"/:catchAll(.*)",component:()=>z(()=>import("./index-BCyJGjGS.js"),__vite__mapDeps([100,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,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,49,50,51,52,53,54,55,56,101])),meta:{i18nKey:V("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],dt=Sa({history:wa(),routes:zs,scrollBehavior:e=>{ar(e)}}),Fi=e=>{e.use(dt),Zr(dt)},jt=()=>dt?{router:dt}:{router:{}},cn="YYYY-MM-DD HH:mm:ss",Ls=()=>({locale:s=>{const i=Qa[s];i?H.locale(i):H.locale(el)},getStartAndEndOfDay:s=>{const{format:i=cn}=s??{},u=H(),c=u.startOf("day"),m=u.endOf("day"),p=u.format(i),w=c.format(i),g=m.format(i);return{today:u,startOfDay:c,endOfDay:m,formatToday:p,formatStartOfDay:w,formatEndOfDay:g}},format:(s,i)=>{const{format:u=cn}=i??{};return H(s).format(u)},isDayjs:s=>H.isDayjs(s),daysDiff:(s,i)=>{const u=H(s);return H(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,m=H(s);return m.isAfter(u)&&m.isBefore(c)}});function Xe(e){const{width:n,height:t}=Ko(e),o=j(!1),{observer:a}=e??{};return ca(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:ve(o)}}let ot=999,Ot=!1;const be="ELEMENT-FULLSCREEN-RAY",dn=document.createElement("style"),Is=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const m={x:null,y:null},p=j(!1),w=()=>{const h=se(e);if(!h)return;const{left:_,top:d}=h.getBoundingClientRect();m.x===null&&m.y===null&&(m.x=-_,m.y=-d),ut(document.body,{"--element-fullscreen-z-index":ge(i,"Null")||ge(i,"Undefined")?ot: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":`${m.x}px`,"--element-fullscreen-transform-y":`${m.y}px`});const y=`
[${be}] {
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);
}
`.trim();dn.innerHTML=y,Ot||document.head.appendChild(dn)},g=()=>{const h=se(e);t==null||t(),h&&(h.getAttribute(be)||h.setAttribute(be,be),c||(c=!0,ot+=1),Ot||(w(),Ot=!0),h.style.transition=u,p.value=!0,a==null||a())},b=()=>{o==null||o();const h=se(e);h&&h.removeAttribute(be),p.value=!1,l==null||l()},f=()=>{const h=se(e);h&&(h.getAttribute(be)?b():g())};return Ft(()=>{const h=se(e);h&&h.removeAttribute(be),ot=Math.max(999,ot-1),p.value=!1}),{enter:g,exit:b,toggleFullscreen:f,isFullscreen:ve(p)}},kt={svg:ma,png:fa,jpeg:ga,blob:ha,pixelData:ya,canvas:ba},Bi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n;return{create:u=>new Promise((c,m)=>{var g;const p=se(e);if(t==null||t(p),!p)return a==null||a(),m("[useDomToImage]: target element is undefined.");(g=kt[u??s??"jpeg"])==null||g.call(kt,p,n).then(b=>(o==null||o(b,p),c(b))).catch(b=>(a==null||a(b),m(b))).finally(()=>{l==null||l(p)})})}},Vi=(e,n)=>({print:()=>{const o=se(e)||e;ea({...We(n,["printable"]),printable:o})}}),at={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Fs=(e,n)=>{const t=T(()=>({...at,...We(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...a})),o=oe(e),a={onUpdatePage:d=>{var S;const{pageChange:y}=t.value;l.value.page=d,(S=o.value)==null||S.call(o),y==null||y(d)},onUpdatePageSize:d=>{var S;const{pageSizeChange:y}=t.value;l.value.pageSize=d,l.value.page=at.page,(S=o.value)==null||S.call(o),y==null||y(d)}},l=j(t.value),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=d=>{l.value.itemCount=d},m=()=>l.value.page,p=d=>{s(d)},w=()=>l.value.pageSize,g=d=>{i(d)},b=()=>l.value,f=o.value,h=d=>{o.value=d},_=()=>{const{pageSizes:d}=l.value;l.value.page=at.page,l.value.pageSize=(d==null?void 0:d[0])||at.pageSize};return Ft(()=>{o.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:m,setPage:p,getPageSize:w,setPageSize:g,getPagination:b,getCallback:f,setCallback:h,resetPagination:_}]},to=()=>({isLayoutContentMaximized:T(()=>gt("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=se(xe),{toggleFullscreen:s}=Is(l,o);me("layoutContentMaximize",t),s(),a&&t&&((i=xe==null?void 0:xe.value)==null||i.scrollTo(a))}}),Bs=()=>({reload:(o=800)=>{me("globalMainLayoutLoad",!1),setTimeout(()=>me("globalMainLayoutLoad",!0),o)},openSpin:()=>{me("layoutContentSpinning",!0)},closeSpin:()=>{me("layoutContentSpinning",!1)}}),ji=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=J(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=W();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=W();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=W();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=J(),{updateSettingState:l}=W();l("watermarkSwitch",!a.value)}}),lt=e=>{const{getPrimaryColorOverride:n}=J(),{updateSettingState:t}=W();t("primaryColorOverride",e?st({},n.value,Se.appNaiveUIThemeOverrides.dark):st({},n.value,Se.appNaiveUIThemeOverrides.light))},Ni=()=>{const e=()=>{const{getAppTheme:l}=J(),{t:s}=He();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=W();l("_appTheme",!0),l("appTheme","dark"),lt(!0)},lightTheme:()=>{const{updateSettingState:l}=W();l("_appTheme",!1),l("appTheme","light"),lt(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=W();s("_appTheme",!l),s("appTheme",l?"light":"dark"),lt(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=J(),{updateSettingState:s}=W(),{system:i}=Sn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),lt(l.value)}}},Pe=(e,n)=>{const{getMenuTagOptions:t}=Oe();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(a=>a.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,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function no(){const{getMenuTagOptions:e,getMenuKey:n}=Oe(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=Be(),s=()=>e.value.findIndex(b=>b.fullPath===n.value),i=b=>{const f=Pe(b,"checkCloseRight");if(f){const{index:h}=f,_=e.value.length-1;return!(h>=_)}return!1},u=b=>{const f=Pe(b,"checkCloseRight");if(f){const{index:h}=f,_=e.value.length-1;return h===0?!1:h>0&&_>0}return!1};return{close:b=>{const f=Pe(b,"close");if(e.value.length!==1&&f){const{index:h,option:_}=f;if(o(h),_.fullPath===n.value){let d=u(h)?h-1:i(h)?h:h-1;d<0&&(d=0);const y=e.value[d];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:b}=Je(),{router:{getRoutes:f}}=jt(),h=f().find(_=>_.path===b.value);if(h){const _=Ne(h,Mt),d=l(_);t(d.path,l({...d,fullPath:d.path}))}},closeRight:b=>{const f=Pe(b,"closeRight");if(f){const{option:h,index:_}=f,d=e.value.length-_,y=s();o(_+1,d),_<=y&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:b=>{const f=Pe(b,"closeLeft");if(f){const{option:h,index:_}=f,d=s();o(0,_),d<=_&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:b=>{const f=Pe(b,"closeOther");if(f){const{option:h}=f;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function Ui(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=jt(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=Oe();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const m=c.value[n],p=w=>{if(w.children&&w.children.length>0){const{children:[g]}=w;p(g);return}u(w.fullPath)};p(m)}else if(typeof n=="string"){const c=o().find(m=>m.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Je(){const{getAppRootRoute:e}=J(),{updateSettingState:n}=W(),t=e,o=T(()=>e.value.path),a=T(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Vs=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Kn(e)},pn=(e,n,t)=>{const o=qn(e,n);o&&Vs(o,t)},At=(e,n,t)=>{const{getMenuOptions:o}=Oe();if(typeof e=="string")pn(o.value,e,t);else if(ge(e,"Object")){const{fullPath:a}=e;pn(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function $i(){return{hidden:o=>{At(o,"hidden",{show:!1})},show:(o,a)=>{At(o,"show",{...a,show:!0})},update:(o,a)=>{At(o,"update",a)}}}const Ki=()=>{const e=Dn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},oo=()=>Le(K.localeLanguage,"localStorage",{defaultValue:Ja});export{Ls as $,bi as A,En as B,_t as C,Qa as D,fi as E,xi as F,Ya as G,Si as H,Ti as I,Oi as J,ki as K,Dn as L,hi as M,Di as N,zi as O,Ai as P,Fs as Q,Un as R,es as S,Ci as T,Pr as U,yr as V,Vr as W,Ei as X,Ri as Y,Mi as Z,z as _,Bi as a,as as a0,Ii as a1,_i as a2,Rr as a3,jn as a4,to as a5,Ui as a6,Bs as a7,ji as a8,$i as a9,Vi as b,Ki as c,vi as d,J as e,K as f,gi as g,Se as h,Dr as i,W as j,sn as k,Qn as l,eo as m,Pi as n,gt as o,Xn as p,yi as q,xs as r,el as s,Li as t,Ni as u,wi as v,Fi as w,Je as x,He as y,M as z};