homebridge-config-ui-x 5.4.2-beta.5 → 5.4.2-beta.6

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 (82) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/package.json +1 -1
  3. package/public/3rdpartylicenses.txt +0 -26
  4. package/public/{chunk-5HZUPVWC.js → chunk-25OIAGTM.js} +1 -1
  5. package/public/{chunk-RLVPGUTL.js → chunk-26MF6T4F.js} +1 -1
  6. package/public/{chunk-CQKCDD3I.js → chunk-2XWUBKEU.js} +1 -1
  7. package/public/{chunk-XWYKEZQQ.js → chunk-3CKT2OQ7.js} +3 -3
  8. package/public/{chunk-G4NVCLVH.js → chunk-3PDJRXRO.js} +1 -1
  9. package/public/{chunk-TCGYQJKS.js → chunk-3Z42R37A.js} +1 -1
  10. package/public/{chunk-I53R6BXR.js → chunk-4DFS3QHJ.js} +1 -1
  11. package/public/{chunk-PJ3EPI5G.js → chunk-4MSFCTVQ.js} +1 -1
  12. package/public/{chunk-ZG36LVMH.js → chunk-5AE6DPGP.js} +1 -1
  13. package/public/{chunk-GQRHVKQD.js → chunk-5SGJAWBL.js} +1 -1
  14. package/public/chunk-5W4UDGVP.js +40 -0
  15. package/public/{chunk-G47DZL2Z.js → chunk-6I6TS7NS.js} +1 -1
  16. package/public/{chunk-KFHYZ5SS.js → chunk-6NWZP7O3.js} +1 -1
  17. package/public/{chunk-6MKTFG3Y.js → chunk-6TIBYO6N.js} +1 -1
  18. package/public/{chunk-6FXNHKMA.js → chunk-77UFZWOO.js} +1 -1
  19. package/public/{chunk-SN6LZKCD.js → chunk-7I4POOWO.js} +1 -1
  20. package/public/{chunk-BJH2XS46.js → chunk-7PCLHR4J.js} +1 -1
  21. package/public/{chunk-IULRECRY.js → chunk-AUSZSKSV.js} +1 -1
  22. package/public/{chunk-OUS4RGQP.js → chunk-CR4ZBYZW.js} +1 -1
  23. package/public/{chunk-RVMDJBNR.js → chunk-CZ4BSJG6.js} +1 -1
  24. package/public/{chunk-QQQEHCXA.js → chunk-D6J76H5C.js} +1 -1
  25. package/public/{chunk-MQX5ZTBS.js → chunk-DX4QDVZI.js} +1 -1
  26. package/public/{chunk-4RTKNG6L.js → chunk-DZEONEP6.js} +1 -1
  27. package/public/{chunk-LTYGO6XR.js → chunk-EEI3BPIT.js} +1 -1
  28. package/public/chunk-FRKFO2AK.js +1 -0
  29. package/public/{chunk-JUV2DSAH.js → chunk-G7CL4SAC.js} +1 -1
  30. package/public/{chunk-NH4EEDHF.js → chunk-GHMXPHAP.js} +1 -1
  31. package/public/{chunk-LUMABV26.js → chunk-HHEWF4VF.js} +1 -1
  32. package/public/{chunk-IXH3K25Z.js → chunk-HLCKYR5L.js} +1 -1
  33. package/public/{chunk-CTIQENGH.js → chunk-HY5ODBRP.js} +1 -1
  34. package/public/{chunk-B6764AYV.js → chunk-I4Z2M6DW.js} +1 -1
  35. package/public/chunk-ICF4QWLG.js +1 -0
  36. package/public/{chunk-543O6APZ.js → chunk-IJU3VSN3.js} +1 -1
  37. package/public/{chunk-INZ4CFOM.js → chunk-IMSICY7J.js} +1 -1
  38. package/public/{chunk-A2DAMKWN.js → chunk-ISGUOEN7.js} +1 -1
  39. package/public/{chunk-ODSGVB3D.js → chunk-JB4F2HHO.js} +1 -1
  40. package/public/{chunk-INQIYZSJ.js → chunk-JPTC4WQA.js} +1 -1
  41. package/public/{chunk-PP5MH7GY.js → chunk-KIMRA3K7.js} +2 -2
  42. package/public/{chunk-2W6X2FZY.js → chunk-KOLNEZ3H.js} +1 -1
  43. package/public/{chunk-ZHR4YJI6.js → chunk-MFCXXWZH.js} +1 -1
  44. package/public/{chunk-QF27FM3R.js → chunk-MKITXUGX.js} +1 -1
  45. package/public/{chunk-4OFGZX6Q.js → chunk-MXLNBEYU.js} +1 -1
  46. package/public/{chunk-ZM5B4KXN.js → chunk-N6WB5CGQ.js} +1 -1
  47. package/public/{chunk-YERWTYFA.js → chunk-NJ4ZO76F.js} +1 -1
  48. package/public/chunk-NJV37DB5.js +1 -0
  49. package/public/{chunk-G3CSSNW3.js → chunk-OXSXPR4C.js} +1 -1
  50. package/public/{chunk-KLRLKCQM.js → chunk-PPQR2L5C.js} +1 -1
  51. package/public/{chunk-2DS7BEBV.js → chunk-Q7DXBR75.js} +1 -1
  52. package/public/{chunk-NFD7N6TO.js → chunk-QK4KTNPQ.js} +1 -1
  53. package/public/{chunk-AP47FXQT.js → chunk-QRNW5KEK.js} +1 -1
  54. package/public/{chunk-QNF5ENQG.js → chunk-QUBAEQEC.js} +1 -1
  55. package/public/{chunk-KHLOAY63.js → chunk-RKHDDB3B.js} +1 -1
  56. package/public/{chunk-P5LYIXY6.js → chunk-RRPADCBT.js} +1 -1
  57. package/public/{chunk-6N2SOTOL.js → chunk-SRHJQ5GP.js} +1 -1
  58. package/public/{chunk-OPYWX2UT.js → chunk-UFVCERK3.js} +1 -1
  59. package/public/{chunk-JJPUSASZ.js → chunk-UVPJPCIC.js} +1 -1
  60. package/public/{chunk-PMVD4FUJ.js → chunk-V2NELL63.js} +1 -1
  61. package/public/{chunk-AHB5UJOX.js → chunk-W2ZTZMXD.js} +1 -1
  62. package/public/{chunk-AB7TCQOZ.js → chunk-WYRNR7DL.js} +1 -1
  63. package/public/chunk-WZ6F47WI.js +1 -0
  64. package/public/{chunk-XVT7UHRQ.js → chunk-XIC6ZDKX.js} +1 -1
  65. package/public/{chunk-I3PIZ6R3.js → chunk-Y4HHBBVG.js} +1 -1
  66. package/public/{chunk-WMKLZPZK.js → chunk-Y7ITE3YP.js} +1 -1
  67. package/public/{chunk-DUQFKV4C.js → chunk-YKWHYPAR.js} +1 -1
  68. package/public/{chunk-IMGYEBIF.js → chunk-YTBX4R7P.js} +1 -1
  69. package/public/{chunk-KUU5VKMV.js → chunk-YWZ5G5CC.js} +1 -1
  70. package/public/{chunk-4VMH5FRY.js → chunk-ZAS225DL.js} +1 -1
  71. package/public/{chunk-3NT6NMC5.js → chunk-ZIOEHRRL.js} +1 -1
  72. package/public/{chunk-3DFE4GXY.js → chunk-ZY6Y43WL.js} +1 -1
  73. package/public/index.html +1 -1
  74. package/public/{main-ZMXK6L7D.js → main-2GHBMEX7.js} +1 -1
  75. package/public/assets/hap-icons/outlet.svg +0 -25
  76. package/public/assets/hap-icons/switch.svg +0 -25
  77. package/public/assets/hap-icons/unknown.svg +0 -25
  78. package/public/chunk-5KFQUVTY.js +0 -1
  79. package/public/chunk-677XEWJ2.js +0 -1
  80. package/public/chunk-CXKZ57ZY.js +0 -12
  81. package/public/chunk-SLK25HWZ.js +0 -1
  82. package/public/chunk-WVUFHQCN.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as Ag}from"./chunk-4VMH5FRY.js";import{a as tl,c as Tg,d as Pg,e as Ds,f as ri,g as CS}from"./chunk-ODSGVB3D.js";import{a as kg}from"./chunk-LTYGO6XR.js";import{a as Ig}from"./chunk-CQKCDD3I.js";import{a as jg}from"./chunk-XVT7UHRQ.js";import{a as Sg,b as Cg,c as xg}from"./chunk-PMVD4FUJ.js";import{a as ko}from"./chunk-QNF5ENQG.js";import{a as zg}from"./chunk-P5LYIXY6.js";import{a as gn,b as hn}from"./chunk-6N2SOTOL.js";import{a as pn,b as mn}from"./chunk-OPYWX2UT.js";import{a as Hg}from"./chunk-PJ3EPI5G.js";import{a as nn,b as an,c as ln,d as dn,e as cn,f as un,g as Ns,m as Re,n as et,o as bg,p as fg,q as yg,r as vg,s as wg,t as Ei}from"./chunk-AP47FXQT.js";import{A as wo,a as dg,b as Ni,c as js,e as yt,f as cg,h as ug,i as gg,j as pg,k as mg,l as Di,m as hg,o as Bi,r as As,s as ns,t as as,y as _g,z as Yt}from"./chunk-NH4EEDHF.js";import{a as Ri}from"./chunk-LUMABV26.js";import{d as oi}from"./chunk-5KFQUVTY.js";import{b as Oe}from"./chunk-SN6LZKCD.js";import{k as He,m as Ui,n as ve}from"./chunk-ZHR4YJI6.js";import{a as ke,b as Fe}from"./chunk-6FXNHKMA.js";import{e as lg}from"./chunk-PP5MH7GY.js";import{$b as $,Aa as Jr,Ac as De,Bc as og,Cc as rg,Cd as ag,D as Gu,Da as Ti,Dc as Pe,Ea as Zu,Ec as Gt,Fc as os,Ga as Ts,Gc as Et,Hc as zs,Ib as Y,Jb as I,Kb as T,Kc as H,Lc as C,M as xs,Mb as ut,Mc as Ke,Nb as gt,Ob as pt,Pb as y,Qb as m,Rb as p,Sb as x,Tb as Xr,Tc as mt,Ub as en,Uc as V,Vb as tn,Vc as Ai,Wb as tg,Xb as ig,Xc as ng,Ya as he,Z as Za,a as J,aa as vo,ab as Qu,b as xe,bb as u,c as qu,cc as R,dc as sn,e as _,ec as b,fa as Yu,g as je,ga as Pt,gb as Zr,h as G,ha as Is,hb as pi,ic as Qa,ja as Wu,jb as ts,jc as Xa,k as Ku,ka as Ju,kc as el,la as z,lc as Pi,ld as Ut,mc as zi,md as rs,n as Tt,nb as Q,nc as sg,nd as ht,o as Ja,ob as Ps,oc as Lt,pb as is,pc as ji,q as Vu,qb as Xu,qc as Z,ra as E,rc as w,sa as U,sc as K,tb as de,tc as O,uc as ss,ud as rn,v as $u,vb as eg,vc as on,w as le,wb as Qr,x as Lu,yc as Ae,zc as Ne}from"./chunk-XWYKEZQQ.js";var Co=_(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 Ho=class{};ye._CodeOrName=Ho;ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ls=class extends Ho{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=ls;var Rt=class extends Ho{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 ls&&(t[s.str]=(t[s.str]||0)+1),t),{})}};ye._Code=Rt;ye.nil=new Rt("");function Ng(e,...i){let t=[e[0]],s=0;for(;s<i.length;)sl(t,i[s]),t.push(e[++s]);return new Rt(t)}ye._=Ng;var il=new Rt("+");function Dg(e,...i){let t=[So(e[0])],s=0;for(;s<i.length;)t.push(il),sl(t,i[s]),t.push(il,So(e[++s]));return xS(t),new Rt(t)}ye.str=Dg;function sl(e,i){i instanceof Rt?e.push(...i._items):i instanceof ls?e.push(i):e.push(PS(i))}ye.addCodeArg=sl;function xS(e){let i=1;for(;i<e.length-1;){if(e[i]===il){let t=IS(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function IS(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof ls||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 ls))return`"${e}${i.slice(1)}`}function TS(e,i){return i.emptyStr()?e:e.emptyStr()?i:Dg`${e}${i}`}ye.strConcat=TS;function PS(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:So(Array.isArray(e)?e.join(","):e)}function zS(e){return new Rt(So(e))}ye.stringify=zS;function So(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ye.safeStringify=So;function jS(e){return typeof e=="string"&&ye.IDENTIFIER.test(e)?new Rt(`.${e}`):Ng`[${e}]`}ye.getProperty=jS;function AS(e){if(typeof e=="string"&&ye.IDENTIFIER.test(e))return new Rt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ye.getEsmExportName=AS;function NS(e){return new Rt(e.toString())}ye.regexpCode=NS});var nl=_(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.ValueScope=wt.ValueScopeName=wt.Scope=wt.varKinds=wt.UsedValueState=void 0;var vt=Co(),ol=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},_n=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(_n||(wt.UsedValueState=_n={}));wt.varKinds={const:new vt.Name("const"),let:new vt.Name("let"),var:new vt.Name("var")};var bn=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof vt.Name?i:this.name(i)}name(i){return new vt.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}}};wt.Scope=bn;var fn=class extends vt.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,vt._)`.${new vt.Name(t)}[${s}]`}};wt.ValueScopeName=fn;var DS=(0,vt._)`\n`,rl=class extends bn{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=xe(J({},i),{_n:i.lines?DS:vt.nil})}get(){return this._scope}name(i){return new fn(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 o=this.toName(i),{prefix:r}=o,n=(s=t.key)!==null&&s!==void 0?s:t.ref,a=this._values[r];if(a){let c=a.get(n);if(c)return c}else a=this._values[r]=new Map;a.set(n,o);let l=this._scope[r]||(this._scope[r]=[]),d=l.length;return l[d]=t.ref,o.setValue(t,{property:r,itemIndex:d}),o}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,vt._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let r=vt.nil;for(let n in i){let a=i[n];if(!a)continue;let l=s[n]=s[n]||new Map;a.forEach(d=>{if(l.has(d))return;l.set(d,_n.Started);let c=t(d);if(c){let g=this.opts.es5?wt.varKinds.var:wt.varKinds.const;r=(0,vt._)`${r}${g} ${d} = ${c};${this.opts._n}`}else if(c=o?.(d))r=(0,vt._)`${r}${c}${this.opts._n}`;else throw new ol(d);l.set(d,_n.Completed)})}return r}};wt.ValueScope=rl});var ee=_(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.or=ce.and=ce.not=ce.CodeGen=ce.operators=ce.varKinds=ce.ValueScopeName=ce.ValueScope=ce.Scope=ce.Name=ce.regexpCode=ce.stringify=ce.getProperty=ce.nil=ce.strConcat=ce.str=ce._=void 0;var _e=Co(),Wt=nl(),Fi=Co();Object.defineProperty(ce,"_",{enumerable:!0,get:function(){return Fi._}});Object.defineProperty(ce,"str",{enumerable:!0,get:function(){return Fi.str}});Object.defineProperty(ce,"strConcat",{enumerable:!0,get:function(){return Fi.strConcat}});Object.defineProperty(ce,"nil",{enumerable:!0,get:function(){return Fi.nil}});Object.defineProperty(ce,"getProperty",{enumerable:!0,get:function(){return Fi.getProperty}});Object.defineProperty(ce,"stringify",{enumerable:!0,get:function(){return Fi.stringify}});Object.defineProperty(ce,"regexpCode",{enumerable:!0,get:function(){return Fi.regexpCode}});Object.defineProperty(ce,"Name",{enumerable:!0,get:function(){return Fi.Name}});var Hn=nl();Object.defineProperty(ce,"Scope",{enumerable:!0,get:function(){return Hn.Scope}});Object.defineProperty(ce,"ValueScope",{enumerable:!0,get:function(){return Hn.ValueScope}});Object.defineProperty(ce,"ValueScopeName",{enumerable:!0,get:function(){return Hn.ValueScopeName}});Object.defineProperty(ce,"varKinds",{enumerable:!0,get:function(){return Hn.varKinds}});ce.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 mi=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},al=class extends mi{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?Wt.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Bs(this.rhs,i,t)),this}get names(){return this.rhs instanceof _e._CodeOrName?this.rhs.names:{}}},vn=class extends mi{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=Bs(this.rhs,i,t),this}get names(){let i=this.lhs instanceof _e.Name?{}:J({},this.lhs.names);return kn(i,this.rhs)}},ll=class extends vn{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},dl=class extends mi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},cl=class extends mi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},ul=class extends mi{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},gl=class extends mi{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=Bs(this.code,i,t),this}get names(){return this.code instanceof _e._CodeOrName?this.code.names:{}}},xo=class extends mi{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,o=s.length;for(;o--;){let r=s[o];r.optimizeNames(i,t)||(BS(i,r.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>ds(i,t.names),{})}},hi=class extends xo{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},pl=class extends xo{},ml=(()=>{class e extends hi{}return e.kind="else",e})(),yn=(()=>{class e extends hi{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 o=s.optimizeNodes();s=this.else=Array.isArray(o)?new ml(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Fg(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Bs(this.condition,t,s),this}get names(){let t=super.names;return kn(t,this.condition),this.else&&ds(t,this.else.names),t}}return e.kind="if",e})(),Sn=(()=>{class e extends hi{}return e.kind="for",e})(),hl=class extends Sn{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=Bs(this.iteration,i,t),this}get names(){return ds(super.names,this.iteration.names)}},_l=class extends Sn{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?Wt.varKinds.var:this.varKind,{name:s,from:o,to:r}=this;return`for(${t} ${s}=${o}; ${s}<${r}; ${s}++)`+super.render(i)}get names(){let i=kn(super.names,this.from);return kn(i,this.to)}},wn=class extends Sn{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}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=Bs(this.iterable,i,t),this}get names(){return ds(super.names,this.iterable.names)}},Bg=(()=>{class e extends hi{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Eg=(()=>{class e extends xo{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),bl=class extends hi{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,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&ds(i,this.catch.names),this.finally&&ds(i,this.finally.names),i}},Ug=(()=>{class e extends hi{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),Rg=(()=>{class e extends hi{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),fl=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=xe(J({},t),{_n:t.lines?`
1
+ import{a as Ag}from"./chunk-ZAS225DL.js";import{a as tl,c as Tg,d as Pg,e as Ds,f as ri,g as CS}from"./chunk-JB4F2HHO.js";import{a as kg}from"./chunk-EEI3BPIT.js";import{a as Ig}from"./chunk-2XWUBKEU.js";import{a as jg}from"./chunk-XIC6ZDKX.js";import{a as Sg,b as Cg,c as xg}from"./chunk-V2NELL63.js";import{a as ko}from"./chunk-QUBAEQEC.js";import{a as zg}from"./chunk-RRPADCBT.js";import{a as gn,b as hn}from"./chunk-SRHJQ5GP.js";import{a as pn,b as mn}from"./chunk-UFVCERK3.js";import{a as Hg}from"./chunk-4MSFCTVQ.js";import{a as nn,b as an,c as ln,d as dn,e as cn,f as un,g as Ns,m as Re,n as et,o as bg,p as fg,q as yg,r as vg,s as wg,t as Ei}from"./chunk-QRNW5KEK.js";import{A as wo,a as dg,b as Ni,c as js,e as yt,f as cg,h as ug,i as gg,j as pg,k as mg,l as Di,m as hg,o as Bi,r as As,s as ns,t as as,y as _g,z as Yt}from"./chunk-GHMXPHAP.js";import{a as Ri}from"./chunk-HHEWF4VF.js";import{d as oi}from"./chunk-WZ6F47WI.js";import{b as Oe}from"./chunk-7I4POOWO.js";import{k as He,m as Ui,n as ve}from"./chunk-MFCXXWZH.js";import{a as ke,b as Fe}from"./chunk-77UFZWOO.js";import{d as lg}from"./chunk-KIMRA3K7.js";import{$ as vo,$a as Qu,Ac as og,Bc as rg,Ca as Ti,Cc as Pe,D as Gu,Da as Zu,Dc as Gt,Ec as os,Fa as Ts,Fc as Et,Gc as zs,Hb as Y,Ib as I,Jb as T,Jc as H,Kc as C,Lb as ut,Lc as Ke,M as xs,Mb as gt,Nb as pt,Ob as y,Pb as m,Qb as p,Rb as x,Sb as Xr,Sc as mt,Tb as en,Tc as V,Ub as tn,Uc as Ai,Vb as tg,Wb as ig,Wc as ng,Xa as he,Y as Za,_b as $,a as J,ab as u,b as xe,bc as R,c as qu,cc as sn,dc as b,e as _,ea as Yu,fa as Pt,fb as Zr,g as je,ga as Is,gb as pi,h as G,hc as Qa,ia as Wu,ib as ts,ic as Xa,id as Ut,ja as Ju,jc as el,jd as rs,k as Ku,ka as z,kc as Pi,kd as ht,lc as zi,mb as Q,mc as sg,n as Tt,nb as Ps,nc as Lt,o as Ja,ob as is,oc as ji,pb as Xu,pc as Z,q as Vu,qa as E,qc as w,ra as U,rc as K,rd as rn,sb as de,sc as O,tc as ss,ub as eg,uc as on,v as $u,vb as Qr,w as le,x as Lu,xc as Ae,yc as Ne,yd as ag,za as Jr,zc as De}from"./chunk-3CKT2OQ7.js";var Co=_(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 Ho=class{};ye._CodeOrName=Ho;ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ls=class extends Ho{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=ls;var Rt=class extends Ho{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 ls&&(t[s.str]=(t[s.str]||0)+1),t),{})}};ye._Code=Rt;ye.nil=new Rt("");function Ng(e,...i){let t=[e[0]],s=0;for(;s<i.length;)sl(t,i[s]),t.push(e[++s]);return new Rt(t)}ye._=Ng;var il=new Rt("+");function Dg(e,...i){let t=[So(e[0])],s=0;for(;s<i.length;)t.push(il),sl(t,i[s]),t.push(il,So(e[++s]));return xS(t),new Rt(t)}ye.str=Dg;function sl(e,i){i instanceof Rt?e.push(...i._items):i instanceof ls?e.push(i):e.push(PS(i))}ye.addCodeArg=sl;function xS(e){let i=1;for(;i<e.length-1;){if(e[i]===il){let t=IS(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function IS(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof ls||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 ls))return`"${e}${i.slice(1)}`}function TS(e,i){return i.emptyStr()?e:e.emptyStr()?i:Dg`${e}${i}`}ye.strConcat=TS;function PS(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:So(Array.isArray(e)?e.join(","):e)}function zS(e){return new Rt(So(e))}ye.stringify=zS;function So(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ye.safeStringify=So;function jS(e){return typeof e=="string"&&ye.IDENTIFIER.test(e)?new Rt(`.${e}`):Ng`[${e}]`}ye.getProperty=jS;function AS(e){if(typeof e=="string"&&ye.IDENTIFIER.test(e))return new Rt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ye.getEsmExportName=AS;function NS(e){return new Rt(e.toString())}ye.regexpCode=NS});var nl=_(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.ValueScope=wt.ValueScopeName=wt.Scope=wt.varKinds=wt.UsedValueState=void 0;var vt=Co(),ol=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},_n=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(_n||(wt.UsedValueState=_n={}));wt.varKinds={const:new vt.Name("const"),let:new vt.Name("let"),var:new vt.Name("var")};var bn=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof vt.Name?i:this.name(i)}name(i){return new vt.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}}};wt.Scope=bn;var fn=class extends vt.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,vt._)`.${new vt.Name(t)}[${s}]`}};wt.ValueScopeName=fn;var DS=(0,vt._)`\n`,rl=class extends bn{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=xe(J({},i),{_n:i.lines?DS:vt.nil})}get(){return this._scope}name(i){return new fn(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 o=this.toName(i),{prefix:r}=o,n=(s=t.key)!==null&&s!==void 0?s:t.ref,a=this._values[r];if(a){let c=a.get(n);if(c)return c}else a=this._values[r]=new Map;a.set(n,o);let l=this._scope[r]||(this._scope[r]=[]),d=l.length;return l[d]=t.ref,o.setValue(t,{property:r,itemIndex:d}),o}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,vt._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let r=vt.nil;for(let n in i){let a=i[n];if(!a)continue;let l=s[n]=s[n]||new Map;a.forEach(d=>{if(l.has(d))return;l.set(d,_n.Started);let c=t(d);if(c){let g=this.opts.es5?wt.varKinds.var:wt.varKinds.const;r=(0,vt._)`${r}${g} ${d} = ${c};${this.opts._n}`}else if(c=o?.(d))r=(0,vt._)`${r}${c}${this.opts._n}`;else throw new ol(d);l.set(d,_n.Completed)})}return r}};wt.ValueScope=rl});var ee=_(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.or=ce.and=ce.not=ce.CodeGen=ce.operators=ce.varKinds=ce.ValueScopeName=ce.ValueScope=ce.Scope=ce.Name=ce.regexpCode=ce.stringify=ce.getProperty=ce.nil=ce.strConcat=ce.str=ce._=void 0;var _e=Co(),Wt=nl(),Fi=Co();Object.defineProperty(ce,"_",{enumerable:!0,get:function(){return Fi._}});Object.defineProperty(ce,"str",{enumerable:!0,get:function(){return Fi.str}});Object.defineProperty(ce,"strConcat",{enumerable:!0,get:function(){return Fi.strConcat}});Object.defineProperty(ce,"nil",{enumerable:!0,get:function(){return Fi.nil}});Object.defineProperty(ce,"getProperty",{enumerable:!0,get:function(){return Fi.getProperty}});Object.defineProperty(ce,"stringify",{enumerable:!0,get:function(){return Fi.stringify}});Object.defineProperty(ce,"regexpCode",{enumerable:!0,get:function(){return Fi.regexpCode}});Object.defineProperty(ce,"Name",{enumerable:!0,get:function(){return Fi.Name}});var Hn=nl();Object.defineProperty(ce,"Scope",{enumerable:!0,get:function(){return Hn.Scope}});Object.defineProperty(ce,"ValueScope",{enumerable:!0,get:function(){return Hn.ValueScope}});Object.defineProperty(ce,"ValueScopeName",{enumerable:!0,get:function(){return Hn.ValueScopeName}});Object.defineProperty(ce,"varKinds",{enumerable:!0,get:function(){return Hn.varKinds}});ce.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 mi=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},al=class extends mi{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?Wt.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Bs(this.rhs,i,t)),this}get names(){return this.rhs instanceof _e._CodeOrName?this.rhs.names:{}}},vn=class extends mi{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=Bs(this.rhs,i,t),this}get names(){let i=this.lhs instanceof _e.Name?{}:J({},this.lhs.names);return kn(i,this.rhs)}},ll=class extends vn{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},dl=class extends mi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},cl=class extends mi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},ul=class extends mi{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},gl=class extends mi{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=Bs(this.code,i,t),this}get names(){return this.code instanceof _e._CodeOrName?this.code.names:{}}},xo=class extends mi{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,o=s.length;for(;o--;){let r=s[o];r.optimizeNames(i,t)||(BS(i,r.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>ds(i,t.names),{})}},hi=class extends xo{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},pl=class extends xo{},ml=(()=>{class e extends hi{}return e.kind="else",e})(),yn=(()=>{class e extends hi{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 o=s.optimizeNodes();s=this.else=Array.isArray(o)?new ml(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Fg(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Bs(this.condition,t,s),this}get names(){let t=super.names;return kn(t,this.condition),this.else&&ds(t,this.else.names),t}}return e.kind="if",e})(),Sn=(()=>{class e extends hi{}return e.kind="for",e})(),hl=class extends Sn{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=Bs(this.iteration,i,t),this}get names(){return ds(super.names,this.iteration.names)}},_l=class extends Sn{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?Wt.varKinds.var:this.varKind,{name:s,from:o,to:r}=this;return`for(${t} ${s}=${o}; ${s}<${r}; ${s}++)`+super.render(i)}get names(){let i=kn(super.names,this.from);return kn(i,this.to)}},wn=class extends Sn{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}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=Bs(this.iterable,i,t),this}get names(){return ds(super.names,this.iterable.names)}},Bg=(()=>{class e extends hi{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Eg=(()=>{class e extends xo{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),bl=class extends hi{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,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&ds(i,this.catch.names),this.finally&&ds(i,this.finally.names),i}},Ug=(()=>{class e extends hi{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),Rg=(()=>{class e extends hi{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),fl=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=xe(J({},t),{_n:t.lines?`
2
2
  `:""}),this._extScope=i,this._scope=new Wt.Scope({parent:i}),this._nodes=[new pl]}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,o){let r=this._scope.toName(t);return s!==void 0&&o&&(this._constants[r.str]=s),this._leafNode(new al(i,r,s)),r}const(i,t,s){return this._def(Wt.varKinds.const,i,t,s)}let(i,t,s){return this._def(Wt.varKinds.let,i,t,s)}var(i,t,s){return this._def(Wt.varKinds.var,i,t,s)}assign(i,t,s){return this._leafNode(new vn(i,t,s))}add(i,t){return this._leafNode(new ll(i,ce.operators.ADD,t))}code(i){return typeof i=="function"?i():i!==_e.nil&&this._leafNode(new gl(i)),this}object(...i){let t=["{"];for(let[s,o]of i)t.length>1&&t.push(","),t.push(s),(s!==o||this.opts.es5)&&(t.push(":"),(0,_e.addCodeArg)(t,o));return t.push("}"),new _e._Code(t)}if(i,t,s){if(this._blockNode(new yn(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 yn(i))}else(){return this._elseNode(new ml)}endIf(){return this._endBlockNode(yn,ml)}_for(i,t){return this._blockNode(i),t&&this.code(t).endFor(),this}for(i,t){return this._for(new hl(i),t)}forRange(i,t,s,o,r=this.opts.es5?Wt.varKinds.var:Wt.varKinds.let){let n=this._scope.toName(i);return this._for(new _l(r,n,t,s),()=>o(n))}forOf(i,t,s,o=Wt.varKinds.const){let r=this._scope.toName(i);if(this.opts.es5){let n=t instanceof _e.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,_e._)`${n}.length`,a=>{this.var(r,(0,_e._)`${n}[${a}]`),s(r)})}return this._for(new wn("of",o,r,t),()=>s(r))}forIn(i,t,s,o=this.opts.es5?Wt.varKinds.var:Wt.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,(0,_e._)`Object.keys(${t})`,s);let r=this._scope.toName(i);return this._for(new wn("in",o,r,t),()=>s(r))}endFor(){return this._endBlockNode(Sn)}label(i){return this._leafNode(new dl(i))}break(i){return this._leafNode(new cl(i))}return(i){let t=new Eg;if(this._blockNode(t),this.code(i),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Eg)}try(i,t,s){if(!t&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new bl;if(this._blockNode(o),this.code(i),t){let r=this.name("e");this._currNode=o.catch=new Ug(r),t(r)}return s&&(this._currNode=o.finally=new Rg,this.code(s)),this._endBlockNode(Ug,Rg)}throw(i){return this._leafNode(new ul(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,o){return this._blockNode(new Bg(i,t,s)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Bg)}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 yn))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}};ce.CodeGen=fl;function ds(e,i){for(let t in i)e[t]=(e[t]||0)+(i[t]||0);return e}function kn(e,i){return i instanceof _e._CodeOrName?ds(e,i.names):e}function Bs(e,i,t){if(e instanceof _e.Name)return s(e);if(!o(e))return e;return new _e._Code(e._items.reduce((r,n)=>(n instanceof _e.Name&&(n=s(n)),n instanceof _e._Code?r.push(...n._items):r.push(n),r),[]));function s(r){let n=t[r.str];return n===void 0||i[r.str]!==1?r:(delete i[r.str],n)}function o(r){return r instanceof _e._Code&&r._items.some(n=>n instanceof _e.Name&&i[n.str]===1&&t[n.str]!==void 0)}}function BS(e,i){for(let t in i)e[t]=(e[t]||0)-(i[t]||0)}function Fg(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,_e._)`!${yl(e)}`}ce.not=Fg;var ES=Og(ce.operators.AND);function US(...e){return e.reduce(ES)}ce.and=US;var RS=Og(ce.operators.OR);function FS(...e){return e.reduce(RS)}ce.or=FS;function Og(e){return(i,t)=>i===_e.nil?t:t===_e.nil?i:(0,_e._)`${yl(i)} ${e} ${yl(t)}`}function yl(e){return e instanceof _e.Name?e:(0,_e._)`(${e})`}});var ge=_(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.checkStrictMode=ue.getErrorPath=ue.Type=ue.useFunc=ue.setEvaluated=ue.evaluatedPropsToName=ue.mergeEvaluated=ue.eachItem=ue.unescapeJsonPointer=ue.escapeJsonPointer=ue.escapeFragment=ue.unescapeFragment=ue.schemaRefOrVal=ue.schemaHasRulesButRef=ue.schemaHasRules=ue.checkUnknownRules=ue.alwaysValidSchema=ue.toHash=void 0;var Ie=ee(),OS=Co();function MS(e){let i={};for(let t of e)i[t]=!0;return i}ue.toHash=MS;function qS(e,i){return typeof i=="boolean"?i:Object.keys(i).length===0?!0:(Kg(e,i),!Vg(i,e.self.RULES.all))}ue.alwaysValidSchema=qS;function Kg(e,i=e.schema){let{opts:t,self:s}=e;if(!t.strictSchema||typeof i=="boolean")return;let o=s.RULES.keywords;for(let r in i)o[r]||Gg(e,`unknown keyword: "${r}"`)}ue.checkUnknownRules=Kg;function Vg(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(i[t])return!0;return!1}ue.schemaHasRules=Vg;function KS(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&i.all[t])return!0;return!1}ue.schemaHasRulesButRef=KS;function VS({topSchemaRef:e,schemaPath:i},t,s,o){if(!o){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,Ie._)`${t}`}return(0,Ie._)`${e}${i}${(0,Ie.getProperty)(s)}`}ue.schemaRefOrVal=VS;function $S(e){return $g(decodeURIComponent(e))}ue.unescapeFragment=$S;function LS(e){return encodeURIComponent(wl(e))}ue.escapeFragment=LS;function wl(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ue.escapeJsonPointer=wl;function $g(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ue.unescapeJsonPointer=$g;function GS(e,i){if(Array.isArray(e))for(let t of e)i(t);else i(e)}ue.eachItem=GS;function Mg({mergeNames:e,mergeToName:i,mergeValues:t,resultToName:s}){return(o,r,n,a)=>{let l=n===void 0?r:n instanceof Ie.Name?(r instanceof Ie.Name?e(o,r,n):i(o,r,n),n):r instanceof Ie.Name?(i(o,n,r),r):t(r,n);return a===Ie.Name&&!(l instanceof Ie.Name)?s(o,l):l}}ue.mergeEvaluated={props:Mg({mergeNames:(e,i,t)=>e.if((0,Ie._)`${t} !== true && ${i} !== undefined`,()=>{e.if((0,Ie._)`${i} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,Ie._)`${t} || {}`).code((0,Ie._)`Object.assign(${t}, ${i})`))}),mergeToName:(e,i,t)=>e.if((0,Ie._)`${t} !== true`,()=>{i===!0?e.assign(t,!0):(e.assign(t,(0,Ie._)`${t} || {}`),kl(e,t,i))}),mergeValues:(e,i)=>e===!0?!0:J(J({},e),i),resultToName:Lg}),items:Mg({mergeNames:(e,i,t)=>e.if((0,Ie._)`${t} !== true && ${i} !== undefined`,()=>e.assign(t,(0,Ie._)`${i} === true ? true : ${t} > ${i} ? ${t} : ${i}`)),mergeToName:(e,i,t)=>e.if((0,Ie._)`${t} !== true`,()=>e.assign(t,i===!0?!0:(0,Ie._)`${t} > ${i} ? ${t} : ${i}`)),mergeValues:(e,i)=>e===!0?!0:Math.max(e,i),resultToName:(e,i)=>e.var("items",i)})};function Lg(e,i){if(i===!0)return e.var("props",!0);let t=e.var("props",(0,Ie._)`{}`);return i!==void 0&&kl(e,t,i),t}ue.evaluatedPropsToName=Lg;function kl(e,i,t){Object.keys(t).forEach(s=>e.assign((0,Ie._)`${i}${(0,Ie.getProperty)(s)}`,!0))}ue.setEvaluated=kl;var qg={};function YS(e,i){return e.scopeValue("func",{ref:i,code:qg[i.code]||(qg[i.code]=new OS._Code(i.code))})}ue.useFunc=YS;var vl=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(vl||(ue.Type=vl={}));function WS(e,i,t){if(e instanceof Ie.Name){let s=i===vl.Num;return t?s?(0,Ie._)`"[" + ${e} + "]"`:(0,Ie._)`"['" + ${e} + "']"`:s?(0,Ie._)`"/" + ${e}`:(0,Ie._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,Ie.getProperty)(e).toString():"/"+wl(e)}ue.getErrorPath=WS;function Gg(e,i,t=e.opts.strictSchema){if(t){if(i=`strict mode: ${i}`,t===!0)throw new Error(i);e.self.logger.warn(i)}}ue.checkStrictMode=Gg});var Ft=_(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var rt=ee(),JS={data:new rt.Name("data"),valCxt:new rt.Name("valCxt"),instancePath:new rt.Name("instancePath"),parentData:new rt.Name("parentData"),parentDataProperty:new rt.Name("parentDataProperty"),rootData:new rt.Name("rootData"),dynamicAnchors:new rt.Name("dynamicAnchors"),vErrors:new rt.Name("vErrors"),errors:new rt.Name("errors"),this:new rt.Name("this"),self:new rt.Name("self"),scope:new rt.Name("scope"),json:new rt.Name("json"),jsonPos:new rt.Name("jsonPos"),jsonLen:new rt.Name("jsonLen"),jsonPart:new rt.Name("jsonPart")};Hl.default=JS});var Io=_(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.extendErrors=nt.resetErrorsCount=nt.reportExtraError=nt.reportError=nt.keyword$DataError=nt.keywordError=void 0;var fe=ee(),Cn=ge(),_t=Ft();nt.keywordError={message:({keyword:e})=>(0,fe.str)`must pass "${e}" keyword validation`};nt.keyword$DataError={message:({keyword:e,schemaType:i})=>i?(0,fe.str)`"${e}" keyword must be ${i} ($data)`:(0,fe.str)`"${e}" keyword is invalid ($data)`};function ZS(e,i=nt.keywordError,t,s){let{it:o}=e,{gen:r,compositeRule:n,allErrors:a}=o,l=Jg(e,i,t);s??(n||a)?Yg(r,l):Wg(o,(0,fe._)`[${l}]`)}nt.reportError=ZS;function QS(e,i=nt.keywordError,t){let{it:s}=e,{gen:o,compositeRule:r,allErrors:n}=s,a=Jg(e,i,t);Yg(o,a),r||n||Wg(s,_t.default.vErrors)}nt.reportExtraError=QS;function XS(e,i){e.assign(_t.default.errors,i),e.if((0,fe._)`${_t.default.vErrors} !== null`,()=>e.if(i,()=>e.assign((0,fe._)`${_t.default.vErrors}.length`,i),()=>e.assign(_t.default.vErrors,null)))}nt.resetErrorsCount=XS;function eC({gen:e,keyword:i,schemaValue:t,data:s,errsCount:o,it:r}){if(o===void 0)throw new Error("ajv implementation error");let n=e.name("err");e.forRange("i",o,_t.default.errors,a=>{e.const(n,(0,fe._)`${_t.default.vErrors}[${a}]`),e.if((0,fe._)`${n}.instancePath === undefined`,()=>e.assign((0,fe._)`${n}.instancePath`,(0,fe.strConcat)(_t.default.instancePath,r.errorPath))),e.assign((0,fe._)`${n}.schemaPath`,(0,fe.str)`${r.errSchemaPath}/${i}`),r.opts.verbose&&(e.assign((0,fe._)`${n}.schema`,t),e.assign((0,fe._)`${n}.data`,s))})}nt.extendErrors=eC;function Yg(e,i){let t=e.const("err",i);e.if((0,fe._)`${_t.default.vErrors} === null`,()=>e.assign(_t.default.vErrors,(0,fe._)`[${t}]`),(0,fe._)`${_t.default.vErrors}.push(${t})`),e.code((0,fe._)`${_t.default.errors}++`)}function Wg(e,i){let{gen:t,validateName:s,schemaEnv:o}=e;o.$async?t.throw((0,fe._)`new ${e.ValidationError}(${i})`):(t.assign((0,fe._)`${s}.errors`,i),t.return(!1))}var cs={keyword:new fe.Name("keyword"),schemaPath:new fe.Name("schemaPath"),params:new fe.Name("params"),propertyName:new fe.Name("propertyName"),message:new fe.Name("message"),schema:new fe.Name("schema"),parentSchema:new fe.Name("parentSchema")};function Jg(e,i,t){let{createErrors:s}=e.it;return s===!1?(0,fe._)`{}`:tC(e,i,t)}function tC(e,i,t={}){let{gen:s,it:o}=e,r=[iC(o,t),sC(e,t)];return oC(e,i,r),s.object(...r)}function iC({errorPath:e},{instancePath:i}){let t=i?(0,fe.str)`${e}${(0,Cn.getErrorPath)(i,Cn.Type.Str)}`:e;return[_t.default.instancePath,(0,fe.strConcat)(_t.default.instancePath,t)]}function sC({keyword:e,it:{errSchemaPath:i}},{schemaPath:t,parentSchema:s}){let o=s?i:(0,fe.str)`${i}/${e}`;return t&&(o=(0,fe.str)`${o}${(0,Cn.getErrorPath)(t,Cn.Type.Str)}`),[cs.schemaPath,o]}function oC(e,{params:i,message:t},s){let{keyword:o,data:r,schemaValue:n,it:a}=e,{opts:l,propertyName:d,topSchemaRef:c,schemaPath:g}=a;s.push([cs.keyword,o],[cs.params,typeof i=="function"?i(e):i||(0,fe._)`{}`]),l.messages&&s.push([cs.message,typeof t=="function"?t(e):t]),l.verbose&&s.push([cs.schema,n],[cs.parentSchema,(0,fe._)`${c}${g}`],[_t.default.data,r]),d&&s.push([cs.propertyName,d])}});var Qg=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.boolOrEmptySchema=Es.topBoolOrEmptySchema=void 0;var rC=Io(),nC=ee(),aC=Ft(),lC={message:"boolean schema is false"};function dC(e){let{gen:i,schema:t,validateName:s}=e;t===!1?Zg(e,!1):typeof t=="object"&&t.$async===!0?i.return(aC.default.data):(i.assign((0,nC._)`${s}.errors`,null),i.return(!0))}Es.topBoolOrEmptySchema=dC;function cC(e,i){let{gen:t,schema:s}=e;s===!1?(t.var(i,!1),Zg(e)):t.var(i,!0)}Es.boolOrEmptySchema=cC;function Zg(e,i){let{gen:t,data:s}=e,o={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,rC.reportError)(o,lC,void 0,i)}});var Sl=_(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getRules=Us.isJSONType=void 0;var uC=["string","number","integer","boolean","null","object","array"],gC=new Set(uC);function pC(e){return typeof e=="string"&&gC.has(e)}Us.isJSONType=pC;function mC(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:xe(J({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Us.getRules=mC});var Cl=_(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.shouldUseRule=Oi.shouldUseGroup=Oi.schemaHasRulesForType=void 0;function hC({schema:e,self:i},t){let s=i.RULES.types[t];return s&&s!==!0&&Xg(e,s)}Oi.schemaHasRulesForType=hC;function Xg(e,i){return i.rules.some(t=>ep(e,t))}Oi.shouldUseGroup=Xg;function ep(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))}Oi.shouldUseRule=ep});var To=_(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.reportTypeError=at.checkDataTypes=at.checkDataType=at.coerceAndCheckDataType=at.getJSONTypes=at.getSchemaTypes=at.DataType=void 0;var _C=Sl(),bC=Cl(),fC=Io(),ne=ee(),tp=ge(),Rs=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(Rs||(at.DataType=Rs={}));function yC(e){let i=ip(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}at.getSchemaTypes=yC;function ip(e){let i=Array.isArray(e)?e:e?[e]:[];if(i.every(_C.isJSONType))return i;throw new Error("type must be JSONType or JSONType[]: "+i.join(","))}at.getJSONTypes=ip;function vC(e,i){let{gen:t,data:s,opts:o}=e,r=wC(i,o.coerceTypes),n=i.length>0&&!(r.length===0&&i.length===1&&(0,bC.schemaHasRulesForType)(e,i[0]));if(n){let a=Il(i,s,o.strictNumbers,Rs.Wrong);t.if(a,()=>{r.length?kC(e,i,r):Tl(e)})}return n}at.coerceAndCheckDataType=vC;var sp=new Set(["string","number","integer","boolean","null"]);function wC(e,i){return i?e.filter(t=>sp.has(t)||i==="array"&&t==="array"):[]}function kC(e,i,t){let{gen:s,data:o,opts:r}=e,n=s.let("dataType",(0,ne._)`typeof ${o}`),a=s.let("coerced",(0,ne._)`undefined`);r.coerceTypes==="array"&&s.if((0,ne._)`${n} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>s.assign(o,(0,ne._)`${o}[0]`).assign(n,(0,ne._)`typeof ${o}`).if(Il(i,o,r.strictNumbers),()=>s.assign(a,o))),s.if((0,ne._)`${a} !== undefined`);for(let d of t)(sp.has(d)||d==="array"&&r.coerceTypes==="array")&&l(d);s.else(),Tl(e),s.endIf(),s.if((0,ne._)`${a} !== undefined`,()=>{s.assign(o,a),HC(e,a)});function l(d){switch(d){case"string":s.elseIf((0,ne._)`${n} == "number" || ${n} == "boolean"`).assign(a,(0,ne._)`"" + ${o}`).elseIf((0,ne._)`${o} === null`).assign(a,(0,ne._)`""`);return;case"number":s.elseIf((0,ne._)`${n} == "boolean" || ${o} === null
3
3
  || (${n} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,ne._)`+${o}`);return;case"integer":s.elseIf((0,ne._)`${n} === "boolean" || ${o} === null
4
4
  || (${n} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,ne._)`+${o}`);return;case"boolean":s.elseIf((0,ne._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,ne._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":s.elseIf((0,ne._)`${o} === "" || ${o} === 0 || ${o} === false`),s.assign(a,null);return;case"array":s.elseIf((0,ne._)`${n} === "string" || ${n} === "number"