import{u as Gi,b as bd,c as Sd,d as Df,e as Ve,v as Ad,l as Pf,_ as At,f as Ld,g as Ed,h as Id,i as Td,j as qi,R as Rd,D as Cd,k as Od,m as Md,n as Dd,o as Pd,p as Fd,r as Bd}from"./index.fc1ffc8e.js";import{F as Wd}from"./index.aafca95c.js";import{aY as Ud,aO as St,c as rn,d as je,f as Qe,aI as N,bf as $d,bg as Hd,h as If,bh as Tf,bi as Nd,bj as Kd,i as zd,b8 as Gd,bk as qd,C as an,D as wr,G as ln,aH as j,aM as Rf,u as Se,aE as wn,aF as Pe,aN as Ff,bl as Zd,Q as Yd,aZ as kd,ao as Xd,bm as Jd,E as Bf,bn as Qd,a2 as Vd,bo as jd,bc as Wf,bd as Uf,w as $f,bp as n0,bq as e0,aK as t0,aJ as r0,o as Hf,br as i0,b as u0,b0 as o0,bs as Cf,bt as f0,bu as s0,p as a0,aX as l0,bv as c0,bw as h0,bx as _0,F as Of,by as p0,bz as g0}from"./arco.4738edf2.js";import{f as mr,h as Zi,i as d0,j as v0,k as w0,l as m0}from"./vue.202e581b.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as Mf,c as x0,e as y0}from"./serial.a589823e.js";import"./chart.a6be8b1c.js";const Nf="LoseHu 117 \u5386\u53F2\u7248\u672C",Kf="official",zf="official",b0={name:Nf,uart:Kf,charset:zf},S0=Object.freeze(Object.defineProperty({__proto__:null,name:Nf,uart:Kf,charset:zf,default:b0},Symbol.toStringTag,{value:"Module"})),Gf="LoseHu 117 \u5386\u53F2\u7248\u672C\u6269\u5BB9\u7248",qf="losehu",Zf="losehu",Yf=!0,A0={name:Gf,uart:qf,charset:Zf,K:Yf},L0=Object.freeze(Object.defineProperty({__proto__:null,name:Gf,uart:qf,charset:Zf,K:Yf,default:A0},Symbol.toStringTag,{value:"Module"})),kf="LoseHu 118+",Xf="official",Jf="official",E0={name:kf,uart:Xf,charset:Jf},I0=Object.freeze(Object.defineProperty({__proto__:null,name:kf,uart:Xf,charset:Jf,default:E0},Symbol.toStringTag,{value:"Module"})),Qf="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",Vf="losehu",jf="gb2312",ns=!0,es=!0,T0={name:Qf,uart:Vf,charset:jf,H:ns,sat:es},R0=Object.freeze(Object.defineProperty({__proto__:null,name:Qf,uart:Vf,charset:jf,H:ns,sat:es,default:T0},Symbol.toStringTag,{value:"Module"})),ts="LoseHu 118+ \u6269\u5BB9\u7248",rs="losehu",is="gb2312",us=!0,C0={name:ts,uart:rs,charset:is,K:us},O0=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,default:C0},Symbol.toStringTag,{value:"Module"})),os="LoseHu 120+ \u6269\u5BB9\u7248",fs="losehu",ss="gb2312",as=!0,ls=!0,M0={name:os,uart:fs,charset:ss,K:as,sat:ls},D0=Object.freeze(Object.defineProperty({__proto__:null,name:os,uart:fs,charset:ss,K:as,sat:ls,default:M0},Symbol.toStringTag,{value:"Module"})),cs="LoseHu 124+ 2Mbit \u6269\u5BB9\u7248",hs="losehu",_s="gb2312",ps=!0,gs=!0,ds=!0,P0={name:cs,uart:hs,charset:_s,H:ps,sat:gs,newpinyin:ds},F0=Object.freeze(Object.defineProperty({__proto__:null,name:cs,uart:hs,charset:_s,H:ps,sat:gs,newpinyin:ds,default:P0},Symbol.toStringTag,{value:"Module"})),vs="LoseHu Patch LTS\uFF08BD8DFN\uFF09",ws="official",ms="official",xs=!0,B0={name:vs,uart:ws,charset:ms,localmdc:xs},W0=Object.freeze(Object.defineProperty({__proto__:null,name:vs,uart:ws,charset:ms,localmdc:xs,default:B0},Symbol.toStringTag,{value:"Module"})),ys="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",bs="losehu",Ss="losehu",As=!0,Ls=!0,U0={name:ys,uart:bs,charset:Ss,K:As,localmdc:Ls},$0=Object.freeze(Object.defineProperty({__proto__:null,name:ys,uart:bs,charset:Ss,K:As,localmdc:Ls,default:U0},Symbol.toStringTag,{value:"Module"})),Es="Official",H0={name:Es},N0=Object.freeze(Object.defineProperty({__proto__:null,name:Es,default:H0},Symbol.toStringTag,{value:"Module"}));function K0(){const S=mr(),E=Gi();return{logout:async H=>{await E.logout();const W=S.currentRoute.value;Ud.success("\u767B\u51FA\u6210\u529F"),S.push({name:H&&typeof H=="string"?H:"login",query:{...S.currentRoute.value.query,redirect:W.name}})}}}const z0=(S,E)=>{const{target:f="_blank",...H}=E||{};window.open(S,f,Object.entries(H).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},G0=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"),q0=[...bd,...Sd],Z0=q0.map(S=>{const{name:E,path:f,meta:H,redirect:W,children:un}=S;return{name:E,path:f,meta:H,redirect:W,children:un}}),Y0=Z0;var Ki={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(S,E){(function(){var f,H="4.17.21",W=200,un="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",C="Expected a function",q="Invalid `variable` option passed into `_.template`",_n="__lodash_hash_undefined__",Z=500,pn="__lodash_placeholder__",on=1,Sn=2,F=4,y=1,O=2,m=1,M=2,Y=4,K=8,X=16,mn=32,xn=64,On=128,te=256,xr=512,Is=30,Ts="...",Rs=800,Cs=16,Yi=1,Os=2,Ms=3,Ae=1/0,_e=9007199254740991,Ds=17976931348623157e292,Lt=0/0,Vn=4294967295,Ps=Vn-1,Fs=Vn>>>1,Bs=[["ary",On],["bind",m],["bindKey",M],["curry",K],["curryRight",X],["flip",xr],["partial",mn],["partialRight",xn],["rearg",te]],Fe="[object Arguments]",Et="[object Array]",Ws="[object AsyncFunction]",et="[object Boolean]",tt="[object Date]",Us="[object DOMException]",It="[object Error]",Tt="[object Function]",ki="[object GeneratorFunction]",Zn="[object Map]",rt="[object Number]",$s="[object Null]",re="[object Object]",Xi="[object Promise]",Hs="[object Proxy]",it="[object RegExp]",Yn="[object Set]",ut="[object String]",Rt="[object Symbol]",Ns="[object Undefined]",ot="[object WeakMap]",Ks="[object WeakSet]",ft="[object ArrayBuffer]",Be="[object DataView]",yr="[object Float32Array]",br="[object Float64Array]",Sr="[object Int8Array]",Ar="[object Int16Array]",Lr="[object Int32Array]",Er="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Tr="[object Uint16Array]",Rr="[object Uint32Array]",zs=/\b__p \+= '';/g,Gs=/\b(__p \+=) '' \+/g,qs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ji=/&(?:amp|lt|gt|quot|#39);/g,Qi=/[&<>"']/g,Zs=RegExp(Ji.source),Ys=RegExp(Qi.source),ks=/<%-([\s\S]+?)%>/g,Xs=/<%([\s\S]+?)%>/g,Vi=/<%=([\s\S]+?)%>/g,Js=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qs=/^\w*$/,Vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cr=/[\\^$.*+?()[\]{}|]/g,js=RegExp(Cr.source),Or=/^\s+/,na=/\s/,ea=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ta=/\{\n\/\* \[wrapped with (.+)\] \*/,ra=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ua=/[()=,{}\[\]\/\s]/,oa=/\\(\\)?/g,fa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ji=/\w*$/,sa=/^[-+]0x[0-9a-f]+$/i,aa=/^0b[01]+$/i,la=/^\[object .+?Constructor\]$/,ca=/^0o[0-7]+$/i,ha=/^(?:0|[1-9]\d*)$/,_a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ct=/($^)/,pa=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",ga="\\u0300-\\u036f",da="\\ufe20-\\ufe2f",va="\\u20d0-\\u20ff",nu=ga+da+va,eu="\\u2700-\\u27bf",tu="a-z\\xdf-\\xf6\\xf8-\\xff",wa="\\xac\\xb1\\xd7\\xf7",ma="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xa="\\u2000-\\u206f",ya=" \\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",ru="A-Z\\xc0-\\xd6\\xd8-\\xde",iu="\\ufe0e\\ufe0f",uu=wa+ma+xa+ya,Mr="['\u2019]",ba="["+Ot+"]",ou="["+uu+"]",Mt="["+nu+"]",fu="\\d+",Sa="["+eu+"]",su="["+tu+"]",au="[^"+Ot+uu+fu+eu+tu+ru+"]",Dr="\\ud83c[\\udffb-\\udfff]",Aa="(?:"+Mt+"|"+Dr+")",lu="[^"+Ot+"]",Pr="(?:\\ud83c[\\udde6-\\uddff]){2}",Fr="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+ru+"]",cu="\\u200d",hu="(?:"+su+"|"+au+")",La="(?:"+We+"|"+au+")",_u="(?:"+Mr+"(?:d|ll|m|re|s|t|ve))?",pu="(?:"+Mr+"(?:D|LL|M|RE|S|T|VE))?",gu=Aa+"?",du="["+iu+"]?",Ea="(?:"+cu+"(?:"+[lu,Pr,Fr].join("|")+")"+du+gu+")*",Ia="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ta="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vu=du+gu+Ea,Ra="(?:"+[Sa,Pr,Fr].join("|")+")"+vu,Ca="(?:"+[lu+Mt+"?",Mt,Pr,Fr,ba].join("|")+")",Oa=RegExp(Mr,"g"),Ma=RegExp(Mt,"g"),Br=RegExp(Dr+"(?="+Dr+")|"+Ca+vu,"g"),Da=RegExp([We+"?"+su+"+"+_u+"(?="+[ou,We,"$"].join("|")+")",La+"+"+pu+"(?="+[ou,We+hu,"$"].join("|")+")",We+"?"+hu+"+"+_u,We+"+"+pu,Ta,Ia,fu,Ra].join("|"),"g"),Pa=RegExp("["+cu+Ot+nu+iu+"]"),Fa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ba=["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"],Wa=-1,V={};V[yr]=V[br]=V[Sr]=V[Ar]=V[Lr]=V[Er]=V[Ir]=V[Tr]=V[Rr]=!0,V[Fe]=V[Et]=V[ft]=V[et]=V[Be]=V[tt]=V[It]=V[Tt]=V[Zn]=V[rt]=V[re]=V[it]=V[Yn]=V[ut]=V[ot]=!1;var Q={};Q[Fe]=Q[Et]=Q[ft]=Q[Be]=Q[et]=Q[tt]=Q[yr]=Q[br]=Q[Sr]=Q[Ar]=Q[Lr]=Q[Zn]=Q[rt]=Q[re]=Q[it]=Q[Yn]=Q[ut]=Q[Rt]=Q[Er]=Q[Ir]=Q[Tr]=Q[Rr]=!0,Q[It]=Q[Tt]=Q[ot]=!1;var Ua={\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"},$a={"&":"&","<":"<",">":">",'"':""","'":"'"},Ha={"&":"&","<":"<",">":">",""":'"',"'":"'"},Na={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ka=parseFloat,za=parseInt,wu=typeof St=="object"&&St&&St.Object===Object&&St,Ga=typeof self=="object"&&self&&self.Object===Object&&self,dn=wu||Ga||Function("return this")(),Wr=E&&!E.nodeType&&E,Le=Wr&&!0&&S&&!S.nodeType&&S,mu=Le&&Le.exports===Wr,Ur=mu&&wu.process,Un=function(){try{var l=Le&&Le.require&&Le.require("util").types;return l||Ur&&Ur.binding&&Ur.binding("util")}catch{}}(),xu=Un&&Un.isArrayBuffer,yu=Un&&Un.isDate,bu=Un&&Un.isMap,Su=Un&&Un.isRegExp,Au=Un&&Un.isSet,Lu=Un&&Un.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 qa(l,_,h,w){for(var I=-1,z=l==null?0:l.length;++I-1}function $r(l,_,h){for(var w=-1,I=l==null?0:l.length;++w-1;);return h}function Du(l,_){for(var h=l.length;h--&&Ue(_,l[h],0)>-1;);return h}function nl(l,_){for(var h=l.length,w=0;h--;)l[h]===_&&++w;return w}var el=zr(Ua),tl=zr($a);function rl(l){return"\\"+Na[l]}function il(l,_){return l==null?f:l[_]}function $e(l){return Pa.test(l)}function ul(l){return Fa.test(l)}function ol(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,I){h[++_]=[I,w]}),h}function Pu(l,_){return function(h){return l(_(h))}}function de(l,_){for(var h=-1,w=l.length,I=0,z=[];++h-1}function Yl(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=zl,ie.prototype.delete=Gl,ie.prototype.get=ql,ie.prototype.has=Zl,ie.prototype.set=Yl;function ue(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Kn(n,e,t,r,i,o){var s,a=e&on,c=e&Sn,p=e&F;if(t&&(s=i?t(n,r,i,o):t(n)),s!==f)return s;if(!en(n))return n;var g=T(n);if(g){if(s=Qc(n),!a)return In(n,s)}else{var d=bn(n),v=d==Tt||d==ki;if(be(n))return vo(n,a);if(d==re||d==Fe||v&&!i){if(s=c||v?{}:Bo(n),!a)return c?Hc(n,ac(s,n)):$c(n,Zu(s,n))}else{if(!Q[d])return i?n:{};s=Vc(n,d,a)}}o||(o=new Xn);var x=o.get(n);if(x)return x;o.set(n,s),hf(n)?n.forEach(function(L){s.add(Kn(L,e,t,L,n,o))}):lf(n)&&n.forEach(function(L,B){s.set(B,Kn(L,e,t,B,n,o))});var A=p?c?mi:wi:c?Rn:gn,D=g?f:A(n);return $n(D||n,function(L,B){D&&(B=L,L=n[B]),pt(s,B,Kn(L,e,t,B,n,o))}),s}function lc(n){var e=gn(n);return function(t){return Yu(t,n,e)}}function Yu(n,e,t){var r=t.length;if(n==null)return!r;for(n=J(n);r--;){var i=t[r],o=e[i],s=n[i];if(s===f&&!(i in n)||!o(s))return!1}return!0}function ku(n,e,t){if(typeof n!="function")throw new Hn(C);return yt(function(){n.apply(f,t)},e)}function gt(n,e,t,r){var i=-1,o=Dt,s=!0,a=n.length,c=[],p=e.length;if(!a)return c;t&&(e=nn(e,Dn(t))),r?(o=$r,s=!1):e.length>=W&&(o=st,s=!1,e=new Te(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:R(r),r<0&&(r+=i),r=t>r?0:pf(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=So(),Qu=So(!0);function jn(n,e){return n&&ni(n,e,gn)}function ei(n,e){return n&&Qu(n,e,gn)}function Vt(n,e){return pe(e,function(t){return le(n[t])})}function Ce(n,e){e=xe(e,n);for(var t=0,r=e.length;n!=null&&te}function _c(n,e){return n!=null&&k.call(n,e)}function pc(n,e){return n!=null&&e in J(n)}function gc(n,e,t){return n>=yn(e,t)&&n=120&&g.length>=120)?new Te(s&&g):f}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 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;ae(i)?zt.call(n,i,1):ci(n,i)}}return n}function si(n,e){return n+Zt(Ku()*(e-n+1))}function Tc(n,e,t,r){for(var i=-1,o=hn(qt((e-n)/(t||1)),0),s=h(o);o--;)s[r?o:++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 P(n,e){return Ei($o(n,e,Cn),n+"")}function Rc(n){return qu(Je(n))}function Cc(n,e){var t=Je(n);return ar(t,Re(e,0,t.length))}function wt(n,e,t,r){if(!en(n))return n;e=xe(e,n);for(var i=-1,o=e.length,s=o-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 o=h(i);++r>>1,s=n[o];s!==null&&!Fn(s)&&(t?s<=e:s=W){var p=e?null:Gc(n);if(p)return Ft(p);s=!1,i=st,c=new Te}else c=e?[]:a;n:for(;++r=r?n:zn(n,e,t)}var go=yl||function(n){return dn.clearTimeout(n)};function vo(n,e){if(e)return n.slice();var t=n.length,r=Wu?Wu(t):new n.constructor(t);return n.copy(r),r}function gi(n){var e=new n.constructor(n.byteLength);return new Nt(e).set(new Nt(n)),e}function Fc(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Bc(n){var e=new n.constructor(n.source,ji.exec(n));return e.lastIndex=n.lastIndex,e}function Wc(n){return _t?J(_t.call(n)):{}}function wo(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function mo(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Fn(n),s=e!==f,a=e===null,c=e===e,p=Fn(e);if(!a&&!p&&!o&&n>e||o&&s&&c&&!a&&!p||r&&s&&c||!t&&c||!i)return 1;if(!r&&!o&&!p&&n=a)return c;var p=t[r];return c*(p=="desc"?-1:1)}}return n.index-e.index}function xo(n,e,t,r){for(var i=-1,o=n.length,s=t.length,a=-1,c=e.length,p=hn(o-s,0),g=h(c+p),d=!r;++a1?t[i-1]:f,s=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,s&&Ln(t[0],t[1],s)&&(o=i<3?f:o,i=1),e=J(e);++r-1?i[o?e[s]:s]:f}}function Eo(n){return se(function(e){var t=e.length,r=t,i=Nn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Hn(C);if(i&&!s&&fr(o)=="wrapper")var s=new Nn([],!0)}for(r=s?r:t;++r1&&$.reverse(),g&&ca))return!1;var p=o.get(n),g=o.get(e);if(p&&g)return p==e&&g==n;var d=-1,v=!0,x=t&O?new Te:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ea,`{ /* [wrapped with `+e+`] */ `)}function nh(n){return T(n)||De(n)||!!(Hu&&n&&n[Hu])}function ae(n,e){var t=typeof n;return e=e==null?_e:e,!!e&&(t=="number"||t!="symbol"&&ha.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Rs)return arguments[0]}else e=0;return n.apply(f,arguments)}}function ar(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,Qo(n,t)});function Vo(n){var e=u(n);return e.__chain__=!0,e}function c_(n,e){return e(n),n}function lr(n,e){return e(n)}var h_=se(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return jr(o,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:f}),new Nn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function __(){return Vo(this)}function p_(){return new Nn(this.value(),this.__chain__)}function g_(){this.__values__===f&&(this.__values__=_f(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function d_(){return this}function v_(n){for(var e,t=this;t instanceof Xt;){var r=qo(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 w_(){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:[Ii],thisArg:f}),new Nn(e,this.__chain__)}return this.thru(Ii)}function m_(){return _o(this.__wrapped__,this.__actions__)}var x_=tr(function(n,e,t){k.call(n,t)?++n[t]:oe(n,t,1)});function y_(n,e,t){var r=T(n)?Eu:cc;return t&&Ln(n,e,t)&&(e=f),r(n,b(e,3))}function b_(n,e){var t=T(n)?pe:Ju;return t(n,b(e,3))}var S_=Lo(Zo),A_=Lo(Yo);function L_(n,e){return vn(cr(n,e),1)}function E_(n,e){return vn(cr(n,e),Ae)}function I_(n,e,t){return t=t===f?1:R(t),vn(cr(n,e),t)}function jo(n,e){var t=T(n)?$n:we;return t(n,b(e,3))}function nf(n,e){var t=T(n)?Za:Xu;return t(n,b(e,3))}var T_=tr(function(n,e,t){k.call(n,t)?n[t].push(e):oe(n,t,[e])});function R_(n,e,t,r){n=Tn(n)?n:Je(n),t=t&&!r?R(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 C_=P(function(n,e,t){var r=-1,i=typeof e=="function",o=Tn(n)?h(n.length):[];return we(n,function(s){o[++r]=i?Mn(e,s,t):dt(s,e,t)}),o}),O_=tr(function(n,e,t){oe(n,t,e)});function cr(n,e){var t=T(n)?nn:to;return t(n,b(e,3))}function M_(n,e,t,r){return n==null?[]:(T(e)||(e=e==null?[]:[e]),t=r?f:t,T(t)||(t=t==null?[]:[t]),oo(n,e,t))}var D_=tr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function P_(n,e,t){var r=T(n)?Hr:Cu,i=arguments.length<3;return r(n,b(e,4),t,i,we)}function F_(n,e,t){var r=T(n)?Ya:Cu,i=arguments.length<3;return r(n,b(e,4),t,i,Xu)}function B_(n,e){var t=T(n)?pe:Ju;return t(n,pr(b(e,3)))}function W_(n){var e=T(n)?qu:Rc;return e(n)}function U_(n,e,t){(t?Ln(n,e,t):e===f)?e=1:e=R(e);var r=T(n)?oc:Cc;return r(n,e)}function $_(n){var e=T(n)?fc:Mc;return e(n)}function H_(n){if(n==null)return 0;if(Tn(n))return dr(n)?He(n):n.length;var e=bn(n);return e==Zn||e==Yn?n.size:ui(n).length}function N_(n,e,t){var r=T(n)?Nr:Dc;return t&&Ln(n,e,t)&&(e=f),r(n,b(e,3))}var K_=P(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Ln(n,e[0],e[1])?e=[]:t>2&&Ln(e[0],e[1],e[2])&&(e=[e[0]]),oo(n,vn(e,1),[])}),hr=bl||function(){return dn.Date.now()};function z_(n,e){if(typeof e!="function")throw new Hn(C);return n=R(n),function(){if(--n<1)return e.apply(this,arguments)}}function ef(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,fe(n,On,f,f,f,f,e)}function tf(n,e){var t;if(typeof e!="function")throw new Hn(C);return n=R(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Ri=P(function(n,e,t){var r=m;if(t.length){var i=de(t,ke(Ri));r|=mn}return fe(n,r,e,t,i)}),rf=P(function(n,e,t){var r=m|M;if(t.length){var i=de(t,ke(rf));r|=mn}return fe(e,r,n,t,i)});function uf(n,e,t){e=t?f:e;var r=fe(n,K,f,f,f,f,f,e);return r.placeholder=uf.placeholder,r}function of(n,e,t){e=t?f:e;var r=fe(n,X,f,f,f,f,f,e);return r.placeholder=of.placeholder,r}function ff(n,e,t){var r,i,o,s,a,c,p=0,g=!1,d=!1,v=!0;if(typeof n!="function")throw new Hn(C);e=qn(e)||0,en(t)&&(g=!!t.leading,d="maxWait"in t,o=d?hn(qn(t.maxWait)||0,e):o,v="trailing"in t?!!t.trailing:v);function x(sn){var Qn=r,he=i;return r=i=f,p=sn,s=n.apply(he,Qn),s}function A(sn){return p=sn,a=yt(B,e),g?x(sn):s}function D(sn){var Qn=sn-c,he=sn-p,Ef=e-Qn;return d?yn(Ef,o-he):Ef}function L(sn){var Qn=sn-c,he=sn-p;return c===f||Qn>=e||Qn<0||d&&he>=o}function B(){var sn=hr();if(L(sn))return $(sn);a=yt(B,D(sn))}function $(sn){return a=f,v&&r?x(sn):(r=i=f,s)}function Bn(){a!==f&&go(a),p=0,r=c=i=a=f}function En(){return a===f?s:$(hr())}function Wn(){var sn=hr(),Qn=L(sn);if(r=arguments,i=this,c=sn,Qn){if(a===f)return A(c);if(d)return go(a),a=yt(B,e),x(c)}return a===f&&(a=yt(B,e)),s}return Wn.cancel=Bn,Wn.flush=En,Wn}var G_=P(function(n,e){return ku(n,1,e)}),q_=P(function(n,e,t){return ku(n,qn(e)||0,t)});function Z_(n){return fe(n,xr)}function _r(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Hn(C);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 s=n.apply(this,r);return t.cache=o.set(i,s)||o,s};return t.cache=new(_r.Cache||ue),t}_r.Cache=ue;function pr(n){if(typeof n!="function")throw new Hn(C);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 Y_(n){return tf(2,n)}var k_=Pc(function(n,e){e=e.length==1&&T(e[0])?nn(e[0],Dn(b())):nn(vn(e,1),Dn(b()));var t=e.length;return P(function(r){for(var i=-1,o=yn(r.length,t);++i=e}),De=ju(function(){return arguments}())?ju:function(n){return tn(n)&&k.call(n,"callee")&&!$u.call(n,"callee")},T=h.isArray,ap=xu?Dn(xu):vc;function Tn(n){return n!=null&&gr(n.length)&&!le(n)}function fn(n){return tn(n)&&Tn(n)}function lp(n){return n===!0||n===!1||tn(n)&&An(n)==et}var be=Al||Ni,cp=yu?Dn(yu):wc;function hp(n){return tn(n)&&n.nodeType===1&&!bt(n)}function _p(n){if(n==null)return!0;if(Tn(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||be(n)||Xe(n)||De(n)))return!n.length;var e=bn(n);if(e==Zn||e==Yn)return!n.size;if(xt(n))return!ui(n).length;for(var t in n)if(k.call(n,t))return!1;return!0}function pp(n,e){return vt(n,e)}function gp(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?vt(n,e,f,t):!!r}function Oi(n){if(!tn(n))return!1;var e=An(n);return e==It||e==Us||typeof n.message=="string"&&typeof n.name=="string"&&!bt(n)}function dp(n){return typeof n=="number"&&Nu(n)}function le(n){if(!en(n))return!1;var e=An(n);return e==Tt||e==ki||e==Ws||e==Hs}function af(n){return typeof n=="number"&&n==R(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 lf=bu?Dn(bu):xc;function vp(n,e){return n===e||ii(n,e,yi(e))}function wp(n,e,t){return t=typeof t=="function"?t:f,ii(n,e,yi(e),t)}function mp(n){return cf(n)&&n!=+n}function xp(n){if(rh(n))throw new I(un);return no(n)}function yp(n){return n===null}function bp(n){return n==null}function cf(n){return typeof n=="number"||tn(n)&&An(n)==rt}function bt(n){if(!tn(n)||An(n)!=re)return!1;var e=Kt(n);if(e===null)return!0;var t=k.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ut.call(t)==wl}var Mi=Su?Dn(Su):yc;function Sp(n){return af(n)&&n>=-_e&&n<=_e}var hf=Au?Dn(Au):bc;function dr(n){return typeof n=="string"||!T(n)&&tn(n)&&An(n)==ut}function Fn(n){return typeof n=="symbol"||tn(n)&&An(n)==Rt}var Xe=Lu?Dn(Lu):Sc;function Ap(n){return n===f}function Lp(n){return tn(n)&&bn(n)==ot}function Ep(n){return tn(n)&&An(n)==Ks}var Ip=or(oi),Tp=or(function(n,e){return n<=e});function _f(n){if(!n)return[];if(Tn(n))return dr(n)?kn(n):In(n);if(at&&n[at])return ol(n[at]());var e=bn(n),t=e==Zn?Yr:e==Yn?Ft:Je;return t(n)}function ce(n){if(!n)return n===0?n:0;if(n=qn(n),n===Ae||n===-Ae){var e=n<0?-1:1;return e*Ds}return n===n?n:0}function R(n){var e=ce(n),t=e%1;return e===e?t?e-t:e:0}function pf(n){return n?Re(R(n),0,Vn):0}function qn(n){if(typeof n=="number")return n;if(Fn(n))return Lt;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=Ou(n);var t=aa.test(n);return t||ca.test(n)?za(n.slice(2),t?2:8):sa.test(n)?Lt:+n}function gf(n){return ne(n,Rn(n))}function Rp(n){return n?Re(R(n),-_e,_e):n===0?n:0}function G(n){return n==null?"":Pn(n)}var Cp=Ze(function(n,e){if(xt(e)||Tn(e)){ne(e,gn(e),n);return}for(var t in e)k.call(e,t)&&pt(n,t,e[t])}),df=Ze(function(n,e){ne(e,Rn(e),n)}),vr=Ze(function(n,e,t,r){ne(e,Rn(e),n,r)}),Op=Ze(function(n,e,t,r){ne(e,gn(e),n,r)}),Mp=se(jr);function Dp(n,e){var t=qe(n);return e==null?t:Zu(t,e)}var Pp=P(function(n,e){n=J(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&Ln(e[0],e[1],i)&&(r=1);++t1),o}),ne(n,mi(n),t),r&&(t=Kn(t,on|Sn|F,qc));for(var i=e.length;i--;)ci(t,e[i]);return t});function Vp(n,e){return wf(n,pr(b(e)))}var jp=se(function(n,e){return n==null?{}:Ec(n,e)});function wf(n,e){if(n==null)return{};var t=nn(mi(n),function(r){return[r]});return e=b(e),fo(n,t,function(r,i){return e(r,i[0])})}function ng(n,e,t){e=xe(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=Ku();return yn(n+i*(e-n+Ka("1e-"+((i+"").length-1))),e)}return si(n,e)}var cg=Ye(function(n,e,t){return e=e.toLowerCase(),n+(t?yf(e):e)});function yf(n){return Fi(G(n).toLowerCase())}function bf(n){return n=G(n),n&&n.replace(_a,el).replace(Ma,"")}function hg(n,e,t){n=G(n),e=Pn(e);var r=n.length;t=t===f?r:Re(R(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function _g(n){return n=G(n),n&&Ys.test(n)?n.replace(Qi,tl):n}function pg(n){return n=G(n),n&&js.test(n)?n.replace(Cr,"\\$&"):n}var gg=Ye(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),dg=Ye(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),vg=Ao("toLowerCase");function wg(n,e,t){n=G(n),e=R(e);var r=e?He(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return ur(Zt(i),t)+n+ur(qt(i),t)}function mg(n,e,t){n=G(n),e=R(e);var r=e?He(n):0;return e&&r>>0,t?(n=G(n),n&&(typeof e=="string"||e!=null&&!Mi(e))&&(e=Pn(e),!e&&$e(n))?ye(kn(n),0,t):n.split(e,t)):[]}var Eg=Ye(function(n,e,t){return n+(t?" ":"")+Fi(e)});function Ig(n,e,t){return n=G(n),t=t==null?0:Re(R(t),0,n.length),e=Pn(e),n.slice(t,t+e.length)==e}function Tg(n,e,t){var r=u.templateSettings;t&&Ln(n,e,t)&&(e=f),n=G(n),e=vr({},e,r,Oo);var i=vr({},e.imports,r.imports,Oo),o=gn(i),s=Zr(i,o),a,c,p=0,g=e.interpolate||Ct,d="__p += '",v=kr((e.escape||Ct).source+"|"+g.source+"|"+(g===Vi?fa:Ct).source+"|"+(e.evaluate||Ct).source+"|$","g"),x="//# sourceURL="+(k.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wa+"]")+` `;n.replace(v,function(L,B,$,Bn,En,Wn){return $||($=Bn),d+=n.slice(p,Wn).replace(pa,rl),B&&(a=!0,d+=`' + __e(`+B+`) + '`),En&&(c=!0,d+=`'; `+En+`; __p += '`),$&&(d+=`' + ((__t = (`+$+`)) == null ? '' : __t) + '`),p=Wn+L.length,L}),d+=`'; `;var A=k.call(e,"variable")&&e.variable;if(!A)d=`with (obj) { `+d+` } `;else if(ua.test(A))throw new I(q);d=(c?d.replace(zs,""):d).replace(Gs,"$1").replace(qs,"$1;"),d="function("+(A||"obj")+`) { `+(A?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+d+`return __p }`;var D=Af(function(){return z(o,x+"return "+d).apply(f,s)});if(D.source=d,Oi(D))throw D;return D}function Rg(n){return G(n).toLowerCase()}function Cg(n){return G(n).toUpperCase()}function Og(n,e,t){if(n=G(n),n&&(t||e===f))return Ou(n);if(!n||!(e=Pn(e)))return n;var r=kn(n),i=kn(e),o=Mu(r,i),s=Du(r,i)+1;return ye(r,o,s).join("")}function Mg(n,e,t){if(n=G(n),n&&(t||e===f))return n.slice(0,Fu(n)+1);if(!n||!(e=Pn(e)))return n;var r=kn(n),i=Du(r,kn(e))+1;return ye(r,0,i).join("")}function Dg(n,e,t){if(n=G(n),n&&(t||e===f))return n.replace(Or,"");if(!n||!(e=Pn(e)))return n;var r=kn(n),i=Mu(r,kn(e));return ye(r,i).join("")}function Pg(n,e){var t=Is,r=Ts;if(en(e)){var i="separator"in e?e.separator:i;t="length"in e?R(e.length):t,r="omission"in e?Pn(e.omission):r}n=G(n);var o=n.length;if($e(n)){var s=kn(n);o=s.length}if(t>=o)return n;var a=t-He(r);if(a<1)return r;var c=s?ye(s,0,a).join(""):n.slice(0,a);if(i===f)return c+r;if(s&&(a+=c.length-a),Mi(i)){if(n.slice(a).search(i)){var p,g=c;for(i.global||(i=kr(i.source,G(ji.exec(i))+"g")),i.lastIndex=0;p=i.exec(g);)var d=p.index;c=c.slice(0,d===f?a:d)}}else if(n.indexOf(Pn(i),a)!=a){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function Fg(n){return n=G(n),n&&Zs.test(n)?n.replace(Ji,ll):n}var Bg=Ye(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Fi=Ao("toUpperCase");function Sf(n,e,t){return n=G(n),e=t?f:e,e===f?ul(n)?_l(n):Ja(n):n.match(e)||[]}var Af=P(function(n,e){try{return Mn(n,f,e)}catch(t){return Oi(t)?t:new I(t)}}),Wg=se(function(n,e){return $n(e,function(t){t=ee(t),oe(n,t,Ri(n[t],n))}),n});function Ug(n){var e=n==null?0:n.length,t=b();return n=e?nn(n,function(r){if(typeof r[1]!="function")throw new Hn(C);return[t(r[0]),r[1]]}):[],P(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!==f&&(e=R(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],o=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||T(s),d=function(B){var $=i.apply(u,ge([B],a));return r&&v?$[0]:$};g&&t&&typeof p=="function"&&p.length!=1&&(c=g=!1);var v=this.__chain__,x=!!this.__actions__.length,A=o&&!v,D=c&&!x;if(!o&&g){s=D?s:new U(this);var L=n.apply(s,a);return L.__actions__.push({func:lr,args:[d],thisArg:f}),new Nn(L,v)}return A&&D?n.apply(this,a):(L=this.thru(d),A?r?L.value()[0]:L.value():L)})}),$n(["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 o=this.value();return e.apply(T(o)?o:[],i)}return this[t](function(s){return e.apply(T(s)?s:[],i)})}}),jn(U.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";k.call(Ge,r)||(Ge[r]=[]),Ge[r].push({name:e,func:t})}}),Ge[rr(f,M).name]=[{name:"wrapper",func:f}],U.prototype.clone=Fl,U.prototype.reverse=Bl,U.prototype.value=Wl,u.prototype.at=h_,u.prototype.chain=__,u.prototype.commit=p_,u.prototype.next=g_,u.prototype.plant=v_,u.prototype.reverse=w_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=m_,u.prototype.first=u.prototype.head,at&&(u.prototype[at]=d_),u},Ne=pl();Le?((Le.exports=Ne)._=Ne,Wr._=Ne):dn._=Ne}).call(St)})(Ki,Ki.exports);function k0(){const S=Df(),E=Ve(),f=rn(()=>E.menuFromServer?E.appAsyncMenus:Y0);return{menuTree:rn(()=>{const W=Ki.exports.cloneDeep(f.value);W.sort((C,q)=>(C.meta.order||0)-(q.meta.order||0));function un(C,q){return C?C.map(Z=>{var on,Sn;if(!S.accessRouter(Z))return null;if(((on=Z.meta)==null?void 0:on.hideChildrenInMenu)||!Z.children)return Z.children=[],Z;Z.children=Z.children.filter(F=>{var y;return((y=F.meta)==null?void 0:y.hideInMenu)!==!0});const pn=un(Z.children,q+1);return pn.length||q>1?(Z.children=pn,Z):((Sn=Z.meta)==null?void 0:Sn.hideInMenu)===!1?Z:null}).filter(Boolean):null}return un(W,0)})}}function X0(S){return typeof S=="function"||Object.prototype.toString.call(S)==="[object Object]"&&!Hd(S)}const J0=je({emit:["collapse"],setup(){const{t:S}=Ad.exports.useI18n(),E=Ve(),f=mr(),H=Zi(),{menuTree:W}=k0(),un=rn({get(){return E.device==="desktop"?E.menuCollapse:!1},set(F){E.updateSettings({menuCollapse:F})}}),C=rn(()=>E.topMenu),q=Qe([]),_n=Qe([]),Z=F=>{if(G0.test(F.path)){z0(F.path),_n.value=[F.name];return}const{hideInMenu:y,activeMenu:O}=F.meta;if(H.name===F.name&&!y&&!O){_n.value=[F.name];return}f.push({name:F.name})},pn=F=>{const y=[];let O=!1;const m=(M,Y)=>{var K;if(M.name===F){O=!0,y.push(...Y);return}(K=M.children)!=null&&K.length&&M.children.forEach(X=>{m(X,[...Y,X.name])})};return W.value.forEach(M=>{O||m(M,[M.name])}),y};Pf(F=>{const{requiresAuth:y,activeMenu:O,hideInMenu:m}=F.meta;if(y&&(!m||O)){const M=pn(O||F.name),Y=new Set([...M,...q.value]);q.value=[...Y],_n.value=[O||M[M.length-1]]}},!0);const on=F=>{E.device==="desktop"&&E.updateSettings({menuCollapse:F})},Sn=()=>{function F(y,O=[]){return y&&y.forEach(m=>{var K;const M=(K=m==null?void 0:m.meta)!=null&&K.icon?()=>{var X;return If(Tf(`<${(X=m==null?void 0:m.meta)==null?void 0:X.icon}/>`))}:null,Y=(m==null?void 0:m.children)&&(m==null?void 0:m.children.length)!==0?N(Nd,{key:m==null?void 0:m.name},{default:()=>[F(m==null?void 0:m.children)],icon:M,title:()=>{var X;return If(Tf(S(((X=m==null?void 0:m.meta)==null?void 0:X.locale)||"")))}}):N(Kd,{key:m==null?void 0:m.name,onClick:()=>Z(m)},{default:()=>{var X;return[S(((X=m==null?void 0:m.meta)==null?void 0:X.locale)||"")]},icon:M});O.push(Y)}),O}return F(W.value)};return()=>{let F;return N($d,{mode:C.value?"horizontal":"vertical",collapsed:un.value,"onUpdate:collapsed":y=>un.value=y,"open-keys":q.value,"onUpdate:open-keys":y=>q.value=y,"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:on},X0(F=Sn())?F:{default:()=>[F]})}}});const zi=At(J0,[["__scopeId","data-v-cc9f2848"]]),Q0={class:"navbar"},V0={class:"left-side"},j0={class:"center-side"},n1={class:"right-side"},e1=je({__name:"index",setup(S){const E=Object.assign({"/src/drivers/losehu117.json":S0,"/src/drivers/losehu117k.json":L0,"/src/drivers/losehu118.json":I0,"/src/drivers/losehu118h.json":R0,"/src/drivers/losehu118k.json":O0,"/src/drivers/losehu120k.json":D0,"/src/drivers/losehu124h.json":F0,"/src/drivers/lts.json":W0,"/src/drivers/ltsk.json":$0,"/src/drivers/todo.json":N0}),f=Ve(),H=Gi();K0(),Ld();const{isFullscreen:W,toggle:un}=d0();rn(()=>H.avatar);const C=rn(()=>f.theme),q=rn(()=>f.topMenu&&f.menu),_n=v0({selector:"body",attribute:"arco-theme",valueDark:"dark",valueLight:"light",storageKey:"arco-theme",onChanged(y){f.toggleTheme(y)}}),Z=w0(_n),pn=()=>{Z()};Qe();const on=zd("toggleDrawerMenu"),Sn={"LOSEHU.*P.*K":"ltsk.json","LOSEHU.*P.*":"lts.json","LOSEHU12[4-9].*H":"losehu124h.json","LOSEHU12[0-3].*H":"losehu118h.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"},F=async()=>{if(f.connectState==!1){try{f.connectPort&&await Mf(f.connectPort)}catch{}const y=await x0();if(!y){alert("\u8FDE\u63A5\u5931\u8D25");return}f.updateSettings({connectPort:y});const O={};Object.keys(E).forEach(K=>{O[K.substring(K.lastIndexOf("/")+1)]=E[K].default});let m=null;const M=await y0(y),Y={name:"TODO",uart:"official",charset:"official",K:!1,H:!1,localmdc:!1,sat:!1,newpinyin:!1};Object.keys(Sn).some(K=>{if(new RegExp(K).test(M))return m=Object.assign(Y,O[Sn[K]]),!0}),f.updateSettings({connectState:!0,firmwareVersion:M,configuration:m})}else await Mf(f.connectPort),f.updateSettings({connectState:!1,connectPort:null,firmwareVersion:""})};return(y,O)=>{const m=Zd,M=Yd,Y=Gd,K=kd,X=Ed,mn=Id,xn=qd,On=Td,te=Xd;return an(),wr("div",Q0,[ln("div",V0,[N(Y,null,{default:j(()=>[N(m,{style:{margin:0,fontSize:"18px"},heading:5},{default:j(()=>[Rf(" K5Web \u5DE5\u5177\u7BB1 ")]),_:1}),!q.value&&Se(f).device==="mobile"?(an(),wn(M,{key:0,style:{"font-size":"22px",cursor:"pointer"},onClick:Se(on)},null,8,["onClick"])):Pe("",!0)]),_:1})]),ln("div",j0,[q.value?(an(),wn(zi,{key:0})):Pe("",!0)]),ln("ul",n1,[ln("li",null,[N(K,{type:"primary",onClick:F},{default:j(()=>[Rf(Ff(Se(f).connectState?"\u65AD\u5F00":"\u8FDE\u63A5"),1)]),_:1})]),ln("li",null,[N(xn,{content:C.value==="light"?y.$t("settings.navbar.theme.toDark"):y.$t("settings.navbar.theme.toLight")},{default:j(()=>[N(K,{class:"nav-btn",type:"outline",shape:"circle",onClick:pn},{icon:j(()=>[C.value==="dark"?(an(),wn(X,{key:0})):(an(),wn(mn,{key:1}))]),_:1})]),_:1},8,["content"])]),ln("li",null,[N(xn,{content:Se(W)?y.$t("settings.navbar.screen.toExit"):y.$t("settings.navbar.screen.toFull")},{default:j(()=>[N(K,{class:"nav-btn",type:"outline",shape:"circle",onClick:Se(un)},{icon:j(()=>[Se(W)?(an(),wn(On,{key:0})):(an(),wn(te,{key:1}))]),_:1},8,["onClick"])]),_:1},8,["content"])])])])}}});const t1=At(e1,[["__scopeId","data-v-fb709508"]]);const nt=S=>(Wf("data-v-17257cfa"),S=S(),Uf(),S),r1={class:"tag-link"},i1=nt(()=>ln("span",null,"\u91CD\u65B0\u52A0\u8F7D",-1)),u1=nt(()=>ln("span",null,"\u5173\u95ED\u5F53\u524D\u6807\u7B7E\u9875",-1)),o1=nt(()=>ln("span",null,"\u5173\u95ED\u5DE6\u4FA7\u6807\u7B7E\u9875",-1)),f1=nt(()=>ln("span",null,"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",-1)),s1=nt(()=>ln("span",null,"\u5173\u95ED\u5176\u5B83\u6807\u7B7E\u9875",-1)),a1=nt(()=>ln("span",null,"\u5173\u95ED\u5168\u90E8\u6807\u7B7E\u9875",-1)),l1=je({__name:"tab-item",props:{itemData:{type:Object,default(){return[]}},index:{type:Number,default:0}},setup(S){const E=S,f=mr(),H=Zi(),W=qi(),un=y=>{f.push({...y})},C=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===C.value.length-1),on=(y,O)=>{if(W.deleteTag(O,y),E.itemData.fullPath===H.fullPath){const m=C.value[O-1];f.push({name:m.name})}},Sn=()=>C.value.findIndex(y=>y.fullPath===H.fullPath),F=async y=>{const{itemData:O,index:m}=E,M=[...C.value];if(y==="current")on(O,m);else if(y==="left"){const Y=Sn();M.splice(1,E.index-1),W.freshTabList(M),Ym&&f.push({name:O.name})}else if(y==="others"){const Y=C.value.filter((K,X)=>X===0||X===E.index);W.freshTabList(Y),f.push({name:O.name})}else y==="reload"?(W.deleteCache(O),await f.push({name:Rd,params:{path:H.fullPath}}),W.addCache(O.name)):(W.resetTabList(),f.push({name:Cd}))};return(y,O)=>{const m=Vd,M=Od,Y=jd,K=Md,X=Dd,mn=Pd,xn=Fd,On=Jd;return an(),wn(On,{trigger:"contextMenu","popup-max-height":!1,onSelect:F},{content:j(()=>[N(Y,{disabled:q.value,value:"reload"},{default:j(()=>[N(M),i1]),_:1},8,["disabled","value"]),N(Y,{class:"sperate-line",disabled:_n.value,value:"current"},{default:j(()=>[N(m),u1]),_:1},8,["disabled","value"]),N(Y,{disabled:Z.value,value:"left"},{default:j(()=>[N(K),o1]),_:1},8,["disabled","value"]),N(Y,{class:"sperate-line",disabled:pn.value,value:"right"},{default:j(()=>[N(X),f1]),_:1},8,["disabled","value"]),N(Y,{value:"others"},{default:j(()=>[N(mn),s1]),_:1},8,["value"]),N(Y,{value:"all"},{default:j(()=>[N(xn),a1]),_:1},8,["value"])]),default:j(()=>[ln("span",{class:Bf(["arco-tag arco-tag-size-medium arco-tag-checked",{"link-activated":S.itemData.fullPath===y.$route.fullPath}]),onClick:O[1]||(O[1]=te=>un(S.itemData))},[ln("span",r1,Ff(y.$t(S.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]=Qd(te=>on(S.itemData,S.index),["stop"]))},[N(m)])],2)]),_:1})}}});const c1=At(l1,[["__scopeId","data-v-17257cfa"]]),h1=S=>(Wf("data-v-509db106"),S=S(),Uf(),S),_1={class:"tab-bar-container"},p1={class:"tab-bar-box"},g1={class:"tab-bar-scroll"},d1={class:"tags-wrap"},v1=h1(()=>ln("div",{class:"tag-bar-operation"},null,-1)),w1=je({__name:"index",setup(S){const E=Ve(),f=qi(),H=Qe(),W=rn(()=>f.getTabList),un=rn(()=>E.navbar?60:0);return $f(()=>E.navbar,()=>{H.value.updatePosition()}),Pf(C=>{!C.meta.noAffix&&!W.value.some(q=>q.fullPath===C.fullPath)&&f.updateTabList(C)},!0),n0(()=>{Bd()}),(C,q)=>{const _n=e0;return an(),wr("div",_1,[N(_n,{ref_key:"affixRef",ref:H,"offset-top":un.value},{default:j(()=>[ln("div",p1,[ln("div",g1,[ln("div",d1,[(an(!0),wr(t0,null,r0(W.value,(Z,pn)=>(an(),wn(c1,{key:Z.fullPath,index:pn,"item-data":Z},null,8,["index","item-data"]))),128))])]),v1])]),_:1},8,["offset-top"])])}}});const m1=At(w1,[["__scopeId","data-v-509db106"]]);function x1(S,E,f,H=!1){S.addEventListener&&typeof S.addEventListener=="function"&&S.addEventListener(E,f,H)}function y1(S,E,f,H=!1){S.removeEventListener&&typeof S.removeEventListener=="function"&&S.removeEventListener(E,f,H)}const b1=992;function S1(){return document.body.getBoundingClientRect().width-1{S&&H()}),i0(()=>{x1(window,"resize",H)}),u0(()=>{y1(window,"resize",H)})}const L1=je({__name:"page-layout",setup(S){const E=qi(),f=rn(()=>E.getCacheList);return(H,W)=>{const un=o0("router-view");return an(),wn(un,null,{default:j(({Component:C,route:q})=>[N(s0,{name:"fade",mode:"out-in",appear:""},{default:j(()=>[q.meta.ignoreCache?(an(),wn(Cf(C),{key:q.fullPath})):(an(),wn(f0,{key:1,include:f.value},[(an(),wn(Cf(C),{key:q.fullPath}))],1032,["include"]))]),_:2},1024)]),_:1})}}}),E1={key:0,class:"layout-navbar"},I1={class:"menu-wrapper"},T1="60px",R1=je({__name:"default-layout",setup(S){const E=Qe(!1),f=Ve(),H=Gi(),W=mr(),un=Zi(),C=Df();A1(!0);const q=rn(()=>f.navbar),_n=rn(()=>f.menu&&!f.topMenu),Z=rn(()=>f.hideMenu),pn=rn(()=>f.footer),on=rn(()=>f.menuCollapse?48:f.menuWidth),Sn=rn(()=>f.menuCollapse),F=rn(()=>{const M=_n.value&&!Z.value?{paddingLeft:`${on.value}px`}:{},Y=q.value?{paddingTop:T1}:{};return{...M,...Y}}),y=M=>{!E.value||f.updateSettings({menuCollapse:M})};$f(()=>H.role,M=>{M&&!C.accessRouter(un)&&W.push({name:"notFound"})});const O=Qe(!1),m=()=>{O.value=!1};return a0("toggleDrawerMenu",()=>{O.value=!O.value}),Hf(()=>{E.value=!0}),(M,Y)=>{const K=p0,X=l0,mn=g0,xn=c0;return an(),wn(xn,{class:Bf(["layout",{mobile:Se(f).hideMenu}])},{default:j(()=>[q.value?(an(),wr("div",E1,[N(t1)])):Pe("",!0),N(xn,null,{default:j(()=>[N(xn,null,{default:j(()=>[_n.value?h0((an(),wn(K,{key:0,class:"layout-sider",breakpoint:"xl",collapsed:Sn.value,collapsible:!0,width:on.value,style:Of({paddingTop:q.value?"60px":""}),"hide-trigger":!0,onCollapse:y},{default:j(()=>[ln("div",I1,[N(zi)])]),_:1},8,["collapsed","width","style"])),[[_0,!Z.value]]):Pe("",!0),Z.value?(an(),wn(X,{key:1,visible:O.value,placement:"left",footer:!1,"mask-closable":"",closable:!1,onCancel:m},{default:j(()=>[N(zi)]),_:1},8,["visible"])):Pe("",!0),N(xn,{class:"layout-content",style:Of(F.value)},{default:j(()=>[Se(f).tabBar?(an(),wn(m1,{key:0})):Pe("",!0),N(mn,null,{default:j(()=>[N(L1)]),_:1}),pn.value?(an(),wn(Wd,{key:1})):Pe("",!0)]),_:1},8,["style"])]),_:1})]),_:1})]),_:1},8,["class"])}}});const H1=At(R1,[["__scopeId","data-v-428bc3c1"]]);export{H1 as default};