homebridge-config-ui-x 5.11.3-alpha.1 → 5.11.3-alpha.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/package.json +3 -3
  3. package/public/{chunk-YFNCUVEI.js → chunk-4NC4PSJ7.js} +1 -1
  4. package/public/{chunk-YJ5HOY3I.js → chunk-5XNBRMGA.js} +1 -1
  5. package/public/{chunk-A7I3F6VM.js → chunk-7XCVAW2G.js} +1 -1
  6. package/public/{chunk-32NDNER5.js → chunk-AFLFLGQ5.js} +1 -1
  7. package/public/{chunk-7QLJHGZP.js → chunk-AVPJEDKS.js} +1 -1
  8. package/public/{chunk-HKQEL7U2.js → chunk-B3IAPL26.js} +1 -1
  9. package/public/{chunk-ZVHTM6DM.js → chunk-D2IOPOL2.js} +1 -1
  10. package/public/{chunk-U2WI2FZ4.js → chunk-DNJMT5IB.js} +1 -1
  11. package/public/{chunk-Y7FSDK2M.js → chunk-DTRUHJOR.js} +1 -1
  12. package/public/{chunk-7KSAOZ43.js → chunk-E2DDIG2B.js} +1 -1
  13. package/public/{chunk-DZ5WXBSO.js → chunk-E3QGC6I6.js} +1 -1
  14. package/public/{chunk-IWRCPNRU.js → chunk-EVYPSR4S.js} +1 -1
  15. package/public/{chunk-7YHE57BG.js → chunk-FCQCMBCZ.js} +1 -1
  16. package/public/{chunk-A4ZS2ZV7.js → chunk-GCKUDYXC.js} +1 -1
  17. package/public/{chunk-P4CF57CZ.js → chunk-GRXPZYSY.js} +1 -1
  18. package/public/{chunk-CAD6JUA3.js → chunk-HOJV7W7M.js} +1 -1
  19. package/public/{chunk-NZVV3VL3.js → chunk-HV6G5U2L.js} +1 -1
  20. package/public/{chunk-C56IBUSB.js → chunk-IYVPEIVQ.js} +1 -1
  21. package/public/{chunk-BONPDDF5.js → chunk-JUT4BZEF.js} +1 -1
  22. package/public/{chunk-KC6LQGEK.js → chunk-KKOUVBF5.js} +1 -1
  23. package/public/{chunk-3E4PU33L.js → chunk-M7WJENG7.js} +1 -1
  24. package/public/{chunk-KMUWXL7U.js → chunk-MHJD6YZ5.js} +1 -1
  25. package/public/{chunk-ZAF7YOBQ.js → chunk-MQE7FRRO.js} +1 -1
  26. package/public/{chunk-GPBG7U46.js → chunk-MV6ICIYI.js} +1 -1
  27. package/public/{chunk-HBEWKE52.js → chunk-MYUW4SPR.js} +1 -1
  28. package/public/{chunk-U7KLEKPI.js → chunk-MZ2S3J3M.js} +1 -1
  29. package/public/{chunk-JMIJOLS7.js → chunk-NK75GL45.js} +1 -1
  30. package/public/{chunk-KFJ6GT5Q.js → chunk-NUQG6SIO.js} +1 -1
  31. package/public/{chunk-RIA2FG5A.js → chunk-NYXTMLJH.js} +1 -1
  32. package/public/{chunk-EHFG2H4D.js → chunk-OBVJDSVU.js} +1 -1
  33. package/public/{chunk-4ABU6N3H.js → chunk-QZB6TTVY.js} +1 -1
  34. package/public/{chunk-OOMAT63X.js → chunk-RG3XUJHC.js} +1 -1
  35. package/public/{chunk-GATBPIEG.js → chunk-RIJA26CS.js} +1 -1
  36. package/public/{chunk-4FZ3GUKQ.js → chunk-RLGQCFCS.js} +1 -1
  37. package/public/{chunk-CZRRB6ZR.js → chunk-RVPP753V.js} +1 -1
  38. package/public/{chunk-I7CNCOYK.js → chunk-RXHUYJ4P.js} +1 -1
  39. package/public/{chunk-AF7ECJS3.js → chunk-S5NGTQDU.js} +1 -1
  40. package/public/{chunk-WDYRCYM3.js → chunk-SAP5RU4C.js} +1 -1
  41. package/public/{chunk-MJ5OGYT7.js → chunk-SK5FIFZU.js} +1 -1
  42. package/public/{chunk-O2O2PDJ2.js → chunk-TEOW7IAR.js} +1 -1
  43. package/public/chunk-TJKFCW7V.js +1 -0
  44. package/public/{chunk-FXAP752F.js → chunk-TRTJISFW.js} +1 -1
  45. package/public/{chunk-73TYMS5H.js → chunk-V25CL2CP.js} +1 -1
  46. package/public/{chunk-G4GI3L7T.js → chunk-VSFZZFCD.js} +1 -1
  47. package/public/{chunk-H6VX6IW7.js → chunk-VTLI4BQR.js} +1 -1
  48. package/public/{chunk-EDDOJGFQ.js → chunk-VYCHZSA2.js} +1 -1
  49. package/public/{chunk-PXJLH4N2.js → chunk-WBEZVXLK.js} +1 -1
  50. package/public/{chunk-PQ4T252L.js → chunk-WGCV6EHX.js} +1 -1
  51. package/public/{chunk-TL5CE6F4.js → chunk-WYMKUB7X.js} +1 -1
  52. package/public/{chunk-QTMFWGK6.js → chunk-YMTERN3O.js} +1 -1
  53. package/public/{chunk-YWYTZGCS.js → chunk-YWG2542M.js} +1 -1
  54. package/public/{chunk-PY72N45K.js → chunk-Z76GUTYY.js} +1 -1
  55. package/public/{chunk-EK6CYJAE.js → chunk-ZV7D5MVO.js} +1 -1
  56. package/public/index.html +1 -1
  57. package/public/{main-2WYJV2X2.js → main-YYJTHNOR.js} +1 -1
  58. package/public/chunk-4FVYEHTQ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as jv}from"./chunk-73TYMS5H.js";import{a as ep,c as Iv,d as Pv,e as Ys,f as Av,g as rU,h as tp}from"./chunk-U7KLEKPI.js";import{a as wv}from"./chunk-JHD5MRCG.js";import{a as xv}from"./chunk-STRTFJ4I.js";import{a as zv}from"./chunk-PY72N45K.js";import{a as Hv,b as Sv,c as Cv}from"./chunk-SIVN6M76.js";import{a as pa}from"./chunk-V4JCOKHQ.js";import{a as Tv}from"./chunk-TMGK6CPZ.js";import{a as Gc,b as Ko}from"./chunk-NXNTFMYU.js";import{a as qo,b as Lo}from"./chunk-TGQIPKOK.js";import{a as kv}from"./chunk-EHFG2H4D.js";import{a as Fc,b as Vc,c as qc,d as Lc,e as Kc,f as $c,g as Vo,m as Ct,n as ki,o as hv,p as fv,q as bv,r as yv,s as vv,t as Pr}from"./chunk-54X33YUH.js";import{B as _v,C as gs,D as ga,a as rv,b as Sr,c as ro,e as Zt,f as ov,h as nv,i as av,j as lv,k as cv,l as Ji,m as dv,n as uv,o as gv,p as Cr,s as Fo,t as xr,u as Xg,v as Ir,w as pv,x as mv}from"./chunk-3PGUQRQW.js";import{a as zr}from"./chunk-GATBPIEG.js";import{e as Ts}from"./chunk-5ZHDYUXA.js";import{b as It}from"./chunk-CZRRB6ZR.js";import{k as it,l as xt,n as st,p as Tr,q as Ze}from"./chunk-EDDOJGFQ.js";import{$ as Wg,$b as re,Aa as Cs,Ab as na,Ac as ui,Bb as aa,Bc as ne,Ca as xs,Cb as la,Cc as kr,Da as Ky,Db as ca,E as My,Eb as da,Ec as us,Fa as Is,Fc as so,Ga as $y,Gc as Xy,H as Uy,Ha as Gy,Hc as ev,I as Ac,Ib as ie,J as Oy,La as Ue,Lb as Q,M as Gg,Ma as Wy,Mb as Nc,Nb as H,P as Bo,Pa as Yy,Pc as wi,Qa as m,Qc as Hr,R as Fy,Rb as Rc,Rc as Jt,Sa as Ri,Sb as Ec,Ta as fr,Tb as Bc,Ub as yr,Va as Zg,Vb as vr,Wb as Mc,Xb as vi,Ya as Mo,Yb as Ei,Yc as Oc,Za as Dc,Zb as _e,_a as oa,_b as j,_c as tv,a as fe,aa as jc,ab as Ps,ac as oe,ad as iv,b as Ge,ba as Yg,bc as wr,c as Ny,ca as ds,cc as Uc,da as Vy,db as ve,e as w,eb as br,ed as sv,fb as Ws,fc as nt,g as ot,gb as Jy,gc as at,h as ge,ha as Jg,hc as lt,i as eo,ia as gt,ic as Zy,ja as hr,jb as Ie,jc as Uo,k as to,kc as tt,la as Gs,lc as ci,ma as qy,mc as ua,n as Ee,na as A,nc as di,o as Tc,ob as Qg,oc as Oo,p as $g,pb as pe,pc as Qy,qa as Ly,qb as O,r as Ry,rb as F,rc as N,s as Ey,sa as J,sc as M,ta as Z,tb as ni,tc as St,ub as ai,vb as li,w as By,wa as ra,wb as x,x as je,xa as io,xb as b,y as zc,yb as f,zb as B}from"./chunk-ZRDN4L2J.js";var Ov=w(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.formatNames=As.fastFormats=As.fullFormats=void 0;function zs(e,i){return{validate:e,compare:i}}As.fullFormats={date:zs(Ev,op),time:zs(sp(!0),np),"date-time":zs(Dv(!0),Mv),"iso-time":zs(sp(),Bv),"iso-date-time":zs(Dv(),Uv),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:dU,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[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{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:fU,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:uU,int32:{type:"number",validate:mU},int64:{type:"number",validate:_U},float:{type:"number",validate:Rv},double:{type:"number",validate:Rv},password:!0,binary:!0};As.fastFormats=Ge(fe({},As.fullFormats),{date:zs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,op),time:zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,np),"date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Mv),"iso-time":zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Bv),"iso-date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Uv),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});As.formatNames=Object.keys(As.fullFormats);function oU(e){return e%4===0&&(e%100!==0||e%400===0)}var nU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,aU=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Ev(e){let i=nU.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],r=+i[3];return s>=1&&s<=12&&r>=1&&r<=(s===2&&oU(t)?29:aU[s])}function op(e,i){if(e&&i)return e>i?1:e<i?-1:0}var ip=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sp(e){return function(t){let s=ip.exec(t);if(!s)return!1;let r=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),_=+(s[7]||0);if(p>23||_>59||e&&!c)return!1;if(r<=23&&n<=59&&l<60)return!0;let v=n-_*u,S=r-p*u-(v<0?1:0);return(S===23||S===-1)&&(v===59||v===-1)&&l<61}}function np(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function Bv(e,i){if(!(e&&i))return;let t=ip.exec(e),s=ip.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var rp=/t|\s/i;function Dv(e){let i=sp(e);return function(s){let r=s.split(rp);return r.length===2&&Ev(r[0])&&i(r[1])}}function Mv(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function Uv(e,i){if(!(e&&i))return;let[t,s]=e.split(rp),[r,n]=i.split(rp),l=op(t,r);if(l!==void 0)return l||np(s,n)}var lU=/\/|:/,cU=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a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.test(e)&&cU.test(e)}var Nv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function uU(e){return Nv.lastIndex=0,Nv.test(e)}var gU=-(2**31),pU=2**31-1;function mU(e){return Number.isInteger(e)&&e<=pU&&e>=gU}function _U(e){return Number.isInteger(e)}function Rv(){return!0}var hU=/[^\\]\\Z/;function fU(e){if(hU.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ha=w(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.regexpCode=Ye.getEsmExportName=Ye.getProperty=Ye.safeStringify=Ye.stringify=Ye.strConcat=Ye.addCodeArg=Ye.str=Ye._=Ye.nil=Ye._Code=Ye.Name=Ye.IDENTIFIER=Ye._CodeOrName=void 0;var ma=class{};Ye._CodeOrName=ma;Ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var oo=class extends ma{constructor(i){if(super(),!Ye.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ye.Name=oo;var Zi=class extends ma{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof oo&&(t[s.str]=(t[s.str]||0)+1),t),{})}};Ye._Code=Zi;Ye.nil=new Zi("");function Fv(e,...i){let t=[e[0]],s=0;for(;s<i.length;)lp(t,i[s]),t.push(e[++s]);return new Zi(t)}Ye._=Fv;var ap=new Zi("+");function Vv(e,...i){let t=[_a(e[0])],s=0;for(;s<i.length;)t.push(ap),lp(t,i[s]),t.push(ap,_a(e[++s]));return bU(t),new Zi(t)}Ye.str=Vv;function lp(e,i){i instanceof Zi?e.push(...i._items):i instanceof oo?e.push(i):e.push(wU(i))}Ye.addCodeArg=lp;function bU(e){let i=1;for(;i<e.length-1;){if(e[i]===ap){let t=yU(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function yU(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof oo||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof oo))return`"${e}${i.slice(1)}`}function vU(e,i){return i.emptyStr()?e:e.emptyStr()?i:Vv`${e}${i}`}Ye.strConcat=vU;function wU(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:_a(Array.isArray(e)?e.join(","):e)}function kU(e){return new Zi(_a(e))}Ye.stringify=kU;function _a(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ye.safeStringify=_a;function HU(e){return typeof e=="string"&&Ye.IDENTIFIER.test(e)?new Zi(`.${e}`):Fv`[${e}]`}Ye.getProperty=HU;function SU(e){if(typeof e=="string"&&Ye.IDENTIFIER.test(e))return new Zi(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ye.getEsmExportName=SU;function CU(e){return new Zi(e.toString())}Ye.regexpCode=CU});var up=w(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ValueScope=Si.ValueScopeName=Si.Scope=Si.varKinds=Si.UsedValueState=void 0;var Hi=ha(),cp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},Wc=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(Wc||(Si.UsedValueState=Wc={}));Si.varKinds={const:new Hi.Name("const"),let:new Hi.Name("let"),var:new Hi.Name("var")};var Yc=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof Hi.Name?i:this.name(i)}name(i){return new Hi.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Si.Scope=Yc;var Jc=class extends Hi.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,Hi._)`.${new Hi.Name(t)}[${s}]`}};Si.ValueScopeName=Jc;var xU=(0,Hi._)`\n`,dp=class extends Yc{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=Ge(fe({},i),{_n:i.lines?xU:Hi.nil})}get(){return this._scope}name(i){return new Jc(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let r=this.toName(i),{prefix:n}=r,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let _=c.get(l);if(_)return _}else c=this._values[n]=new Map;c.set(l,r);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,r.setValue(t,{property:n,itemIndex:p}),r}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Hi._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,r=>{if(r.value===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return r.value.code},t,s)}_reduceValues(i,t,s={},r){let n=Hi.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,Wc.Started);let _=t(p);if(_){let v=this.opts.es5?Si.varKinds.var:Si.varKinds.const;n=(0,Hi._)`${n}${v} ${p} = ${_};${this.opts._n}`}else if(_=r?.(p))n=(0,Hi._)`${n}${_}${this.opts._n}`;else throw new cp(p);u.set(p,Wc.Completed)})}return n}};Si.ValueScope=dp});var we=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.regexpCode=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var $e=ha(),ps=up(),Ar=ha();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Ar._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Ar.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Ar.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Ar.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Ar.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Ar.stringify}});Object.defineProperty(Oe,"regexpCode",{enumerable:!0,get:function(){return Ar.regexpCode}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Ar.Name}});var td=up();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return td.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return td.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return td.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return td.varKinds}});Oe.operators={GT:new $e._Code(">"),GTE:new $e._Code(">="),LT:new $e._Code("<"),LTE:new $e._Code("<="),EQ:new $e._Code("==="),NEQ:new $e._Code("!=="),NOT:new $e._Code("!"),OR:new $e._Code("||"),AND:new $e._Code("&&"),ADD:new $e._Code("+")};var Js=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},gp=class extends Js{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?ps.varKinds.var:this.varKind,r=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${r};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Go(this.rhs,i,t)),this}get names(){return this.rhs instanceof $e._CodeOrName?this.rhs.names:{}}},Qc=class extends Js{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof $e.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=Go(this.rhs,i,t),this}get names(){let i=this.lhs instanceof $e.Name?{}:fe({},this.lhs.names);return ed(i,this.rhs)}},pp=class extends Qc{constructor(i,t,s,r){super(i,s,r),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},mp=class extends Js{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},_p=class extends Js{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},hp=class extends Js{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},fp=class extends Js{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=Go(this.code,i,t),this}get names(){return this.code instanceof $e._CodeOrName?this.code.names:{}}},fa=class extends Js{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,r=s.length;for(;r--;){let n=s[r];n.optimizeNames(i,t)||(IU(i,n.names),s.splice(r,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>no(i,t.names),{})}},Zs=class extends fa{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},bp=class extends fa{},yp=(()=>{class e extends Zs{}return e.kind="else",e})(),Zc=(()=>{class e extends Zs{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let r=s.optimizeNodes();s=this.else=Array.isArray(r)?new yp(r):r}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Gv(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Go(this.condition,t,s),this}get names(){let t=super.names;return ed(t,this.condition),this.else&&no(t,this.else.names),t}}return e.kind="if",e})(),id=(()=>{class e extends Zs{}return e.kind="for",e})(),vp=class extends id{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=Go(this.iteration,i,t),this}get names(){return no(super.names,this.iteration.names)}},wp=class extends id{constructor(i,t,s,r){super(),this.varKind=i,this.name=t,this.from=s,this.to=r}render(i){let t=i.es5?ps.varKinds.var:this.varKind,{name:s,from:r,to:n}=this;return`for(${t} ${s}=${r}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=ed(super.names,this.from);return ed(i,this.to)}},Xc=class extends id{constructor(i,t,s,r){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=r}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=Go(this.iterable,i,t),this}get names(){return no(super.names,this.iterable.names)}},qv=(()=>{class e extends Zs{constructor(t,s,r){super(),this.name=t,this.args=s,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Lv=(()=>{class e extends fa{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),kp=class extends Zs{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,r;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(r=this.finally)===null||r===void 0||r.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&no(i,this.catch.names),this.finally&&no(i,this.finally.names),i}},Kv=(()=>{class e extends Zs{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),$v=(()=>{class e extends Zs{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Hp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ge(fe({},t),{_n:t.lines?`
1
+ import{a as jv}from"./chunk-V25CL2CP.js";import{a as ep,c as Iv,d as Pv,e as Ys,f as Av,g as rU,h as tp}from"./chunk-MZ2S3J3M.js";import{a as wv}from"./chunk-JHD5MRCG.js";import{a as xv}from"./chunk-STRTFJ4I.js";import{a as zv}from"./chunk-Z76GUTYY.js";import{a as Hv,b as Sv,c as Cv}from"./chunk-SIVN6M76.js";import{a as pa}from"./chunk-V4JCOKHQ.js";import{a as Tv}from"./chunk-TMGK6CPZ.js";import{a as Gc,b as Ko}from"./chunk-NXNTFMYU.js";import{a as qo,b as Lo}from"./chunk-TGQIPKOK.js";import{a as kv}from"./chunk-OBVJDSVU.js";import{a as Fc,b as Vc,c as qc,d as Lc,e as Kc,f as $c,g as Vo,m as Ct,n as ki,o as hv,p as fv,q as bv,r as yv,s as vv,t as Pr}from"./chunk-54X33YUH.js";import{B as _v,C as gs,D as ga,a as rv,b as Sr,c as ro,e as Zt,f as ov,h as nv,i as av,j as lv,k as cv,l as Ji,m as dv,n as uv,o as gv,p as Cr,s as Fo,t as xr,u as Xg,v as Ir,w as pv,x as mv}from"./chunk-3PGUQRQW.js";import{a as zr}from"./chunk-RIJA26CS.js";import{e as Ts}from"./chunk-5ZHDYUXA.js";import{b as It}from"./chunk-RVPP753V.js";import{k as it,l as xt,n as st,p as Tr,q as Ze}from"./chunk-VYCHZSA2.js";import{$ as Wg,$b as re,Aa as Cs,Ab as na,Ac as ui,Bb as aa,Bc as ne,Ca as xs,Cb as la,Cc as kr,Da as Ky,Db as ca,E as My,Eb as da,Ec as us,Fa as Is,Fc as so,Ga as $y,Gc as Xy,H as Uy,Ha as Gy,Hc as ev,I as Ac,Ib as ie,J as Oy,La as Ue,Lb as Q,M as Gg,Ma as Wy,Mb as Nc,Nb as H,P as Bo,Pa as Yy,Pc as wi,Qa as m,Qc as Hr,R as Fy,Rb as Rc,Rc as Jt,Sa as Ri,Sb as Ec,Ta as fr,Tb as Bc,Ub as yr,Va as Zg,Vb as vr,Wb as Mc,Xb as vi,Ya as Mo,Yb as Ei,Yc as Oc,Za as Dc,Zb as _e,_a as oa,_b as j,_c as tv,a as fe,aa as jc,ab as Ps,ac as oe,ad as iv,b as Ge,ba as Yg,bc as wr,c as Ny,ca as ds,cc as Uc,da as Vy,db as ve,e as w,eb as br,ed as sv,fb as Ws,fc as nt,g as ot,gb as Jy,gc as at,h as ge,ha as Jg,hc as lt,i as eo,ia as gt,ic as Zy,ja as hr,jb as Ie,jc as Uo,k as to,kc as tt,la as Gs,lc as ci,ma as qy,mc as ua,n as Ee,na as A,nc as di,o as Tc,ob as Qg,oc as Oo,p as $g,pb as pe,pc as Qy,qa as Ly,qb as O,r as Ry,rb as F,rc as N,s as Ey,sa as J,sc as M,ta as Z,tb as ni,tc as St,ub as ai,vb as li,w as By,wa as ra,wb as x,x as je,xa as io,xb as b,y as zc,yb as f,zb as B}from"./chunk-ZRDN4L2J.js";var Ov=w(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.formatNames=As.fastFormats=As.fullFormats=void 0;function zs(e,i){return{validate:e,compare:i}}As.fullFormats={date:zs(Ev,op),time:zs(sp(!0),np),"date-time":zs(Dv(!0),Mv),"iso-time":zs(sp(),Bv),"iso-date-time":zs(Dv(),Uv),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:dU,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[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1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:fU,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:uU,int32:{type:"number",validate:mU},int64:{type:"number",validate:_U},float:{type:"number",validate:Rv},double:{type:"number",validate:Rv},password:!0,binary:!0};As.fastFormats=Ge(fe({},As.fullFormats),{date:zs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,op),time:zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,np),"date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Mv),"iso-time":zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Bv),"iso-date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Uv),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});As.formatNames=Object.keys(As.fullFormats);function oU(e){return e%4===0&&(e%100!==0||e%400===0)}var nU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,aU=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Ev(e){let i=nU.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],r=+i[3];return s>=1&&s<=12&&r>=1&&r<=(s===2&&oU(t)?29:aU[s])}function op(e,i){if(e&&i)return e>i?1:e<i?-1:0}var ip=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sp(e){return function(t){let s=ip.exec(t);if(!s)return!1;let r=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),_=+(s[7]||0);if(p>23||_>59||e&&!c)return!1;if(r<=23&&n<=59&&l<60)return!0;let v=n-_*u,S=r-p*u-(v<0?1:0);return(S===23||S===-1)&&(v===59||v===-1)&&l<61}}function np(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function Bv(e,i){if(!(e&&i))return;let t=ip.exec(e),s=ip.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var rp=/t|\s/i;function Dv(e){let i=sp(e);return function(s){let r=s.split(rp);return r.length===2&&Ev(r[0])&&i(r[1])}}function Mv(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function Uv(e,i){if(!(e&&i))return;let[t,s]=e.split(rp),[r,n]=i.split(rp),l=op(t,r);if(l!==void 0)return l||np(s,n)}var lU=/\/|:/,cU=/^(?:[a-z][a-z0-9+\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-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function dU(e){return lU.test(e)&&cU.test(e)}var Nv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function uU(e){return Nv.lastIndex=0,Nv.test(e)}var gU=-(2**31),pU=2**31-1;function mU(e){return Number.isInteger(e)&&e<=pU&&e>=gU}function _U(e){return Number.isInteger(e)}function Rv(){return!0}var hU=/[^\\]\\Z/;function fU(e){if(hU.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ha=w(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.regexpCode=Ye.getEsmExportName=Ye.getProperty=Ye.safeStringify=Ye.stringify=Ye.strConcat=Ye.addCodeArg=Ye.str=Ye._=Ye.nil=Ye._Code=Ye.Name=Ye.IDENTIFIER=Ye._CodeOrName=void 0;var ma=class{};Ye._CodeOrName=ma;Ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var oo=class extends ma{constructor(i){if(super(),!Ye.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ye.Name=oo;var Zi=class extends ma{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof oo&&(t[s.str]=(t[s.str]||0)+1),t),{})}};Ye._Code=Zi;Ye.nil=new Zi("");function Fv(e,...i){let t=[e[0]],s=0;for(;s<i.length;)lp(t,i[s]),t.push(e[++s]);return new Zi(t)}Ye._=Fv;var ap=new Zi("+");function Vv(e,...i){let t=[_a(e[0])],s=0;for(;s<i.length;)t.push(ap),lp(t,i[s]),t.push(ap,_a(e[++s]));return bU(t),new Zi(t)}Ye.str=Vv;function lp(e,i){i instanceof Zi?e.push(...i._items):i instanceof oo?e.push(i):e.push(wU(i))}Ye.addCodeArg=lp;function bU(e){let i=1;for(;i<e.length-1;){if(e[i]===ap){let t=yU(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function yU(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof oo||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof oo))return`"${e}${i.slice(1)}`}function vU(e,i){return i.emptyStr()?e:e.emptyStr()?i:Vv`${e}${i}`}Ye.strConcat=vU;function wU(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:_a(Array.isArray(e)?e.join(","):e)}function kU(e){return new Zi(_a(e))}Ye.stringify=kU;function _a(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ye.safeStringify=_a;function HU(e){return typeof e=="string"&&Ye.IDENTIFIER.test(e)?new Zi(`.${e}`):Fv`[${e}]`}Ye.getProperty=HU;function SU(e){if(typeof e=="string"&&Ye.IDENTIFIER.test(e))return new Zi(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ye.getEsmExportName=SU;function CU(e){return new Zi(e.toString())}Ye.regexpCode=CU});var up=w(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ValueScope=Si.ValueScopeName=Si.Scope=Si.varKinds=Si.UsedValueState=void 0;var Hi=ha(),cp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},Wc=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(Wc||(Si.UsedValueState=Wc={}));Si.varKinds={const:new Hi.Name("const"),let:new Hi.Name("let"),var:new Hi.Name("var")};var Yc=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof Hi.Name?i:this.name(i)}name(i){return new Hi.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Si.Scope=Yc;var Jc=class extends Hi.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,Hi._)`.${new Hi.Name(t)}[${s}]`}};Si.ValueScopeName=Jc;var xU=(0,Hi._)`\n`,dp=class extends Yc{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=Ge(fe({},i),{_n:i.lines?xU:Hi.nil})}get(){return this._scope}name(i){return new Jc(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let r=this.toName(i),{prefix:n}=r,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let _=c.get(l);if(_)return _}else c=this._values[n]=new Map;c.set(l,r);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,r.setValue(t,{property:n,itemIndex:p}),r}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Hi._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,r=>{if(r.value===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return r.value.code},t,s)}_reduceValues(i,t,s={},r){let n=Hi.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,Wc.Started);let _=t(p);if(_){let v=this.opts.es5?Si.varKinds.var:Si.varKinds.const;n=(0,Hi._)`${n}${v} ${p} = ${_};${this.opts._n}`}else if(_=r?.(p))n=(0,Hi._)`${n}${_}${this.opts._n}`;else throw new cp(p);u.set(p,Wc.Completed)})}return n}};Si.ValueScope=dp});var we=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.regexpCode=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var $e=ha(),ps=up(),Ar=ha();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Ar._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Ar.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Ar.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Ar.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Ar.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Ar.stringify}});Object.defineProperty(Oe,"regexpCode",{enumerable:!0,get:function(){return Ar.regexpCode}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Ar.Name}});var td=up();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return td.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return td.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return td.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return td.varKinds}});Oe.operators={GT:new $e._Code(">"),GTE:new $e._Code(">="),LT:new $e._Code("<"),LTE:new $e._Code("<="),EQ:new $e._Code("==="),NEQ:new $e._Code("!=="),NOT:new $e._Code("!"),OR:new $e._Code("||"),AND:new $e._Code("&&"),ADD:new $e._Code("+")};var Js=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},gp=class extends Js{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?ps.varKinds.var:this.varKind,r=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${r};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Go(this.rhs,i,t)),this}get names(){return this.rhs instanceof $e._CodeOrName?this.rhs.names:{}}},Qc=class extends Js{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof $e.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=Go(this.rhs,i,t),this}get names(){let i=this.lhs instanceof $e.Name?{}:fe({},this.lhs.names);return ed(i,this.rhs)}},pp=class extends Qc{constructor(i,t,s,r){super(i,s,r),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},mp=class extends Js{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},_p=class extends Js{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},hp=class extends Js{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},fp=class extends Js{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=Go(this.code,i,t),this}get names(){return this.code instanceof $e._CodeOrName?this.code.names:{}}},fa=class extends Js{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,r=s.length;for(;r--;){let n=s[r];n.optimizeNames(i,t)||(IU(i,n.names),s.splice(r,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>no(i,t.names),{})}},Zs=class extends fa{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},bp=class extends fa{},yp=(()=>{class e extends Zs{}return e.kind="else",e})(),Zc=(()=>{class e extends Zs{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let r=s.optimizeNodes();s=this.else=Array.isArray(r)?new yp(r):r}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Gv(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Go(this.condition,t,s),this}get names(){let t=super.names;return ed(t,this.condition),this.else&&no(t,this.else.names),t}}return e.kind="if",e})(),id=(()=>{class e extends Zs{}return e.kind="for",e})(),vp=class extends id{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=Go(this.iteration,i,t),this}get names(){return no(super.names,this.iteration.names)}},wp=class extends id{constructor(i,t,s,r){super(),this.varKind=i,this.name=t,this.from=s,this.to=r}render(i){let t=i.es5?ps.varKinds.var:this.varKind,{name:s,from:r,to:n}=this;return`for(${t} ${s}=${r}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=ed(super.names,this.from);return ed(i,this.to)}},Xc=class extends id{constructor(i,t,s,r){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=r}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=Go(this.iterable,i,t),this}get names(){return no(super.names,this.iterable.names)}},qv=(()=>{class e extends Zs{constructor(t,s,r){super(),this.name=t,this.args=s,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Lv=(()=>{class e extends fa{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),kp=class extends Zs{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,r;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(r=this.finally)===null||r===void 0||r.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&no(i,this.catch.names),this.finally&&no(i,this.finally.names),i}},Kv=(()=>{class e extends Zs{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),$v=(()=>{class e extends Zs{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Hp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ge(fe({},t),{_n:t.lines?`
2
2
  `:""}),this._extScope=i,this._scope=new ps.Scope({parent:i}),this._nodes=[new bp]}toString(){return this._root.render(this.opts)}name(i){return this._scope.name(i)}scopeName(i){return this._extScope.name(i)}scopeValue(i,t){let s=this._extScope.value(i,t);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(i,t){return this._extScope.getValue(i,t)}scopeRefs(i){return this._extScope.scopeRefs(i,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(i,t,s,r){let n=this._scope.toName(t);return s!==void 0&&r&&(this._constants[n.str]=s),this._leafNode(new gp(i,n,s)),n}const(i,t,s){return this._def(ps.varKinds.const,i,t,s)}let(i,t,s){return this._def(ps.varKinds.let,i,t,s)}var(i,t,s){return this._def(ps.varKinds.var,i,t,s)}assign(i,t,s){return this._leafNode(new Qc(i,t,s))}add(i,t){return this._leafNode(new pp(i,Oe.operators.ADD,t))}code(i){return typeof i=="function"?i():i!==$e.nil&&this._leafNode(new fp(i)),this}object(...i){let t=["{"];for(let[s,r]of i)t.length>1&&t.push(","),t.push(s),(s!==r||this.opts.es5)&&(t.push(":"),(0,$e.addCodeArg)(t,r));return t.push("}"),new $e._Code(t)}if(i,t,s){if(this._blockNode(new Zc(i)),t&&s)this.code(t).else().code(s).endIf();else if(t)this.code(t).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(i){return this._elseNode(new Zc(i))}else(){return this._elseNode(new yp)}endIf(){return this._endBlockNode(Zc,yp)}_for(i,t){return this._blockNode(i),t&&this.code(t).endFor(),this}for(i,t){return this._for(new vp(i),t)}forRange(i,t,s,r,n=this.opts.es5?ps.varKinds.var:ps.varKinds.let){let l=this._scope.toName(i);return this._for(new wp(n,l,t,s),()=>r(l))}forOf(i,t,s,r=ps.varKinds.const){let n=this._scope.toName(i);if(this.opts.es5){let l=t instanceof $e.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,$e._)`${l}.length`,c=>{this.var(n,(0,$e._)`${l}[${c}]`),s(n)})}return this._for(new Xc("of",r,n,t),()=>s(n))}forIn(i,t,s,r=this.opts.es5?ps.varKinds.var:ps.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,(0,$e._)`Object.keys(${t})`,s);let n=this._scope.toName(i);return this._for(new Xc("in",r,n,t),()=>s(n))}endFor(){return this._endBlockNode(id)}label(i){return this._leafNode(new mp(i))}break(i){return this._leafNode(new _p(i))}return(i){let t=new Lv;if(this._blockNode(t),this.code(i),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Lv)}try(i,t,s){if(!t&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let r=new kp;if(this._blockNode(r),this.code(i),t){let n=this.name("e");this._currNode=r.catch=new Kv(n),t(n)}return s&&(this._currNode=r.finally=new $v,this.code(s)),this._endBlockNode(Kv,$v)}throw(i){return this._leafNode(new hp(i))}block(i,t){return this._blockStarts.push(this._nodes.length),i&&this.code(i).endBlock(t),this}endBlock(i){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-t;if(s<0||i!==void 0&&s!==i)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${i} expected`);return this._nodes.length=t,this}func(i,t=$e.nil,s,r){return this._blockNode(new qv(i,t,s)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(qv)}optimize(i=1){for(;i-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(i){return this._currNode.nodes.push(i),this}_blockNode(i){this._currNode.nodes.push(i),this._nodes.push(i)}_endBlockNode(i,t){let s=this._currNode;if(s instanceof i||t&&s instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${i.kind}/${t.kind}`:i.kind}"`)}_elseNode(i){let t=this._currNode;if(!(t instanceof Zc))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=i,this}get _root(){return this._nodes[0]}get _currNode(){let i=this._nodes;return i[i.length-1]}set _currNode(i){let t=this._nodes;t[t.length-1]=i}};Oe.CodeGen=Hp;function no(e,i){for(let t in i)e[t]=(e[t]||0)+(i[t]||0);return e}function ed(e,i){return i instanceof $e._CodeOrName?no(e,i.names):e}function Go(e,i,t){if(e instanceof $e.Name)return s(e);if(!r(e))return e;return new $e._Code(e._items.reduce((n,l)=>(l instanceof $e.Name&&(l=s(l)),l instanceof $e._Code?n.push(...l._items):n.push(l),n),[]));function s(n){let l=t[n.str];return l===void 0||i[n.str]!==1?n:(delete i[n.str],l)}function r(n){return n instanceof $e._Code&&n._items.some(l=>l instanceof $e.Name&&i[l.str]===1&&t[l.str]!==void 0)}}function IU(e,i){for(let t in i)e[t]=(e[t]||0)-(i[t]||0)}function Gv(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,$e._)`!${Sp(e)}`}Oe.not=Gv;var PU=Wv(Oe.operators.AND);function TU(...e){return e.reduce(PU)}Oe.and=TU;var zU=Wv(Oe.operators.OR);function AU(...e){return e.reduce(zU)}Oe.or=AU;function Wv(e){return(i,t)=>i===$e.nil?t:t===$e.nil?i:(0,$e._)`${Sp(i)} ${e} ${Sp(t)}`}function Sp(e){return e instanceof $e.Name?e:(0,$e._)`(${e})`}});var qe=w(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 pt=we(),jU=ha();function DU(e){let i={};for(let t of e)i[t]=!0;return i}Fe.toHash=DU;function NU(e,i){return typeof i=="boolean"?i:Object.keys(i).length===0?!0:(Zv(e,i),!Qv(i,e.self.RULES.all))}Fe.alwaysValidSchema=NU;function Zv(e,i=e.schema){let{opts:t,self:s}=e;if(!t.strictSchema||typeof i=="boolean")return;let r=s.RULES.keywords;for(let n in i)r[n]||tw(e,`unknown keyword: "${n}"`)}Fe.checkUnknownRules=Zv;function Qv(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(i[t])return!0;return!1}Fe.schemaHasRules=Qv;function RU(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&i.all[t])return!0;return!1}Fe.schemaHasRulesButRef=RU;function EU({topSchemaRef:e,schemaPath:i},t,s,r){if(!r){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,pt._)`${t}`}return(0,pt._)`${e}${i}${(0,pt.getProperty)(s)}`}Fe.schemaRefOrVal=EU;function BU(e){return Xv(decodeURIComponent(e))}Fe.unescapeFragment=BU;function MU(e){return encodeURIComponent(xp(e))}Fe.escapeFragment=MU;function xp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Fe.escapeJsonPointer=xp;function Xv(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Fe.unescapeJsonPointer=Xv;function UU(e,i){if(Array.isArray(e))for(let t of e)i(t);else i(e)}Fe.eachItem=UU;function Yv({mergeNames:e,mergeToName:i,mergeValues:t,resultToName:s}){return(r,n,l,c)=>{let u=l===void 0?n:l instanceof pt.Name?(n instanceof pt.Name?e(r,n,l):i(r,n,l),l):n instanceof pt.Name?(i(r,l,n),n):t(n,l);return c===pt.Name&&!(u instanceof pt.Name)?s(r,u):u}}Fe.mergeEvaluated={props:Yv({mergeNames:(e,i,t)=>e.if((0,pt._)`${t} !== true && ${i} !== undefined`,()=>{e.if((0,pt._)`${i} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,pt._)`${t} || {}`).code((0,pt._)`Object.assign(${t}, ${i})`))}),mergeToName:(e,i,t)=>e.if((0,pt._)`${t} !== true`,()=>{i===!0?e.assign(t,!0):(e.assign(t,(0,pt._)`${t} || {}`),Ip(e,t,i))}),mergeValues:(e,i)=>e===!0?!0:fe(fe({},e),i),resultToName:ew}),items:Yv({mergeNames:(e,i,t)=>e.if((0,pt._)`${t} !== true && ${i} !== undefined`,()=>e.assign(t,(0,pt._)`${i} === true ? true : ${t} > ${i} ? ${t} : ${i}`)),mergeToName:(e,i,t)=>e.if((0,pt._)`${t} !== true`,()=>e.assign(t,i===!0?!0:(0,pt._)`${t} > ${i} ? ${t} : ${i}`)),mergeValues:(e,i)=>e===!0?!0:Math.max(e,i),resultToName:(e,i)=>e.var("items",i)})};function ew(e,i){if(i===!0)return e.var("props",!0);let t=e.var("props",(0,pt._)`{}`);return i!==void 0&&Ip(e,t,i),t}Fe.evaluatedPropsToName=ew;function Ip(e,i,t){Object.keys(t).forEach(s=>e.assign((0,pt._)`${i}${(0,pt.getProperty)(s)}`,!0))}Fe.setEvaluated=Ip;var Jv={};function OU(e,i){return e.scopeValue("func",{ref:i,code:Jv[i.code]||(Jv[i.code]=new jU._Code(i.code))})}Fe.useFunc=OU;var Cp=(function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e})(Cp||(Fe.Type=Cp={}));function FU(e,i,t){if(e instanceof pt.Name){let s=i===Cp.Num;return t?s?(0,pt._)`"[" + ${e} + "]"`:(0,pt._)`"['" + ${e} + "']"`:s?(0,pt._)`"/" + ${e}`:(0,pt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,pt.getProperty)(e).toString():"/"+xp(e)}Fe.getErrorPath=FU;function tw(e,i,t=e.opts.strictSchema){if(t){if(i=`strict mode: ${i}`,t===!0)throw new Error(i);e.self.logger.warn(i)}}Fe.checkStrictMode=tw});var Qi=w(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var Qt=we(),VU={data:new Qt.Name("data"),valCxt:new Qt.Name("valCxt"),instancePath:new Qt.Name("instancePath"),parentData:new Qt.Name("parentData"),parentDataProperty:new Qt.Name("parentDataProperty"),rootData:new Qt.Name("rootData"),dynamicAnchors:new Qt.Name("dynamicAnchors"),vErrors:new Qt.Name("vErrors"),errors:new Qt.Name("errors"),this:new Qt.Name("this"),self:new Qt.Name("self"),scope:new Qt.Name("scope"),json:new Qt.Name("json"),jsonPos:new Qt.Name("jsonPos"),jsonLen:new Qt.Name("jsonLen"),jsonPart:new Qt.Name("jsonPart")};Pp.default=VU});var ba=w(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.extendErrors=Xt.resetErrorsCount=Xt.reportExtraError=Xt.reportError=Xt.keyword$DataError=Xt.keywordError=void 0;var We=we(),sd=qe(),gi=Qi();Xt.keywordError={message:({keyword:e})=>(0,We.str)`must pass "${e}" keyword validation`};Xt.keyword$DataError={message:({keyword:e,schemaType:i})=>i?(0,We.str)`"${e}" keyword must be ${i} ($data)`:(0,We.str)`"${e}" keyword is invalid ($data)`};function qU(e,i=Xt.keywordError,t,s){let{it:r}=e,{gen:n,compositeRule:l,allErrors:c}=r,u=rw(e,i,t);s??(l||c)?iw(n,u):sw(r,(0,We._)`[${u}]`)}Xt.reportError=qU;function LU(e,i=Xt.keywordError,t){let{it:s}=e,{gen:r,compositeRule:n,allErrors:l}=s,c=rw(e,i,t);iw(r,c),n||l||sw(s,gi.default.vErrors)}Xt.reportExtraError=LU;function KU(e,i){e.assign(gi.default.errors,i),e.if((0,We._)`${gi.default.vErrors} !== null`,()=>e.if(i,()=>e.assign((0,We._)`${gi.default.vErrors}.length`,i),()=>e.assign(gi.default.vErrors,null)))}Xt.resetErrorsCount=KU;function $U({gen:e,keyword:i,schemaValue:t,data:s,errsCount:r,it:n}){if(r===void 0)throw new Error("ajv implementation error");let l=e.name("err");e.forRange("i",r,gi.default.errors,c=>{e.const(l,(0,We._)`${gi.default.vErrors}[${c}]`),e.if((0,We._)`${l}.instancePath === undefined`,()=>e.assign((0,We._)`${l}.instancePath`,(0,We.strConcat)(gi.default.instancePath,n.errorPath))),e.assign((0,We._)`${l}.schemaPath`,(0,We.str)`${n.errSchemaPath}/${i}`),n.opts.verbose&&(e.assign((0,We._)`${l}.schema`,t),e.assign((0,We._)`${l}.data`,s))})}Xt.extendErrors=$U;function iw(e,i){let t=e.const("err",i);e.if((0,We._)`${gi.default.vErrors} === null`,()=>e.assign(gi.default.vErrors,(0,We._)`[${t}]`),(0,We._)`${gi.default.vErrors}.push(${t})`),e.code((0,We._)`${gi.default.errors}++`)}function sw(e,i){let{gen:t,validateName:s,schemaEnv:r}=e;r.$async?t.throw((0,We._)`new ${e.ValidationError}(${i})`):(t.assign((0,We._)`${s}.errors`,i),t.return(!1))}var ao={keyword:new We.Name("keyword"),schemaPath:new We.Name("schemaPath"),params:new We.Name("params"),propertyName:new We.Name("propertyName"),message:new We.Name("message"),schema:new We.Name("schema"),parentSchema:new We.Name("parentSchema")};function rw(e,i,t){let{createErrors:s}=e.it;return s===!1?(0,We._)`{}`:GU(e,i,t)}function GU(e,i,t={}){let{gen:s,it:r}=e,n=[WU(r,t),YU(e,t)];return JU(e,i,n),s.object(...n)}function WU({errorPath:e},{instancePath:i}){let t=i?(0,We.str)`${e}${(0,sd.getErrorPath)(i,sd.Type.Str)}`:e;return[gi.default.instancePath,(0,We.strConcat)(gi.default.instancePath,t)]}function YU({keyword:e,it:{errSchemaPath:i}},{schemaPath:t,parentSchema:s}){let r=s?i:(0,We.str)`${i}/${e}`;return t&&(r=(0,We.str)`${r}${(0,sd.getErrorPath)(t,sd.Type.Str)}`),[ao.schemaPath,r]}function JU(e,{params:i,message:t},s){let{keyword:r,data:n,schemaValue:l,it:c}=e,{opts:u,propertyName:p,topSchemaRef:_,schemaPath:v}=c;s.push([ao.keyword,r],[ao.params,typeof i=="function"?i(e):i||(0,We._)`{}`]),u.messages&&s.push([ao.message,typeof t=="function"?t(e):t]),u.verbose&&s.push([ao.schema,l],[ao.parentSchema,(0,We._)`${_}${v}`],[gi.default.data,n]),p&&s.push([ao.propertyName,p])}});var nw=w(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.boolOrEmptySchema=Wo.topBoolOrEmptySchema=void 0;var ZU=ba(),QU=we(),XU=Qi(),eO={message:"boolean schema is false"};function tO(e){let{gen:i,schema:t,validateName:s}=e;t===!1?ow(e,!1):typeof t=="object"&&t.$async===!0?i.return(XU.default.data):(i.assign((0,QU._)`${s}.errors`,null),i.return(!0))}Wo.topBoolOrEmptySchema=tO;function iO(e,i){let{gen:t,schema:s}=e;s===!1?(t.var(i,!1),ow(e)):t.var(i,!0)}Wo.boolOrEmptySchema=iO;function ow(e,i){let{gen:t,data:s}=e,r={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,ZU.reportError)(r,eO,void 0,i)}});var Tp=w(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.getRules=Yo.isJSONType=void 0;var sO=["string","number","integer","boolean","null","object","array"],rO=new Set(sO);function oO(e){return typeof e=="string"&&rO.has(e)}Yo.isJSONType=oO;function nO(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ge(fe({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Yo.getRules=nO});var zp=w(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.shouldUseRule=jr.shouldUseGroup=jr.schemaHasRulesForType=void 0;function aO({schema:e,self:i},t){let s=i.RULES.types[t];return s&&s!==!0&&aw(e,s)}jr.schemaHasRulesForType=aO;function aw(e,i){return i.rules.some(t=>lw(e,t))}jr.shouldUseGroup=aw;function lw(e,i){var t;return e[i.keyword]!==void 0||((t=i.definition.implements)===null||t===void 0?void 0:t.some(s=>e[s]!==void 0))}jr.shouldUseRule=lw});var ya=w(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.reportTypeError=ei.checkDataTypes=ei.checkDataType=ei.coerceAndCheckDataType=ei.getJSONTypes=ei.getSchemaTypes=ei.DataType=void 0;var lO=Tp(),cO=zp(),dO=ba(),Ne=we(),cw=qe(),Jo=(function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e})(Jo||(ei.DataType=Jo={}));function uO(e){let i=dw(e.type);if(i.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!i.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&i.push("null")}return i}ei.getSchemaTypes=uO;function dw(e){let i=Array.isArray(e)?e:e?[e]:[];if(i.every(lO.isJSONType))return i;throw new Error("type must be JSONType or JSONType[]: "+i.join(","))}ei.getJSONTypes=dw;function gO(e,i){let{gen:t,data:s,opts:r}=e,n=pO(i,r.coerceTypes),l=i.length>0&&!(n.length===0&&i.length===1&&(0,cO.schemaHasRulesForType)(e,i[0]));if(l){let c=jp(i,s,r.strictNumbers,Jo.Wrong);t.if(c,()=>{n.length?mO(e,i,n):Dp(e)})}return l}ei.coerceAndCheckDataType=gO;var uw=new Set(["string","number","integer","boolean","null"]);function pO(e,i){return i?e.filter(t=>uw.has(t)||i==="array"&&t==="array"):[]}function mO(e,i,t){let{gen:s,data:r,opts:n}=e,l=s.let("dataType",(0,Ne._)`typeof ${r}`),c=s.let("coerced",(0,Ne._)`undefined`);n.coerceTypes==="array"&&s.if((0,Ne._)`${l} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,()=>s.assign(r,(0,Ne._)`${r}[0]`).assign(l,(0,Ne._)`typeof ${r}`).if(jp(i,r,n.strictNumbers),()=>s.assign(c,r))),s.if((0,Ne._)`${c} !== undefined`);for(let p of t)(uw.has(p)||p==="array"&&n.coerceTypes==="array")&&u(p);s.else(),Dp(e),s.endIf(),s.if((0,Ne._)`${c} !== undefined`,()=>{s.assign(r,c),_O(e,c)});function u(p){switch(p){case"string":s.elseIf((0,Ne._)`${l} == "number" || ${l} == "boolean"`).assign(c,(0,Ne._)`"" + ${r}`).elseIf((0,Ne._)`${r} === null`).assign(c,(0,Ne._)`""`);return;case"number":s.elseIf((0,Ne._)`${l} == "boolean" || ${r} === null
3
3
  || (${l} == "string" && ${r} && ${r} == +${r})`).assign(c,(0,Ne._)`+${r}`);return;case"integer":s.elseIf((0,Ne._)`${l} === "boolean" || ${r} === null
4
4
  || (${l} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(c,(0,Ne._)`+${r}`);return;case"boolean":s.elseIf((0,Ne._)`${r} === "false" || ${r} === 0 || ${r} === null`).assign(c,!1).elseIf((0,Ne._)`${r} === "true" || ${r} === 1`).assign(c,!0);return;case"null":s.elseIf((0,Ne._)`${r} === "" || ${r} === 0 || ${r} === false`),s.assign(c,null);return;case"array":s.elseIf((0,Ne._)`${l} === "string" || ${l} === "number"
@@ -1 +1 @@
1
- import{h as n}from"./chunk-5ZHDYUXA.js";import{eb as i,ia as a,ja as r}from"./chunk-ZRDN4L2J.js";var u=(()=>{class t{canDeactivate(e,o,p,m){return e.canDeactivate?e.canDeactivate(m?.url):!0}static \u0275fac=function(o){return new(o||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var f=[{path:"",loadComponent:()=>import("./chunk-4FVYEHTQ.js").then(t=>t.LogsComponent),canDeactivate:[u]}],s=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=i({type:t});static \u0275inj=r({imports:[n.forChild(f),n]})}return t})();var v=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=i({type:t});static \u0275inj=r({imports:[s]})}return t})();export{v as LogsModule};
1
+ import{h as n}from"./chunk-5ZHDYUXA.js";import{eb as i,ia as a,ja as r}from"./chunk-ZRDN4L2J.js";var u=(()=>{class t{canDeactivate(e,o,p,m){return e.canDeactivate?e.canDeactivate(m?.url):!0}static \u0275fac=function(o){return new(o||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var f=[{path:"",loadComponent:()=>import("./chunk-TJKFCW7V.js").then(t=>t.LogsComponent),canDeactivate:[u]}],s=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=i({type:t});static \u0275inj=r({imports:[n.forChild(f),n]})}return t})();var v=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=i({type:t});static \u0275inj=r({imports:[s]})}return t})();export{v as LogsModule};
@@ -1 +1 @@
1
- import{b as c}from"./chunk-JMIJOLS7.js";import{p as r}from"./chunk-EDDOJGFQ.js";import{h as i,ia as a,na as o}from"./chunk-ZRDN4L2J.js";var h=(()=>{class t{cache=null;CACHE_DURATION_MS=6e4;getToken(){let n=Date.now();if(this.cache&&n-this.cache.timestamp<this.CACHE_DURATION_MS)return this.cache.token;let e=window.localStorage.getItem(r.jwt.tokenKey);return this.cache={token:e,timestamp:n},e}invalidateCache(){this.cache=null}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p=(()=>{class t{$auth=o(c);$tokenCache=o(h);isAuthenticated(){return i(this,null,function*(){if(!this.$tokenCache.getToken())return this.$auth.token=null,this.$auth.user={},this.$tokenCache.invalidateCache(),!1;try{let e=this.$auth.isLoggedIn();return e||(this.$auth.token=null,this.$auth.user={},this.$tokenCache.invalidateCache()),e}catch{return console.warn("Token validation error, clearing auth state"),this.$auth.logout(),this.$tokenCache.invalidateCache(),!1}})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{h as a,p as b};
1
+ import{b as c}from"./chunk-NK75GL45.js";import{p as r}from"./chunk-VYCHZSA2.js";import{h as i,ia as a,na as o}from"./chunk-ZRDN4L2J.js";var h=(()=>{class t{cache=null;CACHE_DURATION_MS=6e4;getToken(){let n=Date.now();if(this.cache&&n-this.cache.timestamp<this.CACHE_DURATION_MS)return this.cache.token;let e=window.localStorage.getItem(r.jwt.tokenKey);return this.cache={token:e,timestamp:n},e}invalidateCache(){this.cache=null}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p=(()=>{class t{$auth=o(c);$tokenCache=o(h);isAuthenticated(){return i(this,null,function*(){if(!this.$tokenCache.getToken())return this.$auth.token=null,this.$auth.user={},this.$tokenCache.invalidateCache(),!1;try{let e=this.$auth.isLoggedIn();return e||(this.$auth.token=null,this.$auth.user={},this.$tokenCache.invalidateCache()),e}catch{return console.warn("Token validation error, clearing auth state"),this.$auth.logout(),this.$tokenCache.invalidateCache(),!1}})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{h as a,p as b};
@@ -1 +1 @@
1
- import{c as t}from"./chunk-3E4PU33L.js";import{b as i}from"./chunk-TGQIPKOK.js";import{eb as r,ja as o}from"./chunk-ZRDN4L2J.js";var f=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=r({type:e});static \u0275inj=o({providers:[t],imports:[i]})}return e})();export{f as a};
1
+ import{c as t}from"./chunk-M7WJENG7.js";import{b as i}from"./chunk-TGQIPKOK.js";import{eb as r,ja as o}from"./chunk-ZRDN4L2J.js";var f=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=r({type:e});static \u0275inj=o({providers:[t],imports:[i]})}return e})();export{f as a};
@@ -1 +1 @@
1
- import{g as l}from"./chunk-54X33YUH.js";import{l as c}from"./chunk-EDDOJGFQ.js";import{La as i,db as r,mc as s,rc as a,tc as m,wb as o,zb as p}from"./chunk-ZRDN4L2J.js";var f=(e,d)=>({github:e,discord:d}),k=(()=>{class e{linkGithub='<a href="https://github.com/homebridge/homebridge-config-ui-x/issues/new?template=feature-request.yml" target="_blank" rel="noopener noreferrer">GitHub</a>';linkDiscord='<a href="https://discord.gg/kqNCe2D" target="_blank" rel="noopener noreferrer">Discord</a>';static \u0275fac=function(t){return new(t||e)};static \u0275cmp=r({type:e,selectors:[["app-support-banner"]],decls:2,vars:8,consts:[["type","info",1,"mt-3","mb-0","grey-text","small",3,"dismissible","innerHtml"]],template:function(t,n){t&1&&(p(0,"ngb-alert",0),a(1,"translate")),t&2&&o("dismissible",!1)("innerHtml",m(1,2,"common.phrases.support",s(5,f,n.linkGithub,n.linkDiscord)),i)},dependencies:[l,c],encapsulation:2})}return e})();export{k as a};
1
+ import{g as l}from"./chunk-54X33YUH.js";import{l as c}from"./chunk-VYCHZSA2.js";import{La as i,db as r,mc as s,rc as a,tc as m,wb as o,zb as p}from"./chunk-ZRDN4L2J.js";var f=(e,d)=>({github:e,discord:d}),k=(()=>{class e{linkGithub='<a href="https://github.com/homebridge/homebridge-config-ui-x/issues/new?template=feature-request.yml" target="_blank" rel="noopener noreferrer">GitHub</a>';linkDiscord='<a href="https://discord.gg/kqNCe2D" target="_blank" rel="noopener noreferrer">Discord</a>';static \u0275fac=function(t){return new(t||e)};static \u0275cmp=r({type:e,selectors:[["app-support-banner"]],decls:2,vars:8,consts:[["type","info",1,"mt-3","mb-0","grey-text","small",3,"dismissible","innerHtml"]],template:function(t,n){t&1&&(p(0,"ngb-alert",0),a(1,"translate")),t&2&&o("dismissible",!1)("innerHtml",m(1,2,"common.phrases.support",s(5,f,n.linkGithub,n.linkDiscord)),i)},dependencies:[l,c],encapsulation:2})}return e})();export{k as a};
@@ -1 +1 @@
1
- import{k as v,l as E,n as _,q as h}from"./chunk-EDDOJGFQ.js";import{$b as a,Ab as i,Bb as e,Cb as f,Nb as u,Qa as n,_b as o,db as d,na as l,qb as c,rb as x,rc as p,sc as s}from"./chunk-ZRDN4L2J.js";function y(t,w){if(t&1&&(i(0,"div",7),o(1),e()),t&2){let r=u();n(),a(r.error)}}function C(t,w){t&1&&(i(0,"p",8),o(1),p(2,"translate"),e()),t&2&&(n(),a(s(2,1,"platform.linux.server_will_power_down")))}var B=(()=>{class t{$api=l(h);$toastr=l(_);$translate=l(v);error=!1;ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(m){return new(m||t)};static \u0275cmp=d({type:t,selectors:[["ng-component"]],decls:13,vars:7,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"grey-text"]],template:function(m,S){m&1&&(i(0,"div",0)(1,"h3",1),o(2),p(3,"translate"),e()(),i(4,"div",2)(5,"div",3),f(6,"i",4),e(),i(7,"div",5)(8,"h4",6),o(9),p(10,"translate"),e(),c(11,y,2,1,"div",7)(12,C,3,3,"p",8),e()()),m&2&&(n(2),a(s(3,3,"menu.restart.title")),n(7),a(s(10,5,"platform.linux.shutting_down_server")),n(2),x(S.error?11:12))},dependencies:[E],encapsulation:2})}return t})();export{B as ShutdownLinuxComponent};
1
+ import{k as v,l as E,n as _,q as h}from"./chunk-VYCHZSA2.js";import{$b as a,Ab as i,Bb as e,Cb as f,Nb as u,Qa as n,_b as o,db as d,na as l,qb as c,rb as x,rc as p,sc as s}from"./chunk-ZRDN4L2J.js";function y(t,w){if(t&1&&(i(0,"div",7),o(1),e()),t&2){let r=u();n(),a(r.error)}}function C(t,w){t&1&&(i(0,"p",8),o(1),p(2,"translate"),e()),t&2&&(n(),a(s(2,1,"platform.linux.server_will_power_down")))}var B=(()=>{class t{$api=l(h);$toastr=l(_);$translate=l(v);error=!1;ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(m){return new(m||t)};static \u0275cmp=d({type:t,selectors:[["ng-component"]],decls:13,vars:7,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"grey-text"]],template:function(m,S){m&1&&(i(0,"div",0)(1,"h3",1),o(2),p(3,"translate"),e()(),i(4,"div",2)(5,"div",3),f(6,"i",4),e(),i(7,"div",5)(8,"h4",6),o(9),p(10,"translate"),e(),c(11,y,2,1,"div",7)(12,C,3,3,"p",8),e()()),m&2&&(n(2),a(s(3,3,"menu.restart.title")),n(7),a(s(10,5,"platform.linux.shutting_down_server")),n(2),x(S.error?11:12))},dependencies:[E],encapsulation:2})}return t})();export{B as ShutdownLinuxComponent};