vue-pure-admin/static/js/index-DDsR9RFr.js

2 lines
92 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.

var vn=Object.defineProperty,gn=Object.defineProperties;var _n=Object.getOwnPropertyDescriptors;var Wt=Object.getOwnPropertySymbols;var yn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable;var Ut=(a,t,c)=>t in a?vn(a,t,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[t]=c,vt=(a,t)=>{for(var c in t||(t={}))yn.call(t,c)&&Ut(a,c,t[c]);if(Wt)for(var c of Wt(t))wn.call(t,c)&&Ut(a,c,t[c]);return a},gt=(a,t)=>gn(a,_n(t));var at=(a,t,c)=>new Promise((p,r)=>{var n=l=>{try{u(c.next(l))}catch(h){r(h)}},o=l=>{try{u(c.throw(l))}catch(h){r(h)}},u=l=>l.done?p(l.value):Promise.resolve(l.value).then(n,o);u((c=c.apply(a,t)).next())});import{fZ as xn,f_ as bn,as as Cn,at as kn,av as je,a1 as he,k as y,e as i,g as m,a as R,au as He,aw as nt,p as A,f$ as Ve,r as It,g0 as me,g1 as ln,g2 as Kt,m as qe,ab as ze,Z as Tt,ah as $t,ad as zt,g3 as Qe,u as e,g4 as ut,b2 as We,_ as ce,aP as Sn,d as J,g5 as bt,g6 as Mn,a8 as Ce,g7 as an,n as Le,y as Lt,i as G,z as oe,f,$ as ye,h as S,s as le,F as ue,l as we,q as Te,v as Z,t as P,w as b,el as At,j as se,b as O,g8 as _t,g9 as In,a$ as Ze,x as Ke,aQ as pt,aR as sn,U as $e,R as Re,aX as Tn,M as Ct,ag as $n,ga as yt,bk as zn,aE as Ln,X as rn,bp as ke,A as Ye,gb as Vt,gc as dt,K as An,O as ht,gd as it,aY as kt,ge as Yt,L as rt,af as cn,Y as un,o as Vn,W as tt,gf as Hn,aK as Rn,bo as Bn,du as En,a4 as Xt}from"./index-DI6gHrBb.js";import{u as Ht,a as On}from"./useDataThemeChange-DP9xodll.js";import{u as Pe}from"./app-CnjhFlvF.js";import{e as _e}from"./mitt-E5P-NQ8u.js";import{R as Dn}from"./refresh-right-rMUb0Mev.js";import{C as ft}from"./close-Cnv662cv.js";import{A as Pn}from"./arrow-right-s-line-DrX8IJq3.js";import{l as qn,P as Rt,_ as Fn,M as Nn}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-C5Gt0vwX.js";import{u as Se,a as Bt,g as Et,d as Wn,b as Un}from"./dark-d_Z7ESqO.js";import{m as Kn}from"./index-wh3GpahJ.js";import{u as St}from"./epTheme-DpkgvuKN.js";import{u as Ae}from"./hooks-CCgmh5KY.js";import{S as Yn}from"./sortable.esm-VSgMS8pS.js";import{C as Je}from"./check-D58jLO1b.js";import{B as dn}from"./back_top-C2mucs2Z.js";import{R as wt}from"./index-AcOyzOWB.js";import{R as Gt}from"./index-uhUDOATP.js";import"./user-DNtD0Fqa.js";const Xn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"/></svg>',Gn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"/><path fill="currentColor" d="m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"/></svg>',jn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"/><path fill="currentColor" d="m220.8 256l-71.232 80l71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496l-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"/></svg>',Qn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"/><path fill="currentColor" d="M384 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"/></svg>',Zn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"/></svg>',Jn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/></svg>',eo='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"/></svg>',to='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M512 128L128 447.936V896h255.936V640H640v256h255.936V447.936z"/></svg>',no='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M18 3a3 3 0 1 1 0 6h-3a3 3 0 0 1-2.829-2H11c-1.1 0-2 .9-2 2v.171a3.001 3.001 0 0 1 0 5.658V15c0 1.1.9 2 2 2h1.17A3 3 0 0 1 15 15h3a3 3 0 1 1 0 6h-3a3 3 0 0 1-2.829-2H11c-2.21 0-4-1.79-4-4H5a3 3 0 1 1 0-6h2a4 4 0 0 1 4-4h1.17A3 3 0 0 1 15 3zm0 14h-3a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2M8 11H5a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2m10-6h-3a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2"/></svg>',oo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 14v8H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m9 4h1v5h-8v-5h1v-1a3 3 0 1 1 6 0zm-2 0v-1a1 1 0 1 0-2 0v1z"/></svg>',lo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M4 8h16V5H4zm10 11v-9h-4v9zm2 0h4v-9h-4zm-8 0v-9H4v9zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/></svg>',ao='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m13.06 8.111l1.415 1.414a7 7 0 0 1 0 9.9l-.354.353a7 7 0 1 1-9.9-9.9l1.415 1.415a5 5 0 1 0 7.071 7.071l.354-.354a5 5 0 0 0 0-7.07l-1.415-1.415zm6.718 6.01l-1.414-1.414a5 5 0 0 0-7.071-7.07l-.354.353a5 5 0 0 0 0 7.07l1.415 1.415l-1.415 1.414l-1.414-1.414a7 7 0 0 1 0-9.9l.354-.353a7 7 0 1 1 9.9 9.9"/></svg>',so='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m9 6h1v5h-8v-5h1v-1a3 3 0 1 1 6 0zm-2 0v-1a1 1 0 1 0-2 0v1z"/></svg>',ro='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"/></svg>',io='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"/></svg>',co='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M21 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm-1 8H4v8h16zm0-6H4v4h16zm-9 1v2H9V6zM7 6v2H5V6z"/></svg>',uo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10s4.477-10 10-10s10 4.477 10 10m-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67m9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31M8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.8 5.8 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.8 5.8 0 0 0 2.398 3.371l.977-1.636A3.89 3.89 0 0 1 8.1 12M12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.78 5.78 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.83 5.83 0 0 0-4.12.39l.927 1.663A3.9 3.9 0 0 1 12 8.1m0 7.8a3.9 3.9 0 0 1-1.642-.363l-.928 1.662a5.77 5.77 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.78 5.78 0 0 0 1.723-3.762l-1.903-.027A3.9 3.9 0 0 1 12 15.9m2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312"/></svg>',ho='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 1.865-5.135L8 9H2V3l2.447 2.446A9.98 9.98 0 0 1 12 2m1 5v4.585l3.243 3.243l-1.415 1.415L11 12.413V7z"/></svg>',fo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m16.757 2.997l-2 2H5v14h14V9.239l2-2v12.758a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1zm3.728-.9L21.9 3.511l-9.193 9.193l-1.412.002l-.002-1.416z"/></svg>',po='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m1 2v14h16V5zm16 7l-3.535 3.536l-1.415-1.415L17.172 12L15.05 9.879l1.415-1.415zM6.828 12l2.122 2.121l-1.414 1.415L4 12l3.536-3.536L8.95 9.88zm4.416 5H9.116l3.64-10h2.128z"/></svg>',mo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M8.586 17H3v-2h18v2h-5.586l3.243 3.243l-1.414 1.414L13 17.414V20h-2v-2.586l-4.243 4.243l-1.414-1.414zM5 3h14a1 1 0 0 1 1 1v10H4V4a1 1 0 0 1 1-1m1 2v7h12V5z"/></svg>',vo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m1 2v14h16V5zm3 10.5H5v-7h2l2 2l2-2h2v7h-2v-4l-2 2l-2-2zm11-3h2l-3 3l-3-3h2v-4h2z"/></svg>',go='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zM11 11h2v6h-2zm0-4h2v2h-2z"/></svg>',_o='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m17 8h-16v8h16zm0-2V5h-16v4zm-6 6h4v2h-4z"/></svg>',yo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m2.859 2.877l12.57-1.795a.5.5 0 0 1 .571.494v20.848a.5.5 0 0 1-.57.494L2.858 21.123a1 1 0 0 1-.859-.99V3.867a1 1 0 0 1 .859-.99M4 4.735v14.53l10 1.429V3.306zM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4zM5 8h8v6H7v2H5zm2 2v2h4v-2z"/></svg>',wo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M7.105 15.21A3.001 3.001 0 1 1 5 15.17V8.83a3.001 3.001 0 1 1 2 0V12c.836-.628 1.874-1 3-1h4a3 3 0 0 0 2.895-2.21a3.001 3.001 0 1 1 2.032.064A5 5 0 0 1 14 13h-4a3 3 0 0 0-2.895 2.21M6 17a1 1 0 1 0 0 2a1 1 0 0 0 0-2M6 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m12 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2"/></svg>',xo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3.34 17a10 10 0 0 1-.979-2.326a3 3 0 0 0 .003-5.347a10 10 0 0 1 2.5-4.337a3 3 0 0 0 4.632-2.674a10 10 0 0 1 5.007.003a3 3 0 0 0 4.632 2.671a10.06 10.06 0 0 1 2.503 4.336a3 3 0 0 0-.002 5.347a10 10 0 0 1-2.501 4.337a3 3 0 0 0-4.632 2.674a10 10 0 0 1-5.007-.002a3 3 0 0 0-4.631-2.672A10 10 0 0 1 3.339 17m5.66.196a5 5 0 0 1 2.25 2.77q.75.07 1.499.002a5 5 0 0 1 2.25-2.772a5 5 0 0 1 3.526-.564q.435-.614.748-1.298A5 5 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8 8 0 0 0-.75-1.298A5 5 0 0 1 15 6.804a5 5 0 0 1-2.25-2.77q-.75-.071-1.5-.001A5 5 0 0 1 9 6.804a5 5 0 0 1-3.526.564q-.436.614-.747 1.298A5 5 0 0 1 6 12c0 1.26-.471 2.437-1.273 3.334a8 8 0 0 0 .75 1.298A5 5 0 0 1 9 17.196M12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6m0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2"/></svg>',bo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M1 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4M21.548.784A13.94 13.94 0 0 1 23 7c0 2.233-.523 4.344-1.452 6.217l-1.645-1.197A12 12 0 0 0 21 7a12 12 0 0 0-1.097-5.02zm-3.302 2.4A10 10 0 0 1 19 7a10 10 0 0 1-.754 3.816l-1.677-1.22A8 8 0 0 0 17 7a8 8 0 0 0-.43-2.596z"/></svg>',Co='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1m13 2H6v15.432l6-3.761l6 3.761zM8 9h8v2H8z"/></svg>',ko='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zm10.529 11.454a4.001 4.001 0 0 1-4.86-6.274a4 4 0 0 1 6.274 4.86l2.21 2.21l-1.413 1.415zm-.618-2.032a2 2 0 1 0-2.828-2.828a2 2 0 0 0 2.828 2.828"/></svg>',So='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M5.763 17h7.32a6 6 0 0 0 0 2H6.455L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v8.803a6 6 0 0 0-2-.72V5H4v13.385zm18.187 4.535l-1.504-1.503a4 4 0 1 0-1.414 1.414l1.503 1.504zM21 18a2 2 0 1 1-4 0a2 2 0 0 1 4 0"/></svg>',Mo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16M11 7h2v2h-2zm0 4h2v6h-2z"/></svg>',Io='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M20 9V5H4v4zm0 2H4v8h16zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m2 9h3v5H5zm0-6h2v2H5zm4 0h2v2H9z"/></svg>',To='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M4 12a8 8 0 1 1 16 0a8 8 0 0 1-16 0m8-10C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10S17.523 2 12 2m5.457 7.457l-1.414-1.414L11 13.086l-2.793-2.793l-1.414 1.414L11 15.914z"/></svg>',$o='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 3v2H3V3zm4 16v2H3v-2zm6-8v2H3v-2z"/></svg>',zo=[["ep/menu",Xn],["ep/edit",Gn],["ep/guide",jn],["ep/set-up",Qn],["ep/monitor",Zn],["ep/lollipop",Jn],["ep/histogram",eo],["ep/home-filled",to],["ri/mind-map",no],["ri/admin-fill",oo],["ri/table-line",lo],["ri/links-fill",ao],["ri/admin-line",so],["ri/list-check",ro],["ri/search-line",io],["ri/window-line",co],["ri/ubuntu-fill",uo],["ri/history-fill",ho],["ri/edit-box-line",fo],["ri/code-box-line",po],["ri/artboard-line",mo],["ri/markdown-line",vo],["ri/file-info-line",go],["ri/bank-card-line",_o],["ri/file-ppt-2-line",yo],["ri/git-branch-line",wo],["ri/settings-3-line",xo],["ri/user-voice-line",bo],["ri/bookmark-2-line",Co],["ri/file-search-line",ko],["ri/chat-search-line",So],["ri/information-line",Mo],["ri/terminal-window-line",Io],["ri/checkbox-circle-line",To],["ri/bar-chart-horizontal-line",$o]];zo.forEach(([a,t])=>{xn(a,bn(t))});const Lo=Cn("pure-setting",{state:()=>({title:je().Title,fixedHeader:je().FixedHeader,hiddenSideBar:je().HiddenSideBar}),getters:{getTitle(a){return a.title},getFixedHeader(a){return a.fixedHeader},getHiddenSideBar(a){return a.hiddenSideBar}},actions:{CHANGE_SETTING({key:a,value:t}){Reflect.has(this,a)&&(this[a]=t)},changeSetting(a){this.CHANGE_SETTING(a)}}});function Ot(){return Lo(kn)}const Ao={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Vo(a,t){return i(),y("svg",Ao,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M5 11v2h14v-2z"},null,-1)]))}const Ho=he({name:"ri-subtract-line",render:Vo}),Ro={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Bo(a,t){return i(),y("svg",Ro,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5zm6-11v9h-2V6H5V4h14v2z"},null,-1)]))}const Eo=he({name:"ri-text-spacing",render:Bo}),Oo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Do(a,t){return i(),y("svg",Oo,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5zM9 5a2 2 0 1 0 0 4zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2z"},null,-1)]))}const Po=he({name:"ri-text-direction-l",render:Do}),qo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Fo(a,t){return i(),y("svg",qo,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5zM9 5a2 2 0 1 0 0 4zM7 17h12v2H7v2.5L3 18l4-3.5z"},null,-1)]))}const No=he({name:"ri-text-direction-r",render:Fo});function hn(){var ae,re;const a=zt(),t=$t(),c=Tt(),p=Ot(),r=R(0),n=R(0),o=R(0),u=R(!1),l=R(-1),h=R({}),d=R(!1),s=R(((ae=He().getItem(`${nt()}configure`))==null?void 0:ae.showModel)||"smart"),v=(re=R(He().getItem(`${nt()}configure`).hideTabs))!=null?re:R("false"),w=A(()=>Ve().multiTags),g=It([{icon:Dn,text:me("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:ft,text:me("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(w.value.length>1),show:!0},{icon:No,text:me("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(w.value.length>1),show:!0},{icon:Po,text:me("buttons.pureCloseRightTabs"),divided:!1,disabled:!(w.value.length>1),show:!0},{icon:Eo,text:me("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(w.value.length>2),show:!0},{icon:Ho,text:me("buttons.pureCloseAllTabs"),divided:!1,disabled:!(w.value.length>1),show:!0},{icon:ln,text:me("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function _(E,Q,te){var xe,Be;return Kt((xe=a==null?void 0:a.meta)==null?void 0:xe.showLink)&&((Be=a==null?void 0:a.meta)==null?void 0:Be.showLink)===!1?Object.keys(a.query).length>0?Qe(a.query,E.query)?Q:te:Qe(a.params,E.params)?Q:te:a.path===E.path?Q:te}const z=A(()=>E=>{var Q,te;return Kt((Q=E==null?void 0:E.meta)==null?void 0:Q.fixedTag)&&((te=E==null?void 0:E.meta)==null?void 0:te.fixedTag)===!0}),x=A(()=>(E,Q)=>{if(Q!==0)return _(E,!0,!1)}),L=A(()=>E=>_(E,"is-active","")),F=A(()=>E=>_(E,"schedule-active","")),B=A(()=>({transform:`translateX(${o.value}px)`,transition:d.value?"none":"transform 0.5s ease-in-out"})),X=A(()=>({left:n.value+"px",top:r.value+"px"})),W=()=>{u.value=!1};function M(E){if(E&&(l.value=E),e(s)==="smart"){if(ut(c.refs["schedule"+E][0],"schedule-active"))return;We(!0,"schedule-in",c.refs["schedule"+E][0]),We(!1,"schedule-out",c.refs["schedule"+E][0])}else{if(ut(c.refs["dynamic"+E][0],"is-active"))return;We(!0,"card-in",c.refs["dynamic"+E][0]),We(!1,"card-out",c.refs["dynamic"+E][0])}}function q(E){if(l.value=-1,e(s)==="smart"){if(ut(c.refs["schedule"+E][0],"schedule-active"))return;We(!1,"schedule-in",c.refs["schedule"+E][0]),We(!0,"schedule-out",c.refs["schedule"+E][0])}else{if(ut(c.refs["dynamic"+E][0],"is-active"))return;We(!1,"card-in",c.refs["dynamic"+E][0]),We(!0,"card-out",c.refs["dynamic"+E][0])}}function U(){p.hiddenSideBar?p.changeSetting({key:"hiddenSideBar",value:!1}):p.changeSetting({key:"hiddenSideBar",value:!0})}return qe(()=>{if(!s.value){const E=He().getItem(`${nt()}configure`);E.showModel="card",He().setItem(`${nt()}configure`,E)}}),{Close:ft,route:a,router:t,visible:u,showTags:v,instance:c,multiTags:w,showModel:s,tagsViews:g,buttonTop:r,buttonLeft:n,translateX:o,isFixedTag:z,pureSetting:p,activeIndex:l,getTabStyle:B,isScrolling:d,iconIsActive:x,linkIsActive:L,currentSelect:h,scheduleIsActive:F,getContextMenuStyle:X,$t:me,closeMenu:W,onMounted:qe,onMouseenter:M,onMouseleave:q,transformI18n:ze,onContentFullScreen:U}}const Wo={},Uo={class:"w-full h-full"};function Ko(a,t){return i(),y("svg",Uo,t[0]||(t[0]=[Sn('<defs><symbol id="geometry-left" viewBox="0 0 214 36"><path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path></symbol><symbol id="geometry-right" viewBox="0 0 214 36"><use xlink:href="#geometry-left"></use></symbol><clipPath><rect width="100%" height="100%" x="0"></rect></clipPath></defs><svg width="51%" height="100%"><use xlink:href="#geometry-left" width="214" height="36" fill="currentColor"></use></svg><g transform="scale(-1, 1)"><svg width="51%" height="100%" x="-100%" y="0"><use xlink:href="#geometry-right" width="214" height="36" fill="currentColor"></use></svg></g>',3)]))}const Yo=ce(Wo,[["render",Ko]]),Xo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Go(a,t){return i(),y("svg",Xo,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"},null,-1)]))}const jo=he({name:"ri-arrow-down-s-line",render:Go}),Qo={class:"arrow-left"},Zo=["onContextmenu","onMouseenter","onMouseleave","onClick"],Jo={class:"tag-title dark:text-text_color_primary! dark:hover:text-primary!"},el=["onClick"],tl={key:1,class:"chrome-tab"},nl={class:"chrome-tab__bg"},ol={class:"tag-title"},ll=["onClick"],al={class:"arrow-right"},sl=["onClick"],rl={class:"arrow-down"},il=J({__name:"index",setup(a){var j;const{Close:t,route:c,router:p,visible:r,showTags:n,instance:o,multiTags:u,tagsViews:l,buttonTop:h,buttonLeft:d,showModel:s,translateX:v,isFixedTag:w,pureSetting:g,activeIndex:_,getTabStyle:z,isScrolling:x,iconIsActive:L,linkIsActive:F,currentSelect:B,scheduleIsActive:X,getContextMenuStyle:W,closeMenu:M,onMounted:q,onMouseenter:U,onMouseleave:ae,transformI18n:re,onContentFullScreen:E}=hn(),Q=R(),te=R(),xe=R(),Be=R(),Me=R(!1),Ee=(j=bt())==null?void 0:j.path,Xe=[...Mn,...Ce().flatteningRoutes.filter(C=>{var $;return($=C==null?void 0:C.meta)==null?void 0:$.fixedTag})],Ie=()=>at(this,null,function*(){yield Ke();const C=u.value.findIndex($=>Ze(c.query)?Ze(c.params)?c.path===$.path:Qe(c.params,$.params):Qe(c.query,$.query));Ge(C)}),Ge=C=>at(this,null,function*(){var ne,pe;yield Ke();const $=10;if(!o.refs["dynamic"+C])return;const H=o.refs["dynamic"+C][0],Y=H==null?void 0:H.offsetLeft,ie=H==null?void 0:H.offsetWidth,N=xe.value?(ne=xe.value)==null?void 0:ne.offsetWidth:0,K=Q.value?(pe=Q.value)==null?void 0:pe.offsetWidth:0;N<=K?Me.value=!0:Me.value=!1,K<N||Y===0?v.value=0:Y<-v.value?v.value=-Y+$:Y>-v.value&&Y+ie<-v.value+N?v.value=Math.min(0,N-ie-Y-$):v.value=-(Y-(N-$-ie))}),Oe=C=>{var Y;const $=xe.value?(Y=xe.value)==null?void 0:Y.offsetWidth:0,H=Q.value?Q.value.offsetWidth:0;C>0?v.value=Math.min(0,v.value+C):$<H?v.value>=-(H-$)&&(v.value=Math.max(v.value+C,$-H)):v.value=0,x.value=!1},Fe=C=>{x.value=!0;const $=Math.abs(C.deltaX)+Math.abs(C.deltaY);let H=0;C.deltaX<0?H=$>0?$:100:H=$>0?-$:-100,et(H)},et=C=>{let H=Math.abs(C);const Y=()=>{const ie=Math.sign(C)*Math.min(20,H);Oe(ie),H-=Math.abs(ie),H>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function T(C){const $=u.value.some(Y=>Y.path===C);function H(Y,ie){$||Y.forEach(N=>{N.path===ie?Ve().handleTags("push",{path:ie,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&H(N.children,ie)})}H(p.options.routes,C)}function V(){const{fullPath:C,query:$}=e(c);p.replace({path:"/redirect"+C,query:$}),_t(c,"refresh")}function D(C,$,H){var K,ne,pe,lt;const Y=u.value.findIndex(be=>{if(be.query){if(be.path===C.path)return be.query===C.query}else if(be.params){if(be.path===C.path)return be.params===C.params}else return be.path===C.path}),ie=(be,ge,ct)=>{ct?Ve().handleTags("equal",[Xe,C].flat()):Ve().handleTags("splice","",{startIndex:be,length:ge}),Ie()};H==="other"?ie(1,1,!0):H==="left"?ie(Xe.length,Y-1,!0):H==="right"?ie(Y+1,u.value.length):ie(Y,1);const N=Ve().handleTags("slice");if($===c.path){if(H==="left")return;(K=N[0])!=null&&K.query?p.push({name:N[0].name,query:N[0].query}):(ne=N[0])!=null&&ne.params?p.push({name:N[0].name,params:N[0].params}):p.push({path:N[0].path})}else{if(!u.value.length||u.value.some(be=>be.path===c.path))return;(pe=N[0])!=null&&pe.query?p.push({name:N[0].name,query:N[0].query}):(lt=N[0])!=null&&lt.params?p.push({name:N[0].name,params:N[0].params}):p.push({path:N[0].path})}}function ee(C,$){D(C,C.path,$),_t(c)}function I(C,$,H){if($&&$.disabled)return;let Y;switch(H?Y={path:H.path,meta:H.meta,name:H.name,query:H==null?void 0:H.query,params:H==null?void 0:H.params}:Y={path:c.path,meta:c.meta},C){case 0:V();break;case 1:ee(Y);break;case 2:ee(Y,"left");break;case 3:ee(Y,"right");break;case 4:ee(Y,"other");break;case 5:Ve().handleTags("splice","",{startIndex:Xe.length,length:u.value.length}),p.push(Ee),_t(c);break;case 6:E(),setTimeout(()=>{g.hiddenSideBar?(l[6].icon=In,l[6].text=me("buttons.pureContentExitFullScreen")):(l[6].icon=ln,l[6].text=me("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{ve(c.fullPath,c.query)})}function k(C){const{key:$,item:H}=C;I($,H)}function de(C,$){M(),I(C,$,B.value)}function fe(C){Array.of(1,2,3,4,5).forEach($=>{l[$].show=C})}function Ne(C,$=!1){Array.of(1,2,3,4,5).forEach(H=>{l[H].disabled=C}),$&&(l[2].show=!1,l[2].disabled=!0)}function ve(C,$={},H=!1){var ne,pe,lt,be;const Y=u.value,ie=u.value.length;let N=-1;Ze($)?N=Y.findIndex(ge=>ge.path===C):N=Y.findIndex(ge=>Qe(ge.query,$));function K(){var ge,ct;(ct=(ge=Y[N])==null?void 0:ge.meta)!=null&&ct.fixedTag&&Array.of(1,2,3,4,5).forEach(mn=>{l[mn].disabled=!0})}fe(!0),H&&(l[0].show=!0),N===1&&ie!==2?(l[2].show=!1,Array.of(1,3,4,5).forEach(ge=>{l[ge].disabled=!1}),l[2].disabled=!0,K()):N===1&&ie===2?(Ne(!1),Array.of(2,3,4).forEach(ge=>{l[ge].show=!1,l[ge].disabled=!0}),K()):ie-1===N&&N!==0?(l[3].show=!1,Array.of(1,2,4,5).forEach(ge=>{l[ge].disabled=!1}),l[3].disabled=!0,(pe=(ne=Y[N-1])==null?void 0:ne.meta)!=null&&pe.fixedTag&&(l[2].show=!1,l[2].disabled=!0),K()):N===0||C===`/redirect${Ee}`?Ne(!0):(Ne(!1,(be=(lt=Y[N-1])==null?void 0:lt.meta)==null?void 0:be.fixedTag),K())}function ot(C,$){var ne;M(),C.path===Ee||(ne=C==null?void 0:C.meta)!=null&&ne.fixedTag?(fe(!1),l[0].show=!0):c.path!==C.path&&c.name!==C.name?(l[0].show=!1,ve(C.path,C.query)):u.value.length===2&&c.path!==C.path?(fe(!0),l[4].show=!1):c.path===C.path&&ve(C.path,C.query,!0),B.value=C;const H=140,Y=e(te).getBoundingClientRect().left,N=e(te).offsetWidth-H,K=$.clientX-Y+5;K>N?d.value=N:d.value=K,Ot().hiddenSideBar?h.value=$.clientY:h.value=$.clientY-40,Ke(()=>{r.value=!0})}function mt(C){const{name:$,path:H}=C;$?C.query?p.push({name:$,query:C.query}):C.params?p.push({name:$,params:C.params}):p.push({name:$}):p.push({path:H}),_e.emit("tagOnClick",C)}return an(Be,M,{detectIframe:!0}),Le(c,()=>{_.value=-1,Ie()}),q(()=>{o&&(ve(c.fullPath),_e.on("tagViewsChange",C=>{e(n)!==C&&(n.value=C)}),_e.on("tagViewsShowModel",C=>{s.value=C}),_e.on("changLayoutRoute",C=>{T(C),setTimeout(()=>{ve(C)})}),pt(xe,Ie),sn().then(()=>Ie()))}),Lt(()=>{_e.off("tagViewsChange"),_e.off("tagViewsShowModel"),_e.off("changLayoutRoute")}),(C,$)=>{const H=S("IconifyIconOffline"),Y=S("el-dropdown-item"),ie=S("el-dropdown-menu"),N=S("el-dropdown");return e(n)?G("",!0):(i(),y("div",{key:0,ref_key:"containerDom",ref:te,class:"tags-view"},[oe(m("span",Qo,[f(H,{icon:e(qn),onClick:$[0]||($[0]=K=>Oe(200))},null,8,["icon"])],512),[[ye,Me.value]]),m("div",{ref_key:"scrollbarDom",ref:xe,class:Z(["scroll-container",e(s)==="chrome"&&"chrome-scroll-container"]),onWheel:Te(Fe,["prevent"])},[m("div",{ref_key:"tabDom",ref:Q,class:"tab select-none",style:le(e(z))},[(i(!0),y(ue,null,we(e(u),(K,ne)=>(i(),y("div",{ref_for:!0,ref:"dynamic"+ne,key:ne,class:Z(["scroll-item is-closable",e(F)(K),e(s)==="chrome"&&"chrome-item",e(w)(K)&&"fixed-tag"]),onContextmenu:Te(pe=>ot(K,pe),["prevent"]),onMouseenter:Te(pe=>e(U)(ne),["prevent"]),onMouseleave:Te(pe=>e(ae)(ne),["prevent"]),onClick:pe=>mt(K)},[e(s)!=="chrome"?(i(),y(ue,{key:0},[m("span",Jo,P(e(re)(K.meta.title)),1),!e(w)(K)&&(e(L)(K,ne)||ne===e(_)&&ne!==0)?(i(),y("span",{key:0,class:"el-icon-close",onClick:Te(pe=>ee(K),["stop"])},[f(H,{icon:e(t)},null,8,["icon"])],8,el)):G("",!0),e(s)!=="card"?(i(),y("span",{key:1,ref_for:!0,ref:"schedule"+ne,class:Z([e(X)(K)])},null,2)):G("",!0)],64)):(i(),y("div",tl,[m("div",nl,[f(Yo)]),m("span",ol,P(e(re)(K.meta.title)),1),!e(w)(K)&&ne!==0?(i(),y("span",{key:0,class:"chrome-close-btn",onClick:Te(pe=>ee(K),["stop"])},[f(H,{icon:e(t)},null,8,["icon"])],8,ll)):G("",!0),$[2]||($[2]=m("span",{class:"chrome-tab-divider"},null,-1))]))],42,Zo))),128))],4)],34),oe(m("span",al,[f(H,{icon:e(Pn),onClick:$[1]||($[1]=K=>Oe(-200))},null,8,["icon"])],512),[[ye,Me.value]]),f(At,{name:"el-zoom-in-top"},{default:b(()=>[oe((i(),y("ul",{ref_key:"contextmenuRef",ref:Be,key:Math.random(),style:le(e(W)),class:"contextmenu"},[(i(!0),y(ue,null,we(e(l).slice(0,6),(K,ne)=>(i(),y("div",{key:ne,style:{display:"flex","align-items":"center"}},[K.show?(i(),y("li",{key:0,onClick:pe=>de(ne,K)},[f(H,{icon:K.icon},null,8,["icon"]),se(" "+P(e(re)(K.text)),1)],8,sl)):G("",!0)]))),128))],4)),[[ye,e(r)]])]),_:1}),f(N,{trigger:"click",placement:"bottom-end",onCommand:k},{dropdown:b(()=>[f(ie,null,{default:b(()=>[(i(!0),y(ue,null,we(e(l),(K,ne)=>(i(),O(Y,{key:ne,command:{key:ne,item:K},divided:K.divided,disabled:K.disabled},{default:b(()=>[f(H,{icon:K.icon},null,8,["icon"]),se(" "+P(e(re)(K.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:b(()=>[m("span",rl,[f(H,{icon:e(jo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),cl=ce(il,[["__scopeId","data-v-3fd67f18"]]);function ul(a=!1){const t=R(a);function c(o){t.value=o}function p(){c(!0)}function r(){c(!1)}function n(){c(!t.value)}return{bool:t,setBool:c,setTrue:p,setFalse:r,toggle:n}}const dl={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"};function hl(a,t){return i(),y("svg",dl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1)]))}const fn={render:hl},fl=["onMouseenter"],pl={class:"result-item-title"},ml=J({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(a,{expose:t,emit:c}){const p=R(),r=R(),n=c,o=Tt(),u=a,l=A(()=>g=>({background:(g==null?void 0:g.path)===h.value?St().epThemeColor:"",color:g.path===h.value?"#fff":"",fontSize:g.path===h.value?"16px":"14px"})),h=A({get(){return u.value},set(g){n("update:value",g)}});function d(g){return at(this,null,function*(){h.value=g.path})}function s(){n("enter")}function v(){r.value=window.innerHeight-window.innerHeight/10-140}pt(p,v);function w(g){var L;const _=(L=o==null?void 0:o.proxy)==null?void 0:L.$refs[`resultItemRef${g}`];if(!_)return 0;const x=_[0].offsetTop+128;return x>r.value?x-r.value:0}return qe(()=>{v()}),t({handleScroll:w}),(g,_)=>(i(),y("div",{ref_key:"resultRef",ref:p,class:"result"},[(i(!0),y(ue,null,we(g.options,(z,x)=>{var L,F;return i(),y("div",{key:z.path,ref_for:!0,ref:"resultItemRef"+x,class:"result-item dark:bg-[#1d1d1d]",style:le(l.value(z)),onClick:s,onMouseenter:B=>d(z)},[(i(),O($e(e(Ae)((L=z.meta)==null?void 0:L.icon)))),m("span",pl,P(e(ze)((F=z.meta)==null?void 0:F.title)),1),f(e(fn))],44,fl)}),128))],512))}}),vl=ce(ml,[["__scopeId","data-v-274aad60"]]),gl={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--mdi",viewBox:"0 0 24 24"};function _l(a,t){return i(),y("svg",gl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1)]))}const yl={render:_l},wl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function xl(a,t){return i(),y("svg",wl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414z"},null,-1)]))}const bl=he({name:"ri-arrow-up-line",render:xl}),Cl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function kl(a,t){return i(),y("svg",Cl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2z"},null,-1)]))}const Sl=he({name:"ri-arrow-down-line",render:kl}),Ml={class:"search-footer text-[#333] dark:text-white"},Il={class:"search-footer-item"},Tl={class:"search-footer-item"},$l={class:"search-footer-item"},zl={key:0,class:"search-footer-total"},Ll=J({__name:"SearchFooter",props:{total:{default:0}},setup(a){const{t}=Re(),{device:c}=Se();return(p,r)=>{const n=S("IconifyIconOffline");return i(),y("div",Ml,[m("span",Il,[f(e(fn),{class:"icon"}),se(" "+P(e(t)("buttons.pureConfirm")),1)]),m("span",Tl,[f(n,{icon:e(bl),class:"icon"},null,8,["icon"]),f(n,{icon:e(Sl),class:"icon"},null,8,["icon"]),se(" "+P(e(t)("buttons.pureSwitch")),1)]),m("span",$l,[f(e(yl),{class:"icon"}),se(" "+P(e(t)("buttons.pureClose")),1)]),e(c)!=="mobile"&&p.total>0?(i(),y("p",zl,P(`${e(t)("search.pureTotal")} ${p.total}`),1)):G("",!0)])}}}),Al=ce(Ll,[["__scopeId","data-v-b0b1b20e"]]),Vl={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Hl(a,t){return i(),y("svg",Vl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m512 747.84l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08l184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256l99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96l221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1)]))}const Rl=he({name:"ep-star",render:Hl}),Bl={class:"history-item-title"},El=J({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(a,{emit:t}){const c=t;function p(n){c("collectItem",n)}function r(n){c("deleteItem",n)}return(n,o)=>{var l,h;const u=S("IconifyIconOffline");return i(),y(ue,null,[(i(),O($e(e(Ae)((l=n.item.meta)==null?void 0:l.icon)))),m("span",Bl,P(e(ze)((h=n.item.meta)==null?void 0:h.title)),1),oe(f(u,{icon:e(Rl),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:o[0]||(o[0]=Te(d=>p(n.item),["stop"]))},null,8,["icon"]),[[ye,n.item.type==="history"]]),f(u,{icon:e(ft),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:o[1]||(o[1]=Te(d=>r(n.item),["stop"]))},null,8,["icon"])],64)}}}),jt=ce(El,[["__scopeId","data-v-0fffa7d8"]]),Ol=["onMouseenter"],Dl={class:"collect-container"},Pl=["onMouseenter"],ql=J({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(a,{expose:t,emit:c}){const p=R(),r=R(),n=R(!1),{t:o}=Re(),u=c,l=Tt(),h=a,d=A(()=>M=>({background:(M==null?void 0:M.path)===v.value?St().epThemeColor:"",color:M.path===v.value?"#fff":"",fontSize:M.path===v.value?"16px":"14px"})),s=A(()=>({color:St().epThemeColor,fontWeight:500})),v=A({get(){return h.value},set(M){u("update:value",M)}});Le(()=>h.value,M=>{M&&n.value&&sn(100).then(()=>n.value=!1)});const w=A(()=>h.options.filter(M=>M.type==="history")),g=A(()=>h.options.filter(M=>M.type==="collect"));function _(M){u("collect",M)}function z(M){n.value=!0,u("delete",M)}function x(M){return at(this,null,function*(){n.value||(v.value=M.path)})}function L(){u("enter")}function F(){r.value=window.innerHeight-window.innerHeight/10-140}pt(p,F);function B(M){var re;const q=(re=l==null?void 0:l.proxy)==null?void 0:re.$refs[`historyItemRef${M}`];if(!q)return 0;const ae=(Tn(q)?q[0]:q).offsetTop+128;return ae>r.value?ae-r.value:0}const X=M=>{u("drag",{oldIndex:M.oldIndex,newIndex:M.newIndex})};let W=null;return Le(g,M=>{M.length>1&&Ke(()=>{const q=document.querySelector(".collect-container");!q||W||(W=Yn.create(q,{animation:160,onStart:U=>{U.item.style.cursor="move"},onEnd:U=>{U.item.style.cursor="pointer"},onUpdate:X}),F())})},{deep:!0,immediate:!0}),t({handleScroll:B}),(M,q)=>(i(),y("div",{ref_key:"historyRef",ref:p,class:"history"},[w.value.length?(i(),y(ue,{key:0},[m("div",{style:le(s.value)},P(e(o)("search.pureHistory")),5),(i(!0),y(ue,null,we(w.value,(U,ae)=>(i(),y("div",{key:U.path,ref_for:!0,ref:"historyItemRef"+ae,class:"history-item dark:bg-[#1d1d1d]",style:le(d.value(U)),onClick:L,onMouseenter:re=>x(U)},[f(jt,{item:U,onDeleteItem:z,onCollectItem:_},null,8,["item"])],44,Ol))),128))],64)):G("",!0),g.value.length?(i(),y(ue,{key:1},[m("div",{style:le(s.value)},P(`${e(o)("search.pureCollect")}${g.value.length>1?e(o)("search.pureDragSort"):""}`),5),m("div",Dl,[(i(!0),y(ue,null,we(g.value,(U,ae)=>(i(),y("div",{key:U.path,ref_for:!0,ref:"historyItemRef"+(ae+w.value.length),class:"history-item dark:bg-[#1d1d1d]",style:le(d.value(U)),onClick:L,onMouseenter:re=>x(U)},[f(jt,{item:U,onDeleteItem:z},null,8,["item"])],44,Pl))),128))])],64)):G("",!0)],512))}}),Fl=ce(ql,[["__scopeId","data-v-f7a9d807"]]),Nl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Wl(a,t){return i(),y("svg",Nl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"},null,-1)]))}const Ul=he({name:"ri-search-line",render:Wl}),Kl={class:"search-content"},Qt="history",Yl="collect",De="menu-search-history",Ue="menu-search-collect",Xl=J({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(a,{emit:t}){const{device:c}=Se(),p=t,r=a,n=$t(),{t:o,locale:u}=Re(),l=R(""),h=R(),d=R(),s=R(),v=R(""),w=R(""),g=Ct([]),_=Ct([]),z=zn(re,300),x=je().MenuSearchHistory,L=R(null),F=A(()=>$n(Ce().wholeMenus)),B=A({get(){return r.value},set(T){p("update:value",T)}});Le(()=>r.value,T=>{T&&Fe()});const X=A(()=>l.value&&g.value.length>0),W=A(()=>!l.value&&_.value.length>0),M=A(()=>!l.value&&_.value.length===0||l.value&&g.value.length===0);function q(T){return He().getItem(T)||[]}function U(T,V){He().setItem(T,V)}function ae(T){const V=[];function D(ee){ee.forEach(I=>{V.push(I),I.children&&D(I.children)})}return D(T),V}function re(){var V;const T=ae(F.value);g.value=T.filter(D=>{var ee,I;return l.value?ze((ee=D.meta)==null?void 0:ee.title).toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim())||u.value==="zh"&&!Ze(Kn(ze((I=D.meta)==null?void 0:I.title).toLocaleLowerCase(),l.value.toLocaleLowerCase().trim())):!1}),v.value=((V=g.value)==null?void 0:V.length)>0?g.value[0].path:""}function E(){B.value=!1,setTimeout(()=>{g.value=[],w.value="",l.value=""},200)}function Q(T){const D=(g.value.length?h.value:d.value).handleScroll(T);s.value.setScrollTop(D)}function te(){const T=g.value.length>0,V=T?g.value:_.value,D=T?v.value:w.value;return{options:V,currentPath:D,isResultOptions:T}}function xe(T,V){V?v.value=g.value[T].path:w.value=_.value[T].path,Q(T)}function Be(){const{options:T,currentPath:V,isResultOptions:D}=te();if(T.length===0)return;const I=(T.findIndex(k=>k.path===V)-1+T.length)%T.length;xe(I,D)}function Me(){const{options:T,currentPath:V,isResultOptions:D}=te();if(T.length===0)return;const I=(T.findIndex(k=>k.path===V)+1)%T.length;xe(I,D)}function Ee(){const{options:T,currentPath:V,isResultOptions:D}=te();if(T.length===0||V==="")return;const ee=T.findIndex(I=>I.path===V);ee!==-1&&(D?Ge():Oe(),n.push(T[ee].path),E())}function Xe(T){const V=T.type===Qt?De:Ue;let D=q(V);D=D.filter(ee=>ee.path!==T.path),U(V,D),Fe()}function Ie(T){let V=q(De),D=q(Ue);V=V.filter(ee=>ee.path!==T.path),U(De,V),D.some(ee=>ee.path===T.path)||(D.unshift(gt(vt({},T),{type:Yl})),U(Ue,D)),Fe()}function Ge(){const{path:T,meta:V}=g.value.find(de=>de.path===v.value),D=q(De),I=q(Ue).some(de=>de.path===T),k=D.findIndex(de=>de.path===T);I||(k!==-1&&D.splice(k,1),D.length>=x&&D.pop(),D.unshift({path:T,meta:V,type:Qt}),He().setItem(De,D))}function Oe(){let T=q(De);const V=T.findIndex(D=>D.path===w.value);if(V!==-1){const[D]=T.splice(V,1);T.unshift(D),U(De,T)}}function Fe(){var D;const T=q(De),V=q(Ue);_.value=[...T,...V],w.value=(D=_.value[0])==null?void 0:D.path}function et(T){const V=q(Ue),[D]=V.splice(T.oldIndex,1);V.splice(T.newIndex,0,D),He().setItem(Ue,V),_.value=[...q(De),...q(Ue)],w.value=D.path}return yt("Enter",Ee),yt("ArrowUp",Be),yt("ArrowDown",Me),(T,V)=>{const D=S("IconifyIconOffline"),ee=S("el-input"),I=S("el-empty"),k=S("el-scrollbar"),de=S("el-dialog");return i(),O(de,{modelValue:B.value,"onUpdate:modelValue":V[3]||(V[3]=fe=>B.value=fe),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(c)==="mobile"?"80vw":"40vw","before-close":E,style:{borderRadius:"6px"},"append-to-body":"",onOpened:V[4]||(V[4]=fe=>L.value.focus()),onClosed:V[5]||(V[5]=fe=>L.value.blur())},{footer:b(()=>[f(Al,{total:g.value.length},null,8,["total"])]),default:b(()=>[f(ee,{ref_key:"inputRef",ref:L,modelValue:l.value,"onUpdate:modelValue":V[0]||(V[0]=fe=>l.value=fe),size:"large",clearable:"",placeholder:e(o)("search.purePlaceholder"),onInput:e(z)},{prefix:b(()=>[f(D,{icon:e(Ul),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),m("div",Kl,[f(k,{ref_key:"scrollbarRef",ref:s,"max-height":"calc(90vh - 140px)"},{default:b(()=>[M.value?(i(),O(I,{key:0,description:e(o)("search.pureEmpty")},null,8,["description"])):G("",!0),W.value?(i(),O(Fl,{key:1,ref_key:"historyRef",ref:d,value:w.value,"onUpdate:value":V[1]||(V[1]=fe=>w.value=fe),options:_.value,onClick:Ee,onDelete:Xe,onCollect:Ie,onDrag:et},null,8,["value","options"])):G("",!0),X.value?(i(),O(vl,{key:2,ref_key:"resultRef",ref:h,value:v.value,"onUpdate:value":V[2]||(V[2]=fe=>v.value=fe),options:g.value,onClick:Ee},null,8,["value","options"])):G("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Gl=ce(Xl,[["__scopeId","data-v-a7da6120"]]),Dt=J({__name:"index",setup(a){const{bool:t,toggle:c}=ul();function p(){c()}return(r,n)=>{const o=S("IconifyIconOffline");return i(),y("div",null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:p},[f(o,{icon:"ri/search-line"})]),f(Gl,{value:e(t),"onUpdate:value":n[0]||(n[0]=u=>Ln(t)?t.value=u:null)},null,8,["value"])])}}}),Zt=[{key:"1",name:me("status.pureNotify"),list:[],emptyText:me("status.pureNoNotify")},{key:"2",name:me("status.pureMessage"),list:[{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile1.svg",title:"小铭 评论了你",description:"诚在于心,信在于行,诚信在于心行合一。",datetime:"今天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile2.svg",title:"李白 回复了你",description:"长风破浪会有时,直挂云帆济沧海。",datetime:"昨天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile5.svg",title:"标题",description:"请将鼠标移动到此处以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"时间",type:"2"}],emptyText:me("status.pureNoMessage")},{key:"3",name:me("status.pureTodo"),list:[{avatar:"",title:"第三方紧急代码变更",description:"小林提交于 2024-05-10需在 2024-05-11 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"版本发布",description:"指派小铭于 2024-06-18 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"新功能开发",description:"开发多租户管理",datetime:"",extra:"进行中",type:"3"},{avatar:"",title:"任务名称",description:"任务需要在 2030-10-30 10:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"}],emptyText:me("status.pureNoTodo")}],jl={class:"notice-container border-0 border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Ql={class:"notice-container-text"},Zl={class:"notice-text-title text-[#000000d9] dark:text-white"},Jl={class:"notice-text-datetime text-[#00000073] dark:text-white"},ea=J({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(a){const t=R(null),c=R(!1),p=R(null),r=R(!1),{tooltipEffect:n}=Se(),o=rn();function u(){Ke(()=>{var h,d;((h=t.value)==null?void 0:h.scrollWidth)>((d=t.value)==null?void 0:d.clientWidth)?c.value=!0:c.value=!1})}function l(h,d){const s=document.createElement("span");s.innerText=d,s.className="getDescriptionWidth",document.querySelector("body").appendChild(s);const v=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const w=h.target.offsetWidth;v>2*w?r.value=!0:r.value=!1}return(h,d)=>{var g,_;const s=S("el-avatar"),v=S("el-tooltip"),w=S("el-tag");return i(),y("div",jl,[a.noticeItem.avatar?(i(),O(s,{key:0,size:30,src:a.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):G("",!0),m("div",Ql,[m("div",Zl,[f(v,{"popper-class":"notice-title-popper",effect:e(n),disabled:!c.value,content:a.noticeItem.title,placement:"top-start",enterable:!e(o)},{default:b(()=>[m("div",{ref_key:"titleRef",ref:t,class:"notice-title-content",onMouseover:u},P(a.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(g=a.noticeItem)!=null&&g.extra?(i(),O(w,{key:0,type:(_=a.noticeItem)==null?void 0:_.status,size:"small",class:"notice-title-extra"},{default:b(()=>{var z;return[se(P((z=a.noticeItem)==null?void 0:z.extra),1)]}),_:1},8,["type"])):G("",!0)]),f(v,{"popper-class":"notice-title-popper",effect:e(n),disabled:!r.value,content:a.noticeItem.description,placement:"top-start"},{default:b(()=>[m("div",{ref_key:"descriptionRef",ref:p,class:"notice-text-description",onMouseover:d[0]||(d[0]=z=>l(z,a.noticeItem.description))},P(a.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",Jl,P(a.noticeItem.datetime),1)])])}}}),ta=ce(ea,[["__scopeId","data-v-dd3c145c"]]),na={key:0},oa=J({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(a){return(t,c)=>{const p=S("el-empty");return a.list.length?(i(),y("div",na,[(i(!0),y(ue,null,we(a.list,(r,n)=>(i(),O(ta,{key:n,noticeItem:r},null,8,["noticeItem"]))),128))])):(i(),O(p,{key:1,description:e(ze)(a.emptyText)},null,8,["description"]))}}}),la={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function aa(a,t){return i(),y("svg",la,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"},null,-1),m("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"},null,-1),m("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"},null,-1)]))}const sa=he({name:"ep-bell",render:aa}),ra={class:"header-notice-icon"},ia={key:1},ca={class:"noticeList-container"},ua=J({__name:"index",setup(a){var o;const{t}=Re(),c=R(0),p=R(Zt),r=R((o=Zt[0])==null?void 0:o.key);p.value.map(u=>c.value+=u.list.length);const n=A(()=>u=>t(u.name)+(u.list.length>0?`(${u.list.length})`:""));return(u,l)=>{const h=S("IconifyIconOffline"),d=S("el-badge"),s=S("el-empty"),v=S("el-scrollbar"),w=S("el-tab-pane"),g=S("el-tabs"),_=S("el-dropdown-menu"),z=S("el-dropdown");return i(),O(z,{trigger:"click",placement:"bottom-end"},{dropdown:b(()=>[f(_,null,{default:b(()=>[f(g,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=x=>r.value=x),stretch:!0,class:"dropdown-tabs",style:le({width:p.value.length===0?"200px":"330px"})},{default:b(()=>[p.value.length===0?(i(),O(s,{key:0,description:e(t)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(i(),y("span",ia,[(i(!0),y(ue,null,we(p.value,x=>(i(),O(w,{key:x.key,label:n.value(x),name:`${x.key}`},{default:b(()=>[f(v,{"max-height":"330px"},{default:b(()=>[m("div",ca,[f(oa,{list:x.list,emptyText:x.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:b(()=>[m("span",{class:Z(["dropdown-badge","navbar-bg-hover","select-none",Number(c.value)!==0&&"mr-[10px]"])},[f(d,{value:Number(c.value)===0?"":c.value,max:99},{default:b(()=>[m("span",ra,[f(h,{icon:e(sa)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),Pt=ce(ua,[["__scopeId","data-v-cc85f925"]]),da={key:0,class:"flex justify-center items-center"},Mt=J({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(a){return(t,c)=>a.extraIcon?(i(),y("div",da,[(i(),O($e(e(Ae)(ke(a.extraIcon))),{class:"w-[30px] h-[30px]"}))])):G("",!0)}}),qt=J({__name:"SidebarFullScreen",setup(a){const t=R(),{toggle:c,isFullscreen:p,Fullscreen:r,ExitFullscreen:n}=Se();return p.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Le(p,o=>{t.value=o?n:r},{immediate:!0}),(o,u)=>{const l=S("IconifyIconOffline");return i(),y("span",{class:"fullscreen-icon navbar-bg-hover",onClick:u[0]||(u[0]=(...h)=>e(c)&&e(c)(...h))},[f(l,{icon:t.value},null,8,["icon"])])}}}),ha={viewBox:"0 0 24 24",width:"1em",height:"1em"};function fa(a,t){return i(),y("svg",ha,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m2.595 7.811a3.5 3.5 0 0 1 0-1.622l-.992-.573l1-1.732l.992.573A3.5 3.5 0 0 1 17 14.645V13.5h2v1.145c.532.158 1.012.44 1.405.812l.992-.573l1 1.732l-.991.573a3.5 3.5 0 0 1 0 1.622l.991.573l-1 1.732l-.992-.573a3.5 3.5 0 0 1-1.405.812V22.5h-2v-1.145a3.5 3.5 0 0 1-1.405-.812l-.992.573l-1-1.732zM18 19.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"},null,-1)]))}const Ft=he({name:"ri-user-settings-line",render:fa}),pa={viewBox:"0 0 24 24",width:"1em",height:"1em"};function ma(a,t){return i(),y("svg",pa,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.99 9.99 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.99 9.99 0 0 1 12 22m7-6v-3h-8v-2h8V8l5 4z"},null,-1)]))}const Nt=he({name:"ri-logout-circle-r-line",render:ma}),va={key:0,class:"horizontal-header"},ga={class:"select-none"},_a={class:"horizontal-header-right"},ya={class:"check-zh"},wa={class:"check-en"},xa={class:"el-dropdown-link navbar-bg-hover select-none"},ba=["src"],Ca={key:0,class:"dark:text-white"},ka=["title"],Sa=J({__name:"NavMix",setup(a){const t=R(),c=R(null),{t:p,route:r,locale:n,translationCh:o,translationEn:u}=Bt(t),{device:l,logout:h,onPanel:d,resolvePath:s,username:v,userAvatar:w,getDivStyle:g,avatarsStyle:_,toAccountSettings:z,getDropdownItemStyle:x,getDropdownItemClass:L}=Se();function F(B){var M,q,U;const X=Ce().wholeMenus,W=Vt(B,X)[0];c.value=Ze((M=r.meta)==null?void 0:M.activePath)?(U=(q=dt(W,X))==null?void 0:q.children[0])==null?void 0:U.path:r.meta.activePath}return qe(()=>{F(r.path)}),Ke(()=>{var B;(B=t.value)==null||B.handleResize()}),Le(()=>[r.path,Ce().wholeMenus],()=>{F(r.path)}),(B,X)=>{const W=S("el-menu-item"),M=S("el-menu"),q=S("IconifyIconOffline"),U=S("el-dropdown-item"),ae=S("el-dropdown-menu"),re=S("el-dropdown"),E=Ye("loading");return e(l)!=="mobile"?oe((i(),y("div",va,[f(M,{ref_key:"menuRef",ref:t,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":c.value},{default:b(()=>[(i(!0),y(ue,null,we(e(Ce)().wholeMenus,Q=>(i(),O(W,{key:Q.path,index:e(s)(Q)||Q.redirect},{title:b(()=>[ke(Q.meta.icon)?(i(),y("div",{key:0,class:Z(["sub-menu-icon",Q.meta.icon])},[(i(),O($e(e(Ae)(Q.meta&&ke(Q.meta.icon)))))],2)):G("",!0),m("div",{style:le(e(g))},[m("span",ga,P(e(ze)(Q.meta.title)),1),f(Mt,{extraIcon:Q.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",_a,[f(Dt,{id:"header-search"}),f(re,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[f(ae,{class:"translation"},{default:b(()=>[f(U,{style:le(e(x)(e(n),"zh")),class:Z(["dark:text-white!",e(L)(e(n),"zh")]),onClick:e(o)},{default:b(()=>[oe(m("span",ya,[f(q,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="zh"]]),X[1]||(X[1]=se(" 简体中文 "))]),_:1},8,["style","class","onClick"]),f(U,{style:le(e(x)(e(n),"en")),class:Z(["dark:text-white!",e(L)(e(n),"en")]),onClick:e(u)},{default:b(()=>[oe(m("span",wa,[f(q,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="en"]]),X[2]||(X[2]=se(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[f(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"})]),_:1}),f(qt,{id:"full-screen"}),f(Pt,{id:"header-notice"}),f(re,{trigger:"click"},{dropdown:b(()=>[f(U,{onClick:e(z)},{default:b(()=>[f(q,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+P(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),f(ae,{class:"logout"},{default:b(()=>[f(U,{onClick:e(h)},{default:b(()=>[f(q,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+P(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[m("span",xa,[m("img",{src:e(w),style:le(e(_))},null,12,ba),e(v)?(i(),y("p",Ca,P(e(v)),1)):G("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:X[0]||(X[0]=(...Q)=>e(d)&&e(d)(...Q))},[f(q,{icon:e(Rt)},null,8,["icon"])],8,ka)])])),[[E,e(Ce)().wholeMenus.length===0]]):G("",!0)}}}),Ma=ce(Sa,[["__scopeId","data-v-57ee6161"]]),Ia=["onClick"],Ta=J({__name:"SidebarBreadCrumb",setup(a){const t=zt(),c=R([]),p=$t(),r=p.options.routes,n=Ve().multiTags,o=()=>{let l;Object.keys(t.query).length>0?n.forEach(s=>{Qe(t.query,s==null?void 0:s.query)&&(l=ke(s))}):Object.keys(t.params).length>0?n.forEach(s=>{Qe(t.params,s==null?void 0:s.params)&&(l=ke(s))}):l=dt(p.currentRoute.value.path,r);const h=Vt(p.currentRoute.value.name,r,"name"),d=[];h.forEach(s=>{s!=="/"&&d.push(dt(s,r))}),d.push(l),d.forEach((s,v)=>{l!=null&&l.query||l!=null&&l.params||s!=null&&s.children&&s.children.forEach(w=>{var g,_;((g=w==null?void 0:w.meta)==null?void 0:g.title)===((_=s==null?void 0:s.meta)==null?void 0:_.title)&&d.splice(v,1)})}),c.value=d.filter(s=>(s==null?void 0:s.meta)&&(s==null?void 0:s.meta.title)!==!1)},u=l=>{const{redirect:h,name:d,path:s}=l;h?p.push(h):d?l.query?p.push({name:d,query:l.query}):l.params?p.push({name:d,params:l.params}):p.push({name:d}):p.push({path:s})};return qe(()=>{o()}),Le(()=>t.path,()=>{o()},{deep:!0}),(l,h)=>{const d=S("el-breadcrumb-item"),s=S("el-breadcrumb");return i(),O(s,{class:"leading-[50px]! select-none",separator:"/"},{default:b(()=>[f(An,{name:"breadcrumb"},{default:b(()=>[(i(!0),y(ue,null,we(c.value,v=>(i(),O(d,{key:v.path,class:"inline! items-stretch!"},{default:b(()=>[m("a",{onClick:Te(w=>u(v),["prevent"])},P(e(ze)(v.meta.title)),9,Ia)]),_:2},1024))),128))]),_:1})]),_:1})}}}),$a={class:"navbar bg-[#fff] shadow-xs shadow-[rgba(0,21,41,0.08)]"},za={key:3,class:"vertical-header-right"},La={class:"check-en"},Aa={class:"el-dropdown-link navbar-bg-hover select-none"},Va=["src"],Ha={key:0,class:"dark:text-white"},Ra=["title"],Ba=J({__name:"index",setup(a){const{layout:t,device:c,logout:p,onPanel:r,pureApp:n,username:o,userAvatar:u,avatarsStyle:l,toggleSideBar:h,toAccountSettings:d,getDropdownItemStyle:s,getDropdownItemClass:v}=Se(),{t:w,locale:g,translationCh:_,translationEn:z}=Bt();return(x,L)=>{const F=S("IconifyIconOffline"),B=S("el-dropdown-item"),X=S("el-dropdown-menu"),W=S("el-dropdown");return i(),y("div",$a,[e(c)==="mobile"?(i(),O(Fn,{key:0,class:"hamburger-container","is-active":e(n).sidebar.opened,onToggleClick:e(h)},null,8,["is-active","onToggleClick"])):G("",!0),e(t)!=="mix"&&e(c)!=="mobile"?(i(),O(Ta,{key:1,class:"breadcrumb-container"})):G("",!0),e(t)==="mix"?(i(),O(Ma,{key:2})):G("",!0),e(t)==="vertical"?(i(),y("div",za,[f(Dt,{id:"header-search"}),f(W,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[f(X,{class:"translation"},{default:b(()=>[f(B,{style:le(e(s)(e(g),"zh")),class:Z(["dark:text-white!",e(v)(e(g),"zh")]),onClick:e(_)},{default:b(()=>[oe(f(F,{class:"check-zh",icon:e(Je)},null,8,["icon"]),[[ye,e(g)==="zh"]]),L[1]||(L[1]=se(" 简体中文 "))]),_:1},8,["style","class","onClick"]),f(B,{style:le(e(s)(e(g),"en")),class:Z(["dark:text-white!",e(v)(e(g),"en")]),onClick:e(z)},{default:b(()=>[oe(m("span",La,[f(F,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(g)==="en"]]),L[2]||(L[2]=se(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[f(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"})]),_:1}),f(qt,{id:"full-screen"}),f(Pt,{id:"header-notice"}),f(W,{trigger:"click"},{dropdown:b(()=>[f(X,{class:"logout"},{default:b(()=>[f(B,{onClick:e(d)},{default:b(()=>[f(F,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+P(e(w)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),f(B,{onClick:e(p)},{default:b(()=>[f(F,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+P(e(w)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[m("span",Aa,[m("img",{src:e(u),style:le(e(l))},null,12,Va),e(o)?(i(),y("p",Ha,P(e(o)),1)):G("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:e(w)("buttons.pureOpenSystemSet"),onClick:L[0]||(L[0]=(...M)=>e(r)&&e(r)(...M))},[f(F,{icon:e(Rt)},null,8,["icon"])],8,Ra)])):G("",!0)])}}}),Ea=ce(Ba,[["__scopeId","data-v-5979c53e"]]),st=new Map,Oa=()=>{function a(p,r){st.set(p,r)}function t(p){return p?st.get(p):[...st.entries()]}function c(p){st.delete(p)}return{setMap:a,getMap:t,delMap:c,MAP:st}},Da={class:"w-full h-full"},Pa=J({__name:"index",props:{currRoute:{},currComp:{}},setup(a){const t=a,c=Ct([]),{setMap:p,getMap:r,MAP:n,delMap:o}=Oa(),u=A(()=>{var h,d;return je().KeepAlive&&((h=t.currRoute.meta)==null?void 0:h.keepAlive)&&!!((d=t.currRoute.meta)!=null&&d.frameSrc)}),l=A(()=>!u.value&&t.currComp);return Le(Ve().multiTags,h=>{if(!Array.isArray(h)||!u.value)return;if(h.filter(s=>{var v;return(v=s.meta)==null?void 0:v.frameSrc}).length<n.size)for(const s of n.keys())h.some(v=>v.path===s)||(o(s),c.value=r())}),Le(()=>t.currRoute.fullPath,h=>{const s=Ve().multiTags.filter(v=>{var w;return(w=v.meta)==null?void 0:w.frameSrc});u.value&&s.length!==n.size&&([...n.keys()].find(w=>h===w)||p(h,t.currComp)),n.size>0&&(c.value=r())},{immediate:!0}),(h,d)=>(i(),y(ue,null,[(i(!0),y(ue,null,we(c.value,([s,v])=>{var w;return oe((i(),y("div",{key:s,class:"w-full h-full"},[ht(h.$slots,"default",{fullPath:s,Comp:v,frameInfo:{frameSrc:(w=h.currRoute.meta)==null?void 0:w.frameSrc,fullPath:s}})],512)),[[ye,s===h.currRoute.fullPath]])}),128)),oe(m("div",Da,[ht(h.$slots,"default",{Comp:l.value,fullPath:h.currRoute.fullPath})],512),[[ye,!u.value]])],64))}}),qa={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},Fa={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Na=J({__name:"index",setup(a){const t=je("Title");return(c,p)=>(i(),y("footer",qa,[p[0]||(p[0]=se(" Copyright © 2020-2025 ")),m("a",Fa,"  "+P(e(t)),1)]))}}),Jt=ce(Na,[["__scopeId","data-v-d2894726"]]),Wa={class:"grow"},Ua={key:1,class:"grow"},Ka=J({__name:"index",props:{fixedHeader:Boolean},setup(a){const t=a,{t:c}=Re(),{showModel:p}=hn(),{$storage:r,$config:n}=it(),o=A(()=>n==null?void 0:n.KeepAlive),u=A(()=>_=>_.meta.transition),l=A(()=>r==null?void 0:r.configure.hideTabs),h=A(()=>r==null?void 0:r.configure.hideFooter),d=A(()=>r==null?void 0:r.configure.stretch),s=A(()=>(r==null?void 0:r.layout.layout)==="vertical"),v=A(()=>kt(d.value)?d.value+"px":d.value?"1440px":"100%"),w=A(()=>[l.value&&s?"padding-top: 48px;":"",!l.value&&s?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",l.value&&!s.value?"padding-top: 48px;":"",!l.value&&!s.value?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",t.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=J({props:{route:{type:void 0,required:!0}},render(){var L,F,B;const _=((L=u.value(this.route))==null?void 0:L.name)||"fade-transform",z=(F=u.value(this.route))==null?void 0:F.enterTransition,x=(B=u.value(this.route))==null?void 0:B.leaveTransition;return rt(At,{name:z?"pure-classes-transition":_,enterActiveClass:z?`animate__animated ${z}`:void 0,leaveActiveClass:x?`animate__animated ${x}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,z)=>{const x=S("el-backtop"),L=S("el-scrollbar"),F=S("router-view");return i(),y("section",{class:Z([a.fixedHeader?"app-main":"app-main-nofixed-header"]),style:le(w.value)},[f(F,null,{default:b(({Component:B,route:X})=>[f(Pa,{currComp:B,currRoute:X},{default:b(({Comp:W,fullPath:M,frameInfo:q})=>[a.fixedHeader?(i(),O(L,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":v.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:b(()=>[f(x,{title:e(c)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:b(()=>[f(e(dn))]),_:1},8,["title"]),m("div",Wa,[f(e(g),{route:X},{default:b(()=>[o.value?(i(),O(Yt,{key:0,include:e(Ce)().cachePageList},[(i(),O($e(W),{key:M,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(i(),O($e(W),{key:M,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),h.value?G("",!0):(i(),O(Jt,{key:0}))]),_:2},1032,["wrap-style"])):(i(),y("div",Ua,[f(e(g),{route:X},{default:b(()=>[o.value?(i(),O(Yt,{key:0,include:e(Ce)().cachePageList},[(i(),O($e(W),{key:M,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(i(),O($e(W),{key:M,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!h.value&&!a.fixedHeader?(i(),O(Jt,{key:0})):G("",!0)],6)}}}),en=ce(Ka,[["__scopeId","data-v-5fc75f4c"]]),Ya={class:"project-configuration border-0 border-b-[1px] border-solid border-[var(--pure-border-color)]"},Xa={class:"dark:text-white"},Ga={class:"flex justify-end p-3 border-0 border-t-[1px] border-solid border-[var(--pure-border-color)]"},ja=J({__name:"index",setup(a){const t=R(null),c=R(!1),p=A(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-hidden","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{t:r}=Re(),{onReset:n}=Ht();return an(t,o=>{o.clientX>t.value.offsetLeft||(c.value=!1)}),qe(()=>{_e.on("openPanel",()=>{c.value=!0})}),Lt(()=>{_e.off("openPanel")}),(o,u)=>{const l=S("IconifyIconOffline"),h=S("el-scrollbar"),d=S("el-button"),s=Ye("tippy");return i(),y("div",{class:Z({show:c.value})},[u[1]||(u[1]=m("div",{class:"right-panel-background"},null,-1)),m("div",{ref_key:"target",ref:t,class:"right-panel bg-bg_color"},[m("div",Ya,[m("h4",Xa,P(e(r)("panel.pureSystemSet")),1),oe((i(),y("span",{class:Z(p.value)},[f(l,{class:"dark:text-white",width:"18px",height:"18px",icon:e(ft),onClick:u[0]||(u[0]=v=>c.value=!c.value)},null,8,["icon"])],2)),[[s,{content:e(r)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),f(h,null,{default:b(()=>[ht(o.$slots,"default",{},void 0,!0)]),_:3}),m("div",Ga,[oe((i(),O(d,{type:"danger",text:"",bg:"",onClick:e(n)},{default:b(()=>[se(P(e(r)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[s,{content:e(r)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Qa=ce(ja,[["__scopeId","data-v-15bfdf4f"]]),Za={viewBox:"0 0 24 24",width:"20",height:"20"};function Ja(a,t){return i(),y("svg",Za,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414z"},null,-1)]))}const tn=he({name:"ri-arrow-left-s-line",render:Ja}),es={viewBox:"0 0 24 24",width:"20",height:"20"};function ts(a,t){return i(),y("svg",es,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"},null,-1)]))}const nn=he({name:"ri-arrow-right-s-line",render:ts}),ns={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"};function os(a,t){return i(),y("svg",ns,t[0]||(t[0]=[m("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),m("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1)]))}const ls={render:os},as={class:"p-5"},ss={class:"theme-color"},rs=["onClick"],is={class:"pure-theme"},cs={key:0},us={class:"mt-5! font-medium text-sm dark:text-white"},ds={class:"setting"},hs={class:"dark:text-white"},fs={class:"dark:text-white"},ps={class:"dark:text-white"},ms={class:"dark:text-white"},vs={class:"dark:text-white"},gs=J({__name:"index",setup(a){var T,V,D,ee;const{t}=Re(),{device:c}=Se(),{isDark:p}=cn(),{$storage:r}=it(),n=R(),o=R(),u=R(),{dataTheme:l,overallStyle:h,layoutTheme:d,themeColors:s,toggleClass:v,dataThemeChange:w,setLayoutThemeColor:g}=Ht();if(e(d)){const I=e(d).layout,k=e(d).theme;document.documentElement.setAttribute("data-theme",k),Ie(I)}const _=R((V=(T=r.configure)==null?void 0:T.showModel)!=null?V:"smart"),z=R((ee=(D=r.configure)==null?void 0:D.showLogo)!=null?ee:!0),x=It({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,hideFooter:r.configure.hideFooter,multiTagsCache:r.configure.multiTagsCache,stretch:r.configure.stretch}),L=A(()=>I=>({background:I})),F=A(()=>I=>!(I==="light"&&p.value));function B(I,k){const de=r.configure;de[I]=k,r.configure=de}const X=I=>{const k=document.querySelector("html");v(x.greyVal,"html-grey",k),B("grey",I)},W=I=>{const k=document.querySelector("html");v(x.weakVal,"html-weakness",k),B("weak",I)},M=()=>{const I=x.tabsVal;B("hideTabs",I),_e.emit("tagViewsChange",I)},q=()=>{const I=x.hideFooter;B("hideFooter",I)},U=()=>{const I=x.multiTagsCache;B("multiTagsCache",I),Ve().multiTagsCacheChange(I)};function ae({option:I}){const{value:k}=I;_.value=k,B("showModel",k),_e.emit("tagViewsShowModel",k)}function re(){e(z)?B("showLogo",!0):B("showLogo",!1),_e.emit("logoChange",e(z))}function E(I){I.forEach(k=>{v(!1,"is-select",e(k))})}const Q=A(()=>[{label:t("panel.pureStretchFixed"),tip:t("panel.pureStretchFixedTip"),value:"fixed"},{label:t("panel.pureStretchCustom"),tip:t("panel.pureStretchCustomTip"),value:"custom"}]),te=I=>{x.stretch=I,B("stretch",I)},xe=({option:I})=>{const{value:k}=I;te(k==="custom"?1440:!1)},Be=A(()=>I=>I===d.value.theme&&d.value.theme!=="light"?"#fff":I===d.value.theme&&d.value.theme==="light"?"#1d2b45":"transparent"),Me=A(()=>["mb-[12px]!","font-medium","text-sm","dark:text-white"]),Ee=A(()=>[{label:t("panel.pureOverallStyleLight"),icon:Wn,theme:"light",tip:t("panel.pureOverallStyleLightTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:t("panel.pureOverallStyleDark"),icon:Un,theme:"dark",tip:t("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:t("panel.pureOverallStyleSystem"),icon:ls,theme:"system",tip:t("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:p.value?"#fff":"#000"}}]),Xe=A(()=>[{label:t("panel.pureTagsStyleSmart"),tip:t("panel.pureTagsStyleSmartTip"),value:"smart"},{label:t("panel.pureTagsStyleCard"),tip:t("panel.pureTagsStyleCardTip"),value:"card"},{label:t("panel.pureTagsStyleChrome"),tip:t("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function Ie(I){var k,de,fe,Ne,ve;d.value.layout=I,window.document.body.setAttribute("layout",I),r.layout={layout:I,theme:d.value.theme,darkMode:(k=r.layout)==null?void 0:k.darkMode,sidebarStatus:(de=r.layout)==null?void 0:de.sidebarStatus,epThemeColor:(fe=r.layout)==null?void 0:fe.epThemeColor,themeColor:(Ne=r.layout)==null?void 0:Ne.themeColor,overallStyle:(ve=r.layout)==null?void 0:ve.overallStyle},Pe().setLayout(I)}Le(r,({layout:I})=>{switch(I.layout){case"vertical":v(!0,"is-select",e(o)),tt(E([u]),50),tt(E([n]),50);break;case"horizontal":v(!0,"is-select",e(u)),tt(E([o]),50),tt(E([n]),50);break;case"mix":v(!0,"is-select",e(n)),tt(E([o]),50),tt(E([u]),50);break}});const Ge=window.matchMedia("(prefers-color-scheme: dark)");function Oe(){h.value==="system"&&(Ge.matches?l.value=!0:l.value=!1,w(h.value))}function Fe(){Ge.removeEventListener("change",Oe)}function et(){Oe(),Fe(),Ge.addEventListener("change",Oe)}return un(()=>{Ke(()=>{var I,k;et(),x.greyVal&&((I=document.querySelector("html"))==null||I.classList.add("html-grey")),x.weakVal&&((k=document.querySelector("html"))==null||k.classList.add("html-weakness")),x.tabsVal&&M(),x.hideFooter&&q()})}),Vn(()=>Fe),(I,k)=>{const de=S("IconifyIconOffline"),fe=S("el-icon"),Ne=S("el-input-number"),ve=S("el-switch"),ot=Ye("tippy"),mt=Ye("ripple");return i(),O(Qa,null,{default:b(()=>[m("div",as,[m("p",{class:Z(Me.value)},P(e(t)("panel.pureOverallStyle")),3),f(e(wt),{resize:"",class:"select-none",modelValue:e(h)==="system"?2:e(l)?1:0,options:Ee.value,onChange:k[0]||(k[0]=j=>{j.index===1&&j.index!==2?l.value=!0:l.value=!1,h.value=j.option.theme,e(w)(j.option.theme),j.index===2&&et()})},null,8,["modelValue","options"]),m("p",{class:Z(["mt-5!",Me.value])},P(e(t)("panel.pureThemeColor")),3),m("ul",ss,[(i(!0),y(ue,null,we(e(s),(j,C)=>oe((i(),y("li",{key:C,style:le(L.value(j.color)),onClick:$=>e(g)(j.themeColor)},[f(fe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Be.value(j.themeColor)},{default:b(()=>[f(de,{icon:e(Je)},null,8,["icon"])]),_:2},1032,["color"])],12,rs)),[[ye,F.value(j.themeColor)]])),128))]),m("p",{class:Z(["mt-5!",Me.value])},P(e(t)("panel.pureLayoutModel")),3),m("ul",is,[oe((i(),y("li",{ref_key:"verticalRef",ref:o,class:Z(e(d).layout==="vertical"?"is-select":""),onClick:k[1]||(k[1]=j=>Ie("vertical"))},k[13]||(k[13]=[m("div",null,null,-1),m("div",null,null,-1)]),2)),[[ot,{content:e(t)("panel.pureVerticalTip"),zIndex:41e3}]]),e(c)!=="mobile"?oe((i(),y("li",{key:0,ref_key:"horizontalRef",ref:u,class:Z(e(d).layout==="horizontal"?"is-select":""),onClick:k[2]||(k[2]=j=>Ie("horizontal"))},k[14]||(k[14]=[m("div",null,null,-1),m("div",null,null,-1)]),2)),[[ot,{content:e(t)("panel.pureHorizontalTip"),zIndex:41e3}]]):G("",!0),e(c)!=="mobile"?oe((i(),y("li",{key:1,ref_key:"mixRef",ref:n,class:Z(e(d).layout==="mix"?"is-select":""),onClick:k[3]||(k[3]=j=>Ie("mix"))},k[15]||(k[15]=[m("div",null,null,-1),m("div",null,null,-1)]),2)),[[ot,{content:e(t)("panel.pureMixTip"),zIndex:41e3}]]):G("",!0)]),e(Pe)().getViewportWidth>1280?(i(),y("span",cs,[m("p",{class:Z(["mt-5!",Me.value])},P(e(t)("panel.pureStretch")),3),f(e(wt),{resize:"",class:"mb-2 select-none",modelValue:e(kt)(x.stretch)?1:0,options:Q.value,onChange:xe},null,8,["modelValue","options"]),e(kt)(x.stretch)?(i(),O(Ne,{key:0,modelValue:x.stretch,"onUpdate:modelValue":k[4]||(k[4]=j=>x.stretch=j),min:1280,max:1600,"controls-position":"right",onChange:k[5]||(k[5]=j=>te(j))},null,8,["modelValue"])):oe((i(),y("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:k[6]||(k[6]=j=>te(!x.stretch))},[m("div",{class:Z(["flex-bc transition-all duration-300",[x.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[f(de,{icon:x.stretch?e(nn):e(tn)},null,8,["icon"]),k[16]||(k[16]=m("div",{class:"grow border-0 border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),f(de,{icon:x.stretch?e(tn):e(nn)},null,8,["icon"])],2)])),[[mt,{class:"text-gray-300"}]])])):G("",!0),m("p",{class:Z(["mt-4!",Me.value])},P(e(t)("panel.pureTagsStyle")),3),f(e(wt),{resize:"",class:"select-none",modelValue:_.value==="smart"?0:_.value==="card"?1:2,options:Xe.value,onChange:ae},null,8,["modelValue","options"]),m("p",us,P(e(t)("panel.pureInterfaceDisplay")),1),m("ul",ds,[m("li",null,[m("span",hs,P(e(t)("panel.pureGreyModel")),1),f(ve,{modelValue:x.greyVal,"onUpdate:modelValue":k[7]||(k[7]=j=>x.greyVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:X},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",fs,P(e(t)("panel.pureWeakModel")),1),f(ve,{modelValue:x.weakVal,"onUpdate:modelValue":k[8]||(k[8]=j=>x.weakVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",ps,P(e(t)("panel.pureHiddenTags")),1),f(ve,{modelValue:x.tabsVal,"onUpdate:modelValue":k[9]||(k[9]=j=>x.tabsVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:M},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",ms,P(e(t)("panel.pureHiddenFooter")),1),f(ve,{modelValue:x.hideFooter,"onUpdate:modelValue":k[10]||(k[10]=j=>x.hideFooter=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:q},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[k[17]||(k[17]=m("span",{class:"dark:text-white"},"Logo",-1)),f(ve,{modelValue:z.value,"onUpdate:modelValue":k[11]||(k[11]=j=>z.value=j),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:re},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",vs,P(e(t)("panel.pureMultiTagsCache")),1),f(ve,{modelValue:x.multiTagsCache,"onUpdate:modelValue":k[12]||(k[12]=j=>x.multiTagsCache=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:U},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),_s=ce(gs,[["__scopeId","data-v-42b0bf91"]]),ys=["src"],ws={class:"sidebar-title"},xs=["src"],bs={class:"sidebar-title"},Cs=J({__name:"SidebarLogo",props:{collapse:Boolean},setup(a){const{title:t,getLogo:c}=Se();return(p,r)=>{const n=S("router-link");return i(),y("div",{class:Z(["sidebar-logo-container",{collapses:a.collapse}])},[f(At,{name:"sidebarLogoFade"},{default:b(()=>{var o,u,l,h;return[a.collapse?(i(),O(n,{key:"collapse",title:e(t),class:"sidebar-logo-link",to:(u=(o=e(bt)())==null?void 0:o.path)!=null?u:"/"},{default:b(()=>[m("img",{src:e(c)(),alt:"logo"},null,8,ys),m("span",ws,P(e(t)),1)]),_:1},8,["title","to"])):(i(),O(n,{key:"expand",title:e(t),class:"sidebar-logo-link",to:(h=(l=e(bt)())==null?void 0:l.path)!=null?h:"/"},{default:b(()=>[m("img",{src:e(c)(),alt:"logo"},null,8,xs),m("span",bs,P(e(t)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),ks=ce(Cs,[["__scopeId","data-v-4dd8e86d"]]);var xt,on;function Ss(){if(on)return xt;on=1;function a(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function t(r,n){for(var o="",u=0,l=-1,h=0,d,s=0;s<=r.length;++s){if(s<r.length)d=r.charCodeAt(s);else{if(d===47)break;d=47}if(d===47){if(!(l===s-1||h===1))if(l!==s-1&&h===2){if(o.length<2||u!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var v=o.lastIndexOf("/");if(v!==o.length-1){v===-1?(o="",u=0):(o=o.slice(0,v),u=o.length-1-o.lastIndexOf("/")),l=s,h=0;continue}}else if(o.length===2||o.length===1){o="",u=0,l=s,h=0;continue}}n&&(o.length>0?o+="/..":o="..",u=2)}else o.length>0?o+="/"+r.slice(l+1,s):o=r.slice(l+1,s),u=s-l-1;l=s,h=0}else d===46&&h!==-1?++h:h=-1}return o}function c(r,n){var o=n.dir||n.root,u=n.base||(n.name||"")+(n.ext||"");return o?o===n.root?o+u:o+r+u:u}var p={resolve:function(){for(var n="",o=!1,u,l=arguments.length-1;l>=-1&&!o;l--){var h;l>=0?h=arguments[l]:(u===void 0&&(u=process.cwd()),h=u),a(h),h.length!==0&&(n=h+"/"+n,o=h.charCodeAt(0)===47)}return n=t(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(a(n),n.length===0)return".";var o=n.charCodeAt(0)===47,u=n.charCodeAt(n.length-1)===47;return n=t(n,!o),n.length===0&&!o&&(n="."),n.length>0&&u&&(n+="/"),o?"/"+n:n},isAbsolute:function(n){return a(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,o=0;o<arguments.length;++o){var u=arguments[o];a(u),u.length>0&&(n===void 0?n=u:n+="/"+u)}return n===void 0?".":p.normalize(n)},relative:function(n,o){if(a(n),a(o),n===o||(n=p.resolve(n),o=p.resolve(o),n===o))return"";for(var u=1;u<n.length&&n.charCodeAt(u)===47;++u);for(var l=n.length,h=l-u,d=1;d<o.length&&o.charCodeAt(d)===47;++d);for(var s=o.length,v=s-d,w=h<v?h:v,g=-1,_=0;_<=w;++_){if(_===w){if(v>w){if(o.charCodeAt(d+_)===47)return o.slice(d+_+1);if(_===0)return o.slice(d+_)}else h>w&&(n.charCodeAt(u+_)===47?g=_:_===0&&(g=0));break}var z=n.charCodeAt(u+_),x=o.charCodeAt(d+_);if(z!==x)break;z===47&&(g=_)}var L="";for(_=u+g+1;_<=l;++_)(_===l||n.charCodeAt(_)===47)&&(L.length===0?L+="..":L+="/..");return L.length>0?L+o.slice(d+g):(d+=g,o.charCodeAt(d)===47&&++d,o.slice(d))},_makeLong:function(n){return n},dirname:function(n){if(a(n),n.length===0)return".";for(var o=n.charCodeAt(0),u=o===47,l=-1,h=!0,d=n.length-1;d>=1;--d)if(o=n.charCodeAt(d),o===47){if(!h){l=d;break}}else h=!1;return l===-1?u?"/":".":u&&l===1?"//":n.slice(0,l)},basename:function(n,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');a(n);var u=0,l=-1,h=!0,d;if(o!==void 0&&o.length>0&&o.length<=n.length){if(o.length===n.length&&o===n)return"";var s=o.length-1,v=-1;for(d=n.length-1;d>=0;--d){var w=n.charCodeAt(d);if(w===47){if(!h){u=d+1;break}}else v===-1&&(h=!1,v=d+1),s>=0&&(w===o.charCodeAt(s)?--s===-1&&(l=d):(s=-1,l=v))}return u===l?l=v:l===-1&&(l=n.length),n.slice(u,l)}else{for(d=n.length-1;d>=0;--d)if(n.charCodeAt(d)===47){if(!h){u=d+1;break}}else l===-1&&(h=!1,l=d+1);return l===-1?"":n.slice(u,l)}},extname:function(n){a(n);for(var o=-1,u=0,l=-1,h=!0,d=0,s=n.length-1;s>=0;--s){var v=n.charCodeAt(s);if(v===47){if(!h){u=s+1;break}continue}l===-1&&(h=!1,l=s+1),v===46?o===-1?o=s:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||l===-1||d===0||d===1&&o===l-1&&o===u+1?"":n.slice(o,l)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return c("/",n)},parse:function(n){a(n);var o={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return o;var u=n.charCodeAt(0),l=u===47,h;l?(o.root="/",h=1):h=0;for(var d=-1,s=0,v=-1,w=!0,g=n.length-1,_=0;g>=h;--g){if(u=n.charCodeAt(g),u===47){if(!w){s=g+1;break}continue}v===-1&&(w=!1,v=g+1),u===46?d===-1?d=g:_!==1&&(_=1):d!==-1&&(_=-1)}return d===-1||v===-1||_===0||_===1&&d===v-1&&d===s+1?v!==-1&&(s===0&&l?o.base=o.name=n.slice(1,v):o.base=o.name=n.slice(s,v)):(s===0&&l?(o.name=n.slice(1,d),o.base=n.slice(1,v)):(o.name=n.slice(s,d),o.base=n.slice(s,v)),o.ext=n.slice(d,v)),s>0?o.dir=n.slice(0,s-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,xt=p,xt}var Ms=Ss();const Is=J({__name:"SidebarLinkItem",props:{to:{}},setup(a){const t=a,c=A(()=>Hn(t.to.name)),p=r=>c.value?{href:r.name,target:"_blank",rel:"noopener"}:{to:r};return(r,n)=>(i(),O($e(c.value?"a":"router-link"),Rn(Bn(p(r.to))),{default:b(()=>[ht(r.$slots,"default")]),_:3},16))}}),Ts={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function $s(a,t){return i(),y("svg",Ts,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8l316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"},null,-1)]))}const zs=he({name:"ep-arrow-up-bold",render:$s}),Ls={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function As(a,t){return i(),y("svg",Ls,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8l316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"},null,-1)]))}const Vs=he({name:"ep-arrow-down-bold",render:As}),Hs={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Rs(a,t){return i(),y("svg",Hs,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"},null,-1)]))}const Bs=he({name:"ep-arrow-left-bold",render:Rs}),Es={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Os(a,t){return i(),y("svg",Es,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"},null,-1)]))}const Ds=he({name:"ep-arrow-right-bold",render:Os}),pn=J({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(a){const t=En(),{layout:c,isCollapse:p,tooltipEffect:r,getDivStyle:n}=Se(),o=a,u=A(()=>({width:"100%",display:"flex",alignItems:"center"})),l=A(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:c.value==="horizontal"?"0 5px 0 0":p.value?"0 auto":"0 5px 0 0"})),h=A(()=>{const g=o.item,_="w-full! text-inherit!";return c.value!=="horizontal"&&p.value&&!ke(g.meta.icon)&&(c.value==="vertical"&&g.parentId===null||c.value==="mix"&&g.pathList.length===2)?`${_} min-w-[54px]! text-center! px-3!`:_}),d=A(()=>{var g;return(g=je())!=null&&g.MenuArrowIconNoTransition?{"expand-close-icon":Ae(Vs),"expand-open-icon":Ae(zs),"collapse-close-icon":Ae(Ds),"collapse-open-icon":Ae(Bs)}:""}),s=R(null);function v(g=[],_){var x,L;const z=g.filter(F=>(s.value=F,!0));return(L=(x=z[0])==null?void 0:x.meta)!=null&&L.showParent?!1:z.length===1?!0:z.length===0?(s.value=gt(vt({},_),{path:"",noShowingChildren:!0}),!0):!1}function w(g){const _=/^http(s?):\/\//;return _.test(g)||_.test(o.basePath)?g||o.basePath:Ms.posix.resolve(o.basePath,g)}return(g,_)=>{const z=S("el-text"),x=S("el-menu-item"),L=S("sidebar-item",!0),F=S("el-sub-menu");return v(a.item.children,a.item)&&(!s.value.children||s.value.noShowingChildren)?(i(),O(Is,{key:0,to:a.item},{default:b(()=>[f(x,Xt({index:w(s.value.path),class:{"submenu-title-noDropdown":!a.isNest},style:u.value},e(t)),{title:b(()=>[m("div",{style:le(e(n))},[f(e(Gt),{tippyProps:{offset:[0,-10],theme:e(r)},class:"w-full! text-inherit!"},{default:b(()=>[se(P(e(ze)(s.value.meta.title)),1)]),_:1},8,["tippyProps"]),f(Mt,{extraIcon:s.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:b(()=>{var B,X,W,M,q;return[ke(a.item.meta.icon)?(i(),y("div",{key:0,class:"sub-menu-icon",style:le(l.value)},[(i(),O($e(e(Ae)(ke(s.value.meta.icon)||a.item.meta&&ke(a.item.meta.icon)))))],4)):G("",!0),!((B=a.item)!=null&&B.meta.icon)&&e(p)&&e(c)==="vertical"&&((W=(X=a.item)==null?void 0:X.pathList)==null?void 0:W.length)===1||!s.value.meta.icon&&e(p)&&e(c)==="mix"&&((q=(M=a.item)==null?void 0:M.pathList)==null?void 0:q.length)===2?(i(),O(z,{key:1,truncated:"",class:"w-full! px-3! min-w-[54px]! text-center! text-inherit!"},{default:b(()=>[se(P(e(ze)(s.value.meta.title)),1)]),_:1})):G("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(i(),O(F,Xt({key:1,ref:"subMenu",teleported:"",index:w(a.item.path)},d.value),{title:b(()=>{var B,X;return[ke(a.item.meta.icon)?(i(),y("div",{key:0,style:le(l.value),class:"sub-menu-icon"},[(i(),O($e(e(Ae)(a.item.meta&&ke(a.item.meta.icon)))))],4)):G("",!0),(e(c)==="mix"&&ke(a.item.meta.icon)?!e(p)||((X=(B=a.item)==null?void 0:B.pathList)==null?void 0:X.length)!==2:!(e(c)==="vertical"&&e(p)&&ke(a.item.meta.icon)&&a.item.parentId===null))?(i(),O(e(Gt),{key:1,tippyProps:{offset:[0,-10],theme:e(r)},class:Z(h.value)},{default:b(()=>[se(P(e(ze)(a.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):G("",!0),e(p)?G("",!0):(i(),O(Mt,{key:2,extraIcon:a.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:b(()=>[(i(!0),y(ue,null,we(a.item.children,B=>(i(),O(L,{key:B.path,"is-nest":!0,item:B,"base-path":w(B.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ps={class:"left-collapse"},qs=J({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(a,{emit:t}){const{t:c}=Re(),{tooltipEffect:p}=Se(),r=A(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block!","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:n}=it(),o=A(()=>{var h;return(h=n.layout)==null?void 0:h.themeColor}),u=t,l=()=>{u("toggleClick")};return(h,d)=>{const s=S("IconifyIconOffline"),v=Ye("tippy");return i(),y("div",Ps,[oe(f(s,{icon:e(Nn),class:Z([r.value,o.value==="light"?"":"text-primary"]),style:le({transform:h.isActive?"none":"rotateY(180deg)"}),onClick:l},null,8,["icon","class","style"]),[[v,{content:h.isActive?e(c)("buttons.pureClickCollapse"):e(c)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])])}}}),Fs=ce(qs,[["__scopeId","data-v-35058a81"]]),Ns={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Ws(a,t){return i(),y("svg",Ns,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414z"},null,-1)]))}const Us=he({name:"ri-arrow-left-double-fill",render:Ws}),Ks=J({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(a,{emit:t}){const{t:c}=Re(),{tooltipEffect:p}=Se(),r=A(()=>["w-[16px]","h-[16px]"]),{$storage:n}=it(),o=A(()=>{var h;return(h=n.layout)==null?void 0:h.themeColor}),u=t,l=()=>{u("toggleClick")};return(h,d)=>{const s=S("IconifyIconOffline"),v=Ye("tippy");return oe((i(),y("div",{class:"center-collapse",onClick:l},[f(s,{icon:e(Us),class:Z([r.value,o.value==="light"?"":"text-primary"]),style:le({transform:h.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[v,{content:h.isActive?e(c)("buttons.pureClickCollapse"):e(c)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])}}}),Ys=ce(Ks,[["__scopeId","data-v-52a12c43"]]),Xs=J({__name:"NavVertical",setup(a){var _,z;const t=zt(),c=R(!1),p=R((z=(_=He().getItem(`${nt()}configure`))==null?void 0:_.showLogo)!=null?z:!0),{device:r,pureApp:n,isCollapse:o,tooltipEffect:u,menuSelect:l,toggleSideBar:h}=Se(),d=R([]),s=A(()=>n.layout==="mix"&&r.value!=="mobile"?d.value:Ce().wholeMenus),v=A(()=>n.layout==="mix"?!1:s.value.length===0),w=A(()=>{var x;return Ze((x=t.meta)==null?void 0:x.activePath)?t.path:t.meta.activePath});function g(){let x="";x=w.value,d.value=[];const L=Vt(x,Ce().wholeMenus),F=dt(L[0]||x,Ce().wholeMenus);F!=null&&F.children&&(d.value=F==null?void 0:F.children)}return Le(()=>[t.path,Ce().wholeMenus],()=>{t.path.includes("/redirect")||(g(),l(t.path))}),qe(()=>{g(),_e.on("logoChange",x=>{p.value=x})}),Lt(()=>{_e.off("logoChange")}),(x,L)=>{const F=S("el-menu"),B=S("el-scrollbar"),X=Ye("loading");return oe((i(),y("div",{class:Z(["sidebar-container",p.value?"has-logo":"no-logo"]),onMouseenter:L[0]||(L[0]=Te(W=>c.value=!0,["prevent"])),onMouseleave:L[1]||(L[1]=Te(W=>c.value=!1,["prevent"]))},[p.value?(i(),O(ks,{key:0,collapse:e(o)},null,8,["collapse"])):G("",!0),f(B,{"wrap-class":"scrollbar-wrapper",class:Z([e(r)==="mobile"?"mobile":"pc"])},{default:b(()=>[f(F,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(o),"collapse-transition":!1,"popper-effect":e(u),"default-active":w.value},{default:b(()=>[(i(!0),y(ue,null,we(s.value,W=>(i(),O(pn,{key:W.path,item:W,"base-path":W.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(r)!=="mobile"&&(c.value||e(o))?(i(),O(Ys,{key:1,"is-active":e(n).sidebar.opened,onToggleClick:e(h)},null,8,["is-active","onToggleClick"])):G("",!0),e(r)!=="mobile"?(i(),O(Fs,{key:2,"is-active":e(n).sidebar.opened,onToggleClick:e(h)},null,8,["is-active","onToggleClick"])):G("",!0)],34)),[[X,v.value]])}}}),Gs=ce(Xs,[["__scopeId","data-v-f94a3619"]]),js={class:"horizontal-header"},Qs=["src"],Zs={class:"horizontal-header-right"},Js={class:"check-zh"},er={class:"check-en"},tr={class:"el-dropdown-link navbar-bg-hover"},nr=["src"],or={key:0,class:"dark:text-white"},lr=["title"],ar=J({__name:"NavHorizontal",setup(a){var B,X;const t=R(),c=R((X=(B=He().getItem(`${nt()}configure`))==null?void 0:B.showLogo)!=null?X:!0),{t:p,route:r,locale:n,translationCh:o,translationEn:u}=Bt(t),{title:l,logout:h,onPanel:d,getLogo:s,username:v,userAvatar:w,backTopMenu:g,avatarsStyle:_,toAccountSettings:z,getDropdownItemStyle:x,getDropdownItemClass:L}=Se(),F=A(()=>{var W;return Ze((W=r.meta)==null?void 0:W.activePath)?r.path:r.meta.activePath});return Ke(()=>{var W;(W=t.value)==null||W.handleResize()}),qe(()=>{_e.on("logoChange",W=>{c.value=W})}),(W,M)=>{const q=S("el-menu"),U=S("IconifyIconOffline"),ae=S("el-dropdown-item"),re=S("el-dropdown-menu"),E=S("el-dropdown"),Q=Ye("loading");return oe((i(),y("div",js,[c.value?(i(),y("div",{key:0,class:"horizontal-header-left",onClick:M[0]||(M[0]=(...te)=>e(g)&&e(g)(...te))},[m("img",{src:e(s)(),alt:"logo"},null,8,Qs),m("span",null,P(e(l)),1)])):G("",!0),f(q,{ref_key:"menuRef",ref:t,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":F.value},{default:b(()=>[(i(!0),y(ue,null,we(e(Ce)().wholeMenus,te=>(i(),O(pn,{key:te.path,item:te,"base-path":te.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",Zs,[f(Dt,{id:"header-search"}),f(E,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[f(re,{class:"translation"},{default:b(()=>[f(ae,{style:le(e(x)(e(n),"zh")),class:Z(["dark:text-white!",e(L)(e(n),"zh")]),onClick:e(o)},{default:b(()=>[oe(m("span",Js,[f(U,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="zh"]]),M[2]||(M[2]=se(" 简体中文 "))]),_:1},8,["style","class","onClick"]),f(ae,{style:le(e(x)(e(n),"en")),class:Z(["dark:text-white!",e(L)(e(n),"en")]),onClick:e(u)},{default:b(()=>[oe(m("span",er,[f(U,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="en"]]),M[3]||(M[3]=se(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[f(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"})]),_:1}),f(qt,{id:"full-screen"}),f(Pt,{id:"header-notice"}),f(E,{trigger:"click"},{dropdown:b(()=>[f(ae,{onClick:e(z)},{default:b(()=>[f(U,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+P(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),f(re,{class:"logout"},{default:b(()=>[f(ae,{onClick:e(h)},{default:b(()=>[f(U,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+P(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[m("span",tr,[m("img",{src:e(w),style:le(e(_))},null,12,nr),e(v)?(i(),y("p",or,P(e(v)),1)):G("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:M[1]||(M[1]=(...te)=>e(d)&&e(d)(...te))},[f(U,{icon:e(Rt)},null,8,["icon"])],8,lr)])])),[[Q,e(Ce)().wholeMenus.length===0]])}}}),sr=ce(ar,[["__scopeId","data-v-1f87fd56"]]),rr={key:0},ir=J({__name:"index",setup(a){const{t}=Re(),c=R(),{isDark:p}=cn(),{layout:r}=On(),n=rn(),o=Ot(),{$storage:u}=it(),l=It({sidebar:A(()=>Pe().sidebar),device:A(()=>Pe().device),fixedHeader:A(()=>o.fixedHeader),classes:A(()=>({hideSidebar:!l.sidebar.opened,openSidebar:l.sidebar.opened,withoutAnimation:l.sidebar.withoutAnimation,mobile:l.device==="mobile"})),hideTabs:A(()=>u==null?void 0:u.configure.hideTabs)});function h(w){var g,_,z,x,L,F;window.document.body.setAttribute("layout",w),u.layout={layout:`${w}`,theme:(g=u.layout)==null?void 0:g.theme,darkMode:(_=u.layout)==null?void 0:_.darkMode,sidebarStatus:(z=u.layout)==null?void 0:z.sidebarStatus,epThemeColor:(x=u.layout)==null?void 0:x.epThemeColor,themeColor:(L=u.layout)==null?void 0:L.themeColor,overallStyle:(F=u.layout)==null?void 0:F.overallStyle}}function d(w,g){Pe().toggleDevice(w),Pe().toggleSideBar(g,"resize")}let s=!0;pt(c,w=>{if(n)return;const g=w[0],[{inlineSize:_,blockSize:z}]=g.borderBoxSize;Pe().setViewportSize({width:_,height:z}),_<=760?h("vertical"):h(Pe().layout),_>0&&_<=760?(d("mobile",!1),s=!0):_>760&&_<=990?s&&(d("desktop",!1),s=!1):_>990&&!l.sidebar.isClickCollapse?(d("desktop",!0),s=!0):(d("desktop",!1),s=!1)}),qe(()=>{n&&d("mobile",!1)}),un(()=>{var w;Ht().dataThemeChange((w=u.layout)==null?void 0:w.overallStyle)});const v=J({name:"LayHeader",render(){return rt("div",{class:{"fixed-header":l.fixedHeader},style:[l.hideTabs&&r.value.includes("horizontal")?p.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!o.hiddenSideBar&&(r.value.includes("vertical")||r.value.includes("mix"))?rt(Ea):null,!o.hiddenSideBar&&r.value.includes("horizontal")?rt(sr):null,rt(cl)]})}});return(w,g)=>{const _=S("el-backtop"),z=S("el-scrollbar");return i(),y("div",{ref_key:"appWrapperRef",ref:c,class:Z(["app-wrapper",l.classes])},[oe(m("div",{class:"app-mask",onClick:g[0]||(g[0]=x=>e(Pe)().toggleSideBar())},null,512),[[ye,l.device==="mobile"&&l.sidebar.opened&&e(r).includes("vertical")]]),oe(f(Gs,null,null,512),[[ye,!e(o).hiddenSideBar&&(e(r).includes("vertical")||e(r).includes("mix"))]]),m("div",{class:Z(["main-container",e(o).hiddenSideBar?"main-hidden":""])},[l.fixedHeader?(i(),y("div",rr,[f(e(v)),f(en,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])])):(i(),O(z,{key:1},{default:b(()=>[f(_,{title:e(t)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:b(()=>[f(e(dn))]),_:1},8,["title"]),f(e(v)),f(en,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),f(_s)],2)}}}),Tr=ce(ir,[["__scopeId","data-v-6b7a8a68"]]);export{Tr as default};