homebridge-config-ui-x 4.73.1-beta.1 → 4.73.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/package.json +2 -2
- package/public/{chunk-UND3LJFK.js → chunk-2FPKNEQU.js} +1 -1
- package/public/chunk-2LKZB2N2.js +1 -0
- package/public/{chunk-3GOT5OTA.js → chunk-2O3EAX4M.js} +1 -1
- package/public/{chunk-UVY7HNKO.js → chunk-3AWCS5BE.js} +1 -1
- package/public/{chunk-BG7ESWIQ.js → chunk-3BUJEMLU.js} +1 -1
- package/public/{chunk-FYABYZ4C.js → chunk-4SDPLKKB.js} +1 -1
- package/public/chunk-5MEDJHB4.js +1 -0
- package/public/{chunk-5GBFUHXD.js → chunk-5SBWRV45.js} +1 -1
- package/public/{chunk-RDMRD7HP.js → chunk-5ZAKBIPF.js} +1 -1
- package/public/{chunk-VN6X7TMO.js → chunk-7KQ4Y4MF.js} +1 -1
- package/public/{chunk-GLXXFGJE.js → chunk-AIIN7EAC.js} +1 -1
- package/public/{chunk-5EBIKT5Z.js → chunk-B2V7HCVC.js} +1 -1
- package/public/chunk-BZ5MX3MM.js +1 -0
- package/public/{chunk-YFWTWE5D.js → chunk-CQQD6J4A.js} +1 -1
- package/public/{chunk-DOBCEZDS.js → chunk-DHO24A6N.js} +1 -1
- package/public/{chunk-HMSJQHWM.js → chunk-DOUEEOVC.js} +1 -1
- package/public/chunk-DYHT3ZOO.js +1 -0
- package/public/chunk-EZCG4DJJ.js +1 -0
- package/public/{chunk-FION6GLR.js → chunk-FIJ2RMZJ.js} +1 -1
- package/public/{chunk-K35NZOCB.js → chunk-FKJB73E7.js} +1 -1
- package/public/{chunk-UCG645E4.js → chunk-FYRXHZYK.js} +1 -1
- package/public/{chunk-DT35LAJI.js → chunk-HJBNZ7OF.js} +1 -1
- package/public/chunk-I3TXFQFP.js +1 -0
- package/public/chunk-IEM5UE6T.js +1 -0
- package/public/chunk-IJ4YX2GQ.js +1 -0
- package/public/chunk-J746VYVV.js +1 -0
- package/public/{chunk-IWFXFQAM.js → chunk-JAASPYHI.js} +1 -1
- package/public/{chunk-KA6TPDKW.js → chunk-JJH3QVBP.js} +1 -1
- package/public/{chunk-W624KBVO.js → chunk-JV672LMU.js} +1 -1
- package/public/{chunk-Q5IGLPP2.js → chunk-KDYASKRC.js} +1 -1
- package/public/{chunk-C7PK4KKG.js → chunk-LBG7BYDP.js} +1 -1
- package/public/{chunk-B7S2HDXM.js → chunk-LJY4SQIX.js} +1 -1
- package/public/{chunk-BEIATTMN.js → chunk-MP2YKZWI.js} +1 -1
- package/public/{chunk-YZAP5EGZ.js → chunk-NHBL7UBX.js} +1 -1
- package/public/{chunk-YWLF6T3V.js → chunk-NSE4DDA3.js} +1 -1
- package/public/{chunk-RSE4H2VE.js → chunk-NSPVZWKT.js} +1 -1
- package/public/{chunk-66IWBDJO.js → chunk-OGC3GJBZ.js} +1 -1
- package/public/{chunk-EHMHHXWN.js → chunk-OIMTLUSU.js} +1 -1
- package/public/{chunk-DNQHEABS.js → chunk-OKRL3VMP.js} +1 -1
- package/public/{chunk-RCKASER4.js → chunk-P3PTJ52Y.js} +1 -1
- package/public/chunk-PA7NOYTJ.js +1 -0
- package/public/chunk-POPJDYWX.js +1 -0
- package/public/{chunk-FPVBKSVF.js → chunk-PSPTDWZJ.js} +1 -1
- package/public/{chunk-MHIZPPRA.js → chunk-PWKHXUC2.js} +1 -1
- package/public/{chunk-RUGQG2B6.js → chunk-RS254CAK.js} +1 -1
- package/public/{chunk-QG3DFZN6.js → chunk-S322LPDA.js} +1 -1
- package/public/{chunk-D5L5G5FB.js → chunk-SGEFLPG5.js} +1 -1
- package/public/{chunk-DJ3PBAIA.js → chunk-T5GODY3K.js} +1 -1
- package/public/chunk-TDQFLY5R.js +1 -0
- package/public/{chunk-22JUFPHA.js → chunk-UGBRYLDF.js} +1 -1
- package/public/{chunk-HZ5TG7W5.js → chunk-UTFIPNPM.js} +1 -1
- package/public/{chunk-UAX5UT7F.js → chunk-VBJCIX6P.js} +1 -1
- package/public/{chunk-GREKY4IF.js → chunk-VHQGSHBK.js} +1 -1
- package/public/{chunk-ZBIYJZQE.js → chunk-WEQ4QOIX.js} +1 -1
- package/public/{chunk-XAOEKSED.js → chunk-X3BPDN3Y.js} +1 -1
- package/public/chunk-XIHL3LFR.js +1 -0
- package/public/{chunk-FQ34BF6C.js → chunk-YIO3A5GY.js} +1 -1
- package/public/chunk-YRWSDDHZ.js +1 -0
- package/public/{chunk-QQHGYRZD.js → chunk-ZCT6LT76.js} +1 -1
- package/public/{chunk-EFQ2V6KV.js → chunk-ZRE7SXZ6.js} +1 -1
- package/public/index.html +1 -1
- package/public/main-OKD26Q2A.js +1 -0
- package/public/chunk-35MPCQ42.js +0 -1
- package/public/chunk-4JG2U757.js +0 -1
- package/public/chunk-4S3XENPE.js +0 -1
- package/public/chunk-72NPWAFZ.js +0 -1
- package/public/chunk-EMWTEXOO.js +0 -1
- package/public/chunk-EUQANM5M.js +0 -1
- package/public/chunk-J7O5SEVW.js +0 -1
- package/public/chunk-NUL2N47J.js +0 -1
- package/public/chunk-RLX7EKTO.js +0 -1
- package/public/chunk-T67F7IQR.js +0 -1
- package/public/chunk-VZM5E3LX.js +0 -1
- package/public/chunk-WQDDOQ7W.js +0 -1
- package/public/chunk-XLTYP2QL.js +0 -1
- package/public/chunk-ZGPYDEPG.js +0 -1
- package/public/main-W62VZUHS.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as St,b as jC}from"./chunk-W624KBVO.js";import{a as Rs}from"./chunk-Y5BDWQTD.js";import{a as Di,b as si}from"./chunk-BBVFH2MI.js";import{a as Ws}from"./chunk-D3QNROQA.js";import{a as Ks}from"./chunk-YFWTWE5D.js";import{a as Gs}from"./chunk-ZEGJJ2QZ.js";import{a as on}from"./chunk-SZTIHT5G.js";import{a as zs,b as Us}from"./chunk-L4SPVWCZ.js";import{a as no}from"./chunk-B2ERIJJG.js";import{a as Hs}from"./chunk-IQBKWEOJ.js";import{a as sf,b as lf,c as df,d as cf,e as pf,f as mf,g as ri,m as Ce,n as Ue,o as oi}from"./chunk-U3XAGOD7.js";import{a as Ps,b as ui,c as ii,e as ot,f as Os,h as Ms,i as js,k as Ns,l as Du,m as qs,o as ni,r as fi,s as Ou,t as Mu,x as Vs,y as At,z as io}from"./chunk-DVN556RD.js";import{a as ai}from"./chunk-UCG645E4.js";import{d as qt}from"./chunk-2IW5LNPB.js";import{a as Ls}from"./chunk-5GBFUHXD.js";import{b as $e}from"./chunk-K35NZOCB.js";import{h as pe,j as su,k as se}from"./chunk-D5L5G5FB.js";import{e as Ts}from"./chunk-G75CPMPQ.js";import{a as ce,b as ge}from"./chunk-QIWZD5HO.js";import{$c as nt,Ac as _,Bc as B,Cc as qe,D as gs,Da as _s,Fa as it,Ga as R,Gc as ks,Ha as Yu,Ia as of,Jb as G,Kb as g,Lb as wt,M as ff,Mb as ei,Nb as Z,Ob as xs,Pb as x,Rb as He,Sb as We,Tb as Ge,Ub as d,Vb as c,Wb as I,Xb as ws,Yb as Is,Z as to,Zc as gt,_b as z,_c as Pu,a as Q,aa as rn,b as Ee,bc as P,cb as oe,cc as C,cd as $s,e as F,fa as hs,fb as ys,g as Oe,ga as xt,gb as s,gd as Df,h as W,ha as rf,jc as ru,k as ps,kc as ou,la as Es,lb as vs,ma as w,mb as uo,mc as b,n as pt,nc as L,ob as $u,oc as q,pb as fu,pc as Wt,q as ms,qc as As,rc as Be,sc as xe,ta as Xu,tb as J,tc as we,ua as j,ub as af,uc as Ss,v as Fs,va as N,vb as Tu,vc as Ne,w as ne,wb as Bs,wc as It,x as Cs,xa as bs,xc as au,yc as Gt,zb as k,zc as ti}from"./chunk-6JZDPQRU.js";var Zs=F((gV,Js)=>{function qC(){this.__data__=[],this.size=0}Js.exports=qC});var Ff=F((hV,Qs)=>{function VC(e,u){return e===u||e!==e&&u!==u}Qs.exports=VC});var an=F((EV,Xs)=>{var RC=Ff();function LC(e,u){for(var t=e.length;t--;)if(RC(e[t][0],u))return t;return-1}Xs.exports=LC});var e0=F((bV,Ys)=>{var zC=an(),UC=Array.prototype,HC=UC.splice;function WC(e){var u=this.__data__,t=zC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():HC.call(u,t,1),--this.size,!0}Ys.exports=WC});var u0=F((_V,t0)=>{var GC=an();function KC(e){var u=this.__data__,t=GC(u,e);return t<0?void 0:u[t][1]}t0.exports=KC});var n0=F((yV,i0)=>{var JC=an();function ZC(e){return JC(this.__data__,e)>-1}i0.exports=ZC});var r0=F((vV,f0)=>{var QC=an();function XC(e,u){var t=this.__data__,i=QC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}f0.exports=XC});var Dn=F((BV,o0)=>{var YC=Zs(),e4=e0(),t4=u0(),u4=n0(),i4=r0();function di(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}di.prototype.clear=YC;di.prototype.delete=e4;di.prototype.get=t4;di.prototype.has=u4;di.prototype.set=i4;o0.exports=di});var D0=F((xV,a0)=>{var n4=Dn();function f4(){this.__data__=new n4,this.size=0}a0.exports=f4});var l0=F((wV,s0)=>{function r4(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}s0.exports=r4});var c0=F((IV,d0)=>{function o4(e){return this.__data__.get(e)}d0.exports=o4});var m0=F((AV,p0)=>{function a4(e){return this.__data__.has(e)}p0.exports=a4});var fo=F((SV,F0)=>{var D4=typeof global=="object"&&global&&global.Object===Object&&global;F0.exports=D4});var kt=F((kV,C0)=>{var s4=fo(),l4=typeof self=="object"&&self&&self.Object===Object&&self,d4=s4||l4||Function("return this")();C0.exports=d4});var ci=F(($V,g0)=>{var c4=kt(),p4=c4.Symbol;g0.exports=p4});var _0=F((TV,b0)=>{var h0=ci(),E0=Object.prototype,m4=E0.hasOwnProperty,F4=E0.toString,sn=h0?h0.toStringTag:void 0;function C4(e){var u=m4.call(e,sn),t=e[sn];try{e[sn]=void 0;var i=!0}catch{}var n=F4.call(e);return i&&(u?e[sn]=t:delete e[sn]),n}b0.exports=C4});var v0=F((PV,y0)=>{var g4=Object.prototype,h4=g4.toString;function E4(e){return h4.call(e)}y0.exports=E4});var ju=F((OV,w0)=>{var B0=ci(),b4=_0(),_4=v0(),y4="[object Null]",v4="[object Undefined]",x0=B0?B0.toStringTag:void 0;function B4(e){return e==null?e===void 0?v4:y4:x0&&x0 in Object(e)?b4(e):_4(e)}w0.exports=B4});var Nu=F((MV,I0)=>{function x4(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}I0.exports=x4});var ro=F((jV,A0)=>{var w4=ju(),I4=Nu(),A4="[object AsyncFunction]",S4="[object Function]",k4="[object GeneratorFunction]",$4="[object Proxy]";function T4(e){if(!I4(e))return!1;var u=w4(e);return u==S4||u==k4||u==A4||u==$4}A0.exports=T4});var k0=F((NV,S0)=>{var P4=kt(),O4=P4["__core-js_shared__"];S0.exports=O4});var P0=F((qV,T0)=>{var oo=k0(),$0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4(e){return!!$0&&$0 in e}T0.exports=M4});var ao=F((VV,O0)=>{var j4=Function.prototype,N4=j4.toString;function q4(e){if(e!=null){try{return N4.call(e)}catch{}try{return e+""}catch{}}return""}O0.exports=q4});var j0=F((RV,M0)=>{var V4=ro(),R4=P0(),L4=Nu(),z4=ao(),U4=/[\\^$.*+?()[\]{}|]/g,H4=/^\[object .+?Constructor\]$/,W4=Function.prototype,G4=Object.prototype,K4=W4.toString,J4=G4.hasOwnProperty,Z4=RegExp("^"+K4.call(J4).replace(U4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q4(e){if(!L4(e)||R4(e))return!1;var u=V4(e)?Z4:H4;return u.test(z4(e))}M0.exports=Q4});var q0=F((LV,N0)=>{function X4(e,u){return e==null?void 0:e[u]}N0.exports=X4});var lu=F((zV,V0)=>{var Y4=j0(),e5=q0();function t5(e,u){var t=e5(e,u);return Y4(t)?t:void 0}V0.exports=t5});var Cf=F((UV,R0)=>{var u5=lu(),i5=kt(),n5=u5(i5,"Map");R0.exports=n5});var ln=F((HV,L0)=>{var f5=lu(),r5=f5(Object,"create");L0.exports=r5});var H0=F((WV,U0)=>{var z0=ln();function o5(){this.__data__=z0?z0(null):{},this.size=0}U0.exports=o5});var G0=F((GV,W0)=>{function a5(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}W0.exports=a5});var J0=F((KV,K0)=>{var D5=ln(),s5="__lodash_hash_undefined__",l5=Object.prototype,d5=l5.hasOwnProperty;function c5(e){var u=this.__data__;if(D5){var t=u[e];return t===s5?void 0:t}return d5.call(u,e)?u[e]:void 0}K0.exports=c5});var Q0=F((JV,Z0)=>{var p5=ln(),m5=Object.prototype,F5=m5.hasOwnProperty;function C5(e){var u=this.__data__;return p5?u[e]!==void 0:F5.call(u,e)}Z0.exports=C5});var Y0=F((ZV,X0)=>{var g5=ln(),h5="__lodash_hash_undefined__";function E5(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=g5&&u===void 0?h5:u,this}X0.exports=E5});var t1=F((QV,e1)=>{var b5=H0(),_5=G0(),y5=J0(),v5=Q0(),B5=Y0();function pi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}pi.prototype.clear=b5;pi.prototype.delete=_5;pi.prototype.get=y5;pi.prototype.has=v5;pi.prototype.set=B5;e1.exports=pi});var n1=F((XV,i1)=>{var u1=t1(),x5=Dn(),w5=Cf();function I5(){this.size=0,this.__data__={hash:new u1,map:new(w5||x5),string:new u1}}i1.exports=I5});var r1=F((YV,f1)=>{function A5(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}f1.exports=A5});var dn=F((eR,o1)=>{var S5=r1();function k5(e,u){var t=e.__data__;return S5(u)?t[typeof u=="string"?"string":"hash"]:t.map}o1.exports=k5});var D1=F((tR,a1)=>{var $5=dn();function T5(e){var u=$5(this,e).delete(e);return this.size-=u?1:0,u}a1.exports=T5});var l1=F((uR,s1)=>{var P5=dn();function O5(e){return P5(this,e).get(e)}s1.exports=O5});var c1=F((iR,d1)=>{var M5=dn();function j5(e){return M5(this,e).has(e)}d1.exports=j5});var m1=F((nR,p1)=>{var N5=dn();function q5(e,u){var t=N5(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}p1.exports=q5});var gf=F((fR,F1)=>{var V5=n1(),R5=D1(),L5=l1(),z5=c1(),U5=m1();function mi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}mi.prototype.clear=V5;mi.prototype.delete=R5;mi.prototype.get=L5;mi.prototype.has=z5;mi.prototype.set=U5;F1.exports=mi});var g1=F((rR,C1)=>{var H5=Dn(),W5=Cf(),G5=gf(),K5=200;function J5(e,u){var t=this.__data__;if(t instanceof H5){var i=t.__data__;if(!W5||i.length<K5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new G5(i)}return t.set(e,u),this.size=t.size,this}C1.exports=J5});var hf=F((oR,h1)=>{var Z5=Dn(),Q5=D0(),X5=l0(),Y5=c0(),eg=m0(),tg=g1();function Fi(e){var u=this.__data__=new Z5(e);this.size=u.size}Fi.prototype.clear=Q5;Fi.prototype.delete=X5;Fi.prototype.get=Y5;Fi.prototype.has=eg;Fi.prototype.set=tg;h1.exports=Fi});var b1=F((aR,E1)=>{function ug(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}E1.exports=ug});var y1=F((DR,_1)=>{var ig=lu(),ng=function(){try{var e=ig(Object,"defineProperty");return e({},"",{}),e}catch{}}();_1.exports=ng});var Do=F((sR,B1)=>{var v1=y1();function fg(e,u,t){u=="__proto__"&&v1?v1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}B1.exports=fg});var so=F((lR,x1)=>{var rg=Do(),og=Ff(),ag=Object.prototype,Dg=ag.hasOwnProperty;function sg(e,u,t){var i=e[u];(!(Dg.call(e,u)&&og(i,t))||t===void 0&&!(u in e))&&rg(e,u,t)}x1.exports=sg});var cn=F((dR,w1)=>{var lg=so(),dg=Do();function cg(e,u,t,i){var n=!t;t||(t={});for(var f=-1,r=u.length;++f<r;){var o=u[f],a=i?i(t[o],e[o],o,t,e):void 0;a===void 0&&(a=e[o]),n?dg(t,o,a):lg(t,o,a)}return t}w1.exports=cg});var A1=F((cR,I1)=>{function pg(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}I1.exports=pg});var Kt=F((pR,S1)=>{function mg(e){return e!=null&&typeof e=="object"}S1.exports=mg});var $1=F((mR,k1)=>{var Fg=ju(),Cg=Kt(),gg="[object Arguments]";function hg(e){return Cg(e)&&Fg(e)==gg}k1.exports=hg});var lo=F((FR,O1)=>{var T1=$1(),Eg=Kt(),P1=Object.prototype,bg=P1.hasOwnProperty,_g=P1.propertyIsEnumerable,yg=T1(function(){return arguments}())?T1:function(e){return Eg(e)&&bg.call(e,"callee")&&!_g.call(e,"callee")};O1.exports=yg});var mt=F((CR,M1)=>{var vg=Array.isArray;M1.exports=vg});var N1=F((gR,j1)=>{function Bg(){return!1}j1.exports=Bg});var Ef=F((pn,Ci)=>{var xg=kt(),wg=N1(),R1=typeof pn=="object"&&pn&&!pn.nodeType&&pn,q1=R1&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Ig=q1&&q1.exports===R1,V1=Ig?xg.Buffer:void 0,Ag=V1?V1.isBuffer:void 0,Sg=Ag||wg;Ci.exports=Sg});var co=F((hR,L1)=>{var kg=9007199254740991,$g=/^(?:0|[1-9]\d*)$/;function Tg(e,u){var t=typeof e;return u=u==null?kg:u,!!u&&(t=="number"||t!="symbol"&&$g.test(e))&&e>-1&&e%1==0&&e<u}L1.exports=Tg});var bf=F((ER,z1)=>{var Pg=9007199254740991;function Og(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pg}z1.exports=Og});var H1=F((bR,U1)=>{var Mg=ju(),jg=bf(),Ng=Kt(),qg="[object Arguments]",Vg="[object Array]",Rg="[object Boolean]",Lg="[object Date]",zg="[object Error]",Ug="[object Function]",Hg="[object Map]",Wg="[object Number]",Gg="[object Object]",Kg="[object RegExp]",Jg="[object Set]",Zg="[object String]",Qg="[object WeakMap]",Xg="[object ArrayBuffer]",Yg="[object DataView]",eh="[object Float32Array]",th="[object Float64Array]",uh="[object Int8Array]",ih="[object Int16Array]",nh="[object Int32Array]",fh="[object Uint8Array]",rh="[object Uint8ClampedArray]",oh="[object Uint16Array]",ah="[object Uint32Array]",Ie={};Ie[eh]=Ie[th]=Ie[uh]=Ie[ih]=Ie[nh]=Ie[fh]=Ie[rh]=Ie[oh]=Ie[ah]=!0;Ie[qg]=Ie[Vg]=Ie[Xg]=Ie[Rg]=Ie[Yg]=Ie[Lg]=Ie[zg]=Ie[Ug]=Ie[Hg]=Ie[Wg]=Ie[Gg]=Ie[Kg]=Ie[Jg]=Ie[Zg]=Ie[Qg]=!1;function Dh(e){return Ng(e)&&jg(e.length)&&!!Ie[Mg(e)]}U1.exports=Dh});var _f=F((_R,W1)=>{function sh(e){return function(u){return e(u)}}W1.exports=sh});var yf=F((mn,gi)=>{var lh=fo(),G1=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Fn=G1&&typeof gi=="object"&&gi&&!gi.nodeType&&gi,dh=Fn&&Fn.exports===G1,po=dh&&lh.process,ch=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();gi.exports=ch});var mo=F((yR,Z1)=>{var ph=H1(),mh=_f(),K1=yf(),J1=K1&&K1.isTypedArray,Fh=J1?mh(J1):ph;Z1.exports=Fh});var Fo=F((vR,Q1)=>{var Ch=A1(),gh=lo(),hh=mt(),Eh=Ef(),bh=co(),_h=mo(),yh=Object.prototype,vh=yh.hasOwnProperty;function Bh(e,u){var t=hh(e),i=!t&&gh(e),n=!t&&!i&&Eh(e),f=!t&&!i&&!n&&_h(e),r=t||i||n||f,o=r?Ch(e.length,String):[],a=o.length;for(var D in e)(u||vh.call(e,D))&&!(r&&(D=="length"||n&&(D=="offset"||D=="parent")||f&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||bh(D,a)))&&o.push(D);return o}Q1.exports=Bh});var vf=F((BR,X1)=>{var xh=Object.prototype;function wh(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||xh;return e===t}X1.exports=wh});var Co=F((xR,Y1)=>{function Ih(e,u){return function(t){return e(u(t))}}Y1.exports=Ih});var tl=F((wR,el)=>{var Ah=Co(),Sh=Ah(Object.keys,Object);el.exports=Sh});var il=F((IR,ul)=>{var kh=vf(),$h=tl(),Th=Object.prototype,Ph=Th.hasOwnProperty;function Oh(e){if(!kh(e))return $h(e);var u=[];for(var t in Object(e))Ph.call(e,t)&&t!="constructor"&&u.push(t);return u}ul.exports=Oh});var Cn=F((AR,nl)=>{var Mh=ro(),jh=bf();function Nh(e){return e!=null&&jh(e.length)&&!Mh(e)}nl.exports=Nh});var hi=F((SR,fl)=>{var qh=Fo(),Vh=il(),Rh=Cn();function Lh(e){return Rh(e)?qh(e):Vh(e)}fl.exports=Lh});var ol=F((kR,rl)=>{var zh=cn(),Uh=hi();function Hh(e,u){return e&&zh(u,Uh(u),e)}rl.exports=Hh});var Dl=F(($R,al)=>{function Wh(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}al.exports=Wh});var ll=F((TR,sl)=>{var Gh=Nu(),Kh=vf(),Jh=Dl(),Zh=Object.prototype,Qh=Zh.hasOwnProperty;function Xh(e){if(!Gh(e))return Jh(e);var u=Kh(e),t=[];for(var i in e)i=="constructor"&&(u||!Qh.call(e,i))||t.push(i);return t}sl.exports=Xh});var Bf=F((PR,dl)=>{var Yh=Fo(),e6=ll(),t6=Cn();function u6(e){return t6(e)?Yh(e,!0):e6(e)}dl.exports=u6});var pl=F((OR,cl)=>{var i6=cn(),n6=Bf();function f6(e,u){return e&&i6(u,n6(u),e)}cl.exports=f6});var hl=F((gn,Ei)=>{var r6=kt(),gl=typeof gn=="object"&&gn&&!gn.nodeType&&gn,ml=gl&&typeof Ei=="object"&&Ei&&!Ei.nodeType&&Ei,o6=ml&&ml.exports===gl,Fl=o6?r6.Buffer:void 0,Cl=Fl?Fl.allocUnsafe:void 0;function a6(e,u){if(u)return e.slice();var t=e.length,i=Cl?Cl(t):new e.constructor(t);return e.copy(i),i}Ei.exports=a6});var bl=F((MR,El)=>{function D6(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}El.exports=D6});var go=F((jR,_l)=>{function s6(e,u){for(var t=-1,i=e==null?0:e.length,n=0,f=[];++t<i;){var r=e[t];u(r,t,e)&&(f[n++]=r)}return f}_l.exports=s6});var ho=F((NR,yl)=>{function l6(){return[]}yl.exports=l6});var xf=F((qR,Bl)=>{var d6=go(),c6=ho(),p6=Object.prototype,m6=p6.propertyIsEnumerable,vl=Object.getOwnPropertySymbols,F6=vl?function(e){return e==null?[]:(e=Object(e),d6(vl(e),function(u){return m6.call(e,u)}))}:c6;Bl.exports=F6});var wl=F((VR,xl)=>{var C6=cn(),g6=xf();function h6(e,u){return C6(e,g6(e),u)}xl.exports=h6});var Eo=F((RR,Il)=>{function E6(e,u){for(var t=-1,i=u.length,n=e.length;++t<i;)e[n+t]=u[t];return e}Il.exports=E6});var wf=F((LR,Al)=>{var b6=Co(),_6=b6(Object.getPrototypeOf,Object);Al.exports=_6});var bo=F((zR,Sl)=>{var y6=Eo(),v6=wf(),B6=xf(),x6=ho(),w6=Object.getOwnPropertySymbols,I6=w6?function(e){for(var u=[];e;)y6(u,B6(e)),e=v6(e);return u}:x6;Sl.exports=I6});var $l=F((UR,kl)=>{var A6=cn(),S6=bo();function k6(e,u){return A6(e,S6(e),u)}kl.exports=k6});var _o=F((HR,Tl)=>{var $6=Eo(),T6=mt();function P6(e,u,t){var i=u(e);return T6(e)?i:$6(i,t(e))}Tl.exports=P6});var yo=F((WR,Pl)=>{var O6=_o(),M6=xf(),j6=hi();function N6(e){return O6(e,j6,M6)}Pl.exports=N6});var Ml=F((GR,Ol)=>{var q6=_o(),V6=bo(),R6=Bf();function L6(e){return q6(e,R6,V6)}Ol.exports=L6});var Nl=F((KR,jl)=>{var z6=lu(),U6=kt(),H6=z6(U6,"DataView");jl.exports=H6});var Vl=F((JR,ql)=>{var W6=lu(),G6=kt(),K6=W6(G6,"Promise");ql.exports=K6});var Ll=F((ZR,Rl)=>{var J6=lu(),Z6=kt(),Q6=J6(Z6,"Set");Rl.exports=Q6});var Ul=F((QR,zl)=>{var X6=lu(),Y6=kt(),eE=X6(Y6,"WeakMap");zl.exports=eE});var hn=F((XR,Ql)=>{var vo=Nl(),Bo=Cf(),xo=Vl(),wo=Ll(),Io=Ul(),Zl=ju(),bi=ao(),Hl="[object Map]",tE="[object Object]",Wl="[object Promise]",Gl="[object Set]",Kl="[object WeakMap]",Jl="[object DataView]",uE=bi(vo),iE=bi(Bo),nE=bi(xo),fE=bi(wo),rE=bi(Io),qu=Zl;(vo&&qu(new vo(new ArrayBuffer(1)))!=Jl||Bo&&qu(new Bo)!=Hl||xo&&qu(xo.resolve())!=Wl||wo&&qu(new wo)!=Gl||Io&&qu(new Io)!=Kl)&&(qu=function(e){var u=Zl(e),t=u==tE?e.constructor:void 0,i=t?bi(t):"";if(i)switch(i){case uE:return Jl;case iE:return Hl;case nE:return Wl;case fE:return Gl;case rE:return Kl}return u});Ql.exports=qu});var Yl=F((YR,Xl)=>{var oE=Object.prototype,aE=oE.hasOwnProperty;function DE(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&aE.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Xl.exports=DE});var Ao=F((eL,ed)=>{var sE=kt(),lE=sE.Uint8Array;ed.exports=lE});var If=F((tL,ud)=>{var td=Ao();function dE(e){var u=new e.constructor(e.byteLength);return new td(u).set(new td(e)),u}ud.exports=dE});var nd=F((uL,id)=>{var cE=If();function pE(e,u){var t=u?cE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}id.exports=pE});var rd=F((iL,fd)=>{var mE=/\w*$/;function FE(e){var u=new e.constructor(e.source,mE.exec(e));return u.lastIndex=e.lastIndex,u}fd.exports=FE});var ld=F((nL,sd)=>{var od=ci(),ad=od?od.prototype:void 0,Dd=ad?ad.valueOf:void 0;function CE(e){return Dd?Object(Dd.call(e)):{}}sd.exports=CE});var cd=F((fL,dd)=>{var gE=If();function hE(e,u){var t=u?gE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}dd.exports=hE});var md=F((rL,pd)=>{var EE=If(),bE=nd(),_E=rd(),yE=ld(),vE=cd(),BE="[object Boolean]",xE="[object Date]",wE="[object Map]",IE="[object Number]",AE="[object RegExp]",SE="[object Set]",kE="[object String]",$E="[object Symbol]",TE="[object ArrayBuffer]",PE="[object DataView]",OE="[object Float32Array]",ME="[object Float64Array]",jE="[object Int8Array]",NE="[object Int16Array]",qE="[object Int32Array]",VE="[object Uint8Array]",RE="[object Uint8ClampedArray]",LE="[object Uint16Array]",zE="[object Uint32Array]";function UE(e,u,t){var i=e.constructor;switch(u){case TE:return EE(e);case BE:case xE:return new i(+e);case PE:return bE(e,t);case OE:case ME:case jE:case NE:case qE:case VE:case RE:case LE:case zE:return vE(e,t);case wE:return new i;case IE:case kE:return new i(e);case AE:return _E(e);case SE:return new i;case $E:return yE(e)}}pd.exports=UE});var gd=F((oL,Cd)=>{var HE=Nu(),Fd=Object.create,WE=function(){function e(){}return function(u){if(!HE(u))return{};if(Fd)return Fd(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Cd.exports=WE});var Ed=F((aL,hd)=>{var GE=gd(),KE=wf(),JE=vf();function ZE(e){return typeof e.constructor=="function"&&!JE(e)?GE(KE(e)):{}}hd.exports=ZE});var _d=F((DL,bd)=>{var QE=hn(),XE=Kt(),YE="[object Map]";function eb(e){return XE(e)&&QE(e)==YE}bd.exports=eb});var xd=F((sL,Bd)=>{var tb=_d(),ub=_f(),yd=yf(),vd=yd&&yd.isMap,ib=vd?ub(vd):tb;Bd.exports=ib});var Id=F((lL,wd)=>{var nb=hn(),fb=Kt(),rb="[object Set]";function ob(e){return fb(e)&&nb(e)==rb}wd.exports=ob});var $d=F((dL,kd)=>{var ab=Id(),Db=_f(),Ad=yf(),Sd=Ad&&Ad.isSet,sb=Sd?Db(Sd):ab;kd.exports=sb});var jd=F((cL,Md)=>{var lb=hf(),db=b1(),cb=so(),pb=ol(),mb=pl(),Fb=hl(),Cb=bl(),gb=wl(),hb=$l(),Eb=yo(),bb=Ml(),_b=hn(),yb=Yl(),vb=md(),Bb=Ed(),xb=mt(),wb=Ef(),Ib=xd(),Ab=Nu(),Sb=$d(),kb=hi(),$b=Bf(),Tb=1,Pb=2,Ob=4,Td="[object Arguments]",Mb="[object Array]",jb="[object Boolean]",Nb="[object Date]",qb="[object Error]",Pd="[object Function]",Vb="[object GeneratorFunction]",Rb="[object Map]",Lb="[object Number]",Od="[object Object]",zb="[object RegExp]",Ub="[object Set]",Hb="[object String]",Wb="[object Symbol]",Gb="[object WeakMap]",Kb="[object ArrayBuffer]",Jb="[object DataView]",Zb="[object Float32Array]",Qb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",e_="[object Int32Array]",t_="[object Uint8Array]",u_="[object Uint8ClampedArray]",i_="[object Uint16Array]",n_="[object Uint32Array]",ye={};ye[Td]=ye[Mb]=ye[Kb]=ye[Jb]=ye[jb]=ye[Nb]=ye[Zb]=ye[Qb]=ye[Xb]=ye[Yb]=ye[e_]=ye[Rb]=ye[Lb]=ye[Od]=ye[zb]=ye[Ub]=ye[Hb]=ye[Wb]=ye[t_]=ye[u_]=ye[i_]=ye[n_]=!0;ye[qb]=ye[Pd]=ye[Gb]=!1;function Af(e,u,t,i,n,f){var r,o=u&Tb,a=u&Pb,D=u&Ob;if(t&&(r=n?t(e,i,n,f):t(e)),r!==void 0)return r;if(!Ab(e))return e;var l=xb(e);if(l){if(r=yb(e),!o)return Cb(e,r)}else{var p=_b(e),m=p==Pd||p==Vb;if(wb(e))return Fb(e,o);if(p==Od||p==Td||m&&!n){if(r=a||m?{}:Bb(e),!o)return a?hb(e,mb(r,e)):gb(e,pb(r,e))}else{if(!ye[p])return n?e:{};r=vb(e,p,o)}}f||(f=new lb);var E=f.get(e);if(E)return E;f.set(e,r),Sb(e)?e.forEach(function(v){r.add(Af(v,u,t,v,e,f))}):Ib(e)&&e.forEach(function(v,S){r.set(S,Af(v,u,t,S,e,f))});var h=D?a?bb:Eb:a?$b:kb,y=l?void 0:h(e);return db(y||e,function(v,S){y&&(S=v,v=e[S]),cb(r,S,Af(v,u,t,S,e,f))}),r}Md.exports=Af});var qd=F((pL,Nd)=>{var f_=jd(),r_=1,o_=4;function a_(e){return f_(e,r_|o_)}Nd.exports=a_});var Rd=F((mL,Vd)=>{var D_="__lodash_hash_undefined__";function s_(e){return this.__data__.set(e,D_),this}Vd.exports=s_});var zd=F((FL,Ld)=>{function l_(e){return this.__data__.has(e)}Ld.exports=l_});var Hd=F((CL,Ud)=>{var d_=gf(),c_=Rd(),p_=zd();function Sf(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new d_;++u<t;)this.add(e[u])}Sf.prototype.add=Sf.prototype.push=c_;Sf.prototype.has=p_;Ud.exports=Sf});var Gd=F((gL,Wd)=>{function m_(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}Wd.exports=m_});var Jd=F((hL,Kd)=>{function F_(e,u){return e.has(u)}Kd.exports=F_});var So=F((EL,Zd)=>{var C_=Hd(),g_=Gd(),h_=Jd(),E_=1,b_=2;function __(e,u,t,i,n,f){var r=t&E_,o=e.length,a=u.length;if(o!=a&&!(r&&a>o))return!1;var D=f.get(e),l=f.get(u);if(D&&l)return D==u&&l==e;var p=-1,m=!0,E=t&b_?new C_:void 0;for(f.set(e,u),f.set(u,e);++p<o;){var h=e[p],y=u[p];if(i)var v=r?i(y,h,p,u,e,f):i(h,y,p,e,u,f);if(v!==void 0){if(v)continue;m=!1;break}if(E){if(!g_(u,function(S,O){if(!h_(E,O)&&(h===S||n(h,S,t,i,f)))return E.push(O)})){m=!1;break}}else if(!(h===y||n(h,y,t,i,f))){m=!1;break}}return f.delete(e),f.delete(u),m}Zd.exports=__});var Xd=F((bL,Qd)=>{function y_(e){var u=-1,t=Array(e.size);return e.forEach(function(i,n){t[++u]=[n,i]}),t}Qd.exports=y_});var e3=F((_L,Yd)=>{function v_(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}Yd.exports=v_});var f3=F((yL,n3)=>{var t3=ci(),u3=Ao(),B_=Ff(),x_=So(),w_=Xd(),I_=e3(),A_=1,S_=2,k_="[object Boolean]",$_="[object Date]",T_="[object Error]",P_="[object Map]",O_="[object Number]",M_="[object RegExp]",j_="[object Set]",N_="[object String]",q_="[object Symbol]",V_="[object ArrayBuffer]",R_="[object DataView]",i3=t3?t3.prototype:void 0,ko=i3?i3.valueOf:void 0;function L_(e,u,t,i,n,f,r){switch(t){case R_:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case V_:return!(e.byteLength!=u.byteLength||!f(new u3(e),new u3(u)));case k_:case $_:case O_:return B_(+e,+u);case T_:return e.name==u.name&&e.message==u.message;case M_:case N_:return e==u+"";case P_:var o=w_;case j_:var a=i&A_;if(o||(o=I_),e.size!=u.size&&!a)return!1;var D=r.get(e);if(D)return D==u;i|=S_,r.set(e,u);var l=x_(o(e),o(u),i,n,f,r);return r.delete(e),l;case q_:if(ko)return ko.call(e)==ko.call(u)}return!1}n3.exports=L_});var a3=F((vL,o3)=>{var r3=yo(),z_=1,U_=Object.prototype,H_=U_.hasOwnProperty;function W_(e,u,t,i,n,f){var r=t&z_,o=r3(e),a=o.length,D=r3(u),l=D.length;if(a!=l&&!r)return!1;for(var p=a;p--;){var m=o[p];if(!(r?m in u:H_.call(u,m)))return!1}var E=f.get(e),h=f.get(u);if(E&&h)return E==u&&h==e;var y=!0;f.set(e,u),f.set(u,e);for(var v=r;++p<a;){m=o[p];var S=e[m],O=u[m];if(i)var U=r?i(O,S,m,u,e,f):i(S,O,m,e,u,f);if(!(U===void 0?S===O||n(S,O,t,i,f):U)){y=!1;break}v||(v=m=="constructor")}if(y&&!v){var H=e.constructor,M=u.constructor;H!=M&&"constructor"in e&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(e),f.delete(u),y}o3.exports=W_});var F3=F((BL,m3)=>{var $o=hf(),G_=So(),K_=f3(),J_=a3(),D3=hn(),s3=mt(),l3=Ef(),Z_=mo(),Q_=1,d3="[object Arguments]",c3="[object Array]",kf="[object Object]",X_=Object.prototype,p3=X_.hasOwnProperty;function Y_(e,u,t,i,n,f){var r=s3(e),o=s3(u),a=r?c3:D3(e),D=o?c3:D3(u);a=a==d3?kf:a,D=D==d3?kf:D;var l=a==kf,p=D==kf,m=a==D;if(m&&l3(e)){if(!l3(u))return!1;r=!0,l=!1}if(m&&!l)return f||(f=new $o),r||Z_(e)?G_(e,u,t,i,n,f):K_(e,u,a,t,i,n,f);if(!(t&Q_)){var E=l&&p3.call(e,"__wrapped__"),h=p&&p3.call(u,"__wrapped__");if(E||h){var y=E?e.value():e,v=h?u.value():u;return f||(f=new $o),n(y,v,t,i,f)}}return m?(f||(f=new $o),J_(e,u,t,i,n,f)):!1}m3.exports=Y_});var $f=F((xL,h3)=>{var e9=F3(),C3=Kt();function g3(e,u,t,i,n){return e===u?!0:e==null||u==null||!C3(e)&&!C3(u)?e!==e&&u!==u:e9(e,u,t,i,g3,n)}h3.exports=g3});var b3=F((wL,E3)=>{var t9=$f();function u9(e,u){return t9(e,u)}E3.exports=u9});var _n=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.regexpCode=de.getEsmExportName=de.getProperty=de.safeStringify=de.stringify=de.strConcat=de.addCodeArg=de.str=de._=de.nil=de._Code=de.Name=de.IDENTIFIER=de._CodeOrName=void 0;var En=class{};de._CodeOrName=En;de.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vu=class extends En{constructor(u){if(super(),!de.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};de.Name=Vu;var ht=class extends En{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof Vu&&(t[i.str]=(t[i.str]||0)+1),t),{})}};de._Code=ht;de.nil=new ht("");function _3(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new ht(t)}de._=_3;var To=new ht("+");function y3(e,...u){let t=[bn(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,bn(e[++i]));return i9(t),new ht(t)}de.str=y3;function Po(e,u){u instanceof ht?e.push(...u._items):u instanceof Vu?e.push(u):e.push(r9(u))}de.addCodeArg=Po;function i9(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=n9(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function n9(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof Vu||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof Vu))return`"${e}${u.slice(1)}`}function f9(e,u){return u.emptyStr()?e:e.emptyStr()?u:y3`${e}${u}`}de.strConcat=f9;function r9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bn(Array.isArray(e)?e.join(","):e)}function o9(e){return new ht(bn(e))}de.stringify=o9;function bn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}de.safeStringify=bn;function a9(e){return typeof e=="string"&&de.IDENTIFIER.test(e)?new ht(`.${e}`):_3`[${e}]`}de.getProperty=a9;function D9(e){if(typeof e=="string"&&de.IDENTIFIER.test(e))return new ht(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}de.getEsmExportName=D9;function s9(e){return new ht(e.toString())}de.regexpCode=s9});var jo=F(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var at=_n(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tf=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tf||(Dt.UsedValueState=Tf={}));Dt.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var Pf=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof at.Name?u:this.name(u)}name(u){return new at.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};Dt.Scope=Pf;var Of=class extends at.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,at._)`.${new at.Name(t)}[${i}]`}};Dt.ValueScopeName=Of;var l9=(0,at._)`\n`,Mo=class extends Pf{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=Ee(Q({},u),{_n:u.lines?l9:at.nil})}get(){return this._scope}name(u){return new Of(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let l=o.get(r);if(l)return l}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,at._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=at.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,Tf.Started);let l=t(D);if(l){let p=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;f=(0,at._)`${f}${p} ${D} = ${l};${this.opts._n}`}else if(l=n==null?void 0:n(D))f=(0,at._)`${f}${l}${this.opts._n}`;else throw new Oo(D);a.set(D,Tf.Completed)})}return f}};Dt.ValueScope=Mo});var te=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var De=_n(),$t=jo(),du=_n();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return du._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return du.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return du.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return du.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return du.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return du.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return du.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return du.Name}});var Vf=jo();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Vf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Vf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Vf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Vf.varKinds}});ie.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Jt=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Jt{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?$t.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=_i(this.rhs,u,t)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},jf=class extends Jt{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof De.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=_i(this.rhs,u,t),this}get names(){let u=this.lhs instanceof De.Name?{}:Q({},this.lhs.names);return qf(u,this.rhs)}},qo=class extends jf{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Jt{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Jt{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=_i(this.code,u,t),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},yn=class extends Jt{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(d9(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>Ru(u,t.names),{})}},Zt=class extends yn{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Uo=class extends yn{},Ho=(()=>{class e extends Zt{}return e.kind="else",e})(),Mf=(()=>{class e extends Zt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ho(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(I3(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=_i(this.condition,t,i),this}get names(){let t=super.names;return qf(t,this.condition),this.else&&Ru(t,this.else.names),t}}return e.kind="if",e})(),Rf=(()=>{class e extends Zt{}return e.kind="for",e})(),Wo=class extends Rf{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=_i(this.iteration,u,t),this}get names(){return Ru(super.names,this.iteration.names)}},Go=class extends Rf{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?$t.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=qf(super.names,this.from);return qf(u,this.to)}},Nf=class extends Rf{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=_i(this.iterable,u,t),this}get names(){return Ru(super.names,this.iterable.names)}},v3=(()=>{class e extends Zt{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),B3=(()=>{class e extends yn{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Zt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&Ru(u,this.catch.names),this.finally&&Ru(u,this.finally.names),u}},x3=(()=>{class e extends Zt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),w3=(()=>{class e extends Zt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ee(Q({},t),{_n:t.lines?`
|
|
1
|
+
import{a as St,b as jC}from"./chunk-JV672LMU.js";import{a as Rs}from"./chunk-Y5BDWQTD.js";import{a as Di,b as si}from"./chunk-BBVFH2MI.js";import{a as Ws}from"./chunk-D3QNROQA.js";import{a as Ks}from"./chunk-CQQD6J4A.js";import{a as Gs}from"./chunk-ZEGJJ2QZ.js";import{a as on}from"./chunk-SZTIHT5G.js";import{a as zs,b as Us}from"./chunk-L4SPVWCZ.js";import{a as no}from"./chunk-B2ERIJJG.js";import{a as Hs}from"./chunk-IQBKWEOJ.js";import{a as sf,b as lf,c as df,d as cf,e as pf,f as mf,g as ri,m as Ce,n as Ue,o as oi}from"./chunk-U3XAGOD7.js";import{a as Ps,b as ui,c as ii,e as ot,f as Os,h as Ms,i as js,k as Ns,l as Du,m as qs,o as ni,r as fi,s as Ou,t as Mu,x as Vs,y as At,z as io}from"./chunk-DVN556RD.js";import{a as ai}from"./chunk-FYRXHZYK.js";import{d as qt}from"./chunk-2IW5LNPB.js";import{a as Ls}from"./chunk-5SBWRV45.js";import{b as $e}from"./chunk-FKJB73E7.js";import{h as pe,j as su,k as se}from"./chunk-SGEFLPG5.js";import{e as Ts}from"./chunk-G75CPMPQ.js";import{a as ce,b as ge}from"./chunk-QIWZD5HO.js";import{$c as nt,Ac as _,Bc as B,Cc as qe,D as gs,Da as _s,Fa as it,Ga as R,Gc as ks,Ha as Yu,Ia as of,Jb as G,Kb as g,Lb as wt,M as ff,Mb as ei,Nb as Z,Ob as xs,Pb as x,Rb as He,Sb as We,Tb as Ge,Ub as d,Vb as c,Wb as I,Xb as ws,Yb as Is,Z as to,Zc as gt,_b as z,_c as Pu,a as Q,aa as rn,b as Ee,bc as P,cb as oe,cc as C,cd as $s,e as F,fa as hs,fb as ys,g as Oe,ga as xt,gb as s,gd as Df,h as W,ha as rf,jc as ru,k as ps,kc as ou,la as Es,lb as vs,ma as w,mb as uo,mc as b,n as pt,nc as L,ob as $u,oc as q,pb as fu,pc as Wt,q as ms,qc as As,rc as Be,sc as xe,ta as Xu,tb as J,tc as we,ua as j,ub as af,uc as Ss,v as Fs,va as N,vb as Tu,vc as Ne,w as ne,wb as Bs,wc as It,x as Cs,xa as bs,xc as au,yc as Gt,zb as k,zc as ti}from"./chunk-6JZDPQRU.js";var Zs=F((gV,Js)=>{function qC(){this.__data__=[],this.size=0}Js.exports=qC});var Ff=F((hV,Qs)=>{function VC(e,u){return e===u||e!==e&&u!==u}Qs.exports=VC});var an=F((EV,Xs)=>{var RC=Ff();function LC(e,u){for(var t=e.length;t--;)if(RC(e[t][0],u))return t;return-1}Xs.exports=LC});var e0=F((bV,Ys)=>{var zC=an(),UC=Array.prototype,HC=UC.splice;function WC(e){var u=this.__data__,t=zC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():HC.call(u,t,1),--this.size,!0}Ys.exports=WC});var u0=F((_V,t0)=>{var GC=an();function KC(e){var u=this.__data__,t=GC(u,e);return t<0?void 0:u[t][1]}t0.exports=KC});var n0=F((yV,i0)=>{var JC=an();function ZC(e){return JC(this.__data__,e)>-1}i0.exports=ZC});var r0=F((vV,f0)=>{var QC=an();function XC(e,u){var t=this.__data__,i=QC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}f0.exports=XC});var Dn=F((BV,o0)=>{var YC=Zs(),e4=e0(),t4=u0(),u4=n0(),i4=r0();function di(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}di.prototype.clear=YC;di.prototype.delete=e4;di.prototype.get=t4;di.prototype.has=u4;di.prototype.set=i4;o0.exports=di});var D0=F((xV,a0)=>{var n4=Dn();function f4(){this.__data__=new n4,this.size=0}a0.exports=f4});var l0=F((wV,s0)=>{function r4(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}s0.exports=r4});var c0=F((IV,d0)=>{function o4(e){return this.__data__.get(e)}d0.exports=o4});var m0=F((AV,p0)=>{function a4(e){return this.__data__.has(e)}p0.exports=a4});var fo=F((SV,F0)=>{var D4=typeof global=="object"&&global&&global.Object===Object&&global;F0.exports=D4});var kt=F((kV,C0)=>{var s4=fo(),l4=typeof self=="object"&&self&&self.Object===Object&&self,d4=s4||l4||Function("return this")();C0.exports=d4});var ci=F(($V,g0)=>{var c4=kt(),p4=c4.Symbol;g0.exports=p4});var _0=F((TV,b0)=>{var h0=ci(),E0=Object.prototype,m4=E0.hasOwnProperty,F4=E0.toString,sn=h0?h0.toStringTag:void 0;function C4(e){var u=m4.call(e,sn),t=e[sn];try{e[sn]=void 0;var i=!0}catch{}var n=F4.call(e);return i&&(u?e[sn]=t:delete e[sn]),n}b0.exports=C4});var v0=F((PV,y0)=>{var g4=Object.prototype,h4=g4.toString;function E4(e){return h4.call(e)}y0.exports=E4});var ju=F((OV,w0)=>{var B0=ci(),b4=_0(),_4=v0(),y4="[object Null]",v4="[object Undefined]",x0=B0?B0.toStringTag:void 0;function B4(e){return e==null?e===void 0?v4:y4:x0&&x0 in Object(e)?b4(e):_4(e)}w0.exports=B4});var Nu=F((MV,I0)=>{function x4(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}I0.exports=x4});var ro=F((jV,A0)=>{var w4=ju(),I4=Nu(),A4="[object AsyncFunction]",S4="[object Function]",k4="[object GeneratorFunction]",$4="[object Proxy]";function T4(e){if(!I4(e))return!1;var u=w4(e);return u==S4||u==k4||u==A4||u==$4}A0.exports=T4});var k0=F((NV,S0)=>{var P4=kt(),O4=P4["__core-js_shared__"];S0.exports=O4});var P0=F((qV,T0)=>{var oo=k0(),$0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4(e){return!!$0&&$0 in e}T0.exports=M4});var ao=F((VV,O0)=>{var j4=Function.prototype,N4=j4.toString;function q4(e){if(e!=null){try{return N4.call(e)}catch{}try{return e+""}catch{}}return""}O0.exports=q4});var j0=F((RV,M0)=>{var V4=ro(),R4=P0(),L4=Nu(),z4=ao(),U4=/[\\^$.*+?()[\]{}|]/g,H4=/^\[object .+?Constructor\]$/,W4=Function.prototype,G4=Object.prototype,K4=W4.toString,J4=G4.hasOwnProperty,Z4=RegExp("^"+K4.call(J4).replace(U4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q4(e){if(!L4(e)||R4(e))return!1;var u=V4(e)?Z4:H4;return u.test(z4(e))}M0.exports=Q4});var q0=F((LV,N0)=>{function X4(e,u){return e==null?void 0:e[u]}N0.exports=X4});var lu=F((zV,V0)=>{var Y4=j0(),e5=q0();function t5(e,u){var t=e5(e,u);return Y4(t)?t:void 0}V0.exports=t5});var Cf=F((UV,R0)=>{var u5=lu(),i5=kt(),n5=u5(i5,"Map");R0.exports=n5});var ln=F((HV,L0)=>{var f5=lu(),r5=f5(Object,"create");L0.exports=r5});var H0=F((WV,U0)=>{var z0=ln();function o5(){this.__data__=z0?z0(null):{},this.size=0}U0.exports=o5});var G0=F((GV,W0)=>{function a5(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}W0.exports=a5});var J0=F((KV,K0)=>{var D5=ln(),s5="__lodash_hash_undefined__",l5=Object.prototype,d5=l5.hasOwnProperty;function c5(e){var u=this.__data__;if(D5){var t=u[e];return t===s5?void 0:t}return d5.call(u,e)?u[e]:void 0}K0.exports=c5});var Q0=F((JV,Z0)=>{var p5=ln(),m5=Object.prototype,F5=m5.hasOwnProperty;function C5(e){var u=this.__data__;return p5?u[e]!==void 0:F5.call(u,e)}Z0.exports=C5});var Y0=F((ZV,X0)=>{var g5=ln(),h5="__lodash_hash_undefined__";function E5(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=g5&&u===void 0?h5:u,this}X0.exports=E5});var t1=F((QV,e1)=>{var b5=H0(),_5=G0(),y5=J0(),v5=Q0(),B5=Y0();function pi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}pi.prototype.clear=b5;pi.prototype.delete=_5;pi.prototype.get=y5;pi.prototype.has=v5;pi.prototype.set=B5;e1.exports=pi});var n1=F((XV,i1)=>{var u1=t1(),x5=Dn(),w5=Cf();function I5(){this.size=0,this.__data__={hash:new u1,map:new(w5||x5),string:new u1}}i1.exports=I5});var r1=F((YV,f1)=>{function A5(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}f1.exports=A5});var dn=F((eR,o1)=>{var S5=r1();function k5(e,u){var t=e.__data__;return S5(u)?t[typeof u=="string"?"string":"hash"]:t.map}o1.exports=k5});var D1=F((tR,a1)=>{var $5=dn();function T5(e){var u=$5(this,e).delete(e);return this.size-=u?1:0,u}a1.exports=T5});var l1=F((uR,s1)=>{var P5=dn();function O5(e){return P5(this,e).get(e)}s1.exports=O5});var c1=F((iR,d1)=>{var M5=dn();function j5(e){return M5(this,e).has(e)}d1.exports=j5});var m1=F((nR,p1)=>{var N5=dn();function q5(e,u){var t=N5(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}p1.exports=q5});var gf=F((fR,F1)=>{var V5=n1(),R5=D1(),L5=l1(),z5=c1(),U5=m1();function mi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}mi.prototype.clear=V5;mi.prototype.delete=R5;mi.prototype.get=L5;mi.prototype.has=z5;mi.prototype.set=U5;F1.exports=mi});var g1=F((rR,C1)=>{var H5=Dn(),W5=Cf(),G5=gf(),K5=200;function J5(e,u){var t=this.__data__;if(t instanceof H5){var i=t.__data__;if(!W5||i.length<K5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new G5(i)}return t.set(e,u),this.size=t.size,this}C1.exports=J5});var hf=F((oR,h1)=>{var Z5=Dn(),Q5=D0(),X5=l0(),Y5=c0(),eg=m0(),tg=g1();function Fi(e){var u=this.__data__=new Z5(e);this.size=u.size}Fi.prototype.clear=Q5;Fi.prototype.delete=X5;Fi.prototype.get=Y5;Fi.prototype.has=eg;Fi.prototype.set=tg;h1.exports=Fi});var b1=F((aR,E1)=>{function ug(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}E1.exports=ug});var y1=F((DR,_1)=>{var ig=lu(),ng=function(){try{var e=ig(Object,"defineProperty");return e({},"",{}),e}catch{}}();_1.exports=ng});var Do=F((sR,B1)=>{var v1=y1();function fg(e,u,t){u=="__proto__"&&v1?v1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}B1.exports=fg});var so=F((lR,x1)=>{var rg=Do(),og=Ff(),ag=Object.prototype,Dg=ag.hasOwnProperty;function sg(e,u,t){var i=e[u];(!(Dg.call(e,u)&&og(i,t))||t===void 0&&!(u in e))&&rg(e,u,t)}x1.exports=sg});var cn=F((dR,w1)=>{var lg=so(),dg=Do();function cg(e,u,t,i){var n=!t;t||(t={});for(var f=-1,r=u.length;++f<r;){var o=u[f],a=i?i(t[o],e[o],o,t,e):void 0;a===void 0&&(a=e[o]),n?dg(t,o,a):lg(t,o,a)}return t}w1.exports=cg});var A1=F((cR,I1)=>{function pg(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}I1.exports=pg});var Kt=F((pR,S1)=>{function mg(e){return e!=null&&typeof e=="object"}S1.exports=mg});var $1=F((mR,k1)=>{var Fg=ju(),Cg=Kt(),gg="[object Arguments]";function hg(e){return Cg(e)&&Fg(e)==gg}k1.exports=hg});var lo=F((FR,O1)=>{var T1=$1(),Eg=Kt(),P1=Object.prototype,bg=P1.hasOwnProperty,_g=P1.propertyIsEnumerable,yg=T1(function(){return arguments}())?T1:function(e){return Eg(e)&&bg.call(e,"callee")&&!_g.call(e,"callee")};O1.exports=yg});var mt=F((CR,M1)=>{var vg=Array.isArray;M1.exports=vg});var N1=F((gR,j1)=>{function Bg(){return!1}j1.exports=Bg});var Ef=F((pn,Ci)=>{var xg=kt(),wg=N1(),R1=typeof pn=="object"&&pn&&!pn.nodeType&&pn,q1=R1&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Ig=q1&&q1.exports===R1,V1=Ig?xg.Buffer:void 0,Ag=V1?V1.isBuffer:void 0,Sg=Ag||wg;Ci.exports=Sg});var co=F((hR,L1)=>{var kg=9007199254740991,$g=/^(?:0|[1-9]\d*)$/;function Tg(e,u){var t=typeof e;return u=u==null?kg:u,!!u&&(t=="number"||t!="symbol"&&$g.test(e))&&e>-1&&e%1==0&&e<u}L1.exports=Tg});var bf=F((ER,z1)=>{var Pg=9007199254740991;function Og(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pg}z1.exports=Og});var H1=F((bR,U1)=>{var Mg=ju(),jg=bf(),Ng=Kt(),qg="[object Arguments]",Vg="[object Array]",Rg="[object Boolean]",Lg="[object Date]",zg="[object Error]",Ug="[object Function]",Hg="[object Map]",Wg="[object Number]",Gg="[object Object]",Kg="[object RegExp]",Jg="[object Set]",Zg="[object String]",Qg="[object WeakMap]",Xg="[object ArrayBuffer]",Yg="[object DataView]",eh="[object Float32Array]",th="[object Float64Array]",uh="[object Int8Array]",ih="[object Int16Array]",nh="[object Int32Array]",fh="[object Uint8Array]",rh="[object Uint8ClampedArray]",oh="[object Uint16Array]",ah="[object Uint32Array]",Ie={};Ie[eh]=Ie[th]=Ie[uh]=Ie[ih]=Ie[nh]=Ie[fh]=Ie[rh]=Ie[oh]=Ie[ah]=!0;Ie[qg]=Ie[Vg]=Ie[Xg]=Ie[Rg]=Ie[Yg]=Ie[Lg]=Ie[zg]=Ie[Ug]=Ie[Hg]=Ie[Wg]=Ie[Gg]=Ie[Kg]=Ie[Jg]=Ie[Zg]=Ie[Qg]=!1;function Dh(e){return Ng(e)&&jg(e.length)&&!!Ie[Mg(e)]}U1.exports=Dh});var _f=F((_R,W1)=>{function sh(e){return function(u){return e(u)}}W1.exports=sh});var yf=F((mn,gi)=>{var lh=fo(),G1=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Fn=G1&&typeof gi=="object"&&gi&&!gi.nodeType&&gi,dh=Fn&&Fn.exports===G1,po=dh&&lh.process,ch=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();gi.exports=ch});var mo=F((yR,Z1)=>{var ph=H1(),mh=_f(),K1=yf(),J1=K1&&K1.isTypedArray,Fh=J1?mh(J1):ph;Z1.exports=Fh});var Fo=F((vR,Q1)=>{var Ch=A1(),gh=lo(),hh=mt(),Eh=Ef(),bh=co(),_h=mo(),yh=Object.prototype,vh=yh.hasOwnProperty;function Bh(e,u){var t=hh(e),i=!t&&gh(e),n=!t&&!i&&Eh(e),f=!t&&!i&&!n&&_h(e),r=t||i||n||f,o=r?Ch(e.length,String):[],a=o.length;for(var D in e)(u||vh.call(e,D))&&!(r&&(D=="length"||n&&(D=="offset"||D=="parent")||f&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||bh(D,a)))&&o.push(D);return o}Q1.exports=Bh});var vf=F((BR,X1)=>{var xh=Object.prototype;function wh(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||xh;return e===t}X1.exports=wh});var Co=F((xR,Y1)=>{function Ih(e,u){return function(t){return e(u(t))}}Y1.exports=Ih});var tl=F((wR,el)=>{var Ah=Co(),Sh=Ah(Object.keys,Object);el.exports=Sh});var il=F((IR,ul)=>{var kh=vf(),$h=tl(),Th=Object.prototype,Ph=Th.hasOwnProperty;function Oh(e){if(!kh(e))return $h(e);var u=[];for(var t in Object(e))Ph.call(e,t)&&t!="constructor"&&u.push(t);return u}ul.exports=Oh});var Cn=F((AR,nl)=>{var Mh=ro(),jh=bf();function Nh(e){return e!=null&&jh(e.length)&&!Mh(e)}nl.exports=Nh});var hi=F((SR,fl)=>{var qh=Fo(),Vh=il(),Rh=Cn();function Lh(e){return Rh(e)?qh(e):Vh(e)}fl.exports=Lh});var ol=F((kR,rl)=>{var zh=cn(),Uh=hi();function Hh(e,u){return e&&zh(u,Uh(u),e)}rl.exports=Hh});var Dl=F(($R,al)=>{function Wh(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}al.exports=Wh});var ll=F((TR,sl)=>{var Gh=Nu(),Kh=vf(),Jh=Dl(),Zh=Object.prototype,Qh=Zh.hasOwnProperty;function Xh(e){if(!Gh(e))return Jh(e);var u=Kh(e),t=[];for(var i in e)i=="constructor"&&(u||!Qh.call(e,i))||t.push(i);return t}sl.exports=Xh});var Bf=F((PR,dl)=>{var Yh=Fo(),e6=ll(),t6=Cn();function u6(e){return t6(e)?Yh(e,!0):e6(e)}dl.exports=u6});var pl=F((OR,cl)=>{var i6=cn(),n6=Bf();function f6(e,u){return e&&i6(u,n6(u),e)}cl.exports=f6});var hl=F((gn,Ei)=>{var r6=kt(),gl=typeof gn=="object"&&gn&&!gn.nodeType&&gn,ml=gl&&typeof Ei=="object"&&Ei&&!Ei.nodeType&&Ei,o6=ml&&ml.exports===gl,Fl=o6?r6.Buffer:void 0,Cl=Fl?Fl.allocUnsafe:void 0;function a6(e,u){if(u)return e.slice();var t=e.length,i=Cl?Cl(t):new e.constructor(t);return e.copy(i),i}Ei.exports=a6});var bl=F((MR,El)=>{function D6(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}El.exports=D6});var go=F((jR,_l)=>{function s6(e,u){for(var t=-1,i=e==null?0:e.length,n=0,f=[];++t<i;){var r=e[t];u(r,t,e)&&(f[n++]=r)}return f}_l.exports=s6});var ho=F((NR,yl)=>{function l6(){return[]}yl.exports=l6});var xf=F((qR,Bl)=>{var d6=go(),c6=ho(),p6=Object.prototype,m6=p6.propertyIsEnumerable,vl=Object.getOwnPropertySymbols,F6=vl?function(e){return e==null?[]:(e=Object(e),d6(vl(e),function(u){return m6.call(e,u)}))}:c6;Bl.exports=F6});var wl=F((VR,xl)=>{var C6=cn(),g6=xf();function h6(e,u){return C6(e,g6(e),u)}xl.exports=h6});var Eo=F((RR,Il)=>{function E6(e,u){for(var t=-1,i=u.length,n=e.length;++t<i;)e[n+t]=u[t];return e}Il.exports=E6});var wf=F((LR,Al)=>{var b6=Co(),_6=b6(Object.getPrototypeOf,Object);Al.exports=_6});var bo=F((zR,Sl)=>{var y6=Eo(),v6=wf(),B6=xf(),x6=ho(),w6=Object.getOwnPropertySymbols,I6=w6?function(e){for(var u=[];e;)y6(u,B6(e)),e=v6(e);return u}:x6;Sl.exports=I6});var $l=F((UR,kl)=>{var A6=cn(),S6=bo();function k6(e,u){return A6(e,S6(e),u)}kl.exports=k6});var _o=F((HR,Tl)=>{var $6=Eo(),T6=mt();function P6(e,u,t){var i=u(e);return T6(e)?i:$6(i,t(e))}Tl.exports=P6});var yo=F((WR,Pl)=>{var O6=_o(),M6=xf(),j6=hi();function N6(e){return O6(e,j6,M6)}Pl.exports=N6});var Ml=F((GR,Ol)=>{var q6=_o(),V6=bo(),R6=Bf();function L6(e){return q6(e,R6,V6)}Ol.exports=L6});var Nl=F((KR,jl)=>{var z6=lu(),U6=kt(),H6=z6(U6,"DataView");jl.exports=H6});var Vl=F((JR,ql)=>{var W6=lu(),G6=kt(),K6=W6(G6,"Promise");ql.exports=K6});var Ll=F((ZR,Rl)=>{var J6=lu(),Z6=kt(),Q6=J6(Z6,"Set");Rl.exports=Q6});var Ul=F((QR,zl)=>{var X6=lu(),Y6=kt(),eE=X6(Y6,"WeakMap");zl.exports=eE});var hn=F((XR,Ql)=>{var vo=Nl(),Bo=Cf(),xo=Vl(),wo=Ll(),Io=Ul(),Zl=ju(),bi=ao(),Hl="[object Map]",tE="[object Object]",Wl="[object Promise]",Gl="[object Set]",Kl="[object WeakMap]",Jl="[object DataView]",uE=bi(vo),iE=bi(Bo),nE=bi(xo),fE=bi(wo),rE=bi(Io),qu=Zl;(vo&&qu(new vo(new ArrayBuffer(1)))!=Jl||Bo&&qu(new Bo)!=Hl||xo&&qu(xo.resolve())!=Wl||wo&&qu(new wo)!=Gl||Io&&qu(new Io)!=Kl)&&(qu=function(e){var u=Zl(e),t=u==tE?e.constructor:void 0,i=t?bi(t):"";if(i)switch(i){case uE:return Jl;case iE:return Hl;case nE:return Wl;case fE:return Gl;case rE:return Kl}return u});Ql.exports=qu});var Yl=F((YR,Xl)=>{var oE=Object.prototype,aE=oE.hasOwnProperty;function DE(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&aE.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Xl.exports=DE});var Ao=F((eL,ed)=>{var sE=kt(),lE=sE.Uint8Array;ed.exports=lE});var If=F((tL,ud)=>{var td=Ao();function dE(e){var u=new e.constructor(e.byteLength);return new td(u).set(new td(e)),u}ud.exports=dE});var nd=F((uL,id)=>{var cE=If();function pE(e,u){var t=u?cE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}id.exports=pE});var rd=F((iL,fd)=>{var mE=/\w*$/;function FE(e){var u=new e.constructor(e.source,mE.exec(e));return u.lastIndex=e.lastIndex,u}fd.exports=FE});var ld=F((nL,sd)=>{var od=ci(),ad=od?od.prototype:void 0,Dd=ad?ad.valueOf:void 0;function CE(e){return Dd?Object(Dd.call(e)):{}}sd.exports=CE});var cd=F((fL,dd)=>{var gE=If();function hE(e,u){var t=u?gE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}dd.exports=hE});var md=F((rL,pd)=>{var EE=If(),bE=nd(),_E=rd(),yE=ld(),vE=cd(),BE="[object Boolean]",xE="[object Date]",wE="[object Map]",IE="[object Number]",AE="[object RegExp]",SE="[object Set]",kE="[object String]",$E="[object Symbol]",TE="[object ArrayBuffer]",PE="[object DataView]",OE="[object Float32Array]",ME="[object Float64Array]",jE="[object Int8Array]",NE="[object Int16Array]",qE="[object Int32Array]",VE="[object Uint8Array]",RE="[object Uint8ClampedArray]",LE="[object Uint16Array]",zE="[object Uint32Array]";function UE(e,u,t){var i=e.constructor;switch(u){case TE:return EE(e);case BE:case xE:return new i(+e);case PE:return bE(e,t);case OE:case ME:case jE:case NE:case qE:case VE:case RE:case LE:case zE:return vE(e,t);case wE:return new i;case IE:case kE:return new i(e);case AE:return _E(e);case SE:return new i;case $E:return yE(e)}}pd.exports=UE});var gd=F((oL,Cd)=>{var HE=Nu(),Fd=Object.create,WE=function(){function e(){}return function(u){if(!HE(u))return{};if(Fd)return Fd(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Cd.exports=WE});var Ed=F((aL,hd)=>{var GE=gd(),KE=wf(),JE=vf();function ZE(e){return typeof e.constructor=="function"&&!JE(e)?GE(KE(e)):{}}hd.exports=ZE});var _d=F((DL,bd)=>{var QE=hn(),XE=Kt(),YE="[object Map]";function eb(e){return XE(e)&&QE(e)==YE}bd.exports=eb});var xd=F((sL,Bd)=>{var tb=_d(),ub=_f(),yd=yf(),vd=yd&&yd.isMap,ib=vd?ub(vd):tb;Bd.exports=ib});var Id=F((lL,wd)=>{var nb=hn(),fb=Kt(),rb="[object Set]";function ob(e){return fb(e)&&nb(e)==rb}wd.exports=ob});var $d=F((dL,kd)=>{var ab=Id(),Db=_f(),Ad=yf(),Sd=Ad&&Ad.isSet,sb=Sd?Db(Sd):ab;kd.exports=sb});var jd=F((cL,Md)=>{var lb=hf(),db=b1(),cb=so(),pb=ol(),mb=pl(),Fb=hl(),Cb=bl(),gb=wl(),hb=$l(),Eb=yo(),bb=Ml(),_b=hn(),yb=Yl(),vb=md(),Bb=Ed(),xb=mt(),wb=Ef(),Ib=xd(),Ab=Nu(),Sb=$d(),kb=hi(),$b=Bf(),Tb=1,Pb=2,Ob=4,Td="[object Arguments]",Mb="[object Array]",jb="[object Boolean]",Nb="[object Date]",qb="[object Error]",Pd="[object Function]",Vb="[object GeneratorFunction]",Rb="[object Map]",Lb="[object Number]",Od="[object Object]",zb="[object RegExp]",Ub="[object Set]",Hb="[object String]",Wb="[object Symbol]",Gb="[object WeakMap]",Kb="[object ArrayBuffer]",Jb="[object DataView]",Zb="[object Float32Array]",Qb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",e_="[object Int32Array]",t_="[object Uint8Array]",u_="[object Uint8ClampedArray]",i_="[object Uint16Array]",n_="[object Uint32Array]",ye={};ye[Td]=ye[Mb]=ye[Kb]=ye[Jb]=ye[jb]=ye[Nb]=ye[Zb]=ye[Qb]=ye[Xb]=ye[Yb]=ye[e_]=ye[Rb]=ye[Lb]=ye[Od]=ye[zb]=ye[Ub]=ye[Hb]=ye[Wb]=ye[t_]=ye[u_]=ye[i_]=ye[n_]=!0;ye[qb]=ye[Pd]=ye[Gb]=!1;function Af(e,u,t,i,n,f){var r,o=u&Tb,a=u&Pb,D=u&Ob;if(t&&(r=n?t(e,i,n,f):t(e)),r!==void 0)return r;if(!Ab(e))return e;var l=xb(e);if(l){if(r=yb(e),!o)return Cb(e,r)}else{var p=_b(e),m=p==Pd||p==Vb;if(wb(e))return Fb(e,o);if(p==Od||p==Td||m&&!n){if(r=a||m?{}:Bb(e),!o)return a?hb(e,mb(r,e)):gb(e,pb(r,e))}else{if(!ye[p])return n?e:{};r=vb(e,p,o)}}f||(f=new lb);var E=f.get(e);if(E)return E;f.set(e,r),Sb(e)?e.forEach(function(v){r.add(Af(v,u,t,v,e,f))}):Ib(e)&&e.forEach(function(v,S){r.set(S,Af(v,u,t,S,e,f))});var h=D?a?bb:Eb:a?$b:kb,y=l?void 0:h(e);return db(y||e,function(v,S){y&&(S=v,v=e[S]),cb(r,S,Af(v,u,t,S,e,f))}),r}Md.exports=Af});var qd=F((pL,Nd)=>{var f_=jd(),r_=1,o_=4;function a_(e){return f_(e,r_|o_)}Nd.exports=a_});var Rd=F((mL,Vd)=>{var D_="__lodash_hash_undefined__";function s_(e){return this.__data__.set(e,D_),this}Vd.exports=s_});var zd=F((FL,Ld)=>{function l_(e){return this.__data__.has(e)}Ld.exports=l_});var Hd=F((CL,Ud)=>{var d_=gf(),c_=Rd(),p_=zd();function Sf(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new d_;++u<t;)this.add(e[u])}Sf.prototype.add=Sf.prototype.push=c_;Sf.prototype.has=p_;Ud.exports=Sf});var Gd=F((gL,Wd)=>{function m_(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}Wd.exports=m_});var Jd=F((hL,Kd)=>{function F_(e,u){return e.has(u)}Kd.exports=F_});var So=F((EL,Zd)=>{var C_=Hd(),g_=Gd(),h_=Jd(),E_=1,b_=2;function __(e,u,t,i,n,f){var r=t&E_,o=e.length,a=u.length;if(o!=a&&!(r&&a>o))return!1;var D=f.get(e),l=f.get(u);if(D&&l)return D==u&&l==e;var p=-1,m=!0,E=t&b_?new C_:void 0;for(f.set(e,u),f.set(u,e);++p<o;){var h=e[p],y=u[p];if(i)var v=r?i(y,h,p,u,e,f):i(h,y,p,e,u,f);if(v!==void 0){if(v)continue;m=!1;break}if(E){if(!g_(u,function(S,O){if(!h_(E,O)&&(h===S||n(h,S,t,i,f)))return E.push(O)})){m=!1;break}}else if(!(h===y||n(h,y,t,i,f))){m=!1;break}}return f.delete(e),f.delete(u),m}Zd.exports=__});var Xd=F((bL,Qd)=>{function y_(e){var u=-1,t=Array(e.size);return e.forEach(function(i,n){t[++u]=[n,i]}),t}Qd.exports=y_});var e3=F((_L,Yd)=>{function v_(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}Yd.exports=v_});var f3=F((yL,n3)=>{var t3=ci(),u3=Ao(),B_=Ff(),x_=So(),w_=Xd(),I_=e3(),A_=1,S_=2,k_="[object Boolean]",$_="[object Date]",T_="[object Error]",P_="[object Map]",O_="[object Number]",M_="[object RegExp]",j_="[object Set]",N_="[object String]",q_="[object Symbol]",V_="[object ArrayBuffer]",R_="[object DataView]",i3=t3?t3.prototype:void 0,ko=i3?i3.valueOf:void 0;function L_(e,u,t,i,n,f,r){switch(t){case R_:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case V_:return!(e.byteLength!=u.byteLength||!f(new u3(e),new u3(u)));case k_:case $_:case O_:return B_(+e,+u);case T_:return e.name==u.name&&e.message==u.message;case M_:case N_:return e==u+"";case P_:var o=w_;case j_:var a=i&A_;if(o||(o=I_),e.size!=u.size&&!a)return!1;var D=r.get(e);if(D)return D==u;i|=S_,r.set(e,u);var l=x_(o(e),o(u),i,n,f,r);return r.delete(e),l;case q_:if(ko)return ko.call(e)==ko.call(u)}return!1}n3.exports=L_});var a3=F((vL,o3)=>{var r3=yo(),z_=1,U_=Object.prototype,H_=U_.hasOwnProperty;function W_(e,u,t,i,n,f){var r=t&z_,o=r3(e),a=o.length,D=r3(u),l=D.length;if(a!=l&&!r)return!1;for(var p=a;p--;){var m=o[p];if(!(r?m in u:H_.call(u,m)))return!1}var E=f.get(e),h=f.get(u);if(E&&h)return E==u&&h==e;var y=!0;f.set(e,u),f.set(u,e);for(var v=r;++p<a;){m=o[p];var S=e[m],O=u[m];if(i)var U=r?i(O,S,m,u,e,f):i(S,O,m,e,u,f);if(!(U===void 0?S===O||n(S,O,t,i,f):U)){y=!1;break}v||(v=m=="constructor")}if(y&&!v){var H=e.constructor,M=u.constructor;H!=M&&"constructor"in e&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(e),f.delete(u),y}o3.exports=W_});var F3=F((BL,m3)=>{var $o=hf(),G_=So(),K_=f3(),J_=a3(),D3=hn(),s3=mt(),l3=Ef(),Z_=mo(),Q_=1,d3="[object Arguments]",c3="[object Array]",kf="[object Object]",X_=Object.prototype,p3=X_.hasOwnProperty;function Y_(e,u,t,i,n,f){var r=s3(e),o=s3(u),a=r?c3:D3(e),D=o?c3:D3(u);a=a==d3?kf:a,D=D==d3?kf:D;var l=a==kf,p=D==kf,m=a==D;if(m&&l3(e)){if(!l3(u))return!1;r=!0,l=!1}if(m&&!l)return f||(f=new $o),r||Z_(e)?G_(e,u,t,i,n,f):K_(e,u,a,t,i,n,f);if(!(t&Q_)){var E=l&&p3.call(e,"__wrapped__"),h=p&&p3.call(u,"__wrapped__");if(E||h){var y=E?e.value():e,v=h?u.value():u;return f||(f=new $o),n(y,v,t,i,f)}}return m?(f||(f=new $o),J_(e,u,t,i,n,f)):!1}m3.exports=Y_});var $f=F((xL,h3)=>{var e9=F3(),C3=Kt();function g3(e,u,t,i,n){return e===u?!0:e==null||u==null||!C3(e)&&!C3(u)?e!==e&&u!==u:e9(e,u,t,i,g3,n)}h3.exports=g3});var b3=F((wL,E3)=>{var t9=$f();function u9(e,u){return t9(e,u)}E3.exports=u9});var _n=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.regexpCode=de.getEsmExportName=de.getProperty=de.safeStringify=de.stringify=de.strConcat=de.addCodeArg=de.str=de._=de.nil=de._Code=de.Name=de.IDENTIFIER=de._CodeOrName=void 0;var En=class{};de._CodeOrName=En;de.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vu=class extends En{constructor(u){if(super(),!de.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};de.Name=Vu;var ht=class extends En{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof Vu&&(t[i.str]=(t[i.str]||0)+1),t),{})}};de._Code=ht;de.nil=new ht("");function _3(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new ht(t)}de._=_3;var To=new ht("+");function y3(e,...u){let t=[bn(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,bn(e[++i]));return i9(t),new ht(t)}de.str=y3;function Po(e,u){u instanceof ht?e.push(...u._items):u instanceof Vu?e.push(u):e.push(r9(u))}de.addCodeArg=Po;function i9(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=n9(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function n9(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof Vu||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof Vu))return`"${e}${u.slice(1)}`}function f9(e,u){return u.emptyStr()?e:e.emptyStr()?u:y3`${e}${u}`}de.strConcat=f9;function r9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bn(Array.isArray(e)?e.join(","):e)}function o9(e){return new ht(bn(e))}de.stringify=o9;function bn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}de.safeStringify=bn;function a9(e){return typeof e=="string"&&de.IDENTIFIER.test(e)?new ht(`.${e}`):_3`[${e}]`}de.getProperty=a9;function D9(e){if(typeof e=="string"&&de.IDENTIFIER.test(e))return new ht(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}de.getEsmExportName=D9;function s9(e){return new ht(e.toString())}de.regexpCode=s9});var jo=F(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var at=_n(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tf=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tf||(Dt.UsedValueState=Tf={}));Dt.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var Pf=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof at.Name?u:this.name(u)}name(u){return new at.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};Dt.Scope=Pf;var Of=class extends at.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,at._)`.${new at.Name(t)}[${i}]`}};Dt.ValueScopeName=Of;var l9=(0,at._)`\n`,Mo=class extends Pf{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=Ee(Q({},u),{_n:u.lines?l9:at.nil})}get(){return this._scope}name(u){return new Of(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let l=o.get(r);if(l)return l}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,at._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=at.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,Tf.Started);let l=t(D);if(l){let p=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;f=(0,at._)`${f}${p} ${D} = ${l};${this.opts._n}`}else if(l=n==null?void 0:n(D))f=(0,at._)`${f}${l}${this.opts._n}`;else throw new Oo(D);a.set(D,Tf.Completed)})}return f}};Dt.ValueScope=Mo});var te=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var De=_n(),$t=jo(),du=_n();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return du._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return du.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return du.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return du.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return du.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return du.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return du.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return du.Name}});var Vf=jo();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Vf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Vf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Vf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Vf.varKinds}});ie.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Jt=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Jt{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?$t.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=_i(this.rhs,u,t)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},jf=class extends Jt{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof De.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=_i(this.rhs,u,t),this}get names(){let u=this.lhs instanceof De.Name?{}:Q({},this.lhs.names);return qf(u,this.rhs)}},qo=class extends jf{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Jt{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Jt{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=_i(this.code,u,t),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},yn=class extends Jt{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(d9(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>Ru(u,t.names),{})}},Zt=class extends yn{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Uo=class extends yn{},Ho=(()=>{class e extends Zt{}return e.kind="else",e})(),Mf=(()=>{class e extends Zt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ho(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(I3(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=_i(this.condition,t,i),this}get names(){let t=super.names;return qf(t,this.condition),this.else&&Ru(t,this.else.names),t}}return e.kind="if",e})(),Rf=(()=>{class e extends Zt{}return e.kind="for",e})(),Wo=class extends Rf{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=_i(this.iteration,u,t),this}get names(){return Ru(super.names,this.iteration.names)}},Go=class extends Rf{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?$t.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=qf(super.names,this.from);return qf(u,this.to)}},Nf=class extends Rf{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=_i(this.iterable,u,t),this}get names(){return Ru(super.names,this.iterable.names)}},v3=(()=>{class e extends Zt{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),B3=(()=>{class e extends yn{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Zt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&Ru(u,this.catch.names),this.finally&&Ru(u,this.finally.names),u}},x3=(()=>{class e extends Zt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),w3=(()=>{class e extends Zt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ee(Q({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=u,this._scope=new $t.Scope({parent:u}),this._nodes=[new Uo]}toString(){return this._root.render(this.opts)}name(u){return this._scope.name(u)}scopeName(u){return this._extScope.name(u)}scopeValue(u,t){let i=this._extScope.value(u,t);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(u,t){return this._extScope.getValue(u,t)}scopeRefs(u){return this._extScope.scopeRefs(u,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(u,t,i,n){let f=this._scope.toName(t);return i!==void 0&&n&&(this._constants[f.str]=i),this._leafNode(new No(u,f,i)),f}const(u,t,i){return this._def($t.varKinds.const,u,t,i)}let(u,t,i){return this._def($t.varKinds.let,u,t,i)}var(u,t,i){return this._def($t.varKinds.var,u,t,i)}assign(u,t,i){return this._leafNode(new jf(u,t,i))}add(u,t){return this._leafNode(new qo(u,ie.operators.ADD,t))}code(u){return typeof u=="function"?u():u!==De.nil&&this._leafNode(new zo(u)),this}object(...u){let t=["{"];for(let[i,n]of u)t.length>1&&t.push(","),t.push(i),(i!==n||this.opts.es5)&&(t.push(":"),(0,De.addCodeArg)(t,n));return t.push("}"),new De._Code(t)}if(u,t,i){if(this._blockNode(new Mf(u)),t&&i)this.code(t).else().code(i).endIf();else if(t)this.code(t).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(u){return this._elseNode(new Mf(u))}else(){return this._elseNode(new Ho)}endIf(){return this._endBlockNode(Mf,Ho)}_for(u,t){return this._blockNode(u),t&&this.code(t).endFor(),this}for(u,t){return this._for(new Wo(u),t)}forRange(u,t,i,n,f=this.opts.es5?$t.varKinds.var:$t.varKinds.let){let r=this._scope.toName(u);return this._for(new Go(f,r,t,i),()=>n(r))}forOf(u,t,i,n=$t.varKinds.const){let f=this._scope.toName(u);if(this.opts.es5){let r=t instanceof De.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,De._)`${r}.length`,o=>{this.var(f,(0,De._)`${r}[${o}]`),i(f)})}return this._for(new Nf("of",n,f,t),()=>i(f))}forIn(u,t,i,n=this.opts.es5?$t.varKinds.var:$t.varKinds.const){if(this.opts.ownProperties)return this.forOf(u,(0,De._)`Object.keys(${t})`,i);let f=this._scope.toName(u);return this._for(new Nf("in",n,f,t),()=>i(f))}endFor(){return this._endBlockNode(Rf)}label(u){return this._leafNode(new Vo(u))}break(u){return this._leafNode(new Ro(u))}return(u){let t=new B3;if(this._blockNode(t),this.code(u),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B3)}try(u,t,i){if(!t&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Ko;if(this._blockNode(n),this.code(u),t){let f=this.name("e");this._currNode=n.catch=new x3(f),t(f)}return i&&(this._currNode=n.finally=new w3,this.code(i)),this._endBlockNode(x3,w3)}throw(u){return this._leafNode(new Lo(u))}block(u,t){return this._blockStarts.push(this._nodes.length),u&&this.code(u).endBlock(t),this}endBlock(u){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-t;if(i<0||u!==void 0&&i!==u)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${u} expected`);return this._nodes.length=t,this}func(u,t=De.nil,i,n){return this._blockNode(new v3(u,t,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(v3)}optimize(u=1){for(;u-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(u){return this._currNode.nodes.push(u),this}_blockNode(u){this._currNode.nodes.push(u),this._nodes.push(u)}_endBlockNode(u,t){let i=this._currNode;if(i instanceof u||t&&i instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${u.kind}/${t.kind}`:u.kind}"`)}_elseNode(u){let t=this._currNode;if(!(t instanceof Mf))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=u,this}get _root(){return this._nodes[0]}get _currNode(){let u=this._nodes;return u[u.length-1]}set _currNode(u){let t=this._nodes;t[t.length-1]=u}};ie.CodeGen=Jo;function Ru(e,u){for(let t in u)e[t]=(e[t]||0)+(u[t]||0);return e}function qf(e,u){return u instanceof De._CodeOrName?Ru(e,u.names):e}function _i(e,u,t){if(e instanceof De.Name)return i(e);if(!n(e))return e;return new De._Code(e._items.reduce((f,r)=>(r instanceof De.Name&&(r=i(r)),r instanceof De._Code?f.push(...r._items):f.push(r),f),[]));function i(f){let r=t[f.str];return r===void 0||u[f.str]!==1?f:(delete u[f.str],r)}function n(f){return f instanceof De._Code&&f._items.some(r=>r instanceof De.Name&&u[r.str]===1&&t[r.str]!==void 0)}}function d9(e,u){for(let t in u)e[t]=(e[t]||0)-(u[t]||0)}function I3(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,De._)`!${Zo(e)}`}ie.not=I3;var c9=A3(ie.operators.AND);function p9(...e){return e.reduce(c9)}ie.and=p9;var m9=A3(ie.operators.OR);function F9(...e){return e.reduce(m9)}ie.or=F9;function A3(e){return(u,t)=>u===De.nil?t:t===De.nil?u:(0,De._)`${Zo(u)} ${e} ${Zo(t)}`}function Zo(e){return e instanceof De.Name?e:(0,De._)`(${e})`}});var re=F(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var be=te(),C9=_n();function g9(e){let u={};for(let t of e)u[t]=!0;return u}fe.toHash=g9;function h9(e,u){return typeof u=="boolean"?u:Object.keys(u).length===0?!0:($3(e,u),!T3(u,e.self.RULES.all))}fe.alwaysValidSchema=h9;function $3(e,u=e.schema){let{opts:t,self:i}=e;if(!t.strictSchema||typeof u=="boolean")return;let n=i.RULES.keywords;for(let f in u)n[f]||M3(e,`unknown keyword: "${f}"`)}fe.checkUnknownRules=$3;function T3(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(u[t])return!0;return!1}fe.schemaHasRules=T3;function E9(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&u.all[t])return!0;return!1}fe.schemaHasRulesButRef=E9;function b9({topSchemaRef:e,schemaPath:u},t,i,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,be._)`${t}`}return(0,be._)`${e}${u}${(0,be.getProperty)(i)}`}fe.schemaRefOrVal=b9;function _9(e){return P3(decodeURIComponent(e))}fe.unescapeFragment=_9;function y9(e){return encodeURIComponent(Xo(e))}fe.escapeFragment=y9;function Xo(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}fe.escapeJsonPointer=Xo;function P3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}fe.unescapeJsonPointer=P3;function v9(e,u){if(Array.isArray(e))for(let t of e)u(t);else u(e)}fe.eachItem=v9;function S3({mergeNames:e,mergeToName:u,mergeValues:t,resultToName:i}){return(n,f,r,o)=>{let a=r===void 0?f:r instanceof be.Name?(f instanceof be.Name?e(n,f,r):u(n,f,r),r):f instanceof be.Name?(u(n,r,f),f):t(f,r);return o===be.Name&&!(a instanceof be.Name)?i(n,a):a}}fe.mergeEvaluated={props:S3({mergeNames:(e,u,t)=>e.if((0,be._)`${t} !== true && ${u} !== undefined`,()=>{e.if((0,be._)`${u} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,be._)`${t} || {}`).code((0,be._)`Object.assign(${t}, ${u})`))}),mergeToName:(e,u,t)=>e.if((0,be._)`${t} !== true`,()=>{u===!0?e.assign(t,!0):(e.assign(t,(0,be._)`${t} || {}`),Yo(e,t,u))}),mergeValues:(e,u)=>e===!0?!0:Q(Q({},e),u),resultToName:O3}),items:S3({mergeNames:(e,u,t)=>e.if((0,be._)`${t} !== true && ${u} !== undefined`,()=>e.assign(t,(0,be._)`${u} === true ? true : ${t} > ${u} ? ${t} : ${u}`)),mergeToName:(e,u,t)=>e.if((0,be._)`${t} !== true`,()=>e.assign(t,u===!0?!0:(0,be._)`${t} > ${u} ? ${t} : ${u}`)),mergeValues:(e,u)=>e===!0?!0:Math.max(e,u),resultToName:(e,u)=>e.var("items",u)})};function O3(e,u){if(u===!0)return e.var("props",!0);let t=e.var("props",(0,be._)`{}`);return u!==void 0&&Yo(e,t,u),t}fe.evaluatedPropsToName=O3;function Yo(e,u,t){Object.keys(t).forEach(i=>e.assign((0,be._)`${u}${(0,be.getProperty)(i)}`,!0))}fe.setEvaluated=Yo;var k3={};function B9(e,u){return e.scopeValue("func",{ref:u,code:k3[u.code]||(k3[u.code]=new C9._Code(u.code))})}fe.useFunc=B9;var Qo=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(Qo||(fe.Type=Qo={}));function x9(e,u,t){if(e instanceof be.Name){let i=u===Qo.Num;return t?i?(0,be._)`"[" + ${e} + "]"`:(0,be._)`"['" + ${e} + "']"`:i?(0,be._)`"/" + ${e}`:(0,be._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,be.getProperty)(e).toString():"/"+Xo(e)}fe.getErrorPath=x9;function M3(e,u,t=e.opts.strictSchema){if(t){if(u=`strict mode: ${u}`,t===!0)throw new Error(u);e.self.logger.warn(u)}}fe.checkStrictMode=M3});var Et=F(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var Qe=te(),w9={data:new Qe.Name("data"),valCxt:new Qe.Name("valCxt"),instancePath:new Qe.Name("instancePath"),parentData:new Qe.Name("parentData"),parentDataProperty:new Qe.Name("parentDataProperty"),rootData:new Qe.Name("rootData"),dynamicAnchors:new Qe.Name("dynamicAnchors"),vErrors:new Qe.Name("vErrors"),errors:new Qe.Name("errors"),this:new Qe.Name("this"),self:new Qe.Name("self"),scope:new Qe.Name("scope"),json:new Qe.Name("json"),jsonPos:new Qe.Name("jsonPos"),jsonLen:new Qe.Name("jsonLen"),jsonPart:new Qe.Name("jsonPart")};ea.default=w9});var vn=F(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.extendErrors=Xe.resetErrorsCount=Xe.reportExtraError=Xe.reportError=Xe.keyword$DataError=Xe.keywordError=void 0;var le=te(),Lf=re(),ft=Et();Xe.keywordError={message:({keyword:e})=>(0,le.str)`must pass "${e}" keyword validation`};Xe.keyword$DataError={message:({keyword:e,schemaType:u})=>u?(0,le.str)`"${e}" keyword must be ${u} ($data)`:(0,le.str)`"${e}" keyword is invalid ($data)`};function I9(e,u=Xe.keywordError,t,i){let{it:n}=e,{gen:f,compositeRule:r,allErrors:o}=n,a=q3(e,u,t);(i!=null?i:r||o)?j3(f,a):N3(n,(0,le._)`[${a}]`)}Xe.reportError=I9;function A9(e,u=Xe.keywordError,t){let{it:i}=e,{gen:n,compositeRule:f,allErrors:r}=i,o=q3(e,u,t);j3(n,o),f||r||N3(i,ft.default.vErrors)}Xe.reportExtraError=A9;function S9(e,u){e.assign(ft.default.errors,u),e.if((0,le._)`${ft.default.vErrors} !== null`,()=>e.if(u,()=>e.assign((0,le._)`${ft.default.vErrors}.length`,u),()=>e.assign(ft.default.vErrors,null)))}Xe.resetErrorsCount=S9;function k9({gen:e,keyword:u,schemaValue:t,data:i,errsCount:n,it:f}){if(n===void 0)throw new Error("ajv implementation error");let r=e.name("err");e.forRange("i",n,ft.default.errors,o=>{e.const(r,(0,le._)`${ft.default.vErrors}[${o}]`),e.if((0,le._)`${r}.instancePath === undefined`,()=>e.assign((0,le._)`${r}.instancePath`,(0,le.strConcat)(ft.default.instancePath,f.errorPath))),e.assign((0,le._)`${r}.schemaPath`,(0,le.str)`${f.errSchemaPath}/${u}`),f.opts.verbose&&(e.assign((0,le._)`${r}.schema`,t),e.assign((0,le._)`${r}.data`,i))})}Xe.extendErrors=k9;function j3(e,u){let t=e.const("err",u);e.if((0,le._)`${ft.default.vErrors} === null`,()=>e.assign(ft.default.vErrors,(0,le._)`[${t}]`),(0,le._)`${ft.default.vErrors}.push(${t})`),e.code((0,le._)`${ft.default.errors}++`)}function N3(e,u){let{gen:t,validateName:i,schemaEnv:n}=e;n.$async?t.throw((0,le._)`new ${e.ValidationError}(${u})`):(t.assign((0,le._)`${i}.errors`,u),t.return(!1))}var Lu={keyword:new le.Name("keyword"),schemaPath:new le.Name("schemaPath"),params:new le.Name("params"),propertyName:new le.Name("propertyName"),message:new le.Name("message"),schema:new le.Name("schema"),parentSchema:new le.Name("parentSchema")};function q3(e,u,t){let{createErrors:i}=e.it;return i===!1?(0,le._)`{}`:$9(e,u,t)}function $9(e,u,t={}){let{gen:i,it:n}=e,f=[T9(n,t),P9(e,t)];return O9(e,u,f),i.object(...f)}function T9({errorPath:e},{instancePath:u}){let t=u?(0,le.str)`${e}${(0,Lf.getErrorPath)(u,Lf.Type.Str)}`:e;return[ft.default.instancePath,(0,le.strConcat)(ft.default.instancePath,t)]}function P9({keyword:e,it:{errSchemaPath:u}},{schemaPath:t,parentSchema:i}){let n=i?u:(0,le.str)`${u}/${e}`;return t&&(n=(0,le.str)`${n}${(0,Lf.getErrorPath)(t,Lf.Type.Str)}`),[Lu.schemaPath,n]}function O9(e,{params:u,message:t},i){let{keyword:n,data:f,schemaValue:r,it:o}=e,{opts:a,propertyName:D,topSchemaRef:l,schemaPath:p}=o;i.push([Lu.keyword,n],[Lu.params,typeof u=="function"?u(e):u||(0,le._)`{}`]),a.messages&&i.push([Lu.message,typeof t=="function"?t(e):t]),a.verbose&&i.push([Lu.schema,r],[Lu.parentSchema,(0,le._)`${l}${p}`],[ft.default.data,f]),D&&i.push([Lu.propertyName,D])}});var R3=F(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.boolOrEmptySchema=yi.topBoolOrEmptySchema=void 0;var M9=vn(),j9=te(),N9=Et(),q9={message:"boolean schema is false"};function V9(e){let{gen:u,schema:t,validateName:i}=e;t===!1?V3(e,!1):typeof t=="object"&&t.$async===!0?u.return(N9.default.data):(u.assign((0,j9._)`${i}.errors`,null),u.return(!0))}yi.topBoolOrEmptySchema=V9;function R9(e,u){let{gen:t,schema:i}=e;i===!1?(t.var(u,!1),V3(e)):t.var(u,!0)}yi.boolOrEmptySchema=R9;function V3(e,u){let{gen:t,data:i}=e,n={gen:t,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,M9.reportError)(n,q9,void 0,u)}});var ta=F(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getRules=vi.isJSONType=void 0;var L9=["string","number","integer","boolean","null","object","array"],z9=new Set(L9);function U9(e){return typeof e=="string"&&z9.has(e)}vi.isJSONType=U9;function H9(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ee(Q({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}vi.getRules=H9});var ua=F(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.shouldUseRule=cu.shouldUseGroup=cu.schemaHasRulesForType=void 0;function W9({schema:e,self:u},t){let i=u.RULES.types[t];return i&&i!==!0&&L3(e,i)}cu.schemaHasRulesForType=W9;function L3(e,u){return u.rules.some(t=>z3(e,t))}cu.shouldUseGroup=L3;function z3(e,u){var t;return e[u.keyword]!==void 0||((t=u.definition.implements)===null||t===void 0?void 0:t.some(i=>e[i]!==void 0))}cu.shouldUseRule=z3});var Bn=F(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.reportTypeError=Ye.checkDataTypes=Ye.checkDataType=Ye.coerceAndCheckDataType=Ye.getJSONTypes=Ye.getSchemaTypes=Ye.DataType=void 0;var G9=ta(),K9=ua(),J9=vn(),ue=te(),U3=re(),Bi=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(Bi||(Ye.DataType=Bi={}));function Z9(e){let u=H3(e.type);if(u.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!u.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&u.push("null")}return u}Ye.getSchemaTypes=Z9;function H3(e){let u=Array.isArray(e)?e:e?[e]:[];if(u.every(G9.isJSONType))return u;throw new Error("type must be JSONType or JSONType[]: "+u.join(","))}Ye.getJSONTypes=H3;function Q9(e,u){let{gen:t,data:i,opts:n}=e,f=X9(u,n.coerceTypes),r=u.length>0&&!(f.length===0&&u.length===1&&(0,K9.schemaHasRulesForType)(e,u[0]));if(r){let o=na(u,i,n.strictNumbers,Bi.Wrong);t.if(o,()=>{f.length?Y9(e,u,f):fa(e)})}return r}Ye.coerceAndCheckDataType=Q9;var W3=new Set(["string","number","integer","boolean","null"]);function X9(e,u){return u?e.filter(t=>W3.has(t)||u==="array"&&t==="array"):[]}function Y9(e,u,t){let{gen:i,data:n,opts:f}=e,r=i.let("dataType",(0,ue._)`typeof ${n}`),o=i.let("coerced",(0,ue._)`undefined`);f.coerceTypes==="array"&&i.if((0,ue._)`${r} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,ue._)`${n}[0]`).assign(r,(0,ue._)`typeof ${n}`).if(na(u,n,f.strictNumbers),()=>i.assign(o,n))),i.if((0,ue._)`${o} !== undefined`);for(let D of t)(W3.has(D)||D==="array"&&f.coerceTypes==="array")&&a(D);i.else(),fa(e),i.endIf(),i.if((0,ue._)`${o} !== undefined`,()=>{i.assign(n,o),ey(e,o)});function a(D){switch(D){case"string":i.elseIf((0,ue._)`${r} == "number" || ${r} == "boolean"`).assign(o,(0,ue._)`"" + ${n}`).elseIf((0,ue._)`${n} === null`).assign(o,(0,ue._)`""`);return;case"number":i.elseIf((0,ue._)`${r} == "boolean" || ${n} === null
|
|
3
3
|
|| (${r} == "string" && ${n} && ${n} == +${n})`).assign(o,(0,ue._)`+${n}`);return;case"integer":i.elseIf((0,ue._)`${r} === "boolean" || ${n} === null
|
|
4
4
|
|| (${r} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(o,(0,ue._)`+${n}`);return;case"boolean":i.elseIf((0,ue._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(o,!1).elseIf((0,ue._)`${n} === "true" || ${n} === 1`).assign(o,!0);return;case"null":i.elseIf((0,ue._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(o,null);return;case"array":i.elseIf((0,ue._)`${r} === "string" || ${r} === "number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-2FPKNEQU.js";import"./chunk-U3XAGOD7.js";import"./chunk-DVN556RD.js";import"./chunk-2IW5LNPB.js";import"./chunk-FKJB73E7.js";import"./chunk-SGEFLPG5.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as PowerOptionsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as ie,a as U,b as X,c as Y,f as te}from"./chunk-UAX5UT7F.js";import{a as ne}from"./chunk-D3QNROQA.js";import{m as $,n as K,o as Q}from"./chunk-U3XAGOD7.js";import{c as W,e as R,f as j,i as z,l as q,m as G,y as J}from"./chunk-DVN556RD.js";import{c as ee}from"./chunk-5GBFUHXD.js";import{b as Z}from"./chunk-K35NZOCB.js";import{b as M}from"./chunk-QIWZD5HO.js";import{Ac as s,Bc as l,Cc as H,Jb as v,Kb as _,Pb as h,Rb as I,Sb as V,Tb as F,Ub as a,Vb as r,Wb as p,Zc as O,_b as B,bc as b,cb as N,cc as m,gb as o,ma as f,mc as d,nc as u,oc as w,rc as k,sc as T,tb as y,tc as A,ua as x,va as C,vc as L,wc as E,zb as S}from"./chunk-6JZDPQRU.js";var oe=(()=>{class t{$activeModal=f($);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],decls:31,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-fw","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li"),d(13),s(14,"translate"),r(),a(15,"li"),d(16),s(17,"translate"),r(),a(18,"li"),d(19),s(20,"translate"),r(),a(21,"li"),d(22),s(23,"translate"),r()()(),a(24,"div",8),p(25,"div",9),a(26,"div",10)(27,"button",11),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(28),s(29,"translate"),r()(),p(30,"div",12),r()()()),i&2&&(o(4),u(l(5,7,"support.title")),o(2),v("aria-label",l(7,9,"form.button_close")),o(7),u(l(14,11,"accessories.support.list_1")),o(3),u(l(17,13,"accessories.support.list_2")),o(3),u(l(20,15,"accessories.support.list_3")),o(3),u(l(23,17,"accessories.support.list_4")),o(6),w(" ",l(29,19,"form.button_close")," "))},dependencies:[M],encapsulation:2})}return t})();var se=()=>({standalone:!0}),ae=(()=>{class t{$activeModal=f($);roomName;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{roomName:"roomName"},decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),d(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),A("ngModelChange",function(D){return T(n.roomName,D)||(n.roomName=D),D}),b("keyup.enter",function(){return n.$activeModal.close(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),b("click",function(){return n.$activeModal.close(n.roomName)}),d(26),s(27,"translate"),r()()()()()),i&2&&(o(4),u(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),u(l(15,12,"accessories.room_name")),o(3),k("ngModel",n.roomName),_("ngModelOptions",L(18,se)),o(4),w(" ",l(22,14,"form.button_close")," "),o(4),_("disabled",!n.roomName),o(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[J,G,W,R,j,q,z,M],encapsulation:2})}return t})();var re=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-fw","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,"i",1),a(2,"div",2),d(3),s(4,"translate"),r()()),i&2&&(o(3),u(l(4,1,"accessories.control.drag_here")))},dependencies:[M],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var le=t=>({"cursor-move":t}),ce=t=>({"justify-content-between":t}),de=t=>({link:t});function pe(t,g){if(t&1&&(a(0,"div",0)(1,"div",18)(2,"h5",19),d(3),s(4,"translate"),r()()()),t&2){let e=m().$implicit,i=m(2);o(2),_("ngClass",E(4,le,!i.isMobile)),o(),w(" ",e.name==="Default Room"?l(4,2,"accessories.control.default_room"):e.name," ")}}function me(t,g){if(t&1&&(a(0,"div",22),p(1,"app-accessory-tile",23),r()),t&2){let e=m().$implicit;o(),_("service",e)}}function ue(t,g){if(t&1&&S(0,me,2,1,"div",22),t&2){let e=g.$implicit,i=m(4);h(!i.hideHidden||!e.hidden?0:-1)}}function _e(t,g){if(t&1){let e=B();a(0,"div",20),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),V(1,ue,1,1,null,null,I),p(3,"div",21)(4,"div",21)(5,"div",21)(6,"div",21)(7,"div",21)(8,"div",21)(9,"div",21)(10,"div",21)(11,"div",21)(12,"div",21),r()}if(t&2){let e=m().$implicit,i=m(2);_("ngClass",E(3,ce,i.isMobile))("dragula","services-bag"),k("dragulaModel",e.services),o(),F(e.services)}}function be(t,g){if(t&1){let e=B();a(0,"div",24),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),p(1,"app-drag-here-placeholder",25),r()}if(t&2){let e=m().$implicit;_("dragula","services-bag"),k("dragulaModel",e.services)}}function fe(t,g){if(t&1&&(a(0,"div"),S(1,pe,5,6,"div",0),a(2,"div",15),S(3,_e,13,5,"div",16)(4,be,2,2,"div",17),r()()),t&2){let e=g.$implicit,i=m(2);o(),h(!i.isMobile||e.services.length?1:-1),o(2),h(e.services.length?3:-1),o(),h(!e.services.length&&!i.isMobile?4:-1)}}function ge(t,g){if(t&1){let e=B();a(0,"div",1)(1,"div",2)(2,"h3",3),d(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),s(8,"translate"),b("click",function(){x(e);let n=m();return C(n.addRoom())}),p(9,"i",6),r(),a(10,"button",5),s(11,"translate"),s(12,"translate"),s(13,"translate"),s(14,"translate"),b("click",function(){x(e);let n=m();return C(n.hideHidden=!n.hideHidden)}),p(15,"i",7),r(),a(16,"div",8)(17,"button",9),s(18,"translate"),s(19,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(20,"i",10),r(),a(21,"button",9),s(22,"translate"),s(23,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(24,"i",11),r()(),a(25,"button",12),s(26,"translate"),b("click",function(){x(e);let n=m();return C(n.openSupport())}),p(27,"i",13),r()()(),a(28,"div",14),A("dragulaModelChange",function(n){x(e);let c=m();return T(c.$accessories.rooms,n)||(c.$accessories.rooms=n),C(n)}),V(29,fe,5,3,"div",null,I),r()}if(t&2){let e=m();o(3),u(l(4,17,"accessories.title_accessories")),o(3),_("hidden",e.isMobile)("ngbTooltip",l(7,19,"accessories.button_add_room")),v("aria-label",l(8,21,"accessories.button_add_room")),o(4),_("hidden",e.isMobile)("ngbTooltip",e.hideHidden?l(11,23,"accessories.button_hidden_show"):l(12,25,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden?l(13,27,"accessories.button_hidden_show"):l(14,29,"accessories.button_hidden_hide")),o(5),_("ngClass",e.hideHidden?"fa-eye-slash":"fa-eye"),o(2),_("disabled",!e.isMobile)("ngbTooltip",l(18,31,"form.button_unlock")),v("aria-label",l(19,33,"form.button_unlock")),o(4),_("disabled",e.isMobile)("ngbTooltip",l(22,35,"form.button_lock")),v("aria-label",l(23,37,"form.button_lock")),o(4),v("aria-label",l(26,39,"support.title")),o(3),_("dragula","rooms-bag"),k("dragulaModel",e.$accessories.rooms),o(),F(e.$accessories.rooms)}}function ve(t,g){t&1&&(a(0,"p",32),d(1),s(2,"translate"),r()),t&2&&(o(),u(l(2,1,"accessories.settings_link")))}function xe(t,g){if(t&1&&(a(0,"div",0)(1,"div",26)(2,"h3",27),d(3),s(4,"translate"),r()(),a(5,"div",28)(6,"div",29)(7,"h5",30),d(8),s(9,"translate"),r(),p(10,"p",31),s(11,"translate"),S(12,ve,3,3,"p",32),r()()()),t&2){let e=m();o(3),u(l(4,4,"accessories.title_accessories")),o(5),u(l(9,6,"accessories.control_disabled")),o(2),_("innerHTML",H(11,8,"accessories.message_must_use_insecure_mode",E(11,de,e.linkInsecure)),N),o(2),h(e.$auth.user.admin?12:-1)}}var Ue=(()=>{class t{$auth=f(ee);dragulaService=f(U);$modal=f(K);$settings=f(Z);$md=f(ne);$accessories=f(te);isMobile=!1;hideHidden=!0;orderSubscription;linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){let e=this.dragulaService;this.isMobile=this.$md.detect.mobile(),e.createGroup("rooms-bag",{moves:(i,n,c)=>!this.isMobile&&c.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile&&!i.classList.contains("no-drag")}),this.orderSubscription=e.drop().subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile=!0}ngOnInit(){this.$accessories.start()}addRoom(){this.$modal.open(ae,{size:"lg",backdrop:"static"}).result.then(e=>{!e||!e.length||this.$accessories.rooms.find(i=>i.name===e)||(this.$accessories.rooms.push({name:e,services:[]}),this.isMobile&&this.toggleLayoutLock())}).catch(()=>{})}toggleLayoutLock(){this.isMobile=!this.isMobile,this.isMobile?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n++){let c=document.createElement("div");c.className="accessory-box invisible py-0 my-0",c.style.height="0",i.appendChild(c)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(oe,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.orderSubscription.unsubscribe(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-accessories"]],decls:2,vars:2,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","ngbTooltip"],[1,"fas","fa-fw","fa-folder-plus"],[1,"fas","fa-fw",3,"ngClass"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-unlock"],[1,"fas","fa-fw","fa-lock"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-fw","fa-question-circle-o"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"ngClass","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0",3,"ngClass"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","ngClass","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],[1,"col-12","text-center"],["role","alert",1,"alert","alert-warning","p-4"],[1,"mb-3","mt-0"],[1,"mb-0",3,"innerHTML"],[1,"mt-3","mb-0"]],template:function(i,n){i&1&&S(0,ge,31,41)(1,xe,13,13,"div",0),i&2&&(h(n.$settings.env.enableAccessories?0:-1),o(),h(n.$settings.env.enableAccessories?-1:1))},dependencies:[Q,O,Y,X,ie,re,M],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media (max-width: 575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media (max-width: 575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}.gu-transit[_ngcontent-%COMP%] .manage-accessory-button[_ngcontent-%COMP%]{display:none}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{ae as a,Ue as b};
|
|
1
|
+
import{S as ie,a as U,b as X,c as Y,f as te}from"./chunk-VBJCIX6P.js";import{a as ne}from"./chunk-D3QNROQA.js";import{m as $,n as K,o as Q}from"./chunk-U3XAGOD7.js";import{c as W,e as R,f as j,i as z,l as q,m as G,y as J}from"./chunk-DVN556RD.js";import{c as ee}from"./chunk-5SBWRV45.js";import{b as Z}from"./chunk-FKJB73E7.js";import{b as M}from"./chunk-QIWZD5HO.js";import{Ac as s,Bc as l,Cc as H,Jb as v,Kb as _,Pb as h,Rb as I,Sb as V,Tb as F,Ub as a,Vb as r,Wb as p,Zc as O,_b as B,bc as b,cb as N,cc as m,gb as o,ma as f,mc as d,nc as u,oc as w,rc as k,sc as T,tb as y,tc as A,ua as x,va as C,vc as L,wc as E,zb as S}from"./chunk-6JZDPQRU.js";var oe=(()=>{class t{$activeModal=f($);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],decls:31,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-fw","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li"),d(13),s(14,"translate"),r(),a(15,"li"),d(16),s(17,"translate"),r(),a(18,"li"),d(19),s(20,"translate"),r(),a(21,"li"),d(22),s(23,"translate"),r()()(),a(24,"div",8),p(25,"div",9),a(26,"div",10)(27,"button",11),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(28),s(29,"translate"),r()(),p(30,"div",12),r()()()),i&2&&(o(4),u(l(5,7,"support.title")),o(2),v("aria-label",l(7,9,"form.button_close")),o(7),u(l(14,11,"accessories.support.list_1")),o(3),u(l(17,13,"accessories.support.list_2")),o(3),u(l(20,15,"accessories.support.list_3")),o(3),u(l(23,17,"accessories.support.list_4")),o(6),w(" ",l(29,19,"form.button_close")," "))},dependencies:[M],encapsulation:2})}return t})();var se=()=>({standalone:!0}),ae=(()=>{class t{$activeModal=f($);roomName;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{roomName:"roomName"},decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),d(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),A("ngModelChange",function(D){return T(n.roomName,D)||(n.roomName=D),D}),b("keyup.enter",function(){return n.$activeModal.close(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),b("click",function(){return n.$activeModal.close(n.roomName)}),d(26),s(27,"translate"),r()()()()()),i&2&&(o(4),u(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),u(l(15,12,"accessories.room_name")),o(3),k("ngModel",n.roomName),_("ngModelOptions",L(18,se)),o(4),w(" ",l(22,14,"form.button_close")," "),o(4),_("disabled",!n.roomName),o(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[J,G,W,R,j,q,z,M],encapsulation:2})}return t})();var re=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-fw","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,"i",1),a(2,"div",2),d(3),s(4,"translate"),r()()),i&2&&(o(3),u(l(4,1,"accessories.control.drag_here")))},dependencies:[M],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var le=t=>({"cursor-move":t}),ce=t=>({"justify-content-between":t}),de=t=>({link:t});function pe(t,g){if(t&1&&(a(0,"div",0)(1,"div",18)(2,"h5",19),d(3),s(4,"translate"),r()()()),t&2){let e=m().$implicit,i=m(2);o(2),_("ngClass",E(4,le,!i.isMobile)),o(),w(" ",e.name==="Default Room"?l(4,2,"accessories.control.default_room"):e.name," ")}}function me(t,g){if(t&1&&(a(0,"div",22),p(1,"app-accessory-tile",23),r()),t&2){let e=m().$implicit;o(),_("service",e)}}function ue(t,g){if(t&1&&S(0,me,2,1,"div",22),t&2){let e=g.$implicit,i=m(4);h(!i.hideHidden||!e.hidden?0:-1)}}function _e(t,g){if(t&1){let e=B();a(0,"div",20),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),V(1,ue,1,1,null,null,I),p(3,"div",21)(4,"div",21)(5,"div",21)(6,"div",21)(7,"div",21)(8,"div",21)(9,"div",21)(10,"div",21)(11,"div",21)(12,"div",21),r()}if(t&2){let e=m().$implicit,i=m(2);_("ngClass",E(3,ce,i.isMobile))("dragula","services-bag"),k("dragulaModel",e.services),o(),F(e.services)}}function be(t,g){if(t&1){let e=B();a(0,"div",24),A("dragulaModelChange",function(n){x(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),C(n)}),p(1,"app-drag-here-placeholder",25),r()}if(t&2){let e=m().$implicit;_("dragula","services-bag"),k("dragulaModel",e.services)}}function fe(t,g){if(t&1&&(a(0,"div"),S(1,pe,5,6,"div",0),a(2,"div",15),S(3,_e,13,5,"div",16)(4,be,2,2,"div",17),r()()),t&2){let e=g.$implicit,i=m(2);o(),h(!i.isMobile||e.services.length?1:-1),o(2),h(e.services.length?3:-1),o(),h(!e.services.length&&!i.isMobile?4:-1)}}function ge(t,g){if(t&1){let e=B();a(0,"div",1)(1,"div",2)(2,"h3",3),d(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),s(8,"translate"),b("click",function(){x(e);let n=m();return C(n.addRoom())}),p(9,"i",6),r(),a(10,"button",5),s(11,"translate"),s(12,"translate"),s(13,"translate"),s(14,"translate"),b("click",function(){x(e);let n=m();return C(n.hideHidden=!n.hideHidden)}),p(15,"i",7),r(),a(16,"div",8)(17,"button",9),s(18,"translate"),s(19,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(20,"i",10),r(),a(21,"button",9),s(22,"translate"),s(23,"translate"),b("click",function(){x(e);let n=m();return C(n.toggleLayoutLock())}),p(24,"i",11),r()(),a(25,"button",12),s(26,"translate"),b("click",function(){x(e);let n=m();return C(n.openSupport())}),p(27,"i",13),r()()(),a(28,"div",14),A("dragulaModelChange",function(n){x(e);let c=m();return T(c.$accessories.rooms,n)||(c.$accessories.rooms=n),C(n)}),V(29,fe,5,3,"div",null,I),r()}if(t&2){let e=m();o(3),u(l(4,17,"accessories.title_accessories")),o(3),_("hidden",e.isMobile)("ngbTooltip",l(7,19,"accessories.button_add_room")),v("aria-label",l(8,21,"accessories.button_add_room")),o(4),_("hidden",e.isMobile)("ngbTooltip",e.hideHidden?l(11,23,"accessories.button_hidden_show"):l(12,25,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden?l(13,27,"accessories.button_hidden_show"):l(14,29,"accessories.button_hidden_hide")),o(5),_("ngClass",e.hideHidden?"fa-eye-slash":"fa-eye"),o(2),_("disabled",!e.isMobile)("ngbTooltip",l(18,31,"form.button_unlock")),v("aria-label",l(19,33,"form.button_unlock")),o(4),_("disabled",e.isMobile)("ngbTooltip",l(22,35,"form.button_lock")),v("aria-label",l(23,37,"form.button_lock")),o(4),v("aria-label",l(26,39,"support.title")),o(3),_("dragula","rooms-bag"),k("dragulaModel",e.$accessories.rooms),o(),F(e.$accessories.rooms)}}function ve(t,g){t&1&&(a(0,"p",32),d(1),s(2,"translate"),r()),t&2&&(o(),u(l(2,1,"accessories.settings_link")))}function xe(t,g){if(t&1&&(a(0,"div",0)(1,"div",26)(2,"h3",27),d(3),s(4,"translate"),r()(),a(5,"div",28)(6,"div",29)(7,"h5",30),d(8),s(9,"translate"),r(),p(10,"p",31),s(11,"translate"),S(12,ve,3,3,"p",32),r()()()),t&2){let e=m();o(3),u(l(4,4,"accessories.title_accessories")),o(5),u(l(9,6,"accessories.control_disabled")),o(2),_("innerHTML",H(11,8,"accessories.message_must_use_insecure_mode",E(11,de,e.linkInsecure)),N),o(2),h(e.$auth.user.admin?12:-1)}}var Ue=(()=>{class t{$auth=f(ee);dragulaService=f(U);$modal=f(K);$settings=f(Z);$md=f(ne);$accessories=f(te);isMobile=!1;hideHidden=!0;orderSubscription;linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){let e=this.dragulaService;this.isMobile=this.$md.detect.mobile(),e.createGroup("rooms-bag",{moves:(i,n,c)=>!this.isMobile&&c.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile&&!i.classList.contains("no-drag")}),this.orderSubscription=e.drop().subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile=!0}ngOnInit(){this.$accessories.start()}addRoom(){this.$modal.open(ae,{size:"lg",backdrop:"static"}).result.then(e=>{!e||!e.length||this.$accessories.rooms.find(i=>i.name===e)||(this.$accessories.rooms.push({name:e,services:[]}),this.isMobile&&this.toggleLayoutLock())}).catch(()=>{})}toggleLayoutLock(){this.isMobile=!this.isMobile,this.isMobile?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n++){let c=document.createElement("div");c.className="accessory-box invisible py-0 my-0",c.style.height="0",i.appendChild(c)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(oe,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.orderSubscription.unsubscribe(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-accessories"]],decls:2,vars:2,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","ngbTooltip"],[1,"fas","fa-fw","fa-folder-plus"],[1,"fas","fa-fw",3,"ngClass"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-unlock"],[1,"fas","fa-fw","fa-lock"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-fw","fa-question-circle-o"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"ngClass","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0",3,"ngClass"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","ngClass","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],[1,"col-12","text-center"],["role","alert",1,"alert","alert-warning","p-4"],[1,"mb-3","mt-0"],[1,"mb-0",3,"innerHTML"],[1,"mt-3","mb-0"]],template:function(i,n){i&1&&S(0,ge,31,41)(1,xe,13,13,"div",0),i&2&&(h(n.$settings.env.enableAccessories?0:-1),o(),h(n.$settings.env.enableAccessories?-1:1))},dependencies:[Q,O,Y,X,ie,re,M],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media (max-width: 575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media (max-width: 575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}.gu-transit[_ngcontent-%COMP%] .manage-accessory-button[_ngcontent-%COMP%]{display:none}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{ae as a,Ue as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-OKRL3VMP.js";import"./chunk-DVN556RD.js";import"./chunk-2IW5LNPB.js";import"./chunk-5SBWRV45.js";import"./chunk-FKJB73E7.js";import"./chunk-SGEFLPG5.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as LoginComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,b as u,c as a,d as g}from"./chunk-
|
|
1
|
+
import{a as l,b as u,c as a,d as g}from"./chunk-NSPVZWKT.js";import{a as f}from"./chunk-OGC3GJBZ.js";import"./chunk-LJY4SQIX.js";import{a as c}from"./chunk-NSE4DDA3.js";import"./chunk-VHQGSHBK.js";import"./chunk-JV672LMU.js";import"./chunk-Y5BDWQTD.js";import"./chunk-BBVFH2MI.js";import"./chunk-D3QNROQA.js";import"./chunk-CQQD6J4A.js";import"./chunk-2COJW6JZ.js";import"./chunk-ZEGJJ2QZ.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import"./chunk-B2ERIJJG.js";import"./chunk-IQBKWEOJ.js";import{q as s}from"./chunk-U3XAGOD7.js";import{y as n,z as p}from"./chunk-DVN556RD.js";import"./chunk-FYRXHZYK.js";import{g as i}from"./chunk-2IW5LNPB.js";import"./chunk-5SBWRV45.js";import"./chunk-FKJB73E7.js";import"./chunk-SGEFLPG5.js";import"./chunk-G75CPMPQ.js";import{c as d}from"./chunk-QIWZD5HO.js";import{gd as m,ha as t,ub as e}from"./chunk-6JZDPQRU.js";var v=[{path:"",loadComponent:()=>import("./chunk-DYHT3ZOO.js").then(o=>o.SettingsComponent),canActivate:[f]}],C=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(v),i]})}return o})();var K=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[m,n,p,d,s,C,g,u,l,c,a]})}return o})();export{K as SettingsModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-X3BPDN3Y.js";import"./chunk-VBJCIX6P.js";import"./chunk-NSE4DDA3.js";import"./chunk-D3QNROQA.js";import"./chunk-U3XAGOD7.js";import"./chunk-DVN556RD.js";import"./chunk-FYRXHZYK.js";import"./chunk-2IW5LNPB.js";import"./chunk-5SBWRV45.js";import"./chunk-FKJB73E7.js";import"./chunk-SGEFLPG5.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as AccessoriesComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-JAASPYHI.js";import{a as f}from"./chunk-3AWCS5BE.js";import"./chunk-LJY4SQIX.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import{q as u}from"./chunk-U3XAGOD7.js";import{y as n,z as p}from"./chunk-DVN556RD.js";import"./chunk-FYRXHZYK.js";import{g as i}from"./chunk-2IW5LNPB.js";import"./chunk-5SBWRV45.js";import"./chunk-FKJB73E7.js";import"./chunk-SGEFLPG5.js";import"./chunk-G75CPMPQ.js";import{c as d}from"./chunk-QIWZD5HO.js";import{gd as m,ha as t,ub as r}from"./chunk-6JZDPQRU.js";var M=[{path:"",loadComponent:()=>import("./chunk-I3TXFQFP.js").then(o=>o.SetupWizardComponent)}],l=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(M),i]})}return o})();var R=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({providers:[a],imports:[m,n,p,d,u,l,f]})}return o})();export{R as SetupWizardModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as wi,b as Pi}from"./chunk-VZPOY7LH.js";import{a as bi}from"./chunk-A6S2CSNA.js";import{n as xi,v as U}from"./chunk-GREKY4IF.js";import{a as z}from"./chunk-W624KBVO.js";import{a as vi}from"./chunk-D3QNROQA.js";import{a as hi}from"./chunk-YCHPFYO5.js";import{a as Ci}from"./chunk-IQBKWEOJ.js";import{h as ri,i as si,j as di,k as pi,l as ci,m as ui,n as gi,o as mi}from"./chunk-U3XAGOD7.js";import{c as X,e as Y,f as Z,g as ii,j as ei,m as ni,p as ti,q as oi,y as ai,z as li}from"./chunk-DVN556RD.js";import{a as R}from"./chunk-UCG645E4.js";import{a as fi,d as _i}from"./chunk-2IW5LNPB.js";import{b as F}from"./chunk-K35NZOCB.js";import{h as j,k as A}from"./chunk-D5L5G5FB.js";import{a as N,b as $}from"./chunk-QIWZD5HO.js";import{Ac as c,Bc as u,Cc as D,Jb as B,Kb as b,Pb as s,Rb as L,Sb as G,Tb as W,Ub as a,Vb as l,Wb as d,Zc as E,_b as C,ad as K,bc as m,cb as q,cc as p,db as T,ed as Q,gb as t,h as y,ma as w,mc as g,nc as P,oc as v,tb as V,ua as f,va as _,w as I,wc as H,xc as k,yc as J,zb as x}from"./chunk-6JZDPQRU.js";var Ii=(n,r)=>({"orange-text":n,"grey-text":r}),O=n=>({opacity:n}),Ti=(n,r)=>({"green-text":n,"grey-text":r}),Vi=(n,r)=>({"purple-text":n,"grey-text":r}),Ei=(n,r)=>({scopedLink:n,verifiedLink:r});function $i(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l(),a(6,"p",19),g(7),c(8,"translate"),l()),n&2&&(t(),P(u(2,3,"plugins.manage.scoped_subtitle")),t(3),P(u(5,5,"plugins.manage.scoped_message")),t(3),P(u(8,7,"plugins.manage.verified_message")))}function Mi(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l()),n&2&&(t(),P(u(2,2,"plugins.manage.verified_subtitle")),t(3),P(u(5,4,"plugins.manage.verified_message")))}function Hi(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l()),n&2&&(t(),P(u(2,2,"plugins.manage.unverified_subtitle")),t(3),P(u(5,4,"plugins.manage.unverified_message")))}function Di(n,r){if(n&1){let e=C();a(0,"button",20),m("click",function(){f(e);let i=p();return _(i.$activeModal.dismiss("Dismiss"))}),g(1),c(2,"translate"),l()}n&2&&(t(),v(" ",u(2,1,"form.button_close")," "))}function Ni(n,r){if(n&1){let e=C();a(0,"button",20),m("click",function(){f(e);let i=p();return _(i.$activeModal.dismiss("Dismiss"))}),g(1),c(2,"translate"),l()}n&2&&(t(),v(" ",u(2,1,"form.button_close")," "))}function ji(n,r){if(n&1&&(a(0,"a",17),g(1),c(2,"translate"),d(3,"i",21),l()),n&2){let e=p();b("href",e.plugin.links.homepage||e.plugin.links.npm,T),t(),v(" ",u(2,2,"plugins.button_homepage")," ")}}var yi=(()=>{class n{$activeModal=w(ui);plugin;defaultIcon="assets/hb-icon.png";linkScoped='<a href="https://github.com/homebridge/plugins/wiki/Scoped-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';linkVerified='<a href="https://github.com/homebridge/plugins/wiki/Verified-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){}ngOnInit(){this.plugin.icon||(this.plugin.icon=this.defaultIcon)}handleIconError(){this.plugin.icon=this.defaultIcon}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:32,vars:45,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],["alt","Plugin Icon",1,"mb-3","plugin-icon-card",3,"error","src"],[1,"mb-1"],[1,"grey-text","mb-0","font-monospace"],[1,"grey-text","mb-1","font-monospace"],[1,"mb-3"],[1,"fas","fa-fw","fa-shield-alt","mb-3",2,"font-size","48px",3,"ngClass","ngStyle"],[1,"mb-0","grey-text",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"mb-2"],[1,"mb-1","grey-text"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-fw","fa-external-link-alt"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),g(3),c(4,"translate"),l(),a(5,"button",3),c(6,"translate"),m("click",function(){return i.$activeModal.dismiss("Dismiss")}),l()(),a(7,"div",4)(8,"img",5),m("error",function(){return i.handleIconError()}),l(),a(9,"h4",6),g(10),l(),a(11,"p",7),g(12),l(),a(13,"p",8),g(14),l(),a(15,"p",9),g(16),l(),d(17,"i",10)(18,"i",10)(19,"i",10),x(20,$i,9,9)(21,Mi,6,6)(22,Hi,6,6),d(23,"p",11),c(24,"translate"),l(),a(25,"div",12)(26,"div",13),x(27,Di,3,3,"button",14),l(),a(28,"div",15),x(29,Ni,3,3,"button",14),l(),a(30,"div",16),x(31,ji,4,4,"a",17),l()()()),o&2&&(t(3),P(u(4,20,"plugins.manage.information")),t(2),B("aria-label",u(6,22,"form.button_close")),t(3),b("src",i.plugin.icon,T),t(2),P(i.plugin.displayName),t(2),P(i.plugin.name),t(2),v("@",i.plugin.author,""),t(2),P(i.plugin.description),t(),b("ngClass",k(27,Ii,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin,i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin))("ngStyle",H(30,O,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?1:.25)),t(),b("ngClass",k(32,Ti,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),i.plugin.isHbScoped||!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin))("ngStyle",H(35,O,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?1:.25)),t(),b("ngClass",k(37,Vi,i.plugin.isHbScoped,!i.plugin.isHbScoped))("ngStyle",H(40,O,i.plugin.isHbScoped?1:.25)),t(),s(i.plugin.isHbScoped?20:-1),t(),s(!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?21:-1),t(),s(!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?22:-1),t(),b("innerHTML",D(24,24,"plugins.manage.more_info",k(42,Ei,i.linkScoped,i.linkVerified)),q),t(4),s(i.plugin.links.homepage||i.plugin.links.npm?27:-1),t(2),s(!i.plugin.links.homepage&&!i.plugin.links.npm?29:-1),t(2),s(i.plugin.links.homepage||i.plugin.links.npm?31:-1))},dependencies:[$,E,K],styles:[".plugin-icon[_ngcontent-%COMP%]{height:75px;width:75px;border-radius:15px;border:1px solid #222222}"]})}return n})();var Ai=(n,r,e)=>({"purple-text":n,"green-text":r,"orange-text":e}),Fi=(n,r)=>({"fa-bridge-circle-exclamation orange-text":n,"fa-bridge-circle-xmark red-text":r});function Ri(n,r){n&1&&d(0,"i",25)}function Ui(n,r){n&1&&d(0,"i",26)}function zi(n,r){if(n&1){let e=C();a(0,"a",24),m("click",function(){f(e);let i=p();return _(i.openHb2InfoModal())}),x(1,Ri,1,0,"i",25)(2,Ui,1,0,"i",26),l()}if(n&2){let e=p();b("ngbTooltip","Homebridge v2 Readiness")("placement","right"),t(),s(e.hb2Status==="supported"?1:-1),t(),s(e.hb2Status==="unknown"?2:-1)}}function Oi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.checkAndUpdatePlugin(i.plugin,i.plugin.updateTag||"latest"))}),d(3,"i",28),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.button_update")),B("aria-label",u(2,4,"plugins.button_update")))}function qi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.switchToScoped(i.plugin))}),d(3,"i",29),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.manage.scoped.switch")),B("aria-label",u(2,4,"plugins.manage.scoped.switch")))}function Li(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.settings(i.plugin))}),d(3,"i",30),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.button_set_up")),B("aria-label",u(2,4,"plugins.button_set_up")))}function Gi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.bridgeSettings(i.plugin))}),d(3,"i",31),l()}n&2&&(b("ngbTooltip",u(1,2,"child_bridge.setup")),B("aria-label",u(2,4,"child_bridge.setup")))}function Wi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.bridgeSettings(i.plugin))}),d(3,"i",32),l()}n&2&&(b("ngbTooltip",u(1,2,"child_bridge.bridge_connect")),B("aria-label",u(2,4,"child_bridge.bridge_connect")))}function Ji(n,r){if(n&1&&d(0,"i",13),n&2){let e=p();b("ngClass",k(1,Fi,e.childBridgeStatus==="pending",e.childBridgeStatus==="down"))}}function Ki(n,r){if(n&1){let e=C();a(0,"a",15),m("click",function(){f(e);let i=p();return _(i.openFundingModal(i.plugin))}),d(1,"i",33),a(2,"span",17),g(3),l()()}if(n&2){let e=p();t(3),v("@",e.plugin.author,"")}}function Qi(n,r){if(n&1&&(a(0,"span",17),d(1,"i",34),g(2),l()),n&2){let e=p();t(2),v("@",e.plugin.author," ")}}function Xi(n,r){if(n&1&&(a(0,"span"),g(1),c(2,"date"),l()),n&2){let e=p(2);t(),v("(",D(2,1,e.plugin.lastUpdated,"yyyy-MM-dd"),")")}}function Yi(n,r){if(n&1&&(a(0,"span"),d(1,"i",35),a(2,"span",17),g(3),x(4,Xi,3,4,"span"),l()()),n&2){let e=p();t(3),v("v",e.plugin.latestVersion," "),t(),s(e.plugin.lastUpdated?4:-1)}}function Zi(n,r){if(n&1&&(d(0,"i",36),g(1)),n&2){let e=p();t(),v("v",e.plugin.installedVersion," ")}}function ie(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),m("click",function(){f(e);let i=p();return _(i.doChildBridgeAction("restart"))}),d(2,"i",37),l()}if(n&2){let e=p();b("ngbTooltip",u(1,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart"))}}function ee(n,r){if(n&1){let e=C();a(0,"a",38),m("click",function(){f(e);let i=p();return _(i.enablePlugin(i.plugin))}),d(1,"i",39),c(2,"translate"),l()}n&2&&(t(),b("ngbTooltip",u(2,1,"plugins.status_disabled")))}function ne(n,r){if(n&1){let e=C();a(0,"a",40),m("click",function(){f(e);let i=p();return _(i.$plugin.installAlternateVersion(i.plugin))}),d(1,"i",41),l()}}function te(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.viewPluginLog(i.plugin))}),d(1,"i",50),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.plugin_logs")," "))}function oe(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.installAlternateVersion(i.plugin))}),d(1,"i",51),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.manage_version")," "))}function ae(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.jsonEditor(i.plugin))}),d(1,"i",52),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.json_config")," "))}function le(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.disablePlugin(i.plugin))}),d(1,"i",53),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.disable")," "))}function re(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.enablePlugin(i.plugin))}),d(1,"i",54),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.enable")," "))}function se(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.uninstallPlugin(i.plugin,i.setChildBridges))}),d(1,"i",55),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.button_uninstall")," "))}function de(n,r){n&1&&d(0,"div",48)}function pe(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("restart"))}),d(1,"i",57),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart")," ")}}function ce(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("stop"))}),d(1,"i",58),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.stop_plural":"child_bridge.stop")," ")}}function ue(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("start"))}),d(1,"i",59),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.start_plural":"child_bridge.start")," ")}}function ge(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.$plugin.resetChildBridges(i.setChildBridges))}),d(1,"i",60),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.reset_accessories")," "))}function me(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",56),g(2),c(3,"translate"),l(),x(4,pe,4,3,"button",47)(5,ce,4,3,"button",47)(6,ue,4,3,"button",47)(7,ge,4,3,"button",47)}if(n&2){let e=p(2);t(2),v(" ",u(3,5,"child_bridge.bridge_settings")," "),t(2),s(e.childBridgeRestartInProgress?-1:4),t(),s(e.allChildBridgesStopped?-1:5),t(),s(e.allChildBridgesStopped?6:-1),t(),s(e.$settings.env.serviceMode?7:-1)}}function fe(n,r){n&1&&d(0,"div",48)}function _e(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",61),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.setup")," "))}function Ce(n,r){n&1&&d(0,"div",48)}function he(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",61),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.setup")," "))}function be(n,r){n&1&&d(0,"div",48)}function ve(n,r){if(n&1&&(a(0,"a",49),d(1,"i",62),g(2),c(3,"translate"),l()),n&2){let e=p(2);b("href",e.plugin.links.bugs,T),t(2),v(" ",u(3,2,"support.links.issue")," ")}}function xe(n,r){if(n&1){let e=C();a(0,"span",23)(1,"a",42),d(2,"i",43),l(),a(3,"div",44)(4,"button",45),m("click",function(){f(e);let i=p();return _(i.$plugin.settings(i.plugin))}),d(5,"i",46),g(6),c(7,"translate"),l(),x(8,te,4,3,"button",47)(9,oe,4,3,"button",47)(10,ae,4,3,"button",47)(11,le,4,3,"button",47)(12,re,4,3,"button",47)(13,se,4,3,"button",47)(14,de,1,0,"div",48)(15,me,8,7)(16,fe,1,0,"div",48)(17,_e,4,3,"button",47)(18,Ce,1,0,"div",48)(19,he,4,3,"button",47)(20,be,1,0,"div",48)(21,ve,4,4,"a",49),l()()}if(n&2){let e=p();t(),B("aria-label","Plugin Actions Dropdown"),t(5),v(" ",u(7,16,"plugins.button_settings")," "),t(2),s(e.plugin.isConfigured&&!e.plugin.disabled?8:-1),t(),s(e.plugin.publicPackage?9:-1),t(),s(!e.isMobile&&e.plugin.name!=="homebridge-config-ui-x"?10:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"&&!e.plugin.disabled?11:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"&&e.plugin.disabled?12:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"?13:-1),t(),s(!e.plugin.disabled&&e.plugin.isConfigured&&e.plugin.hasChildBridges&&e.plugin.installedVersion&&e.plugin.name!=="homebridge-config-ui-x"?14:-1),t(),s(e.plugin.hasChildBridges&&!e.plugin.disabled?15:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?16:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?17:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?18:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?19:-1),t(),s(e.plugin.links!=null&&e.plugin.links.bugs?20:-1),t(),s(e.plugin.links!=null&&e.plugin.links.bugs?21:-1)}}var Bi=(()=>{class n{$api=w(A);$md=w(vi);$modal=w(gi);$plugin=w(U);$settings=w(F);$toastr=w(j);$translate=w(N);$ws=w(R);plugin;hasChildBridges=!1;hasUnpairedChildBridges=!1;allChildBridgesStopped=!1;childBridgeStatus="pending";childBridgeRestartInProgress=!1;defaultIcon="assets/hb-icon.png";isMobile;setChildBridges=[];hb2Status="unknown";io;constructor(){}set childBridges(e){var h,M;this.hasChildBridges=e.length>0,this.hasUnpairedChildBridges=e.filter(S=>S.paired===!1).length>0,this.allChildBridgesStopped=e.filter(S=>S.manuallyStopped===!0).length===e.length,this.hasChildBridges&&(e.some(S=>S.status==="down")?this.childBridgeStatus="down":e.some(S=>S.status==="pending")?this.childBridgeStatus="pending":e.some(S=>S.status==="ok")&&(this.childBridgeStatus="ok")),this.setChildBridges=e;let o=this.$settings.env.homebridgeVersion.split(".")[0],i=((M=(h=this.plugin.engines)==null?void 0:h.homebridge)==null?void 0:M.split("||").map(S=>S.trim()))||[];this.hb2Status=o==="2"?"hide":i.some(S=>S.startsWith("^2")||S.startsWith(">=2"))?"supported":this.hb2Status}ngOnInit(){this.isMobile=this.$md.detect.mobile(),this.io=this.$ws.getExistingNamespace("child-bridges"),this.isMobile&&this.plugin.displayName.toLowerCase().startsWith("homebridge ")&&(this.plugin.displayName=this.plugin.displayName.replace(/^homebridge /i,"")),this.plugin.icon||(this.plugin.icon=this.defaultIcon)}openFundingModal(e){let o=this.$modal.open(Pi,{size:"lg",backdrop:"static"});o.componentInstance.plugin=e}pluginInfoModal(e){let o=this.$modal.open(yi,{size:"lg",backdrop:"static"});o.componentInstance.plugin=e}disablePlugin(e){let o=this.$modal.open(wi,{size:"lg",backdrop:"static"});o.componentInstance.pluginName=e.displayName,o.componentInstance.isConfigured=e.isConfigured,o.componentInstance.isConfiguredDynamicPlatform=e.isConfiguredDynamicPlatform,o.result.then(()=>y(this,null,function*(){try{yield I(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/disable`,{})),e.disabled=!0,this.hasChildBridges&&this.doChildBridgeAction("stop"),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.disable.error"),this.$translate.instant("toast.title_error"))}}))}enablePlugin(e){let o=this.$modal.open(Ci,{size:"lg",backdrop:"static"});o.componentInstance.title=e.name,o.componentInstance.message=this.$translate.instant("plugins.manage.confirm_enable",{pluginName:e.displayName}),o.componentInstance.confirmButtonLabel=this.$translate.instant("plugins.manage.enable"),o.componentInstance.faIconClass="fa-circle-play primary-text",o.result.then(()=>y(this,null,function*(){try{yield I(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/enable`,{})),e.disabled=!1,this.hasChildBridges&&(yield this.doChildBridgeAction("start")),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.enable.error"),this.$translate.instant("toast.title_error"))}}))}viewPluginLog(e){let o=this.$modal.open(xi,{size:"xl",backdrop:"static"});o.componentInstance.plugin=e}doChildBridgeAction(e){return y(this,null,function*(){this.childBridgeRestartInProgress=!0;try{for(let o of this.setChildBridges)yield I(this.io.request(`${e}-child-bridge`,o.username))}catch(o){console.error(o),this.$toastr.error(this.$translate.instant("plugins.bridge.action_error",{action:e}),this.$translate.instant("toast.title_error")),this.childBridgeRestartInProgress=!1}finally{setTimeout(()=>{this.childBridgeRestartInProgress=!1},e==="restart"?12e3:e==="stop"?6e3:1e3)}})}handleIconError(){this.plugin.icon=this.defaultIcon}openHb2InfoModal(){let e=this.$modal.open(hi,{size:"lg",backdrop:"static"});e.componentInstance.title="Plugin Readiness",this.hb2Status==="supported"?(e.componentInstance.subtitle=`${this.plugin.displayName} is ready for Homebridge v2`,e.componentInstance.message="The developer has specifically marked your installed version of the plugin as compatible with Homebridge v2.",e.componentInstance.faIconClass="fa-check-circle green-text"):(e.componentInstance.subtitle=`${this.plugin.displayName} might not be ready for Homebridge v2`,e.componentInstance.message="The developer has not specifically marked your installed version of the plugin as compatible with Homebridge v2, but it may still work.",e.componentInstance.faIconClass="fa-question-circle orange-text"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.ctaButtonLink="https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0"}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["app-plugin-card"]],inputs:{plugin:"plugin",childBridges:"childBridges"},decls:36,vars:24,consts:[[1,"card","card-body","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column","me-3","align-items-center","justify-content-between"],["alt","Plugin Icon",1,"plugin-icon-card","mb-3",3,"error","src"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover","aria-label","Homebridge v2 Readiness",3,"ngbTooltip","placement"],[1,"d-flex","flex-column","justify-content-between",2,"min-width","calc(100% - 80px)"],[1,"d-flex","flex-row","align-items-end"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"card-title","mb-2","text-truncate"],[1,"ms-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"ngbTooltip"],[1,"fas","fa-fw","fa-spinner","fa-pulse","fa-lg","grey-text","ms-3",3,"hidden"],[1,"fas","fa-fw","fa-lg","ms-3",3,"ngClass"],[1,"card-text","mb-2","text-truncate"],["href","javascript:void(0)",1,"card-link",3,"click"],[1,"fas","fa-fw","fa-shield-alt","fa-lg","me-1",3,"ngClass"],[1,"grey-text"],[1,"card-text","mb-2"],["href","javascript:void(0)",1,"card-link"],[1,"card-text","mb-0","grey-text"],["href","javascript:void(0)",1,"card-link","red-text"],["href","javascript:void(0)"],["ngbDropdown","","placement","left",1,"d-inline-block","ms-3","mt-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover","aria-label","Homebridge v2 Readiness",3,"click","ngbTooltip","placement"],["aria-label","The developer has specifically marked this plugin as compatible with Homebridge v2.",1,"fas","fa-check-circle","green-text","fa-xl"],["aria-label","The developer has not specifically marked this plugin as compatible with Homebridge v2, but it may still work.",1,"fas","fa-question-circle","orange-text","fa-xl"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"click","ngbTooltip"],[1,"far","fa-fw","fa-arrow-alt-circle-up","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-arrow-right-arrow-left","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-sliders","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-bridge","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-qrcode","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1","pink-text"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1",2,"opacity","0.5"],[1,"far","fa-fw","fa-circle-dot","fa-lg","me-1"],[1,"far","fa-fw","fa-circle-check","fa-lg","me-1"],[1,"fas","fa-fw","fa-lg","fa-power-off","ms-3"],["href","javascript:void(0)",1,"card-link","red-text",3,"click"],["container","body","openDelay","150","triggers","hover",1,"far","fa-fw","fa-pause-circle","fa-lg",3,"ngbTooltip"],["href","javascript:void(0)",3,"click"],[1,"far","fa-fw","fa-arrow-alt-circle-down","fa-lg"],["href","javascript:void(0)","ngbDropdownToggle","",1,"card-link","text-decoration-none","mt-auto",2,"outline","none"],[1,"fa-solid","fa-fw","fa-ellipsis-v","fa-lg"],["ngbDropdownMenu","","aria-labelledby","Plugin Actions Dropdown"],["ngbDropdownItem","",3,"click"],[1,"fas","fa-fw","fa-sliders"],["ngbDropdownItem",""],[1,"dropdown-divider"],["ngbDropdownItem","","rel","noopener noreferrer","target","_blank",3,"href"],[1,"fas","fa-fw","fa-wave-square"],[1,"fas","fa-fw","fa-code-compare"],[1,"fas","fa-fw","fa-code"],[1,"far","fa-fw","fa-circle-pause"],[1,"far","fa-fw","fa-circle-play"],[1,"fas","fa-fw","fa-trash"],[1,"fas","fa-fw","fa-bridge"],[1,"fa-fw","icon-button","fas","fa-fw","fa-power-off"],[1,"fas","fa-fw","fa-stop"],[1,"fas","fa-fw","fa-play"],[1,"fas","fa-fw","fa-broom"],[1,"icon-button","fas","fa-fw","fa-bridge"],[1,"icon-button","fa","fa-fw","fa-question-circle-o"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),m("error",function(){return i.handleIconError()}),l(),x(4,zi,3,4,"a",4),l(),a(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h5",9),g(10),l(),a(11,"div",10),x(12,Oi,4,6,"a",11)(13,qi,4,6,"a",11)(14,Li,4,6,"a",11)(15,Gi,4,6,"a",11)(16,Wi,4,6,"a",11),d(17,"i",12),x(18,Ji,1,4,"i",13),l()(),a(19,"p",14)(20,"a",15),m("click",function(){return i.pluginInfoModal(i.plugin)}),d(21,"i",16),a(22,"span",17),g(23),l()()(),a(24,"p",18),x(25,Ki,4,1,"a",19)(26,Qi,3,1,"span",17),l(),a(27,"div",8)(28,"p",20),x(29,Yi,5,2,"span")(30,Zi,2,1),l(),a(31,"div",10),x(32,ie,3,3,"a",11)(33,ee,3,3,"a",21)(34,ne,2,0,"a",22)(35,xe,22,18,"span",23),l()()()()()()()),o&2&&(t(3),b("src",i.plugin.icon,T),t(),s(i.plugin.installedVersion&&i.hb2Status!=="hide"?4:-1),t(6),P(i.plugin.displayName),t(2),s(i.plugin.installedVersion&&i.plugin.updateAvailable&&!i.childBridgeRestartInProgress?12:-1),t(),s(i.plugin.installedVersion&&(i.plugin.newHbScope==null?null:i.plugin.newHbScope.switch)===i.plugin.installedVersion&&!i.childBridgeRestartInProgress?13:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&!i.plugin.isConfigured&&!i.childBridgeRestartInProgress&&!i.plugin.disabled?14:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&!i.childBridgeRestartInProgress?15:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&i.hasUnpairedChildBridges&&i.childBridgeStatus==="ok"&&!i.plugin.disabled?16:-1),t(),b("hidden",!i.childBridgeRestartInProgress),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&!i.hasUnpairedChildBridges&&i.childBridgeStatus!=="ok"&&!i.plugin.disabled?18:-1),t(3),b("ngClass",J(20,Ai,i.plugin.isHbScoped,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),!i.plugin.isHbScoped&&!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin)),t(2),P(i.plugin.name),t(2),s((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?25:-1),t(),s((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?-1:26),t(3),s(i.plugin.publicPackage&&!i.plugin.installedVersion?29:-1),t(),s(i.plugin.installedVersion?30:-1),t(2),s(!i.plugin.disabled&&i.plugin.hasChildBridges&&i.childBridgeStatus==="ok"?32:-1),t(),s(i.plugin.installedVersion&&i.plugin.disabled?33:-1),t(),s(i.plugin.publicPackage&&!i.plugin.installedVersion?34:-1),t(),s(i.plugin.installedVersion?35:-1))},dependencies:[mi,E,ci,pi,di,si,ri,Q,$],encapsulation:2})}return n})();var we=(n,r)=>({"fa-magnifying-glass":n,"fa-exclamation-circle":r});function Pe(n,r){n&1&&d(0,"app-spinner")}function Se(n,r){if(n&1){let e=C();a(0,"a",9),m("click",function(){f(e);let i=p();return _(i.onClearSearch())}),d(1,"i",10),l()}}function ye(n,r){if(n&1&&(a(0,"div",11),d(1,"app-plugin-card",13),l()),n&2){let e=r.$implicit,o=p(2);t(),b("plugin",e)("childBridges",o.getPluginChildBridges(e))}}function Be(n,r){if(n&1&&(a(0,"div",12),d(1,"i",14),a(2,"p"),g(3),c(4,"translate"),l()()),n&2){let e=p(2);t(),b("ngClass",k(4,we,!e.showExitButton,e.showExitButton)),t(2),P(u(4,2,e.showExitButton?"plugins.placeholder_search_none":"plugins.placeholder_search_first"))}}function ke(n,r){if(n&1&&(a(0,"div",8),G(1,ye,2,2,"div",11,L),x(3,Be,5,7,"div",12),l()),n&2){let e=p();t(),W(e.installedPlugins),t(2),s(e.installedPlugins.length===0&&!e.loading&&!e.mainError?3:-1)}}var bn=(()=>{class n{$api=w(A);$plugin=w(U);$router=w(_i);$settings=w(F);$toastr=w(j);$translate=w(N);$ws=w(R);isSearchMode=!1;mainError=!1;loading=!0;installedPlugins=[];childBridges=[];showExitButton=!1;form=new ii({query:new ei("")});io;navigationSubscription;constructor(){}ngOnInit(){return y(this,null,function*(){this.io=this.$ws.connectToNamespace("child-bridges"),this.io.connected.subscribe(()=>y(this,null,function*(){this.getChildBridgeMetadata(),this.io.socket.emit("monitor-child-bridge-status"),this.loadInstalledPlugins().then(()=>{let e=this.$router.parseUrl(this.$router.url).queryParams.installed;if(e){let o=this.installedPlugins.find(i=>i.name===e);o&&!o.isConfigured&&this.$plugin.settings(o),this.$router.navigate(["/plugins"])}})})),this.io.socket.on("child-bridge-status-update",e=>{let o=this.childBridges.find(i=>i.username===e.username);o?Object.assign(o,e):this.childBridges.push(e)}),this.navigationSubscription=this.$router.events.subscribe(e=>{e instanceof fi&&this.loadInstalledPlugins()})})}loadInstalledPlugins(){return y(this,null,function*(){this.form.setValue({query:""}),this.showExitButton=!1,this.installedPlugins=[],this.loading=!0,this.mainError=!1;try{let e=yield I(this.$api.get("/plugins"));this.installedPlugins=e.filter(i=>i.name!=="homebridge-config-ui-x"),yield this.appendMetaInfo();let o=this.installedPlugins.sort((i,h)=>i.updateAvailable!==h.updateAvailable?i.updateAvailable?-1:1:i.newHbScope&&!h.newHbScope?-1:i.disabled!==h.disabled?i.disabled?1:-1:i.isConfigured!==h.isConfigured?i.isConfigured?1:-1:i.hasChildBridgesUnpaired!==h.hasChildBridgesUnpaired?i.hasChildBridgesUnpaired?-1:1:i.hasChildBridges!==h.hasChildBridges&&this.$settings.env.recommendChildBridges?i.hasChildBridges?1:-1:i.name.localeCompare(h.name));return this.loading=!1,o}catch(e){console.error(e),this.loading=!1,this.mainError=!0,this.$toastr.error(this.$translate.instant("plugins.toast_failed_to_load_plugins"),this.$translate.instant("toast.title_error"))}})}appendMetaInfo(){return y(this,null,function*(){yield Promise.all(this.installedPlugins.filter(e=>e.installedVersion).map(e=>y(this,null,function*(){try{let o=yield I(this.$api.get(`/config-editor/plugin/${encodeURIComponent(e.name)}`));e.isConfigured=o.length>0,e.isConfiguredDynamicPlatform=e.isConfigured&&Object.prototype.hasOwnProperty.call(o[0],"platform"),e.recommendChildBridge=e.isConfiguredDynamicPlatform&&this.$settings.env.recommendChildBridges&&this.$settings.env.serviceMode&&!["homebridge","homebridge-config-ui-x"].includes(e.name),e.hasChildBridges=e.isConfigured&&o.some(h=>h._bridge&&h._bridge.username);let i=this.getPluginChildBridges(e);e.hasChildBridgesUnpaired=i.some(h=>!h.paired)}catch{e.isConfigured=!0,e.hasChildBridges=!0}})))})}search(){this.installedPlugins=[],this.loading=!0,this.showExitButton=!0,this.$api.get(`/plugins/search/${encodeURIComponent(this.form.value.query)}`).subscribe({next:e=>{let o=new Set;this.installedPlugins=e.reduce((i,h)=>{if(h.name==="homebridge-config-ui-x"||o.has(h.name))return i;if(h.newHbScope){let M=h.newHbScope.to,S=e.some(ki=>ki.name===M);(h.installedVersion||!S)&&(o.add(M),i.push(h))}else i.push(h);return i},[]),this.appendMetaInfo(),this.loading=!1},error:e=>{this.loading=!1,this.isSearchMode=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error")),this.loadInstalledPlugins()}})}onClearSearch(){this.loadInstalledPlugins()}onSubmit({value:e}){e.query.length?(this.isSearchMode=!0,this.search()):this.isSearchMode&&(this.isSearchMode=!1,this.loadInstalledPlugins())}getChildBridgeMetadata(){this.io.request("get-homebridge-child-bridge-status").subscribe(e=>{this.childBridges=e})}getPluginChildBridges(e){return this.childBridges.filter(o=>o.plugin===e.name)}ngOnDestroy(){this.navigationSubscription&&this.navigationSubscription.unsubscribe(),this.io.end()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],decls:13,vars:10,consts:[[1,"row","mb-3"],[1,"col-12"],[1,"primary-text","m-0"],[1,"row"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","formControlName","query",1,"hb-npm-search",3,"placeholder"],["href","javascript:void(0)",1,"hb-npm-search-clear"],[1,"d-flex","flex-wrap","justify-content-between"],["href","javascript:void(0)",1,"hb-npm-search-clear",3,"click"],[1,"far","fa-fw","fa-times-circle"],[1,"hb-plugin-space-between"],[1,"alert","alert-info","mt-4","text-center","w-100"],[3,"plugin","childBridges"],[1,"fas","fa-fw","primary-text","my-3",2,"font-size","75px",3,"ngClass"]],template:function(o,i){o&1&&(x(0,Pe,1,0,"app-spinner"),a(1,"div",0)(2,"div",1)(3,"h3",2),g(4),c(5,"translate"),l()()(),a(6,"div",3)(7,"div",4)(8,"form",5),m("ngSubmit",function(){return i.onSubmit(i.form)}),d(9,"input",6),c(10,"translate"),x(11,Se,2,0,"a",7),l()()(),x(12,ke,4,1,"div",8)),o&2&&(s(i.loading?0:-1),t(4),P(u(5,6,"menu.label_plugins")),t(4),b("formGroup",i.form),t(),b("placeholder",u(10,8,"plugins.placeholder_search_plugin")),t(2),s(i.showExitButton?11:-1),t(),s(i.loading?-1:12))},dependencies:[bi,ai,ni,X,Y,Z,li,ti,oi,Bi,$,E],styles:[".hb-npm-search[_ngcontent-%COMP%]{outline:none;box-sizing:inherit!important;background-color:inherit;height:50px!important;width:100%;border-width:.5px;padding:10px;margin-bottom:15px}@media (hover: hover){.hb-npm-search[_ngcontent-%COMP%]:hover{border:1px solid #000000}}.hb-npm-search[_ngcontent-%COMP%]:focus{border:1px solid #000000;box-shadow:0 1px #000}.hb-npm-search-clear[_ngcontent-%COMP%]{position:absolute;right:25px;font-size:35px;color:#d0d0d0;line-height:50px;cursor:pointer}.hb-plugin-space-between[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(50% - 6.6666666667px)}@media only screen and (max-width: 991px){.hb-plugin-space-between[_ngcontent-%COMP%]{width:100%}}"]})}return n})();export{bn as a};
|
|
1
|
+
import{a as wi,b as Pi}from"./chunk-VZPOY7LH.js";import{a as bi}from"./chunk-A6S2CSNA.js";import{n as xi,v as U}from"./chunk-VHQGSHBK.js";import{a as z}from"./chunk-JV672LMU.js";import{a as vi}from"./chunk-D3QNROQA.js";import{a as hi}from"./chunk-YCHPFYO5.js";import{a as Ci}from"./chunk-IQBKWEOJ.js";import{h as ri,i as si,j as di,k as pi,l as ci,m as ui,n as gi,o as mi}from"./chunk-U3XAGOD7.js";import{c as X,e as Y,f as Z,g as ii,j as ei,m as ni,p as ti,q as oi,y as ai,z as li}from"./chunk-DVN556RD.js";import{a as R}from"./chunk-FYRXHZYK.js";import{a as fi,d as _i}from"./chunk-2IW5LNPB.js";import{b as F}from"./chunk-FKJB73E7.js";import{h as j,k as A}from"./chunk-SGEFLPG5.js";import{a as N,b as $}from"./chunk-QIWZD5HO.js";import{Ac as c,Bc as u,Cc as D,Jb as B,Kb as b,Pb as s,Rb as L,Sb as G,Tb as W,Ub as a,Vb as l,Wb as d,Zc as E,_b as C,ad as K,bc as m,cb as q,cc as p,db as T,ed as Q,gb as t,h as y,ma as w,mc as g,nc as P,oc as v,tb as V,ua as f,va as _,w as I,wc as H,xc as k,yc as J,zb as x}from"./chunk-6JZDPQRU.js";var Ii=(n,r)=>({"orange-text":n,"grey-text":r}),O=n=>({opacity:n}),Ti=(n,r)=>({"green-text":n,"grey-text":r}),Vi=(n,r)=>({"purple-text":n,"grey-text":r}),Ei=(n,r)=>({scopedLink:n,verifiedLink:r});function $i(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l(),a(6,"p",19),g(7),c(8,"translate"),l()),n&2&&(t(),P(u(2,3,"plugins.manage.scoped_subtitle")),t(3),P(u(5,5,"plugins.manage.scoped_message")),t(3),P(u(8,7,"plugins.manage.verified_message")))}function Mi(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l()),n&2&&(t(),P(u(2,2,"plugins.manage.verified_subtitle")),t(3),P(u(5,4,"plugins.manage.verified_message")))}function Hi(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l()),n&2&&(t(),P(u(2,2,"plugins.manage.unverified_subtitle")),t(3),P(u(5,4,"plugins.manage.unverified_message")))}function Di(n,r){if(n&1){let e=C();a(0,"button",20),m("click",function(){f(e);let i=p();return _(i.$activeModal.dismiss("Dismiss"))}),g(1),c(2,"translate"),l()}n&2&&(t(),v(" ",u(2,1,"form.button_close")," "))}function Ni(n,r){if(n&1){let e=C();a(0,"button",20),m("click",function(){f(e);let i=p();return _(i.$activeModal.dismiss("Dismiss"))}),g(1),c(2,"translate"),l()}n&2&&(t(),v(" ",u(2,1,"form.button_close")," "))}function ji(n,r){if(n&1&&(a(0,"a",17),g(1),c(2,"translate"),d(3,"i",21),l()),n&2){let e=p();b("href",e.plugin.links.homepage||e.plugin.links.npm,T),t(),v(" ",u(2,2,"plugins.button_homepage")," ")}}var yi=(()=>{class n{$activeModal=w(ui);plugin;defaultIcon="assets/hb-icon.png";linkScoped='<a href="https://github.com/homebridge/plugins/wiki/Scoped-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';linkVerified='<a href="https://github.com/homebridge/plugins/wiki/Verified-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){}ngOnInit(){this.plugin.icon||(this.plugin.icon=this.defaultIcon)}handleIconError(){this.plugin.icon=this.defaultIcon}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:32,vars:45,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],["alt","Plugin Icon",1,"mb-3","plugin-icon-card",3,"error","src"],[1,"mb-1"],[1,"grey-text","mb-0","font-monospace"],[1,"grey-text","mb-1","font-monospace"],[1,"mb-3"],[1,"fas","fa-fw","fa-shield-alt","mb-3",2,"font-size","48px",3,"ngClass","ngStyle"],[1,"mb-0","grey-text",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"mb-2"],[1,"mb-1","grey-text"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-fw","fa-external-link-alt"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),g(3),c(4,"translate"),l(),a(5,"button",3),c(6,"translate"),m("click",function(){return i.$activeModal.dismiss("Dismiss")}),l()(),a(7,"div",4)(8,"img",5),m("error",function(){return i.handleIconError()}),l(),a(9,"h4",6),g(10),l(),a(11,"p",7),g(12),l(),a(13,"p",8),g(14),l(),a(15,"p",9),g(16),l(),d(17,"i",10)(18,"i",10)(19,"i",10),x(20,$i,9,9)(21,Mi,6,6)(22,Hi,6,6),d(23,"p",11),c(24,"translate"),l(),a(25,"div",12)(26,"div",13),x(27,Di,3,3,"button",14),l(),a(28,"div",15),x(29,Ni,3,3,"button",14),l(),a(30,"div",16),x(31,ji,4,4,"a",17),l()()()),o&2&&(t(3),P(u(4,20,"plugins.manage.information")),t(2),B("aria-label",u(6,22,"form.button_close")),t(3),b("src",i.plugin.icon,T),t(2),P(i.plugin.displayName),t(2),P(i.plugin.name),t(2),v("@",i.plugin.author,""),t(2),P(i.plugin.description),t(),b("ngClass",k(27,Ii,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin,i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin))("ngStyle",H(30,O,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?1:.25)),t(),b("ngClass",k(32,Ti,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),i.plugin.isHbScoped||!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin))("ngStyle",H(35,O,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?1:.25)),t(),b("ngClass",k(37,Vi,i.plugin.isHbScoped,!i.plugin.isHbScoped))("ngStyle",H(40,O,i.plugin.isHbScoped?1:.25)),t(),s(i.plugin.isHbScoped?20:-1),t(),s(!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?21:-1),t(),s(!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?22:-1),t(),b("innerHTML",D(24,24,"plugins.manage.more_info",k(42,Ei,i.linkScoped,i.linkVerified)),q),t(4),s(i.plugin.links.homepage||i.plugin.links.npm?27:-1),t(2),s(!i.plugin.links.homepage&&!i.plugin.links.npm?29:-1),t(2),s(i.plugin.links.homepage||i.plugin.links.npm?31:-1))},dependencies:[$,E,K],styles:[".plugin-icon[_ngcontent-%COMP%]{height:75px;width:75px;border-radius:15px;border:1px solid #222222}"]})}return n})();var Ai=(n,r,e)=>({"purple-text":n,"green-text":r,"orange-text":e}),Fi=(n,r)=>({"fa-bridge-circle-exclamation orange-text":n,"fa-bridge-circle-xmark red-text":r});function Ri(n,r){n&1&&d(0,"i",25)}function Ui(n,r){n&1&&d(0,"i",26)}function zi(n,r){if(n&1){let e=C();a(0,"a",24),m("click",function(){f(e);let i=p();return _(i.openHb2InfoModal())}),x(1,Ri,1,0,"i",25)(2,Ui,1,0,"i",26),l()}if(n&2){let e=p();b("ngbTooltip","Homebridge v2 Readiness")("placement","right"),t(),s(e.hb2Status==="supported"?1:-1),t(),s(e.hb2Status==="unknown"?2:-1)}}function Oi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.checkAndUpdatePlugin(i.plugin,i.plugin.updateTag||"latest"))}),d(3,"i",28),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.button_update")),B("aria-label",u(2,4,"plugins.button_update")))}function qi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.switchToScoped(i.plugin))}),d(3,"i",29),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.manage.scoped.switch")),B("aria-label",u(2,4,"plugins.manage.scoped.switch")))}function Li(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.settings(i.plugin))}),d(3,"i",30),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.button_set_up")),B("aria-label",u(2,4,"plugins.button_set_up")))}function Gi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.bridgeSettings(i.plugin))}),d(3,"i",31),l()}n&2&&(b("ngbTooltip",u(1,2,"child_bridge.setup")),B("aria-label",u(2,4,"child_bridge.setup")))}function Wi(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.bridgeSettings(i.plugin))}),d(3,"i",32),l()}n&2&&(b("ngbTooltip",u(1,2,"child_bridge.bridge_connect")),B("aria-label",u(2,4,"child_bridge.bridge_connect")))}function Ji(n,r){if(n&1&&d(0,"i",13),n&2){let e=p();b("ngClass",k(1,Fi,e.childBridgeStatus==="pending",e.childBridgeStatus==="down"))}}function Ki(n,r){if(n&1){let e=C();a(0,"a",15),m("click",function(){f(e);let i=p();return _(i.openFundingModal(i.plugin))}),d(1,"i",33),a(2,"span",17),g(3),l()()}if(n&2){let e=p();t(3),v("@",e.plugin.author,"")}}function Qi(n,r){if(n&1&&(a(0,"span",17),d(1,"i",34),g(2),l()),n&2){let e=p();t(2),v("@",e.plugin.author," ")}}function Xi(n,r){if(n&1&&(a(0,"span"),g(1),c(2,"date"),l()),n&2){let e=p(2);t(),v("(",D(2,1,e.plugin.lastUpdated,"yyyy-MM-dd"),")")}}function Yi(n,r){if(n&1&&(a(0,"span"),d(1,"i",35),a(2,"span",17),g(3),x(4,Xi,3,4,"span"),l()()),n&2){let e=p();t(3),v("v",e.plugin.latestVersion," "),t(),s(e.plugin.lastUpdated?4:-1)}}function Zi(n,r){if(n&1&&(d(0,"i",36),g(1)),n&2){let e=p();t(),v("v",e.plugin.installedVersion," ")}}function ie(n,r){if(n&1){let e=C();a(0,"a",27),c(1,"translate"),m("click",function(){f(e);let i=p();return _(i.doChildBridgeAction("restart"))}),d(2,"i",37),l()}if(n&2){let e=p();b("ngbTooltip",u(1,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart"))}}function ee(n,r){if(n&1){let e=C();a(0,"a",38),m("click",function(){f(e);let i=p();return _(i.enablePlugin(i.plugin))}),d(1,"i",39),c(2,"translate"),l()}n&2&&(t(),b("ngbTooltip",u(2,1,"plugins.status_disabled")))}function ne(n,r){if(n&1){let e=C();a(0,"a",40),m("click",function(){f(e);let i=p();return _(i.$plugin.installAlternateVersion(i.plugin))}),d(1,"i",41),l()}}function te(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.viewPluginLog(i.plugin))}),d(1,"i",50),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.plugin_logs")," "))}function oe(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.installAlternateVersion(i.plugin))}),d(1,"i",51),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.manage_version")," "))}function ae(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.jsonEditor(i.plugin))}),d(1,"i",52),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.json_config")," "))}function le(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.disablePlugin(i.plugin))}),d(1,"i",53),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.disable")," "))}function re(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.enablePlugin(i.plugin))}),d(1,"i",54),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.enable")," "))}function se(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.uninstallPlugin(i.plugin,i.setChildBridges))}),d(1,"i",55),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.button_uninstall")," "))}function de(n,r){n&1&&d(0,"div",48)}function pe(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("restart"))}),d(1,"i",57),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart")," ")}}function ce(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("stop"))}),d(1,"i",58),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.stop_plural":"child_bridge.stop")," ")}}function ue(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("start"))}),d(1,"i",59),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.start_plural":"child_bridge.start")," ")}}function ge(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.$plugin.resetChildBridges(i.setChildBridges))}),d(1,"i",60),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.reset_accessories")," "))}function me(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",56),g(2),c(3,"translate"),l(),x(4,pe,4,3,"button",47)(5,ce,4,3,"button",47)(6,ue,4,3,"button",47)(7,ge,4,3,"button",47)}if(n&2){let e=p(2);t(2),v(" ",u(3,5,"child_bridge.bridge_settings")," "),t(2),s(e.childBridgeRestartInProgress?-1:4),t(),s(e.allChildBridgesStopped?-1:5),t(),s(e.allChildBridgesStopped?6:-1),t(),s(e.$settings.env.serviceMode?7:-1)}}function fe(n,r){n&1&&d(0,"div",48)}function _e(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",61),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.setup")," "))}function Ce(n,r){n&1&&d(0,"div",48)}function he(n,r){if(n&1){let e=C();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",61),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.setup")," "))}function be(n,r){n&1&&d(0,"div",48)}function ve(n,r){if(n&1&&(a(0,"a",49),d(1,"i",62),g(2),c(3,"translate"),l()),n&2){let e=p(2);b("href",e.plugin.links.bugs,T),t(2),v(" ",u(3,2,"support.links.issue")," ")}}function xe(n,r){if(n&1){let e=C();a(0,"span",23)(1,"a",42),d(2,"i",43),l(),a(3,"div",44)(4,"button",45),m("click",function(){f(e);let i=p();return _(i.$plugin.settings(i.plugin))}),d(5,"i",46),g(6),c(7,"translate"),l(),x(8,te,4,3,"button",47)(9,oe,4,3,"button",47)(10,ae,4,3,"button",47)(11,le,4,3,"button",47)(12,re,4,3,"button",47)(13,se,4,3,"button",47)(14,de,1,0,"div",48)(15,me,8,7)(16,fe,1,0,"div",48)(17,_e,4,3,"button",47)(18,Ce,1,0,"div",48)(19,he,4,3,"button",47)(20,be,1,0,"div",48)(21,ve,4,4,"a",49),l()()}if(n&2){let e=p();t(),B("aria-label","Plugin Actions Dropdown"),t(5),v(" ",u(7,16,"plugins.button_settings")," "),t(2),s(e.plugin.isConfigured&&!e.plugin.disabled?8:-1),t(),s(e.plugin.publicPackage?9:-1),t(),s(!e.isMobile&&e.plugin.name!=="homebridge-config-ui-x"?10:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"&&!e.plugin.disabled?11:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"&&e.plugin.disabled?12:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"?13:-1),t(),s(!e.plugin.disabled&&e.plugin.isConfigured&&e.plugin.hasChildBridges&&e.plugin.installedVersion&&e.plugin.name!=="homebridge-config-ui-x"?14:-1),t(),s(e.plugin.hasChildBridges&&!e.plugin.disabled?15:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?16:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?17:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?18:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?19:-1),t(),s(e.plugin.links!=null&&e.plugin.links.bugs?20:-1),t(),s(e.plugin.links!=null&&e.plugin.links.bugs?21:-1)}}var Bi=(()=>{class n{$api=w(A);$md=w(vi);$modal=w(gi);$plugin=w(U);$settings=w(F);$toastr=w(j);$translate=w(N);$ws=w(R);plugin;hasChildBridges=!1;hasUnpairedChildBridges=!1;allChildBridgesStopped=!1;childBridgeStatus="pending";childBridgeRestartInProgress=!1;defaultIcon="assets/hb-icon.png";isMobile;setChildBridges=[];hb2Status="unknown";io;constructor(){}set childBridges(e){var h,M;this.hasChildBridges=e.length>0,this.hasUnpairedChildBridges=e.filter(S=>S.paired===!1).length>0,this.allChildBridgesStopped=e.filter(S=>S.manuallyStopped===!0).length===e.length,this.hasChildBridges&&(e.some(S=>S.status==="down")?this.childBridgeStatus="down":e.some(S=>S.status==="pending")?this.childBridgeStatus="pending":e.some(S=>S.status==="ok")&&(this.childBridgeStatus="ok")),this.setChildBridges=e;let o=this.$settings.env.homebridgeVersion.split(".")[0],i=((M=(h=this.plugin.engines)==null?void 0:h.homebridge)==null?void 0:M.split("||").map(S=>S.trim()))||[];this.hb2Status=o==="2"?"hide":i.some(S=>S.startsWith("^2")||S.startsWith(">=2"))?"supported":this.hb2Status}ngOnInit(){this.isMobile=this.$md.detect.mobile(),this.io=this.$ws.getExistingNamespace("child-bridges"),this.isMobile&&this.plugin.displayName.toLowerCase().startsWith("homebridge ")&&(this.plugin.displayName=this.plugin.displayName.replace(/^homebridge /i,"")),this.plugin.icon||(this.plugin.icon=this.defaultIcon)}openFundingModal(e){let o=this.$modal.open(Pi,{size:"lg",backdrop:"static"});o.componentInstance.plugin=e}pluginInfoModal(e){let o=this.$modal.open(yi,{size:"lg",backdrop:"static"});o.componentInstance.plugin=e}disablePlugin(e){let o=this.$modal.open(wi,{size:"lg",backdrop:"static"});o.componentInstance.pluginName=e.displayName,o.componentInstance.isConfigured=e.isConfigured,o.componentInstance.isConfiguredDynamicPlatform=e.isConfiguredDynamicPlatform,o.result.then(()=>y(this,null,function*(){try{yield I(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/disable`,{})),e.disabled=!0,this.hasChildBridges&&this.doChildBridgeAction("stop"),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.disable.error"),this.$translate.instant("toast.title_error"))}}))}enablePlugin(e){let o=this.$modal.open(Ci,{size:"lg",backdrop:"static"});o.componentInstance.title=e.name,o.componentInstance.message=this.$translate.instant("plugins.manage.confirm_enable",{pluginName:e.displayName}),o.componentInstance.confirmButtonLabel=this.$translate.instant("plugins.manage.enable"),o.componentInstance.faIconClass="fa-circle-play primary-text",o.result.then(()=>y(this,null,function*(){try{yield I(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/enable`,{})),e.disabled=!1,this.hasChildBridges&&(yield this.doChildBridgeAction("start")),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.enable.error"),this.$translate.instant("toast.title_error"))}}))}viewPluginLog(e){let o=this.$modal.open(xi,{size:"xl",backdrop:"static"});o.componentInstance.plugin=e}doChildBridgeAction(e){return y(this,null,function*(){this.childBridgeRestartInProgress=!0;try{for(let o of this.setChildBridges)yield I(this.io.request(`${e}-child-bridge`,o.username))}catch(o){console.error(o),this.$toastr.error(this.$translate.instant("plugins.bridge.action_error",{action:e}),this.$translate.instant("toast.title_error")),this.childBridgeRestartInProgress=!1}finally{setTimeout(()=>{this.childBridgeRestartInProgress=!1},e==="restart"?12e3:e==="stop"?6e3:1e3)}})}handleIconError(){this.plugin.icon=this.defaultIcon}openHb2InfoModal(){let e=this.$modal.open(hi,{size:"lg",backdrop:"static"});e.componentInstance.title="Plugin Readiness",this.hb2Status==="supported"?(e.componentInstance.subtitle=`${this.plugin.displayName} is ready for Homebridge v2`,e.componentInstance.message="The developer has specifically marked your installed version of the plugin as compatible with Homebridge v2.",e.componentInstance.faIconClass="fa-check-circle green-text"):(e.componentInstance.subtitle=`${this.plugin.displayName} might not be ready for Homebridge v2`,e.componentInstance.message="The developer has not specifically marked your installed version of the plugin as compatible with Homebridge v2, but it may still work.",e.componentInstance.faIconClass="fa-question-circle orange-text"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.ctaButtonLink="https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0"}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["app-plugin-card"]],inputs:{plugin:"plugin",childBridges:"childBridges"},decls:36,vars:24,consts:[[1,"card","card-body","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column","me-3","align-items-center","justify-content-between"],["alt","Plugin Icon",1,"plugin-icon-card","mb-3",3,"error","src"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover","aria-label","Homebridge v2 Readiness",3,"ngbTooltip","placement"],[1,"d-flex","flex-column","justify-content-between",2,"min-width","calc(100% - 80px)"],[1,"d-flex","flex-row","align-items-end"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"card-title","mb-2","text-truncate"],[1,"ms-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"ngbTooltip"],[1,"fas","fa-fw","fa-spinner","fa-pulse","fa-lg","grey-text","ms-3",3,"hidden"],[1,"fas","fa-fw","fa-lg","ms-3",3,"ngClass"],[1,"card-text","mb-2","text-truncate"],["href","javascript:void(0)",1,"card-link",3,"click"],[1,"fas","fa-fw","fa-shield-alt","fa-lg","me-1",3,"ngClass"],[1,"grey-text"],[1,"card-text","mb-2"],["href","javascript:void(0)",1,"card-link"],[1,"card-text","mb-0","grey-text"],["href","javascript:void(0)",1,"card-link","red-text"],["href","javascript:void(0)"],["ngbDropdown","","placement","left",1,"d-inline-block","ms-3","mt-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover","aria-label","Homebridge v2 Readiness",3,"click","ngbTooltip","placement"],["aria-label","The developer has specifically marked this plugin as compatible with Homebridge v2.",1,"fas","fa-check-circle","green-text","fa-xl"],["aria-label","The developer has not specifically marked this plugin as compatible with Homebridge v2, but it may still work.",1,"fas","fa-question-circle","orange-text","fa-xl"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"click","ngbTooltip"],[1,"far","fa-fw","fa-arrow-alt-circle-up","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-arrow-right-arrow-left","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-sliders","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-bridge","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-qrcode","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1","pink-text"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1",2,"opacity","0.5"],[1,"far","fa-fw","fa-circle-dot","fa-lg","me-1"],[1,"far","fa-fw","fa-circle-check","fa-lg","me-1"],[1,"fas","fa-fw","fa-lg","fa-power-off","ms-3"],["href","javascript:void(0)",1,"card-link","red-text",3,"click"],["container","body","openDelay","150","triggers","hover",1,"far","fa-fw","fa-pause-circle","fa-lg",3,"ngbTooltip"],["href","javascript:void(0)",3,"click"],[1,"far","fa-fw","fa-arrow-alt-circle-down","fa-lg"],["href","javascript:void(0)","ngbDropdownToggle","",1,"card-link","text-decoration-none","mt-auto",2,"outline","none"],[1,"fa-solid","fa-fw","fa-ellipsis-v","fa-lg"],["ngbDropdownMenu","","aria-labelledby","Plugin Actions Dropdown"],["ngbDropdownItem","",3,"click"],[1,"fas","fa-fw","fa-sliders"],["ngbDropdownItem",""],[1,"dropdown-divider"],["ngbDropdownItem","","rel","noopener noreferrer","target","_blank",3,"href"],[1,"fas","fa-fw","fa-wave-square"],[1,"fas","fa-fw","fa-code-compare"],[1,"fas","fa-fw","fa-code"],[1,"far","fa-fw","fa-circle-pause"],[1,"far","fa-fw","fa-circle-play"],[1,"fas","fa-fw","fa-trash"],[1,"fas","fa-fw","fa-bridge"],[1,"fa-fw","icon-button","fas","fa-fw","fa-power-off"],[1,"fas","fa-fw","fa-stop"],[1,"fas","fa-fw","fa-play"],[1,"fas","fa-fw","fa-broom"],[1,"icon-button","fas","fa-fw","fa-bridge"],[1,"icon-button","fa","fa-fw","fa-question-circle-o"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),m("error",function(){return i.handleIconError()}),l(),x(4,zi,3,4,"a",4),l(),a(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h5",9),g(10),l(),a(11,"div",10),x(12,Oi,4,6,"a",11)(13,qi,4,6,"a",11)(14,Li,4,6,"a",11)(15,Gi,4,6,"a",11)(16,Wi,4,6,"a",11),d(17,"i",12),x(18,Ji,1,4,"i",13),l()(),a(19,"p",14)(20,"a",15),m("click",function(){return i.pluginInfoModal(i.plugin)}),d(21,"i",16),a(22,"span",17),g(23),l()()(),a(24,"p",18),x(25,Ki,4,1,"a",19)(26,Qi,3,1,"span",17),l(),a(27,"div",8)(28,"p",20),x(29,Yi,5,2,"span")(30,Zi,2,1),l(),a(31,"div",10),x(32,ie,3,3,"a",11)(33,ee,3,3,"a",21)(34,ne,2,0,"a",22)(35,xe,22,18,"span",23),l()()()()()()()),o&2&&(t(3),b("src",i.plugin.icon,T),t(),s(i.plugin.installedVersion&&i.hb2Status!=="hide"?4:-1),t(6),P(i.plugin.displayName),t(2),s(i.plugin.installedVersion&&i.plugin.updateAvailable&&!i.childBridgeRestartInProgress?12:-1),t(),s(i.plugin.installedVersion&&(i.plugin.newHbScope==null?null:i.plugin.newHbScope.switch)===i.plugin.installedVersion&&!i.childBridgeRestartInProgress?13:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&!i.plugin.isConfigured&&!i.childBridgeRestartInProgress&&!i.plugin.disabled?14:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&!i.childBridgeRestartInProgress?15:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&i.hasUnpairedChildBridges&&i.childBridgeStatus==="ok"&&!i.plugin.disabled?16:-1),t(),b("hidden",!i.childBridgeRestartInProgress),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&!i.hasUnpairedChildBridges&&i.childBridgeStatus!=="ok"&&!i.plugin.disabled?18:-1),t(3),b("ngClass",J(20,Ai,i.plugin.isHbScoped,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),!i.plugin.isHbScoped&&!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin)),t(2),P(i.plugin.name),t(2),s((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?25:-1),t(),s((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?-1:26),t(3),s(i.plugin.publicPackage&&!i.plugin.installedVersion?29:-1),t(),s(i.plugin.installedVersion?30:-1),t(2),s(!i.plugin.disabled&&i.plugin.hasChildBridges&&i.childBridgeStatus==="ok"?32:-1),t(),s(i.plugin.installedVersion&&i.plugin.disabled?33:-1),t(),s(i.plugin.publicPackage&&!i.plugin.installedVersion?34:-1),t(),s(i.plugin.installedVersion?35:-1))},dependencies:[mi,E,ci,pi,di,si,ri,Q,$],encapsulation:2})}return n})();var we=(n,r)=>({"fa-magnifying-glass":n,"fa-exclamation-circle":r});function Pe(n,r){n&1&&d(0,"app-spinner")}function Se(n,r){if(n&1){let e=C();a(0,"a",9),m("click",function(){f(e);let i=p();return _(i.onClearSearch())}),d(1,"i",10),l()}}function ye(n,r){if(n&1&&(a(0,"div",11),d(1,"app-plugin-card",13),l()),n&2){let e=r.$implicit,o=p(2);t(),b("plugin",e)("childBridges",o.getPluginChildBridges(e))}}function Be(n,r){if(n&1&&(a(0,"div",12),d(1,"i",14),a(2,"p"),g(3),c(4,"translate"),l()()),n&2){let e=p(2);t(),b("ngClass",k(4,we,!e.showExitButton,e.showExitButton)),t(2),P(u(4,2,e.showExitButton?"plugins.placeholder_search_none":"plugins.placeholder_search_first"))}}function ke(n,r){if(n&1&&(a(0,"div",8),G(1,ye,2,2,"div",11,L),x(3,Be,5,7,"div",12),l()),n&2){let e=p();t(),W(e.installedPlugins),t(2),s(e.installedPlugins.length===0&&!e.loading&&!e.mainError?3:-1)}}var bn=(()=>{class n{$api=w(A);$plugin=w(U);$router=w(_i);$settings=w(F);$toastr=w(j);$translate=w(N);$ws=w(R);isSearchMode=!1;mainError=!1;loading=!0;installedPlugins=[];childBridges=[];showExitButton=!1;form=new ii({query:new ei("")});io;navigationSubscription;constructor(){}ngOnInit(){return y(this,null,function*(){this.io=this.$ws.connectToNamespace("child-bridges"),this.io.connected.subscribe(()=>y(this,null,function*(){this.getChildBridgeMetadata(),this.io.socket.emit("monitor-child-bridge-status"),this.loadInstalledPlugins().then(()=>{let e=this.$router.parseUrl(this.$router.url).queryParams.installed;if(e){let o=this.installedPlugins.find(i=>i.name===e);o&&!o.isConfigured&&this.$plugin.settings(o),this.$router.navigate(["/plugins"])}})})),this.io.socket.on("child-bridge-status-update",e=>{let o=this.childBridges.find(i=>i.username===e.username);o?Object.assign(o,e):this.childBridges.push(e)}),this.navigationSubscription=this.$router.events.subscribe(e=>{e instanceof fi&&this.loadInstalledPlugins()})})}loadInstalledPlugins(){return y(this,null,function*(){this.form.setValue({query:""}),this.showExitButton=!1,this.installedPlugins=[],this.loading=!0,this.mainError=!1;try{let e=yield I(this.$api.get("/plugins"));this.installedPlugins=e.filter(i=>i.name!=="homebridge-config-ui-x"),yield this.appendMetaInfo();let o=this.installedPlugins.sort((i,h)=>i.updateAvailable!==h.updateAvailable?i.updateAvailable?-1:1:i.newHbScope&&!h.newHbScope?-1:i.disabled!==h.disabled?i.disabled?1:-1:i.isConfigured!==h.isConfigured?i.isConfigured?1:-1:i.hasChildBridgesUnpaired!==h.hasChildBridgesUnpaired?i.hasChildBridgesUnpaired?-1:1:i.hasChildBridges!==h.hasChildBridges&&this.$settings.env.recommendChildBridges?i.hasChildBridges?1:-1:i.name.localeCompare(h.name));return this.loading=!1,o}catch(e){console.error(e),this.loading=!1,this.mainError=!0,this.$toastr.error(this.$translate.instant("plugins.toast_failed_to_load_plugins"),this.$translate.instant("toast.title_error"))}})}appendMetaInfo(){return y(this,null,function*(){yield Promise.all(this.installedPlugins.filter(e=>e.installedVersion).map(e=>y(this,null,function*(){try{let o=yield I(this.$api.get(`/config-editor/plugin/${encodeURIComponent(e.name)}`));e.isConfigured=o.length>0,e.isConfiguredDynamicPlatform=e.isConfigured&&Object.prototype.hasOwnProperty.call(o[0],"platform"),e.recommendChildBridge=e.isConfiguredDynamicPlatform&&this.$settings.env.recommendChildBridges&&this.$settings.env.serviceMode&&!["homebridge","homebridge-config-ui-x"].includes(e.name),e.hasChildBridges=e.isConfigured&&o.some(h=>h._bridge&&h._bridge.username);let i=this.getPluginChildBridges(e);e.hasChildBridgesUnpaired=i.some(h=>!h.paired)}catch{e.isConfigured=!0,e.hasChildBridges=!0}})))})}search(){this.installedPlugins=[],this.loading=!0,this.showExitButton=!0,this.$api.get(`/plugins/search/${encodeURIComponent(this.form.value.query)}`).subscribe({next:e=>{let o=new Set;this.installedPlugins=e.reduce((i,h)=>{if(h.name==="homebridge-config-ui-x"||o.has(h.name))return i;if(h.newHbScope){let M=h.newHbScope.to,S=e.some(ki=>ki.name===M);(h.installedVersion||!S)&&(o.add(M),i.push(h))}else i.push(h);return i},[]),this.appendMetaInfo(),this.loading=!1},error:e=>{this.loading=!1,this.isSearchMode=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error")),this.loadInstalledPlugins()}})}onClearSearch(){this.loadInstalledPlugins()}onSubmit({value:e}){e.query.length?(this.isSearchMode=!0,this.search()):this.isSearchMode&&(this.isSearchMode=!1,this.loadInstalledPlugins())}getChildBridgeMetadata(){this.io.request("get-homebridge-child-bridge-status").subscribe(e=>{this.childBridges=e})}getPluginChildBridges(e){return this.childBridges.filter(o=>o.plugin===e.name)}ngOnDestroy(){this.navigationSubscription&&this.navigationSubscription.unsubscribe(),this.io.end()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],decls:13,vars:10,consts:[[1,"row","mb-3"],[1,"col-12"],[1,"primary-text","m-0"],[1,"row"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","formControlName","query",1,"hb-npm-search",3,"placeholder"],["href","javascript:void(0)",1,"hb-npm-search-clear"],[1,"d-flex","flex-wrap","justify-content-between"],["href","javascript:void(0)",1,"hb-npm-search-clear",3,"click"],[1,"far","fa-fw","fa-times-circle"],[1,"hb-plugin-space-between"],[1,"alert","alert-info","mt-4","text-center","w-100"],[3,"plugin","childBridges"],[1,"fas","fa-fw","primary-text","my-3",2,"font-size","75px",3,"ngClass"]],template:function(o,i){o&1&&(x(0,Pe,1,0,"app-spinner"),a(1,"div",0)(2,"div",1)(3,"h3",2),g(4),c(5,"translate"),l()()(),a(6,"div",3)(7,"div",4)(8,"form",5),m("ngSubmit",function(){return i.onSubmit(i.form)}),d(9,"input",6),c(10,"translate"),x(11,Se,2,0,"a",7),l()()(),x(12,ke,4,1,"div",8)),o&2&&(s(i.loading?0:-1),t(4),P(u(5,6,"menu.label_plugins")),t(4),b("formGroup",i.form),t(),b("placeholder",u(10,8,"plugins.placeholder_search_plugin")),t(2),s(i.showExitButton?11:-1),t(),s(i.loading?-1:12))},dependencies:[bi,ai,ni,X,Y,Z,li,ti,oi,Bi,$,E],styles:[".hb-npm-search[_ngcontent-%COMP%]{outline:none;box-sizing:inherit!important;background-color:inherit;height:50px!important;width:100%;border-width:.5px;padding:10px;margin-bottom:15px}@media (hover: hover){.hb-npm-search[_ngcontent-%COMP%]:hover{border:1px solid #000000}}.hb-npm-search[_ngcontent-%COMP%]:focus{border:1px solid #000000;box-shadow:0 1px #000}.hb-npm-search-clear[_ngcontent-%COMP%]{position:absolute;right:25px;font-size:35px;color:#d0d0d0;line-height:50px;cursor:pointer}.hb-plugin-space-between[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(50% - 6.6666666667px)}@media only screen and (max-width: 991px){.hb-plugin-space-between[_ngcontent-%COMP%]{width:100%}}"]})}return n})();export{bn as a};
|
package/public/index.html
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
|
|
21
21
|
<body>
|
|
22
22
|
<app-root></app-root>
|
|
23
|
-
<link rel="modulepreload" href="chunk-
|
|
23
|
+
<link rel="modulepreload" href="chunk-OGC3GJBZ.js"><link rel="modulepreload" href="chunk-DOUEEOVC.js"><link rel="modulepreload" href="chunk-XKZJKXVQ.js"><link rel="modulepreload" href="chunk-S322LPDA.js"><link rel="modulepreload" href="chunk-OKRL3VMP.js"><link rel="modulepreload" href="chunk-JAASPYHI.js"><link rel="modulepreload" href="chunk-NHBL7UBX.js"><link rel="modulepreload" href="chunk-JJH3QVBP.js"><link rel="modulepreload" href="chunk-VBJCIX6P.js"><link rel="modulepreload" href="chunk-NSE4DDA3.js"><script src="polyfills-QPBMDKSH.js" type="module" crossorigin="use-credentials"></script><script src="main-OKD26Q2A.js" type="module" crossorigin="use-credentials"></script></body>
|
|
24
24
|
</html>
|