homebridge-config-ui-x 5.0.0-beta.60 → 5.0.0-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/package.json +1 -1
- package/public/{chunk-QGLICWXR.js → chunk-2DOHDIPX.js} +1 -1
- package/public/chunk-2GEHBHV7.js +1 -0
- package/public/{chunk-7IAYSGNN.js → chunk-3BYO2BKQ.js} +1 -1
- package/public/{chunk-ZZQJ3DGD.js → chunk-3QK5UUDD.js} +1 -1
- package/public/{chunk-YCBC3C3V.js → chunk-4ROF2F6L.js} +1 -1
- package/public/{chunk-D6DBYUFZ.js → chunk-4VGUGZMV.js} +1 -1
- package/public/chunk-4ZSSU23I.js +1 -0
- package/public/{chunk-OBOD4WBI.js → chunk-5DMLGMBW.js} +1 -1
- package/public/{chunk-TYEF6KNJ.js → chunk-5NZGHO7L.js} +1 -1
- package/public/{chunk-KFR3ZGJZ.js → chunk-65MXJ5UD.js} +1 -1
- package/public/{chunk-3R3PVZG7.js → chunk-6D2ADQDJ.js} +1 -1
- package/public/{chunk-F5ICJKYI.js → chunk-6FWHLYBG.js} +1 -1
- package/public/chunk-6S3RDNUO.js +1 -0
- package/public/chunk-72VDFGO7.js +1 -0
- package/public/{chunk-YET3EKNI.js → chunk-7MM5YU4N.js} +1 -1
- package/public/{chunk-L4DBDSHB.js → chunk-7NGHFZ25.js} +1 -1
- package/public/{chunk-HEMNUWDO.js → chunk-7NKNF62C.js} +1 -1
- package/public/{chunk-MOCPJJF3.js → chunk-A7Z6YHW7.js} +1 -1
- package/public/chunk-AA42EIVS.js +1 -0
- package/public/{chunk-OI57SN2B.js → chunk-ATW76YSS.js} +1 -1
- package/public/{chunk-CLRF6AUJ.js → chunk-BSRU73R7.js} +1 -1
- package/public/{chunk-RFWUHIJ5.js → chunk-DIFHTODX.js} +1 -1
- package/public/chunk-DPGUG6HS.js +1 -0
- package/public/{chunk-NAFR5P6T.js → chunk-E4BETMNF.js} +1 -1
- package/public/chunk-EAPNOWW2.js +1 -0
- package/public/{chunk-ABI2LUSA.js → chunk-ESFFXEOC.js} +1 -1
- package/public/{chunk-WGP32ABK.js → chunk-FUZVZJ3L.js} +1 -1
- package/public/chunk-FVRT2MUG.js +1 -0
- package/public/{chunk-O5XYQE2Q.js → chunk-GWSPD7C7.js} +1 -1
- package/public/{chunk-KKIRFTQL.js → chunk-GZJQ6JWD.js} +1 -1
- package/public/{chunk-YTVVSAM2.js → chunk-HCNL2IXJ.js} +1 -1
- package/public/{chunk-2HDJYV7P.js → chunk-HUDUFJKA.js} +1 -1
- package/public/chunk-HXETPUGR.js +1 -0
- package/public/{chunk-GLHOQ5NF.js → chunk-IYGRQ74X.js} +1 -1
- package/public/{chunk-5HMI3475.js → chunk-IYO4QA36.js} +1 -1
- package/public/{chunk-CYW4JA4J.js → chunk-JPW5L5TP.js} +1 -1
- package/public/{chunk-BS6X2RZL.js → chunk-L7E3SMFV.js} +1 -1
- package/public/{chunk-WACROBL3.js → chunk-LHNRSYGN.js} +1 -1
- package/public/{chunk-3MYZ74PN.js → chunk-LXFHVH4F.js} +1 -1
- package/public/{chunk-IPT5RIJX.js → chunk-N3KQISSE.js} +1 -1
- package/public/{chunk-HGUYWCTI.js → chunk-ND3LAXKV.js} +1 -1
- package/public/{chunk-YU3C2YTO.js → chunk-NL72Q4WH.js} +1 -1
- package/public/chunk-PDEVRKXM.js +1 -0
- package/public/chunk-PE752VCZ.js +1 -0
- package/public/{chunk-7X5P6T37.js → chunk-QGSYKEI7.js} +1 -1
- package/public/{chunk-H2OOFTLR.js → chunk-QKMELSC5.js} +1 -1
- package/public/{chunk-TCXWRDYD.js → chunk-QOVS4JL2.js} +1 -1
- package/public/chunk-QP5IJFMR.js +1 -0
- package/public/{chunk-IGYTH5AX.js → chunk-QREBJA53.js} +1 -1
- package/public/{chunk-MMD3VZMJ.js → chunk-RJG6OG4S.js} +1 -1
- package/public/{chunk-J4CB3RFZ.js → chunk-RMUGQZNR.js} +1 -1
- package/public/{chunk-OJE7KDWZ.js → chunk-SKU573MT.js} +1 -1
- package/public/{chunk-DNQFYNG6.js → chunk-UIXER4XT.js} +1 -1
- package/public/{chunk-GSGK2SKG.js → chunk-UUSHKTVD.js} +1 -1
- package/public/chunk-WX6GQCUJ.js +1 -0
- package/public/chunk-XGVMAKSJ.js +1 -0
- package/public/{chunk-LCRNBCRA.js → chunk-YN5L2RPU.js} +1 -1
- package/public/{chunk-7C3VZ3TZ.js → chunk-ZAM7TDUI.js} +1 -1
- package/public/chunk-ZKBN6A26.js +1 -0
- package/public/{chunk-LZSQNNXJ.js → chunk-ZRCHGCUM.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-Y4KA67ZE.js +1 -0
- package/public/{styles-6IKEC5B4.css → styles-B6MA4MCW.css} +1 -1
- package/public/chunk-2PYGXL3S.js +0 -1
- package/public/chunk-3JURJEIZ.js +0 -1
- package/public/chunk-B75MYCJS.js +0 -1
- package/public/chunk-BTB3JIDJ.js +0 -1
- package/public/chunk-H2GFXLCD.js +0 -1
- package/public/chunk-NRSBQVRN.js +0 -1
- package/public/chunk-PCYP2KRX.js +0 -1
- package/public/chunk-QJ75M7UB.js +0 -1
- package/public/chunk-T2YC5S4T.js +0 -1
- package/public/chunk-TWDTF4UX.js +0 -1
- package/public/chunk-UCQRW7SR.js +0 -1
- package/public/chunk-VDSVEHQG.js +0 -1
- package/public/chunk-YWMHIHWJ.js +0 -1
- package/public/chunk-Z7QXZUQS.js +0 -1
- package/public/chunk-ZB3BYZDQ.js +0 -1
- package/public/main-26CAD2XH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as eu,b as Qg}from"./chunk-IGYTH5AX.js";import{a as S1}from"./chunk-KPW2P5T4.js";import{a as Xi,b as Yi}from"./chunk-CUKPSGYS.js";import{a as P1}from"./chunk-I6OD3CV4.js";import{a as M1}from"./chunk-F5ICJKYI.js";import{a as O1}from"./chunk-AFY7IWPI.js";import{a as tf}from"./chunk-ZIXTTJ4W.js";import{a as k1,b as $1}from"./chunk-44K5XVZH.js";import{a as Ia}from"./chunk-XSS6G7LC.js";import{a as T1}from"./chunk-TEFE7EK6.js";import{a as Fr,b as Cr,c as hr,d as gr,e as Er,f as br,g as Gi,m as ye,n as ut,o as Ki}from"./chunk-W2INV3O5.js";import{a as _1,b as zi,c as Hi,e as _t,f as y1,h as v1,i as B1,k as x1,l as Ku,m as w1,o as Ui,r as Wi,s as Ei,t as bi,x as I1,y as Qt,z as wa}from"./chunk-4UVD743J.js";import{a as Ji}from"./chunk-TYEF6KNJ.js";import{d as lu}from"./chunk-DBUCH6BG.js";import{a as A1}from"./chunk-OJE7KDWZ.js";import{b as qe}from"./chunk-TCXWRDYD.js";import{h as be,j as Ju,k as Ce}from"./chunk-MOCPJJF3.js";import{e as b1}from"./chunk-GDFC3M3E.js";import{a as Ee,b as ve}from"./chunk-FETTFNJ2.js";import{$c as Rt,Ac as vu,Bc as Li,Ca as l1,Cc as v,D as r1,Da as dr,Dc as B,Ec as Xe,Fa as Ct,Ga as z,Ha as Lu,Ia as cr,Ic as g1,Jb as K,Kb as E,Lb as Yt,M as lr,Mb as Hu,Nb as Z,Ob as p1,Pb as w,Rb as it,Sb as nt,Tb as ft,Ub as c,Vb as p,Wb as I,Xb as m1,Yb as F1,Z as ya,_b as U,a as X,aa as ef,ad as gi,b as we,bc as M,bd as ht,cb as de,cc as h,e as F,ed as E1,fa as o1,fb as d1,g as Ue,ga as Tt,gb as l,gc as va,h as G,ha as Vi,hc as Ba,ic as xa,id as mr,ja as a1,jc as Uu,k as u1,kc as Wu,la as D1,lb as pr,ma as x,mb as bu,mc as _,n as $t,nc as H,o as _a,ob as hi,oc as q,pb as zu,pc as yu,q as i1,qc as C1,ta as Ru,tb as Y,tc as $e,ua as N,ub as Ri,uc as Te,v as n1,va as j,vb as _u,vc as Pe,w as De,wb as c1,wc as h1,x as f1,xa as s1,xc as Je,yc as Zt,zb as k,zc as Gu}from"./chunk-6ZN4TBLM.js";var ff=F(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.regexpCode=ge.getEsmExportName=ge.getProperty=ge.safeStringify=ge.stringify=ge.strConcat=ge.addCodeArg=ge.str=ge._=ge.nil=ge._Code=ge.Name=ge.IDENTIFIER=ge._CodeOrName=void 0;var uf=class{};ge._CodeOrName=uf;ge.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var _i=class extends uf{constructor(u){if(super(),!ge.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ge.Name=_i;var Lt=class extends uf{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof _i&&(t[i.str]=(t[i.str]||0)+1),t),{})}};ge._Code=Lt;ge.nil=new Lt("");function N1(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Aa(t,u[i]),t.push(e[++i]);return new Lt(t)}ge._=N1;var Sa=new Lt("+");function j1(e,...u){let t=[nf(e[0])],i=0;for(;i<u.length;)t.push(Sa),Aa(t,u[i]),t.push(Sa,nf(e[++i]));return t4(t),new Lt(t)}ge.str=j1;function Aa(e,u){u instanceof Lt?e.push(...u._items):u instanceof _i?e.push(u):e.push(n4(u))}ge.addCodeArg=Aa;function t4(e){let u=1;for(;u<e.length-1;){if(e[u]===Sa){let t=u4(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function u4(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof _i||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof _i))return`"${e}${u.slice(1)}`}function i4(e,u){return u.emptyStr()?e:e.emptyStr()?u:j1`${e}${u}`}ge.strConcat=i4;function n4(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:nf(Array.isArray(e)?e.join(","):e)}function f4(e){return new Lt(nf(e))}ge.stringify=f4;function nf(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ge.safeStringify=nf;function r4(e){return typeof e=="string"&&ge.IDENTIFIER.test(e)?new Lt(`.${e}`):N1`[${e}]`}ge.getProperty=r4;function o4(e){if(typeof e=="string"&&ge.IDENTIFIER.test(e))return new Lt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ge.getEsmExportName=o4;function a4(e){return new Lt(e.toString())}ge.regexpCode=a4});var Ta=F(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.ValueScope=vt.ValueScopeName=vt.Scope=vt.varKinds=vt.UsedValueState=void 0;var yt=ff(),ka=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},_r=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(_r||(vt.UsedValueState=_r={}));vt.varKinds={const:new yt.Name("const"),let:new yt.Name("let"),var:new yt.Name("var")};var yr=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof yt.Name?u:this.name(u)}name(u){return new yt.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};vt.Scope=yr;var vr=class extends yt.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,yt._)`.${new yt.Name(t)}[${i}]`}};vt.ValueScopeName=vr;var D4=(0,yt._)`\n`,$a=class extends yr{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=we(X({},u),{_n:u.lines?D4:yt.nil})}get(){return this._scope}name(u){return new vr(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let s=o.get(r);if(s)return s}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,yt._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=yt.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,_r.Started);let s=t(D);if(s){let d=this.opts.es5?vt.varKinds.var:vt.varKinds.const;f=(0,yt._)`${f}${d} ${D} = ${s};${this.opts._n}`}else if(s=n==null?void 0:n(D))f=(0,yt._)`${f}${s}${this.opts._n}`;else throw new ka(D);a.set(D,_r.Completed)})}return f}};vt.ValueScope=$a});var fe=F(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.or=ae.and=ae.not=ae.CodeGen=ae.operators=ae.varKinds=ae.ValueScopeName=ae.ValueScope=ae.Scope=ae.Name=ae.regexpCode=ae.stringify=ae.getProperty=ae.nil=ae.strConcat=ae.str=ae._=void 0;var me=ff(),tu=Ta(),Xu=ff();Object.defineProperty(ae,"_",{enumerable:!0,get:function(){return Xu._}});Object.defineProperty(ae,"str",{enumerable:!0,get:function(){return Xu.str}});Object.defineProperty(ae,"strConcat",{enumerable:!0,get:function(){return Xu.strConcat}});Object.defineProperty(ae,"nil",{enumerable:!0,get:function(){return Xu.nil}});Object.defineProperty(ae,"getProperty",{enumerable:!0,get:function(){return Xu.getProperty}});Object.defineProperty(ae,"stringify",{enumerable:!0,get:function(){return Xu.stringify}});Object.defineProperty(ae,"regexpCode",{enumerable:!0,get:function(){return Xu.regexpCode}});Object.defineProperty(ae,"Name",{enumerable:!0,get:function(){return Xu.Name}});var Sr=Ta();Object.defineProperty(ae,"Scope",{enumerable:!0,get:function(){return Sr.Scope}});Object.defineProperty(ae,"ValueScope",{enumerable:!0,get:function(){return Sr.ValueScope}});Object.defineProperty(ae,"ValueScopeName",{enumerable:!0,get:function(){return Sr.ValueScopeName}});Object.defineProperty(ae,"varKinds",{enumerable:!0,get:function(){return Sr.varKinds}});ae.operators={GT:new me._Code(">"),GTE:new me._Code(">="),LT:new me._Code("<"),LTE:new me._Code("<="),EQ:new me._Code("==="),NEQ:new me._Code("!=="),NOT:new me._Code("!"),OR:new me._Code("||"),AND:new me._Code("&&"),ADD:new me._Code("+")};var Bu=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},Pa=class extends Bu{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?tu.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=Qi(this.rhs,u,t)),this}get names(){return this.rhs instanceof me._CodeOrName?this.rhs.names:{}}},xr=class extends Bu{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof me.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=Qi(this.rhs,u,t),this}get names(){let u=this.lhs instanceof me.Name?{}:X({},this.lhs.names);return Ir(u,this.rhs)}},Oa=class extends xr{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Ma=class extends Bu{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Na=class extends Bu{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},ja=class extends Bu{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},qa=class extends Bu{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=Qi(this.code,u,t),this}get names(){return this.code instanceof me._CodeOrName?this.code.names:{}}},rf=class extends Bu{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(s4(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>yi(u,t.names),{})}},xu=class extends rf{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Va=class extends rf{},Ra=(()=>{class e extends xu{}return e.kind="else",e})(),Br=(()=>{class e extends xu{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ra(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(z1(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=Qi(this.condition,t,i),this}get names(){let t=super.names;return Ir(t,this.condition),this.else&&yi(t,this.else.names),t}}return e.kind="if",e})(),Ar=(()=>{class e extends xu{}return e.kind="for",e})(),La=class extends Ar{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=Qi(this.iteration,u,t),this}get names(){return yi(super.names,this.iteration.names)}},za=class extends Ar{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?tu.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=Ir(super.names,this.from);return Ir(u,this.to)}},wr=class extends Ar{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=Qi(this.iterable,u,t),this}get names(){return yi(super.names,this.iterable.names)}},q1=(()=>{class e extends xu{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),V1=(()=>{class e extends rf{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ha=class extends xu{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&yi(u,this.catch.names),this.finally&&yi(u,this.finally.names),u}},R1=(()=>{class e extends xu{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),L1=(()=>{class e extends xu{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Ua=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=we(X({},t),{_n:t.lines?`
|
|
1
|
+
import{a as eu,b as Qg}from"./chunk-QREBJA53.js";import{a as S1}from"./chunk-KPW2P5T4.js";import{a as Xi,b as Yi}from"./chunk-CUKPSGYS.js";import{a as P1}from"./chunk-I6OD3CV4.js";import{a as M1}from"./chunk-6FWHLYBG.js";import{a as O1}from"./chunk-AFY7IWPI.js";import{a as tf}from"./chunk-ZIXTTJ4W.js";import{a as k1,b as $1}from"./chunk-44K5XVZH.js";import{a as Ia}from"./chunk-XSS6G7LC.js";import{a as T1}from"./chunk-TEFE7EK6.js";import{a as Fr,b as Cr,c as hr,d as gr,e as Er,f as br,g as Gi,m as ye,n as ut,o as Ki}from"./chunk-W2INV3O5.js";import{a as _1,b as zi,c as Hi,e as _t,f as y1,h as v1,i as B1,k as x1,l as Ku,m as w1,o as Ui,r as Wi,s as Ei,t as bi,x as I1,y as Qt,z as wa}from"./chunk-4UVD743J.js";import{a as Ji}from"./chunk-5NZGHO7L.js";import{d as lu}from"./chunk-DBUCH6BG.js";import{a as A1}from"./chunk-SKU573MT.js";import{b as qe}from"./chunk-QOVS4JL2.js";import{h as be,j as Ju,k as Ce}from"./chunk-A7Z6YHW7.js";import{e as b1}from"./chunk-GDFC3M3E.js";import{a as Ee,b as ve}from"./chunk-FETTFNJ2.js";import{$c as Rt,Ac as vu,Bc as Li,Ca as l1,Cc as v,D as r1,Da as dr,Dc as B,Ec as Xe,Fa as Ct,Ga as z,Ha as Lu,Ia as cr,Ic as g1,Jb as K,Kb as E,Lb as Yt,M as lr,Mb as Hu,Nb as Z,Ob as p1,Pb as w,Rb as it,Sb as nt,Tb as ft,Ub as c,Vb as p,Wb as I,Xb as m1,Yb as F1,Z as ya,_b as U,a as X,aa as ef,ad as gi,b as we,bc as M,bd as ht,cb as de,cc as h,e as F,ed as E1,fa as o1,fb as d1,g as Ue,ga as Tt,gb as l,gc as va,h as G,ha as Vi,hc as Ba,ic as xa,id as mr,ja as a1,jc as Uu,k as u1,kc as Wu,la as D1,lb as pr,ma as x,mb as bu,mc as _,n as $t,nc as H,o as _a,ob as hi,oc as q,pb as zu,pc as yu,q as i1,qc as C1,ta as Ru,tb as Y,tc as $e,ua as N,ub as Ri,uc as Te,v as n1,va as j,vb as _u,vc as Pe,w as De,wb as c1,wc as h1,x as f1,xa as s1,xc as Je,yc as Zt,zb as k,zc as Gu}from"./chunk-6ZN4TBLM.js";var ff=F(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.regexpCode=ge.getEsmExportName=ge.getProperty=ge.safeStringify=ge.stringify=ge.strConcat=ge.addCodeArg=ge.str=ge._=ge.nil=ge._Code=ge.Name=ge.IDENTIFIER=ge._CodeOrName=void 0;var uf=class{};ge._CodeOrName=uf;ge.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var _i=class extends uf{constructor(u){if(super(),!ge.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ge.Name=_i;var Lt=class extends uf{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof _i&&(t[i.str]=(t[i.str]||0)+1),t),{})}};ge._Code=Lt;ge.nil=new Lt("");function N1(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Aa(t,u[i]),t.push(e[++i]);return new Lt(t)}ge._=N1;var Sa=new Lt("+");function j1(e,...u){let t=[nf(e[0])],i=0;for(;i<u.length;)t.push(Sa),Aa(t,u[i]),t.push(Sa,nf(e[++i]));return t4(t),new Lt(t)}ge.str=j1;function Aa(e,u){u instanceof Lt?e.push(...u._items):u instanceof _i?e.push(u):e.push(n4(u))}ge.addCodeArg=Aa;function t4(e){let u=1;for(;u<e.length-1;){if(e[u]===Sa){let t=u4(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function u4(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof _i||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof _i))return`"${e}${u.slice(1)}`}function i4(e,u){return u.emptyStr()?e:e.emptyStr()?u:j1`${e}${u}`}ge.strConcat=i4;function n4(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:nf(Array.isArray(e)?e.join(","):e)}function f4(e){return new Lt(nf(e))}ge.stringify=f4;function nf(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ge.safeStringify=nf;function r4(e){return typeof e=="string"&&ge.IDENTIFIER.test(e)?new Lt(`.${e}`):N1`[${e}]`}ge.getProperty=r4;function o4(e){if(typeof e=="string"&&ge.IDENTIFIER.test(e))return new Lt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ge.getEsmExportName=o4;function a4(e){return new Lt(e.toString())}ge.regexpCode=a4});var Ta=F(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.ValueScope=vt.ValueScopeName=vt.Scope=vt.varKinds=vt.UsedValueState=void 0;var yt=ff(),ka=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},_r=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(_r||(vt.UsedValueState=_r={}));vt.varKinds={const:new yt.Name("const"),let:new yt.Name("let"),var:new yt.Name("var")};var yr=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof yt.Name?u:this.name(u)}name(u){return new yt.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};vt.Scope=yr;var vr=class extends yt.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,yt._)`.${new yt.Name(t)}[${i}]`}};vt.ValueScopeName=vr;var D4=(0,yt._)`\n`,$a=class extends yr{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=we(X({},u),{_n:u.lines?D4:yt.nil})}get(){return this._scope}name(u){return new vr(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let s=o.get(r);if(s)return s}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,yt._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=yt.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,_r.Started);let s=t(D);if(s){let d=this.opts.es5?vt.varKinds.var:vt.varKinds.const;f=(0,yt._)`${f}${d} ${D} = ${s};${this.opts._n}`}else if(s=n==null?void 0:n(D))f=(0,yt._)`${f}${s}${this.opts._n}`;else throw new ka(D);a.set(D,_r.Completed)})}return f}};vt.ValueScope=$a});var fe=F(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.or=ae.and=ae.not=ae.CodeGen=ae.operators=ae.varKinds=ae.ValueScopeName=ae.ValueScope=ae.Scope=ae.Name=ae.regexpCode=ae.stringify=ae.getProperty=ae.nil=ae.strConcat=ae.str=ae._=void 0;var me=ff(),tu=Ta(),Xu=ff();Object.defineProperty(ae,"_",{enumerable:!0,get:function(){return Xu._}});Object.defineProperty(ae,"str",{enumerable:!0,get:function(){return Xu.str}});Object.defineProperty(ae,"strConcat",{enumerable:!0,get:function(){return Xu.strConcat}});Object.defineProperty(ae,"nil",{enumerable:!0,get:function(){return Xu.nil}});Object.defineProperty(ae,"getProperty",{enumerable:!0,get:function(){return Xu.getProperty}});Object.defineProperty(ae,"stringify",{enumerable:!0,get:function(){return Xu.stringify}});Object.defineProperty(ae,"regexpCode",{enumerable:!0,get:function(){return Xu.regexpCode}});Object.defineProperty(ae,"Name",{enumerable:!0,get:function(){return Xu.Name}});var Sr=Ta();Object.defineProperty(ae,"Scope",{enumerable:!0,get:function(){return Sr.Scope}});Object.defineProperty(ae,"ValueScope",{enumerable:!0,get:function(){return Sr.ValueScope}});Object.defineProperty(ae,"ValueScopeName",{enumerable:!0,get:function(){return Sr.ValueScopeName}});Object.defineProperty(ae,"varKinds",{enumerable:!0,get:function(){return Sr.varKinds}});ae.operators={GT:new me._Code(">"),GTE:new me._Code(">="),LT:new me._Code("<"),LTE:new me._Code("<="),EQ:new me._Code("==="),NEQ:new me._Code("!=="),NOT:new me._Code("!"),OR:new me._Code("||"),AND:new me._Code("&&"),ADD:new me._Code("+")};var Bu=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},Pa=class extends Bu{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?tu.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=Qi(this.rhs,u,t)),this}get names(){return this.rhs instanceof me._CodeOrName?this.rhs.names:{}}},xr=class extends Bu{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof me.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=Qi(this.rhs,u,t),this}get names(){let u=this.lhs instanceof me.Name?{}:X({},this.lhs.names);return Ir(u,this.rhs)}},Oa=class extends xr{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Ma=class extends Bu{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Na=class extends Bu{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},ja=class extends Bu{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},qa=class extends Bu{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=Qi(this.code,u,t),this}get names(){return this.code instanceof me._CodeOrName?this.code.names:{}}},rf=class extends Bu{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(s4(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>yi(u,t.names),{})}},xu=class extends rf{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Va=class extends rf{},Ra=(()=>{class e extends xu{}return e.kind="else",e})(),Br=(()=>{class e extends xu{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ra(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(z1(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=Qi(this.condition,t,i),this}get names(){let t=super.names;return Ir(t,this.condition),this.else&&yi(t,this.else.names),t}}return e.kind="if",e})(),Ar=(()=>{class e extends xu{}return e.kind="for",e})(),La=class extends Ar{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=Qi(this.iteration,u,t),this}get names(){return yi(super.names,this.iteration.names)}},za=class extends Ar{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?tu.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=Ir(super.names,this.from);return Ir(u,this.to)}},wr=class extends Ar{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=Qi(this.iterable,u,t),this}get names(){return yi(super.names,this.iterable.names)}},q1=(()=>{class e extends xu{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),V1=(()=>{class e extends rf{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ha=class extends xu{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&yi(u,this.catch.names),this.finally&&yi(u,this.finally.names),u}},R1=(()=>{class e extends xu{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),L1=(()=>{class e extends xu{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Ua=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=we(X({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=u,this._scope=new tu.Scope({parent:u}),this._nodes=[new Va]}toString(){return this._root.render(this.opts)}name(u){return this._scope.name(u)}scopeName(u){return this._extScope.name(u)}scopeValue(u,t){let i=this._extScope.value(u,t);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(u,t){return this._extScope.getValue(u,t)}scopeRefs(u){return this._extScope.scopeRefs(u,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(u,t,i,n){let f=this._scope.toName(t);return i!==void 0&&n&&(this._constants[f.str]=i),this._leafNode(new Pa(u,f,i)),f}const(u,t,i){return this._def(tu.varKinds.const,u,t,i)}let(u,t,i){return this._def(tu.varKinds.let,u,t,i)}var(u,t,i){return this._def(tu.varKinds.var,u,t,i)}assign(u,t,i){return this._leafNode(new xr(u,t,i))}add(u,t){return this._leafNode(new Oa(u,ae.operators.ADD,t))}code(u){return typeof u=="function"?u():u!==me.nil&&this._leafNode(new qa(u)),this}object(...u){let t=["{"];for(let[i,n]of u)t.length>1&&t.push(","),t.push(i),(i!==n||this.opts.es5)&&(t.push(":"),(0,me.addCodeArg)(t,n));return t.push("}"),new me._Code(t)}if(u,t,i){if(this._blockNode(new Br(u)),t&&i)this.code(t).else().code(i).endIf();else if(t)this.code(t).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(u){return this._elseNode(new Br(u))}else(){return this._elseNode(new Ra)}endIf(){return this._endBlockNode(Br,Ra)}_for(u,t){return this._blockNode(u),t&&this.code(t).endFor(),this}for(u,t){return this._for(new La(u),t)}forRange(u,t,i,n,f=this.opts.es5?tu.varKinds.var:tu.varKinds.let){let r=this._scope.toName(u);return this._for(new za(f,r,t,i),()=>n(r))}forOf(u,t,i,n=tu.varKinds.const){let f=this._scope.toName(u);if(this.opts.es5){let r=t instanceof me.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,me._)`${r}.length`,o=>{this.var(f,(0,me._)`${r}[${o}]`),i(f)})}return this._for(new wr("of",n,f,t),()=>i(f))}forIn(u,t,i,n=this.opts.es5?tu.varKinds.var:tu.varKinds.const){if(this.opts.ownProperties)return this.forOf(u,(0,me._)`Object.keys(${t})`,i);let f=this._scope.toName(u);return this._for(new wr("in",n,f,t),()=>i(f))}endFor(){return this._endBlockNode(Ar)}label(u){return this._leafNode(new Ma(u))}break(u){return this._leafNode(new Na(u))}return(u){let t=new V1;if(this._blockNode(t),this.code(u),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(V1)}try(u,t,i){if(!t&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Ha;if(this._blockNode(n),this.code(u),t){let f=this.name("e");this._currNode=n.catch=new R1(f),t(f)}return i&&(this._currNode=n.finally=new L1,this.code(i)),this._endBlockNode(R1,L1)}throw(u){return this._leafNode(new ja(u))}block(u,t){return this._blockStarts.push(this._nodes.length),u&&this.code(u).endBlock(t),this}endBlock(u){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-t;if(i<0||u!==void 0&&i!==u)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${u} expected`);return this._nodes.length=t,this}func(u,t=me.nil,i,n){return this._blockNode(new q1(u,t,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(q1)}optimize(u=1){for(;u-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(u){return this._currNode.nodes.push(u),this}_blockNode(u){this._currNode.nodes.push(u),this._nodes.push(u)}_endBlockNode(u,t){let i=this._currNode;if(i instanceof u||t&&i instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${u.kind}/${t.kind}`:u.kind}"`)}_elseNode(u){let t=this._currNode;if(!(t instanceof Br))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=u,this}get _root(){return this._nodes[0]}get _currNode(){let u=this._nodes;return u[u.length-1]}set _currNode(u){let t=this._nodes;t[t.length-1]=u}};ae.CodeGen=Ua;function yi(e,u){for(let t in u)e[t]=(e[t]||0)+(u[t]||0);return e}function Ir(e,u){return u instanceof me._CodeOrName?yi(e,u.names):e}function Qi(e,u,t){if(e instanceof me.Name)return i(e);if(!n(e))return e;return new me._Code(e._items.reduce((f,r)=>(r instanceof me.Name&&(r=i(r)),r instanceof me._Code?f.push(...r._items):f.push(r),f),[]));function i(f){let r=t[f.str];return r===void 0||u[f.str]!==1?f:(delete u[f.str],r)}function n(f){return f instanceof me._Code&&f._items.some(r=>r instanceof me.Name&&u[r.str]===1&&t[r.str]!==void 0)}}function s4(e,u){for(let t in u)e[t]=(e[t]||0)-(u[t]||0)}function z1(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,me._)`!${Wa(e)}`}ae.not=z1;var l4=H1(ae.operators.AND);function d4(...e){return e.reduce(l4)}ae.and=d4;var c4=H1(ae.operators.OR);function p4(...e){return e.reduce(c4)}ae.or=p4;function H1(e){return(u,t)=>u===me.nil?t:t===me.nil?u:(0,me._)`${Wa(u)} ${e} ${Wa(t)}`}function Wa(e){return e instanceof me.Name?e:(0,me._)`(${e})`}});var le=F(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.checkStrictMode=se.getErrorPath=se.Type=se.useFunc=se.setEvaluated=se.evaluatedPropsToName=se.mergeEvaluated=se.eachItem=se.unescapeJsonPointer=se.escapeJsonPointer=se.escapeFragment=se.unescapeFragment=se.schemaRefOrVal=se.schemaHasRulesButRef=se.schemaHasRules=se.checkUnknownRules=se.alwaysValidSchema=se.toHash=void 0;var Ie=fe(),m4=ff();function F4(e){let u={};for(let t of e)u[t]=!0;return u}se.toHash=F4;function C4(e,u){return typeof u=="boolean"?u:Object.keys(u).length===0?!0:(G1(e,u),!K1(u,e.self.RULES.all))}se.alwaysValidSchema=C4;function G1(e,u=e.schema){let{opts:t,self:i}=e;if(!t.strictSchema||typeof u=="boolean")return;let n=i.RULES.keywords;for(let f in u)n[f]||Y1(e,`unknown keyword: "${f}"`)}se.checkUnknownRules=G1;function K1(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(u[t])return!0;return!1}se.schemaHasRules=K1;function h4(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&u.all[t])return!0;return!1}se.schemaHasRulesButRef=h4;function g4({topSchemaRef:e,schemaPath:u},t,i,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,Ie._)`${t}`}return(0,Ie._)`${e}${u}${(0,Ie.getProperty)(i)}`}se.schemaRefOrVal=g4;function E4(e){return J1(decodeURIComponent(e))}se.unescapeFragment=E4;function b4(e){return encodeURIComponent(Ka(e))}se.escapeFragment=b4;function Ka(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}se.escapeJsonPointer=Ka;function J1(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}se.unescapeJsonPointer=J1;function _4(e,u){if(Array.isArray(e))for(let t of e)u(t);else u(e)}se.eachItem=_4;function U1({mergeNames:e,mergeToName:u,mergeValues:t,resultToName:i}){return(n,f,r,o)=>{let a=r===void 0?f:r instanceof Ie.Name?(f instanceof Ie.Name?e(n,f,r):u(n,f,r),r):f instanceof Ie.Name?(u(n,r,f),f):t(f,r);return o===Ie.Name&&!(a instanceof Ie.Name)?i(n,a):a}}se.mergeEvaluated={props:U1({mergeNames:(e,u,t)=>e.if((0,Ie._)`${t} !== true && ${u} !== undefined`,()=>{e.if((0,Ie._)`${u} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,Ie._)`${t} || {}`).code((0,Ie._)`Object.assign(${t}, ${u})`))}),mergeToName:(e,u,t)=>e.if((0,Ie._)`${t} !== true`,()=>{u===!0?e.assign(t,!0):(e.assign(t,(0,Ie._)`${t} || {}`),Ja(e,t,u))}),mergeValues:(e,u)=>e===!0?!0:X(X({},e),u),resultToName:X1}),items:U1({mergeNames:(e,u,t)=>e.if((0,Ie._)`${t} !== true && ${u} !== undefined`,()=>e.assign(t,(0,Ie._)`${u} === true ? true : ${t} > ${u} ? ${t} : ${u}`)),mergeToName:(e,u,t)=>e.if((0,Ie._)`${t} !== true`,()=>e.assign(t,u===!0?!0:(0,Ie._)`${t} > ${u} ? ${t} : ${u}`)),mergeValues:(e,u)=>e===!0?!0:Math.max(e,u),resultToName:(e,u)=>e.var("items",u)})};function X1(e,u){if(u===!0)return e.var("props",!0);let t=e.var("props",(0,Ie._)`{}`);return u!==void 0&&Ja(e,t,u),t}se.evaluatedPropsToName=X1;function Ja(e,u,t){Object.keys(t).forEach(i=>e.assign((0,Ie._)`${u}${(0,Ie.getProperty)(i)}`,!0))}se.setEvaluated=Ja;var W1={};function y4(e,u){return e.scopeValue("func",{ref:u,code:W1[u.code]||(W1[u.code]=new m4._Code(u.code))})}se.useFunc=y4;var Ga=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(Ga||(se.Type=Ga={}));function v4(e,u,t){if(e instanceof Ie.Name){let i=u===Ga.Num;return t?i?(0,Ie._)`"[" + ${e} + "]"`:(0,Ie._)`"['" + ${e} + "']"`:i?(0,Ie._)`"/" + ${e}`:(0,Ie._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,Ie.getProperty)(e).toString():"/"+Ka(e)}se.getErrorPath=v4;function Y1(e,u,t=e.opts.strictSchema){if(t){if(u=`strict mode: ${u}`,t===!0)throw new Error(u);e.self.logger.warn(u)}}se.checkStrictMode=Y1});var zt=F(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var st=fe(),B4={data:new st.Name("data"),valCxt:new st.Name("valCxt"),instancePath:new st.Name("instancePath"),parentData:new st.Name("parentData"),parentDataProperty:new st.Name("parentDataProperty"),rootData:new st.Name("rootData"),dynamicAnchors:new st.Name("dynamicAnchors"),vErrors:new st.Name("vErrors"),errors:new st.Name("errors"),this:new st.Name("this"),self:new st.Name("self"),scope:new st.Name("scope"),json:new st.Name("json"),jsonPos:new st.Name("jsonPos"),jsonLen:new st.Name("jsonLen"),jsonPart:new st.Name("jsonPart")};Xa.default=B4});var of=F(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.extendErrors=lt.resetErrorsCount=lt.reportExtraError=lt.reportError=lt.keyword$DataError=lt.keywordError=void 0;var he=fe(),kr=le(),gt=zt();lt.keywordError={message:({keyword:e})=>(0,he.str)`must pass "${e}" keyword validation`};lt.keyword$DataError={message:({keyword:e,schemaType:u})=>u?(0,he.str)`"${e}" keyword must be ${u} ($data)`:(0,he.str)`"${e}" keyword is invalid ($data)`};function x4(e,u=lt.keywordError,t,i){let{it:n}=e,{gen:f,compositeRule:r,allErrors:o}=n,a=el(e,u,t);(i!=null?i:r||o)?Z1(f,a):Q1(n,(0,he._)`[${a}]`)}lt.reportError=x4;function w4(e,u=lt.keywordError,t){let{it:i}=e,{gen:n,compositeRule:f,allErrors:r}=i,o=el(e,u,t);Z1(n,o),f||r||Q1(i,gt.default.vErrors)}lt.reportExtraError=w4;function I4(e,u){e.assign(gt.default.errors,u),e.if((0,he._)`${gt.default.vErrors} !== null`,()=>e.if(u,()=>e.assign((0,he._)`${gt.default.vErrors}.length`,u),()=>e.assign(gt.default.vErrors,null)))}lt.resetErrorsCount=I4;function S4({gen:e,keyword:u,schemaValue:t,data:i,errsCount:n,it:f}){if(n===void 0)throw new Error("ajv implementation error");let r=e.name("err");e.forRange("i",n,gt.default.errors,o=>{e.const(r,(0,he._)`${gt.default.vErrors}[${o}]`),e.if((0,he._)`${r}.instancePath === undefined`,()=>e.assign((0,he._)`${r}.instancePath`,(0,he.strConcat)(gt.default.instancePath,f.errorPath))),e.assign((0,he._)`${r}.schemaPath`,(0,he.str)`${f.errSchemaPath}/${u}`),f.opts.verbose&&(e.assign((0,he._)`${r}.schema`,t),e.assign((0,he._)`${r}.data`,i))})}lt.extendErrors=S4;function Z1(e,u){let t=e.const("err",u);e.if((0,he._)`${gt.default.vErrors} === null`,()=>e.assign(gt.default.vErrors,(0,he._)`[${t}]`),(0,he._)`${gt.default.vErrors}.push(${t})`),e.code((0,he._)`${gt.default.errors}++`)}function Q1(e,u){let{gen:t,validateName:i,schemaEnv:n}=e;n.$async?t.throw((0,he._)`new ${e.ValidationError}(${u})`):(t.assign((0,he._)`${i}.errors`,u),t.return(!1))}var vi={keyword:new he.Name("keyword"),schemaPath:new he.Name("schemaPath"),params:new he.Name("params"),propertyName:new he.Name("propertyName"),message:new he.Name("message"),schema:new he.Name("schema"),parentSchema:new he.Name("parentSchema")};function el(e,u,t){let{createErrors:i}=e.it;return i===!1?(0,he._)`{}`:A4(e,u,t)}function A4(e,u,t={}){let{gen:i,it:n}=e,f=[k4(n,t),$4(e,t)];return T4(e,u,f),i.object(...f)}function k4({errorPath:e},{instancePath:u}){let t=u?(0,he.str)`${e}${(0,kr.getErrorPath)(u,kr.Type.Str)}`:e;return[gt.default.instancePath,(0,he.strConcat)(gt.default.instancePath,t)]}function $4({keyword:e,it:{errSchemaPath:u}},{schemaPath:t,parentSchema:i}){let n=i?u:(0,he.str)`${u}/${e}`;return t&&(n=(0,he.str)`${n}${(0,kr.getErrorPath)(t,kr.Type.Str)}`),[vi.schemaPath,n]}function T4(e,{params:u,message:t},i){let{keyword:n,data:f,schemaValue:r,it:o}=e,{opts:a,propertyName:D,topSchemaRef:s,schemaPath:d}=o;i.push([vi.keyword,n],[vi.params,typeof u=="function"?u(e):u||(0,he._)`{}`]),a.messages&&i.push([vi.message,typeof t=="function"?t(e):t]),a.verbose&&i.push([vi.schema,r],[vi.parentSchema,(0,he._)`${s}${d}`],[gt.default.data,f]),D&&i.push([vi.propertyName,D])}});var ul=F(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.boolOrEmptySchema=en.topBoolOrEmptySchema=void 0;var P4=of(),O4=fe(),M4=zt(),N4={message:"boolean schema is false"};function j4(e){let{gen:u,schema:t,validateName:i}=e;t===!1?tl(e,!1):typeof t=="object"&&t.$async===!0?u.return(M4.default.data):(u.assign((0,O4._)`${i}.errors`,null),u.return(!0))}en.topBoolOrEmptySchema=j4;function q4(e,u){let{gen:t,schema:i}=e;i===!1?(t.var(u,!1),tl(e)):t.var(u,!0)}en.boolOrEmptySchema=q4;function tl(e,u){let{gen:t,data:i}=e,n={gen:t,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,P4.reportError)(n,N4,void 0,u)}});var Ya=F(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getRules=tn.isJSONType=void 0;var V4=["string","number","integer","boolean","null","object","array"],R4=new Set(V4);function L4(e){return typeof e=="string"&&R4.has(e)}tn.isJSONType=L4;function z4(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:we(X({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}tn.getRules=z4});var Za=F(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.shouldUseRule=Yu.shouldUseGroup=Yu.schemaHasRulesForType=void 0;function H4({schema:e,self:u},t){let i=u.RULES.types[t];return i&&i!==!0&&il(e,i)}Yu.schemaHasRulesForType=H4;function il(e,u){return u.rules.some(t=>nl(e,t))}Yu.shouldUseGroup=il;function nl(e,u){var t;return e[u.keyword]!==void 0||((t=u.definition.implements)===null||t===void 0?void 0:t.some(i=>e[i]!==void 0))}Yu.shouldUseRule=nl});var af=F(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var U4=Ya(),W4=Za(),G4=of(),re=fe(),fl=le(),un=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(un||(dt.DataType=un={}));function K4(e){let u=rl(e.type);if(u.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!u.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&u.push("null")}return u}dt.getSchemaTypes=K4;function rl(e){let u=Array.isArray(e)?e:e?[e]:[];if(u.every(U4.isJSONType))return u;throw new Error("type must be JSONType or JSONType[]: "+u.join(","))}dt.getJSONTypes=rl;function J4(e,u){let{gen:t,data:i,opts:n}=e,f=X4(u,n.coerceTypes),r=u.length>0&&!(f.length===0&&u.length===1&&(0,W4.schemaHasRulesForType)(e,u[0]));if(r){let o=eD(u,i,n.strictNumbers,un.Wrong);t.if(o,()=>{f.length?Y4(e,u,f):tD(e)})}return r}dt.coerceAndCheckDataType=J4;var ol=new Set(["string","number","integer","boolean","null"]);function X4(e,u){return u?e.filter(t=>ol.has(t)||u==="array"&&t==="array"):[]}function Y4(e,u,t){let{gen:i,data:n,opts:f}=e,r=i.let("dataType",(0,re._)`typeof ${n}`),o=i.let("coerced",(0,re._)`undefined`);f.coerceTypes==="array"&&i.if((0,re._)`${r} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,re._)`${n}[0]`).assign(r,(0,re._)`typeof ${n}`).if(eD(u,n,f.strictNumbers),()=>i.assign(o,n))),i.if((0,re._)`${o} !== undefined`);for(let D of t)(ol.has(D)||D==="array"&&f.coerceTypes==="array")&&a(D);i.else(),tD(e),i.endIf(),i.if((0,re._)`${o} !== undefined`,()=>{i.assign(n,o),Z4(e,o)});function a(D){switch(D){case"string":i.elseIf((0,re._)`${r} == "number" || ${r} == "boolean"`).assign(o,(0,re._)`"" + ${n}`).elseIf((0,re._)`${n} === null`).assign(o,(0,re._)`""`);return;case"number":i.elseIf((0,re._)`${r} == "boolean" || ${n} === null
|
|
3
3
|
|| (${r} == "string" && ${n} && ${n} == +${n})`).assign(o,(0,re._)`+${n}`);return;case"integer":i.elseIf((0,re._)`${r} === "boolean" || ${n} === null
|
|
4
4
|
|| (${r} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(o,(0,re._)`+${n}`);return;case"boolean":i.elseIf((0,re._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(o,!1).elseIf((0,re._)`${n} === "true" || ${n} === 1`).assign(o,!0);return;case"null":i.elseIf((0,re._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(o,null);return;case"array":i.elseIf((0,re._)`${r} === "string" || ${r} === "number"
|