import{u as Ki,b as Ng,c as $g,d as Po,e as Ve,v as Hg,l as Bo,_ as St,f as Gg,g as zg,h as Kg,i as qg,j as qi,R as Zg,D as Yg,k as Xg,m as kg,n as Jg,o as Qg,p as Vg,r as jg}from"./index.516baaea.js";import{F as nd}from"./index.c7173928.js";import{aW as ed,aO as bt,c as rn,d as je,f as Qe,aI as G,bg as td,bh as rd,h as Co,bi as To,bj as id,bk as ud,i as fd,C as an,D as wr,G as ln,aH as j,aM as Oo,u as be,aE as wn,aF as Fe,aN as Wo,bl as od,Q as sd,bb as ad,aX as ld,bm as cd,bd as Zi,be as Yi,ao as hd,E as Uo,bn as _d,a2 as pd,bo as gd,bp as dd,w as No,bq as vd,aK as wd,aJ as xd,br as md,o as $o,bs as yd,b as Ad,b0 as bd,bt as Do,bu as Sd,bv as Id,p as Ed,bw as Rd,bx as Ld,F as Mo,by as Cd,aZ as Td,bz as Od,bA as Dd}from"./arco.cd87ac27.js";import{f as xr,h as Xi,i as Md,j as Fd,k as Pd,l as Bd}from"./vue.a1682e6c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Fo,c as Wd,e as Ud}from"./serial.472eb3ab.js";import"./chart.19f3a5b6.js";const Ho="LoseHu Patch\uFF08BD8DFN\uFF09",Nd={name:Ho},$d=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,default:Nd},Symbol.toStringTag,{value:"Module"})),Go="LoseHu Patch\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",Hd={name:Go},Gd=Object.freeze(Object.defineProperty({__proto__:null,name:Go,default:Hd},Symbol.toStringTag,{value:"Module"})),zo="TODO",zd={name:zo},Kd=Object.freeze(Object.defineProperty({__proto__:null,name:zo,default:zd},Symbol.toStringTag,{value:"Module"}));function qd(){const y=xr(),E=Ki();return{logout:async H=>{await E.logout();const W=y.currentRoute.value;ed.success("\u767B\u51FA\u6210\u529F"),y.push({name:H&&typeof H=="string"?H:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const Zd=(y,E)=>{const{target:o="_blank",...H}=E||{};window.open(y,o,Object.entries(H).reduce((W,un)=>{const[T,q]=un;return[...W,`${T}=${q}`]},[]).join(","))},Yd=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),Xd=[...Ng,...$g],kd=Xd.map(y=>{const{name:E,path:o,meta:H,redirect:W,children:un}=y;return{name:E,path:o,meta:H,redirect:W,children:un}}),Jd=kd;var Gi={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(y,E){(function(){var o,H="4.17.21",W=200,un="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",q="Invalid `variable` option passed into `_.template`",_n="__lodash_hash_undefined__",Z=500,pn="__lodash_placeholder__",fn=1,bn=2,P=4,A=1,O=2,x=1,D=2,$=4,J=8,X=16,xn=32,mn=64,On=128,te=256,mr=512,Ko=30,qo="...",Zo=800,Yo=16,ki=1,Xo=2,ko=3,Se=1/0,_e=9007199254740991,Jo=17976931348623157e292,It=0/0,Vn=4294967295,Qo=Vn-1,Vo=Vn>>>1,jo=[["ary",On],["bind",x],["bindKey",D],["curry",J],["curryRight",X],["flip",mr],["partial",xn],["partialRight",mn],["rearg",te]],Pe="[object Arguments]",Et="[object Array]",ns="[object AsyncFunction]",et="[object Boolean]",tt="[object Date]",es="[object DOMException]",Rt="[object Error]",Lt="[object Function]",Ji="[object GeneratorFunction]",Zn="[object Map]",rt="[object Number]",ts="[object Null]",re="[object Object]",Qi="[object Promise]",rs="[object Proxy]",it="[object RegExp]",Yn="[object Set]",ut="[object String]",Ct="[object Symbol]",is="[object Undefined]",ft="[object WeakMap]",us="[object WeakSet]",ot="[object ArrayBuffer]",Be="[object DataView]",yr="[object Float32Array]",Ar="[object Float64Array]",br="[object Int8Array]",Sr="[object Int16Array]",Ir="[object Int32Array]",Er="[object Uint8Array]",Rr="[object Uint8ClampedArray]",Lr="[object Uint16Array]",Cr="[object Uint32Array]",fs=/\b__p \+= '';/g,os=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vi=/&(?:amp|lt|gt|quot|#39);/g,ji=/[&<>"']/g,as=RegExp(Vi.source),ls=RegExp(ji.source),cs=/<%-([\s\S]+?)%>/g,hs=/<%([\s\S]+?)%>/g,nu=/<%=([\s\S]+?)%>/g,_s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ps=/^\w*$/,gs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,ds=RegExp(Tr.source),Or=/^\s+/,vs=/\s/,ws=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xs=/\{\n\/\* \[wrapped with (.+)\] \*/,ms=/,? & /,ys=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,As=/[()=,{}\[\]\/\s]/,bs=/\\(\\)?/g,Ss=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eu=/\w*$/,Is=/^[-+]0x[0-9a-f]+$/i,Es=/^0b[01]+$/i,Rs=/^\[object .+?Constructor\]$/,Ls=/^0o[0-7]+$/i,Cs=/^(?:0|[1-9]\d*)$/,Ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,Os=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",Ds="\\u0300-\\u036f",Ms="\\ufe20-\\ufe2f",Fs="\\u20d0-\\u20ff",tu=Ds+Ms+Fs,ru="\\u2700-\\u27bf",iu="a-z\\xdf-\\xf6\\xf8-\\xff",Ps="\\xac\\xb1\\xd7\\xf7",Bs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",uu="A-Z\\xc0-\\xd6\\xd8-\\xde",fu="\\ufe0e\\ufe0f",ou=Ps+Bs+Ws+Us,Dr="['\u2019]",Ns="["+Ot+"]",su="["+ou+"]",Dt="["+tu+"]",au="\\d+",$s="["+ru+"]",lu="["+iu+"]",cu="[^"+Ot+ou+au+ru+iu+uu+"]",Mr="\\ud83c[\\udffb-\\udfff]",Hs="(?:"+Dt+"|"+Mr+")",hu="[^"+Ot+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+uu+"]",_u="\\u200d",pu="(?:"+lu+"|"+cu+")",Gs="(?:"+We+"|"+cu+")",gu="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",du="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",vu=Hs+"?",wu="["+fu+"]?",zs="(?:"+_u+"(?:"+[hu,Fr,Pr].join("|")+")"+wu+vu+")*",Ks="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xu=wu+vu+zs,Zs="(?:"+[$s,Fr,Pr].join("|")+")"+xu,Ys="(?:"+[hu+Dt+"?",Dt,Fr,Pr,Ns].join("|")+")",Xs=RegExp(Dr,"g"),ks=RegExp(Dt,"g"),Br=RegExp(Mr+"(?="+Mr+")|"+Ys+xu,"g"),Js=RegExp([We+"?"+lu+"+"+gu+"(?="+[su,We,"$"].join("|")+")",Gs+"+"+du+"(?="+[su,We+pu,"$"].join("|")+")",We+"?"+pu+"+"+gu,We+"+"+du,qs,Ks,au,Zs].join("|"),"g"),Qs=RegExp("["+_u+Ot+tu+fu+"]"),Vs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,js=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],na=-1,V={};V[yr]=V[Ar]=V[br]=V[Sr]=V[Ir]=V[Er]=V[Rr]=V[Lr]=V[Cr]=!0,V[Pe]=V[Et]=V[ot]=V[et]=V[Be]=V[tt]=V[Rt]=V[Lt]=V[Zn]=V[rt]=V[re]=V[it]=V[Yn]=V[ut]=V[ft]=!1;var Q={};Q[Pe]=Q[Et]=Q[ot]=Q[Be]=Q[et]=Q[tt]=Q[yr]=Q[Ar]=Q[br]=Q[Sr]=Q[Ir]=Q[Zn]=Q[rt]=Q[re]=Q[it]=Q[Yn]=Q[ut]=Q[Ct]=Q[Er]=Q[Rr]=Q[Lr]=Q[Cr]=!0,Q[Rt]=Q[Lt]=Q[ft]=!1;var ea={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ta={"&":"&","<":"<",">":">",'"':""","'":"'"},ra={"&":"&","<":"<",">":">",""":'"',"'":"'"},ia={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ua=parseFloat,fa=parseInt,mu=typeof bt=="object"&&bt&&bt.Object===Object&&bt,oa=typeof self=="object"&&self&&self.Object===Object&&self,dn=mu||oa||Function("return this")(),Wr=E&&!E.nodeType&&E,Ie=Wr&&!0&&y&&!y.nodeType&&y,yu=Ie&&Ie.exports===Wr,Ur=yu&&mu.process,Un=function(){try{var l=Ie&&Ie.require&&Ie.require("util").types;return l||Ur&&Ur.binding&&Ur.binding("util")}catch{}}(),Au=Un&&Un.isArrayBuffer,bu=Un&&Un.isDate,Su=Un&&Un.isMap,Iu=Un&&Un.isRegExp,Eu=Un&&Un.isSet,Ru=Un&&Un.isTypedArray;function Dn(l,_,h){switch(h.length){case 0:return l.call(_);case 1:return l.call(_,h[0]);case 2:return l.call(_,h[0],h[1]);case 3:return l.call(_,h[0],h[1],h[2])}return l.apply(_,h)}function sa(l,_,h,w){for(var R=-1,z=l==null?0:l.length;++R-1}function Nr(l,_,h){for(var w=-1,R=l==null?0:l.length;++w-1;);return h}function Pu(l,_){for(var h=l.length;h--&&Ue(_,l[h],0)>-1;);return h}function va(l,_){for(var h=l.length,w=0;h--;)l[h]===_&&++w;return w}var wa=zr(ea),xa=zr(ta);function ma(l){return"\\"+ia[l]}function ya(l,_){return l==null?o:l[_]}function Ne(l){return Qs.test(l)}function Aa(l){return Vs.test(l)}function ba(l){for(var _,h=[];!(_=l.next()).done;)h.push(_.value);return h}function Yr(l){var _=-1,h=Array(l.size);return l.forEach(function(w,R){h[++_]=[R,w]}),h}function Bu(l,_){return function(h){return l(_(h))}}function de(l,_){for(var h=-1,w=l.length,R=0,z=[];++h-1}function ll(n,e){var t=this.__data__,r=Jt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ie.prototype.clear=fl,ie.prototype.delete=ol,ie.prototype.get=sl,ie.prototype.has=al,ie.prototype.set=ll;function ue(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Gn(n,e,t,r,i,f){var s,a=e&fn,c=e&bn,p=e&P;if(t&&(s=i?t(n,r,i,f):t(n)),s!==o)return s;if(!en(n))return n;var g=L(n);if(g){if(s=pc(n),!a)return Rn(n,s)}else{var d=An(n),v=d==Lt||d==Ji;if(Ae(n))return xf(n,a);if(d==re||d==Pe||v&&!i){if(s=c||v?{}:Uf(n),!a)return c?rc(n,El(s,n)):tc(n,Xu(s,n))}else{if(!Q[d])return i?n:{};s=gc(n,d,a)}}f||(f=new kn);var m=f.get(n);if(m)return m;f.set(n,s),_o(n)?n.forEach(function(I){s.add(Gn(I,e,t,I,n,f))}):co(n)&&n.forEach(function(I,B){s.set(B,Gn(I,e,t,B,n,f))});var S=p?c?xi:wi:c?Cn:gn,M=g?o:S(n);return Nn(M||n,function(I,B){M&&(B=I,I=n[B]),pt(s,B,Gn(I,e,t,B,n,f))}),s}function Rl(n){var e=gn(n);return function(t){return ku(t,n,e)}}function ku(n,e,t){var r=t.length;if(n==null)return!r;for(n=k(n);r--;){var i=t[r],f=e[i],s=n[i];if(s===o&&!(i in n)||!f(s))return!1}return!0}function Ju(n,e,t){if(typeof n!="function")throw new $n(T);return yt(function(){n.apply(o,t)},e)}function gt(n,e,t,r){var i=-1,f=Mt,s=!0,a=n.length,c=[],p=e.length;if(!a)return c;t&&(e=nn(e,Mn(t))),r?(f=Nr,s=!1):e.length>=W&&(f=st,s=!1,e=new Le(e));n:for(;++ii?0:i+t),r=r===o||r>i?i:C(r),r<0&&(r+=i),r=t>r?0:go(r);t0&&t(a)?e>1?vn(a,e-1,t,r,i):ge(i,a):r||(i[i.length]=a)}return i}var ni=If(),ju=If(!0);function jn(n,e){return n&&ni(n,e,gn)}function ei(n,e){return n&&ju(n,e,gn)}function Vt(n,e){return pe(e,function(t){return le(n[t])})}function Te(n,e){e=me(e,n);for(var t=0,r=e.length;n!=null&&te}function Tl(n,e){return n!=null&&Y.call(n,e)}function Ol(n,e){return n!=null&&e in k(n)}function Dl(n,e,t){return n>=yn(e,t)&&n=120&&g.length>=120)?new Le(s&&g):o}g=n[0];var d=-1,v=a[0];n:for(;++d-1;)a!==n&&zt.call(a,c,1),zt.call(n,c,1);return n}function cf(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==f){var f=i;ae(i)?zt.call(n,i,1):ci(n,i)}}return n}function si(n,e){return n+Zt(Ku()*(e-n+1))}function ql(n,e,t,r){for(var i=-1,f=hn(qt((e-n)/(t||1)),0),s=h(f);f--;)s[r?f:++i]=n,n+=t;return s}function ai(n,e){var t="";if(!n||e<1||e>_e)return t;do e%2&&(t+=n),e=Zt(e/2),e&&(n+=n);while(e);return t}function F(n,e){return Ei(Hf(n,e,Tn),n+"")}function Zl(n){return Yu(Je(n))}function Yl(n,e){var t=Je(n);return ar(t,Ce(e,0,t.length))}function wt(n,e,t,r){if(!en(n))return n;e=me(e,n);for(var i=-1,f=e.length,s=f-1,a=n;a!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var f=h(i);++r>>1,s=n[f];s!==null&&!Pn(s)&&(t?s<=e:s=W){var p=e?null:oc(n);if(p)return Pt(p);s=!1,i=st,c=new Le}else c=e?[]:a;n:for(;++r=r?n:zn(n,e,t)}var wf=Ua||function(n){return dn.clearTimeout(n)};function xf(n,e){if(e)return n.slice();var t=n.length,r=Nu?Nu(t):new n.constructor(t);return n.copy(r),r}function gi(n){var e=new n.constructor(n.byteLength);return new Ht(e).set(new Ht(n)),e}function Vl(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function jl(n){var e=new n.constructor(n.source,eu.exec(n));return e.lastIndex=n.lastIndex,e}function nc(n){return _t?k(_t.call(n)):{}}function mf(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function yf(n,e){if(n!==e){var t=n!==o,r=n===null,i=n===n,f=Pn(n),s=e!==o,a=e===null,c=e===e,p=Pn(e);if(!a&&!p&&!f&&n>e||f&&s&&c&&!a&&!p||r&&s&&c||!t&&c||!i)return 1;if(!r&&!f&&!p&&n=a)return c;var p=t[r];return c*(p=="desc"?-1:1)}}return n.index-e.index}function Af(n,e,t,r){for(var i=-1,f=n.length,s=t.length,a=-1,c=e.length,p=hn(f-s,0),g=h(c+p),d=!r;++a1?t[i-1]:o,s=i>2?t[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,s&&In(t[0],t[1],s)&&(f=i<3?o:f,i=1),e=k(e);++r-1?i[f?e[s]:s]:o}}function Lf(n){return se(function(e){var t=e.length,r=t,i=Hn.prototype.thru;for(n&&e.reverse();r--;){var f=e[r];if(typeof f!="function")throw new $n(T);if(i&&!s&&or(f)=="wrapper")var s=new Hn([],!0)}for(r=s?r:t;++r1&&N.reverse(),g&&ca))return!1;var p=f.get(n),g=f.get(e);if(p&&g)return p==e&&g==n;var d=-1,v=!0,m=t&O?new Le:o;for(f.set(n,e),f.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ws,`{ /* [wrapped with `+e+`] */ `)}function vc(n){return L(n)||Me(n)||!!(Gu&&n&&n[Gu])}function ae(n,e){var t=typeof n;return e=e==null?_e:e,!!e&&(t=="number"||t!="symbol"&&Cs.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Zo)return arguments[0]}else e=0;return n.apply(o,arguments)}}function ar(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t1?n[e-1]:o;return t=typeof t=="function"?(n.pop(),t):o,jf(n,t)});function no(n){var e=u(n);return e.__chain__=!0,e}function Lh(n,e){return e(n),n}function lr(n,e){return e(n)}var Ch=se(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(f){return jr(f,n)};return e>1||this.__actions__.length||!(r instanceof U)||!ae(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:lr,args:[i],thisArg:o}),new Hn(r,this.__chain__).thru(function(f){return e&&!f.length&&f.push(o),f}))});function Th(){return no(this)}function Oh(){return new Hn(this.value(),this.__chain__)}function Dh(){this.__values__===o&&(this.__values__=po(this.value()));var n=this.__index__>=this.__values__.length,e=n?o:this.__values__[this.__index__++];return{done:n,value:e}}function Mh(){return this}function Fh(n){for(var e,t=this;t instanceof kt;){var r=Yf(t);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Ph(){var n=this.__wrapped__;if(n instanceof U){var e=n;return this.__actions__.length&&(e=new U(this)),e=e.reverse(),e.__actions__.push({func:lr,args:[Ri],thisArg:o}),new Hn(e,this.__chain__)}return this.thru(Ri)}function Bh(){return df(this.__wrapped__,this.__actions__)}var Wh=tr(function(n,e,t){Y.call(n,t)?++n[t]:fe(n,t,1)});function Uh(n,e,t){var r=L(n)?Lu:Ll;return t&&In(n,e,t)&&(e=o),r(n,b(e,3))}function Nh(n,e){var t=L(n)?pe:Vu;return t(n,b(e,3))}var $h=Rf(Xf),Hh=Rf(kf);function Gh(n,e){return vn(cr(n,e),1)}function zh(n,e){return vn(cr(n,e),Se)}function Kh(n,e,t){return t=t===o?1:C(t),vn(cr(n,e),t)}function eo(n,e){var t=L(n)?Nn:we;return t(n,b(e,3))}function to(n,e){var t=L(n)?aa:Qu;return t(n,b(e,3))}var qh=tr(function(n,e,t){Y.call(n,t)?n[t].push(e):fe(n,t,[e])});function Zh(n,e,t,r){n=Ln(n)?n:Je(n),t=t&&!r?C(t):0;var i=n.length;return t<0&&(t=hn(i+t,0)),dr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Ue(n,e,t)>-1}var Yh=F(function(n,e,t){var r=-1,i=typeof e=="function",f=Ln(n)?h(n.length):[];return we(n,function(s){f[++r]=i?Dn(e,s,t):dt(s,e,t)}),f}),Xh=tr(function(n,e,t){fe(n,t,e)});function cr(n,e){var t=L(n)?nn:uf;return t(n,b(e,3))}function kh(n,e,t,r){return n==null?[]:(L(e)||(e=e==null?[]:[e]),t=r?o:t,L(t)||(t=t==null?[]:[t]),af(n,e,t))}var Jh=tr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Qh(n,e,t){var r=L(n)?$r:Du,i=arguments.length<3;return r(n,b(e,4),t,i,we)}function Vh(n,e,t){var r=L(n)?la:Du,i=arguments.length<3;return r(n,b(e,4),t,i,Qu)}function jh(n,e){var t=L(n)?pe:Vu;return t(n,pr(b(e,3)))}function n_(n){var e=L(n)?Yu:Zl;return e(n)}function e_(n,e,t){(t?In(n,e,t):e===o)?e=1:e=C(e);var r=L(n)?bl:Yl;return r(n,e)}function t_(n){var e=L(n)?Sl:kl;return e(n)}function r_(n){if(n==null)return 0;if(Ln(n))return dr(n)?$e(n):n.length;var e=An(n);return e==Zn||e==Yn?n.size:ui(n).length}function i_(n,e,t){var r=L(n)?Hr:Jl;return t&&In(n,e,t)&&(e=o),r(n,b(e,3))}var u_=F(function(n,e){if(n==null)return[];var t=e.length;return t>1&&In(n,e[0],e[1])?e=[]:t>2&&In(e[0],e[1],e[2])&&(e=[e[0]]),af(n,vn(e,1),[])}),hr=Na||function(){return dn.Date.now()};function f_(n,e){if(typeof e!="function")throw new $n(T);return n=C(n),function(){if(--n<1)return e.apply(this,arguments)}}function ro(n,e,t){return e=t?o:e,e=n&&e==null?n.length:e,oe(n,On,o,o,o,o,e)}function io(n,e){var t;if(typeof e!="function")throw new $n(T);return n=C(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=o),t}}var Ci=F(function(n,e,t){var r=x;if(t.length){var i=de(t,Xe(Ci));r|=xn}return oe(n,r,e,t,i)}),uo=F(function(n,e,t){var r=x|D;if(t.length){var i=de(t,Xe(uo));r|=xn}return oe(e,r,n,t,i)});function fo(n,e,t){e=t?o:e;var r=oe(n,J,o,o,o,o,o,e);return r.placeholder=fo.placeholder,r}function oo(n,e,t){e=t?o:e;var r=oe(n,X,o,o,o,o,o,e);return r.placeholder=oo.placeholder,r}function so(n,e,t){var r,i,f,s,a,c,p=0,g=!1,d=!1,v=!0;if(typeof n!="function")throw new $n(T);e=qn(e)||0,en(t)&&(g=!!t.leading,d="maxWait"in t,f=d?hn(qn(t.maxWait)||0,e):f,v="trailing"in t?!!t.trailing:v);function m(sn){var Qn=r,he=i;return r=i=o,p=sn,s=n.apply(he,Qn),s}function S(sn){return p=sn,a=yt(B,e),g?m(sn):s}function M(sn){var Qn=sn-c,he=sn-p,Lo=e-Qn;return d?yn(Lo,f-he):Lo}function I(sn){var Qn=sn-c,he=sn-p;return c===o||Qn>=e||Qn<0||d&&he>=f}function B(){var sn=hr();if(I(sn))return N(sn);a=yt(B,M(sn))}function N(sn){return a=o,v&&r?m(sn):(r=i=o,s)}function Bn(){a!==o&&wf(a),p=0,r=c=i=a=o}function En(){return a===o?s:N(hr())}function Wn(){var sn=hr(),Qn=I(sn);if(r=arguments,i=this,c=sn,Qn){if(a===o)return S(c);if(d)return wf(a),a=yt(B,e),m(c)}return a===o&&(a=yt(B,e)),s}return Wn.cancel=Bn,Wn.flush=En,Wn}var o_=F(function(n,e){return Ju(n,1,e)}),s_=F(function(n,e,t){return Ju(n,qn(e)||0,t)});function a_(n){return oe(n,mr)}function _r(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new $n(T);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],f=t.cache;if(f.has(i))return f.get(i);var s=n.apply(this,r);return t.cache=f.set(i,s)||f,s};return t.cache=new(_r.Cache||ue),t}_r.Cache=ue;function pr(n){if(typeof n!="function")throw new $n(T);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function l_(n){return io(2,n)}var c_=Ql(function(n,e){e=e.length==1&&L(e[0])?nn(e[0],Mn(b())):nn(vn(e,1),Mn(b()));var t=e.length;return F(function(r){for(var i=-1,f=yn(r.length,t);++i=e}),Me=ef(function(){return arguments}())?ef:function(n){return tn(n)&&Y.call(n,"callee")&&!Hu.call(n,"callee")},L=h.isArray,E_=Au?Mn(Au):Fl;function Ln(n){return n!=null&&gr(n.length)&&!le(n)}function on(n){return tn(n)&&Ln(n)}function R_(n){return n===!0||n===!1||tn(n)&&Sn(n)==et}var Ae=Ha||Hi,L_=bu?Mn(bu):Pl;function C_(n){return tn(n)&&n.nodeType===1&&!At(n)}function T_(n){if(n==null)return!0;if(Ln(n)&&(L(n)||typeof n=="string"||typeof n.splice=="function"||Ae(n)||ke(n)||Me(n)))return!n.length;var e=An(n);if(e==Zn||e==Yn)return!n.size;if(mt(n))return!ui(n).length;for(var t in n)if(Y.call(n,t))return!1;return!0}function O_(n,e){return vt(n,e)}function D_(n,e,t){t=typeof t=="function"?t:o;var r=t?t(n,e):o;return r===o?vt(n,e,o,t):!!r}function Oi(n){if(!tn(n))return!1;var e=Sn(n);return e==Rt||e==es||typeof n.message=="string"&&typeof n.name=="string"&&!At(n)}function M_(n){return typeof n=="number"&&zu(n)}function le(n){if(!en(n))return!1;var e=Sn(n);return e==Lt||e==Ji||e==ns||e==rs}function lo(n){return typeof n=="number"&&n==C(n)}function gr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=_e}function en(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function tn(n){return n!=null&&typeof n=="object"}var co=Su?Mn(Su):Wl;function F_(n,e){return n===e||ii(n,e,yi(e))}function P_(n,e,t){return t=typeof t=="function"?t:o,ii(n,e,yi(e),t)}function B_(n){return ho(n)&&n!=+n}function W_(n){if(mc(n))throw new R(un);return tf(n)}function U_(n){return n===null}function N_(n){return n==null}function ho(n){return typeof n=="number"||tn(n)&&Sn(n)==rt}function At(n){if(!tn(n)||Sn(n)!=re)return!1;var e=Gt(n);if(e===null)return!0;var t=Y.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ut.call(t)==Pa}var Di=Iu?Mn(Iu):Ul;function $_(n){return lo(n)&&n>=-_e&&n<=_e}var _o=Eu?Mn(Eu):Nl;function dr(n){return typeof n=="string"||!L(n)&&tn(n)&&Sn(n)==ut}function Pn(n){return typeof n=="symbol"||tn(n)&&Sn(n)==Ct}var ke=Ru?Mn(Ru):$l;function H_(n){return n===o}function G_(n){return tn(n)&&An(n)==ft}function z_(n){return tn(n)&&Sn(n)==us}var K_=fr(fi),q_=fr(function(n,e){return n<=e});function po(n){if(!n)return[];if(Ln(n))return dr(n)?Xn(n):Rn(n);if(at&&n[at])return ba(n[at]());var e=An(n),t=e==Zn?Yr:e==Yn?Pt:Je;return t(n)}function ce(n){if(!n)return n===0?n:0;if(n=qn(n),n===Se||n===-Se){var e=n<0?-1:1;return e*Jo}return n===n?n:0}function C(n){var e=ce(n),t=e%1;return e===e?t?e-t:e:0}function go(n){return n?Ce(C(n),0,Vn):0}function qn(n){if(typeof n=="number")return n;if(Pn(n))return It;if(en(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=en(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Mu(n);var t=Es.test(n);return t||Ls.test(n)?fa(n.slice(2),t?2:8):Is.test(n)?It:+n}function vo(n){return ne(n,Cn(n))}function Z_(n){return n?Ce(C(n),-_e,_e):n===0?n:0}function K(n){return n==null?"":Fn(n)}var Y_=Ze(function(n,e){if(mt(e)||Ln(e)){ne(e,gn(e),n);return}for(var t in e)Y.call(e,t)&&pt(n,t,e[t])}),wo=Ze(function(n,e){ne(e,Cn(e),n)}),vr=Ze(function(n,e,t,r){ne(e,Cn(e),n,r)}),X_=Ze(function(n,e,t,r){ne(e,gn(e),n,r)}),k_=se(jr);function J_(n,e){var t=qe(n);return e==null?t:Xu(t,e)}var Q_=F(function(n,e){n=k(n);var t=-1,r=e.length,i=r>2?e[2]:o;for(i&&In(e[0],e[1],i)&&(r=1);++t1),f}),ne(n,xi(n),t),r&&(t=Gn(t,fn|bn|P,sc));for(var i=e.length;i--;)ci(t,e[i]);return t});function gp(n,e){return mo(n,pr(b(e)))}var dp=se(function(n,e){return n==null?{}:zl(n,e)});function mo(n,e){if(n==null)return{};var t=nn(xi(n),function(r){return[r]});return e=b(e),lf(n,t,function(r,i){return e(r,i[0])})}function vp(n,e,t){e=me(e,n);var r=-1,i=e.length;for(i||(i=1,n=o);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Ku();return yn(n+i*(e-n+ua("1e-"+((i+"").length-1))),e)}return si(n,e)}var Lp=Ye(function(n,e,t){return e=e.toLowerCase(),n+(t?bo(e):e)});function bo(n){return Pi(K(n).toLowerCase())}function So(n){return n=K(n),n&&n.replace(Ts,wa).replace(ks,"")}function Cp(n,e,t){n=K(n),e=Fn(e);var r=n.length;t=t===o?r:Ce(C(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function Tp(n){return n=K(n),n&&ls.test(n)?n.replace(ji,xa):n}function Op(n){return n=K(n),n&&ds.test(n)?n.replace(Tr,"\\$&"):n}var Dp=Ye(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Mp=Ye(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Fp=Ef("toLowerCase");function Pp(n,e,t){n=K(n),e=C(e);var r=e?$e(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return ur(Zt(i),t)+n+ur(qt(i),t)}function Bp(n,e,t){n=K(n),e=C(e);var r=e?$e(n):0;return e&&r>>0,t?(n=K(n),n&&(typeof e=="string"||e!=null&&!Di(e))&&(e=Fn(e),!e&&Ne(n))?ye(Xn(n),0,t):n.split(e,t)):[]}var zp=Ye(function(n,e,t){return n+(t?" ":"")+Pi(e)});function Kp(n,e,t){return n=K(n),t=t==null?0:Ce(C(t),0,n.length),e=Fn(e),n.slice(t,t+e.length)==e}function qp(n,e,t){var r=u.templateSettings;t&&In(n,e,t)&&(e=o),n=K(n),e=vr({},e,r,Mf);var i=vr({},e.imports,r.imports,Mf),f=gn(i),s=Zr(i,f),a,c,p=0,g=e.interpolate||Tt,d="__p += '",v=Xr((e.escape||Tt).source+"|"+g.source+"|"+(g===nu?Ss:Tt).source+"|"+(e.evaluate||Tt).source+"|$","g"),m="//# sourceURL="+(Y.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++na+"]")+` `;n.replace(v,function(I,B,N,Bn,En,Wn){return N||(N=Bn),d+=n.slice(p,Wn).replace(Os,ma),B&&(a=!0,d+=`' + __e(`+B+`) + '`),En&&(c=!0,d+=`'; `+En+`; __p += '`),N&&(d+=`' + ((__t = (`+N+`)) == null ? '' : __t) + '`),p=Wn+I.length,I}),d+=`'; `;var S=Y.call(e,"variable")&&e.variable;if(!S)d=`with (obj) { `+d+` } `;else if(As.test(S))throw new R(q);d=(c?d.replace(fs,""):d).replace(os,"$1").replace(ss,"$1;"),d="function("+(S||"obj")+`) { `+(S?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+d+`return __p }`;var M=Eo(function(){return z(f,m+"return "+d).apply(o,s)});if(M.source=d,Oi(M))throw M;return M}function Zp(n){return K(n).toLowerCase()}function Yp(n){return K(n).toUpperCase()}function Xp(n,e,t){if(n=K(n),n&&(t||e===o))return Mu(n);if(!n||!(e=Fn(e)))return n;var r=Xn(n),i=Xn(e),f=Fu(r,i),s=Pu(r,i)+1;return ye(r,f,s).join("")}function kp(n,e,t){if(n=K(n),n&&(t||e===o))return n.slice(0,Wu(n)+1);if(!n||!(e=Fn(e)))return n;var r=Xn(n),i=Pu(r,Xn(e))+1;return ye(r,0,i).join("")}function Jp(n,e,t){if(n=K(n),n&&(t||e===o))return n.replace(Or,"");if(!n||!(e=Fn(e)))return n;var r=Xn(n),i=Fu(r,Xn(e));return ye(r,i).join("")}function Qp(n,e){var t=Ko,r=qo;if(en(e)){var i="separator"in e?e.separator:i;t="length"in e?C(e.length):t,r="omission"in e?Fn(e.omission):r}n=K(n);var f=n.length;if(Ne(n)){var s=Xn(n);f=s.length}if(t>=f)return n;var a=t-$e(r);if(a<1)return r;var c=s?ye(s,0,a).join(""):n.slice(0,a);if(i===o)return c+r;if(s&&(a+=c.length-a),Di(i)){if(n.slice(a).search(i)){var p,g=c;for(i.global||(i=Xr(i.source,K(eu.exec(i))+"g")),i.lastIndex=0;p=i.exec(g);)var d=p.index;c=c.slice(0,d===o?a:d)}}else if(n.indexOf(Fn(i),a)!=a){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function Vp(n){return n=K(n),n&&as.test(n)?n.replace(Vi,Ra):n}var jp=Ye(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Pi=Ef("toUpperCase");function Io(n,e,t){return n=K(n),e=t?o:e,e===o?Aa(n)?Ta(n):_a(n):n.match(e)||[]}var Eo=F(function(n,e){try{return Dn(n,o,e)}catch(t){return Oi(t)?t:new R(t)}}),ng=se(function(n,e){return Nn(e,function(t){t=ee(t),fe(n,t,Ci(n[t],n))}),n});function eg(n){var e=n==null?0:n.length,t=b();return n=e?nn(n,function(r){if(typeof r[1]!="function")throw new $n(T);return[t(r[0]),r[1]]}):[],F(function(r){for(var i=-1;++i_e)return[];var t=Vn,r=yn(n,Vn);e=b(e),n-=Vn;for(var i=qr(r,e);++t0||e<0)?new U(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=C(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},U.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},U.prototype.toArray=function(){return this.take(Vn)},jn(U.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],f=r||/^find/.test(e);!i||(u.prototype[e]=function(){var s=this.__wrapped__,a=r?[1]:arguments,c=s instanceof U,p=a[0],g=c||L(s),d=function(B){var N=i.apply(u,ge([B],a));return r&&v?N[0]:N};g&&t&&typeof p=="function"&&p.length!=1&&(c=g=!1);var v=this.__chain__,m=!!this.__actions__.length,S=f&&!v,M=c&&!m;if(!f&&g){s=M?s:new U(this);var I=n.apply(s,a);return I.__actions__.push({func:lr,args:[d],thisArg:o}),new Hn(I,v)}return S&&M?n.apply(this,a):(I=this.thru(d),S?r?I.value()[0]:I.value():I)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Bt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return e.apply(L(f)?f:[],i)}return this[t](function(s){return e.apply(L(s)?s:[],i)})}}),jn(U.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";Y.call(Ke,r)||(Ke[r]=[]),Ke[r].push({name:e,func:t})}}),Ke[rr(o,D).name]=[{name:"wrapper",func:o}],U.prototype.clone=Va,U.prototype.reverse=ja,U.prototype.value=nl,u.prototype.at=Ch,u.prototype.chain=Th,u.prototype.commit=Oh,u.prototype.next=Dh,u.prototype.plant=Fh,u.prototype.reverse=Ph,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Bh,u.prototype.first=u.prototype.head,at&&(u.prototype[at]=Mh),u},He=Oa();Ie?((Ie.exports=He)._=He,Wr._=He):dn._=He}).call(bt)})(Gi,Gi.exports);function Qd(){const y=Po(),E=Ve(),o=rn(()=>E.menuFromServer?E.appAsyncMenus:Jd);return{menuTree:rn(()=>{const W=Gi.exports.cloneDeep(o.value);W.sort((T,q)=>(T.meta.order||0)-(q.meta.order||0));function un(T,q){return T?T.map(Z=>{var fn,bn;if(!y.accessRouter(Z))return null;if(((fn=Z.meta)==null?void 0:fn.hideChildrenInMenu)||!Z.children)return Z.children=[],Z;Z.children=Z.children.filter(P=>{var A;return((A=P.meta)==null?void 0:A.hideInMenu)!==!0});const pn=un(Z.children,q+1);return pn.length||q>1?(Z.children=pn,Z):((bn=Z.meta)==null?void 0:bn.hideInMenu)===!1?Z:null}).filter(Boolean):null}return un(W,0)})}}function Vd(y){return typeof y=="function"||Object.prototype.toString.call(y)==="[object Object]"&&!rd(y)}const jd=je({emit:["collapse"],setup(){const{t:y}=Hg.exports.useI18n(),E=Ve(),o=xr(),H=Xi(),{menuTree:W}=Qd(),un=rn({get(){return E.device==="desktop"?E.menuCollapse:!1},set(P){E.updateSettings({menuCollapse:P})}}),T=rn(()=>E.topMenu),q=Qe([]),_n=Qe([]),Z=P=>{if(Yd.test(P.path)){Zd(P.path),_n.value=[P.name];return}const{hideInMenu:A,activeMenu:O}=P.meta;if(H.name===P.name&&!A&&!O){_n.value=[P.name];return}o.push({name:P.name})},pn=P=>{const A=[];let O=!1;const x=(D,$)=>{var J;if(D.name===P){O=!0,A.push(...$);return}(J=D.children)!=null&&J.length&&D.children.forEach(X=>{x(X,[...$,X.name])})};return W.value.forEach(D=>{O||x(D,[D.name])}),A};Bo(P=>{const{requiresAuth:A,activeMenu:O,hideInMenu:x}=P.meta;if(A&&(!x||O)){const D=pn(O||P.name),$=new Set([...D,...q.value]);q.value=[...$],_n.value=[O||D[D.length-1]]}},!0);const fn=P=>{E.device==="desktop"&&E.updateSettings({menuCollapse:P})},bn=()=>{function P(A,O=[]){return A&&A.forEach(x=>{var J;const D=(J=x==null?void 0:x.meta)!=null&&J.icon?()=>{var X;return Co(To(`<${(X=x==null?void 0:x.meta)==null?void 0:X.icon}/>`))}:null,$=(x==null?void 0:x.children)&&(x==null?void 0:x.children.length)!==0?G(id,{key:x==null?void 0:x.name},{default:()=>[P(x==null?void 0:x.children)],icon:D,title:()=>{var X;return Co(To(y(((X=x==null?void 0:x.meta)==null?void 0:X.locale)||"")))}}):G(ud,{key:x==null?void 0:x.name,onClick:()=>Z(x)},{default:()=>{var X;return[y(((X=x==null?void 0:x.meta)==null?void 0:X.locale)||"")]},icon:D});O.push($)}),O}return P(W.value)};return()=>{let P;return G(td,{mode:T.value?"horizontal":"vertical",collapsed:un.value,"onUpdate:collapsed":A=>un.value=A,"open-keys":q.value,"onUpdate:open-keys":A=>q.value=A,"show-collapse-button":E.device!=="mobile","auto-open":!1,"selected-keys":_n.value,"auto-open-selected":!0,"level-indent":34,style:"height: 100%;width:100%;",onCollapse:fn},Vd(P=bn())?P:{default:()=>[P]})}}});const zi=St(jd,[["__scopeId","data-v-90632f3f"]]),n0=y=>(Zi("data-v-61887b06"),y=y(),Yi(),y),e0={class:"navbar"},t0={class:"left-side"},r0=n0(()=>ln("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"},null,-1)),i0={class:"center-side"},u0={class:"right-side"},f0=je({__name:"index",setup(y){const E=Object.assign({"/src/drivers/silenty4ng.json":$d,"/src/drivers/silenty4ngk.json":Gd,"/src/drivers/todo.json":Kd}),o=Ve(),H=Ki();qd(),Gg();const{isFullscreen:W,toggle:un}=Md();rn(()=>H.avatar);const T=rn(()=>o.theme),q=rn(()=>o.topMenu&&o.menu),_n=Fd({selector:"body",attribute:"arco-theme",valueDark:"dark",valueLight:"light",storageKey:"arco-theme",onChanged(A){o.toggleTheme(A)}}),Z=Pd(_n),pn=()=>{Z()};Qe();const fn=fd("toggleDrawerMenu"),bn={"LOSEHU.*P.*K":"silenty4ngk.json","LOSEHU.*P.*":"silenty4ng.json","LOSEHU.*K":"todo.json","LOSEHU.*":"todo.json"},P=async()=>{if(o.connectState==!1){try{o.connectPort&&await Fo(o.connectPort)}catch{}const A=await Wd();if(!A){alert("\u8FDE\u63A5\u5931\u8D25");return}const O={};Object.keys(E).forEach($=>{O[$.substring($.lastIndexOf("/")+1)]=E[$].default});let x=null;const D=await Ud(A);Object.keys(bn).some($=>{if(new RegExp($).test(D))return x=O[bn[$]],!0}),o.updateSettings({connectState:!0,connectPort:A,firmwareVersion:D,configuration:x})}else Fo(o.connectPort),o.updateSettings({connectState:!1,connectPort:null,firmwareVersion:""})};return(A,O)=>{const x=od,D=sd,$=ad,J=ld,X=zg,xn=Kg,mn=cd,On=qg,te=hd;return an(),wr("div",e0,[ln("div",t0,[G($,null,{default:j(()=>[r0,G(x,{style:{margin:0,fontSize:"18px"},heading:5},{default:j(()=>[Oo(" K5Web \u5DE5\u5177\u7BB1 ")]),_:1}),!q.value&&be(o).device==="mobile"?(an(),wn(D,{key:0,style:{"font-size":"22px",cursor:"pointer"},onClick:be(fn)},null,8,["onClick"])):Fe("",!0)]),_:1})]),ln("div",i0,[q.value?(an(),wn(zi,{key:0})):Fe("",!0)]),ln("ul",u0,[ln("li",null,[G(J,{type:"primary",onClick:P},{default:j(()=>[Oo(Wo(be(o).connectState?"\u65AD\u5F00":"\u8FDE\u63A5"),1)]),_:1})]),ln("li",null,[G(mn,{content:T.value==="light"?A.$t("settings.navbar.theme.toDark"):A.$t("settings.navbar.theme.toLight")},{default:j(()=>[G(J,{class:"nav-btn",type:"outline",shape:"circle",onClick:pn},{icon:j(()=>[T.value==="dark"?(an(),wn(X,{key:0})):(an(),wn(xn,{key:1}))]),_:1})]),_:1},8,["content"])]),ln("li",null,[G(mn,{content:be(W)?A.$t("settings.navbar.screen.toExit"):A.$t("settings.navbar.screen.toFull")},{default:j(()=>[G(J,{class:"nav-btn",type:"outline",shape:"circle",onClick:be(un)},{icon:j(()=>[be(W)?(an(),wn(On,{key:0})):(an(),wn(te,{key:1}))]),_:1},8,["onClick"])]),_:1},8,["content"])])])])}}});const o0=St(f0,[["__scopeId","data-v-61887b06"]]);const nt=y=>(Zi("data-v-10c1deb7"),y=y(),Yi(),y),s0={class:"tag-link"},a0=nt(()=>ln("span",null,"\u91CD\u65B0\u52A0\u8F7D",-1)),l0=nt(()=>ln("span",null,"\u5173\u95ED\u5F53\u524D\u6807\u7B7E\u9875",-1)),c0=nt(()=>ln("span",null,"\u5173\u95ED\u5DE6\u4FA7\u6807\u7B7E\u9875",-1)),h0=nt(()=>ln("span",null,"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",-1)),_0=nt(()=>ln("span",null,"\u5173\u95ED\u5176\u5B83\u6807\u7B7E\u9875",-1)),p0=nt(()=>ln("span",null,"\u5173\u95ED\u5168\u90E8\u6807\u7B7E\u9875",-1)),g0=je({__name:"tab-item",props:{itemData:{type:Object,default(){return[]}},index:{type:Number,default:0}},setup(y){const E=y,o=xr(),H=Xi(),W=qi(),un=A=>{o.push({...A})},T=rn(()=>W.getTabList),q=rn(()=>E.itemData.fullPath!==H.fullPath),_n=rn(()=>E.index===0),Z=rn(()=>[0,1].includes(E.index)),pn=rn(()=>E.index===T.value.length-1),fn=(A,O)=>{if(W.deleteTag(O,A),E.itemData.fullPath===H.fullPath){const x=T.value[O-1];o.push({name:x.name})}},bn=()=>T.value.findIndex(A=>A.fullPath===H.fullPath),P=async A=>{const{itemData:O,index:x}=E,D=[...T.value];if(A==="current")fn(O,x);else if(A==="left"){const $=bn();D.splice(1,E.index-1),W.freshTabList(D),$x&&o.push({name:O.name})}else if(A==="others"){const $=T.value.filter((J,X)=>X===0||X===E.index);W.freshTabList($),o.push({name:O.name})}else A==="reload"?(W.deleteCache(O),await o.push({name:Zg,params:{path:H.fullPath}}),W.addCache(O.name)):(W.resetTabList(),o.push({name:Yg}))};return(A,O)=>{const x=pd,D=Xg,$=gd,J=kg,X=Jg,xn=Qg,mn=Vg,On=dd;return an(),wn(On,{trigger:"contextMenu","popup-max-height":!1,onSelect:P},{content:j(()=>[G($,{disabled:q.value,value:"reload"},{default:j(()=>[G(D),a0]),_:1},8,["disabled","value"]),G($,{class:"sperate-line",disabled:_n.value,value:"current"},{default:j(()=>[G(x),l0]),_:1},8,["disabled","value"]),G($,{disabled:Z.value,value:"left"},{default:j(()=>[G(J),c0]),_:1},8,["disabled","value"]),G($,{class:"sperate-line",disabled:pn.value,value:"right"},{default:j(()=>[G(X),h0]),_:1},8,["disabled","value"]),G($,{value:"others"},{default:j(()=>[G(xn),_0]),_:1},8,["value"]),G($,{value:"all"},{default:j(()=>[G(mn),p0]),_:1},8,["value"])]),default:j(()=>[ln("span",{class:Uo(["arco-tag arco-tag-size-medium arco-tag-checked",{"link-activated":y.itemData.fullPath===A.$route.fullPath}]),onClick:O[1]||(O[1]=te=>un(y.itemData))},[ln("span",s0,Wo(A.$t(y.itemData.title)),1),ln("span",{class:"arco-icon-hover arco-tag-icon-hover arco-icon-hover-size-medium arco-tag-close-btn",onClick:O[0]||(O[0]=_d(te=>fn(y.itemData,y.index),["stop"]))},[G(x)])],2)]),_:1})}}});const d0=St(g0,[["__scopeId","data-v-10c1deb7"]]),v0=y=>(Zi("data-v-2744fb32"),y=y(),Yi(),y),w0={class:"tab-bar-container"},x0={class:"tab-bar-box"},m0={class:"tab-bar-scroll"},y0={class:"tags-wrap"},A0=v0(()=>ln("div",{class:"tag-bar-operation"},null,-1)),b0=je({__name:"index",setup(y){const E=Ve(),o=qi(),H=Qe(),W=rn(()=>o.getTabList),un=rn(()=>E.navbar?60:0);return No(()=>E.navbar,()=>{H.value.updatePosition()}),Bo(T=>{!T.meta.noAffix&&!W.value.some(q=>q.fullPath===T.fullPath)&&o.updateTabList(T)},!0),vd(()=>{jg()}),(T,q)=>{const _n=md;return an(),wr("div",w0,[G(_n,{ref_key:"affixRef",ref:H,"offset-top":un.value},{default:j(()=>[ln("div",x0,[ln("div",m0,[ln("div",y0,[(an(!0),wr(wd,null,xd(W.value,(Z,pn)=>(an(),wn(d0,{key:Z.fullPath,index:pn,"item-data":Z},null,8,["index","item-data"]))),128))])]),A0])]),_:1},8,["offset-top"])])}}});const S0=St(b0,[["__scopeId","data-v-2744fb32"]]);function I0(y,E,o,H=!1){y.addEventListener&&typeof y.addEventListener=="function"&&y.addEventListener(E,o,H)}function E0(y,E,o,H=!1){y.removeEventListener&&typeof y.removeEventListener=="function"&&y.removeEventListener(E,o,H)}const R0=992;function L0(){return document.body.getBoundingClientRect().width-1{y&&H()}),yd(()=>{I0(window,"resize",H)}),Ad(()=>{E0(window,"resize",H)})}const T0=je({__name:"page-layout",setup(y){const E=qi(),o=rn(()=>E.getCacheList);return(H,W)=>{const un=bd("router-view");return an(),wn(un,null,{default:j(({Component:T,route:q})=>[G(Id,{name:"fade",mode:"out-in",appear:""},{default:j(()=>[q.meta.ignoreCache?(an(),wn(Do(T),{key:q.fullPath})):(an(),wn(Sd,{key:1,include:o.value},[(an(),wn(Do(T),{key:q.fullPath}))],1032,["include"]))]),_:2},1024)]),_:1})}}}),O0={key:0,class:"layout-navbar"},D0={class:"menu-wrapper"},M0="60px",F0=je({__name:"default-layout",setup(y){const E=Qe(!1),o=Ve(),H=Ki(),W=xr(),un=Xi(),T=Po();C0(!0);const q=rn(()=>o.navbar),_n=rn(()=>o.menu&&!o.topMenu),Z=rn(()=>o.hideMenu),pn=rn(()=>o.footer),fn=rn(()=>o.menuCollapse?48:o.menuWidth),bn=rn(()=>o.menuCollapse),P=rn(()=>{const D=_n.value&&!Z.value?{paddingLeft:`${fn.value}px`}:{},$=q.value?{paddingTop:M0}:{};return{...D,...$}}),A=D=>{!E.value||o.updateSettings({menuCollapse:D})};No(()=>H.role,D=>{D&&!T.accessRouter(un)&&W.push({name:"notFound"})});const O=Qe(!1),x=()=>{O.value=!1};return Ed("toggleDrawerMenu",()=>{O.value=!O.value}),$o(()=>{E.value=!0}),(D,$)=>{const J=Cd,X=Td,xn=Od,mn=Dd;return an(),wn(mn,{class:Uo(["layout",{mobile:be(o).hideMenu}])},{default:j(()=>[q.value?(an(),wr("div",O0,[G(o0)])):Fe("",!0),G(mn,null,{default:j(()=>[G(mn,null,{default:j(()=>[_n.value?Rd((an(),wn(J,{key:0,class:"layout-sider",breakpoint:"xl",collapsed:bn.value,collapsible:!0,width:fn.value,style:Mo({paddingTop:q.value?"60px":""}),"hide-trigger":!0,onCollapse:A},{default:j(()=>[ln("div",D0,[G(zi)])]),_:1},8,["collapsed","width","style"])),[[Ld,!Z.value]]):Fe("",!0),Z.value?(an(),wn(X,{key:1,visible:O.value,placement:"left",footer:!1,"mask-closable":"",closable:!1,onCancel:x},{default:j(()=>[G(zi)]),_:1},8,["visible"])):Fe("",!0),G(mn,{class:"layout-content",style:Mo(P.value)},{default:j(()=>[be(o).tabBar?(an(),wn(S0,{key:0})):Fe("",!0),G(xn,null,{default:j(()=>[G(T0)]),_:1}),pn.value?(an(),wn(nd,{key:1})):Fe("",!0)]),_:1},8,["style"])]),_:1})]),_:1})]),_:1},8,["class"])}}});const Z0=St(F0,[["__scopeId","data-v-428bc3c1"]]);export{Z0 as default};