import{R as s1}from"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import{e as w,g as n1,M as r1,f as y,h as S,i as H,j as O,k as p1,l as d1,R as E,m as h1,n as u1,D as f1,s as m1,o as v1,p as g1}from"./hooks-Dx3WCPci.js";import{d as u}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Y as _1,Z as b1,_ as y1,$ as M1,a0 as w1,a1 as k1,a2 as A,a3 as z1,a4 as C1,q as N,a5 as $,M as F,Q as k,c as Z1,a6 as S1,a7 as H1,e as x1}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as f,j as z,b as a,w as V1,k as A1,n as P1,I as g,q as L1,t as I}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{g as U,c as B1,j as C,v as Z,k as Y,s as P,e as L,i as j1}from"./utils-CozJMALc.js";import{g as T1,d as D1,t as R1,f as O1}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as _,e as q,v as W}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js";import{C as E1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as G}from"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import{c as J}from"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vue_shared@3.5.12--5_uv9t5.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(i){if(i.ep)return;i.ep=!0;const s=l(i);fetch(i.href,s)}})();const N1=f({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=w(),s=z(()=>{const n=i.value;return n1(n)}),c=()=>{const{message:n,notification:r,dialog:p,loadingBar:d}=C1(["message","dialog","notification","loadingBar"],{configProviderProps:z(()=>({theme:o.value?A:null}))});window.$dialog=p,window.$message=n,window.$loadingBar=d,window.$notification=r};return t(),{getPrimaryColorOverride:l,localePackage:s,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return a(z1,{themeOverrides:l,theme:o?A:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[a(_1,null,{default:()=>[a(b1,r1,{default:()=>[a(y1,null,{default:()=>[a(M1,null,{default:()=>[a(w1,null,{default:()=>[a(k1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var $1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const F1=f({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=w(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=$1,r=document.body,p=U(y.appPiniaSettingStore,"localStorage");if(p){const d=T1(p,"primaryColorOverride.common.primaryColor",c),m=B1(d,.38);r.style.setProperty("--ray-theme-primary-color",d),r.style.setProperty("--ray-theme-primary-fade-color",m||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&C(c,{display:"none"})},s=c=>{const n=document.body,r="ray-template--dark",p="ray-template--light";c?Z(n,p):Z(n,r),Y(n,c?r:p)};o(),i(),V1(()=>l.value,c=>{s(c)},{immediate:!0}),t()},render(){return a("div",{class:"app-style-provider"},null)}}),K={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},M=()=>({lockPassword:null}),I1=f({name:"LockScreen",setup(){const e=_(null),t=_(null),{setLockAppScreen:l}=H(),{updateSettingState:o}=S(),i=q({lockCondition:M()}),s=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=M())})};return A1(()=>{P1(()=>{var c;(c=t.value)==null||c.focus()})}),{...W(i),lockScreen:s,formInstRef:e,inputInstRef:t}},render(){return a("div",{class:"app-lock-screen__input"},[a(N,{ref:"formInstRef",model:this.lockCondition,rules:K,labelPlacement:"left"},{default:()=>[a($,{path:"lockPassword"},{default:()=>[a(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),a(k,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[g("锁屏")]})]})])}}),U1=f({name:"UnlockScreen",setup(){const e=_(null),t=_(null),{logout:l}=O(),{updateSettingState:o}=S(),{setLockAppScreen:i}=H(),{isTabletOrSmaller:s}=p1(),c="HH:mm",n="A",r="YY年MM月DD日",p="ddd",d=q({lockCondition:M(),HH_MM:u().format(c),AM_PM:u().locale("en").format(n),YY_MM_DD:u().format(r),DDD:u().format(p)}),m=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(n)},6e3),v=setInterval(()=>{d.YY_MM_DD=u().format(r),d.DDD=u().format(p)},864e5),b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},c1=()=>{var V;(V=e.value)==null||V.validate(a1=>{a1||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=M())})};return L1(()=>{clearInterval(m),clearInterval(v)}),{...W(d),backToSigning:b,unlockScreen:c1,formRef:e,inputInstRef:t,isTabletOrSmaller:s}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,s=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return a("div",{class:"app-lock-screen__unlock"},[a("div",{class:"app-lock-screen__unlock__content"},[a("div",{class:"app-lock-screen__unlock__content-wrapper"},[a("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[a("div",{class:"left"},[s[0]]),a("div",{class:"right"},[s[1]])])]),a("div",{class:"app-lock-screen__unlock__content-avatar"},[a(d1,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),a("div",{class:"app-lock-screen__unlock__content-input"},[a(N,{ref:"formRef",model:this.lockCondition,rules:K},{default:()=>[a($,{path:"lockPassword"},{default:()=>[a(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&c()}},null)]}),a(Z1,{justify:"space-between"},{default:()=>[a(k,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[g("返回登陆")]}),a(k,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[g("进入系统")]})]})]})]),a("div",{class:"app-lock-screen__unlock__content-date"},[a("div",{class:"current-date"},[t,g(" "),a("span",null,[l])]),a("div",{class:"current-year"},[o,g(" "),a("span",null,[i])])])])])}}),Y1=f({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=H(),{updateSettingState:t}=S(),{getLockScreenSwitch:l}=w();return{lockScreenSwitchRef:z({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return a(E,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[a("div",{class:"app-lock-screen__content"},[e()?a(U1,null,null):a(I1,null,null)])]})}}),q1=f({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=w();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?a(S1,I({cross:!0,fullscreen:!0},e),null):null}}),W1=f({name:"GlobalSpin",props:{...H1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:h1("globalSpinning"),overrides:e}},render(){return a(x1,I(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var G1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const J1=f({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=G1,t=U(y.appVersionProvider,"localStorage"),l=_(!1),{logout:o}=O();return t!==null?e!==t&&(l.value=!0,P(y.appVersionProvider,e,"localStorage")):P(y.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return a("div",{class:"app-style-provider"},[a(E,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),X=f({name:"App",render(){return a(N1,null,{default:()=>[a(J1,null,null),a(Y1,null,null),a(F1,null,null),a(q1,null,null),a(W1,null,{default:()=>a(s1,null,null),description:()=>u1})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const K1=()=>{u.locale(f1)},B=(e,t)=>{const l=new E1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},X1=()=>({mounted:(e,{value:t})=>{B(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),B(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:s="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=D1(i,c,Object.assign({},n)),t=G(l,s,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),j=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),Y(e,l)):(e.removeAttribute("disabled"),Z(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},l2=()=>({mounted:(e,{value:t})=>{j(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&j(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),T=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:s}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}s&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?C(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:L(i)}):C(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:L(i)})},o2=()=>({mounted:(e,{value:t})=>{T(e,t)},updated:(e,{value:t})=>{T(e,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),h={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},a2="v-ripple__container";function D(e,t){e.style.transform=t}function Q(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),x.show(e,l,t))}function e1(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),x.hide(t))}const s2=(e,t,l={})=>{var v;const o=t.getBoundingClientRect(),i=e.clientX-o.left,s=e.clientY-o.top;let c=0,n=.3;(v=t.__d_ripple__)!=null&&v.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(s-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-c*2)/2}px`,p=`${(t.clientHeight-c*2)/2}px`,d=l.center?r:`${i-c}px`,m=l.center?p:`${s-c}px`;return{radius:c,scale:n,x:d,y:m,centerX:r,centerY:p}},x={show(e,t,l={}){var b;if(!((b=t==null?void 0:t.__d_ripple__)!=null&&b.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=a2,l.class&&(o.className+=` ${l.class}`);const{radius:s,scale:c,x:n,y:r,centerX:p,centerY:d}=s2(e,t,l),m=`${s*2}px`;i.className=h.vRippleAnimation,i.style.width=m,i.style.height=m,t.appendChild(o);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationVisible),D(i,`translate(${n}, ${r}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationIn),D(i,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var s;if(!((s=e==null?void 0:e.__d_ripple__)!=null&&s.enabled))return;const t=e.getElementsByClassName(h.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(h.vRippleAnimationIn),l.classList.add(h.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(h.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function t1(e){return typeof e>"u"||!!e}function l1(e){e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerup",e1)}function R(e,t,l){const{value:o,modifiers:i}=t,s=t1(o);s||x.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=s,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,j1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),s&&!l?(e.addEventListener("pointerdown",Q),e.addEventListener("pointerup",e1)):!s&&l&&l1(e)}const n2=()=>({mounted:(e,t)=>{R(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,l1(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=t1(t.oldValue);R(e,t,l)}}),r2=Object.freeze(Object.defineProperty({__proto__:null,default:n2},Symbol.toStringTag,{value:"Module"})),p2=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:s=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=R1(o,s,Object.assign({},c)),G(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},d2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),h2=e=>Object.keys(e).reduce((l,o)=>{var s;const i=(s=e[o])==null?void 0:s.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),u2=e=>{const l=h2(Object.assign({"/src/directives/modules/copy/index.ts":Q1,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":c2,"/src/directives/modules/ripple/index.ts":r2,"/src/directives/modules/throttle/index.ts":d2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;O1(l,(s,c)=>{var r;const n=(r=c.match(o))==null?void 0:r[0];typeof n=="string"&&i.test(n)?e.directive(n,s()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},i1=async()=>{},o1=async e=>{m1(e),await v1(e),g1(e),K1(),u2(e)},f2=async()=>{const e=J(X);await o1(e),e.mount("#app"),await i1()},m2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=J(X),await o1(e),e.mount("#app"),await i1()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?m2():f2();