import{b as Rd,c as Pd,d as Dd,w as Fd,u as uu,e as Md,f as Bd,g as Zf,h as ot,v as Yf,l as Xf,_ as Ft,i as Ud,j as $d,L as Wd,k as Hd,m as Nd,n as Kd,o as ou,R as kd,D as zd,p as Gd,q as qd,r as Zd,s as Yd,t as Xd,x as Jd}from"./index.3a834e58.js";import{F as Qd}from"./index.7e4d0707.js";import{d as Ke,c as an,aI as A,a_ as Vd,aO as Rt,f as ut,bh as jd,aU as nv,h as Nf,bi as Kf,bj as ev,bk as tv,i as rv,ba as iv,bl as uv,bm as Jf,C as V,D as Te,G as J,aH as F,aM as He,aN as Ie,u as Tn,aE as dn,aF as Ne,aK as Pt,aJ as nu,bn as ov,Q as fv,a$ as av,bo as eu,bp as tu,a0 as sv,bq as Qf,ao as lv,E as Vf,br as cv,a2 as hv,be as jf,bf as na,w as ea,bs as _v,bt as pv,o as ta,bu as gv,b as dv,b2 as vv,bv as kf,bw as mv,bx as wv,p as xv,aZ as bv,by as yv,F as zf,bz as Sv,bA as Av}from"./arco.b289f6bb.js";import{f as Rr,h as fu,i as Lv,j as Cv,k as Ev,l as Iv}from"./vue.e0867ae8.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Gf,c as Tv,e as Ov}from"./serial.c741fbda.js";import{u as Rv,a as Pv,_ as Dt,b as Dv}from"./useConfig.1a69b527.js";import{u as Fv}from"./useDisabled.e7ff81a3.js";import"./chart.7501771f.js";/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Mv={content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},download:{type:[String,Boolean]},hover:{type:String,default:"underline",validator:function(v){return v?["color","underline"].includes(v):!0}},href:{type:String,default:""},prefixIcon:{type:Function},size:{type:String,default:"medium",validator:function(v){return v?["small","medium","large"].includes(v):!0}},suffixIcon:{type:Function},target:{type:String,default:""},theme:{type:String,default:"default",validator:function(v){return v?["default","primary","danger","warning","success"].includes(v):!0}},underline:Boolean,onClick:Function};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function qf(b,v){var f=Object.keys(b);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(b);v&&(y=y.filter(function(W){return Object.getOwnPropertyDescriptor(b,W).enumerable})),f.push.apply(f,y)}return f}function Bv(b){for(var v=1;v{await v.logout();const W=b.currentRoute.value;Vd.success("\u767B\u51FA\u6210\u529F"),b.push({name:y&&typeof y=="string"?y:"login",query:{...b.currentRoute.value.query,redirect:W.name}})}}}const o1=(b,v)=>{const{target:f="_blank",...y}=v||{};window.open(b,f,Object.entries(y).reduce((W,en)=>{const[T,z]=en;return[...W,`${T}=${z}`]},[]).join(","))},f1=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"),a1=[...Md,...Bd],s1=a1.map(b=>{const{name:v,path:f,meta:y,redirect:W,children:en}=b;return{name:v,path:f,meta:y,redirect:W,children:en}}),l1=s1;var ru={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(b,v){(function(){var f,y="4.17.21",W=200,en="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",T="Expected a function",z="Invalid `variable` option passed into `_.template`",hn="__lodash_hash_undefined__",G=500,on="__lodash_placeholder__",j=1,_n=2,B=4,O=1,P=2,x=1,U=2,X=4,rn=8,L=16,vn=32,mn=64,yn=128,Xn=256,Sn=512,te=30,Mt="...",Oe=800,Bt=16,at=1,Ut=2,$t=3,re=1/0,ie=9007199254740991,Pr=17976931348623157e292,On=0/0,ue=4294967295,ka=ue-1,za=ue>>>1,Ga=[["ary",yn],["bind",x],["bindKey",U],["curry",rn],["curryRight",L],["flip",Sn],["partial",vn],["partialRight",mn],["rearg",Xn]],ke="[object Arguments]",Wt="[object Array]",qa="[object AsyncFunction]",st="[object Boolean]",lt="[object Date]",Za="[object DOMException]",Ht="[object Error]",Nt="[object Function]",au="[object GeneratorFunction]",Jn="[object Map]",ct="[object Number]",Ya="[object Null]",se="[object Object]",su="[object Promise]",Xa="[object Proxy]",ht="[object RegExp]",Qn="[object Set]",_t="[object String]",Kt="[object Symbol]",Ja="[object Undefined]",pt="[object WeakMap]",Qa="[object WeakSet]",gt="[object ArrayBuffer]",ze="[object DataView]",Dr="[object Float32Array]",Fr="[object Float64Array]",Mr="[object Int8Array]",Br="[object Int16Array]",Ur="[object Int32Array]",$r="[object Uint8Array]",Wr="[object Uint8ClampedArray]",Hr="[object Uint16Array]",Nr="[object Uint32Array]",Va=/\b__p \+= '';/g,ja=/\b(__p \+=) '' \+/g,ns=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lu=/&(?:amp|lt|gt|quot|#39);/g,cu=/[&<>"']/g,es=RegExp(lu.source),ts=RegExp(cu.source),rs=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,hu=/<%=([\s\S]+?)%>/g,us=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,os=/^\w*$/,fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kr=/[\\^$.*+?()[\]{}|]/g,as=RegExp(Kr.source),kr=/^\s+/,ss=/\s/,ls=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,cs=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,_s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ps=/[()=,{}\[\]\/\s]/,gs=/\\(\\)?/g,ds=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_u=/\w*$/,vs=/^[-+]0x[0-9a-f]+$/i,ms=/^0b[01]+$/i,ws=/^\[object .+?Constructor\]$/,xs=/^0o[0-7]+$/i,bs=/^(?:0|[1-9]\d*)$/,ys=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=/($^)/,Ss=/['\n\r\u2028\u2029\\]/g,zt="\\ud800-\\udfff",As="\\u0300-\\u036f",Ls="\\ufe20-\\ufe2f",Cs="\\u20d0-\\u20ff",pu=As+Ls+Cs,gu="\\u2700-\\u27bf",du="a-z\\xdf-\\xf6\\xf8-\\xff",Es="\\xac\\xb1\\xd7\\xf7",Is="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ts="\\u2000-\\u206f",Os=" \\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",vu="A-Z\\xc0-\\xd6\\xd8-\\xde",mu="\\ufe0e\\ufe0f",wu=Es+Is+Ts+Os,zr="['\u2019]",Rs="["+zt+"]",xu="["+wu+"]",Gt="["+pu+"]",bu="\\d+",Ps="["+gu+"]",yu="["+du+"]",Su="[^"+zt+wu+bu+gu+du+vu+"]",Gr="\\ud83c[\\udffb-\\udfff]",Ds="(?:"+Gt+"|"+Gr+")",Au="[^"+zt+"]",qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Zr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+vu+"]",Lu="\\u200d",Cu="(?:"+yu+"|"+Su+")",Fs="(?:"+Ge+"|"+Su+")",Eu="(?:"+zr+"(?:d|ll|m|re|s|t|ve))?",Iu="(?:"+zr+"(?:D|LL|M|RE|S|T|VE))?",Tu=Ds+"?",Ou="["+mu+"]?",Ms="(?:"+Lu+"(?:"+[Au,qr,Zr].join("|")+")"+Ou+Tu+")*",Bs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Us="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ru=Ou+Tu+Ms,$s="(?:"+[Ps,qr,Zr].join("|")+")"+Ru,Ws="(?:"+[Au+Gt+"?",Gt,qr,Zr,Rs].join("|")+")",Hs=RegExp(zr,"g"),Ns=RegExp(Gt,"g"),Yr=RegExp(Gr+"(?="+Gr+")|"+Ws+Ru,"g"),Ks=RegExp([Ge+"?"+yu+"+"+Eu+"(?="+[xu,Ge,"$"].join("|")+")",Fs+"+"+Iu+"(?="+[xu,Ge+Cu,"$"].join("|")+")",Ge+"?"+Cu+"+"+Eu,Ge+"+"+Iu,Us,Bs,bu,$s].join("|"),"g"),ks=RegExp("["+Lu+zt+pu+mu+"]"),zs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gs=["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"],qs=-1,tn={};tn[Dr]=tn[Fr]=tn[Mr]=tn[Br]=tn[Ur]=tn[$r]=tn[Wr]=tn[Hr]=tn[Nr]=!0,tn[ke]=tn[Wt]=tn[gt]=tn[st]=tn[ze]=tn[lt]=tn[Ht]=tn[Nt]=tn[Jn]=tn[ct]=tn[se]=tn[ht]=tn[Qn]=tn[_t]=tn[pt]=!1;var nn={};nn[ke]=nn[Wt]=nn[gt]=nn[ze]=nn[st]=nn[lt]=nn[Dr]=nn[Fr]=nn[Mr]=nn[Br]=nn[Ur]=nn[Jn]=nn[ct]=nn[se]=nn[ht]=nn[Qn]=nn[_t]=nn[Kt]=nn[$r]=nn[Wr]=nn[Hr]=nn[Nr]=!0,nn[Ht]=nn[Nt]=nn[pt]=!1;var Zs={\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"},Ys={"&":"&","<":"<",">":">",'"':""","'":"'"},Xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},Js={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qs=parseFloat,Vs=parseInt,Pu=typeof Rt=="object"&&Rt&&Rt.Object===Object&&Rt,js=typeof self=="object"&&self&&self.Object===Object&&self,xn=Pu||js||Function("return this")(),Xr=v&&!v.nodeType&&v,Re=Xr&&!0&&b&&!b.nodeType&&b,Du=Re&&Re.exports===Xr,Jr=Du&&Pu.process,Nn=function(){try{var l=Re&&Re.require&&Re.require("util").types;return l||Jr&&Jr.binding&&Jr.binding("util")}catch{}}(),Fu=Nn&&Nn.isArrayBuffer,Mu=Nn&&Nn.isDate,Bu=Nn&&Nn.isMap,Uu=Nn&&Nn.isRegExp,$u=Nn&&Nn.isSet,Wu=Nn&&Nn.isTypedArray;function Mn(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 nl(l,_,h,w){for(var R=-1,q=l==null?0:l.length;++R-1}function Qr(l,_,h){for(var w=-1,R=l==null?0:l.length;++w-1;);return h}function Zu(l,_){for(var h=l.length;h--&&qe(_,l[h],0)>-1;);return h}function sl(l,_){for(var h=l.length,w=0;h--;)l[h]===_&&++w;return w}var ll=ei(Zs),cl=ei(Ys);function hl(l){return"\\"+Js[l]}function _l(l,_){return l==null?f:l[_]}function Ze(l){return ks.test(l)}function pl(l){return zs.test(l)}function gl(l){for(var _,h=[];!(_=l.next()).done;)h.push(_.value);return h}function ui(l){var _=-1,h=Array(l.size);return l.forEach(function(w,R){h[++_]=[R,w]}),h}function Yu(l,_){return function(h){return l(_(h))}}function be(l,_){for(var h=-1,w=l.length,R=0,q=[];++h-1}function tc(n,e){var t=this.__data__,r=sr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}le.prototype.clear=Vl,le.prototype.delete=jl,le.prototype.get=nc,le.prototype.has=ec,le.prototype.set=tc;function ce(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,o){var a,s=e&j,c=e&_n,p=e&B;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!fn(n))return n;var g=D(n);if(g){if(a=oh(n),!s)return Rn(n,a)}else{var d=Ln(n),m=d==Nt||d==au;if(Ee(n))return Ro(n,s);if(d==se||d==ke||m&&!i){if(a=c||m?{}:Jo(n),!s)return c?Xc(n,mc(a,n)):Yc(n,oo(a,n))}else{if(!nn[d])return i?n:{};a=fh(n,d,s)}}o||(o=new jn);var S=o.get(n);if(S)return S;o.set(n,a),Cf(n)?n.forEach(function(I){a.add(Gn(I,e,t,I,n,o))}):Af(n)&&n.forEach(function(I,N){a.set(N,Gn(I,e,t,N,n,o))});var E=p?c?Ri:Oi:c?Dn:wn,$=g?f:E(n);return Kn($||n,function(I,N){$&&(N=I,I=n[N]),yt(a,N,Gn(I,e,t,N,n,o))}),a}function wc(n){var e=wn(n);return function(t){return fo(t,n,e)}}function fo(n,e,t){var r=t.length;if(n==null)return!r;for(n=Q(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function ao(n,e,t){if(typeof n!="function")throw new kn(T);return Tt(function(){n.apply(f,t)},e)}function St(n,e,t,r){var i=-1,o=qt,a=!0,s=n.length,c=[],p=e.length;if(!s)return c;t&&(e=un(e,Bn(t))),r?(o=Qr,a=!1):e.length>=W&&(o=dt,a=!1,e=new Fe(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:M(r),r<0&&(r+=i),r=t>r?0:If(r);t0&&t(s)?e>1?bn(s,e-1,t,r,i):xe(i,s):r||(i[i.length]=s)}return i}var hi=Uo(),co=Uo(!0);function oe(n,e){return n&&hi(n,e,wn)}function _i(n,e){return n&&co(n,e,wn)}function cr(n,e){return we(e,function(t){return de(n[t])})}function Be(n,e){e=Le(e,n);for(var t=0,r=e.length;n!=null&&te}function yc(n,e){return n!=null&&Y.call(n,e)}function Sc(n,e){return n!=null&&e in Q(n)}function Ac(n,e,t){return n>=An(e,t)&&n=120&&g.length>=120)?new Fe(a&&g):f}g=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&tr.call(s,c,1),tr.call(n,c,1);return n}function So(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;ge(i)?tr.call(n,i,1):Si(n,i)}}return n}function xi(n,e){return n+ur(to()*(e-n+1))}function Uc(n,e,t,r){for(var i=-1,o=gn(ir((e-n)/(t||1)),0),a=h(o);o--;)a[r?o:++i]=n,n+=t;return a}function bi(n,e){var t="";if(!n||e<1||e>ie)return t;do e%2&&(t+=n),e=ur(e/2),e&&(n+=n);while(e);return t}function H(n,e){return $i(jo(n,e,Fn),n+"")}function $c(n){return uo(it(n))}function Wc(n,e){var t=it(n);return yr(t,Me(e,0,t.length))}function Ct(n,e,t,r){if(!fn(n))return n;e=Le(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=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 o=h(i);++r>>1,a=n[o];a!==null&&!$n(a)&&(t?a<=e:a=W){var p=e?null:jc(n);if(p)return Yt(p);a=!1,i=dt,c=new Fe}else c=e?[]:s;n:for(;++r=r?n:qn(n,e,t)}var Oo=Ol||function(n){return xn.clearTimeout(n)};function Ro(n,e){if(e)return n.slice();var t=n.length,r=Qu?Qu(t):new n.constructor(t);return n.copy(r),r}function Ei(n){var e=new n.constructor(n.byteLength);return new nr(e).set(new nr(n)),e}function zc(n,e){var t=e?Ei(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Gc(n){var e=new n.constructor(n.source,_u.exec(n));return e.lastIndex=n.lastIndex,e}function qc(n){return bt?Q(bt.call(n)):{}}function Po(n,e){var t=e?Ei(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function Do(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=$n(n),a=e!==f,s=e===null,c=e===e,p=$n(e);if(!s&&!p&&!o&&n>e||o&&a&&c&&!s&&!p||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!p&&n=s)return c;var p=t[r];return c*(p=="desc"?-1:1)}}return n.index-e.index}function Fo(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,p=gn(o-a,0),g=h(c+p),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&En(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=Q(e);++r-1?i[o?e[a]:a]:f}}function Ho(n){return pe(function(e){var t=e.length,r=t,i=zn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new kn(T);if(i&&!a&&xr(o)=="wrapper")var a=new zn([],!0)}for(r=a?r:t;++r1&&k.reverse(),g&&cs))return!1;var p=o.get(n),g=o.get(e);if(p&&g)return p==e&&g==n;var d=-1,m=!0,S=t&P?new Fe:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ls,`{ /* [wrapped with `+e+`] */ `)}function sh(n){return D(n)||We(n)||!!(no&&n&&n[no])}function ge(n,e){var t=typeof n;return e=e==null?ie:e,!!e&&(t=="number"||t!="symbol"&&bs.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Oe)return arguments[0]}else e=0;return n.apply(f,arguments)}}function yr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,hf(n,t)});function _f(n){var e=u(n);return e.__chain__=!0,e}function x_(n,e){return e(n),n}function Sr(n,e){return e(n)}var b_=pe(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return ci(o,n)};return e>1||this.__actions__.length||!(r instanceof K)||!ge(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Sr,args:[i],thisArg:f}),new zn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function y_(){return _f(this)}function S_(){return new zn(this.value(),this.__chain__)}function A_(){this.__values__===f&&(this.__values__=Ef(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function L_(){return this}function C_(n){for(var e,t=this;t instanceof ar;){var r=of(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function E_(){var n=this.__wrapped__;if(n instanceof K){var e=n;return this.__actions__.length&&(e=new K(this)),e=e.reverse(),e.__actions__.push({func:Sr,args:[Wi],thisArg:f}),new zn(e,this.__chain__)}return this.thru(Wi)}function I_(){return Io(this.__wrapped__,this.__actions__)}var T_=gr(function(n,e,t){Y.call(n,t)?++n[t]:he(n,t,1)});function O_(n,e,t){var r=D(n)?Hu:xc;return t&&En(n,e,t)&&(e=f),r(n,C(e,3))}function R_(n,e){var t=D(n)?we:lo;return t(n,C(e,3))}var P_=Wo(ff),D_=Wo(af);function F_(n,e){return bn(Ar(n,e),1)}function M_(n,e){return bn(Ar(n,e),re)}function B_(n,e,t){return t=t===f?1:M(t),bn(Ar(n,e),t)}function pf(n,e){var t=D(n)?Kn:Se;return t(n,C(e,3))}function gf(n,e){var t=D(n)?el:so;return t(n,C(e,3))}var U_=gr(function(n,e,t){Y.call(n,t)?n[t].push(e):he(n,t,[e])});function $_(n,e,t,r){n=Pn(n)?n:it(n),t=t&&!r?M(t):0;var i=n.length;return t<0&&(t=gn(i+t,0)),Tr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&qe(n,e,t)>-1}var W_=H(function(n,e,t){var r=-1,i=typeof e=="function",o=Pn(n)?h(n.length):[];return Se(n,function(a){o[++r]=i?Mn(e,a,t):At(a,e,t)}),o}),H_=gr(function(n,e,t){he(n,t,e)});function Ar(n,e){var t=D(n)?un:vo;return t(n,C(e,3))}function N_(n,e,t,r){return n==null?[]:(D(e)||(e=e==null?[]:[e]),t=r?f:t,D(t)||(t=t==null?[]:[t]),bo(n,e,t))}var K_=gr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function k_(n,e,t){var r=D(n)?Vr:zu,i=arguments.length<3;return r(n,C(e,4),t,i,Se)}function z_(n,e,t){var r=D(n)?tl:zu,i=arguments.length<3;return r(n,C(e,4),t,i,so)}function G_(n,e){var t=D(n)?we:lo;return t(n,Er(C(e,3)))}function q_(n){var e=D(n)?uo:$c;return e(n)}function Z_(n,e,t){(t?En(n,e,t):e===f)?e=1:e=M(e);var r=D(n)?gc:Wc;return r(n,e)}function Y_(n){var e=D(n)?dc:Nc;return e(n)}function X_(n){if(n==null)return 0;if(Pn(n))return Tr(n)?Ye(n):n.length;var e=Ln(n);return e==Jn||e==Qn?n.size:vi(n).length}function J_(n,e,t){var r=D(n)?jr:Kc;return t&&En(n,e,t)&&(e=f),r(n,C(e,3))}var Q_=H(function(n,e){if(n==null)return[];var t=e.length;return t>1&&En(n,e[0],e[1])?e=[]:t>2&&En(e[0],e[1],e[2])&&(e=[e[0]]),bo(n,bn(e,1),[])}),Lr=Rl||function(){return xn.Date.now()};function V_(n,e){if(typeof e!="function")throw new kn(T);return n=M(n),function(){if(--n<1)return e.apply(this,arguments)}}function df(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,_e(n,yn,f,f,f,f,e)}function vf(n,e){var t;if(typeof e!="function")throw new kn(T);return n=M(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Ni=H(function(n,e,t){var r=x;if(t.length){var i=be(t,tt(Ni));r|=vn}return _e(n,r,e,t,i)}),mf=H(function(n,e,t){var r=x|U;if(t.length){var i=be(t,tt(mf));r|=vn}return _e(e,r,n,t,i)});function wf(n,e,t){e=t?f:e;var r=_e(n,rn,f,f,f,f,f,e);return r.placeholder=wf.placeholder,r}function xf(n,e,t){e=t?f:e;var r=_e(n,L,f,f,f,f,f,e);return r.placeholder=xf.placeholder,r}function bf(n,e,t){var r,i,o,a,s,c,p=0,g=!1,d=!1,m=!0;if(typeof n!="function")throw new kn(T);e=Yn(e)||0,fn(t)&&(g=!!t.leading,d="maxWait"in t,o=d?gn(Yn(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function S(cn){var ee=r,me=i;return r=i=f,p=cn,a=n.apply(me,ee),a}function E(cn){return p=cn,s=Tt(N,e),g?S(cn):a}function $(cn){var ee=cn-c,me=cn-p,Hf=e-ee;return d?An(Hf,o-me):Hf}function I(cn){var ee=cn-c,me=cn-p;return c===f||ee>=e||ee<0||d&&me>=o}function N(){var cn=Lr();if(I(cn))return k(cn);s=Tt(N,$(cn))}function k(cn){return s=f,m&&r?S(cn):(r=i=f,a)}function Wn(){s!==f&&Oo(s),p=0,r=c=i=s=f}function In(){return s===f?a:k(Lr())}function Hn(){var cn=Lr(),ee=I(cn);if(r=arguments,i=this,c=cn,ee){if(s===f)return E(c);if(d)return Oo(s),s=Tt(N,e),S(c)}return s===f&&(s=Tt(N,e)),a}return Hn.cancel=Wn,Hn.flush=In,Hn}var j_=H(function(n,e){return ao(n,1,e)}),np=H(function(n,e,t){return ao(n,Yn(e)||0,t)});function ep(n){return _e(n,Sn)}function Cr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new kn(T);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(Cr.Cache||ce),t}Cr.Cache=ce;function Er(n){if(typeof n!="function")throw new kn(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 tp(n){return vf(2,n)}var rp=kc(function(n,e){e=e.length==1&&D(e[0])?un(e[0],Bn(C())):un(bn(e,1),Bn(C()));var t=e.length;return H(function(r){for(var i=-1,o=An(r.length,t);++i=e}),We=_o(function(){return arguments}())?_o:function(n){return sn(n)&&Y.call(n,"callee")&&!ju.call(n,"callee")},D=h.isArray,mp=Fu?Bn(Fu):Cc;function Pn(n){return n!=null&&Ir(n.length)&&!de(n)}function ln(n){return sn(n)&&Pn(n)}function wp(n){return n===!0||n===!1||sn(n)&&Cn(n)==st}var Ee=Dl||ji,xp=Mu?Bn(Mu):Ec;function bp(n){return sn(n)&&n.nodeType===1&&!Ot(n)}function yp(n){if(n==null)return!0;if(Pn(n)&&(D(n)||typeof n=="string"||typeof n.splice=="function"||Ee(n)||rt(n)||We(n)))return!n.length;var e=Ln(n);if(e==Jn||e==Qn)return!n.size;if(It(n))return!vi(n).length;for(var t in n)if(Y.call(n,t))return!1;return!0}function Sp(n,e){return Lt(n,e)}function Ap(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?Lt(n,e,f,t):!!r}function ki(n){if(!sn(n))return!1;var e=Cn(n);return e==Ht||e==Za||typeof n.message=="string"&&typeof n.name=="string"&&!Ot(n)}function Lp(n){return typeof n=="number"&&eo(n)}function de(n){if(!fn(n))return!1;var e=Cn(n);return e==Nt||e==au||e==qa||e==Xa}function Sf(n){return typeof n=="number"&&n==M(n)}function Ir(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ie}function fn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function sn(n){return n!=null&&typeof n=="object"}var Af=Bu?Bn(Bu):Tc;function Cp(n,e){return n===e||di(n,e,Di(e))}function Ep(n,e,t){return t=typeof t=="function"?t:f,di(n,e,Di(e),t)}function Ip(n){return Lf(n)&&n!=+n}function Tp(n){if(hh(n))throw new R(en);return po(n)}function Op(n){return n===null}function Rp(n){return n==null}function Lf(n){return typeof n=="number"||sn(n)&&Cn(n)==ct}function Ot(n){if(!sn(n)||Cn(n)!=se)return!1;var e=er(n);if(e===null)return!0;var t=Y.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Qt.call(t)==El}var zi=Uu?Bn(Uu):Oc;function Pp(n){return Sf(n)&&n>=-ie&&n<=ie}var Cf=$u?Bn($u):Rc;function Tr(n){return typeof n=="string"||!D(n)&&sn(n)&&Cn(n)==_t}function $n(n){return typeof n=="symbol"||sn(n)&&Cn(n)==Kt}var rt=Wu?Bn(Wu):Pc;function Dp(n){return n===f}function Fp(n){return sn(n)&&Ln(n)==pt}function Mp(n){return sn(n)&&Cn(n)==Qa}var Bp=wr(mi),Up=wr(function(n,e){return n<=e});function Ef(n){if(!n)return[];if(Pn(n))return Tr(n)?Vn(n):Rn(n);if(vt&&n[vt])return gl(n[vt]());var e=Ln(n),t=e==Jn?ui:e==Qn?Yt:it;return t(n)}function ve(n){if(!n)return n===0?n:0;if(n=Yn(n),n===re||n===-re){var e=n<0?-1:1;return e*Pr}return n===n?n:0}function M(n){var e=ve(n),t=e%1;return e===e?t?e-t:e:0}function If(n){return n?Me(M(n),0,ue):0}function Yn(n){if(typeof n=="number")return n;if($n(n))return On;if(fn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=fn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Gu(n);var t=ms.test(n);return t||xs.test(n)?Vs(n.slice(2),t?2:8):vs.test(n)?On:+n}function Tf(n){return fe(n,Dn(n))}function $p(n){return n?Me(M(n),-ie,ie):n===0?n:0}function Z(n){return n==null?"":Un(n)}var Wp=nt(function(n,e){if(It(e)||Pn(e)){fe(e,wn(e),n);return}for(var t in e)Y.call(e,t)&&yt(n,t,e[t])}),Of=nt(function(n,e){fe(e,Dn(e),n)}),Or=nt(function(n,e,t,r){fe(e,Dn(e),n,r)}),Hp=nt(function(n,e,t,r){fe(e,wn(e),n,r)}),Np=pe(ci);function Kp(n,e){var t=je(n);return e==null?t:oo(t,e)}var kp=H(function(n,e){n=Q(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&En(e[0],e[1],i)&&(r=1);++t1),o}),fe(n,Ri(n),t),r&&(t=Gn(t,j|_n|B,nh));for(var i=e.length;i--;)Si(t,e[i]);return t});function fg(n,e){return Pf(n,Er(C(e)))}var ag=pe(function(n,e){return n==null?{}:Mc(n,e)});function Pf(n,e){if(n==null)return{};var t=un(Ri(n),function(r){return[r]});return e=C(e),yo(n,t,function(r,i){return e(r,i[0])})}function sg(n,e,t){e=Le(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=to();return An(n+i*(e-n+Qs("1e-"+((i+"").length-1))),e)}return xi(n,e)}var xg=et(function(n,e,t){return e=e.toLowerCase(),n+(t?Mf(e):e)});function Mf(n){return Zi(Z(n).toLowerCase())}function Bf(n){return n=Z(n),n&&n.replace(ys,ll).replace(Ns,"")}function bg(n,e,t){n=Z(n),e=Un(e);var r=n.length;t=t===f?r:Me(M(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function yg(n){return n=Z(n),n&&ts.test(n)?n.replace(cu,cl):n}function Sg(n){return n=Z(n),n&&as.test(n)?n.replace(Kr,"\\$&"):n}var Ag=et(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Lg=et(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Cg=$o("toLowerCase");function Eg(n,e,t){n=Z(n),e=M(e);var r=e?Ye(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return mr(ur(i),t)+n+mr(ir(i),t)}function Ig(n,e,t){n=Z(n),e=M(e);var r=e?Ye(n):0;return e&&r>>0,t?(n=Z(n),n&&(typeof e=="string"||e!=null&&!zi(e))&&(e=Un(e),!e&&Ze(n))?Ce(Vn(n),0,t):n.split(e,t)):[]}var Mg=et(function(n,e,t){return n+(t?" ":"")+Zi(e)});function Bg(n,e,t){return n=Z(n),t=t==null?0:Me(M(t),0,n.length),e=Un(e),n.slice(t,t+e.length)==e}function Ug(n,e,t){var r=u.templateSettings;t&&En(n,e,t)&&(e=f),n=Z(n),e=Or({},e,r,Go);var i=Or({},e.imports,r.imports,Go),o=wn(i),a=ii(i,o),s,c,p=0,g=e.interpolate||kt,d="__p += '",m=oi((e.escape||kt).source+"|"+g.source+"|"+(g===hu?ds:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),S="//# sourceURL="+(Y.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qs+"]")+` `;n.replace(m,function(I,N,k,Wn,In,Hn){return k||(k=Wn),d+=n.slice(p,Hn).replace(Ss,hl),N&&(s=!0,d+=`' + __e(`+N+`) + '`),In&&(c=!0,d+=`'; `+In+`; __p += '`),k&&(d+=`' + ((__t = (`+k+`)) == null ? '' : __t) + '`),p=Hn+I.length,I}),d+=`'; `;var E=Y.call(e,"variable")&&e.variable;if(!E)d=`with (obj) { `+d+` } `;else if(ps.test(E))throw new R(z);d=(c?d.replace(Va,""):d).replace(ja,"$1").replace(ns,"$1;"),d="function("+(E||"obj")+`) { `+(E?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+d+`return __p }`;var $=$f(function(){return q(o,S+"return "+d).apply(f,a)});if($.source=d,ki($))throw $;return $}function $g(n){return Z(n).toLowerCase()}function Wg(n){return Z(n).toUpperCase()}function Hg(n,e,t){if(n=Z(n),n&&(t||e===f))return Gu(n);if(!n||!(e=Un(e)))return n;var r=Vn(n),i=Vn(e),o=qu(r,i),a=Zu(r,i)+1;return Ce(r,o,a).join("")}function Ng(n,e,t){if(n=Z(n),n&&(t||e===f))return n.slice(0,Xu(n)+1);if(!n||!(e=Un(e)))return n;var r=Vn(n),i=Zu(r,Vn(e))+1;return Ce(r,0,i).join("")}function Kg(n,e,t){if(n=Z(n),n&&(t||e===f))return n.replace(kr,"");if(!n||!(e=Un(e)))return n;var r=Vn(n),i=qu(r,Vn(e));return Ce(r,i).join("")}function kg(n,e){var t=te,r=Mt;if(fn(e)){var i="separator"in e?e.separator:i;t="length"in e?M(e.length):t,r="omission"in e?Un(e.omission):r}n=Z(n);var o=n.length;if(Ze(n)){var a=Vn(n);o=a.length}if(t>=o)return n;var s=t-Ye(r);if(s<1)return r;var c=a?Ce(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),zi(i)){if(n.slice(s).search(i)){var p,g=c;for(i.global||(i=oi(i.source,Z(_u.exec(i))+"g")),i.lastIndex=0;p=i.exec(g);)var d=p.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(Un(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function zg(n){return n=Z(n),n&&es.test(n)?n.replace(lu,wl):n}var Gg=et(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Zi=$o("toUpperCase");function Uf(n,e,t){return n=Z(n),e=t?f:e,e===f?pl(n)?yl(n):ul(n):n.match(e)||[]}var $f=H(function(n,e){try{return Mn(n,f,e)}catch(t){return ki(t)?t:new R(t)}}),qg=pe(function(n,e){return Kn(e,function(t){t=ae(t),he(n,t,Ni(n[t],n))}),n});function Zg(n){var e=n==null?0:n.length,t=C();return n=e?un(n,function(r){if(typeof r[1]!="function")throw new kn(T);return[t(r[0]),r[1]]}):[],H(function(r){for(var i=-1;++iie)return[];var t=ue,r=An(n,ue);e=C(e),n-=ue;for(var i=ri(r,e);++t0||e<0)?new K(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=M(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},K.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},K.prototype.toArray=function(){return this.take(ue)},oe(K.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],o=r||/^find/.test(e);!i||(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof K,p=s[0],g=c||D(a),d=function(N){var k=i.apply(u,xe([N],s));return r&&m?k[0]:k};g&&t&&typeof p=="function"&&p.length!=1&&(c=g=!1);var m=this.__chain__,S=!!this.__actions__.length,E=o&&!m,$=c&&!S;if(!o&&g){a=$?a:new K(this);var I=n.apply(a,s);return I.__actions__.push({func:Sr,args:[d],thisArg:f}),new zn(I,m)}return E&&$?n.apply(this,s):(I=this.thru(d),E?r?I.value()[0]:I.value():I)})}),Kn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Xt[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 o=this.value();return e.apply(D(o)?o:[],i)}return this[t](function(a){return e.apply(D(a)?a:[],i)})}}),oe(K.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";Y.call(Ve,r)||(Ve[r]=[]),Ve[r].push({name:e,func:t})}}),Ve[dr(f,U).name]=[{name:"wrapper",func:f}],K.prototype.clone=zl,K.prototype.reverse=Gl,K.prototype.value=ql,u.prototype.at=b_,u.prototype.chain=y_,u.prototype.commit=S_,u.prototype.next=A_,u.prototype.plant=C_,u.prototype.reverse=E_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=I_,u.prototype.first=u.prototype.head,vt&&(u.prototype[vt]=L_),u},Xe=Sl();Re?((Re.exports=Xe)._=Xe,Xr._=Xe):xn._=Xe}).call(Rt)})(ru,ru.exports);function c1(){const b=Zf(),v=ot(),f=an(()=>v.menuFromServer?v.appAsyncMenus:l1);return{menuTree:an(()=>{const W=ru.exports.cloneDeep(f.value);W.sort((T,z)=>(T.meta.order||0)-(z.meta.order||0));function en(T,z){return T?T.map(G=>{var j,_n;if(!b.accessRouter(G))return null;if(((j=G.meta)==null?void 0:j.hideChildrenInMenu)||!G.children)return G.children=[],G;G.children=G.children.filter(B=>{var O;return((O=B.meta)==null?void 0:O.hideInMenu)!==!0});const on=en(G.children,z+1);return on.length||z>1?(G.children=on,G):((_n=G.meta)==null?void 0:_n.hideInMenu)===!1?G:null}).filter(Boolean):null}return en(W,0)})}}function h1(b){return typeof b=="function"||Object.prototype.toString.call(b)==="[object Object]"&&!nv(b)}const _1=Ke({emit:["collapse"],setup(){const{t:b}=Yf.exports.useI18n(),v=ot(),f=Rr(),y=fu(),{menuTree:W}=c1(),en=an({get(){return v.device==="desktop"?v.menuCollapse:!1},set(B){v.updateSettings({menuCollapse:B})}}),T=an(()=>v.topMenu),z=ut([]),hn=ut([]),G=B=>{if(f1.test(B.path)){o1(B.path),hn.value=[B.name];return}const{hideInMenu:O,activeMenu:P}=B.meta;if(y.name===B.name&&!O&&!P){hn.value=[B.name];return}f.push({name:B.name})},on=B=>{const O=[];let P=!1;const x=(U,X)=>{var rn;if(U.name===B){P=!0,O.push(...X);return}(rn=U.children)!=null&&rn.length&&U.children.forEach(L=>{x(L,[...X,L.name])})};return W.value.forEach(U=>{P||x(U,[U.name])}),O};Xf(B=>{const{requiresAuth:O,activeMenu:P,hideInMenu:x}=B.meta;if(O&&(!x||P)){const U=on(P||B.name),X=new Set([...U,...z.value]);z.value=[...X],hn.value=[P||U[U.length-1]]}},!0);const j=B=>{v.device==="desktop"&&v.updateSettings({menuCollapse:B})},_n=()=>{function B(O,P=[]){return O&&O.forEach(x=>{var rn;const U=(rn=x==null?void 0:x.meta)!=null&&rn.icon?()=>{var L;return Nf(Kf(`<${(L=x==null?void 0:x.meta)==null?void 0:L.icon}/>`))}:null,X=(x==null?void 0:x.children)&&(x==null?void 0:x.children.length)!==0?A(ev,{key:x==null?void 0:x.name},{default:()=>[B(x==null?void 0:x.children)],icon:U,title:()=>{var L;return Nf(Kf(b(((L=x==null?void 0:x.meta)==null?void 0:L.locale)||"")))}}):A(tv,{key:x==null?void 0:x.name,onClick:()=>G(x)},{default:()=>{var L;return[b(((L=x==null?void 0:x.meta)==null?void 0:L.locale)||"")]},icon:U});P.push(X)}),P}return B(W.value)};return()=>{let B;return A(jd,{mode:T.value?"horizontal":"vertical",collapsed:en.value,"onUpdate:collapsed":O=>en.value=O,"open-keys":z.value,"onUpdate:open-keys":O=>z.value=O,"show-collapse-button":v.device!=="mobile","auto-open":!1,"selected-keys":hn.value,"auto-open-selected":!0,"level-indent":34,style:"height: 100%;width:100%;",onCollapse:j},h1(B=_n())?B:{default:()=>[B]})}}});const iu=Ft(_1,[["__scopeId","data-v-90632f3f"]]),p1={class:"navbar"},g1={class:"left-side"},d1={class:"center-side"},v1={class:"right-side"},m1=Ke({__name:"index",setup(b){const{t:v}=Yf.exports.useI18n(),f=Object.assign({"/src/drivers/losehu117.json":Hv,"/src/drivers/losehu117k.json":Kv,"/src/drivers/losehu118.json":zv,"/src/drivers/losehu118h.json":qv,"/src/drivers/losehu118k.json":Yv,"/src/drivers/losehu120k.json":Jv,"/src/drivers/losehu124h.json":Vv,"/src/drivers/lts.json":n1,"/src/drivers/ltsk.json":t1,"/src/drivers/todo.json":i1}),y=ot(),W=uu();u1();const{changeLocale:en,currentLocale:T}=Ud(),{isFullscreen:z,toggle:hn}=Lv(),G=[...Wd];an(()=>W.avatar);const on=an(()=>y.theme),j=an(()=>y.topMenu&&y.menu),_n=Cv({selector:"body",attribute:"arco-theme",valueDark:"dark",valueLight:"light",storageKey:"arco-theme",onChanged(L){y.toggleTheme(L)}}),B=Ev(_n),O=()=>{B()},P=ut(),x=()=>{const L=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});P.value.dispatchEvent(L)},U=rv("toggleDrawerMenu"),X={"LOSEHU.*P.*K":"ltsk.json","LOSEHU.*P.*":"lts.json","LOSEHU12[4-9].*HS":"losehu124h.json","LOSEHU12[4-9].*H":"losehu124h.json","LOSEHU12[0-3].*H":"losehu118h.json","LOSEHU12[0-9].*KS":"losehu120k.json","LOSEHU12[0-9].*K":"losehu120k.json","LOSEHU12[0-9].*":"losehu118.json","LOSEHU11[8-9].*H":"losehu118h.json","LOSEHU11[8-9].*K":"losehu118k.json","LOSEHU11[8-9].*":"losehu118.json","LOSEHU11[2-7].*K":"losehu117k.json","LOSEHU11[2-7].*":"losehu117.json",".*":"todo.json"},rn=async()=>{if(y.connectState==!1){try{y.connectPort&&await Gf(y.connectPort)}catch{}let L;if(/Mobi|Android|iPhone/i.test(navigator.userAgent)?(alert("\u624B\u673A\u5199\u9891\u5F00\u53D1\u4E2D\uFF0C\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528\u7535\u8111\u8FDE\u63A5\u7535\u53F0\u5199\u9891\uFF01\uFF01\uFF01In the development of mobile, it cannot be used normally. Please use a computer to connect!!!"),await serial.requestPort().then(Sn=>{L=Sn}),L&&await L.connect().then().catch(Sn=>{alert("\u8BF7\u5C1D\u8BD5\u5237\u65B0\u7F51\u9875\u91CD\u65B0\u63D2\u62D4\u5199\u9891\u7EBF")})):L=await Tv(),!L){alert(v("global.connectFail"));return}y.updateSettings({connectPort:L});const vn={};Object.keys(f).forEach(Sn=>{vn[Sn.substring(Sn.lastIndexOf("/")+1)]=f[Sn].default});let mn=null;const yn=await Ov(L),Xn={name:"TODO",uart:"official",charset:"official",K:!1,H:!1,localmdc:!1,sat:!1,newpinyin:!1};Object.keys(X).some(Sn=>{if(new RegExp(Sn).test(yn))return mn=Object.assign(Xn,vn[X[Sn]]),!0}),y.updateSettings({connectState:!0,firmwareVersion:yn,configuration:mn})}else await Gf(y.connectPort),y.updateSettings({connectState:!1,connectPort:null,firmwareVersion:""})};return(L,vn)=>{const mn=ov,yn=fv,Xn=iv,Sn=$v,te=av,Mt=$d,Oe=uv,Bt=sv,at=Qf,Ut=Jf,$t=Hd,re=Nd,ie=Kd,Pr=lv;return V(),Te("div",p1,[J("div",g1,[A(Xn,null,{default:F(()=>[A(mn,{style:{margin:0,fontSize:"18px"},heading:5},{default:F(()=>[He(Ie(!j.value&&Tn(y).device==="mobile"?"":"K5Web"),1)]),_:1}),!j.value&&Tn(y).device==="mobile"?(V(),dn(yn,{key:0,style:{"font-size":"22px",cursor:"pointer"},onClick:Tn(U)},null,8,["onClick"])):Ne("",!0)]),_:1})]),J("div",d1,[j.value?(V(),dn(iu,{key:0})):Ne("",!0)]),J("ul",v1,[!j.value&&Tn(y).device==="mobile"?(V(),Te(Pt,{key:0},[J("li",null,[A(Sn,{href:"https://txc.qq.com/products/647342",target:"_blank"},{default:F(()=>[He(Ie(L.$t("navbar.qa")),1)]),_:1})]),J("li",null,[A(te,{type:"primary",onClick:rn},{default:F(()=>[He(Ie(Tn(y).connectState?L.$t("navbar.disconnect"):L.$t("navbar.connect")),1)]),_:1})]),J("li",null,[A(Oe,{content:L.$t("settings.language")},{default:F(()=>[A(te,{class:"nav-btn",type:"outline",shape:"circle",onClick:x},{icon:F(()=>[A(Mt)]),_:1})]),_:1},8,["content"]),A(Ut,{trigger:"click",onSelect:Tn(en)},{content:F(()=>[(V(),Te(Pt,null,nu(G,On=>A(at,{key:On.value,value:On.value},{icon:F(()=>[eu(A(Bt,null,null,512),[[tu,On.value===Tn(T)]])]),default:F(()=>[He(" "+Ie(On.label),1)]),_:2},1032,["value"])),64))]),default:F(()=>[J("div",{ref_key:"triggerBtn",ref:P,class:"trigger-btn"},null,512)]),_:1},8,["onSelect"])]),J("li",null,[A(Oe,{content:on.value==="light"?L.$t("settings.navbar.theme.toDark"):L.$t("settings.navbar.theme.toLight")},{default:F(()=>[A(te,{class:"nav-btn",type:"outline",shape:"circle",onClick:O},{icon:F(()=>[on.value==="dark"?(V(),dn($t,{key:0})):(V(),dn(re,{key:1}))]),_:1})]),_:1},8,["content"])])],64)):(V(),Te(Pt,{key:1},[J("li",null,[A(Sn,{href:"https://txc.qq.com/products/647342",target:"_blank"},{default:F(()=>[He(Ie(L.$t("navbar.qa")),1)]),_:1})]),J("li",null,[A(te,{type:"primary",onClick:rn},{default:F(()=>[He(Ie(Tn(y).connectState?L.$t("navbar.disconnect"):L.$t("navbar.connect")),1)]),_:1})]),J("li",null,[A(Oe,{content:L.$t("settings.language")},{default:F(()=>[A(te,{class:"nav-btn",type:"outline",shape:"circle",onClick:x},{icon:F(()=>[A(Mt)]),_:1})]),_:1},8,["content"]),A(Ut,{trigger:"click",onSelect:Tn(en)},{content:F(()=>[(V(),Te(Pt,null,nu(G,On=>A(at,{key:On.value,value:On.value},{icon:F(()=>[eu(A(Bt,null,null,512),[[tu,On.value===Tn(T)]])]),default:F(()=>[He(" "+Ie(On.label),1)]),_:2},1032,["value"])),64))]),default:F(()=>[J("div",{ref_key:"triggerBtn",ref:P,class:"trigger-btn"},null,512)]),_:1},8,["onSelect"])]),J("li",null,[A(Oe,{content:on.value==="light"?L.$t("settings.navbar.theme.toDark"):L.$t("settings.navbar.theme.toLight")},{default:F(()=>[A(te,{class:"nav-btn",type:"outline",shape:"circle",onClick:O},{icon:F(()=>[on.value==="dark"?(V(),dn($t,{key:0})):(V(),dn(re,{key:1}))]),_:1})]),_:1},8,["content"])]),J("li",null,[A(Oe,{content:Tn(z)?L.$t("settings.navbar.screen.toExit"):L.$t("settings.navbar.screen.toFull")},{default:F(()=>[A(te,{class:"nav-btn",type:"outline",shape:"circle",onClick:Tn(hn)},{icon:F(()=>[Tn(z)?(V(),dn(ie,{key:0})):(V(),dn(Pr,{key:1}))]),_:1},8,["onClick"])]),_:1},8,["content"])])],64))])])}}});const w1=Ft(m1,[["__scopeId","data-v-f9cbf3f1"]]);const ft=b=>(jf("data-v-10c1deb7"),b=b(),na(),b),x1={class:"tag-link"},b1=ft(()=>J("span",null,"\u91CD\u65B0\u52A0\u8F7D",-1)),y1=ft(()=>J("span",null,"\u5173\u95ED\u5F53\u524D\u6807\u7B7E\u9875",-1)),S1=ft(()=>J("span",null,"\u5173\u95ED\u5DE6\u4FA7\u6807\u7B7E\u9875",-1)),A1=ft(()=>J("span",null,"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",-1)),L1=ft(()=>J("span",null,"\u5173\u95ED\u5176\u5B83\u6807\u7B7E\u9875",-1)),C1=ft(()=>J("span",null,"\u5173\u95ED\u5168\u90E8\u6807\u7B7E\u9875",-1)),E1=Ke({__name:"tab-item",props:{itemData:{type:Object,default(){return[]}},index:{type:Number,default:0}},setup(b){const v=b,f=Rr(),y=fu(),W=ou(),en=O=>{f.push({...O})},T=an(()=>W.getTabList),z=an(()=>v.itemData.fullPath!==y.fullPath),hn=an(()=>v.index===0),G=an(()=>[0,1].includes(v.index)),on=an(()=>v.index===T.value.length-1),j=(O,P)=>{if(W.deleteTag(P,O),v.itemData.fullPath===y.fullPath){const x=T.value[P-1];f.push({name:x.name})}},_n=()=>T.value.findIndex(O=>O.fullPath===y.fullPath),B=async O=>{const{itemData:P,index:x}=v,U=[...T.value];if(O==="current")j(P,x);else if(O==="left"){const X=_n();U.splice(1,v.index-1),W.freshTabList(U),Xx&&f.push({name:P.name})}else if(O==="others"){const X=T.value.filter((rn,L)=>L===0||L===v.index);W.freshTabList(X),f.push({name:P.name})}else O==="reload"?(W.deleteCache(P),await f.push({name:kd,params:{path:y.fullPath}}),W.addCache(P.name)):(W.resetTabList(),f.push({name:zd}))};return(O,P)=>{const x=hv,U=Gd,X=Qf,rn=qd,L=Zd,vn=Yd,mn=Xd,yn=Jf;return V(),dn(yn,{trigger:"contextMenu","popup-max-height":!1,onSelect:B},{content:F(()=>[A(X,{disabled:z.value,value:"reload"},{default:F(()=>[A(U),b1]),_:1},8,["disabled","value"]),A(X,{class:"sperate-line",disabled:hn.value,value:"current"},{default:F(()=>[A(x),y1]),_:1},8,["disabled","value"]),A(X,{disabled:G.value,value:"left"},{default:F(()=>[A(rn),S1]),_:1},8,["disabled","value"]),A(X,{class:"sperate-line",disabled:on.value,value:"right"},{default:F(()=>[A(L),A1]),_:1},8,["disabled","value"]),A(X,{value:"others"},{default:F(()=>[A(vn),L1]),_:1},8,["value"]),A(X,{value:"all"},{default:F(()=>[A(mn),C1]),_:1},8,["value"])]),default:F(()=>[J("span",{class:Vf(["arco-tag arco-tag-size-medium arco-tag-checked",{"link-activated":b.itemData.fullPath===O.$route.fullPath}]),onClick:P[1]||(P[1]=Xn=>en(b.itemData))},[J("span",x1,Ie(O.$t(b.itemData.title)),1),J("span",{class:"arco-icon-hover arco-tag-icon-hover arco-icon-hover-size-medium arco-tag-close-btn",onClick:P[0]||(P[0]=cv(Xn=>j(b.itemData,b.index),["stop"]))},[A(x)])],2)]),_:1})}}});const I1=Ft(E1,[["__scopeId","data-v-10c1deb7"]]),T1=b=>(jf("data-v-2744fb32"),b=b(),na(),b),O1={class:"tab-bar-container"},R1={class:"tab-bar-box"},P1={class:"tab-bar-scroll"},D1={class:"tags-wrap"},F1=T1(()=>J("div",{class:"tag-bar-operation"},null,-1)),M1=Ke({__name:"index",setup(b){const v=ot(),f=ou(),y=ut(),W=an(()=>f.getTabList),en=an(()=>v.navbar?60:0);return ea(()=>v.navbar,()=>{y.value.updatePosition()}),Xf(T=>{!T.meta.noAffix&&!W.value.some(z=>z.fullPath===T.fullPath)&&f.updateTabList(T)},!0),_v(()=>{Jd()}),(T,z)=>{const hn=pv;return V(),Te("div",O1,[A(hn,{ref_key:"affixRef",ref:y,"offset-top":en.value},{default:F(()=>[J("div",R1,[J("div",P1,[J("div",D1,[(V(!0),Te(Pt,null,nu(W.value,(G,on)=>(V(),dn(I1,{key:G.fullPath,index:on,"item-data":G},null,8,["index","item-data"]))),128))])]),F1])]),_:1},8,["offset-top"])])}}});const B1=Ft(M1,[["__scopeId","data-v-2744fb32"]]);function U1(b,v,f,y=!1){b.addEventListener&&typeof b.addEventListener=="function"&&b.addEventListener(v,f,y)}function $1(b,v,f,y=!1){b.removeEventListener&&typeof b.removeEventListener=="function"&&b.removeEventListener(v,f,y)}const W1=992;function H1(){return document.body.getBoundingClientRect().width-1{b&&y()}),gv(()=>{U1(window,"resize",y)}),dv(()=>{$1(window,"resize",y)})}const K1=Ke({__name:"page-layout",setup(b){const v=ou(),f=an(()=>v.getCacheList);return(y,W)=>{const en=vv("router-view");return V(),dn(en,null,{default:F(({Component:T,route:z})=>[A(wv,{name:"fade",mode:"out-in",appear:""},{default:F(()=>[z.meta.ignoreCache?(V(),dn(kf(T),{key:z.fullPath})):(V(),dn(mv,{key:1,include:f.value},[(V(),dn(kf(T),{key:z.fullPath}))],1032,["include"]))]),_:2},1024)]),_:1})}}}),k1={key:0,class:"layout-navbar"},z1={class:"menu-wrapper"},G1="60px",q1=Ke({__name:"default-layout",setup(b){const v=ut(!1),f=ot(),y=uu(),W=Rr(),en=fu(),T=Zf();N1(!0);const z=an(()=>f.navbar),hn=an(()=>f.menu&&!f.topMenu),G=an(()=>f.hideMenu),on=an(()=>f.footer),j=an(()=>f.menuCollapse?48:f.menuWidth),_n=an(()=>f.menuCollapse),B=an(()=>{const U=hn.value&&!G.value?{paddingLeft:`${j.value}px`}:{},X=z.value?{paddingTop:G1}:{};return{...U,...X}}),O=U=>{!v.value||f.updateSettings({menuCollapse:U})};ea(()=>y.role,U=>{U&&!T.accessRouter(en)&&W.push({name:"notFound"})});const P=ut(!1),x=()=>{P.value=!1};return xv("toggleDrawerMenu",()=>{P.value=!P.value}),ta(()=>{v.value=!0}),(U,X)=>{const rn=Sv,L=bv,vn=Av,mn=yv;return V(),dn(mn,{class:Vf(["layout",{mobile:Tn(f).hideMenu}])},{default:F(()=>[z.value?(V(),Te("div",k1,[A(w1)])):Ne("",!0),A(mn,null,{default:F(()=>[A(mn,null,{default:F(()=>[hn.value?eu((V(),dn(rn,{key:0,class:"layout-sider",breakpoint:"xl",collapsed:_n.value,collapsible:!0,width:j.value,style:zf({paddingTop:z.value?"60px":""}),"hide-trigger":!0,onCollapse:O},{default:F(()=>[J("div",z1,[A(iu)])]),_:1},8,["collapsed","width","style"])),[[tu,!G.value]]):Ne("",!0),G.value?(V(),dn(L,{key:1,visible:P.value,placement:"left",footer:!1,"mask-closable":"",closable:!1,onCancel:x,title:"K5Web"},{default:F(()=>[A(iu)]),_:1},8,["visible"])):Ne("",!0),A(mn,{class:"layout-content",style:zf(B.value)},{default:F(()=>[Tn(f).tabBar?(V(),dn(B1,{key:0})):Ne("",!0),A(vn,null,{default:F(()=>[A(K1)]),_:1}),on.value?(V(),dn(Qd,{key:1})):Ne("",!0)]),_:1},8,["style"])]),_:1})]),_:1})]),_:1},8,["class"])}}});const o0=Ft(q1,[["__scopeId","data-v-c6bccbe7"]]);export{o0 as default};