@povio/openapi-codegen-cli 0.4.4 → 0.4.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.
- package/dist/generators/const/acl.const.d.ts +10 -0
- package/dist/generators/core/SchemaResolver.class.d.ts +2 -1
- package/dist/generators/core/endpoints/getEndpointAcl.d.ts +8 -0
- package/dist/generators/core/endpoints/getEndpointBody.d.ts +2 -2
- package/dist/generators/generate/generateAcl.d.ts +4 -0
- package/dist/generators/types/generate.d.ts +2 -1
- package/dist/generators/utils/generate/generate.acl.utils.d.ts +8 -0
- package/dist/generators/utils/generate/generate.imports.utils.d.ts +6 -0
- package/dist/generators/utils/hbs/hbs.acl.utils.d.ts +1 -0
- package/dist/generators/utils/openapi.utils.d.ts +5 -5
- package/dist/generators/utils/tag.utils.d.ts +3 -17
- package/dist/generators/utils/validation.utils.d.ts +1 -0
- package/dist/index.js +55 -55
- package/dist/sh.js +65 -65
- package/package.json +1 -1
- package/src/generators/templates/acl.hbs +27 -0
- package/src/generators/templates/app-acl.hbs +13 -0
- package/src/generators/templates/partials/casl-ability-function.hbs +12 -0
- package/src/generators/templates/partials/casl-ability-type.hbs +5 -0
package/dist/index.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var RS=Object.create;var ei=Object.defineProperty;var CS=Object.getOwnPropertyDescriptor;var qS=Object.getOwnPropertyNames;var jS=Object.getPrototypeOf,MS=Object.prototype.hasOwnProperty;var s=(e,t)=>ei(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),DS=(e,t)=>{for(var r in t)ei(e,r,{get:t[r],enumerable:!0})},jf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qS(t))!MS.call(e,i)&&i!==r&&ei(e,i,{get:()=>t[i],enumerable:!(n=CS(t,i))||n.enumerable});return e};var at=(e,t,r)=>(r=e!=null?RS(jS(e)):{},jf(t||!e||!e.__esModule?ei(r,"default",{value:e,enumerable:!0}):r,e)),LS=e=>jf(ei({},"__esModule",{value:!0}),e);var Ne=h((ke,Df)=>{"use strict";var yo=/^win/.test(process.platform),FS=/\//g,VS=/^(\w{2,}):\/\//i,Mf=Df.exports,BS=/~1/g,HS=/~0/g,$a=[/\?/g,"%3F",/\#/g,"%23"],Oa=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ke.parse=require("url").parse;ke.resolve=require("url").resolve;ke.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ke.getProtocol=s(function(t){let r=VS.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ke.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ke.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ke.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ke.isHttp=s(function(t){let r=Mf.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ke.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Mf.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ke.fromFileSystemPath=s(function(t){yo&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<$a.length;r+=2)t=t.replace($a[r],$a[r+1]);return t},"fromFileSystemPath");ke.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Oa.length;i+=2)t=t.replace(Oa[i],Oa[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),yo&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=yo?t:"/"+t)),yo&&!n&&(t=t.replace(FS,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ke.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(BS,"/").replace(HS,"~"))},"safePointerToPath")});var vo=h(ti=>{"use strict";var Lf=require("util"),US=Ne();ti.format=Lf.format;ti.inherits=Lf.inherits;ti.swaggerParamRegExp=/\{([^/}]+)}/g;var zS=["get","post","put","delete","patch","options","head","trace"];function Ea(e,t){if(e.url&&e.url.startsWith("/")){let r=US.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Ea,"fixServers");function GS(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Ea(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Ea(a,t)):zS.includes(o)&&i[o].servers&&i[o].servers.map(a=>Ea(a,t))})})}))}s(GS,"fixOasRelativeServers");ti.fixOasRelativeServers=GS});var _o=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getDeepKeys=rn.toJSON=void 0;var ZS=["function","symbol","undefined"],KS=["constructor","prototype","__proto__"],YS=Object.getPrototypeOf({});function WS(){let e={},t=this;for(let r of Ff(t))if(typeof r=="string"){let n=t[r],i=typeof n;ZS.includes(i)||(e[r]=n)}return e}s(WS,"toJSON");rn.toJSON=WS;function Ff(e,t=[]){let r=[];for(;e&&e!==YS;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(KS))n.delete(i);return n}s(Ff,"getDeepKeys");rn.getDeepKeys=Ff});var xa=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.addInspectMethod=nn.format=void 0;var Vf=require("util"),QS=_o(),Bf=Vf.inspect.custom||Symbol.for("nodejs.util.inspect.custom");nn.format=Vf.format;function JS(e){e[Bf]=XS}s(JS,"addInspectMethod");nn.addInspectMethod=JS;function XS(){let e={},t=this;for(let r of QS.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Bf],e}s(XS,"inspect")});var zf=h(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.lazyJoinStacks=ct.joinStacks=ct.isWritableStack=ct.isLazyStack=void 0;var e2=/\r?\n/,t2=/\bono[ @]/;function r2(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(r2,"isLazyStack");ct.isLazyStack=r2;function n2(e){return!!(!e||e.writable||typeof e.set=="function")}s(n2,"isWritableStack");ct.isWritableStack=n2;function Hf(e,t){let r=Uf(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
|
2
2
|
|
|
3
|
-
`+n:r||n}s(
|
|
4
|
-
`)}return e}s(
|
|
5
|
-
`:"")+r.message),{originalError:r,props:n,message:o}}s(Zb,"normalizeArgs");Yr.normalizeArgs=Zb});var Oa=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.Ono=void 0;var vo=Vp(),Hp=Bp(),Kb=mo(),Wb=$a;_o.Ono=Wb;function $a(e,t){t=Hp.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Hp.normalizeArgs(n,t),u=new e(a);return vo.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s($a,"Ono");$a.toJSON=s(function(t){return Kb.toJSON.call(t)},"toJSON");$a.extend=s(function(t,r,n){return n||r instanceof Error?vo.extendError(t,r,n):r?vo.extendError(t,void 0,r):vo.extendError(t)},"extend")});var Up=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.ono=void 0;var dr=Oa(),Yb=at;So.ono=Yb;at.error=new dr.Ono(Error);at.eval=new dr.Ono(EvalError);at.range=new dr.Ono(RangeError);at.reference=new dr.Ono(ReferenceError);at.syntax=new dr.Ono(SyntaxError);at.type=new dr.Ono(TypeError);at.uri=new dr.Ono(URIError);var Qb=at;function at(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Qb))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return at.error.apply(void 0,e)}s(at,"ono")});var Gp=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var IN=require("util")});var Ge=m((ze,Qr)=>{"use strict";var Jb=ze&&ze.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Xb=ze&&ze.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Jb(t,e,r)};Object.defineProperty(ze,"__esModule",{value:!0});ze.ono=void 0;var Zp=Up();Object.defineProperty(ze,"ono",{enumerable:!0,get:s(function(){return Zp.ono},"get")});var e2=Oa();Object.defineProperty(ze,"Ono",{enumerable:!0,get:s(function(){return e2.Ono},"get")});Xb(Gp(),ze);ze.default=Zp.ono;typeof Qr=="object"&&typeof Qr.exports=="object"&&(Qr.exports=Object.assign(Qr.exports.default,Qr.exports))});var ti=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var wa=class wa{};s(wa,"_CodeOrName");var Xn=wa;q._CodeOrName=Xn;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Aa=class Aa extends Xn{constructor(t){if(super(),!q.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Aa,"Name");var hr=Aa;q.Name=hr;var Ia=class Ia extends Xn{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof hr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Ia,"_Code");var je=Ia;q._Code=je;q.nil=new je("");function Kp(e,...t){let r=[e[0]],n=0;for(;n<t.length;)xa(r,t[n]),r.push(e[++n]);return new je(r)}s(Kp,"_");q._=Kp;var Ea=new je("+");function Wp(e,...t){let r=[ei(e[0])],n=0;for(;n<t.length;)r.push(Ea),xa(r,t[n]),r.push(Ea,ei(e[++n]));return t2(r),new je(r)}s(Wp,"str");q.str=Wp;function xa(e,t){t instanceof je?e.push(...t._items):t instanceof hr?e.push(t):e.push(i2(t))}s(xa,"addCodeArg");q.addCodeArg=xa;function t2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ea){let r=r2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(t2,"optimize");function r2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof hr||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof hr))return`"${e}${t.slice(1)}`}s(r2,"mergeExprItems");function n2(e,t){return t.emptyStr()?e:e.emptyStr()?t:Wp`${e}${t}`}s(n2,"strConcat");q.strConcat=n2;function i2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ei(Array.isArray(e)?e.join(","):e)}s(i2,"interpolate");function o2(e){return new je(ei(e))}s(o2,"stringify");q.stringify=o2;function ei(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ei,"safeStringify");q.safeStringify=ei;function s2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new je(`.${e}`):Kp`[${e}]`}s(s2,"getProperty");q.getProperty=s2;function a2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new je(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(a2,"getEsmExportName");q.getEsmExportName=a2;function u2(e){return new je(e.toString())}s(u2,"regexpCode");q.regexpCode=u2});var ja=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ValueScope=Ee.ValueScopeName=Ee.Scope=Ee.varKinds=Ee.UsedValueState=void 0;var Oe=ti(),Ta=class Ta extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Ta,"ValueError");var ka=Ta,bo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(bo||(Ee.UsedValueState=bo={}));Ee.varKinds={const:new Oe.Name("const"),let:new Oe.Name("let"),var:new Oe.Name("var")};var Ca=class Ca{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Oe.Name?t:this.name(t)}name(t){return new Oe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Ca,"Scope");var Po=Ca;Ee.Scope=Po;var Na=class Na extends Oe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Oe._)`.${new Oe.Name(r)}[${n}]`}};s(Na,"ValueScopeName");var $o=Na;Ee.ValueScopeName=$o;var c2=(0,Oe._)`\n`,qa=class qa extends Po{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?c2:Oe.nil}}get(){return this._scope}name(t){return new $o(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Oe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=Oe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,bo.Started);let p=r(l);if(p){let f=this.opts.es5?Ee.varKinds.var:Ee.varKinds.const;o=(0,Oe._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,Oe._)`${o}${p}${this.opts._n}`;else throw new ka(l);c.set(l,bo.Completed)})}return o}};s(qa,"ValueScope");var Ra=qa;Ee.ValueScope=Ra});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ti(),Ze=ja(),Lt=ti();Object.defineProperty(k,"_",{enumerable:!0,get:s(function(){return Lt._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:s(function(){return Lt.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:s(function(){return Lt.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:s(function(){return Lt.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:s(function(){return Lt.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:s(function(){return Lt.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:s(function(){return Lt.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:s(function(){return Lt.Name},"get")});var wo=ja();Object.defineProperty(k,"Scope",{enumerable:!0,get:s(function(){return wo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:s(function(){return wo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:s(function(){return wo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:s(function(){return wo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var Wa=class Wa{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Wa,"Node");var xt=Wa,Ya=class Ya extends xt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ze.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=en(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};s(Ya,"Def");var Ma=Ya,Qa=class Qa extends xt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=en(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return xo(t,this.rhs)}};s(Qa,"Assign");var Oo=Qa,Ja=class Ja extends Oo{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Ja,"AssignOp");var Da=Ja,Xa=class Xa extends xt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Xa,"Label");var La=Xa,eu=class eu extends xt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(eu,"Break");var Fa=eu,tu=class tu extends xt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(tu,"Throw");var Va=tu,ru=class ru extends xt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=en(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};s(ru,"AnyCode");var Ba=ru,nu=class nu extends xt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(l2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>yr(t,r.names),{})}};s(nu,"ParentNode");var ri=nu,iu=class iu extends ri{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(iu,"BlockNode");var wt=iu,ou=class ou extends ri{};s(ou,"Root");var Ha=ou,su=class su extends wt{};s(su,"Else");var Xr=su;Xr.kind="else";var Jr=class Jr extends wt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Xr(n):n}if(r)return t===!1?r instanceof Jr?r:r.nodes:this.nodes.length?this:new Jr(Yp(t),r instanceof Jr?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=en(this.condition,t,r),this}get names(){let t=super.names;return xo(t,this.condition),this.else&&yr(t,this.else.names),t}};s(Jr,"If");var mr=Jr;mr.kind="if";var au=class au extends wt{};s(au,"For");var gr=au;gr.kind="for";var uu=class uu extends gr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=en(this.iteration,t,r),this}get names(){return yr(super.names,this.iteration.names)}};s(uu,"ForLoop");var Ua=uu,cu=class cu extends gr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ze.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=xo(super.names,this.from);return xo(t,this.to)}};s(cu,"ForRange");var za=cu,lu=class lu extends gr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=en(this.iterable,t,r),this}get names(){return yr(super.names,this.iterable.names)}};s(lu,"ForIter");var Eo=lu,fu=class fu extends wt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(fu,"Func");var ni=fu;ni.kind="func";var pu=class pu extends ri{render(t){return"return "+super.render(t)}};s(pu,"Return");var ii=pu;ii.kind="return";var du=class du extends wt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&yr(t,this.catch.names),this.finally&&yr(t,this.finally.names),t}};s(du,"Try");var Ga=du,hu=class hu extends wt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(hu,"Catch");var oi=hu;oi.kind="catch";var mu=class mu extends wt{render(t){return"finally"+super.render(t)}};s(mu,"Finally");var si=mu;si.kind="finally";var gu=class gu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
-
`:""},this._extScope=t,this._scope=new Ze.Scope({parent:t}),this._nodes=[new Ha]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ma(t,o,n)),o}const(t,r,n){return this._def(Ze.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ze.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ze.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Oo(t,r,n))}add(t,r){return this._leafNode(new Da(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new Ba(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new mr(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new mr(t))}else(){return this._elseNode(new Xr)}endIf(){return this._endBlockNode(mr,Xr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ua(t),r)}forRange(t,r,n,i,o=this.opts.es5?Ze.varKinds.var:Ze.varKinds.let){let a=this._scope.toName(t);return this._for(new za(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Ze.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(o,(0,C._)`${a}[${u}]`),n(o)})}return this._for(new Eo("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Ze.varKinds.var:Ze.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Eo("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(gr)}label(t){return this._leafNode(new La(t))}break(t){return this._leafNode(new Fa(t))}return(t){let r=new ii;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ii)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ga;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new oi(o),r(o)}return n&&(this._currNode=i.finally=new si,this.code(n)),this._endBlockNode(oi,si)}throw(t){return this._leafNode(new Va(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,i){return this._blockNode(new ni(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ni)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof mr))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(gu,"CodeGen");var Za=gu;k.CodeGen=Za;function yr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(yr,"addNames");function xo(e,t){return t instanceof C._CodeOrName?yr(e,t.names):e}s(xo,"addExprNames");function en(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((o,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof C._Code&&o._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(en,"optimizeExpr");function l2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(l2,"subtractNames");function Yp(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${Ka(e)}`}s(Yp,"not");k.not=Yp;var f2=Qp(k.operators.AND);function p2(...e){return e.reduce(f2)}s(p2,"and");k.and=p2;var d2=Qp(k.operators.OR);function h2(...e){return e.reduce(d2)}s(h2,"or");k.or=h2;function Qp(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${Ka(t)} ${e} ${Ka(r)}`}s(Qp,"mappend");function Ka(e){return e instanceof C.Name?e:(0,C._)`(${e})`}s(Ka,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),m2=ti();function g2(e){let t={};for(let r of e)t[r]=!0;return t}s(g2,"toHash");R.toHash=g2;function y2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ed(e,t),!td(t,e.self.RULES.all))}s(y2,"alwaysValidSchema");R.alwaysValidSchema=y2;function ed(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||id(e,`unknown keyword: "${o}"`)}s(ed,"checkUnknownRules");R.checkUnknownRules=ed;function td(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(td,"schemaHasRules");R.schemaHasRules=td;function v2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(v2,"schemaHasRulesButRef");R.schemaHasRulesButRef=v2;function _2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}s(_2,"schemaRefOrVal");R.schemaRefOrVal=_2;function S2(e){return rd(decodeURIComponent(e))}s(S2,"unescapeFragment");R.unescapeFragment=S2;function b2(e){return encodeURIComponent(vu(e))}s(b2,"escapeFragment");R.escapeFragment=b2;function vu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(vu,"escapeJsonPointer");R.escapeJsonPointer=vu;function rd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(rd,"unescapeJsonPointer");R.unescapeJsonPointer=rd;function P2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(P2,"eachItem");R.eachItem=P2;function Jp({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof F.Name?(o instanceof F.Name?e(i,o,a):t(i,o,a),a):o instanceof F.Name?(t(i,a,o),o):r(o,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}s(Jp,"makeMergeEvaluated");R.mergeEvaluated={props:Jp({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),_u(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:nd}),items:Jp({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function nd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&_u(e,r,t),r}s(nd,"evaluatedPropsToName");R.evaluatedPropsToName=nd;function _u(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}s(_u,"setEvaluated");R.setEvaluated=_u;var Xp={};function $2(e,t){return e.scopeValue("func",{ref:t,code:Xp[t.code]||(Xp[t.code]=new m2._Code(t.code))})}s($2,"useFunc");R.useFunc=$2;var yu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(yu||(R.Type=yu={}));function O2(e,t,r){if(e instanceof F.Name){let n=t===yu.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+vu(e)}s(O2,"getErrorPath");R.getErrorPath=O2;function id(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(id,"checkStrictMode");R.checkStrictMode=id});var Me=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var ce=A(),E2={data:new ce.Name("data"),valCxt:new ce.Name("valCxt"),instancePath:new ce.Name("instancePath"),parentData:new ce.Name("parentData"),parentDataProperty:new ce.Name("parentDataProperty"),rootData:new ce.Name("rootData"),dynamicAnchors:new ce.Name("dynamicAnchors"),vErrors:new ce.Name("vErrors"),errors:new ce.Name("errors"),this:new ce.Name("this"),self:new ce.Name("self"),scope:new ce.Name("scope"),json:new ce.Name("json"),jsonPos:new ce.Name("jsonPos"),jsonLen:new ce.Name("jsonLen"),jsonPart:new ce.Name("jsonPart")};Su.default=E2});var ai=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.extendErrors=le.resetErrorsCount=le.reportExtraError=le.reportError=le.keyword$DataError=le.keywordError=void 0;var N=A(),Ao=T(),ye=Me();le.keywordError={message:s(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};le.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function x2(e,t=le.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=ad(e,t,r);n??(a||u)?od(o,c):sd(i,(0,N._)`[${c}]`)}s(x2,"reportError");le.reportError=x2;function w2(e,t=le.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=ad(e,t,r);od(i,u),o||a||sd(n,ye.default.vErrors)}s(w2,"reportExtraError");le.reportExtraError=w2;function A2(e,t){e.assign(ye.default.errors,t),e.if((0,N._)`${ye.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${ye.default.vErrors}.length`,t),()=>e.assign(ye.default.vErrors,null)))}s(A2,"resetErrorsCount");le.resetErrorsCount=A2;function I2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ye.default.errors,u=>{e.const(a,(0,N._)`${ye.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(ye.default.instancePath,o.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}s(I2,"extendErrors");le.extendErrors=I2;function od(e,t){let r=e.const("err",t);e.if((0,N._)`${ye.default.vErrors} === null`,()=>e.assign(ye.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${ye.default.vErrors}.push(${r})`),e.code((0,N._)`${ye.default.errors}++`)}s(od,"addError");function sd(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}s(sd,"returnErrors");var vr={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function ad(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:k2(e,t,r)}s(ad,"errorObjectCode");function k2(e,t,r={}){let{gen:n,it:i}=e,o=[R2(i,r),T2(e,r)];return C2(e,t,o),n.object(...o)}s(k2,"errorObject");function R2({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Ao.getErrorPath)(t,Ao.Type.Str)}`:e;return[ye.default.instancePath,(0,N.strConcat)(ye.default.instancePath,r)]}s(R2,"errorInstancePath");function T2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Ao.getErrorPath)(r,Ao.Type.Str)}`),[vr.schemaPath,i]}s(T2,"errorSchemaPath");function C2(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([vr.keyword,i],[vr.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([vr.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([vr.schema,a],[vr.parentSchema,(0,N._)`${p}${f}`],[ye.default.data,o]),l&&n.push([vr.propertyName,l])}s(C2,"extraErrorProps")});var cd=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.boolOrEmptySchema=tn.topBoolOrEmptySchema=void 0;var N2=ai(),q2=A(),j2=Me(),M2={message:"boolean schema is false"};function D2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?ud(e,!1):typeof r=="object"&&r.$async===!0?t.return(j2.default.data):(t.assign((0,q2._)`${n}.errors`,null),t.return(!0))}s(D2,"topBoolOrEmptySchema");tn.topBoolOrEmptySchema=D2;function L2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),ud(e)):r.var(t,!0)}s(L2,"boolOrEmptySchema");tn.boolOrEmptySchema=L2;function ud(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,N2.reportError)(i,M2,void 0,t)}s(ud,"falseSchemaError")});var bu=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getRules=rn.isJSONType=void 0;var F2=["string","number","integer","boolean","null","object","array"],V2=new Set(F2);function B2(e){return typeof e=="string"&&V2.has(e)}s(B2,"isJSONType");rn.isJSONType=B2;function H2(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(H2,"getRules");rn.getRules=H2});var Pu=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.shouldUseRule=Ft.shouldUseGroup=Ft.schemaHasRulesForType=void 0;function U2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&ld(e,n)}s(U2,"schemaHasRulesForType");Ft.schemaHasRulesForType=U2;function ld(e,t){return t.rules.some(r=>fd(e,r))}s(ld,"shouldUseGroup");Ft.shouldUseGroup=ld;function fd(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(fd,"shouldUseRule");Ft.shouldUseRule=fd});var ui=m(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.reportTypeError=fe.checkDataTypes=fe.checkDataType=fe.coerceAndCheckDataType=fe.getJSONTypes=fe.getSchemaTypes=fe.DataType=void 0;var z2=bu(),G2=Pu(),Z2=ai(),I=A(),pd=T(),nn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(nn||(fe.DataType=nn={}));function K2(e){let t=dd(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(K2,"getSchemaTypes");fe.getSchemaTypes=K2;function dd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(z2.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(dd,"getJSONTypes");fe.getJSONTypes=dd;function W2(e,t){let{gen:r,data:n,opts:i}=e,o=Y2(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,G2.schemaHasRulesForType)(e,t[0]));if(a){let u=Ou(t,n,i.strictNumbers,nn.Wrong);r.if(u,()=>{o.length?Q2(e,t,o):Eu(e)})}return a}s(W2,"coerceAndCheckDataType");fe.coerceAndCheckDataType=W2;var hd=new Set(["string","number","integer","boolean","null"]);function Y2(e,t){return t?e.filter(r=>hd.has(r)||t==="array"&&r==="array"):[]}s(Y2,"coerceToTypes");function Q2(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);o.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Ou(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(hd.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Eu(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),J2(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
7
|
-
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(
|
|
8
|
-
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(
|
|
9
|
-
|| ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}s(c,"coerceSpecificType")}s(Q2,"coerceData");function J2({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(J2,"assignParentData");function $u(e,t,r,n=nn.Correct){let i=n===nn.Correct?I.operators.EQ:I.operators.NEQ,o;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":o=(0,I._)`Array.isArray(${t})`;break;case"object":o=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===nn.Correct?o:(0,I.not)(o);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}s($u,"checkDataType");fe.checkDataType=$u;function Ou(e,t,r,n){if(e.length===1)return $u(e[0],t,r,n);let i,o=(0,pd.toHash)(e);if(o.array&&o.object){let a=(0,I._)`typeof ${t} != "object"`;i=o.null?a:(0,I._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=I.nil;o.number&&delete o.integer;for(let a in o)i=(0,I.and)(i,$u(a,t,r,n));return i}s(Ou,"checkDataTypes");fe.checkDataTypes=Ou;var X2={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Eu(e){let t=e1(e);(0,Z2.reportError)(t,X2)}s(Eu,"reportTypeError");fe.reportTypeError=Eu;function e1(e){let{gen:t,data:r,schema:n}=e,i=(0,pd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(e1,"getTypeErrorContext")});var gd=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.assignDefaults=void 0;var on=A(),t1=T();function r1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)md(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>md(e,o,i.default))}s(r1,"assignDefaults");Io.assignDefaults=r1;function md(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,on._)`${o}${(0,on.getProperty)(t)}`;if(i){(0,t1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,on._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,on._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,on._)`${u} = ${(0,on.stringify)(r)}`)}s(md,"assignDefault")});var De=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),xu=T(),Vt=Me(),n1=T();function i1(e,t){let{gen:r,data:n,it:i}=e;r.if(Au(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}s(i1,"checkReportMissingProp");L.checkReportMissingProp=i1;function o1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(o=>(0,V.and)(Au(e,t,o,r.ownProperties),(0,V._)`${i} = ${o}`)))}s(o1,"checkMissingProp");L.checkMissingProp=o1;function s1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(s1,"reportMissingProp");L.reportMissingProp=s1;function yd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}s(yd,"hasPropFunc");L.hasPropFunc=yd;function wu(e,t,r){return(0,V._)`${yd(e)}.call(${t}, ${r})`}s(wu,"isOwnProperty");L.isOwnProperty=wu;function a1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${wu(e,t,r)}`:i}s(a1,"propertyInData");L.propertyInData=a1;function Au(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(wu(e,t,r))):i}s(Au,"noPropertyInData");L.noPropertyInData=Au;function vd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(vd,"allSchemaProperties");L.allSchemaProperties=vd;function u1(e,t){return vd(t).filter(r=>!(0,xu.alwaysValidSchema)(e,t[r]))}s(u1,"schemaProperties");L.schemaProperties=u1;function c1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[Vt.default.instancePath,(0,V.strConcat)(Vt.default.instancePath,o)],[Vt.default.parentData,a.parentData],[Vt.default.parentDataProperty,a.parentDataProperty],[Vt.default.rootData,Vt.default.rootData]];a.opts.dynamicRef&&f.push([Vt.default.dynamicAnchors,Vt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}s(c1,"callValidateCode");L.callValidateCode=c1;var l1=(0,V._)`new RegExp`;function f1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,V._)`${i.code==="new RegExp"?l1:(0,n1.useFunc)(e,i)}(${r}, ${n})`})}s(f1,"usePattern");L.usePattern=f1;function p1(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:xu.Type.Num},o),t.if((0,V.not)(o),u)})}s(a,"validateItems")}s(p1,"validateArray");L.validateArray=p1;function d1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,xu.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(d1,"validateUnion");L.validateUnion=d1});var bd=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.validateKeywordUsage=ut.validSchemaType=ut.funcKeywordCode=ut.macroKeywordCode=void 0;var ve=A(),_r=Me(),h1=De(),m1=ai();function g1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=Sd(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:ve.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(g1,"macroKeywordCode");ut.macroKeywordCode=g1;function y1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;_1(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=Sd(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&_d(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&_d(e),v(()=>v1(e,_))}}s(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,ve._)`await `),S=>n.assign(f,!1).if((0,ve._)`${S} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,ve._)`${S}.errors`),()=>n.throw(S))),_}s(h,"validateAsync");function g(){let _=(0,ve._)`${p}.errors`;return n.assign(_,null),y(ve.nil),_}s(g,"validateSync");function y(_=t.async?(0,ve._)`await `:ve.nil){let S=c.opts.passContext?_r.default.this:_r.default.self,b=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,ve._)`${_}${(0,h1.callValidateCode)(e,p,S,b)}`,t.modifying)}s(y,"assignValid");function v(_){var S;n.if((0,ve.not)((S=t.valid)!==null&&S!==void 0?S:f),_)}s(v,"reportErrs")}s(y1,"funcKeywordCode");ut.funcKeywordCode=y1;function _d(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ve._)`${n.parentData}[${n.parentDataProperty}]`))}s(_d,"modifyData");function v1(e,t){let{gen:r}=e;r.if((0,ve._)`Array.isArray(${t})`,()=>{r.assign(_r.default.vErrors,(0,ve._)`${_r.default.vErrors} === null ? ${t} : ${_r.default.vErrors}.concat(${t})`).assign(_r.default.errors,(0,ve._)`${_r.default.vErrors}.length`),(0,m1.extendErrors)(e)},()=>e.error())}s(v1,"addErrs");function _1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(_1,"checkAsyncKeyword");function Sd(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,ve.stringify)(r)})}s(Sd,"useKeyword");function S1(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(S1,"validSchemaType");ut.validSchemaType=S1;function b1({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(b1,"validateKeywordUsage");ut.validateKeywordUsage=b1});var $d=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.extendSubschemaMode=Bt.extendSubschemaData=Bt.getSubschema=void 0;var ct=A(),Pd=T();function P1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,ct._)`${e.schemaPath}${(0,ct.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,ct._)`${e.schemaPath}${(0,ct.getProperty)(t)}${(0,ct.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Pd.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(P1,"getSubschema");Bt.getSubschema=P1;function $1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,ct._)`${t.data}${(0,ct.getProperty)(r)}`,!0);c(d),e.errorPath=(0,ct.str)`${l}${(0,Pd.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ct._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof ct.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s($1,"extendSubschemaData");Bt.extendSubschemaData=$1;function O1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(O1,"extendSubschemaMode");Bt.extendSubschemaMode=O1});var Iu=m((oq,Od)=>{"use strict";Od.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var xd=m((aq,Ed)=>{"use strict";var Ht=Ed.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};ko(t,n,i,e,"",e)};Ht.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ht.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ht.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ht.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ko(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Ht.arrayKeywords)for(var d=0;d<f.length;d++)ko(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in Ht.propsKeywords){if(f&&typeof f=="object")for(var h in f)ko(e,t,r,f[h],i+"/"+p+"/"+E1(h),o,i,p,n,h)}else(p in Ht.keywords||e.allKeys&&!(p in Ht.skipKeywords))&&ko(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(ko,"_traverse");function E1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(E1,"escapeJsonPtr")});var ci=m(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.getSchemaRefs=xe.resolveUrl=xe.normalizeId=xe._getFullPath=xe.getFullPath=xe.inlineRef=void 0;var x1=T(),w1=Iu(),A1=xd(),I1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function k1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ku(e):t?wd(e)<=t:!1}s(k1,"inlineRef");xe.inlineRef=k1;var R1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ku(e){for(let t in e){if(R1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ku)||typeof r=="object"&&ku(r))return!0}return!1}s(ku,"hasRef");function wd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!I1.has(r)&&(typeof e[r]=="object"&&(0,x1.eachItem)(e[r],n=>t+=wd(n)),t===1/0))return 1/0}return t}s(wd,"countKeys");function Ad(e,t="",r){r!==!1&&(t=sn(t));let n=e.parse(t);return Id(e,n)}s(Ad,"getFullPath");xe.getFullPath=Ad;function Id(e,t){return e.serialize(t).split("#")[0]+"#"}s(Id,"_getFullPath");xe._getFullPath=Id;var T1=/#\/?$/;function sn(e){return e?e.replace(T1,""):""}s(sn,"normalizeId");xe.normalizeId=sn;function C1(e,t,r){return r=sn(r),e.resolve(t,r)}s(C1,"resolveUrl");xe.resolveUrl=C1;var N1=/^[a-z_][-a-z0-9._]*$/i;function q1(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=sn(e[r]||t),o={"":i},a=Ad(n,i,!1),u={},c=new Set;return A1(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),S.call(this,f.$anchor),S.call(this,f.$dynamicAnchor),o[d]=v;function _(b){let E=this.opts.uriResolver.resolve;if(b=sn(v?E(v,b):b),c.has(b))throw p(b);c.add(b);let $=this.refs[b];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,b):b!==sn(y)&&(b[0]==="#"?(l(f,u[b],b),u[b]=f):this.refs[b]=y),b}s(_,"addRef");function S(b){if(typeof b=="string"){if(!N1.test(b))throw new Error(`invalid anchor "${b}"`);_.call(this,`#${b}`)}}s(S,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!w1(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(q1,"getSchemaRefs");xe.getSchemaRefs=q1});var pi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getData=Ut.KeywordCxt=Ut.validateFunctionCode=void 0;var Nd=cd(),kd=ui(),Tu=Pu(),Ro=ui(),j1=gd(),fi=bd(),Ru=$d(),O=A(),w=Me(),M1=ci(),At=T(),li=ai();function D1(e){if(Md(e)&&(Dd(e),jd(e))){V1(e);return}qd(e,()=>(0,Nd.topBoolOrEmptySchema)(e))}s(D1,"validateFunctionCode");Ut.validateFunctionCode=D1;function qd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Rd(r,i)}`),F1(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${L1(i)}`,n.$async,()=>e.code(Rd(r,i)).code(o))}s(qd,"validateFunction");function L1(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}s(L1,"destructureValCxt");function F1(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}s(F1,"destructureValCxtES5");function V1(e){let{schema:t,opts:r,gen:n}=e;qd(e,()=>{r.$comment&&t.$comment&&Fd(e),G1(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&B1(e),Ld(e),W1(e)})}s(V1,"topSchemaObjCode");function B1(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}s(B1,"resetEvaluated");function Rd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}s(Rd,"funcSourceUrl");function H1(e,t){if(Md(e)&&(Dd(e),jd(e))){U1(e,t);return}(0,Nd.boolOrEmptySchema)(e,t)}s(H1,"subschemaCode");function jd({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(jd,"schemaCxtHasRules");function Md(e){return typeof e.schema!="boolean"}s(Md,"isSchemaObj");function U1(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Fd(e),Z1(e),K1(e);let o=n.const("_errs",w.default.errors);Ld(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(U1,"subSchemaObjCode");function Dd(e){(0,At.checkUnknownRules)(e),z1(e)}s(Dd,"checkKeywords");function Ld(e,t){if(e.opts.jtd)return Td(e,[],!1,t);let r=(0,kd.getSchemaTypes)(e.schema),n=(0,kd.coerceAndCheckDataType)(e,r);Td(e,r,!n,t)}s(Ld,"typeAndKeywords");function z1(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,At.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(z1,"checkRefsAndKeywords");function G1(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,At.checkStrictMode)(e,"default is ignored in the schema root")}s(G1,"checkNoDefault");function Z1(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,M1.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(Z1,"updateContext");function K1(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(K1,"checkAsyncSchema");function Fd({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(Fd,"commentKeyword");function W1(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),o.unevaluated&&Y1(e),t.return((0,O._)`${w.default.errors} === 0`))}s(W1,"returnResults");function Y1({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}s(Y1,"assignEvaluated");function Td(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,At.schemaHasRulesButRef)(o,p))){i.block(()=>Bd(e,"$ref",p.all.$ref.definition));return}c.jtd||Q1(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Tu.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Ro.checkDataType)(d.type,a,c.strictNumbers)),Cd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ro.reportTypeError)(e)),i.endIf()):Cd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(Td,"schemaKeywords");function Cd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,j1.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Tu.shouldUseRule)(n,o)&&Bd(e,o.keyword,o.definition,t.type)})}s(Cd,"iterateKeywords");function Q1(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(J1(e,t),e.opts.allowUnionTypes||X1(e,t),eP(e,e.dataTypes))}s(Q1,"checkStrictTypes");function J1(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Vd(e.dataTypes,r)||Cu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),rP(e,t)}}s(J1,"checkContextTypes");function X1(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Cu(e,"use allowUnionTypes to allow union type keyword")}s(X1,"checkMultipleTypes");function eP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Tu.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>tP(t,a))&&Cu(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(eP,"checkKeywordTypes");function tP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(tP,"hasApplicableType");function Vd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Vd,"includesType");function rP(e,t){let r=[];for(let n of e.dataTypes)Vd(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(rP,"narrowSchemaTypes");function Cu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,At.checkStrictMode)(e,t,e.opts.strictTypes)}s(Cu,"strictTypesError");var Nu=class Nu{constructor(t,r,n){if((0,fi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,At.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Hd(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?li.reportExtraError:li.reportError)(this,this.def.error,r)}$dataError(){(0,li.reportError)(this,this.def.$dataError||li.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,li.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Ro.checkDataTypes)(c,r,o.opts.strictNumbers,Ro.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Ru.getSubschema)(this.it,t);(0,Ru.extendSubschemaData)(n,this.it,t),(0,Ru.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return H1(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=At.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=At.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};s(Nu,"KeywordCxt");var To=Nu;Ut.KeywordCxt=To;function Bd(e,t,r,n){let i=new To(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,fi.funcKeywordCode)(i,r):"macro"in r?(0,fi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,fi.funcKeywordCode)(i,r)}s(Bd,"keywordCode");var nP=/^\/(?:[^~]|~0|~1)*$/,iP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Hd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!nP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=iP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,At.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Hd,"getData");Ut.getData=Hd});var Co=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Mu=class Mu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Mu,"ValidationError");var qu=Mu;ju.default=qu});var di=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var Du=ci(),Vu=class Vu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Du.resolveUrl)(t,r,n),this.missingSchema=(0,Du.normalizeId)((0,Du.getFullPath)(t,this.missingRef))}};s(Vu,"MissingRefError");var Lu=Vu;Fu.default=Lu});var hi=m(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.resolveSchema=Le.getCompilingSchema=Le.resolveRef=Le.compileSchema=Le.SchemaEnv=void 0;var Ke=A(),oP=Co(),Sr=Me(),We=ci(),Ud=T(),sP=pi(),Uu=class Uu{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,We.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Uu,"SchemaEnv");var an=Uu;Le.SchemaEnv=an;function Hu(e){let t=zd.call(this,e);if(t)return t;let r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ke.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:oP.default,code:(0,Ke._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Sr.default.data,parentData:Sr.default.parentData,parentDataProperty:Sr.default.parentDataProperty,dataNames:[Sr.default.data],dataPathArr:[Ke.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ke.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ke.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ke._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,sP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Sr.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Sr.default.self}`,`${Sr.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Ke.Name?void 0:g,items:y instanceof Ke.Name?void 0:y,dynamicProps:g instanceof Ke.Name,dynamicItems:y instanceof Ke.Name},h.source&&(h.source.evaluated=(0,Ke.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Hu,"compileSchema");Le.compileSchema=Hu;function aP(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=lP.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new an({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=uP.call(this,o)}s(aP,"resolveRef");Le.resolveRef=aP;function uP(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Hu.call(this,e)}s(uP,"inlineOrCompile");function zd(e){for(let t of this._compilations)if(cP(t,e))return t}s(zd,"getCompilingSchema");Le.getCompilingSchema=zd;function cP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(cP,"sameSchemaEnv");function lP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||No.call(this,e,t)}s(lP,"resolve");function No(e,t){let r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r),i=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Bu.call(this,r,e);let o=(0,We.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=No.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Bu.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Hu.call(this,a),o===(0,We.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,We.resolveUrl)(this.opts.uriResolver,i,l)),new an({schema:u,schemaId:c,root:e,baseId:i})}return Bu.call(this,r,a)}}s(No,"resolveSchema");Le.resolveSchema=No;var fP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Bu(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Ud.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!fP.has(u)&&l&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Ud.schemaHasRulesButRef)(r,this.RULES)){let u=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=No.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new an({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Bu,"getJsonPointer")});var Gd=m((_q,pP)=>{pP.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Kd=m((Sq,Zd)=>{"use strict";var dP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Zd.exports={HEX:dP}});var rh=m((bq,th)=>{"use strict";var{HEX:hP}=Kd();function Jd(e){if(eh(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:gP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Jd,"normalizeIPv4");function zu(e,t=!1){let r="",n=!0;for(let i of e){if(hP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(zu,"stringArrayToHexStripped");function mP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=zu(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(zu(i))),r.address=n.join(""),r}s(mP,"getIPV6");function Xd(e,t={}){if(eh(e,":")<2)return{host:e,isIPV6:!1};let r=mP(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(Xd,"normalizeIPv6");function gP(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(gP,"stripLeadingZeros");function eh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(eh,"findToken");var Wd=/^\.\.?\//u,Yd=/^\/\.(?:\/|$)/u,Qd=/^\/\.\.(?:\/|$)/u,yP=/^\/?(?:.|\n)*?(?=\/|$)/u;function vP(e){let t=[];for(;e.length;)if(e.match(Wd))e=e.replace(Wd,"");else if(e.match(Yd))e=e.replace(Yd,"/");else if(e.match(Qd))e=e.replace(Qd,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(yP);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(vP,"removeDotSegments");function _P(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(_P,"normalizeComponentEncoding");function SP(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=Jd(n);if(i.isIPV4)n=i.host;else{let o=Xd(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(SP,"recomposeAuthority");th.exports={recomposeAuthority:SP,normalizeComponentEncoding:_P,removeDotSegments:vP,normalizeIPv4:Jd,normalizeIPv6:Xd,stringArrayToHexStripped:zu}});var uh=m(($q,ah)=>{"use strict";var bP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,PP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function nh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(nh,"isSecure");function ih(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(ih,"httpParse");function oh(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(oh,"httpSerialize");function $P(e){return e.secure=nh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s($P,"wsParse");function OP(e){if((e.port===(nh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(OP,"wsSerialize");function EP(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(PP);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Gu[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(EP,"urnParse");function xP(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Gu[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(xP,"urnSerialize");function wP(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!bP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(wP,"urnuuidParse");function AP(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(AP,"urnuuidSerialize");var sh={scheme:"http",domainHost:!0,parse:ih,serialize:oh},IP={scheme:"https",domainHost:sh.domainHost,parse:ih,serialize:oh},qo={scheme:"ws",domainHost:!0,parse:$P,serialize:OP},kP={scheme:"wss",domainHost:qo.domainHost,parse:qo.parse,serialize:qo.serialize},RP={scheme:"urn",parse:EP,serialize:xP,skipNormalize:!0},TP={scheme:"urn:uuid",parse:wP,serialize:AP,skipNormalize:!0},Gu={http:sh,https:IP,ws:qo,wss:kP,urn:RP,"urn:uuid":TP};ah.exports=Gu});var lh=m((Eq,Mo)=>{"use strict";var{normalizeIPv6:CP,normalizeIPv4:NP,removeDotSegments:mi,recomposeAuthority:qP,normalizeComponentEncoding:jo}=rh(),Zu=uh();function jP(e,t){return typeof e=="string"?e=lt(It(e,t),t):typeof e=="object"&&(e=It(lt(e,t),t)),e}s(jP,"normalize");function MP(e,t,r){let n=Object.assign({scheme:"null"},r),i=ch(It(e,n),It(t,n),n,!0);return lt(i,{...n,skipEscape:!0})}s(MP,"resolve");function ch(e,t,r,n){let i={};return n||(e=It(lt(e,r),r),t=It(lt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=mi(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=mi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=mi(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=mi(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(ch,"resolveComponents");function DP(e,t,r){return typeof e=="string"?(e=unescape(e),e=lt(jo(It(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=lt(jo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=lt(jo(It(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=lt(jo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(DP,"equal");function lt(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=Zu[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=qP(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=mi(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(lt,"serialize");var LP=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function FP(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||LP[t])return!0;return!1}s(FP,"nonSimpleDomain");var VP=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function It(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(VP);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=NP(n.host);if(c.isIPV4===!1){let l=CP(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let u=Zu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&FP(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(It,"parse");var Ku={SCHEMES:Zu,normalize:jP,resolve:MP,resolveComponents:ch,equal:DP,serialize:lt,parse:It};Mo.exports=Ku;Mo.exports.default=Ku;Mo.exports.fastUri=Ku});var ph=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var fh=lh();fh.code='require("ajv/dist/runtime/uri").default';Wu.default=fh});var cn=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.CodeGen=oe.Name=oe.nil=oe.stringify=oe.str=oe._=oe.KeywordCxt=void 0;var BP=pi();Object.defineProperty(oe,"KeywordCxt",{enumerable:!0,get:s(function(){return BP.KeywordCxt},"get")});var un=A();Object.defineProperty(oe,"_",{enumerable:!0,get:s(function(){return un._},"get")});Object.defineProperty(oe,"str",{enumerable:!0,get:s(function(){return un.str},"get")});Object.defineProperty(oe,"stringify",{enumerable:!0,get:s(function(){return un.stringify},"get")});Object.defineProperty(oe,"nil",{enumerable:!0,get:s(function(){return un.nil},"get")});Object.defineProperty(oe,"Name",{enumerable:!0,get:s(function(){return un.Name},"get")});Object.defineProperty(oe,"CodeGen",{enumerable:!0,get:s(function(){return un.CodeGen},"get")});var HP=Co(),yh=di(),UP=bu(),gi=hi(),zP=A(),yi=ci(),Do=ui(),Qu=T(),dh=Gd(),GP=ph(),vh=s((e,t)=>new RegExp(e,t),"defaultRegExp");vh.code="new RegExp";var ZP=["removeAdditional","useDefaults","coerceTypes"],KP=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),WP={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},YP={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},hh=200;function QP(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,g,y,v,_,S,b,E,$,M,j,re,ne;let ue=e.strict,qe=(t=e.code)===null||t===void 0?void 0:t.optimize,$e=qe===!0||qe===void 0?1:qe||0,Dt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:vh,Zr=(i=e.uriResolver)!==null&&i!==void 0?i:GP.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ue)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ue)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ue)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ue)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:ue)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:$e,regExp:Dt}:{optimize:$e,regExp:Dt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:hh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:hh,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(S=e.messages)!==null&&S!==void 0?S:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(re=e.unicodeRegExp)!==null&&re!==void 0?re:!0,int32range:(ne=e.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:Zr}}s(QP,"requiredOptions");var Ju=class Ju{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...QP(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new zP.ValueScope({scope:{},prefixes:KP,es5:r,lines:n}),this.logger=n$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,UP.getRules)(),mh.call(this,WP,t,"NOT SUPPORTED"),mh.call(this,YP,t,"DEPRECATED","warn"),this._metaOpts=t$.call(this),t.formats&&XP.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&e$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),JP.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=dh;n==="id"&&(i={...dh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof yh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,yi.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=gh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new gi.SchemaEnv({schema:{},schemaId:n});if(r=gi.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=gh.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,yi.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(o$.call(this,n,r),!r)return(0,Qu.eachItem)(n,o=>Yu.call(this,o)),this;a$.call(this,r);let i={...r,type:(0,Do.getJSONTypes)(r.type),schemaType:(0,Do.getJSONTypes)(r.schemaType)};return(0,Qu.eachItem)(n,i.type.length===0?o=>Yu.call(this,o,i):o=>i.type.forEach(a=>Yu.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=_h(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,yi.normalizeId)(a||n);let l=yi.getSchemaRefs.call(this,t,n);return c=new gi.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):gi.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{gi.compileSchema.call(this,t)}finally{this.opts=r}}};s(Ju,"Ajv");var vi=Ju;vi.ValidationError=HP.default;vi.MissingRefError=yh.default;oe.default=vi;function mh(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(mh,"checkOptions");function gh(e){return e=(0,yi.normalizeId)(e),this.schemas[e]||this.refs[e]}s(gh,"getSchEnv");function JP(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(JP,"addInitialSchemas");function XP(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(XP,"addInitialFormats");function e$(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(e$,"addInitialKeywords");function t$(){let e={...this.opts};for(let t of ZP)delete e[t];return e}s(t$,"getMetaSchemaOptions");var r$={log(){},warn(){},error(){}};function n$(e){if(e===!1)return r$;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(n$,"getLogger");var i$=/^[a-z_$][a-z0-9_$:-]*$/i;function o$(e,t){let{RULES:r}=this;if((0,Qu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!i$.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(o$,"checkKeyword");function Yu(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Do.getJSONTypes)(t.type),schemaType:(0,Do.getJSONTypes)(t.schemaType)}};t.before?s$.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(Yu,"addRule");function s$(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(s$,"addBeforeRule");function a$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=_h(t)),e.validateSchema=this.compile(t,!0))}s(a$,"keywordMetaschema");var u$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function _h(e){return{anyOf:[e,u$]}}s(_h,"schemaOrData")});var _i=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.callRef=br.getValidate=void 0;var c$=di(),Sh=De(),we=A(),ln=Me(),bh=hi(),Lo=T(),l$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=bh.resolveRef.call(c,l,i,r);if(p===void 0)throw new c$.default(n.opts.uriResolver,i,r);if(p instanceof bh.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return Fo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Fo(e,(0,we._)`${g}.validate`,l,l.$async)}function d(g){let y=Ph(e,g);Fo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,we.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:we.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Ph(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,we._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Ph,"getValidate");br.getValidate=Ph;function Fo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?ln.default.this:we.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,we._)`await ${(0,Sh.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,we._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}s(p,"callAsyncRef");function f(){e.result((0,Sh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(g){let y=(0,we._)`${g}.errors`;i.assign(ln.default.vErrors,(0,we._)`${ln.default.vErrors} === null ? ${y} : ${ln.default.vErrors}.concat(${y})`),i.assign(ln.default.errors,(0,we._)`${ln.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(g){var y;if(!o.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Lo.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,we._)`${g}.evaluated.props`);o.props=Lo.mergeEvaluated.props(i,_,o.props,we.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Lo.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,we._)`${g}.evaluated.items`);o.items=Lo.mergeEvaluated.items(i,_,o.items,we.Name)}}s(h,"addEvaluatedFrom")}s(Fo,"callRef");br.callRef=Fo;br.default=l$});var $h=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var f$=_i(),p$=["$schema","id","$defs",{keyword:"$comment"},"definitions",f$.default];Xu.default=p$});var Oh=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var ec=cn(),d$=A(),zt=d$.operators,tc={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:zt.LTE,fail:zt.GT},{okStr:"<",ok:zt.LT,fail:zt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:zt.GTE,fail:zt.LT},{okStr:">",ok:zt.GT,fail:zt.LTE}]}},h$={message:s(e=>ec.str`must be ${rc(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>ec._`{comparison: ${rc(e).okStr}, limit: ${e.schemaCode}}`,"params")},m$={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:h$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(ec._`${t} ${rc(e).fail} ${r} || isNaN(${t})`)}};function rc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[tc[r].exclusive]?1:0;return tc[r].ops[n]}s(rc,"kwdOp");nc.default=m$});var xh=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Eh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},g$={keyword:Object.keys(Eh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Eh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ic.default=g$});var sc=m(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var Si=A(),y$={message:s(({schemaCode:e})=>(0,Si.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Si._)`{multipleOf: ${e}}`,"params")},v$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:y$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,Si._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Si._)`${a} !== parseInt(${a})`;e.fail$data((0,Si._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};oc.default=v$});var Ah=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});function wh(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(wh,"ucs2length");ac.default=wh;wh.code='require("ajv/dist/runtime/ucs2length").default'});var cc=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var Pr=A(),_$=T(),S$=Ah(),b$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Pr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Pr._)`{limit: ${e}}`,"params")},P$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:b$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Pr.operators.GT:Pr.operators.LT,a=i.opts.unicode===!1?(0,Pr._)`${r}.length`:(0,Pr._)`${(0,_$.useFunc)(e.gen,S$.default)}(${r})`;e.fail$data((0,Pr._)`${a} ${o} ${n}`)}};uc.default=P$});var fc=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var $$=De(),Vo=A(),O$={message:s(({schemaCode:e})=>(0,Vo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Vo._)`{pattern: ${e}}`,"params")},E$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:O$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,Vo._)`(new RegExp(${i}, ${a}))`:(0,$$.usePattern)(e,n);e.fail$data((0,Vo._)`!${u}.test(${t})`)}};lc.default=E$});var dc=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var bi=A(),x$={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,bi.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,bi._)`{limit: ${e}}`,"params")},w$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:x$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?bi.operators.GT:bi.operators.LT;e.fail$data((0,bi._)`Object.keys(${r}).length ${i} ${n}`)}};pc.default=w$});var mc=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var Pi=De(),$i=A(),A$=T(),I$={message:s(({params:{missingProperty:e}})=>(0,$i.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,$i._)`{missingProperty: ${e}}`,"params")},k$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:I$,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,A$.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data($i.nil,f);else for(let h of r)(0,Pi.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,Pi.checkMissingProp)(e,r,h)),(0,Pi.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Pi.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,Pi.propertyInData)(t,i,h,u.ownProperties)),t.if((0,$i.not)(g),()=>{e.error(),t.break()})},$i.nil)}s(d,"loopUntilMissing")}};hc.default=k$});var yc=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var Oi=A(),R$={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},T$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:R$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`${r}.length ${i} ${n}`)}};gc.default=T$});var Bo=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Ih=Iu();Ih.code='require("ajv/dist/runtime/equal").default';vc.default=Ih});var bc=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var _c=ui(),se=A(),C$=T(),N$=Bo(),q$={message:s(({params:{i:e,j:t}})=>(0,se.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,se._)`{i: ${e}, j: ${t}}`,"params")},j$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:q$,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,_c.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,se._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,se._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,se._)`${g} > 1`,()=>(f()?d:h)(g,y))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,_c.checkDataTypes)(l,v,u.opts.strictNumbers,_c.DataType.Wrong),S=t.const("indices",(0,se._)`{}`);t.for((0,se._)`;${g}--;`,()=>{t.let(v,(0,se._)`${r}[${g}]`),t.if(_,(0,se._)`continue`),l.length>1&&t.if((0,se._)`typeof ${v} == "string"`,(0,se._)`${v} += "_"`),t.if((0,se._)`typeof ${S}[${v}] == "number"`,()=>{t.assign(y,(0,se._)`${S}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,se._)`${S}[${v}] = ${g}`)})}s(d,"loopN");function h(g,y){let v=(0,C$.useFunc)(t,N$.default),_=t.name("outer");t.label(_).for((0,se._)`;${g}--;`,()=>t.for((0,se._)`${y} = ${g}; ${y}--;`,()=>t.if((0,se._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}s(h,"loopN2")}};Sc.default=j$});var Oc=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var Pc=A(),M$=T(),D$=Bo(),L$={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Pc._)`{allowedValue: ${e}}`,"params")},F$={keyword:"const",$data:!0,error:L$,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Pc._)`!${(0,M$.useFunc)(t,D$.default)}(${r}, ${i})`):e.fail((0,Pc._)`${o} !== ${r}`)}};$c.default=F$});var xc=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var Ei=A(),V$=T(),B$=Bo(),H$={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ei._)`{allowedValues: ${e}}`,"params")},U$={keyword:"enum",schemaType:"array",$data:!0,error:H$,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,V$.useFunc)(t,B$.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,Ei.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,Ei._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ei._)`${l()}(${r}, ${h}[${g}])`:(0,Ei._)`${r} === ${y}`}s(d,"equalCode")}};Ec.default=U$});var kh=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var z$=Oh(),G$=xh(),Z$=sc(),K$=cc(),W$=fc(),Y$=dc(),Q$=mc(),J$=yc(),X$=bc(),eO=Oc(),tO=xc(),rO=[z$.default,G$.default,Z$.default,K$.default,W$.default,Y$.default,Q$.default,J$.default,X$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},eO.default,tO.default];wc.default=rO});var Ic=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.validateAdditionalItems=void 0;var $r=A(),Ac=T(),nO={message:s(({params:{len:e}})=>(0,$r.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,$r._)`{limit: ${e}}`,"params")},iO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:nO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ac.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Rh(e,n)}};function Rh(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,$r._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$r._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ac.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,$r._)`${u} <= ${t.length}`);r.if((0,$r.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Ac.Type.Num},l),a.allErrors||r.if((0,$r.not)(l),()=>r.break())})}s(c,"validateItems")}s(Rh,"validateAdditionalItems");xi.validateAdditionalItems=Rh;xi.default=iO});var kc=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.validateTuple=void 0;var Th=A(),Ho=T(),oO=De(),sO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Ch(e,"additionalItems",t);r.items=!0,!(0,Ho.alwaysValidSchema)(r,t)&&e.ok((0,oO.validateArray)(e))}};function Ch(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Ho.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Th._)`${o}.length`);r.forEach((f,d)=>{(0,Ho.alwaysValidSchema)(u,f)||(n.if((0,Th._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ho.checkStrictMode)(u,v,d.strictTuples)}}s(p,"checkStrictTuple")}s(Ch,"validateTuple");wi.validateTuple=Ch;wi.default=sO});var Nh=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var aO=kc(),uO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,aO.validateTuple)(e,"items"),"code")};Rc.default=uO});var jh=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var qh=A(),cO=T(),lO=De(),fO=Ic(),pO={message:s(({params:{len:e}})=>(0,qh.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,qh._)`{limit: ${e}}`,"params")},dO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:pO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,cO.alwaysValidSchema)(n,t)&&(i?(0,fO.validateAdditionalItems)(e,i):e.ok((0,lO.validateArray)(e)))}};Tc.default=dO});var Mh=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Fe=A(),Uo=T(),hO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe.str)`must contain at least ${e} valid item(s)`:(0,Fe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe._)`{minContains: ${e}}`:(0,Fe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},mO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:hO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,Fe._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,Uo.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,Uo.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Uo.alwaysValidSchema)(o,r)){let y=(0,Fe._)`${p} >= ${a}`;u!==void 0&&(y=(0,Fe._)`${y} && ${p} <= ${u}`),e.pass(y);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,Fe._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Uo.Type.Num,compositeRule:!0},y),v()})}s(h,"validateItems");function g(y){t.code((0,Fe._)`${y}++`),u===void 0?t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Fe._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(f,!0)))}s(g,"checkLimits")}};Cc.default=mO});var zo=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.validateSchemaDeps=ft.validatePropertyDeps=ft.error=void 0;var Nc=A(),gO=T(),Ai=De();ft.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Nc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Nc._)`{property: ${e},
|
|
3
|
+
`+n:r||n}s(Hf,"joinStacks");ct.joinStacks=Hf;function i2(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Hf({stack:n},r)},"get"),enumerable:!1,configurable:!0}):o2(t,e)}s(i2,"lazyJoinStacks");ct.lazyJoinStacks=i2;function Uf(e){if(e){let t=e.split(e2),r;for(let n=0;n<t.length;n++){let i=t[n];if(t2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
|
|
4
|
+
`)}return e}s(Uf,"popStack");function o2(e,t){Object.defineProperty(e,"stack",{get:s(()=>Uf(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(o2,"lazyPopStack")});var Kf=h(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.extendError=void 0;var Gf=xa(),bo=zf(),Zf=_o(),s2=["name","message","stack"];function a2(e,t,r){let n=e;return c2(n,t),t&&typeof t=="object"&&u2(n,t),n.toJSON=Zf.toJSON,Gf.addInspectMethod&&Gf.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(a2,"extendError");So.extendError=a2;function c2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");bo.isLazyStack(r)?bo.lazyJoinStacks(r,e,t):bo.isWritableStack(r)&&(e.stack=bo.joinStacks(e,t))}s(c2,"extendStack");function u2(e,t){let r=Zf.getDeepKeys(t,s2),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(u2,"mergeErrors")});var Yf=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.normalizeArgs=on.normalizeOptions=void 0;var l2=xa();function p2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?l2.format:typeof e.format=="function"?e.format:!1}}s(p2,"normalizeOptions");on.normalizeOptions=p2;function f2(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
|
|
5
|
+
`:"")+r.message),{originalError:r,props:n,message:o}}s(f2,"normalizeArgs");on.normalizeArgs=f2});var Aa=h($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.Ono=void 0;var Po=Kf(),Wf=Yf(),d2=_o(),m2=wa;$o.Ono=m2;function wa(e,t){t=Wf.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Wf.normalizeArgs(n,t),c=new e(a);return Po.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(wa,"Ono");wa.toJSON=s(function(t){return d2.toJSON.call(t)},"toJSON");wa.extend=s(function(t,r,n){return n||r instanceof Error?Po.extendError(t,r,n):r?Po.extendError(t,void 0,r):Po.extendError(t)},"extend")});var Qf=h(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ono=void 0;var Sr=Aa(),h2=ut;Oo.ono=h2;ut.error=new Sr.Ono(Error);ut.eval=new Sr.Ono(EvalError);ut.range=new Sr.Ono(RangeError);ut.reference=new Sr.Ono(ReferenceError);ut.syntax=new Sr.Ono(SyntaxError);ut.type=new Sr.Ono(TypeError);ut.uri=new Sr.Ono(URIError);var g2=ut;function ut(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(g2))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return ut.error.apply(void 0,e)}s(ut,"ono")});var Xf=h(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var iq=require("util")});var Ze=h((Ge,sn)=>{"use strict";var y2=Ge&&Ge.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),v2=Ge&&Ge.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&y2(t,e,r)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ono=void 0;var ed=Qf();Object.defineProperty(Ge,"ono",{enumerable:!0,get:s(function(){return ed.ono},"get")});var _2=Aa();Object.defineProperty(Ge,"Ono",{enumerable:!0,get:s(function(){return _2.Ono},"get")});v2(Xf(),Ge);Ge.default=ed.ono;typeof sn=="object"&&typeof sn.exports=="object"&&(sn.exports=Object.assign(sn.exports.default,sn.exports))});var ii=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.regexpCode=M.getEsmExportName=M.getProperty=M.safeStringify=M.stringify=M.strConcat=M.addCodeArg=M.str=M._=M.nil=M._Code=M.Name=M.IDENTIFIER=M._CodeOrName=void 0;var ka=class ka{};s(ka,"_CodeOrName");var ri=ka;M._CodeOrName=ri;M.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Na=class Na extends ri{constructor(t){if(super(),!M.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Na,"Name");var Pr=Na;M.Name=Pr;var Ra=class Ra extends ri{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Pr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Ra,"_Code");var je=Ra;M._Code=je;M.nil=new je("");function td(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Ta(r,t[n]),r.push(e[++n]);return new je(r)}s(td,"_");M._=td;var Ia=new je("+");function rd(e,...t){let r=[ni(e[0])],n=0;for(;n<t.length;)r.push(Ia),Ta(r,t[n]),r.push(Ia,ni(e[++n]));return b2(r),new je(r)}s(rd,"str");M.str=rd;function Ta(e,t){t instanceof je?e.push(...t._items):t instanceof Pr?e.push(t):e.push($2(t))}s(Ta,"addCodeArg");M.addCodeArg=Ta;function b2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ia){let r=S2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(b2,"optimize");function S2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Pr||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Pr))return`"${e}${t.slice(1)}`}s(S2,"mergeExprItems");function P2(e,t){return t.emptyStr()?e:e.emptyStr()?t:rd`${e}${t}`}s(P2,"strConcat");M.strConcat=P2;function $2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ni(Array.isArray(e)?e.join(","):e)}s($2,"interpolate");function O2(e){return new je(ni(e))}s(O2,"stringify");M.stringify=O2;function ni(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ni,"safeStringify");M.safeStringify=ni;function E2(e){return typeof e=="string"&&M.IDENTIFIER.test(e)?new je(`.${e}`):td`[${e}]`}s(E2,"getProperty");M.getProperty=E2;function x2(e){if(typeof e=="string"&&M.IDENTIFIER.test(e))return new je(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(x2,"getEsmExportName");M.getEsmExportName=x2;function w2(e){return new je(e.toString())}s(w2,"regexpCode");M.regexpCode=w2});var Fa=h(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ii(),ja=class ja extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(ja,"ValueError");var Ca=ja,Eo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Eo||(we.UsedValueState=Eo={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var Ma=class Ma{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof xe.Name?t:this.name(t)}name(t){return new xe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Ma,"Scope");var xo=Ma;we.Scope=xo;var Da=class Da extends xe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,xe._)`.${new xe.Name(r)}[${n}]`}};s(Da,"ValueScopeName");var wo=Da;we.ValueScopeName=wo;var A2=(0,xe._)`\n`,La=class La extends xo{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?A2:xe.nil}}get(){return this._scope}name(t){return new wo(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let f=c.get(a);if(f)return f}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,xe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=xe.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Eo.Started);let f=r(l);if(f){let p=this.opts.es5?we.varKinds.var:we.varKinds.const;o=(0,xe._)`${o}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))o=(0,xe._)`${o}${f}${this.opts._n}`;else throw new Ca(l);u.set(l,Eo.Completed)})}return o}};s(La,"ValueScope");var qa=La;we.ValueScope=qa});var A=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.or=T.and=T.not=T.CodeGen=T.operators=T.varKinds=T.ValueScopeName=T.ValueScope=T.Scope=T.Name=T.regexpCode=T.stringify=T.getProperty=T.nil=T.strConcat=T.str=T._=void 0;var C=ii(),Ke=Fa(),Ut=ii();Object.defineProperty(T,"_",{enumerable:!0,get:s(function(){return Ut._},"get")});Object.defineProperty(T,"str",{enumerable:!0,get:s(function(){return Ut.str},"get")});Object.defineProperty(T,"strConcat",{enumerable:!0,get:s(function(){return Ut.strConcat},"get")});Object.defineProperty(T,"nil",{enumerable:!0,get:s(function(){return Ut.nil},"get")});Object.defineProperty(T,"getProperty",{enumerable:!0,get:s(function(){return Ut.getProperty},"get")});Object.defineProperty(T,"stringify",{enumerable:!0,get:s(function(){return Ut.stringify},"get")});Object.defineProperty(T,"regexpCode",{enumerable:!0,get:s(function(){return Ut.regexpCode},"get")});Object.defineProperty(T,"Name",{enumerable:!0,get:s(function(){return Ut.Name},"get")});var ko=Fa();Object.defineProperty(T,"Scope",{enumerable:!0,get:s(function(){return ko.Scope},"get")});Object.defineProperty(T,"ValueScope",{enumerable:!0,get:s(function(){return ko.ValueScope},"get")});Object.defineProperty(T,"ValueScopeName",{enumerable:!0,get:s(function(){return ko.ValueScopeName},"get")});Object.defineProperty(T,"varKinds",{enumerable:!0,get:s(function(){return ko.varKinds},"get")});T.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var Xa=class Xa{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Xa,"Node");var It=Xa,ec=class ec extends It{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ke.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=un(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};s(ec,"Def");var Va=ec,tc=class tc extends It{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=un(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return To(t,this.rhs)}};s(tc,"Assign");var Ao=tc,rc=class rc extends Ao{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(rc,"AssignOp");var Ba=rc,nc=class nc extends It{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(nc,"Label");var Ha=nc,ic=class ic extends It{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(ic,"Break");var Ua=ic,oc=class oc extends It{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(oc,"Throw");var za=oc,sc=class sc extends It{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=un(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};s(sc,"AnyCode");var Ga=sc,ac=class ac extends It{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(I2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Er(t,r.names),{})}};s(ac,"ParentNode");var oi=ac,cc=class cc extends oi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(cc,"BlockNode");var Tt=cc,uc=class uc extends oi{};s(uc,"Root");var Za=uc,lc=class lc extends Tt{};s(lc,"Else");var cn=lc;cn.kind="else";var an=class an extends Tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new cn(n):n}if(r)return t===!1?r instanceof an?r:r.nodes:this.nodes.length?this:new an(nd(t),r instanceof an?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=un(this.condition,t,r),this}get names(){let t=super.names;return To(t,this.condition),this.else&&Er(t,this.else.names),t}};s(an,"If");var $r=an;$r.kind="if";var pc=class pc extends Tt{};s(pc,"For");var Or=pc;Or.kind="for";var fc=class fc extends Or{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=un(this.iteration,t,r),this}get names(){return Er(super.names,this.iteration.names)}};s(fc,"ForLoop");var Ka=fc,dc=class dc extends Or{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ke.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=To(super.names,this.from);return To(t,this.to)}};s(dc,"ForRange");var Ya=dc,mc=class mc extends Or{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=un(this.iterable,t,r),this}get names(){return Er(super.names,this.iterable.names)}};s(mc,"ForIter");var Io=mc,hc=class hc extends Tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(hc,"Func");var si=hc;si.kind="func";var gc=class gc extends oi{render(t){return"return "+super.render(t)}};s(gc,"Return");var ai=gc;ai.kind="return";var yc=class yc extends Tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Er(t,this.catch.names),this.finally&&Er(t,this.finally.names),t}};s(yc,"Try");var Wa=yc,vc=class vc extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(vc,"Catch");var ci=vc;ci.kind="catch";var _c=class _c extends Tt{render(t){return"finally"+super.render(t)}};s(_c,"Finally");var ui=_c;ui.kind="finally";var bc=class bc{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
+
`:""},this._extScope=t,this._scope=new Ke.Scope({parent:t}),this._nodes=[new Za]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Va(t,o,n)),o}const(t,r,n){return this._def(Ke.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ke.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ke.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ao(t,r,n))}add(t,r){return this._leafNode(new Ba(t,T.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new Ga(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new $r(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new $r(t))}else(){return this._elseNode(new cn)}endIf(){return this._endBlockNode($r,cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ka(t),r)}forRange(t,r,n,i,o=this.opts.es5?Ke.varKinds.var:Ke.varKinds.let){let a=this._scope.toName(t);return this._for(new Ya(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Ke.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,c=>{this.var(o,(0,C._)`${a}[${c}]`),n(o)})}return this._for(new Io("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Ke.varKinds.var:Ke.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Io("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Or)}label(t){return this._leafNode(new Ha(t))}break(t){return this._leafNode(new Ua(t))}return(t){let r=new ai;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ai)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Wa;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new ci(o),r(o)}return n&&(this._currNode=i.finally=new ui,this.code(n)),this._endBlockNode(ci,ui)}throw(t){return this._leafNode(new za(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,i){return this._blockNode(new si(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(si)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof $r))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(bc,"CodeGen");var Qa=bc;T.CodeGen=Qa;function Er(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Er,"addNames");function To(e,t){return t instanceof C._CodeOrName?Er(e,t.names):e}s(To,"addExprNames");function un(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((o,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof C._Code&&o._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(un,"optimizeExpr");function I2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(I2,"subtractNames");function nd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${Ja(e)}`}s(nd,"not");T.not=nd;var T2=id(T.operators.AND);function k2(...e){return e.reduce(T2)}s(k2,"and");T.and=k2;var N2=id(T.operators.OR);function R2(...e){return e.reduce(N2)}s(R2,"or");T.or=R2;function id(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${Ja(t)} ${e} ${Ja(r)}`}s(id,"mappend");function Ja(e){return e instanceof C.Name?e:(0,C._)`(${e})`}s(Ja,"par")});var R=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.checkStrictMode=k.getErrorPath=k.Type=k.useFunc=k.setEvaluated=k.evaluatedPropsToName=k.mergeEvaluated=k.eachItem=k.unescapeJsonPointer=k.escapeJsonPointer=k.escapeFragment=k.unescapeFragment=k.schemaRefOrVal=k.schemaHasRulesButRef=k.schemaHasRules=k.checkUnknownRules=k.alwaysValidSchema=k.toHash=void 0;var V=A(),C2=ii();function q2(e){let t={};for(let r of e)t[r]=!0;return t}s(q2,"toHash");k.toHash=q2;function j2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ad(e,t),!cd(t,e.self.RULES.all))}s(j2,"alwaysValidSchema");k.alwaysValidSchema=j2;function ad(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||pd(e,`unknown keyword: "${o}"`)}s(ad,"checkUnknownRules");k.checkUnknownRules=ad;function cd(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(cd,"schemaHasRules");k.schemaHasRules=cd;function M2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(M2,"schemaHasRulesButRef");k.schemaHasRulesButRef=M2;function D2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,V._)`${r}`}return(0,V._)`${e}${t}${(0,V.getProperty)(n)}`}s(D2,"schemaRefOrVal");k.schemaRefOrVal=D2;function L2(e){return ud(decodeURIComponent(e))}s(L2,"unescapeFragment");k.unescapeFragment=L2;function F2(e){return encodeURIComponent(Pc(e))}s(F2,"escapeFragment");k.escapeFragment=F2;function Pc(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Pc,"escapeJsonPointer");k.escapeJsonPointer=Pc;function ud(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(ud,"unescapeJsonPointer");k.unescapeJsonPointer=ud;function V2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(V2,"eachItem");k.eachItem=V2;function od({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof V.Name?(o instanceof V.Name?e(i,o,a):t(i,o,a),a):o instanceof V.Name?(t(i,a,o),o):r(o,a);return c===V.Name&&!(u instanceof V.Name)?n(i,u):u}}s(od,"makeMergeEvaluated");k.mergeEvaluated={props:od({mergeNames:s((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,V._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,V._)`${r} || {}`).code((0,V._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,V._)`${r} || {}`),$c(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:ld}),items:od({mergeNames:s((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,V._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,V._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function ld(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,V._)`{}`);return t!==void 0&&$c(e,r,t),r}s(ld,"evaluatedPropsToName");k.evaluatedPropsToName=ld;function $c(e,t,r){Object.keys(r).forEach(n=>e.assign((0,V._)`${t}${(0,V.getProperty)(n)}`,!0))}s($c,"setEvaluated");k.setEvaluated=$c;var sd={};function B2(e,t){return e.scopeValue("func",{ref:t,code:sd[t.code]||(sd[t.code]=new C2._Code(t.code))})}s(B2,"useFunc");k.useFunc=B2;var Sc;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Sc||(k.Type=Sc={}));function H2(e,t,r){if(e instanceof V.Name){let n=t===Sc.Num;return r?n?(0,V._)`"[" + ${e} + "]"`:(0,V._)`"['" + ${e} + "']"`:n?(0,V._)`"/" + ${e}`:(0,V._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,V.getProperty)(e).toString():"/"+Pc(e)}s(H2,"getErrorPath");k.getErrorPath=H2;function pd(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(pd,"checkStrictMode");k.checkStrictMode=pd});var Me=h(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var pe=A(),U2={data:new pe.Name("data"),valCxt:new pe.Name("valCxt"),instancePath:new pe.Name("instancePath"),parentData:new pe.Name("parentData"),parentDataProperty:new pe.Name("parentDataProperty"),rootData:new pe.Name("rootData"),dynamicAnchors:new pe.Name("dynamicAnchors"),vErrors:new pe.Name("vErrors"),errors:new pe.Name("errors"),this:new pe.Name("this"),self:new pe.Name("self"),scope:new pe.Name("scope"),json:new pe.Name("json"),jsonPos:new pe.Name("jsonPos"),jsonLen:new pe.Name("jsonLen"),jsonPart:new pe.Name("jsonPart")};Oc.default=U2});var li=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.extendErrors=fe.resetErrorsCount=fe.reportExtraError=fe.reportError=fe.keyword$DataError=fe.keywordError=void 0;var q=A(),No=R(),ve=Me();fe.keywordError={message:s(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};fe.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function z2(e,t=fe.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=md(e,t,r);n??(a||c)?fd(o,u):dd(i,(0,q._)`[${u}]`)}s(z2,"reportError");fe.reportError=z2;function G2(e,t=fe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=md(e,t,r);fd(i,c),o||a||dd(n,ve.default.vErrors)}s(G2,"reportExtraError");fe.reportExtraError=G2;function Z2(e,t){e.assign(ve.default.errors,t),e.if((0,q._)`${ve.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${ve.default.vErrors}.length`,t),()=>e.assign(ve.default.vErrors,null)))}s(Z2,"resetErrorsCount");fe.resetErrorsCount=Z2;function K2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ve.default.errors,c=>{e.const(a,(0,q._)`${ve.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(ve.default.instancePath,o.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}s(K2,"extendErrors");fe.extendErrors=K2;function fd(e,t){let r=e.const("err",t);e.if((0,q._)`${ve.default.vErrors} === null`,()=>e.assign(ve.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${ve.default.vErrors}.push(${r})`),e.code((0,q._)`${ve.default.errors}++`)}s(fd,"addError");function dd(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}s(dd,"returnErrors");var xr={keyword:new q.Name("keyword"),schemaPath:new q.Name("schemaPath"),params:new q.Name("params"),propertyName:new q.Name("propertyName"),message:new q.Name("message"),schema:new q.Name("schema"),parentSchema:new q.Name("parentSchema")};function md(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:Y2(e,t,r)}s(md,"errorObjectCode");function Y2(e,t,r={}){let{gen:n,it:i}=e,o=[W2(i,r),Q2(e,r)];return J2(e,t,o),n.object(...o)}s(Y2,"errorObject");function W2({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,No.getErrorPath)(t,No.Type.Str)}`:e;return[ve.default.instancePath,(0,q.strConcat)(ve.default.instancePath,r)]}s(W2,"errorInstancePath");function Q2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,q.str)`${t}/${e}`;return r&&(i=(0,q.str)`${i}${(0,No.getErrorPath)(r,No.Type.Str)}`),[xr.schemaPath,i]}s(Q2,"errorSchemaPath");function J2(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([xr.keyword,i],[xr.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([xr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([xr.schema,a],[xr.parentSchema,(0,q._)`${f}${p}`],[ve.default.data,o]),l&&n.push([xr.propertyName,l])}s(J2,"extraErrorProps")});var gd=h(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.boolOrEmptySchema=ln.topBoolOrEmptySchema=void 0;var X2=li(),e1=A(),t1=Me(),r1={message:"boolean schema is false"};function n1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?hd(e,!1):typeof r=="object"&&r.$async===!0?t.return(t1.default.data):(t.assign((0,e1._)`${n}.errors`,null),t.return(!0))}s(n1,"topBoolOrEmptySchema");ln.topBoolOrEmptySchema=n1;function i1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),hd(e)):r.var(t,!0)}s(i1,"boolOrEmptySchema");ln.boolOrEmptySchema=i1;function hd(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,X2.reportError)(i,r1,void 0,t)}s(hd,"falseSchemaError")});var Ec=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.getRules=pn.isJSONType=void 0;var o1=["string","number","integer","boolean","null","object","array"],s1=new Set(o1);function a1(e){return typeof e=="string"&&s1.has(e)}s(a1,"isJSONType");pn.isJSONType=a1;function c1(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(c1,"getRules");pn.getRules=c1});var xc=h(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.shouldUseRule=zt.shouldUseGroup=zt.schemaHasRulesForType=void 0;function u1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&yd(e,n)}s(u1,"schemaHasRulesForType");zt.schemaHasRulesForType=u1;function yd(e,t){return t.rules.some(r=>vd(e,r))}s(yd,"shouldUseGroup");zt.shouldUseGroup=yd;function vd(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(vd,"shouldUseRule");zt.shouldUseRule=vd});var pi=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var l1=Ec(),p1=xc(),f1=li(),I=A(),_d=R(),fn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(fn||(de.DataType=fn={}));function d1(e){let t=bd(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(d1,"getSchemaTypes");de.getSchemaTypes=d1;function bd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(l1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(bd,"getJSONTypes");de.getJSONTypes=bd;function m1(e,t){let{gen:r,data:n,opts:i}=e,o=h1(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,p1.schemaHasRulesForType)(e,t[0]));if(a){let c=Ac(t,n,i.strictNumbers,fn.Wrong);r.if(c,()=>{o.length?g1(e,t,o):Ic(e)})}return a}s(m1,"coerceAndCheckDataType");de.coerceAndCheckDataType=m1;var Sd=new Set(["string","number","integer","boolean","null"]);function h1(e,t){return t?e.filter(r=>Sd.has(r)||t==="array"&&r==="array"):[]}s(h1,"coerceToTypes");function g1(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),c=n.let("coerced",(0,I._)`undefined`);o.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Ac(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,I._)`${c} !== undefined`);for(let l of r)(Sd.has(l)||l==="array"&&o.coerceTypes==="array")&&u(l);n.else(),Ic(e),n.endIf(),n.if((0,I._)`${c} !== undefined`,()=>{n.assign(i,c),y1(e,c)});function u(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(c,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
7
|
+
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
|
|
8
|
+
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
|
|
9
|
+
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,I._)`[${i}]`)}}s(u,"coerceSpecificType")}s(g1,"coerceData");function y1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(y1,"assignParentData");function wc(e,t,r,n=fn.Correct){let i=n===fn.Correct?I.operators.EQ:I.operators.NEQ,o;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":o=(0,I._)`Array.isArray(${t})`;break;case"object":o=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===fn.Correct?o:(0,I.not)(o);function a(c=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,c,r?(0,I._)`isFinite(${t})`:I.nil)}}s(wc,"checkDataType");de.checkDataType=wc;function Ac(e,t,r,n){if(e.length===1)return wc(e[0],t,r,n);let i,o=(0,_d.toHash)(e);if(o.array&&o.object){let a=(0,I._)`typeof ${t} != "object"`;i=o.null?a:(0,I._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=I.nil;o.number&&delete o.integer;for(let a in o)i=(0,I.and)(i,wc(a,t,r,n));return i}s(Ac,"checkDataTypes");de.checkDataTypes=Ac;var v1={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Ic(e){let t=_1(e);(0,f1.reportError)(t,v1)}s(Ic,"reportTypeError");de.reportTypeError=Ic;function _1(e){let{gen:t,data:r,schema:n}=e,i=(0,_d.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(_1,"getTypeErrorContext")});var $d=h(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.assignDefaults=void 0;var dn=A(),b1=R();function S1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Pd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Pd(e,o,i.default))}s(S1,"assignDefaults");Ro.assignDefaults=S1;function Pd(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,dn._)`${o}${(0,dn.getProperty)(t)}`;if(i){(0,b1.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,dn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,dn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,dn._)`${c} = ${(0,dn.stringify)(r)}`)}s(Pd,"assignDefault")});var De=h(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var B=A(),Tc=R(),Gt=Me(),P1=R();function $1(e,t){let{gen:r,data:n,it:i}=e;r.if(Nc(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,B._)`${t}`},!0),e.error()})}s($1,"checkReportMissingProp");L.checkReportMissingProp=$1;function O1({gen:e,data:t,it:{opts:r}},n,i){return(0,B.or)(...n.map(o=>(0,B.and)(Nc(e,t,o,r.ownProperties),(0,B._)`${i} = ${o}`)))}s(O1,"checkMissingProp");L.checkMissingProp=O1;function E1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(E1,"reportMissingProp");L.reportMissingProp=E1;function Od(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,B._)`Object.prototype.hasOwnProperty`})}s(Od,"hasPropFunc");L.hasPropFunc=Od;function kc(e,t,r){return(0,B._)`${Od(e)}.call(${t}, ${r})`}s(kc,"isOwnProperty");L.isOwnProperty=kc;function x1(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} !== undefined`;return n?(0,B._)`${i} && ${kc(e,t,r)}`:i}s(x1,"propertyInData");L.propertyInData=x1;function Nc(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} === undefined`;return n?(0,B.or)(i,(0,B.not)(kc(e,t,r))):i}s(Nc,"noPropertyInData");L.noPropertyInData=Nc;function Ed(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Ed,"allSchemaProperties");L.allSchemaProperties=Ed;function w1(e,t){return Ed(t).filter(r=>!(0,Tc.alwaysValidSchema)(e,t[r]))}s(w1,"schemaProperties");L.schemaProperties=w1;function A1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,l){let f=l?(0,B._)`${e}, ${t}, ${n}${i}`:t,p=[[Gt.default.instancePath,(0,B.strConcat)(Gt.default.instancePath,o)],[Gt.default.parentData,a.parentData],[Gt.default.parentDataProperty,a.parentDataProperty],[Gt.default.rootData,Gt.default.rootData]];a.opts.dynamicRef&&p.push([Gt.default.dynamicAnchors,Gt.default.dynamicAnchors]);let d=(0,B._)`${f}, ${r.object(...p)}`;return u!==B.nil?(0,B._)`${c}.call(${u}, ${d})`:(0,B._)`${c}(${d})`}s(A1,"callValidateCode");L.callValidateCode=A1;var I1=(0,B._)`new RegExp`;function T1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,B._)`${i.code==="new RegExp"?I1:(0,P1.useFunc)(e,i)}(${r}, ${n})`})}s(T1,"usePattern");L.usePattern=T1;function k1(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,B._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Tc.Type.Num},o),t.if((0,B.not)(o),c)})}s(a,"validateItems")}s(k1,"validateArray");L.validateArray=k1;function N1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Tc.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,B._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,B.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(N1,"validateUnion");L.validateUnion=N1});var Ad=h(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.validateKeywordUsage=lt.validSchemaType=lt.funcKeywordCode=lt.macroKeywordCode=void 0;var _e=A(),wr=Me(),R1=De(),C1=li();function q1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=wd(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:_e.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(q1,"macroKeywordCode");lt.macroKeywordCode=q1;function j1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;D1(u,t);let l=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,f=wd(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&xd(e),v(()=>e.error());else{let _=t.async?m():g();t.modifying&&xd(e),v(()=>M1(e,_))}}s(d,"validateKeyword");function m(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,_e._)`await `),b=>n.assign(p,!1).if((0,_e._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(_,(0,_e._)`${b}.errors`),()=>n.throw(b))),_}s(m,"validateAsync");function g(){let _=(0,_e._)`${f}.errors`;return n.assign(_,null),y(_e.nil),_}s(g,"validateSync");function y(_=t.async?(0,_e._)`await `:_e.nil){let b=u.opts.passContext?wr.default.this:wr.default.self,P=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,_e._)`${_}${(0,R1.callValidateCode)(e,f,b,P)}`,t.modifying)}s(y,"assignValid");function v(_){var b;n.if((0,_e.not)((b=t.valid)!==null&&b!==void 0?b:p),_)}s(v,"reportErrs")}s(j1,"funcKeywordCode");lt.funcKeywordCode=j1;function xd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_e._)`${n.parentData}[${n.parentDataProperty}]`))}s(xd,"modifyData");function M1(e,t){let{gen:r}=e;r.if((0,_e._)`Array.isArray(${t})`,()=>{r.assign(wr.default.vErrors,(0,_e._)`${wr.default.vErrors} === null ? ${t} : ${wr.default.vErrors}.concat(${t})`).assign(wr.default.errors,(0,_e._)`${wr.default.vErrors}.length`),(0,C1.extendErrors)(e)},()=>e.error())}s(M1,"addErrs");function D1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(D1,"checkAsyncKeyword");function wd(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,_e.stringify)(r)})}s(wd,"useKeyword");function L1(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(L1,"validSchemaType");lt.validSchemaType=L1;function F1({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(F1,"validateKeywordUsage");lt.validateKeywordUsage=F1});var Td=h(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.extendSubschemaMode=Zt.extendSubschemaData=Zt.getSubschema=void 0;var pt=A(),Id=R();function V1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,pt._)`${e.schemaPath}${(0,pt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,pt._)`${e.schemaPath}${(0,pt.getProperty)(t)}${(0,pt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Id.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(V1,"getSubschema");Zt.getSubschema=V1;function B1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,pt._)`${t.data}${(0,pt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,pt.str)`${l}${(0,Id.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,pt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof pt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(u,"dataContextProps")}s(B1,"extendSubschemaData");Zt.extendSubschemaData=B1;function H1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(H1,"extendSubschemaMode");Zt.extendSubschemaMode=H1});var Rc=h((Cq,kd)=>{"use strict";kd.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Rd=h((jq,Nd)=>{"use strict";var Kt=Nd.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Co(t,n,i,e,"",e)};Kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Co(e,t,r,n,i,o,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in Kt.arrayKeywords)for(var d=0;d<p.length;d++)Co(e,t,r,p[d],i+"/"+f+"/"+d,o,i,f,n,d)}else if(f in Kt.propsKeywords){if(p&&typeof p=="object")for(var m in p)Co(e,t,r,p[m],i+"/"+f+"/"+U1(m),o,i,f,n,m)}else(f in Kt.keywords||e.allKeys&&!(f in Kt.skipKeywords))&&Co(e,t,r,p,i+"/"+f,o,i,f,n)}r(n,i,o,a,c,u,l)}}s(Co,"_traverse");function U1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(U1,"escapeJsonPtr")});var fi=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var z1=R(),G1=Rc(),Z1=Rd(),K1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Y1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Cc(e):t?Cd(e)<=t:!1}s(Y1,"inlineRef");Ae.inlineRef=Y1;var W1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Cc(e){for(let t in e){if(W1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Cc)||typeof r=="object"&&Cc(r))return!0}return!1}s(Cc,"hasRef");function Cd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!K1.has(r)&&(typeof e[r]=="object"&&(0,z1.eachItem)(e[r],n=>t+=Cd(n)),t===1/0))return 1/0}return t}s(Cd,"countKeys");function qd(e,t="",r){r!==!1&&(t=mn(t));let n=e.parse(t);return jd(e,n)}s(qd,"getFullPath");Ae.getFullPath=qd;function jd(e,t){return e.serialize(t).split("#")[0]+"#"}s(jd,"_getFullPath");Ae._getFullPath=jd;var Q1=/#\/?$/;function mn(e){return e?e.replace(Q1,""):""}s(mn,"normalizeId");Ae.normalizeId=mn;function J1(e,t,r){return r=mn(r),e.resolve(t,r)}s(J1,"resolveUrl");Ae.resolveUrl=J1;var X1=/^[a-z_][-a-z0-9._]*$/i;function eP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=mn(e[r]||t),o={"":i},a=qd(n,i,!1),c={},u=new Set;return Z1(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof p[r]=="string"&&(v=_.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),o[d]=v;function _(P){let E=this.opts.uriResolver.resolve;if(P=mn(v?E(v,P):P),u.has(P))throw f(P);u.add(P);let S=this.refs[P];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,P):P!==mn(y)&&(P[0]==="#"?(l(p,c[P],P),c[P]=p):this.refs[P]=y),P}s(_,"addRef");function b(P){if(typeof P=="string"){if(!X1.test(P))throw new Error(`invalid anchor "${P}"`);_.call(this,`#${P}`)}}s(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!G1(p,d))throw f(m)}s(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}s(f,"ambiguos")}s(eP,"getSchemaRefs");Ae.getSchemaRefs=eP});var hi=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getData=Yt.KeywordCxt=Yt.validateFunctionCode=void 0;var Vd=gd(),Md=pi(),jc=xc(),qo=pi(),tP=$d(),mi=Ad(),qc=Td(),O=A(),w=Me(),rP=fi(),kt=R(),di=li();function nP(e){if(Ud(e)&&(zd(e),Hd(e))){sP(e);return}Bd(e,()=>(0,Vd.topBoolOrEmptySchema)(e))}s(nP,"validateFunctionCode");Yt.validateFunctionCode=nP;function Bd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Dd(r,i)}`),oP(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${iP(i)}`,n.$async,()=>e.code(Dd(r,i)).code(o))}s(Bd,"validateFunction");function iP(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}s(iP,"destructureValCxt");function oP(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}s(oP,"destructureValCxtES5");function sP(e){let{schema:t,opts:r,gen:n}=e;Bd(e,()=>{r.$comment&&t.$comment&&Zd(e),pP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&aP(e),Gd(e),mP(e)})}s(sP,"topSchemaObjCode");function aP(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}s(aP,"resetEvaluated");function Dd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}s(Dd,"funcSourceUrl");function cP(e,t){if(Ud(e)&&(zd(e),Hd(e))){uP(e,t);return}(0,Vd.boolOrEmptySchema)(e,t)}s(cP,"subschemaCode");function Hd({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Hd,"schemaCxtHasRules");function Ud(e){return typeof e.schema!="boolean"}s(Ud,"isSchemaObj");function uP(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Zd(e),fP(e),dP(e);let o=n.const("_errs",w.default.errors);Gd(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(uP,"subSchemaObjCode");function zd(e){(0,kt.checkUnknownRules)(e),lP(e)}s(zd,"checkKeywords");function Gd(e,t){if(e.opts.jtd)return Ld(e,[],!1,t);let r=(0,Md.getSchemaTypes)(e.schema),n=(0,Md.coerceAndCheckDataType)(e,r);Ld(e,r,!n,t)}s(Gd,"typeAndKeywords");function lP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,kt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(lP,"checkRefsAndKeywords");function pP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,kt.checkStrictMode)(e,"default is ignored in the schema root")}s(pP,"checkNoDefault");function fP(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,rP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(fP,"updateContext");function dP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(dP,"checkAsyncSchema");function Zd({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(Zd,"commentKeyword");function mP(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),o.unevaluated&&hP(e),t.return((0,O._)`${w.default.errors} === 0`))}s(mP,"returnResults");function hP({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}s(hP,"assignEvaluated");function Ld(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,kt.schemaHasRulesButRef)(o,f))){i.block(()=>Yd(e,"$ref",f.all.$ref.definition));return}u.jtd||gP(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,jc.shouldUseGroup)(o,d)&&(d.type?(i.if((0,qo.checkDataType)(d.type,a,u.strictNumbers)),Fd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,qo.reportTypeError)(e)),i.endIf()):Fd(e,d),c||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(p,"groupKeywords")}s(Ld,"schemaKeywords");function Fd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,tP.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,jc.shouldUseRule)(n,o)&&Yd(e,o.keyword,o.definition,t.type)})}s(Fd,"iterateKeywords");function gP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(yP(e,t),e.opts.allowUnionTypes||vP(e,t),_P(e,e.dataTypes))}s(gP,"checkStrictTypes");function yP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Kd(e.dataTypes,r)||Mc(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),SP(e,t)}}s(yP,"checkContextTypes");function vP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Mc(e,"use allowUnionTypes to allow union type keyword")}s(vP,"checkMultipleTypes");function _P(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,jc.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>bP(t,a))&&Mc(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(_P,"checkKeywordTypes");function bP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(bP,"hasApplicableType");function Kd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Kd,"includesType");function SP(e,t){let r=[];for(let n of e.dataTypes)Kd(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(SP,"narrowSchemaTypes");function Mc(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,kt.checkStrictMode)(e,t,e.opts.strictTypes)}s(Mc,"strictTypesError");var Dc=class Dc{constructor(t,r,n){if((0,mi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,kt.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Wd(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,mi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?di.reportExtraError:di.reportError)(this,this.def.error,r)}$dataError(){(0,di.reportError)(this,this.def.$dataError||di.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,di.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,O.or)(a(),c());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,O._)`${(0,qo.checkDataTypes)(u,r,o.opts.strictNumbers,qo.DataType.Wrong)}`}return O.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${u}(${r})`}return O.nil}}subschema(t,r){let n=(0,qc.getSubschema)(this.it,t);(0,qc.extendSubschemaData)(n,this.it,t),(0,qc.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return cP(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=kt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=kt.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};s(Dc,"KeywordCxt");var jo=Dc;Yt.KeywordCxt=jo;function Yd(e,t,r,n){let i=new jo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,mi.funcKeywordCode)(i,r):"macro"in r?(0,mi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,mi.funcKeywordCode)(i,r)}s(Yd,"keywordCode");var PP=/^\/(?:[^~]|~0|~1)*$/,$P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Wd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!PP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=$P.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(o=r[t-f],!i)return o}let a=o,c=i.split("/");for(let l of c)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,kt.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}s(Wd,"getData");Yt.getData=Wd});var Mo=h(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var Vc=class Vc extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Vc,"ValidationError");var Lc=Vc;Fc.default=Lc});var gi=h(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var Bc=fi(),zc=class zc extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Bc.resolveUrl)(t,r,n),this.missingSchema=(0,Bc.normalizeId)((0,Bc.getFullPath)(t,this.missingRef))}};s(zc,"MissingRefError");var Hc=zc;Uc.default=Hc});var yi=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.resolveSchema=Le.getCompilingSchema=Le.resolveRef=Le.compileSchema=Le.SchemaEnv=void 0;var Ye=A(),OP=Mo(),Ar=Me(),We=fi(),Qd=R(),EP=hi(),Kc=class Kc{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,We.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Kc,"SchemaEnv");var hn=Kc;Le.SchemaEnv=hn;function Zc(e){let t=Jd.call(this,e);if(t)return t;let r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ye.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:OP.default,code:(0,Ye._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ar.default.data,parentData:Ar.default.parentData,parentDataProperty:Ar.default.parentDataProperty,dataNames:[Ar.default.data],dataPathArr:[Ye.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ye.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ye.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ye._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,EP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ar.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ar.default.self}`,`${Ar.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof Ye.Name?void 0:g,items:y instanceof Ye.Name?void 0:y,dynamicProps:g instanceof Ye.Name,dynamicItems:y instanceof Ye.Name},m.source&&(m.source.evaluated=(0,Ye.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}s(Zc,"compileSchema");Le.compileSchema=Zc;function xP(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=IP.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new hn({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=wP.call(this,o)}s(xP,"resolveRef");Le.resolveRef=xP;function wP(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Zc.call(this,e)}s(wP,"inlineOrCompile");function Jd(e){for(let t of this._compilations)if(AP(t,e))return t}s(Jd,"getCompilingSchema");Le.getCompilingSchema=Jd;function AP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(AP,"sameSchemaEnv");function IP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Do.call(this,e,t)}s(IP,"resolve");function Do(e,t){let r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r),i=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Gc.call(this,r,e);let o=(0,We.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=Do.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Gc.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Zc.call(this,a),o===(0,We.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,We.resolveUrl)(this.opts.uriResolver,i,l)),new hn({schema:c,schemaId:u,root:e,baseId:i})}return Gc.call(this,r,a)}}s(Do,"resolveSchema");Le.resolveSchema=Do;var TP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Gc(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,Qd.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!TP.has(c)&&l&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Qd.schemaHasRulesButRef)(r,this.RULES)){let c=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Do.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new hn({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Gc,"getJsonPointer")});var Xd=h((Kq,kP)=>{kP.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var tm=h((Yq,em)=>{"use strict";var NP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};em.exports={HEX:NP}});var um=h((Wq,cm)=>{"use strict";var{HEX:RP}=tm();function om(e){if(am(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:qP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(om,"normalizeIPv4");function Yc(e,t=!1){let r="",n=!0;for(let i of e){if(RP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Yc,"stringArrayToHexStripped");function CP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let l=Yc(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;o=!0}else{i.push(f);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(Yc(i))),r.address=n.join(""),r}s(CP,"getIPV6");function sm(e,t={}){if(am(e,":")<2)return{host:e,isIPV6:!1};let r=CP(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(sm,"normalizeIPv6");function qP(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(qP,"stripLeadingZeros");function am(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(am,"findToken");var rm=/^\.\.?\//u,nm=/^\/\.(?:\/|$)/u,im=/^\/\.\.(?:\/|$)/u,jP=/^\/?(?:.|\n)*?(?=\/|$)/u;function MP(e){let t=[];for(;e.length;)if(e.match(rm))e=e.replace(rm,"");else if(e.match(nm))e=e.replace(nm,"/");else if(e.match(im))e=e.replace(im,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(jP);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(MP,"removeDotSegments");function DP(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(DP,"normalizeComponentEncoding");function LP(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=om(n);if(i.isIPV4)n=i.host;else{let o=sm(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(LP,"recomposeAuthority");cm.exports={recomposeAuthority:LP,normalizeComponentEncoding:DP,removeDotSegments:MP,normalizeIPv4:om,normalizeIPv6:sm,stringArrayToHexStripped:Yc}});var hm=h((Jq,mm)=>{"use strict";var FP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,VP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function lm(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(lm,"isSecure");function pm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(pm,"httpParse");function fm(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(fm,"httpSerialize");function BP(e){return e.secure=lm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(BP,"wsParse");function HP(e){if((e.port===(lm(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(HP,"wsSerialize");function UP(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(VP);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Wc[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(UP,"urnParse");function zP(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Wc[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(zP,"urnSerialize");function GP(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!FP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(GP,"urnuuidParse");function ZP(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(ZP,"urnuuidSerialize");var dm={scheme:"http",domainHost:!0,parse:pm,serialize:fm},KP={scheme:"https",domainHost:dm.domainHost,parse:pm,serialize:fm},Lo={scheme:"ws",domainHost:!0,parse:BP,serialize:HP},YP={scheme:"wss",domainHost:Lo.domainHost,parse:Lo.parse,serialize:Lo.serialize},WP={scheme:"urn",parse:UP,serialize:zP,skipNormalize:!0},QP={scheme:"urn:uuid",parse:GP,serialize:ZP,skipNormalize:!0},Wc={http:dm,https:KP,ws:Lo,wss:YP,urn:WP,"urn:uuid":QP};mm.exports=Wc});var ym=h((ej,Vo)=>{"use strict";var{normalizeIPv6:JP,normalizeIPv4:XP,removeDotSegments:vi,recomposeAuthority:e$,normalizeComponentEncoding:Fo}=um(),Qc=hm();function t$(e,t){return typeof e=="string"?e=ft(Nt(e,t),t):typeof e=="object"&&(e=Nt(ft(e,t),t)),e}s(t$,"normalize");function r$(e,t,r){let n=Object.assign({scheme:"null"},r),i=gm(Nt(e,n),Nt(t,n),n,!0);return ft(i,{...n,skipEscape:!0})}s(r$,"resolve");function gm(e,t,r,n){let i={};return n||(e=Nt(ft(e,r),r),t=Nt(ft(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=vi(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=vi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=vi(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=vi(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(gm,"resolveComponents");function n$(e,t,r){return typeof e=="string"?(e=unescape(e),e=ft(Fo(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=ft(Fo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=ft(Fo(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=ft(Fo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(n$,"equal");function ft(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=Qc[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=e$(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=vi(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(ft,"serialize");var i$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function o$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||i$[t])return!0;return!1}s(o$,"nonSimpleDomain");var s$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(s$);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=XP(n.host);if(u.isIPV4===!1){let l=JP(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Qc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&o$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(Nt,"parse");var Jc={SCHEMES:Qc,normalize:t$,resolve:r$,resolveComponents:gm,equal:n$,serialize:ft,parse:Nt};Vo.exports=Jc;Vo.exports.default=Jc;Vo.exports.fastUri=Jc});var _m=h(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var vm=ym();vm.code='require("ajv/dist/runtime/uri").default';Xc.default=vm});var yn=h(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.CodeGen=se.Name=se.nil=se.stringify=se.str=se._=se.KeywordCxt=void 0;var a$=hi();Object.defineProperty(se,"KeywordCxt",{enumerable:!0,get:s(function(){return a$.KeywordCxt},"get")});var gn=A();Object.defineProperty(se,"_",{enumerable:!0,get:s(function(){return gn._},"get")});Object.defineProperty(se,"str",{enumerable:!0,get:s(function(){return gn.str},"get")});Object.defineProperty(se,"stringify",{enumerable:!0,get:s(function(){return gn.stringify},"get")});Object.defineProperty(se,"nil",{enumerable:!0,get:s(function(){return gn.nil},"get")});Object.defineProperty(se,"Name",{enumerable:!0,get:s(function(){return gn.Name},"get")});Object.defineProperty(se,"CodeGen",{enumerable:!0,get:s(function(){return gn.CodeGen},"get")});var c$=Mo(),Om=gi(),u$=Ec(),_i=yi(),l$=A(),bi=fi(),Bo=pi(),tu=R(),bm=Xd(),p$=_m(),Em=s((e,t)=>new RegExp(e,t),"defaultRegExp");Em.code="new RegExp";var f$=["removeAdditional","useDefaults","coerceTypes"],d$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m$={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},h$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Sm=200;function g$(e){var t,r,n,i,o,a,c,u,l,f,p,d,m,g,y,v,_,b,P,E,S,j,N,Q,ie;let le=e.strict,qe=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=qe===!0||qe===void 0?1:qe||0,Ht=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Em,tn=(i=e.uriResolver)!==null&&i!==void 0?i:p$.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:le)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:le)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Ht}:{optimize:Ee,regExp:Ht},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Sm,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Sm,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(P=e.inlineRefs)!==null&&P!==void 0?P:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(j=e.validateSchema)!==null&&j!==void 0?j:!0,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(Q=e.unicodeRegExp)!==null&&Q!==void 0?Q:!0,int32range:(ie=e.int32range)!==null&&ie!==void 0?ie:!0,uriResolver:tn}}s(g$,"requiredOptions");var ru=class ru{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...g$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new l$.ValueScope({scope:{},prefixes:d$,es5:r,lines:n}),this.logger=P$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,u$.getRules)(),Pm.call(this,m$,t,"NOT SUPPORTED"),Pm.call(this,h$,t,"DEPRECATED","warn"),this._metaOpts=b$.call(this),t.formats&&v$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&_$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),y$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=bm;n==="id"&&(i={...bm},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(f,p){await o.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function o(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof Om.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await o.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,bi.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=$m.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new _i.SchemaEnv({schema:{},schemaId:n});if(r=_i.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=$m.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,bi.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O$.call(this,n,r),!r)return(0,tu.eachItem)(n,o=>eu.call(this,o)),this;x$.call(this,r);let i={...r,type:(0,Bo.getJSONTypes)(r.type),schemaType:(0,Bo.getJSONTypes)(r.schemaType)};return(0,tu.eachItem)(n,i.type.length===0?o=>eu.call(this,o,i):o=>i.type.forEach(a=>eu.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,f=a[c];l&&f&&(a[c]=xm(f))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,bi.normalizeId)(a||n);let l=bi.getSchemaRefs.call(this,t,n);return u=new _i.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):_i.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{_i.compileSchema.call(this,t)}finally{this.opts=r}}};s(ru,"Ajv");var Si=ru;Si.ValidationError=c$.default;Si.MissingRefError=Om.default;se.default=Si;function Pm(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(Pm,"checkOptions");function $m(e){return e=(0,bi.normalizeId)(e),this.schemas[e]||this.refs[e]}s($m,"getSchEnv");function y$(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(y$,"addInitialSchemas");function v$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(v$,"addInitialFormats");function _$(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(_$,"addInitialKeywords");function b$(){let e={...this.opts};for(let t of f$)delete e[t];return e}s(b$,"getMetaSchemaOptions");var S$={log(){},warn(){},error(){}};function P$(e){if(e===!1)return S$;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(P$,"getLogger");var $$=/^[a-z_$][a-z0-9_$:-]*$/i;function O$(e,t){let{RULES:r}=this;if((0,tu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!$$.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(O$,"checkKeyword");function eu(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Bo.getJSONTypes)(t.type),schemaType:(0,Bo.getJSONTypes)(t.schemaType)}};t.before?E$.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(eu,"addRule");function E$(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(E$,"addBeforeRule");function x$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=xm(t)),e.validateSchema=this.compile(t,!0))}s(x$,"keywordMetaschema");var w$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function xm(e){return{anyOf:[e,w$]}}s(xm,"schemaOrData")});var Pi=h(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.callRef=Ir.getValidate=void 0;var A$=gi(),wm=De(),Ie=A(),vn=Me(),Am=yi(),Ho=R(),I$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Am.resolveRef.call(u,l,i,r);if(f===void 0)throw new A$.default(n.opts.uriResolver,i,r);if(f instanceof Am.SchemaEnv)return d(f);return m(f);function p(){if(o===l)return Uo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Uo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Im(e,g);Uo(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Im(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Im,"getValidate");Ir.getValidate=Im;function Uo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,l=u.passContext?vn.default.this:Ie.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,wm.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,Ie._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}s(f,"callAsyncRef");function p(){e.result((0,wm.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}s(p,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(vn.default.vErrors,(0,Ie._)`${vn.default.vErrors} === null ? ${y} : ${vn.default.vErrors}.concat(${y})`),i.assign(vn.default.errors,(0,Ie._)`${vn.default.vErrors}.length`)}s(d,"addErrorsFrom");function m(g){var y;if(!o.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Ho.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);o.props=Ho.mergeEvaluated.props(i,_,o.props,Ie.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Ho.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);o.items=Ho.mergeEvaluated.items(i,_,o.items,Ie.Name)}}s(m,"addEvaluatedFrom")}s(Uo,"callRef");Ir.callRef=Uo;Ir.default=I$});var Tm=h(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var T$=Pi(),k$=["$schema","id","$defs",{keyword:"$comment"},"definitions",T$.default];nu.default=k$});var km=h(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var iu=yn(),N$=A(),Wt=N$.operators,ou={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Wt.LTE,fail:Wt.GT},{okStr:"<",ok:Wt.LT,fail:Wt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Wt.GTE,fail:Wt.LT},{okStr:">",ok:Wt.GT,fail:Wt.LTE}]}},R$={message:s(e=>iu.str`must be ${su(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>iu._`{comparison: ${su(e).okStr}, limit: ${e.schemaCode}}`,"params")},C$={keyword:Object.keys(ou),type:"number",schemaType:"number",$data:!0,error:R$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(iu._`${t} ${su(e).fail} ${r} || isNaN(${t})`)}};function su(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ou[r].exclusive]?1:0;return ou[r].ops[n]}s(su,"kwdOp");au.default=C$});var Rm=h(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Nm={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},q$={keyword:Object.keys(Nm),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Nm[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};cu.default=q$});var lu=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var $i=A(),j$={message:s(({schemaCode:e})=>(0,$i.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,$i._)`{multipleOf: ${e}}`,"params")},M$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:j$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,$i._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,$i._)`${a} !== parseInt(${a})`;e.fail$data((0,$i._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};uu.default=M$});var qm=h(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});function Cm(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(Cm,"ucs2length");pu.default=Cm;Cm.code='require("ajv/dist/runtime/ucs2length").default'});var du=h(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Tr=A(),D$=R(),L$=qm(),F$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Tr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Tr._)`{limit: ${e}}`,"params")},V$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:F$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Tr.operators.GT:Tr.operators.LT,a=i.opts.unicode===!1?(0,Tr._)`${r}.length`:(0,Tr._)`${(0,D$.useFunc)(e.gen,L$.default)}(${r})`;e.fail$data((0,Tr._)`${a} ${o} ${n}`)}};fu.default=V$});var hu=h(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var B$=De(),zo=A(),H$={message:s(({schemaCode:e})=>(0,zo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,zo._)`{pattern: ${e}}`,"params")},U$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:H$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,zo._)`(new RegExp(${i}, ${a}))`:(0,B$.usePattern)(e,n);e.fail$data((0,zo._)`!${c}.test(${t})`)}};mu.default=U$});var yu=h(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var Oi=A(),z$={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},G$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:z$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`Object.keys(${r}).length ${i} ${n}`)}};gu.default=G$});var _u=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var Ei=De(),xi=A(),Z$=R(),K$={message:s(({params:{missingProperty:e}})=>(0,xi.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,xi._)`{missingProperty: ${e}}`,"params")},Y$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:K$,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,Z$.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(u||o)e.block$data(xi.nil,p);else for(let m of r)(0,Ei.checkReportMissingProp)(e,m)}s(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||o){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,Ei.checkMissingProp)(e,r,m)),(0,Ei.reportMissingProp)(e,m),t.else()}s(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Ei.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}s(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,Ei.propertyInData)(t,i,m,c.ownProperties)),t.if((0,xi.not)(g),()=>{e.error(),t.break()})},xi.nil)}s(d,"loopUntilMissing")}};vu.default=Y$});var Su=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var wi=A(),W$={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,wi.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,wi._)`{limit: ${e}}`,"params")},Q$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:W$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?wi.operators.GT:wi.operators.LT;e.fail$data((0,wi._)`${r}.length ${i} ${n}`)}};bu.default=Q$});var Go=h(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var jm=Rc();jm.code='require("ajv/dist/runtime/equal").default';Pu.default=jm});var Eu=h(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var $u=pi(),ae=A(),J$=R(),X$=Go(),eO={message:s(({params:{i:e,j:t}})=>(0,ae.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ae._)`{i: ${e}, j: ${t}}`,"params")},tO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:eO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=o.items?(0,$u.getSchemaTypes)(o.items):[];e.block$data(u,f,(0,ae._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,ae._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,ae._)`${g} > 1`,()=>(p()?d:m)(g,y))}s(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(p,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,$u.checkDataTypes)(l,v,c.opts.strictNumbers,$u.DataType.Wrong),b=t.const("indices",(0,ae._)`{}`);t.for((0,ae._)`;${g}--;`,()=>{t.let(v,(0,ae._)`${r}[${g}]`),t.if(_,(0,ae._)`continue`),l.length>1&&t.if((0,ae._)`typeof ${v} == "string"`,(0,ae._)`${v} += "_"`),t.if((0,ae._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ae._)`${b}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ae._)`${b}[${v}] = ${g}`)})}s(d,"loopN");function m(g,y){let v=(0,J$.useFunc)(t,X$.default),_=t.name("outer");t.label(_).for((0,ae._)`;${g}--;`,()=>t.for((0,ae._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ae._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(_)})))}s(m,"loopN2")}};Ou.default=tO});var Au=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var xu=A(),rO=R(),nO=Go(),iO={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,xu._)`{allowedValue: ${e}}`,"params")},oO={keyword:"const",$data:!0,error:iO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,xu._)`!${(0,rO.useFunc)(t,nO.default)}(${r}, ${i})`):e.fail((0,xu._)`${o} !== ${r}`)}};wu.default=oO});var Tu=h(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Ai=A(),sO=R(),aO=Go(),cO={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ai._)`{allowedValues: ${e}}`,"params")},uO={keyword:"enum",schemaType:"array",$data:!0,error:cO,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=s(()=>u??(u=(0,sO.useFunc)(t,aO.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",o);f=(0,Ai.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",o,m=>t.if((0,Ai._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}s(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ai._)`${l()}(${r}, ${m}[${g}])`:(0,Ai._)`${r} === ${y}`}s(d,"equalCode")}};Iu.default=uO});var Mm=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var lO=km(),pO=Rm(),fO=lu(),dO=du(),mO=hu(),hO=yu(),gO=_u(),yO=Su(),vO=Eu(),_O=Au(),bO=Tu(),SO=[lO.default,pO.default,fO.default,dO.default,mO.default,hO.default,gO.default,yO.default,vO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_O.default,bO.default];ku.default=SO});var Ru=h(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.validateAdditionalItems=void 0;var kr=A(),Nu=R(),PO={message:s(({params:{len:e}})=>(0,kr.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,kr._)`{limit: ${e}}`,"params")},$O={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:PO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Nu.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Dm(e,n)}};function Dm(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,kr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,kr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Nu.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,kr._)`${c} <= ${t.length}`);r.if((0,kr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:o,dataProp:f,dataPropType:Nu.Type.Num},l),a.allErrors||r.if((0,kr.not)(l),()=>r.break())})}s(u,"validateItems")}s(Dm,"validateAdditionalItems");Ii.validateAdditionalItems=Dm;Ii.default=$O});var Cu=h(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.validateTuple=void 0;var Lm=A(),Zo=R(),OO=De(),EO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Fm(e,"additionalItems",t);r.items=!0,!(0,Zo.alwaysValidSchema)(r,t)&&e.ok((0,OO.validateArray)(e))}};function Fm(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Zo.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Lm._)`${o}.length`);r.forEach((p,d)=>{(0,Zo.alwaysValidSchema)(c,p)||(n.if((0,Lm._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Zo.checkStrictMode)(c,v,d.strictTuples)}}s(f,"checkStrictTuple")}s(Fm,"validateTuple");Ti.validateTuple=Fm;Ti.default=EO});var Vm=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var xO=Cu(),wO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,xO.validateTuple)(e,"items"),"code")};qu.default=wO});var Hm=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Bm=A(),AO=R(),IO=De(),TO=Ru(),kO={message:s(({params:{len:e}})=>(0,Bm.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Bm._)`{limit: ${e}}`,"params")},NO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:kO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,AO.alwaysValidSchema)(n,t)&&(i?(0,TO.validateAdditionalItems)(e,i):e.ok((0,IO.validateArray)(e)))}};ju.default=NO});var Um=h(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Fe=A(),Ko=R(),RO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe.str)`must contain at least ${e} valid item(s)`:(0,Fe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe._)`{minContains: ${e}}`:(0,Fe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},CO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:RO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:l}=n;o.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Fe._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Ko.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Ko.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ko.alwaysValidSchema)(o,r)){let y=(0,Fe._)`${f} >= ${a}`;c!==void 0&&(y=(0,Fe._)`${y} && ${f} <= ${c}`),e.pass(y);return}o.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Fe._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);m(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function m(y,v){t.forRange("i",0,f,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Ko.Type.Num,compositeRule:!0},y),v()})}s(m,"validateItems");function g(y){t.code((0,Fe._)`${y}++`),c===void 0?t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Fe._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(p,!0)))}s(g,"checkLimits")}};Mu.default=CO});var Yo=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.validateSchemaDeps=dt.validatePropertyDeps=dt.error=void 0;var Du=A(),qO=R(),ki=De();dt.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Du.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Du._)`{property: ${e},
|
|
10
10
|
missingProperty: ${n},
|
|
11
11
|
depsCount: ${t},
|
|
12
|
-
deps: ${r}}`,"params")};var yO={keyword:"dependencies",type:"object",schemaType:"object",error:ft.error,code(e){let[t,r]=vO(e);Dh(e,t),Lh(e,r)}};function vO({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(vO,"splitDependencies");function Dh(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,Ai.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,Ai.checkReportMissingProp)(e,l)}):(r.if((0,Nc._)`${c} && (${(0,Ai.checkMissingProp)(e,u,o)})`),(0,Ai.reportMissingProp)(e,o),r.else())}}s(Dh,"validatePropertyDeps");ft.validatePropertyDeps=Dh;function Lh(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,gO.alwaysValidSchema)(o,t[u])||(r.if((0,Ai.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(Lh,"validateSchemaDeps");ft.validateSchemaDeps=Lh;ft.default=yO});var Vh=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var Fh=A(),_O=T(),SO={message:"property name must be valid",params:s(({params:e})=>(0,Fh._)`{propertyName: ${e.propertyName}}`,"params")},bO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:SO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,_O.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,Fh.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};qc.default=bO});var Mc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var Go=De(),Ye=A(),PO=Me(),Zo=T(),$O={message:"must NOT have additional properties",params:s(({params:e})=>(0,Ye._)`{additionalProperty: ${e.additionalProperty}}`,"params")},OO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$O,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,Zo.alwaysValidSchema)(a,r))return;let l=(0,Go.allSchemaProperties)(n.properties),p=(0,Go.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ye._)`${o} === ${PO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}s(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let S=(0,Zo.schemaRefOrVal)(a,n.properties,"properties");_=(0,Go.isOwnProperty)(t,S,v)}else l.length?_=(0,Ye.or)(...l.map(S=>(0,Ye._)`${v} === ${S}`)):_=Ye.nil;return p.length&&(_=(0,Ye.or)(_,...p.map(S=>(0,Ye._)`${(0,Go.usePattern)(e,S)}.test(${v})`))),(0,Ye.not)(_)}s(d,"isAdditional");function h(v){t.code((0,Ye._)`delete ${i}[${v}]`)}s(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,Zo.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,Ye.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,Ye.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,S){let b={keyword:"additionalProperties",dataProp:v,dataPropType:Zo.Type.Str};S===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,_)}s(y,"applyAdditionalSchema")}};jc.default=OO});var Uh=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var EO=pi(),Bh=De(),Dc=T(),Hh=Mc(),xO={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Hh.default.code(new EO.KeywordCxt(o,Hh.default,"additionalProperties"));let a=(0,Bh.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Dc.mergeEvaluated.props(t,(0,Dc.toHash)(a),o.props));let u=a.filter(f=>!(0,Dc.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,Bh.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Lc.default=xO});var Kh=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var zh=De(),Ko=A(),Gh=T(),Zh=T(),wO={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,zh.allSchemaProperties)(r),c=u.filter(y=>(0,Gh.alwaysValidSchema)(o,r[y]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof Ko.Name)&&(o.props=(0,Zh.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let y of u)l&&h(y),o.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}s(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,Gh.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Ko._)`${(0,zh.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:Zh.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,Ko._)`${f}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,Ko.not)(p),()=>t.break())})})}s(g,"validateProperties")}};Fc.default=wO});var Wh=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var AO=T(),IO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,AO.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Vc.default=IO});var Yh=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var kO=De(),RO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:kO.validateUnion,error:{message:"must match a schema in anyOf"}};Bc.default=RO});var Qh=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var Wo=A(),TO=T(),CO={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Wo._)`{passingSchemas: ${e.passing}}`,"params")},NO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:CO,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,TO.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,Wo._)`${c} && ${a}`).assign(a,!1).assign(u,(0,Wo._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,Wo.Name)})})}s(l,"validateOneOf")}};Hc.default=NO});var Jh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qO=T(),jO={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,qO.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};Uc.default=jO});var tm=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Yo=A(),em=T(),MO={message:s(({params:e})=>(0,Yo.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Yo._)`{failingKeyword: ${e.ifClause}}`,"params")},DO={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MO,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,em.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Xh(n,"then"),o=Xh(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,Yo.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Yo._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function Xh(e,t){let r=e.schema[t];return r!==void 0&&!(0,em.alwaysValidSchema)(e,r)}s(Xh,"hasSchema");zc.default=DO});var rm=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var LO=T(),FO={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,LO.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Gc.default=FO});var Kc=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var VO=Ic(),BO=Nh(),HO=kc(),UO=jh(),zO=Mh(),GO=zo(),ZO=Vh(),KO=Mc(),WO=Uh(),YO=Kh(),QO=Wh(),JO=Yh(),XO=Qh(),eE=Jh(),tE=tm(),rE=rm();function nE(e=!1){let t=[QO.default,JO.default,XO.default,eE.default,tE.default,rE.default,ZO.default,KO.default,GO.default,WO.default,YO.default];return e?t.push(BO.default,UO.default):t.push(VO.default,HO.default),t.push(zO.default),t}s(nE,"getApplicator");Zc.default=nE});var nm=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var W=A(),iE={message:s(({schemaCode:e})=>(0,W.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,W._)`{format: ${e}}`,"params")},oE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:iE,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,W._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,W._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,W._)`${y}.type || "string"`).assign(_,(0,W._)`${y}.validate`),()=>r.assign(v,(0,W._)`"string"`).assign(_,y)),e.fail$data((0,W.or)(S(),b()));function S(){return c.strictSchema===!1?W.nil:(0,W._)`${a} && !${_}`}s(S,"unknownFmt");function b(){let E=p.$async?(0,W._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,W._)`${_}(${n})`,$=(0,W._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,W._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}s(b,"invalidFmt")}s(d,"validate$DataFormat");function h(){let g=f.formats[o];if(!g){S();return}if(g===!0)return;let[y,v,_]=b(g);y===t&&e.pass(E());function S(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(S,"unknownFormat");function b($){let M=$ instanceof RegExp?(0,W.regexpCode)($):c.code.formats?(0,W._)`${c.code.formats}${(0,W.getProperty)(o)}`:void 0,j=r.scopeValue("formats",{key:o,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,W._)`${j}.validate`]:["string",$,j]}s(b,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,W._)`await ${_}(${n})`}return typeof v=="function"?(0,W._)`${_}(${n})`:(0,W._)`${_}.test(${n})`}s(E,"validCondition")}s(h,"validateFormat")}};Wc.default=oE});var Qc=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var sE=nm(),aE=[sE.default];Yc.default=aE});var im=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var uE=$h(),cE=kh(),lE=Kc(),fE=Qc(),pE=["title","description","default"],dE=[uE.default,cE.default,lE.default(),fE.default,pE];Jc.default=dE});var sm=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiscrError=void 0;var om;(function(e){e.Tag="tag",e.Mapping="mapping"})(om||(Qo.DiscrError=om={}))});var tl=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var fn=A(),Xc=sm(),am=hi(),hE=di(),mE=T(),gE={message:s(({params:{discrError:e,tagName:t}})=>e===Xc.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,fn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},yE={keyword:"discriminator",type:"object",schemaType:"object",error:gE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,fn._)`${r}${(0,fn.getProperty)(u)}`);t.if((0,fn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Xc.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,fn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:Xc.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,fn.Name),g}s(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,mE.schemaHasRulesButRef)($,o.self.RULES)){let j=$.$ref;if($=am.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,j),$ instanceof am.SchemaEnv&&($=$.schema),$===void 0)throw new hE.default(o.opts.uriResolver,o.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),S(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function S(E,$){if(E.const)b(E.const,$);else if(E.enum)for(let M of E.enum)b(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function b(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}s(d,"getMapping")}};el.default=yE});var um=m((Vj,vE)=>{vE.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var fm=m((J,lm)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=void 0;var _E=cn(),SE=im(),bE=tl(),cm=um(),PE=["/properties"],Jo="http://json-schema.org/draft-04/schema",rl=class rl extends _E.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),SE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(bE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(cm,PE):cm;this.addMetaSchema(t,Jo,!1),this.refs["http://json-schema.org/schema"]=Jo}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Jo)?Jo:void 0)}};s(rl,"Ajv");var Xo=rl;lm.exports=J=Xo;Object.defineProperty(J,"__esModule",{value:!0});J.default=Xo;var $E=cn();Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:s(function(){return $E.KeywordCxt},"get")});var pn=cn();Object.defineProperty(J,"_",{enumerable:!0,get:s(function(){return pn._},"get")});Object.defineProperty(J,"str",{enumerable:!0,get:s(function(){return pn.str},"get")});Object.defineProperty(J,"stringify",{enumerable:!0,get:s(function(){return pn.stringify},"get")});Object.defineProperty(J,"nil",{enumerable:!0,get:s(function(){return pn.nil},"get")});Object.defineProperty(J,"Name",{enumerable:!0,get:s(function(){return pn.Name},"get")});Object.defineProperty(J,"CodeGen",{enumerable:!0,get:s(function(){return pn.CodeGen},"get")})});var pm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var OE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};nl.default=OE});var dm=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var EE=pm(),xE=_i(),wE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",EE.default,xE.default];il.default=wE});var hm=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var es=A(),Gt=es.operators,ts={maximum:{okStr:"<=",ok:Gt.LTE,fail:Gt.GT},minimum:{okStr:">=",ok:Gt.GTE,fail:Gt.LT},exclusiveMaximum:{okStr:"<",ok:Gt.LT,fail:Gt.GTE},exclusiveMinimum:{okStr:">",ok:Gt.GT,fail:Gt.LTE}},AE={message:s(({keyword:e,schemaCode:t})=>(0,es.str)`must be ${ts[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,es._)`{comparison: ${ts[e].okStr}, limit: ${t}}`,"params")},IE={keyword:Object.keys(ts),type:"number",schemaType:"number",$data:!0,error:AE,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,es._)`${r} ${ts[t].fail} ${n} || isNaN(${r})`)}};ol.default=IE});var mm=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var kE=hm(),RE=sc(),TE=cc(),CE=fc(),NE=dc(),qE=mc(),jE=yc(),ME=bc(),DE=Oc(),LE=xc(),FE=[kE.default,RE.default,TE.default,CE.default,NE.default,qE.default,jE.default,ME.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},DE.default,LE.default];sl.default=FE});var ul=m(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.dynamicAnchor=void 0;var al=A(),VE=Me(),gm=hi(),BE=_i(),HE={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>ym(e,e.schema),"code")};function ym(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,al._)`${VE.default.dynamicAnchors}${(0,al.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:UE(e);r.if((0,al._)`!${i}`,()=>r.assign(i,o))}s(ym,"dynamicAnchor");Ii.dynamicAnchor=ym;function UE(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new gm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return gm.compileSchema.call(n,l),(0,BE.getValidate)(e,l)}s(UE,"_getValidate");Ii.default=HE});var cl=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.dynamicRef=void 0;var vm=A(),zE=Me(),_m=_i(),GE={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Sm(e,e.schema),"code")};function Sm(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,vm._)`${zE.default.dynamicAnchors}${(0,vm.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,_m.callRef)(e,c),r.let(l,!0)}):()=>(0,_m.callRef)(e,c)}s(u,"_callRef")}s(Sm,"dynamicRef");ki.dynamicRef=Sm;ki.default=GE});var bm=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var ZE=ul(),KE=T(),WE={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,ZE.dynamicAnchor)(e,""):(0,KE.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ll.default=WE});var Pm=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var YE=cl(),QE={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,YE.dynamicRef)(e,e.schema),"code")};fl.default=QE});var $m=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var JE=ul(),XE=cl(),ex=bm(),tx=Pm(),rx=[JE.default,XE.default,ex.default,tx.default];pl.default=rx});var Em=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var Om=zo(),nx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Om.error,code:s(e=>(0,Om.validatePropertyDeps)(e),"code")};dl.default=nx});var xm=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var ix=zo(),ox={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,ix.validateSchemaDeps)(e),"code")};hl.default=ox});var wm=m(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var sx=T(),ax={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,sx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ml.default=ax});var Am=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ux=Em(),cx=xm(),lx=wm(),fx=[ux.default,cx.default,lx.default];gl.default=fx});var km=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Zt=A(),Im=T(),px=Me(),dx={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Zt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},hx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:dx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=o;u instanceof Zt.Name?t.if((0,Zt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,Zt._)`${i} === ${px.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Im.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Im.Type.Str},d),a||t.if((0,Zt.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,Zt._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Zt._)`${d} !== ${g}`);return(0,Zt.and)(...h)}s(p,"unevaluatedStatic")}};yl.default=hx});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var Or=A(),Rm=T(),mx={message:s(({params:{len:e}})=>(0,Or.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Or._)`{limit: ${e}}`,"params")},gx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:mx,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Or._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Or._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Rm.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Or._)`${a} <= ${o}`);t.if((0,Or.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Rm.Type.Num},c),i.allErrors||t.if((0,Or.not)(c),()=>t.break())})}s(u,"validateItems")}};vl.default=gx});var Cm=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var yx=km(),vx=Tm(),_x=[yx.default,vx.default];_l.default=_x});var Nm=m(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.contentVocabulary=dn.metadataVocabulary=void 0;dn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var jm=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Sx=dm(),bx=mm(),Px=Kc(),$x=$m(),Ox=Am(),Ex=Cm(),xx=Qc(),qm=Nm(),wx=[$x.default,Sx.default,bx.default,(0,Px.default)(!0),xx.default,qm.metadataVocabulary,qm.contentVocabulary,Ox.default,Ex.default];Sl.default=wx});var Mm=m((m4,Ax)=>{Ax.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Dm=m((g4,Ix)=>{Ix.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Lm=m((y4,kx)=>{kx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Fm=m((v4,Rx)=>{Rx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Vm=m((_4,Tx)=>{Tx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Bm=m((S4,Cx)=>{Cx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Hm=m((b4,Nx)=>{Nx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Um=m((P4,qx)=>{qx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var zm=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var jx=Mm(),Mx=Dm(),Dx=Lm(),Lx=Fm(),Fx=Vm(),Vx=Bm(),Bx=Hm(),Hx=Um(),Ux=["/properties"];function zx(e){return[jx,Mx,Dx,Lx,Fx,t(this,Vx),Bx,t(this,Hx)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Ux):n}s(t,"with$data")}s(zx,"addMetaSchema2020");bl.default=zx});var Gm=m((B,$l)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Gx=cn(),Zx=jm(),Kx=tl(),Wx=zm(),Pl="https://json-schema.org/draft/2020-12/schema",Ol=class Ol extends Gx.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Zx.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Kx.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Wx.default.call(this,t),this.refs["http://json-schema.org/schema"]=Pl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Pl)?Pl:void 0)}};s(Ol,"Ajv2020");var hn=Ol;B.Ajv2020=hn;$l.exports=B=hn;$l.exports.Ajv2020=hn;Object.defineProperty(B,"__esModule",{value:!0});B.default=hn;var Yx=pi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:s(function(){return Yx.KeywordCxt},"get")});var mn=A();Object.defineProperty(B,"_",{enumerable:!0,get:s(function(){return mn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:s(function(){return mn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:s(function(){return mn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:s(function(){return mn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:s(function(){return mn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:s(function(){return mn.CodeGen},"get")});var Qx=Co();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:s(function(){return Qx.default},"get")});var Jx=di();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:s(function(){return Jx.default},"get")})});var Zm=m((x4,Xx)=>{Xx.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var Km=m((w4,ew)=>{ew.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var Wm=m((A4,tw)=>{tw.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var Ym=m((I4,rw)=>{rw.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var Qm=m((ie,gn)=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.openapi=ie.openapiV31=ie.openapiV3=ie.openapiV2=ie.openapiV1=void 0;ie.openapiV1=Zm();ie.openapiV2=Km();ie.openapiV3=Wm();ie.openapiV31=Ym();ie.openapi={v1:ie.openapiV1,v2:ie.openapiV2,v3:ie.openapiV3,v31:ie.openapiV31};ie.default=ie.openapi;typeof gn=="object"&&typeof gn.exports=="object"&&(gn.exports=Object.assign(gn.exports.default,gn.exports))});var wl=m((k4,Jm)=>{"use strict";var nw=ho(),{ono:iw}=Ge(),ow=fm(),sw=Gm(),{openapi:El}=Qm();Jm.exports=aw;function aw(e){let t,r;if(e.swagger)r=El.v2,t=xl();else if(e.openapi.startsWith("3.1")){r=El.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=xl(!1)}else r=El.v3,t=xl();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
|
|
13
|
-
`+
|
|
14
|
-
`);return r}s(
|
|
12
|
+
deps: ${r}}`,"params")};var jO={keyword:"dependencies",type:"object",schemaType:"object",error:dt.error,code(e){let[t,r]=MO(e);zm(e,t),Gm(e,r)}};function MO({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(MO,"splitDependencies");function zm(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,ki.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,ki.checkReportMissingProp)(e,l)}):(r.if((0,Du._)`${u} && (${(0,ki.checkMissingProp)(e,c,o)})`),(0,ki.reportMissingProp)(e,o),r.else())}}s(zm,"validatePropertyDeps");dt.validatePropertyDeps=zm;function Gm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,qO.alwaysValidSchema)(o,t[c])||(r.if((0,ki.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s(Gm,"validateSchemaDeps");dt.validateSchemaDeps=Gm;dt.default=jO});var Km=h(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Zm=A(),DO=R(),LO={message:"property name must be valid",params:s(({params:e})=>(0,Zm._)`{propertyName: ${e.propertyName}}`,"params")},FO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:LO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,DO.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,Zm.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Lu.default=FO});var Vu=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var Wo=De(),Qe=A(),VO=Me(),Qo=R(),BO={message:"must NOT have additional properties",params:s(({params:e})=>(0,Qe._)`{additionalProperty: ${e.additionalProperty}}`,"params")},HO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:BO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Qo.alwaysValidSchema)(a,r))return;let l=(0,Wo.allSchemaProperties)(n.properties),f=(0,Wo.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Qe._)`${o} === ${VO.default.errors}`);function p(){t.forIn("key",i,v=>{!l.length&&!f.length?g(v):t.if(d(v),()=>g(v))})}s(p,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,Qo.schemaRefOrVal)(a,n.properties,"properties");_=(0,Wo.isOwnProperty)(t,b,v)}else l.length?_=(0,Qe.or)(...l.map(b=>(0,Qe._)`${v} === ${b}`)):_=Qe.nil;return f.length&&(_=(0,Qe.or)(_,...f.map(b=>(0,Qe._)`${(0,Wo.usePattern)(e,b)}.test(${v})`))),(0,Qe.not)(_)}s(d,"isAdditional");function m(v){t.code((0,Qe._)`delete ${i}[${v}]`)}s(m,"deleteAdditional");function g(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Qo.alwaysValidSchema)(a,r)){let _=t.name("valid");u.removeAdditional==="failing"?(y(v,_,!1),t.if((0,Qe.not)(_),()=>{e.reset(),m(v)})):(y(v,_),c||t.if((0,Qe.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,b){let P={keyword:"additionalProperties",dataProp:v,dataPropType:Qo.Type.Str};b===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(P,_)}s(y,"applyAdditionalSchema")}};Fu.default=HO});var Qm=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var UO=hi(),Ym=De(),Bu=R(),Wm=Vu(),zO={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Wm.default.code(new UO.KeywordCxt(o,Wm.default,"additionalProperties"));let a=(0,Ym.allSchemaProperties)(r);for(let p of a)o.definedProperties.add(p);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Bu.mergeEvaluated.props(t,(0,Bu.toHash)(a),o.props));let c=a.filter(p=>!(0,Bu.alwaysValidSchema)(o,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,Ym.propertyInData)(t,i,p,o.opts.ownProperties)),f(p),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}s(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}s(f,"applyPropertySchema")}};Hu.default=zO});var th=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Jm=De(),Jo=A(),Xm=R(),eh=R(),GO={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,Jm.allSchemaProperties)(r),u=c.filter(y=>(0,Xm.alwaysValidSchema)(o,r[y]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");o.props!==!0&&!(o.props instanceof Jo.Name)&&(o.props=(0,eh.evaluatedPropsToName)(t,o.props));let{props:p}=o;d();function d(){for(let y of c)l&&m(y),o.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}s(d,"validatePatternProperties");function m(y){for(let v in l)new RegExp(y).test(v)&&(0,Xm.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(m,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Jo._)`${(0,Jm.usePattern)(e,y)}.test(${v})`,()=>{let _=u.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:eh.Type.Str},f),o.opts.unevaluated&&p!==!0?t.assign((0,Jo._)`${p}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,Jo.not)(f),()=>t.break())})})}s(g,"validateProperties")}};Uu.default=GO});var rh=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var ZO=R(),KO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,ZO.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zu.default=KO});var nh=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var YO=De(),WO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:YO.validateUnion,error:{message:"must match a schema in anyOf"}};Gu.default=WO});var ih=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var Xo=A(),QO=R(),JO={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Xo._)`{passingSchemas: ${e.passing}}`,"params")},XO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:JO,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((f,p)=>{let d;(0,QO.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Xo._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Xo._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Xo.Name)})})}s(l,"validateOneOf")}};Zu.default=XO});var oh=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var eE=R(),tE={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,eE.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Ku.default=tE});var ch=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var es=A(),ah=R(),rE={message:s(({params:e})=>(0,es.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,es._)`{failingKeyword: ${e.ifClause}}`,"params")},nE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:rE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ah.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=sh(n,"then"),o=sh(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,es.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}s(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,es._)`${f}`):e.setParams({ifClause:f})}}s(l,"validateClause")}};function sh(e,t){let r=e.schema[t];return r!==void 0&&!(0,ah.alwaysValidSchema)(e,r)}s(sh,"hasSchema");Yu.default=nE});var uh=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var iE=R(),oE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,iE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Wu.default=oE});var Ju=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var sE=Ru(),aE=Vm(),cE=Cu(),uE=Hm(),lE=Um(),pE=Yo(),fE=Km(),dE=Vu(),mE=Qm(),hE=th(),gE=rh(),yE=nh(),vE=ih(),_E=oh(),bE=ch(),SE=uh();function PE(e=!1){let t=[gE.default,yE.default,vE.default,_E.default,bE.default,SE.default,fE.default,dE.default,pE.default,mE.default,hE.default];return e?t.push(aE.default,uE.default):t.push(sE.default,cE.default),t.push(lE.default),t}s(PE,"getApplicator");Qu.default=PE});var lh=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var W=A(),$E={message:s(({schemaCode:e})=>(0,W.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,W._)`{format: ${e}}`,"params")},OE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:$E,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,W._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,W._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,W._)`${y}.type || "string"`).assign(_,(0,W._)`${y}.validate`),()=>r.assign(v,(0,W._)`"string"`).assign(_,y)),e.fail$data((0,W.or)(b(),P()));function b(){return u.strictSchema===!1?W.nil:(0,W._)`${a} && !${_}`}s(b,"unknownFmt");function P(){let E=f.$async?(0,W._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,W._)`${_}(${n})`,S=(0,W._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,W._)`${_} && ${_} !== true && ${v} === ${t} && !${S}`}s(P,"invalidFmt")}s(d,"validate$DataFormat");function m(){let g=p.formats[o];if(!g){b();return}if(g===!0)return;let[y,v,_]=P(g);y===t&&e.pass(E());function b(){if(u.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(b,"unknownFormat");function P(S){let j=S instanceof RegExp?(0,W.regexpCode)(S):u.code.formats?(0,W._)`${u.code.formats}${(0,W.getProperty)(o)}`:void 0,N=r.scopeValue("formats",{key:o,ref:S,code:j});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,W._)`${N}.validate`]:["string",S,N]}s(P,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,W._)`await ${_}(${n})`}return typeof v=="function"?(0,W._)`${_}(${n})`:(0,W._)`${_}.test(${n})`}s(E,"validCondition")}s(m,"validateFormat")}};Xu.default=OE});var tl=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var EE=lh(),xE=[EE.default];el.default=xE});var ph=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var wE=Tm(),AE=Mm(),IE=Ju(),TE=tl(),kE=["title","description","default"],NE=[wE.default,AE.default,IE.default(),TE.default,kE];rl.default=NE});var dh=h(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DiscrError=void 0;var fh;(function(e){e.Tag="tag",e.Mapping="mapping"})(fh||(ts.DiscrError=fh={}))});var ol=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var _n=A(),nl=dh(),mh=yi(),RE=gi(),CE=R(),qE={message:s(({params:{discrError:e,tagName:t}})=>e===nl.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,_n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},jE={keyword:"discriminator",type:"object",schemaType:"object",error:qE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,_n._)`${r}${(0,_n.getProperty)(c)}`);t.if((0,_n._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:nl.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,_n._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:nl.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}s(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,_n.Name),g}s(p,"applyTagSchema");function d(){var m;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let S=a[E];if(S!=null&&S.$ref&&!(0,CE.schemaHasRulesButRef)(S,o.self.RULES)){let N=S.$ref;if(S=mh.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N),S instanceof mh.SchemaEnv&&(S=S.schema),S===void 0)throw new RE.default(o.opts.uriResolver,o.baseId,N)}let j=(m=S==null?void 0:S.properties)===null||m===void 0?void 0:m[c];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||_(S)),b(j,E)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(c)}function b(E,S){if(E.const)P(E.const,S);else if(E.enum)for(let j of E.enum)P(j,S);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function P(E,S){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[E]=S}}s(d,"getMapping")}};il.default=jE});var hh=h((g4,ME)=>{ME.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var vh=h((te,yh)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.CodeGen=te.Name=te.nil=te.stringify=te.str=te._=te.KeywordCxt=void 0;var DE=yn(),LE=ph(),FE=ol(),gh=hh(),VE=["/properties"],rs="http://json-schema.org/draft-04/schema",sl=class sl extends DE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),LE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(FE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(gh,VE):gh;this.addMetaSchema(t,rs,!1),this.refs["http://json-schema.org/schema"]=rs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rs)?rs:void 0)}};s(sl,"Ajv");var ns=sl;yh.exports=te=ns;Object.defineProperty(te,"__esModule",{value:!0});te.default=ns;var BE=yn();Object.defineProperty(te,"KeywordCxt",{enumerable:!0,get:s(function(){return BE.KeywordCxt},"get")});var bn=yn();Object.defineProperty(te,"_",{enumerable:!0,get:s(function(){return bn._},"get")});Object.defineProperty(te,"str",{enumerable:!0,get:s(function(){return bn.str},"get")});Object.defineProperty(te,"stringify",{enumerable:!0,get:s(function(){return bn.stringify},"get")});Object.defineProperty(te,"nil",{enumerable:!0,get:s(function(){return bn.nil},"get")});Object.defineProperty(te,"Name",{enumerable:!0,get:s(function(){return bn.Name},"get")});Object.defineProperty(te,"CodeGen",{enumerable:!0,get:s(function(){return bn.CodeGen},"get")})});var _h=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var HE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};al.default=HE});var bh=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var UE=_h(),zE=Pi(),GE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",UE.default,zE.default];cl.default=GE});var Sh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var is=A(),Qt=is.operators,os={maximum:{okStr:"<=",ok:Qt.LTE,fail:Qt.GT},minimum:{okStr:">=",ok:Qt.GTE,fail:Qt.LT},exclusiveMaximum:{okStr:"<",ok:Qt.LT,fail:Qt.GTE},exclusiveMinimum:{okStr:">",ok:Qt.GT,fail:Qt.LTE}},ZE={message:s(({keyword:e,schemaCode:t})=>(0,is.str)`must be ${os[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,is._)`{comparison: ${os[e].okStr}, limit: ${t}}`,"params")},KE={keyword:Object.keys(os),type:"number",schemaType:"number",$data:!0,error:ZE,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,is._)`${r} ${os[t].fail} ${n} || isNaN(${r})`)}};ul.default=KE});var Ph=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var YE=Sh(),WE=lu(),QE=du(),JE=hu(),XE=yu(),ex=_u(),tx=Su(),rx=Eu(),nx=Au(),ix=Tu(),ox=[YE.default,WE.default,QE.default,JE.default,XE.default,ex.default,tx.default,rx.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},nx.default,ix.default];ll.default=ox});var fl=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.dynamicAnchor=void 0;var pl=A(),sx=Me(),$h=yi(),ax=Pi(),cx={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Oh(e,e.schema),"code")};function Oh(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,pl._)`${sx.default.dynamicAnchors}${(0,pl.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:ux(e);r.if((0,pl._)`!${i}`,()=>r.assign(i,o))}s(Oh,"dynamicAnchor");Ni.dynamicAnchor=Oh;function ux(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new $h.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return $h.compileSchema.call(n,l),(0,ax.getValidate)(e,l)}s(ux,"_getValidate");Ni.default=cx});var dl=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.dynamicRef=void 0;var Eh=A(),lx=Me(),xh=Pi(),px={keyword:"$dynamicRef",schemaType:"string",code:s(e=>wh(e,e.schema),"code")};function wh(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,Eh._)`${lx.default.dynamicAnchors}${(0,Eh.getProperty)(o)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,xh.callRef)(e,u),r.let(l,!0)}):()=>(0,xh.callRef)(e,u)}s(c,"_callRef")}s(wh,"dynamicRef");Ri.dynamicRef=wh;Ri.default=px});var Ah=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var fx=fl(),dx=R(),mx={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,fx.dynamicAnchor)(e,""):(0,dx.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ml.default=mx});var Ih=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var hx=dl(),gx={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,hx.dynamicRef)(e,e.schema),"code")};hl.default=gx});var Th=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var yx=fl(),vx=dl(),_x=Ah(),bx=Ih(),Sx=[yx.default,vx.default,_x.default,bx.default];gl.default=Sx});var Nh=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var kh=Yo(),Px={keyword:"dependentRequired",type:"object",schemaType:"object",error:kh.error,code:s(e=>(0,kh.validatePropertyDeps)(e),"code")};yl.default=Px});var Rh=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var $x=Yo(),Ox={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,$x.validateSchemaDeps)(e),"code")};vl.default=Ox});var Ch=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Ex=R(),xx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Ex.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};_l.default=xx});var qh=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var wx=Nh(),Ax=Rh(),Ix=Ch(),Tx=[wx.default,Ax.default,Ix.default];bl.default=Tx});var Mh=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Jt=A(),jh=R(),kx=Me(),Nx={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Jt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Rx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Nx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof Jt.Name?t.if((0,Jt._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),o.props=!0,e.ok((0,Jt._)`${i} === ${kx.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,jh.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:jh.Type.Str},d),a||t.if((0,Jt.not)(d),()=>t.break())}}s(u,"unevaluatedPropCode");function l(p,d){return(0,Jt._)`!${p} || !${p}[${d}]`}s(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,Jt._)`${d} !== ${g}`);return(0,Jt.and)(...m)}s(f,"unevaluatedStatic")}};Sl.default=Rx});var Lh=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Nr=A(),Dh=R(),Cx={message:s(({params:{len:e}})=>(0,Nr.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Nr._)`{limit: ${e}}`,"params")},qx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Cx,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Nr._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Nr._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Dh.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Nr._)`${a} <= ${o}`);t.if((0,Nr.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Dh.Type.Num},u),i.allErrors||t.if((0,Nr.not)(u),()=>t.break())})}s(c,"validateItems")}};Pl.default=qx});var Fh=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var jx=Mh(),Mx=Lh(),Dx=[jx.default,Mx.default];$l.default=Dx});var Vh=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.contentVocabulary=Sn.metadataVocabulary=void 0;Sn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Sn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Hh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Lx=bh(),Fx=Ph(),Vx=Ju(),Bx=Th(),Hx=qh(),Ux=Fh(),zx=tl(),Bh=Vh(),Gx=[Bx.default,Lx.default,Fx.default,(0,Vx.default)(!0),zx.default,Bh.metadataVocabulary,Bh.contentVocabulary,Hx.default,Ux.default];Ol.default=Gx});var Uh=h((U4,Zx)=>{Zx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var zh=h((z4,Kx)=>{Kx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Gh=h((G4,Yx)=>{Yx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Zh=h((Z4,Wx)=>{Wx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Kh=h((K4,Qx)=>{Qx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Yh=h((Y4,Jx)=>{Jx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Wh=h((W4,Xx)=>{Xx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Qh=h((Q4,ew)=>{ew.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Jh=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var tw=Uh(),rw=zh(),nw=Gh(),iw=Zh(),ow=Kh(),sw=Yh(),aw=Wh(),cw=Qh(),uw=["/properties"];function lw(e){return[tw,rw,nw,iw,ow,t(this,sw),aw,t(this,cw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,uw):n}s(t,"with$data")}s(lw,"addMetaSchema2020");El.default=lw});var Xh=h((H,wl)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.MissingRefError=H.ValidationError=H.CodeGen=H.Name=H.nil=H.stringify=H.str=H._=H.KeywordCxt=H.Ajv2020=void 0;var pw=yn(),fw=Hh(),dw=ol(),mw=Jh(),xl="https://json-schema.org/draft/2020-12/schema",Al=class Al extends pw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),fw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(dw.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(mw.default.call(this,t),this.refs["http://json-schema.org/schema"]=xl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xl)?xl:void 0)}};s(Al,"Ajv2020");var Pn=Al;H.Ajv2020=Pn;wl.exports=H=Pn;wl.exports.Ajv2020=Pn;Object.defineProperty(H,"__esModule",{value:!0});H.default=Pn;var hw=hi();Object.defineProperty(H,"KeywordCxt",{enumerable:!0,get:s(function(){return hw.KeywordCxt},"get")});var $n=A();Object.defineProperty(H,"_",{enumerable:!0,get:s(function(){return $n._},"get")});Object.defineProperty(H,"str",{enumerable:!0,get:s(function(){return $n.str},"get")});Object.defineProperty(H,"stringify",{enumerable:!0,get:s(function(){return $n.stringify},"get")});Object.defineProperty(H,"nil",{enumerable:!0,get:s(function(){return $n.nil},"get")});Object.defineProperty(H,"Name",{enumerable:!0,get:s(function(){return $n.Name},"get")});Object.defineProperty(H,"CodeGen",{enumerable:!0,get:s(function(){return $n.CodeGen},"get")});var gw=Mo();Object.defineProperty(H,"ValidationError",{enumerable:!0,get:s(function(){return gw.default},"get")});var yw=gi();Object.defineProperty(H,"MissingRefError",{enumerable:!0,get:s(function(){return yw.default},"get")})});var eg=h((tM,vw)=>{vw.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var tg=h((rM,_w)=>{_w.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var rg=h((nM,bw)=>{bw.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var ng=h((iM,Sw)=>{Sw.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var ig=h((oe,On)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.openapi=oe.openapiV31=oe.openapiV3=oe.openapiV2=oe.openapiV1=void 0;oe.openapiV1=eg();oe.openapiV2=tg();oe.openapiV3=rg();oe.openapiV31=ng();oe.openapi={v1:oe.openapiV1,v2:oe.openapiV2,v3:oe.openapiV3,v31:oe.openapiV31};oe.default=oe.openapi;typeof On=="object"&&typeof On.exports=="object"&&(On.exports=Object.assign(On.exports.default,On.exports))});var kl=h((oM,og)=>{"use strict";var Pw=vo(),{ono:$w}=Ze(),Ow=vh(),Ew=Xh(),{openapi:Il}=ig();og.exports=xw;function xw(e){let t,r;if(e.swagger)r=Il.v2,t=Tl();else if(e.openapi.startsWith("3.1")){r=Il.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=Tl(!1)}else r=Il.v3,t=Tl();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
|
|
13
|
+
`+ww(i);throw $w.syntax(i,{details:i},o)}}s(xw,"validateSchema");function Tl(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Ow(t):new Ew(t)}s(Tl,"initializeAjv");function ww(e,t){t=t||" ";let r="";for(let n of e)r+=Pw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
|
|
14
|
+
`);return r}s(ww,"formatAjvError")});var ag=h((aM,sg)=>{"use strict";sg.exports=["get","put","post","delete","options","head","patch"]});var Cl=h((cM,pg)=>{"use strict";var Aw=vo(),{ono:me}=Ze(),Iw=ag(),Nl=["array","boolean","integer","number","string"],ug=["array","boolean","integer","number","string","object","null",void 0];pg.exports=Tw;function Tw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&kw(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;lg(o,a)}}s(Tw,"validateSpec");function kw(e,t,r,n){for(let i of Iw){let o=t[i],a=r+"/"+i;if(o){let c=o.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw me.syntax(`Validation failed. Duplicate operation id '${c}'`);Nw(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let l of u){let f=o.responses[l],p=a+"/responses/"+l;jw(l,f||{},p)}}}}s(kw,"validatePath");function Nw(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{cg(o)}catch(u){throw me.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{cg(a)}catch(u){throw me.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());Rw(c,i),Cw(c,r,i),qw(c,e,n,i)}s(Nw,"validateParameters");function Rw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw me.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw me.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Rw,"validateBodyParameters");function Cw(e,t,r){let n=t.match(Aw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw me.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw me.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw me.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw me.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(Cw,"validatePathParameters");function qw(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=ug;break;case"formData":a=i,c=Nl.concat("file");break;default:a=i,c=Nl}if(Rl(a,o,c),lg(a,o),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw me.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(qw,"validateParameterTypes");function cg(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw me.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(cg,"checkForDuplicates");function jw(e,t,r){if(e!=="default"&&(e<100||e>599))throw me.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Rl(o,a,Nl)}if(t.schema){let i=ug.concat("file");if(i.indexOf(t.schema.type)===-1)throw me.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Rl(t.schema,r+"/schema",i)}}s(jw,"validateResponse");function Rl(e,t,r){if(r.indexOf(e.type)===-1)throw me.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw me.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Rl,"validateSchema");function lg(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw me.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(lg,"validateRequiredPropertiesExist")});var Xe=h(Je=>{"use strict";var{Ono:fg}=Ze(),{stripHash:dg,toFileSystemPath:Mw}=Ne(),En,Xt=Je.JSONParserError=(En=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,fg.extend(this)}},s(En,"JSONParserError"),En);er(Xt);var Rr,mg=Je.JSONParserErrorGroup=(Rr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Mw(t.$refs._root$Ref.path)}'`,fg.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return Rr.getParserErrors(this.files)}},s(Rr,"JSONParserErrorGroup"),Rr);er(mg);var xn,Dw=Je.ParserError=(xn=class extends Xt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(xn,"ParserError"),xn);er(Dw);var wn,Lw=Je.UnmatchedParserError=(wn=class extends Xt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(wn,"UnmatchedParserError"),wn);er(Lw);var An,Fw=Je.ResolverError=(An=class extends Xt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(An,"ResolverError"),An);er(Fw);var In,Vw=Je.UnmatchedResolverError=(In=class extends Xt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(In,"UnmatchedResolverError"),In);er(Vw);var Tn,Bw=Je.MissingPointerError=(Tn=class extends Xt{constructor(t,r){super(`Token "${t}" does not exist.`,dg(r)),this.code="EMISSINGPOINTER"}},s(Tn,"MissingPointerError"),Tn);er(Bw);var kn,Hw=Je.InvalidPointerError=(kn=class extends Xt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,dg(r)),this.code="EINVALIDPOINTER"}},s(kn,"InvalidPointerError"),kn);er(Hw);function er(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(er,"setErrorName");Je.isHandledError=function(e){return e instanceof Xt||e instanceof mg};Je.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var gg=h((fM,hg)=>{"use strict";var{ParserError:Uw}=Xe();hg.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string"){if(t.trim().length===0)return;try{return JSON.parse(t)}catch(r){throw new Uw(r.message,e.url)}}else return t}}});var qr=h((dM,Cr)=>{"use strict";function yg(e){return typeof e>"u"||e===null}s(yg,"isNothing");function zw(e){return typeof e=="object"&&e!==null}s(zw,"isObject");function Gw(e){return Array.isArray(e)?e:yg(e)?[]:[e]}s(Gw,"toArray");function Zw(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(Zw,"extend");function Kw(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Kw,"repeat");function Yw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(Yw,"isNegativeZero");Cr.exports.isNothing=yg;Cr.exports.isObject=zw;Cr.exports.toArray=Gw;Cr.exports.repeat=Kw;Cr.exports.isNegativeZero=Yw;Cr.exports.extend=Zw});var Nn=h((hM,vg)=>{"use strict";function Ci(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Ci,"YAMLException");Ci.prototype=Object.create(Error.prototype);Ci.prototype.constructor=Ci;Ci.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");vg.exports=Ci});var Sg=h((yM,bg)=>{"use strict";var _g=qr();function ql(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(ql,"Mark");ql.prototype.getSnippet=s(function(t,r){var n,i,o,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
15
15
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
|
|
16
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return
|
|
17
|
-
`+
|
|
18
|
-
`+r)),n},"toString");
|
|
19
|
-
\r`;function
|
|
20
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(
|
|
21
|
-
`,t-1))}s(
|
|
22
|
-
`,o?1+
|
|
23
|
-
`);break}for(n?
|
|
24
|
-
`,o?1+
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
27
|
-
`,o?1+
|
|
28
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
29
|
-
`,n),i===-1?(a=e.slice(n),n=
|
|
30
|
-
`&&(o+=r),o+=a;return o}s(
|
|
31
|
-
`+
|
|
16
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),_g.repeat(" ",t)+n+c+o+`
|
|
17
|
+
`+_g.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");ql.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
18
|
+
`+r)),n},"toString");bg.exports=ql});var re=h((_M,$g)=>{"use strict";var Pg=Nn(),Ww=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Qw=["scalar","sequence","mapping"];function Jw(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(Jw,"compileStyleAliases");function Xw(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Ww.indexOf(r)===-1)throw new Pg('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=Jw(t.styleAliases||null),Qw.indexOf(this.kind)===-1)throw new Pg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(Xw,"Type");$g.exports=Xw});var jr=h((SM,Eg)=>{"use strict";var Og=qr(),ss=Nn(),eA=re();function jl(e,t,r){var n=[];return e.include.forEach(function(i){r=jl(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(jl,"compileList");function tA(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(tA,"compileMap");function Rn(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new ss("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=jl(this,"implicit",[]),this.compiledExplicit=jl(this,"explicit",[]),this.compiledTypeMap=tA(this.compiledImplicit,this.compiledExplicit)}s(Rn,"Schema");Rn.DEFAULT=null;Rn.create=s(function(){var t,r;switch(arguments.length){case 1:t=Rn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new ss("Wrong number of arguments for Schema.create function")}if(t=Og.toArray(t),r=Og.toArray(r),!t.every(function(n){return n instanceof Rn}))throw new ss("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof eA}))throw new ss("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Rn({include:t,explicit:r})},"createSchema");Eg.exports=Rn});var wg=h(($M,xg)=>{"use strict";var rA=re();xg.exports=new rA("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Ig=h((EM,Ag)=>{"use strict";var nA=re();Ag.exports=new nA("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var kg=h((wM,Tg)=>{"use strict";var iA=re();Tg.exports=new iA("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var as=h((IM,Ng)=>{"use strict";var oA=jr();Ng.exports=new oA({explicit:[wg(),Ig(),kg()]})});var Cg=h((TM,Rg)=>{"use strict";var sA=re();function aA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(aA,"resolveYamlNull");function cA(){return null}s(cA,"constructYamlNull");function uA(e){return e===null}s(uA,"isNull");Rg.exports=new sA("tag:yaml.org,2002:null",{kind:"scalar",resolve:aA,construct:cA,predicate:uA,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var jg=h((NM,qg)=>{"use strict";var lA=re();function pA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(pA,"resolveYamlBoolean");function fA(e){return e==="true"||e==="True"||e==="TRUE"}s(fA,"constructYamlBoolean");function dA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(dA,"isBoolean");qg.exports=new lA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pA,construct:fA,predicate:dA,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Dg=h((CM,Mg)=>{"use strict";var mA=qr(),hA=re();function gA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(gA,"isHexCode");function yA(e){return 48<=e&&e<=55}s(yA,"isOctCode");function vA(e){return 48<=e&&e<=57}s(vA,"isDecCode");function _A(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!gA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!yA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!vA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(_A,"resolveYamlInteger");function bA(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(bA,"constructYamlInteger");function SA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!mA.isNegativeZero(e)}s(SA,"isInteger");Mg.exports=new hA("tag:yaml.org,2002:int",{kind:"scalar",resolve:_A,construct:bA,predicate:SA,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Vg=h((jM,Fg)=>{"use strict";var Lg=qr(),PA=re(),$A=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function OA(e){return!(e===null||!$A.test(e)||e[e.length-1]==="_")}s(OA,"resolveYamlFloat");function EA(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(EA,"constructYamlFloat");var xA=/^[-+]?[0-9]+e/;function wA(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Lg.isNegativeZero(e))return"-0.0";return r=e.toString(10),xA.test(r)?r.replace("e",".e"):r}s(wA,"representYamlFloat");function AA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Lg.isNegativeZero(e))}s(AA,"isFloat");Fg.exports=new PA("tag:yaml.org,2002:float",{kind:"scalar",resolve:OA,construct:EA,predicate:AA,represent:wA,defaultStyle:"lowercase"})});var Ml=h((DM,Bg)=>{"use strict";var IA=jr();Bg.exports=new IA({include:[as()],implicit:[Cg(),jg(),Dg(),Vg()]})});var Dl=h((LM,Hg)=>{"use strict";var TA=jr();Hg.exports=new TA({include:[Ml()]})});var Zg=h((FM,Gg)=>{"use strict";var kA=re(),Ug=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function NA(e){return e===null?!1:Ug.exec(e)!==null||zg.exec(e)!==null}s(NA,"resolveYamlTimestamp");function RA(e){var t,r,n,i,o,a,c,u=0,l=null,f,p,d;if(t=Ug.exec(e),t===null&&(t=zg.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),l=(f*60+p)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,c,u)),l&&d.setTime(d.getTime()-l),d}s(RA,"constructYamlTimestamp");function CA(e){return e.toISOString()}s(CA,"representYamlTimestamp");Gg.exports=new kA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:NA,construct:RA,instanceOf:Date,represent:CA})});var Yg=h((BM,Kg)=>{"use strict";var qA=re();function jA(e){return e==="<<"||e===null}s(jA,"resolveYamlMerge");Kg.exports=new qA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jA})});var Jg=h((UM,Qg)=>{"use strict";var Mr;try{Wg=require,Mr=Wg("buffer").Buffer}catch{}var Wg,MA=re(),Ll=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
19
|
+
\r`;function DA(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Ll;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(DA,"resolveYamlBinary");function LA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Ll,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Mr?Mr.from?Mr.from(c):new Mr(c):c}s(LA,"constructYamlBinary");function FA(e){var t="",r=0,n,i,o=e.length,a=Ll;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(FA,"representYamlBinary");function VA(e){return Mr&&Mr.isBuffer(e)}s(VA,"isBinary");Qg.exports=new MA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:DA,construct:LA,predicate:VA,represent:FA})});var ey=h((GM,Xg)=>{"use strict";var BA=re(),HA=Object.prototype.hasOwnProperty,UA=Object.prototype.toString;function zA(e){if(e===null)return!0;var t=[],r,n,i,o,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,UA.call(i)!=="[object Object]")return!1;for(o in i)if(HA.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(zA,"resolveYamlOmap");function GA(e){return e!==null?e:[]}s(GA,"constructYamlOmap");Xg.exports=new BA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:zA,construct:GA})});var ry=h((KM,ty)=>{"use strict";var ZA=re(),KA=Object.prototype.toString;function YA(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],KA.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(YA,"resolveYamlPairs");function WA(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(WA,"constructYamlPairs");ty.exports=new ZA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:YA,construct:WA})});var iy=h((WM,ny)=>{"use strict";var QA=re(),JA=Object.prototype.hasOwnProperty;function XA(e){if(e===null)return!0;var t,r=e;for(t in r)if(JA.call(r,t)&&r[t]!==null)return!1;return!0}s(XA,"resolveYamlSet");function eI(e){return e!==null?e:{}}s(eI,"constructYamlSet");ny.exports=new QA("tag:yaml.org,2002:set",{kind:"mapping",resolve:XA,construct:eI})});var Cn=h((JM,oy)=>{"use strict";var tI=jr();oy.exports=new tI({include:[Dl()],implicit:[Zg(),Yg()],explicit:[Jg(),ey(),ry(),iy()]})});var ay=h((XM,sy)=>{"use strict";var rI=re();function nI(){return!0}s(nI,"resolveJavascriptUndefined");function iI(){}s(iI,"constructJavascriptUndefined");function oI(){return""}s(oI,"representJavascriptUndefined");function sI(e){return typeof e>"u"}s(sI,"isUndefined");sy.exports=new rI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:nI,construct:iI,predicate:sI,represent:oI})});var uy=h((t8,cy)=>{"use strict";var aI=re();function cI(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(cI,"resolveJavascriptRegExp");function uI(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(uI,"constructJavascriptRegExp");function lI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(lI,"representJavascriptRegExp");function pI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(pI,"isRegExp");cy.exports=new aI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:cI,construct:uI,predicate:pI,represent:lI})});var fy=h((n8,py)=>{"use strict";var cs;try{ly=require,cs=ly("esprima")}catch{typeof window<"u"&&(cs=window.esprima)}var ly,fI=re();function dI(e){if(e===null)return!1;try{var t="("+e+")",r=cs.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(dI,"resolveJavascriptFunction");function mI(e){var t="("+e+")",r=cs.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(mI,"constructJavascriptFunction");function hI(e){return e.toString()}s(hI,"representJavascriptFunction");function gI(e){return Object.prototype.toString.call(e)==="[object Function]"}s(gI,"isFunction");py.exports=new fI("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:dI,construct:mI,predicate:gI,represent:hI})});var qi=h((o8,my)=>{"use strict";var dy=jr();my.exports=dy.DEFAULT=new dy({include:[Cn()],explicit:[ay(),uy(),fy()]})});var Ry=h((s8,ji)=>{"use strict";var Rt=qr(),Sy=Nn(),yI=Sg(),Py=Cn(),vI=qi(),rr=Object.prototype.hasOwnProperty,us=1,$y=2,Oy=3,ls=4,Fl=1,_I=2,hy=3,bI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,SI=/[\x85\u2028\u2029]/,PI=/[,\[\]\{\}]/,Ey=/^(?:!|!!|![a-z\-]+!)$/i,xy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gy(e){return Object.prototype.toString.call(e)}s(gy,"_class");function mt(e){return e===10||e===13}s(mt,"is_EOL");function Lr(e){return e===9||e===32}s(Lr,"is_WHITE_SPACE");function Te(e){return e===9||e===32||e===10||e===13}s(Te,"is_WS_OR_EOL");function qn(e){return e===44||e===91||e===93||e===123||e===125}s(qn,"is_FLOW_INDICATOR");function $I(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s($I,"fromHexCode");function OI(e){return e===120?2:e===117?4:e===85?8:0}s(OI,"escapedHexLen");function EI(e){return 48<=e&&e<=57?e-48:-1}s(EI,"fromDecimalCode");function yy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
20
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(yy,"simpleEscapeSequence");function xI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(xI,"charFromCodepoint");var wy=new Array(256),Ay=new Array(256);for(Dr=0;Dr<256;Dr++)wy[Dr]=yy(Dr)?1:0,Ay[Dr]=yy(Dr);var Dr;function wI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||vI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(wI,"State");function Iy(e,t){return new Sy(t,new yI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(Iy,"generateError");function x(e,t){throw Iy(e,t)}s(x,"throwError");function ps(e,t){e.onWarning&&e.onWarning.call(null,Iy(e,t))}s(ps,"throwWarning");var vy={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&ps(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],Ey.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),rr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),xy.test(o)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function tr(e,t,r,n){var i,o,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else bI.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}s(tr,"captureSegment");function _y(e,t,r,n){var i,o,a,c;for(Rt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)o=i[a],rr.call(t,o)||(t[o]=r[o],n[o]=!0)}s(_y,"mergeMappings");function jn(e,t,r,n,i,o,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&gy(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&gy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,l=o.length;u<l;u+=1)_y(e,t,o[u],r);else _y(e,t,o,r);else!e.json&&!rr.call(r,i)&&rr.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(jn,"storeMappingPair");function Vl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Vl,"readLineBreak");function J(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Lr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(mt(i))for(Vl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ps(e,"deficient indentation"),n}s(J,"skipSeparationSpace");function fs(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Te(r)))}s(fs,"testDocumentSeparator");function Bl(e,t){t===1?e.result+=" ":t>1&&(e.result+=Rt.repeat(`
|
|
21
|
+
`,t-1))}s(Bl,"writeFoldedLines");function AI(e,t,r){var n,i,o,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),Te(m)||qn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Te(i)||r&&qn(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Te(i)||r&&qn(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Te(n))break}else{if(e.position===e.lineStart&&fs(e)||r&&qn(m))break;if(mt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,J(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=f;break}}c&&(tr(e,o,a,!1),Bl(e,e.line-u),o=a=e.position,c=!1),Lr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return tr(e,o,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}s(AI,"readPlainScalar");function II(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(tr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else mt(r)?(tr(e,n,i,!0),Bl(e,J(e,!1,t)),n=i=e.position):e.position===e.lineStart&&fs(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}s(II,"readSingleQuotedScalar");function TI(e,t){var r,n,i,o,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return tr(e,r,e.position,!0),e.position++,!0;if(c===92){if(tr(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),mt(c))J(e,!1,t);else if(c<256&&wy[c])e.result+=Ay[c],e.position++;else if((a=OI(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=$I(c))>=0?o=(o<<4)+a:x(e,"expected hexadecimal character");e.result+=xI(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else mt(c)?(tr(e,r,n,!0),Bl(e,J(e,!1,t)),r=n=e.position):e.position===e.lineStart&&fs(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}s(TI,"readDoubleQuotedScalar");function kI(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,l,f,p,d={},m,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)u=93,p=!1,o=[];else if(v===123)u=125,p=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(J(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=o,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),Te(c)&&(l=f=!0,e.position++,J(e,!0,t))),n=e.line,Mn(e,t,us,!1,!0),g=e.tag,m=e.result,J(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),J(e,!0,t),Mn(e,t,us,!1,!0),y=e.result),p?jn(e,o,d,g,m,y):l?o.push(jn(e,null,d,g,m,y)):o.push(m),J(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}s(kI,"readFlowCollection");function NI(e,t){var r,n,i=Fl,o=!1,a=!1,c=t,u=0,l=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Fl===i?i=p===43?hy:_I:x(e,"repeat of a chomping mode identifier");else if((f=EI(p))>=0)f===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Lr(p)){do p=e.input.charCodeAt(++e.position);while(Lr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!mt(p)&&p!==0)}for(;p!==0;){for(Vl(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),mt(p)){u++;continue}if(e.lineIndent<c){i===hy?e.result+=Rt.repeat(`
|
|
22
|
+
`,o?1+u:u):i===Fl&&o&&(e.result+=`
|
|
23
|
+
`);break}for(n?Lr(p)?(l=!0,e.result+=Rt.repeat(`
|
|
24
|
+
`,o?1+u:u)):l?(l=!1,e.result+=Rt.repeat(`
|
|
25
|
+
`,u+1)):u===0?o&&(e.result+=" "):e.result+=Rt.repeat(`
|
|
26
|
+
`,u):e.result+=Rt.repeat(`
|
|
27
|
+
`,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!mt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);tr(e,r,e.position,!1)}return!0}s(NI,"readBlockScalar");function by(e,t){var r,n=e.tag,i=e.anchor,o=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Te(a)));){if(c=!0,e.position++,J(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Mn(e,t,Oy,!1,!0),o.push(e.result),J(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(by,"readBlockSequence");function RI(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(v===63||v===58)&&Te(n))v===63?(g&&(jn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Mn(e,r,$y,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);Lr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Te(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(jn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!1,i=!1,p=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===o||e.lineIndent>t)&&(Mn(e,t,ls,!0,i)&&(g?d=e.result:m=e.result),g||(jn(e,l,f,p,d,m,o,a),p=d=m=null),J(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&jn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}s(RI,"readBlockMapping");function CI(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Te(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ey.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),PI.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}return o&&!xy.test(o)&&x(e,"tag name cannot contain such characters: "+o),r?e.tag=o:rr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+i+'"'),!0}s(CI,"readTagProperty");function qI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Te(r)&&!qn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(qI,"readAnchorProperty");function jI(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Te(n)&&!qn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),rr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],J(e,!0,-1),!0}s(jI,"readAlias");function Mn(e,t,r,n,i){var o,a,c,u=1,l=!1,f=!1,p,d,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=ls===r||Oy===r,n&&J(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;CI(e)||qI(e);)J(e,!0,-1)?(l=!0,c=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ls===r)&&(us===r||$y===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(by(e,y)||RI(e,y,g))||kI(e,g)?f=!0:(a&&NI(e,g)||II(e,g)||TI(e,g)?f=!0:jI(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):AI(e,g,us===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&by(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else rr.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}s(Mn,"composeNode");function MI(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(J(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Te(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;Lr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!mt(a));break}if(mt(a))break;for(r=e.position;a!==0&&!Te(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Vl(e),rr.call(vy,n)?vy[n](e,n,i):ps(e,'unknown document directive "'+n+'"')}if(J(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,J(e,!0,-1)):o&&x(e,"directives end mark is expected"),Mn(e,e.lineIndent-1,ls,!1,!0),J(e,!0,-1),e.checkLineBreaks&&SI.test(e.input.slice(t,e.position))&&ps(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&fs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,J(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}s(MI,"readDocument");function Ty(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
28
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new wI(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,x(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)MI(r);return r.documents}s(Ty,"loadDocuments");function ky(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Ty(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(ky,"loadAll");function Ny(e,t){var r=Ty(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Sy("expected a single document in the stream, but found more")}}s(Ny,"load");function DI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),ky(e,t,Rt.extend({schema:Py},r))}s(DI,"safeLoadAll");function LI(e,t){return Ny(e,Rt.extend({schema:Py},t))}s(LI,"safeLoad");ji.exports.loadAll=ky;ji.exports.load=Ny;ji.exports.safeLoadAll=DI;ji.exports.safeLoad=LI});var r0=h((c8,Gl)=>{"use strict";var Di=qr(),Li=Nn(),FI=qi(),VI=Cn(),Vy=Object.prototype.toString,By=Object.prototype.hasOwnProperty,BI=9,Mi=10,HI=13,UI=32,zI=33,GI=34,Hy=35,ZI=37,KI=38,YI=39,WI=42,Uy=44,QI=45,zy=58,JI=61,XI=62,eT=63,tT=64,Gy=91,Zy=93,rT=96,Ky=123,nT=124,Yy=125,he={};he[0]="\\0";he[7]="\\a";he[8]="\\b";he[9]="\\t";he[10]="\\n";he[11]="\\v";he[12]="\\f";he[13]="\\r";he[27]="\\e";he[34]='\\"';he[92]="\\\\";he[133]="\\N";he[160]="\\_";he[8232]="\\L";he[8233]="\\P";var iT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function oT(e,t){var r,n,i,o,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&By.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}s(oT,"compileStyleMap");function Cy(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Li("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Di.repeat("0",n-t.length)+t}s(Cy,"encodeHex");function sT(e){this.schema=e.schema||FI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Di.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=oT(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(sT,"State");function qy(e,t){for(var r=Di.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
|
|
29
|
+
`,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
30
|
+
`&&(o+=r),o+=a;return o}s(qy,"indentString");function Hl(e,t){return`
|
|
31
|
+
`+Di.repeat(" ",e.indent*t)}s(Hl,"generateNextLine");function aT(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(aT,"testImplicitResolving");function zl(e){return e===UI||e===BI}s(zl,"isWhitespace");function Dn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(Dn,"isPrintable");function cT(e){return Dn(e)&&!zl(e)&&e!==65279&&e!==HI&&e!==Mi}s(cT,"isNsChar");function jy(e,t){return Dn(e)&&e!==65279&&e!==Uy&&e!==Gy&&e!==Zy&&e!==Ky&&e!==Yy&&e!==zy&&(e!==Hy||t&&cT(t))}s(jy,"isPlainSafe");function uT(e){return Dn(e)&&e!==65279&&!zl(e)&&e!==QI&&e!==eT&&e!==zy&&e!==Uy&&e!==Gy&&e!==Zy&&e!==Ky&&e!==Yy&&e!==Hy&&e!==KI&&e!==WI&&e!==zI&&e!==nT&&e!==JI&&e!==XI&&e!==YI&&e!==GI&&e!==ZI&&e!==tT&&e!==rT}s(uT,"isPlainSafeFirst");function Wy(e){var t=/^\n* /;return t.test(e)}s(Wy,"needIndentIndicator");var Qy=1,Jy=2,Xy=3,e0=4,ds=5;function lT(e,t,r,n,i){var o,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=uT(e.charCodeAt(0))&&!zl(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Dn(a))return ds;c=o>0?e.charCodeAt(o-1):null,d=d&&jy(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Mi)u=!0,f&&(l=l||o-p-1>n&&e[p+1]!==" ",p=o);else if(!Dn(a))return ds;c=o>0?e.charCodeAt(o-1):null,d=d&&jy(a,c)}l=l||f&&o-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?Qy:Jy:r>9&&Wy(e)?ds:l?e0:Xy}s(lT,"chooseScalarStyle");function pT(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&iT.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return aT(e,u)}switch(s(c,"testAmbiguity"),lT(t,a,e.indent,o,c)){case Qy:return t;case Jy:return"'"+t.replace(/'/g,"''")+"'";case Xy:return"|"+My(t,e.indent)+Dy(qy(t,i));case e0:return">"+My(t,e.indent)+Dy(qy(fT(t,o),i));case ds:return'"'+dT(t,o)+'"';default:throw new Li("impossible error: invalid scalar style")}}()}s(pT,"writeScalar");function My(e,t){var r=Wy(e)?String(t):"",n=e[e.length-1]===`
|
|
32
32
|
`,i=n&&(e[e.length-2]===`
|
|
33
33
|
`||e===`
|
|
34
34
|
`),o=i?"+":n?"":"-";return r+o+`
|
|
35
|
-
`}s(
|
|
36
|
-
`?e.slice(0,-1):e}s(
|
|
37
|
-
`);return l=l!==-1?l:e.length,r.lastIndex=l,
|
|
38
|
-
`||e[0]===" ",o,a;a=r.exec(e);){var
|
|
39
|
-
`:"")+
|
|
40
|
-
`+e.slice(i,o),i=o+1),a=
|
|
41
|
-
`,e.length-i>t&&a>i?
|
|
42
|
-
`+e.slice(a+1):
|
|
43
|
-
`:""}s(
|
|
35
|
+
`}s(My,"blockHeader");function Dy(e){return e[e.length-1]===`
|
|
36
|
+
`?e.slice(0,-1):e}s(Dy,"dropEndingNewline");function fT(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
|
|
37
|
+
`);return l=l!==-1?l:e.length,r.lastIndex=l,Ly(e.slice(0,l),t)}(),i=e[0]===`
|
|
38
|
+
`||e[0]===" ",o,a;a=r.exec(e);){var c=a[1],u=a[2];o=u[0]===" ",n+=c+(!i&&!o&&u!==""?`
|
|
39
|
+
`:"")+Ly(u,t),i=o}return n}s(fT,"foldString");function Ly(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(o=a>i?a:c,u+=`
|
|
40
|
+
`+e.slice(i,o),i=o+1),a=c;return u+=`
|
|
41
|
+
`,e.length-i>t&&a>i?u+=e.slice(i,a)+`
|
|
42
|
+
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(Ly,"foldLine");function dT(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Cy((r-55296)*1024+n-56320+65536),o++;continue}i=he[r],t+=!i&&Dn(r)?e[o]:i||Cy(r)}return t}s(dT,"escapeString");function mT(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Fr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(mT,"writeFlowSequence");function hT(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Fr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Hl(e,t)),e.dump&&Mi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(hT,"writeBlockSequence");function gT(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,c,u,l,f;for(a=0,c=o.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=o[a],l=r[u],Fr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Fr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}s(gT,"writeFlowMapping");function yT(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),c,u,l,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Li("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Hl(e,t)),l=a[c],f=r[l],Fr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Mi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Hl(e,t)),Fr(e,t+1,f,!0,p)&&(e.dump&&Mi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(yT,"writeBlockMapping");function Fy(e,t,r){var n,i,o,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(c=i[o],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,Vy.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(By.call(c.represent,u))n=c.represent[u](t,u);else throw new Li("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(Fy,"detectType");function Fr(e,t,r,n,i,o){e.tag=null,e.dump=r,Fy(e,r,!1)||Fy(e,r,!0);var a=Vy.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(yT(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(gT(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(hT(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(mT(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&pT(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Li("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Fr,"writeNode");function vT(e,t){var r=[],n=[],i,o;for(Ul(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(vT,"getDuplicateReferences");function Ul(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Ul(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Ul(e[n[i]],t,r)}s(Ul,"inspectNode");function t0(e,t){t=t||{};var r=new sT(t);return r.noRefs||vT(e,r),Fr(r,0,e,!0,!0)?r.dump+`
|
|
43
|
+
`:""}s(t0,"dump");function _T(e,t){return t0(e,Di.extend({schema:VI},t))}s(_T,"safeDump");Gl.exports.dump=t0;Gl.exports.safeDump=_T});var i0=h((l8,Z)=>{"use strict";var ms=Ry(),n0=r0();function hs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(hs,"deprecated");Z.exports.Type=re();Z.exports.Schema=jr();Z.exports.FAILSAFE_SCHEMA=as();Z.exports.JSON_SCHEMA=Ml();Z.exports.CORE_SCHEMA=Dl();Z.exports.DEFAULT_SAFE_SCHEMA=Cn();Z.exports.DEFAULT_FULL_SCHEMA=qi();Z.exports.load=ms.load;Z.exports.loadAll=ms.loadAll;Z.exports.safeLoad=ms.safeLoad;Z.exports.safeLoadAll=ms.safeLoadAll;Z.exports.dump=n0.dump;Z.exports.safeDump=n0.safeDump;Z.exports.YAMLException=Nn();Z.exports.MINIMAL_SCHEMA=as();Z.exports.SAFE_SCHEMA=Cn();Z.exports.DEFAULT_SCHEMA=qi();Z.exports.scan=hs("scan");Z.exports.parse=hs("parse");Z.exports.compose=hs("compose");Z.exports.addConstructor=hs("addConstructor")});var s0=h((f8,o0)=>{"use strict";var bT=i0();o0.exports=bT});var c0=h((d8,a0)=>{"use strict";var{ParserError:ST}=Xe(),PT=s0();a0.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return PT.safeLoad(t)}catch(r){throw new ST(r.message,e.url)}else return t}}});var l0=h((m8,u0)=>{"use strict";var{ParserError:$T}=Xe(),OT=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;u0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&OT.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new $T("data is not text",e.url)}}});var f0=h((h8,p0)=>{"use strict";var ET=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;p0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&ET.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var h0=h((g8,m0)=>{"use strict";var xT=require("fs"),{ono:Zl}=Ze(),d0=Ne(),{ResolverError:Kl}=Xe();m0.exports={order:100,canRead(e){return d0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=d0.toFileSystemPath(e.url)}catch(i){r(new Kl(Zl.uri(i,`Malformed URI: ${e.url}`),e.url))}try{xT.readFile(n,(i,o)=>{i?r(new Kl(Zl(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Kl(Zl(i,`Error opening file "${n}"`),n))}})}}});var _0=h((y8,v0)=>{"use strict";var wT=require("http"),AT=require("https"),{ono:gs}=Ze(),Fi=Ne(),{ResolverError:g0}=Xe();v0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Fi.isHttp(e.url)},read(e){let t=Fi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Fi.parse(location.href).protocol),y0(t,this)}};function y0(e,t,r){return new Promise((n,i)=>{e=Fi.parse(e),r=r||[],r.push(e.href),IT(e,t).then(o=>{if(o.statusCode>=400)throw gs({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new g0(gs({status:o.statusCode},`Error downloading ${r[0]}.
|
|
44
44
|
Too many redirects:
|
|
45
45
|
${r.join(`
|
|
46
|
-
`)}`)));else if(o.headers.location){let a=
|
|
47
|
-
Cannot set "${t}" of a non-object.`);return r}s(
|
|
48
|
-
"${n}" not found.`);i.set(r,t)};
|
|
49
|
-
"${i}" not found.`);return o.resolve(n,r,e,t)};
|
|
50
|
-
Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new jk(e.url)):!p||!("error"in p)?i(Xl.syntax(`Unable to parse ${e.url}`)):p.error instanceof M0?i(p.error):i(new M0(p.error.message,e.url))}s(l,"onError")})}s(Vk,"parseFile");function Bk(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(Bk,"isEmpty")});var B0=m((l8,V0)=>{"use strict";var L0=Rn(),Hk=Di(),Uk=ef(),Fi=Re(),{isHandledError:zk}=Je();V0.exports=Gk;function Gk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=tf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(Gk,"resolveExternal");function tf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(L0.isExternal$Ref(e))i.push(F0(e,t,r,n));else for(let o of Object.keys(e)){let a=Hk.join(t,o),u=e[o];L0.isExternal$Ref(u)?i.push(F0(u,a,r,n)):i=i.concat(tf(u,a,r,n))}return i}s(tf,"crawl");async function F0(e,t,r,n){let i=Fi.resolve(t,e.$ref),o=Fi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await Uk(i,r,n),u=tf(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!zk(a))throw a;return r._$refs[o]&&(a.source=Fi.stripHash(t),a.path=Fi.safePointerToPath(Fi.getHash(t))),[]}}s(F0,"resolve$Ref")});var z0=m((p8,U0)=>{"use strict";var ms=Rn(),Vi=Di(),rf=Re();U0.exports=Zk;function Zk(e,t){let r=[];nf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Kk(r)}s(Zk,"bundle");function nf(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(ms.isAllowed$Ref(c))H0(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Vi.join(r,p),d=Vi.join(n,p),h=c[p];ms.isAllowed$Ref(h)?H0(c,p,r,d,i,o,a,u):nf(c,p,f,d,i,o,a,u)}}}s(nf,"crawl");function H0(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=rf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Vi.parse(n).length,d=rf.stripHash(p.path),h=rf.getHash(p.path),g=d!==a._root$Ref.path,y=ms.isExtended$Ref(c);i+=p.indirections;let v=Wk(o,e,t);if(v)if(f<v.depth||i<v.indirections)Yk(o,v);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||nf(p.value,null,p.path,n,i+1,o,a,u)}s(H0,"inventory$Ref");function Kk(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Vi.join(n,Vi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=ms.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(Kk,"remap");function Wk(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(Wk,"findInInventory");function Yk(e,t){let r=e.indexOf(t);e.splice(r,1)}s(Yk,"removeFromInventory")});var af=m((h8,W0)=>{"use strict";var of=Rn(),G0=Di(),{ono:Qk}=Ge(),Jk=Re();W0.exports=Xk;function Xk(e,t){let r=sf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(Xk,"dereference");function sf(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),of.isAllowed$Ref(e,o))a=Z0(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=G0.join(t,c),p=G0.join(r,c),f=e[c],d=!1;of.isAllowed$Ref(f,o)?(a=Z0(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=sf(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=K0(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(sf,"crawl");function Z0(e,t,r,n,i,o){let a=Jk.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&K0(t,i,o);let p=of.dereference(e,u.value);if(!l){let f=sf(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(Z0,"dereference$Ref");function K0(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Qk.reference(`Circular $ref pointer found at ${e}`);return!0}s(K0,"foundCircularReference")});var X0=m((g8,ht)=>{"use strict";var J0=T0(),eR=ef(),gs=Kl(),tR=B0(),rR=z0(),nR=af(),Tn=Re(),{JSONParserError:iR,InvalidPointerError:oR,MissingPointerError:sR,ResolverError:aR,ParserError:uR,UnmatchedParserError:cR,UnmatchedResolverError:lR,isHandledError:fR,JSONParserErrorGroup:Y0}=Je(),et=Yl(),{ono:Q0}=Ge();ht.exports=dt;ht.exports.default=dt;ht.exports.JSONParserError=iR;ht.exports.InvalidPointerError=oR;ht.exports.MissingPointerError=sR;ht.exports.ResolverError=aR;ht.exports.ParserError=uR;ht.exports.UnmatchedParserError=cR;ht.exports.UnmatchedResolverError=lR;function dt(){this.schema=null,this.$refs=new J0}s(dt,"$RefParser");dt.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");dt.prototype.parse=s(async function(t,r,n,i){let o=gs(arguments),a;if(!o.path&&!o.schema){let l=Q0(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return et(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new J0;let u="http";if(Tn.isFileSystemPath(o.path)&&(o.path=Tn.fromFileSystemPath(o.path),u="file"),o.path=Tn.resolve(Tn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=eR(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,et(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,et(o.callback,Promise.resolve(c.schema));throw Q0.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!fR(l)?et(o.callback,Promise.reject(l)):(this.$refs._$refs[Tn.stripHash(o.path)]&&this.$refs._$refs[Tn.stripHash(o.path)].addError(l),et(o.callback,Promise.resolve(null)))}},"parse");dt.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");dt.prototype.resolve=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.parse(a.path,a.schema,a.options),await tR(o,a.options),uf(o),et(a.callback,Promise.resolve(o.$refs))}catch(u){return et(a.callback,Promise.reject(u))}},"resolve");dt.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");dt.prototype.bundle=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.resolve(a.path,a.schema,a.options),rR(o,a.options),uf(o),et(a.callback,Promise.resolve(o.schema))}catch(u){return et(a.callback,Promise.reject(u))}},"bundle");dt.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");dt.prototype.dereference=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.resolve(a.path,a.schema,a.options),nR(o,a.options),uf(o),et(a.callback,Promise.resolve(o.schema))}catch(u){return et(a.callback,Promise.reject(u))}},"dereference");function uf(e){if(Y0.getParserErrors(e).length>0)throw new Y0(e)}s(uf,"finalize")});var iv=m((v8,nv)=>{"use strict";var pR=wl(),dR=kl(),ev=Kl(),tv=ho(),rv=v0(),ys=Yl(),{ono:tt}=Ge(),Cr=X0(),hR=af();nv.exports=mt;function mt(){Cr.apply(this,arguments)}s(mt,"SwaggerParser");tv.inherits(mt,Cr);mt.parse=Cr.parse;mt.resolve=Cr.resolve;mt.bundle=Cr.bundle;mt.dereference=Cr.dereference;Object.defineProperty(mt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});mt.prototype.parse=async function(e,t,r,n){let i=ev(arguments);i.options=new rv(i.options);try{let o=await Cr.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw tt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw tt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw tt.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw tt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw tt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw tt.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}tv.fixOasRelativeServers(o,i.path)}return ys(i.callback,Promise.resolve(o))}catch(o){return ys(i.callback,Promise.reject(o))}};mt.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};mt.prototype.validate=async function(e,t,r,n){let i=this,o=ev(arguments);o.options=new rv(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(pR(i.api),i.$refs.circular)){if(a===!0)hR(i,o.options);else if(a===!1)throw tt.reference("The API contains circular references")}return o.options.validate.spec&&dR(i.api),ys(o.callback,Promise.resolve(i.schema))}catch(u){return ys(o.callback,Promise.reject(u))}}});var Pe=m(Ce=>{"use strict";Ce.__esModule=!0;Ce.extend=l_;Ce.indexOf=nT;Ce.escapeExpression=iT;Ce.isEmpty=oT;Ce.createFrame=sT;Ce.blockParams=aT;Ce.appendContextPath=uT;var XR={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},eT=/[&<>"'`=]/g,tT=/[&<>"'`=]/;function rT(e){return XR[e]}s(rT,"escapeChar");function l_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(l_,"extend");var Cf=Object.prototype.toString;Ce.toString=Cf;var Tf=s(function(t){return typeof t=="function"},"isFunction");Tf(/x/)&&(Ce.isFunction=Tf=s(function(e){return typeof e=="function"&&Cf.call(e)==="[object Function]"},"isFunction"));Ce.isFunction=Tf;var f_=Array.isArray||function(e){return e&&typeof e=="object"?Cf.call(e)==="[object Array]":!1};Ce.isArray=f_;function nT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(nT,"indexOf");function iT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return tT.test(e)?e.replace(eT,rT):e}s(iT,"escapeExpression");function oT(e){return!e&&e!==0?!0:!!(f_(e)&&e.length===0)}s(oT,"isEmpty");function sT(e){var t=l_({},e);return t._parent=e,t}s(sT,"createFrame");function aT(e,t){return e.path=t,e}s(aT,"blockParams");function uT(e,t){return(e?e+".":"")+t}s(uT,"appendContextPath")});var Be=m((qs,p_)=>{"use strict";qs.__esModule=!0;var Nf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function qf(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Nf.length;c++)this[Nf[c]]=u[Nf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,qf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(qf,"Exception");qf.prototype=new Error;qs.default=qf;p_.exports=qs.default});var h_=m((js,d_)=>{"use strict";js.__esModule=!0;var jf=Pe();js.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(jf.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=jf.createFrame(r.data);o.contextPath=jf.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};d_.exports=js.default});var g_=m((Ms,m_)=>{"use strict";Ms.__esModule=!0;function cT(e){return e&&e.__esModule?e:{default:e}}s(cT,"_interopRequireDefault");var Xi=Pe(),lT=Be(),fT=cT(lT);Ms.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new fT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=Xi.appendContextPath(r.data.contextPath,r.ids[0])+"."),Xi.isFunction(t)&&(t=t.call(this)),r.data&&(u=Xi.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:Xi.blockParams([t[g],g],[c+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(Xi.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(a=i(this)),a})};m_.exports=Ms.default});var v_=m((Ds,y_)=>{"use strict";Ds.__esModule=!0;function pT(e){return e&&e.__esModule?e:{default:e}}s(pT,"_interopRequireDefault");var dT=Be(),hT=pT(dT);Ds.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new hT.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};y_.exports=Ds.default});var P_=m((Ls,b_)=>{"use strict";Ls.__esModule=!0;function mT(e){return e&&e.__esModule?e:{default:e}}s(mT,"_interopRequireDefault");var __=Pe(),gT=Be(),S_=mT(gT);Ls.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new S_.default("#if requires exactly one argument");return __.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||__.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new S_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};b_.exports=Ls.default});var O_=m((Fs,$_)=>{"use strict";Fs.__esModule=!0;Fs.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};$_.exports=Fs.default});var x_=m((Vs,E_)=>{"use strict";Vs.__esModule=!0;Vs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};E_.exports=Vs.default});var A_=m((Bs,w_)=>{"use strict";Bs.__esModule=!0;function yT(e){return e&&e.__esModule?e:{default:e}}s(yT,"_interopRequireDefault");var eo=Pe(),vT=Be(),_T=yT(vT);Bs.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new _T.default("#with requires exactly one argument");eo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(eo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=eo.createFrame(r.data),i.contextPath=eo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:eo.blockParams([t],[i&&i.contextPath])})})};w_.exports=Bs.default});var Mf=m(Hs=>{"use strict";Hs.__esModule=!0;Hs.registerDefaultHelpers=NT;Hs.moveHelperToHooks=qT;function Lr(e){return e&&e.__esModule?e:{default:e}}s(Lr,"_interopRequireDefault");var ST=h_(),bT=Lr(ST),PT=g_(),$T=Lr(PT),OT=v_(),ET=Lr(OT),xT=P_(),wT=Lr(xT),AT=O_(),IT=Lr(AT),kT=x_(),RT=Lr(kT),TT=A_(),CT=Lr(TT);function NT(e){bT.default(e),$T.default(e),ET.default(e),wT.default(e),IT.default(e),RT.default(e),CT.default(e)}s(NT,"registerDefaultHelpers");function qT(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(qT,"moveHelperToHooks")});var k_=m((Us,I_)=>{"use strict";Us.__esModule=!0;var jT=Pe();Us.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=jT.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};I_.exports=Us.default});var R_=m(Df=>{"use strict";Df.__esModule=!0;Df.registerDefaultDecorators=FT;function MT(e){return e&&e.__esModule?e:{default:e}}s(MT,"_interopRequireDefault");var DT=k_(),LT=MT(DT);function FT(e){LT.default(e)}s(FT,"registerDefaultDecorators")});var Lf=m((zs,T_)=>{"use strict";zs.__esModule=!0;var VT=Pe(),Ln={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=VT.indexOf(Ln.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=Ln.lookupLevel(t),typeof console<"u"&&Ln.lookupLevel(Ln.level)<=t){var r=Ln.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};zs.default=Ln;T_.exports=zs.default});var C_=m(Ff=>{"use strict";Ff.__esModule=!0;Ff.createNewLookupObject=HT;var BT=Pe();function HT(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return BT.extend.apply(void 0,[Object.create(null)].concat(t))}s(HT,"createNewLookupObject")});var Vf=m(to=>{"use strict";to.__esModule=!0;to.createProtoAccessControl=ZT;to.resultIsAllowed=KT;to.resetLoggedProperties=YT;function UT(e){return e&&e.__esModule?e:{default:e}}s(UT,"_interopRequireDefault");var N_=C_(),zT=Lf(),GT=UT(zT),Gs=Object.create(null);function ZT(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:N_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:N_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(ZT,"createProtoAccessControl");function KT(e,t,r){return q_(typeof e=="function"?t.methods:t.properties,r)}s(KT,"resultIsAllowed");function q_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(WT(t),!1)}s(q_,"checkWhiteList");function WT(e){Gs[e]!==!0&&(Gs[e]=!0,GT.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
46
|
+
`)}`)));else if(o.headers.location){let a=Fi.resolve(e,o.headers.location);y0(a,t,r).then(n,i)}else throw gs({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new g0(gs(o,`Error downloading ${e.href}`),e.href))})})}s(y0,"download");function IT(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?AT:wT).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(IT,"get")});var Ql=h((_8,S0)=>{"use strict";var TT=gg(),kT=c0(),NT=l0(),RT=f0(),CT=h0(),qT=_0();S0.exports=Wl;function Wl(e){Yl(this,Wl.defaults),Yl(this,e)}s(Wl,"$RefParserOptions");Wl.defaults={parse:{json:TT,yaml:kT,text:NT,binary:RT},resolve:{file:CT,http:qT,external:!0},continueOnError:!1,dereference:{circular:!0}};function Yl(e,t){if(b0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];b0(o)?e[i]=Yl(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(Yl,"merge");function b0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(b0,"isMergeable")});var Jl=h((S8,$0)=>{"use strict";var P0=Ql();$0.exports=jT;function jT(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof P0||(n=new P0(n)),{path:t,schema:r,options:n,callback:i}}s(jT,"normalizeArgs")});var E0=h(($8,O0)=>{"use strict";var Xl=Ql(),MT=kl(),DT=Cl(),LT=require("util");O0.exports=ys;function ys(e){Xl.call(this,ys.defaults),Xl.apply(this,arguments)}s(ys,"ParserOptions");ys.defaults={validate:{schema:MT,spec:DT}};LT.inherits(ys,Xl)});var w0=h((E8,x0)=>{"use strict";function FT(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(FT,"makeNext");x0.exports=FT()});var ep=h((w8,I0)=>{"use strict";var A0=w0();I0.exports=s(function(t,r){if(t){r.then(function(n){A0(function(){t(null,n)})},function(n){A0(function(){t(n)})});return}else return r},"maybe")});var Vi=h((I8,N0)=>{"use strict";N0.exports=nr;var tp=Ln(),rp=Ne(),{JSONParserError:VT,InvalidPointerError:BT,MissingPointerError:HT,isHandledError:UT}=Xe(),zT=/\//g,GT=/~/g,ZT=/~1/g,KT=/~0/g;function nr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(nr,"Pointer");nr.prototype.resolve=function(e,t,r){let n=nr.parse(this.path,this.originalPath);this.value=k0(e);for(let i=0;i<n.length;i++){if(vs(this,t)&&(this.path=nr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new HT(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&rp.resolve(this.path,this.value.$ref)!==r)&&vs(this,t),this};nr.prototype.set=function(e,t,r){let n=nr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=k0(e);for(let o=0;o<n.length-1;o++)vs(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=T0(this,i,{});return vs(this,r),i=n[n.length-1],T0(this,i,t),e};nr.parse=function(e,t){let r=rp.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(ZT,"/").replace(KT,"~"));if(r[0]!=="")throw new BT(r,t===void 0?e:t);return r.slice(1)};nr.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(GT,"~0").replace(zT,"~1"))}return e};function vs(e,t){if(tp.isAllowed$Ref(e.value,t)){let r=rp.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,tp.isExtended$Ref(e.value)?(e.value=tp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(vs,"resolveIf$Ref");function T0(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new VT(`Error assigning $ref pointer "${e.path}".
|
|
47
|
+
Cannot set "${t}" of a non-object.`);return r}s(T0,"setValue");function k0(e){if(UT(e))throw e;return e}s(k0,"unwrapOrThrow")});var Ln=h((k8,q0)=>{"use strict";q0.exports=be;var C0=Vi(),{InvalidPointerError:YT,isHandledError:WT,normalizeError:R0}=Xe(),{safePointerToPath:QT,stripHash:JT,getHash:XT}=Ne();function be(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(be,"$Ref");be.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(R0)):this.errors.push(R0(e))};be.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};be.prototype.get=function(e,t){return this.resolve(e,t).value};be.prototype.resolve=function(e,t,r,n){let i=new C0(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!WT(o))throw o;return o.path===null&&(o.path=QT(XT(n))),o instanceof YT&&(o.source=JT(n)),this.addError(o),null}};be.prototype.set=function(e,t){let r=new C0(this,e);this.value=r.set(this.value,t)};be.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};be.isExternal$Ref=function(e){return be.is$Ref(e)&&e.$ref[0]!=="#"};be.isAllowed$Ref=function(e,t){if(be.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};be.isExtended$Ref=function(e){return be.is$Ref(e)&&Object.keys(e).length>1};be.dereference=function(e,t){if(t&&typeof t=="object"&&be.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var L0=h((R8,D0)=>{"use strict";var{ono:j0}=Ze(),ek=Ln(),ir=Ne();D0.exports=et;function et(){this.circular=!1,this._$refs={},this._root$Ref=null}s(et,"$Refs");et.prototype.paths=function(e){return M0(this._$refs,arguments).map(r=>r.decoded)};et.prototype.values=function(e){let t=this._$refs;return M0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};et.prototype.toJSON=et.prototype.values;et.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};et.prototype.get=function(e,t){return this._resolve(e,"",t).value};et.prototype.set=function(e,t){let r=ir.resolve(this._root$Ref.path,e),n=ir.stripHash(r),i=this._$refs[n];if(!i)throw j0(`Error resolving $ref pointer "${e}".
|
|
48
|
+
"${n}" not found.`);i.set(r,t)};et.prototype._add=function(e){let t=ir.stripHash(e),r=new ek;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};et.prototype._resolve=function(e,t,r){let n=ir.resolve(this._root$Ref.path,e),i=ir.stripHash(n),o=this._$refs[i];if(!o)throw j0(`Error resolving $ref pointer "${e}".
|
|
49
|
+
"${i}" not found.`);return o.resolve(n,r,e,t)};et.prototype._get$Ref=function(e){e=ir.resolve(this._root$Ref.path,e);let t=ir.stripHash(e);return this._$refs[t]};function M0(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?ir.toFileSystemPath(n,!0):n}))}s(M0,"getPaths")});var V0=h(Bi=>{"use strict";Bi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Bi.filter=function(e,t,r){return e.filter(n=>!!F0(n,t,r))};Bi.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};Bi.run=function(e,t,r,n){let i,o,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(o);try{let m=F0(i,t,r,f,n);if(m&&typeof m.then=="function")m.then(p,d);else if(m!==void 0)p(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){d(m)}}s(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}s(f,"callback");function p(m){c({plugin:i,result:m})}s(p,"onSuccess");function d(m){o={plugin:i,error:m},l()}s(d,"onError")})};function F0(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(F0,"getResult")});var ip=h((M8,z0)=>{"use strict";var{ono:np}=Ze(),B0=Ne(),or=V0(),{ResolverError:H0,ParserError:U0,UnmatchedParserError:tk,UnmatchedResolverError:rk,isHandledError:nk}=Xe();z0.exports=ik;async function ik(e,t,r){e=B0.stripHash(e);let n=t._add(e),i={url:e,extension:B0.getExtension(e)};try{let o=await ok(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await sk(i,r,t);return n.value=a.result,a.result}catch(o){throw nk(o)&&(n.value=o),o}}s(ik,"parse");function ok(e,t,r){return new Promise((n,i)=>{let o=or.all(t.resolve);o=or.filter(o,"canRead",e),or.sort(o),or.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new rk(e.url)):!c||!("error"in c)?i(np.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof H0?i(c.error):i(new H0(c,e.url))}s(a,"onError")})}s(ok,"readFile");function sk(e,t,r){return new Promise((n,i)=>{let o=or.all(t.parse),a=or.filter(o,"canParse",e),c=a.length>0?a:o;or.sort(c),or.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&ak(f.result)?i(np.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
|
|
50
|
+
Parsed value is empty`)):n(f)}s(u,"onParsed");function l(f){!f&&t.continueOnError?i(new tk(e.url)):!f||!("error"in f)?i(np.syntax(`Unable to parse ${e.url}`)):f.error instanceof U0?i(f.error):i(new U0(f.error.message,e.url))}s(l,"onError")})}s(sk,"parseFile");function ak(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(ak,"isEmpty")});var Y0=h((L8,K0)=>{"use strict";var G0=Ln(),ck=Vi(),uk=ip(),Hi=Ne(),{isHandledError:lk}=Xe();K0.exports=pk;function pk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=op(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(pk,"resolveExternal");function op(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(G0.isExternal$Ref(e))i.push(Z0(e,t,r,n));else for(let o of Object.keys(e)){let a=ck.join(t,o),c=e[o];G0.isExternal$Ref(c)?i.push(Z0(c,a,r,n)):i=i.concat(op(c,a,r,n))}return i}s(op,"crawl");async function Z0(e,t,r,n){let i=Hi.resolve(t,e.$ref),o=Hi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await uk(i,r,n),c=op(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!lk(a))throw a;return r._$refs[o]&&(a.source=Hi.stripHash(t),a.path=Hi.safePointerToPath(Hi.getHash(t))),[]}}s(Z0,"resolve$Ref")});var J0=h((V8,Q0)=>{"use strict";var _s=Ln(),Ui=Vi(),sp=Ne();Q0.exports=fk;function fk(e,t){let r=[];ap(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),dk(r)}s(fk,"bundle");function ap(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(_s.isAllowed$Ref(u))W0(e,t,r,n,i,o,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=Ui.join(r,f),d=Ui.join(n,f),m=u[f];_s.isAllowed$Ref(m)?W0(u,f,r,d,i,o,a,c):ap(u,f,p,d,i,o,a,c)}}}s(ap,"crawl");function W0(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],l=sp.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=Ui.parse(n).length,d=sp.stripHash(f.path),m=sp.getHash(f.path),g=d!==a._root$Ref.path,y=_s.isExtended$Ref(u);i+=f.indirections;let v=mk(o,e,t);if(v)if(p<v.depth||i<v.indirections)hk(o,v);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),v||ap(f.value,null,f.path,n,i+1,o,a,c)}s(W0,"inventory$Ref");function dk(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Ui.join(n,Ui.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=_s.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(dk,"remap");function mk(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(mk,"findInInventory");function hk(e,t){let r=e.indexOf(t);e.splice(r,1)}s(hk,"removeFromInventory")});var lp=h((H8,rv)=>{"use strict";var cp=Ln(),X0=Vi(),{ono:gk}=Ze(),yk=Ne();rv.exports=vk;function vk(e,t){let r=up(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(vk,"dereference");function up(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),cp.isAllowed$Ref(e,o))a=ev(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=X0.join(t,u),f=X0.join(r,u),p=e[u],d=!1;cp.isAllowed$Ref(p,o)?(a=ev(p,l,f,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=up(p,l,f,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=tv(l,i,o),c.circular=c.circular||d}n.pop()}return c}s(up,"crawl");function ev(e,t,r,n,i,o){let a=yk.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&tv(t,i,o);let f=cp.dereference(e,c.value);if(!l){let p=up(f,c.path,r,n,i,o);l=p.circular,f=p.value}return l&&!u&&o.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}s(ev,"dereference$Ref");function tv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw gk.reference(`Circular $ref pointer found at ${e}`);return!0}s(tv,"foundCircularReference")});var sv=h((z8,gt)=>{"use strict";var ov=L0(),_k=ip(),bs=Jl(),bk=Y0(),Sk=J0(),Pk=lp(),Fn=Ne(),{JSONParserError:$k,InvalidPointerError:Ok,MissingPointerError:Ek,ResolverError:xk,ParserError:wk,UnmatchedParserError:Ak,UnmatchedResolverError:Ik,isHandledError:Tk,JSONParserErrorGroup:nv}=Xe(),tt=ep(),{ono:iv}=Ze();gt.exports=ht;gt.exports.default=ht;gt.exports.JSONParserError=$k;gt.exports.InvalidPointerError=Ok;gt.exports.MissingPointerError=Ek;gt.exports.ResolverError=xk;gt.exports.ParserError=wk;gt.exports.UnmatchedParserError=Ak;gt.exports.UnmatchedResolverError=Ik;function ht(){this.schema=null,this.$refs=new ov}s(ht,"$RefParser");ht.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");ht.prototype.parse=s(async function(t,r,n,i){let o=bs(arguments),a;if(!o.path&&!o.schema){let l=iv(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return tt(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new ov;let c="http";if(Fn.isFileSystemPath(o.path)&&(o.path=Fn.fromFileSystemPath(o.path),c="file"),o.path=Fn.resolve(Fn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=c,a=Promise.resolve(o.schema)}else a=_k(o.path,this.$refs,o.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,tt(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,tt(o.callback,Promise.resolve(u.schema));throw iv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!Tk(l)?tt(o.callback,Promise.reject(l)):(this.$refs._$refs[Fn.stripHash(o.path)]&&this.$refs._$refs[Fn.stripHash(o.path)].addError(l),tt(o.callback,Promise.resolve(null)))}},"parse");ht.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");ht.prototype.resolve=s(async function(t,r,n,i){let o=this,a=bs(arguments);try{return await this.parse(a.path,a.schema,a.options),await bk(o,a.options),pp(o),tt(a.callback,Promise.resolve(o.$refs))}catch(c){return tt(a.callback,Promise.reject(c))}},"resolve");ht.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");ht.prototype.bundle=s(async function(t,r,n,i){let o=this,a=bs(arguments);try{return await this.resolve(a.path,a.schema,a.options),Sk(o,a.options),pp(o),tt(a.callback,Promise.resolve(o.schema))}catch(c){return tt(a.callback,Promise.reject(c))}},"bundle");ht.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");ht.prototype.dereference=s(async function(t,r,n,i){let o=this,a=bs(arguments);try{return await this.resolve(a.path,a.schema,a.options),Pk(o,a.options),pp(o),tt(a.callback,Promise.resolve(o.schema))}catch(c){return tt(a.callback,Promise.reject(c))}},"dereference");function pp(e){if(nv.getParserErrors(e).length>0)throw new nv(e)}s(pp,"finalize")});var pv=h((Z8,lv)=>{"use strict";var kk=kl(),Nk=Cl(),av=Jl(),cv=vo(),uv=E0(),Ss=ep(),{ono:rt}=Ze(),Vr=sv(),Rk=lp();lv.exports=yt;function yt(){Vr.apply(this,arguments)}s(yt,"SwaggerParser");cv.inherits(yt,Vr);yt.parse=Vr.parse;yt.resolve=Vr.resolve;yt.bundle=Vr.bundle;yt.dereference=Vr.dereference;Object.defineProperty(yt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});yt.prototype.parse=async function(e,t,r,n){let i=av(arguments);i.options=new uv(i.options);try{let o=await Vr.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw rt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw rt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw rt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw rt.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw rt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw rt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw rt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw rt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw rt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw rt.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}cv.fixOasRelativeServers(o,i.path)}return Ss(i.callback,Promise.resolve(o))}catch(o){return Ss(i.callback,Promise.reject(o))}};yt.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};yt.prototype.validate=async function(e,t,r,n){let i=this,o=av(arguments);o.options=new uv(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(kk(i.api),i.$refs.circular)){if(a===!0)Rk(i,o.options);else if(a===!1)throw rt.reference("The API contains circular references")}return o.options.validate.spec&&Nk(i.api),Ss(o.callback,Promise.resolve(i.schema))}catch(c){return Ss(o.callback,Promise.reject(c))}}});var Oe=h(Re=>{"use strict";Re.__esModule=!0;Re.extend=w_;Re.indexOf=PN;Re.escapeExpression=$N;Re.isEmpty=ON;Re.createFrame=EN;Re.blockParams=xN;Re.appendContextPath=wN;var vN={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},_N=/[&<>"'`=]/g,bN=/[&<>"'`=]/;function SN(e){return vN[e]}s(SN,"escapeChar");function w_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(w_,"extend");var Dp=Object.prototype.toString;Re.toString=Dp;var Mp=s(function(t){return typeof t=="function"},"isFunction");Mp(/x/)&&(Re.isFunction=Mp=s(function(e){return typeof e=="function"&&Dp.call(e)==="[object Function]"},"isFunction"));Re.isFunction=Mp;var A_=Array.isArray||function(e){return e&&typeof e=="object"?Dp.call(e)==="[object Array]":!1};Re.isArray=A_;function PN(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(PN,"indexOf");function $N(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return bN.test(e)?e.replace(_N,SN):e}s($N,"escapeExpression");function ON(e){return!e&&e!==0?!0:!!(A_(e)&&e.length===0)}s(ON,"isEmpty");function EN(e){var t=w_({},e);return t._parent=e,t}s(EN,"createFrame");function xN(e,t){return e.path=t,e}s(xN,"blockParams");function wN(e,t){return(e?e+".":"")+t}s(wN,"appendContextPath")});var He=h((Fs,I_)=>{"use strict";Fs.__esModule=!0;var Lp=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Fp(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Lp.length;u++)this[Lp[u]]=c[Lp[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Fp);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Fp,"Exception");Fp.prototype=new Error;Fs.default=Fp;I_.exports=Fs.default});var k_=h((Vs,T_)=>{"use strict";Vs.__esModule=!0;var Vp=Oe();Vs.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Vp.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=Vp.createFrame(r.data);o.contextPath=Vp.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};T_.exports=Vs.default});var R_=h((Bs,N_)=>{"use strict";Bs.__esModule=!0;function AN(e){return e&&e.__esModule?e:{default:e}}s(AN,"_interopRequireDefault");var ro=Oe(),IN=He(),TN=AN(IN);Bs.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new TN.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=ro.appendContextPath(r.data.contextPath,r.ids[0])+"."),ro.isFunction(t)&&(t=t.call(this)),r.data&&(c=ro.createFrame(r.data));function l(g,y,v){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!v,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:ro.blockParams([t[g],g],[u+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(ro.isArray(t))for(var f=t.length;o<f;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;o<f;o++)l(o,o,o===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(a=i(this)),a})};N_.exports=Bs.default});var q_=h((Hs,C_)=>{"use strict";Hs.__esModule=!0;function kN(e){return e&&e.__esModule?e:{default:e}}s(kN,"_interopRequireDefault");var NN=He(),RN=kN(NN);Hs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new RN.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};C_.exports=Hs.default});var L_=h((Us,D_)=>{"use strict";Us.__esModule=!0;function CN(e){return e&&e.__esModule?e:{default:e}}s(CN,"_interopRequireDefault");var j_=Oe(),qN=He(),M_=CN(qN);Us.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new M_.default("#if requires exactly one argument");return j_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||j_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new M_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};D_.exports=Us.default});var V_=h((zs,F_)=>{"use strict";zs.__esModule=!0;zs.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};F_.exports=zs.default});var H_=h((Gs,B_)=>{"use strict";Gs.__esModule=!0;Gs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};B_.exports=Gs.default});var z_=h((Zs,U_)=>{"use strict";Zs.__esModule=!0;function jN(e){return e&&e.__esModule?e:{default:e}}s(jN,"_interopRequireDefault");var no=Oe(),MN=He(),DN=jN(MN);Zs.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new DN.default("#with requires exactly one argument");no.isFunction(t)&&(t=t.call(this));var n=r.fn;if(no.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=no.createFrame(r.data),i.contextPath=no.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:no.blockParams([t],[i&&i.contextPath])})})};U_.exports=Zs.default});var Bp=h(Ks=>{"use strict";Ks.__esModule=!0;Ks.registerDefaultHelpers=XN;Ks.moveHelperToHooks=eR;function Kr(e){return e&&e.__esModule?e:{default:e}}s(Kr,"_interopRequireDefault");var LN=k_(),FN=Kr(LN),VN=R_(),BN=Kr(VN),HN=q_(),UN=Kr(HN),zN=L_(),GN=Kr(zN),ZN=V_(),KN=Kr(ZN),YN=H_(),WN=Kr(YN),QN=z_(),JN=Kr(QN);function XN(e){FN.default(e),BN.default(e),UN.default(e),GN.default(e),KN.default(e),WN.default(e),JN.default(e)}s(XN,"registerDefaultHelpers");function eR(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(eR,"moveHelperToHooks")});var Z_=h((Ys,G_)=>{"use strict";Ys.__esModule=!0;var tR=Oe();Ys.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,c){var u=n.partials;n.partials=tR.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,o})};G_.exports=Ys.default});var K_=h(Hp=>{"use strict";Hp.__esModule=!0;Hp.registerDefaultDecorators=oR;function rR(e){return e&&e.__esModule?e:{default:e}}s(rR,"_interopRequireDefault");var nR=Z_(),iR=rR(nR);function oR(e){iR.default(e)}s(oR,"registerDefaultDecorators")});var Up=h((Ws,Y_)=>{"use strict";Ws.__esModule=!0;var sR=Oe(),zn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=sR.indexOf(zn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=zn.lookupLevel(t),typeof console<"u"&&zn.lookupLevel(zn.level)<=t){var r=zn.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};Ws.default=zn;Y_.exports=Ws.default});var W_=h(zp=>{"use strict";zp.__esModule=!0;zp.createNewLookupObject=cR;var aR=Oe();function cR(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return aR.extend.apply(void 0,[Object.create(null)].concat(t))}s(cR,"createNewLookupObject")});var Gp=h(io=>{"use strict";io.__esModule=!0;io.createProtoAccessControl=fR;io.resultIsAllowed=dR;io.resetLoggedProperties=hR;function uR(e){return e&&e.__esModule?e:{default:e}}s(uR,"_interopRequireDefault");var Q_=W_(),lR=Up(),pR=uR(lR),Qs=Object.create(null);function fR(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:Q_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:Q_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(fR,"createProtoAccessControl");function dR(e,t,r){return J_(typeof e=="function"?t.methods:t.properties,r)}s(dR,"resultIsAllowed");function J_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(mR(t),!1)}s(J_,"checkWhiteList");function mR(e){Qs[e]!==!0&&(Qs[e]=!0,pR.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
51
51
|
You can add a runtime option to disable the check or this warning:
|
|
52
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(
|
|
53
|
-
`),d=0,
|
|
54
|
-
`)}return p}else throw new qt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new qt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||V_.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Nt.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=Ys(this,u,h,c,l,p,f):d||(d=this.programs[u]=Ys(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Nt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=y3(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=H_(e.main,f,i,u.depths||[],c,p),f(a,u)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var u=Nt.extend({},t.helpers,a.helpers);v3(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Nt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=V_.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;F_.moveHelperToHooks(i,"helperMissing",c),F_.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new qt.default("must pass block params");if(e.useDepths&&!l)throw new qt.default("must pass parent depths");return Ys(i,a,e[a],u,0,c,l)},o}s(h3,"template");function Ys(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=H_(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(Ys,"wrapProgram");function m3(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(m3,"resolvePartial");function g3(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==B_&&function(){r.data=jt.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=jt.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Nt.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new qt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(g3,"invokePartial");function B_(){return""}s(B_,"noop");function y3(e,t){return(!t||!("root"in t))&&(t=t?jt.createFrame(t):{},t.root=e),t}s(y3,"initData");function H_(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Nt.extend(t,a)}return t}s(H_,"executeDecorators");function v3(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=_3(n,t)})}s(v3,"wrapHelpersToPassLookupProperty");function _3(e,t){var r=t.lookupProperty;return p3.wrapHelper(e,function(n){return Nt.extend({lookupProperty:r},n)})}s(_3,"passLookupPropertyOption")});var Zf=m((Qs,z_)=>{"use strict";Qs.__esModule=!0;Qs.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};z_.exports=Qs.default});var Y_=m((Js,W_)=>{"use strict";Js.__esModule=!0;function Wf(e){return e&&e.__esModule?e:{default:e}}s(Wf,"_interopRequireDefault");function Yf(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Yf,"_interopRequireWildcard");var S3=Ks(),G_=Yf(S3),b3=D_(),P3=Wf(b3),$3=Be(),O3=Wf($3),E3=Pe(),Kf=Yf(E3),x3=U_(),Z_=Yf(x3),w3=Zf(),A3=Wf(w3);function K_(){var e=new G_.HandlebarsEnvironment;return Kf.extend(e,G_),e.SafeString=P3.default,e.Exception=O3.default,e.Utils=Kf,e.escapeExpression=Kf.escapeExpression,e.VM=Z_,e.template=function(t){return Z_.template(t,e)},e}s(K_,"create");var ro=K_();ro.create=K_;A3.default(ro);ro.default=ro;Js.default=ro;W_.exports=Js.default});var Qf=m((Xs,J_)=>{"use strict";Xs.__esModule=!0;var Q_={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!Q_.helpers.scopedId(t)&&!t.depth},"simpleId")}};Xs.default=Q_;J_.exports=Xs.default});var eS=m((ea,X_)=>{"use strict";ea.__esModule=!0;var I3=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(ot){a.length=a.length-2*ot,u.length=u.length-ot,c.length=c.length-ot}s(S,"popStack");function b(){var ot;return ot=o.lexer.lex()||1,typeof ot!="number"&&(ot=o.symbols_[ot]||ot),ot}s(b,"lex");for(var E,$,M,j,re,ne,ue={},qe,$e,Dt,Zr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=b()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var va="";if(!h){Zr=[];for(qe in l[M])this.terminals_[qe]&&qe>2&&Zr.push("'"+this.terminals_[qe]+"'");this.lexer.showPosition?va="Parse error on line "+(f+1)+`:
|
|
52
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(mR,"logUnexpecedPropertyAccessOnce");function hR(){Object.keys(Qs).forEach(function(e){delete Qs[e]})}s(hR,"resetLoggedProperties")});var Xs=h(wt=>{"use strict";wt.__esModule=!0;wt.HandlebarsEnvironment=Yp;function X_(e){return e&&e.__esModule?e:{default:e}}s(X_,"_interopRequireDefault");var Yr=Oe(),gR=He(),Zp=X_(gR),yR=Bp(),vR=K_(),_R=Up(),Js=X_(_R),bR=Gp(),SR="4.7.8";wt.VERSION=SR;var PR=8;wt.COMPILER_REVISION=PR;var $R=7;wt.LAST_COMPATIBLE_COMPILER_REVISION=$R;var OR={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};wt.REVISION_CHANGES=OR;var Kp="[object Object]";function Yp(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},yR.registerDefaultHelpers(this),vR.registerDefaultDecorators(this)}s(Yp,"HandlebarsEnvironment");Yp.prototype={constructor:Yp,logger:Js.default,log:Js.default.log,registerHelper:s(function(t,r){if(Yr.toString.call(t)===Kp){if(r)throw new Zp.default("Arg not supported with multiple helpers");Yr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(Yr.toString.call(t)===Kp)Yr.extend(this.partials,t);else{if(typeof r>"u")throw new Zp.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(Yr.toString.call(t)===Kp){if(r)throw new Zp.default("Arg not supported with multiple decorators");Yr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){bR.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var ER=Js.default.log;wt.log=ER;wt.createFrame=Yr.createFrame;wt.logger=Js.default});var tb=h((ea,eb)=>{"use strict";ea.__esModule=!0;function Wp(e){this.string=e}s(Wp,"SafeString");Wp.prototype.toString=Wp.prototype.toHTML=function(){return""+this.string};ea.default=Wp;eb.exports=ea.default});var rb=h(Qp=>{"use strict";Qp.__esModule=!0;Qp.wrapHelper=xR;function xR(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(xR,"wrapHelper")});var ab=h(mr=>{"use strict";mr.__esModule=!0;mr.checkRevision=NR;mr.template=RR;mr.wrapProgram=ta;mr.resolvePartial=CR;mr.invokePartial=qR;mr.noop=ob;function wR(e){return e&&e.__esModule?e:{default:e}}s(wR,"_interopRequireDefault");function AR(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(AR,"_interopRequireWildcard");var IR=Oe(),Dt=AR(IR),TR=He(),Lt=wR(TR),Ft=Xs(),nb=Bp(),kR=rb(),ib=Gp();function NR(e){var t=e&&e[0]||1,r=Ft.COMPILER_REVISION;if(!(t>=Ft.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Ft.COMPILER_REVISION))if(t<Ft.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ft.REVISION_CHANGES[r],i=Ft.REVISION_CHANGES[t];throw new Lt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Lt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(NR,"checkRevision");function RR(e,t){if(!t)throw new Lt.default("No environment passed to template");if(!e||!e.main)throw new Lt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=Dt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Dt.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),f=t.VM.invokePartial.call(this,a,c,l);if(f==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),f=u.partials[u.name](c,l)),f!=null){if(u.indent){for(var p=f.split(`
|
|
53
|
+
`),d=0,m=p.length;d<m&&!(!p[d]&&d+1===m);d++)p[d]=u.indent+p[d];f=p.join(`
|
|
54
|
+
`)}return f}else throw new Lt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(c,u,l){if(!c||!(u in c))throw new Lt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:s(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||ib.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:s(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:s(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:s(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:s(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=ta(this,c,m,u,l,f,p):d||(d=this.programs[c]=ta(this,c,m)),d},"program"),data:s(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:s(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Dt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;o._setup(c),!c.partial&&e.useData&&(u=jR(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return s(p,"main"),p=sb(e.main,p,i,c.depths||[],u,f),p(a,c)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Dt.extend({},t.helpers,a.helpers);MR(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Dt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=ib.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;nb.moveHelperToHooks(i,"helperMissing",u),nb.moveHelperToHooks(i,"blockHelperMissing",u)}},o._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ta(i,a,e[a],c,0,u,l)},o}s(RR,"template");function ta(e,t,r,n,i,o,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),f)}return s(c,"prog"),c=sb(r,c,e,a,n,o),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}s(ta,"wrapProgram");function CR(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(CR,"resolvePartial");function qR(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==ob&&function(){r.data=Ft.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Ft.createFrame(u.data),u.data["partial-block"]=n,o(c,u)},"partialBlockWrapper"),o.partials&&(r.partials=Dt.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Lt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(qR,"invokePartial");function ob(){return""}s(ob,"noop");function jR(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}s(jR,"initData");function sb(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Dt.extend(t,a)}return t}s(sb,"executeDecorators");function MR(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=DR(n,t)})}s(MR,"wrapHelpersToPassLookupProperty");function DR(e,t){var r=t.lookupProperty;return kR.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}s(DR,"passLookupPropertyOption")});var Jp=h((ra,cb)=>{"use strict";ra.__esModule=!0;ra.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};cb.exports=ra.default});var db=h((na,fb)=>{"use strict";na.__esModule=!0;function ef(e){return e&&e.__esModule?e:{default:e}}s(ef,"_interopRequireDefault");function tf(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(tf,"_interopRequireWildcard");var LR=Xs(),ub=tf(LR),FR=tb(),VR=ef(FR),BR=He(),HR=ef(BR),UR=Oe(),Xp=tf(UR),zR=ab(),lb=tf(zR),GR=Jp(),ZR=ef(GR);function pb(){var e=new ub.HandlebarsEnvironment;return Xp.extend(e,ub),e.SafeString=VR.default,e.Exception=HR.default,e.Utils=Xp,e.escapeExpression=Xp.escapeExpression,e.VM=lb,e.template=function(t){return lb.template(t,e)},e}s(pb,"create");var oo=pb();oo.create=pb;ZR.default(oo);oo.default=oo;na.default=oo;fb.exports=na.default});var rf=h((ia,hb)=>{"use strict";ia.__esModule=!0;var mb={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!mb.helpers.scopedId(t)&&!t.depth},"simpleId")}};ia.default=mb;hb.exports=ia.default});var yb=h((oa,gb)=>{"use strict";oa.__esModule=!0;var KR=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],c=[null],u=[],l=this.table,f="",p=0,d=0,m=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;u.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(st){a.length=a.length-2*st,c.length=c.length-st,u.length=u.length-st}s(b,"popStack");function P(){var st;return st=o.lexer.lex()||1,typeof st!="number"&&(st=o.symbols_[st]||st),st}s(P,"lex");for(var E,S,j,N,Q,ie,le={},qe,Ee,Ht,tn;;){if(j=a[a.length-1],this.defaultActions[j]?N=this.defaultActions[j]:((E===null||typeof E>"u")&&(E=P()),N=l[j]&&l[j][E]),typeof N>"u"||!N.length||!N[0]){var Pa="";if(!m){tn=[];for(qe in l[j])this.terminals_[qe]&&qe>2&&tn.push("'"+this.terminals_[qe]+"'");this.lexer.showPosition?Pa="Parse error on line "+(p+1)+`:
|
|
55
55
|
`+this.lexer.showPosition()+`
|
|
56
|
-
Expecting `+
|
|
57
|
-
`+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,u,
|
|
58
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();ea.default=I3;X_.exports=ea.default});var ia=m((na,nS)=>{"use strict";na.__esModule=!0;function k3(e){return e&&e.__esModule?e:{default:e}}s(k3,"_interopRequireDefault");var R3=Be(),Jf=k3(R3);function ta(){this.parents=[]}s(ta,"Visitor");ta.prototype={constructor:ta,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ta.prototype[n.type])throw new Jf.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Jf.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new Jf.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ra,Decorator:ra,BlockStatement:tS,DecoratorBlock:tS,PartialStatement:rS,PartialBlockStatement:s(function(t){rS.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:ra,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function ra(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(ra,"visitSubExpression");function tS(e){ra.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(tS,"visitBlock");function rS(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(rS,"visitPartial");na.default=ta;nS.exports=na.default});var oS=m((oa,iS)=>{"use strict";oa.__esModule=!0;function T3(e){return e&&e.__esModule?e:{default:e}}s(T3,"_interopRequireDefault");var C3=ia(),N3=T3(C3);function Ot(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Ot,"WhitespaceControl");Ot.prototype=new N3.default;Ot.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],u=this.accept(a);if(u){var c=Xf(n,i,r),l=ep(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Vr(n,i,!0),u.open&&fr(n,i,!0),t&&d&&(Vr(n,i),fr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Vr((a.program||a.inverse).body),fr(n,i)),t&&f&&(Vr(n,i),fr((a.inverse||a.program).body))}}return e};Ot.prototype.BlockStatement=Ot.prototype.DecoratorBlock=Ot.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:ep(t.body),closeStandalone:Xf((n||t).body)};if(e.openStrip.close&&Vr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&fr(t.body,null,!0),a.close&&Vr(n.body,null,!0),e.closeStrip.open&&fr(i.body,null,!0),!this.options.ignoreStandalone&&Xf(t.body)&&ep(n.body)&&(fr(t.body),Vr(n.body))}else e.closeStrip.open&&fr(t.body,null,!0);return o};Ot.prototype.Decorator=Ot.prototype.MustacheStatement=function(e){return e.strip};Ot.prototype.PartialStatement=Ot.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Xf(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(Xf,"isPrevWhitespace");function ep(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(ep,"isNextWhitespace");function Vr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Vr,"omitRight");function fr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(fr,"omitLeft");oa.default=Ot;iS.exports=oa.default});var sS=m(He=>{"use strict";He.__esModule=!0;He.SourceLocation=M3;He.id=D3;He.stripFlags=L3;He.stripComment=F3;He.preparePath=V3;He.prepareMustache=B3;He.prepareRawBlock=H3;He.prepareBlock=U3;He.prepareProgram=z3;He.preparePartialBlock=G3;function q3(e){return e&&e.__esModule?e:{default:e}}s(q3,"_interopRequireDefault");var j3=Be(),tp=q3(j3);function rp(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new tp.default(e.path.original+" doesn't match "+t,r)}}s(rp,"validateClose");function M3(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(M3,"SourceLocation");function D3(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(D3,"id");function L3(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(L3,"stripFlags");function F3(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(F3,"stripComment");function V3(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new tp.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(V3,"preparePath");function B3(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(B3,"prepareMustache");function H3(e,t,r,n){rp(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(H3,"prepareRawBlock");function U3(e,t,r,n,i,o){n&&n.path&&rp(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new tp.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(U3,"prepareBlock");function z3(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(z3,"prepareProgram");function G3(e,t,r,n){return rp(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(G3,"preparePartialBlock")});var cS=m(no=>{"use strict";no.__esModule=!0;no.parseWithoutProcessing=uS;no.parse=eC;function Z3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Z3,"_interopRequireWildcard");function aS(e){return e&&e.__esModule?e:{default:e}}s(aS,"_interopRequireDefault");var K3=eS(),np=aS(K3),W3=oS(),Y3=aS(W3),Q3=sS(),J3=Z3(Q3),X3=Pe();no.parser=np.default;var sa={};X3.extend(sa,J3);function uS(e,t){if(e.type==="Program")return e;np.default.yy=sa,sa.locInfo=function(n){return new sa.SourceLocation(t&&t.srcName,n)};var r=np.default.parse(e);return r}s(uS,"parseWithoutProcessing");function eC(e,t){var r=uS(e,t),n=new Y3.default(t);return n.accept(r)}s(eC,"parse")});var dS=m(ao=>{"use strict";ao.__esModule=!0;ao.Compiler=ip;ao.precompile=iC;ao.compile=oC;function fS(e){return e&&e.__esModule?e:{default:e}}s(fS,"_interopRequireDefault");var tC=Be(),oo=fS(tC),so=Pe(),rC=Qf(),io=fS(rC),nC=[].slice;function ip(){}s(ip,"Compiler");ip.prototype={compiler:ip,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!pS(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=so.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new oo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){lS(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new oo.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){lS(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new oo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,io.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=io.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:nC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=io.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&io.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!io.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&so.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function iC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new oo.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(iC,"precompile");function oC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new oo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=so.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(oC,"compile");function pS(e,t){if(e===t)return!0;if(so.isArray(e)&&so.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!pS(e[r],t[r]))return!1;return!0}}s(pS,"argEquals");function lS(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(lS,"transformLiteralToPath")});var mS=m(op=>{var hS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");op.encode=function(e){if(0<=e&&e<hS.length)return hS[e];throw new TypeError("Must be between 0 and 63: "+e)};op.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var up=m(ap=>{var gS=mS(),sp=5,yS=1<<sp,vS=yS-1,_S=yS;function sC(e){return e<0?(-e<<1)+1:(e<<1)+0}s(sC,"toVLQSigned");function aC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(aC,"fromVLQSigned");ap.encode=s(function(t){var r="",n,i=sC(t);do n=i&vS,i>>>=sp,i>0&&(n|=_S),r+=gS.encode(n);while(i>0);return r},"base64VLQ_encode");ap.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=gS.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&_S),c&=vS,o=o+(c<<a),a+=sp}while(u);n.value=aC(o),n.rest=r},"base64VLQ_decode")});var Bn=m(ge=>{function uC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(uC,"getArg");ge.getArg=uC;var SS=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,cC=/^data:.+\,.+$/;function uo(e){var t=e.match(SS);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(uo,"urlParse");ge.urlParse=uo;function Fn(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Fn,"urlGenerate");ge.urlGenerate=Fn;function cp(e){var t=e,r=uo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ge.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Fn(r)):t}s(cp,"normalize");ge.normalize=cp;function bS(e,t){e===""&&(e="."),t===""&&(t=".");var r=uo(t),n=uo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Fn(r);if(r||t.match(cC))return t;if(n&&!n.host&&!n.path)return n.host=t,Fn(n);var i=t.charAt(0)==="/"?t:cp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Fn(n)):i}s(bS,"join");ge.join=bS;ge.isAbsolute=function(e){return e.charAt(0)==="/"||SS.test(e)};function lC(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(lC,"relative");ge.relative=lC;var PS=function(){var e=Object.create(null);return!("__proto__"in e)}();function $S(e){return e}s($S,"identity");function fC(e){return OS(e)?"$"+e:e}s(fC,"toSetString");ge.toSetString=PS?$S:fC;function pC(e){return OS(e)?e.slice(1):e}s(pC,"fromSetString");ge.fromSetString=PS?$S:pC;function OS(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(OS,"isProtoString");function dC(e,t,r){var n=Vn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Vn(e.name,t.name)}s(dC,"compareByOriginalPositions");ge.compareByOriginalPositions=dC;function hC(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Vn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Vn(e.name,t.name)}s(hC,"compareByGeneratedPositionsDeflated");ge.compareByGeneratedPositionsDeflated=hC;function Vn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Vn,"strcmp");function mC(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Vn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Vn(e.name,t.name)}s(mC,"compareByGeneratedPositionsInflated");ge.compareByGeneratedPositionsInflated=mC;function gC(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(gC,"parseSourceMapInput");ge.parseSourceMapInput=gC;function yC(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=uo(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=bS(Fn(n),t)}return cp(t)}s(yC,"computeSourceURL");ge.computeSourceURL=yC});var pp=m(ES=>{var lp=Bn(),fp=Object.prototype.hasOwnProperty,Br=typeof Map<"u";function Mt(){this._array=[],this._set=Br?new Map:Object.create(null)}s(Mt,"ArraySet");Mt.fromArray=s(function(t,r){for(var n=new Mt,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Mt.prototype.size=s(function(){return Br?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Mt.prototype.add=s(function(t,r){var n=Br?t:lp.toSetString(t),i=Br?this.has(t):fp.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Br?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");Mt.prototype.has=s(function(t){if(Br)return this._set.has(t);var r=lp.toSetString(t);return fp.call(this._set,r)},"ArraySet_has");Mt.prototype.indexOf=s(function(t){if(Br){var r=this._set.get(t);if(r>=0)return r}else{var n=lp.toSetString(t);if(fp.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Mt.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Mt.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");ES.ArraySet=Mt});var AS=m(wS=>{var xS=Bn();function vC(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||xS.compareByGeneratedPositionsInflated(e,t)<=0}s(vC,"generatedPositionAfter");function aa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(aa,"MappingList");aa.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");aa.prototype.add=s(function(t){vC(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");aa.prototype.toArray=s(function(){return this._sorted||(this._array.sort(xS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");wS.MappingList=aa});var dp=m(IS=>{var co=up(),Q=Bn(),ua=pp().ArraySet,_C=AS().MappingList;function Ue(e){e||(e={}),this._file=Q.getArg(e,"file",null),this._sourceRoot=Q.getArg(e,"sourceRoot",null),this._skipValidation=Q.getArg(e,"skipValidation",!1),this._sources=new ua,this._names=new ua,this._mappings=new _C,this._sourcesContents=null}s(Ue,"SourceMapGenerator");Ue.prototype._version=3;Ue.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new Ue({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Q.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Q.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");Ue.prototype.addMapping=s(function(t){var r=Q.getArg(t,"generated"),n=Q.getArg(t,"original",null),i=Q.getArg(t,"source",null),o=Q.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");Ue.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Q.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Q.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Q.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ue.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=Q.relative(o,i));var a=new ua,u=new ua;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Q.join(n,c.source)),o!=null&&(c.source=Q.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Q.join(n,c)),o!=null&&(c=Q.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");Ue.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");Ue.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Q.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=co.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=co.encode(f-a),a=f,c+=co.encode(l.originalLine-1-i),i=l.originalLine-1,c+=co.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=co.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");Ue.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Q.relative(r,n));var i=Q.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Ue.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");Ue.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");IS.SourceMapGenerator=Ue});var kS=m(Hr=>{Hr.GREATEST_LOWER_BOUND=1;Hr.LEAST_UPPER_BOUND=2;function hp(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?hp(a,t,r,n,i,o):o==Hr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?hp(e,a,r,n,i,o):o==Hr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(hp,"recursiveSearch");Hr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=hp(-1,r.length,t,r,n,i||Hr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var TS=m(RS=>{function mp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(mp,"swap");function SC(e,t){return Math.round(e+Math.random()*(t-e))}s(SC,"randomIntInRange");function gp(e,t,r,n){if(r<n){var i=SC(r,n),o=r-1;mp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,mp(e,o,u));mp(e,o+1,u);var c=o+1;gp(e,t,r,c-1),gp(e,t,c+1,n)}}s(gp,"doQuickSort");RS.quickSort=function(e,t){gp(e,t,0,e.length-1)}});var NS=m(ca=>{var P=Bn(),yp=kS(),Hn=pp().ArraySet,bC=up(),lo=TS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new it(r,t):new ae(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ae.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||U.GENERATED_ORDER,a;switch(o){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,yp.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ca.SourceMapConsumer=U;function ae(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),o=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Hn.fromArray(o.map(String),!0),this._sources=Hn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(ae,"BasicSourceMapConsumer");ae.prototype=Object.create(U.prototype);ae.prototype.consumer=U;ae.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ae.fromSourceMap=s(function(t,r){var n=Object.create(ae.prototype),i=n._names=Hn.fromArray(t._names.toArray(),!0),o=n._sources=Hn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new CS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return lo(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function CS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(CS,"Mapping");ae.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,S,b;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new CS,y.generatedLine=n,S=p;S<l&&!this._charIsMappingSeparator(t,S);S++);if(v=t.slice(p,S),_=f[v],_)p+=v.length;else{for(_=[];p<S;)bC.decode(t,p,d),b=d.value,p=d.rest,_.push(b);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}lo(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,lo(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ae.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return yp.search(t,r,o,a)},"SourceMapConsumer_findMapping");ae.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");ae.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=P.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=P.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ae.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ae.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=P.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=P.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");ae.prototype.generatedPositionFor=s(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ca.BasicSourceMapConsumer=ae;function it(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Hn,this._names=new Hn;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}s(it,"IndexedSourceMapConsumer");it.prototype=Object.create(U.prototype);it.prototype.constructor=U;it.prototype._version=3;Object.defineProperty(it.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});it.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=yp.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");it.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");it.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");it.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");it.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var u=o[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}lo(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),lo(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ca.IndexedSourceMapConsumer=it});var jS=m(qS=>{var PC=dp().SourceMapGenerator,la=Bn(),$C=/(\r?\n)/,OC=10,Un="$$$isSourceNode$$$";function Ne(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Un]=!0,n!=null&&this.add(n)}s(Ne,"SourceNode");Ne.fromStringWithSourceMap=s(function(t,r,n){var i=new Ne,o=t.split($C),a=0,u=s(function(){var d=g(),h=g()||"";return d+h;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",g=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=la.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?la.join(n,d.source):d.source;i.add(new Ne(d.originalLine,d.originalColumn,g,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ne.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Un]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Ne.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Un]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Ne.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Un]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ne.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Ne.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Un]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Ne.prototype.setSourceContent=s(function(t,r){this.sourceContents[la.toSetString(t)]=r},"SourceNode_setSourceContent");Ne.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Un]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(la.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ne.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ne.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new PC(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===OC?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");qS.SourceNode=Ne});var MS=m(fa=>{fa.SourceMapGenerator=dp().SourceMapGenerator;fa.SourceMapConsumer=NS().SourceMapConsumer;fa.SourceNode=jS().SourceNode});var VS=m((pa,FS)=>{"use strict";pa.__esModule=!0;var _p=Pe(),Ur=void 0;try{(typeof define!="function"||!define.amd)&&(DS=MS(),Ur=DS.SourceNode)}catch{}var DS;Ur||(Ur=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Ur.prototype={add:s(function(t){_p.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){_p.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function vp(e,t,r){if(_p.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(vp,"castChunk");function LS(e){this.srcFile=e,this.source=[]}s(LS,"CodeGen");LS.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
59
|
-
`])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new
|
|
56
|
+
Expecting `+tn.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Pa="Parse error on line "+(p+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Pa,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:tn})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+E);switch(N[0]){case 1:a.push(E),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(N[1]),E=null,S?(E=S,S=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(Ee=this.productions_[N[1]][1],le.$=c[c.length-Ee],le._$={first_line:u[u.length-(Ee||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Ee||1)].first_column,last_column:u[u.length-1].last_column},_&&(le._$.range=[u[u.length-(Ee||1)].range[0],u[u.length-1].range[1]]),ie=this.performAction.call(le,f,d,p,this.yy,N[1],c,u),typeof ie<"u")return ie;Ee&&(a=a.slice(0,-1*Ee*2),c=c.slice(0,-1*Ee),u=u.slice(0,-1*Ee)),a.push(this.productions_[N[1]][0]),c.push(le.$),u.push(le._$),Ht=l[a[a.length-2]][a[a.length-1]],a.push(Ht);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:s(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
57
|
+
`+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,u,l,f;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),d=0;d<p.length&&(c=this._input.match(this.rules[p[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
58
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}s(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();oa.default=KR;gb.exports=oa.default});var ua=h((ca,bb)=>{"use strict";ca.__esModule=!0;function YR(e){return e&&e.__esModule?e:{default:e}}s(YR,"_interopRequireDefault");var WR=He(),nf=YR(WR);function sa(){this.parents=[]}s(sa,"Visitor");sa.prototype={constructor:sa,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!sa.prototype[n.type])throw new nf.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new nf.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new nf.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:aa,Decorator:aa,BlockStatement:vb,DecoratorBlock:vb,PartialStatement:_b,PartialBlockStatement:s(function(t){_b.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:aa,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function aa(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(aa,"visitSubExpression");function vb(e){aa.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(vb,"visitBlock");function _b(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(_b,"visitPartial");ca.default=sa;bb.exports=ca.default});var Pb=h((la,Sb)=>{"use strict";la.__esModule=!0;function QR(e){return e&&e.__esModule?e:{default:e}}s(QR,"_interopRequireDefault");var JR=ua(),XR=QR(JR);function At(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(At,"WhitespaceControl");At.prototype=new XR.default;At.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],c=this.accept(a);if(c){var u=of(n,i,r),l=sf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Wr(n,i,!0),c.open&&hr(n,i,!0),t&&d&&(Wr(n,i),hr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(Wr((a.program||a.inverse).body),hr(n,i)),t&&p&&(Wr(n,i),hr((a.inverse||a.program).body))}}return e};At.prototype.BlockStatement=At.prototype.DecoratorBlock=At.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:sf(t.body),closeStandalone:of((n||t).body)};if(e.openStrip.close&&Wr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&hr(t.body,null,!0),a.close&&Wr(n.body,null,!0),e.closeStrip.open&&hr(i.body,null,!0),!this.options.ignoreStandalone&&of(t.body)&&sf(n.body)&&(hr(t.body),Wr(n.body))}else e.closeStrip.open&&hr(t.body,null,!0);return o};At.prototype.Decorator=At.prototype.MustacheStatement=function(e){return e.strip};At.prototype.PartialStatement=At.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function of(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(of,"isPrevWhitespace");function sf(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(sf,"isNextWhitespace");function Wr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Wr,"omitRight");function hr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(hr,"omitLeft");la.default=At;Sb.exports=la.default});var $b=h(Ue=>{"use strict";Ue.__esModule=!0;Ue.SourceLocation=rC;Ue.id=nC;Ue.stripFlags=iC;Ue.stripComment=oC;Ue.preparePath=sC;Ue.prepareMustache=aC;Ue.prepareRawBlock=cC;Ue.prepareBlock=uC;Ue.prepareProgram=lC;Ue.preparePartialBlock=pC;function eC(e){return e&&e.__esModule?e:{default:e}}s(eC,"_interopRequireDefault");var tC=He(),af=eC(tC);function cf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new af.default(e.path.original+" doesn't match "+t,r)}}s(cf,"validateClose");function rC(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(rC,"SourceLocation");function nC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(nC,"id");function iC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(iC,"stripFlags");function oC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(oC,"stripComment");function sC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new af.default("Invalid path: "+n,{loc:r});u===".."&&o++}else i.push(u)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(sC,"preparePath");function aC(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(o)}}s(aC,"prepareMustache");function cC(e,t,r,n){cf(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(cC,"prepareRawBlock");function uC(e,t,r,n,i,o){n&&n.path&&cf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new af.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(uC,"prepareBlock");function lC(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(lC,"prepareProgram");function pC(e,t,r,n){return cf(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(pC,"preparePartialBlock")});var xb=h(so=>{"use strict";so.__esModule=!0;so.parseWithoutProcessing=Eb;so.parse=_C;function fC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(fC,"_interopRequireWildcard");function Ob(e){return e&&e.__esModule?e:{default:e}}s(Ob,"_interopRequireDefault");var dC=yb(),uf=Ob(dC),mC=Pb(),hC=Ob(mC),gC=$b(),yC=fC(gC),vC=Oe();so.parser=uf.default;var pa={};vC.extend(pa,yC);function Eb(e,t){if(e.type==="Program")return e;uf.default.yy=pa,pa.locInfo=function(n){return new pa.SourceLocation(t&&t.srcName,n)};var r=uf.default.parse(e);return r}s(Eb,"parseWithoutProcessing");function _C(e,t){var r=Eb(e,t),n=new hC.default(t);return n.accept(r)}s(_C,"parse")});var Tb=h(lo=>{"use strict";lo.__esModule=!0;lo.Compiler=lf;lo.precompile=$C;lo.compile=OC;function Ab(e){return e&&e.__esModule?e:{default:e}}s(Ab,"_interopRequireDefault");var bC=He(),co=Ab(bC),uo=Oe(),SC=rf(),ao=Ab(SC),PC=[].slice;function lf(){}s(lf,"Compiler");lf.prototype={compiler:lf,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!Ib(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=uo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new co.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){wb(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new co.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){wb(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new co.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,ao.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ao.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:PC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=ao.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ao.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!ao.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&uo.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function $C(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new co.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s($C,"precompile");function OC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new co.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=uo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}s(i,"compileInput");function o(a,c){return n||(n=i()),n.call(this,a,c)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},o}s(OC,"compile");function Ib(e,t){if(e===t)return!0;if(uo.isArray(e)&&uo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Ib(e[r],t[r]))return!1;return!0}}s(Ib,"argEquals");function wb(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(wb,"transformLiteralToPath")});var Nb=h(pf=>{var kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");pf.encode=function(e){if(0<=e&&e<kb.length)return kb[e];throw new TypeError("Must be between 0 and 63: "+e)};pf.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+f:e==c?62:e==u?63:-1}});var mf=h(df=>{var Rb=Nb(),ff=5,Cb=1<<ff,qb=Cb-1,jb=Cb;function EC(e){return e<0?(-e<<1)+1:(e<<1)+0}s(EC,"toVLQSigned");function xC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(xC,"fromVLQSigned");df.encode=s(function(t){var r="",n,i=EC(t);do n=i&qb,i>>>=ff,i>0&&(n|=jb),r+=Rb.encode(n);while(i>0);return r},"base64VLQ_encode");df.decode=s(function(t,r,n){var i=t.length,o=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Rb.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&jb),u&=qb,o=o+(u<<a),a+=ff}while(c);n.value=xC(o),n.rest=r},"base64VLQ_decode")});var Kn=h(ye=>{function wC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(wC,"getArg");ye.getArg=wC;var Mb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,AC=/^data:.+\,.+$/;function po(e){var t=e.match(Mb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(po,"urlParse");ye.urlParse=po;function Gn(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Gn,"urlGenerate");ye.urlGenerate=Gn;function hf(e){var t=e,r=po(e);if(r){if(!r.path)return e;t=r.path}for(var n=ye.isAbsolute(t),i=t.split(/\/+/),o,a=0,c=i.length-1;c>=0;c--)o=i[c],o==="."?i.splice(c,1):o===".."?a++:a>0&&(o===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Gn(r)):t}s(hf,"normalize");ye.normalize=hf;function Db(e,t){e===""&&(e="."),t===""&&(t=".");var r=po(t),n=po(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Gn(r);if(r||t.match(AC))return t;if(n&&!n.host&&!n.path)return n.host=t,Gn(n);var i=t.charAt(0)==="/"?t:hf(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Gn(n)):i}s(Db,"join");ye.join=Db;ye.isAbsolute=function(e){return e.charAt(0)==="/"||Mb.test(e)};function IC(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(IC,"relative");ye.relative=IC;var Lb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Fb(e){return e}s(Fb,"identity");function TC(e){return Vb(e)?"$"+e:e}s(TC,"toSetString");ye.toSetString=Lb?Fb:TC;function kC(e){return Vb(e)?e.slice(1):e}s(kC,"fromSetString");ye.fromSetString=Lb?Fb:kC;function Vb(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(Vb,"isProtoString");function NC(e,t,r){var n=Zn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Zn(e.name,t.name)}s(NC,"compareByOriginalPositions");ye.compareByOriginalPositions=NC;function RC(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Zn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Zn(e.name,t.name)}s(RC,"compareByGeneratedPositionsDeflated");ye.compareByGeneratedPositionsDeflated=RC;function Zn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Zn,"strcmp");function CC(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Zn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Zn(e.name,t.name)}s(CC,"compareByGeneratedPositionsInflated");ye.compareByGeneratedPositionsInflated=CC;function qC(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(qC,"parseSourceMapInput");ye.parseSourceMapInput=qC;function jC(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=po(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=Db(Gn(n),t)}return hf(t)}s(jC,"computeSourceURL");ye.computeSourceURL=jC});var vf=h(Bb=>{var gf=Kn(),yf=Object.prototype.hasOwnProperty,Qr=typeof Map<"u";function Vt(){this._array=[],this._set=Qr?new Map:Object.create(null)}s(Vt,"ArraySet");Vt.fromArray=s(function(t,r){for(var n=new Vt,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Vt.prototype.size=s(function(){return Qr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=s(function(t,r){var n=Qr?t:gf.toSetString(t),i=Qr?this.has(t):yf.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Qr?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");Vt.prototype.has=s(function(t){if(Qr)return this._set.has(t);var r=gf.toSetString(t);return yf.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=s(function(t){if(Qr){var r=this._set.get(t);if(r>=0)return r}else{var n=gf.toSetString(t);if(yf.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Vt.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Vt.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Bb.ArraySet=Vt});var zb=h(Ub=>{var Hb=Kn();function MC(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||Hb.compareByGeneratedPositionsInflated(e,t)<=0}s(MC,"generatedPositionAfter");function fa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(fa,"MappingList");fa.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");fa.prototype.add=s(function(t){MC(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");fa.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Hb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Ub.MappingList=fa});var _f=h(Gb=>{var fo=mf(),ee=Kn(),da=vf().ArraySet,DC=zb().MappingList;function ze(e){e||(e={}),this._file=ee.getArg(e,"file",null),this._sourceRoot=ee.getArg(e,"sourceRoot",null),this._skipValidation=ee.getArg(e,"skipValidation",!1),this._sources=new da,this._names=new da,this._mappings=new DC,this._sourcesContents=null}s(ze,"SourceMapGenerator");ze.prototype._version=3;ze.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new ze({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=ee.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=ee.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");ze.prototype.addMapping=s(function(t){var r=ee.getArg(t,"generated"),n=ee.getArg(t,"original",null),i=ee.getArg(t,"source",null),o=ee.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");ze.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=ee.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ee.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ee.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");ze.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=ee.relative(o,i));var a=new da,c=new da;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=ee.join(n,u.source)),o!=null&&(u.source=ee.relative(o,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=ee.join(n,u)),o!=null&&(u=ee.relative(o,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");ze.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");ze.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!ee.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=fo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=fo.encode(p-a),a=p,u+=fo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=fo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=fo.encode(f-o),o=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");ze.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ee.relative(r,n));var i=ee.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");ze.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");ze.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Gb.SourceMapGenerator=ze});var Zb=h(Jr=>{Jr.GREATEST_LOWER_BOUND=1;Jr.LEAST_UPPER_BOUND=2;function bf(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?bf(a,t,r,n,i,o):o==Jr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?bf(e,a,r,n,i,o):o==Jr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(bf,"recursiveSearch");Jr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=bf(-1,r.length,t,r,n,i||Jr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var Yb=h(Kb=>{function Sf(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(Sf,"swap");function LC(e,t){return Math.round(e+Math.random()*(t-e))}s(LC,"randomIntInRange");function Pf(e,t,r,n){if(r<n){var i=LC(r,n),o=r-1;Sf(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(o+=1,Sf(e,o,c));Sf(e,o+1,c);var u=o+1;Pf(e,t,r,u-1),Pf(e,t,u+1,n)}}s(Pf,"doQuickSort");Kb.quickSort=function(e,t){Pf(e,t,0,e.length-1)}});var Qb=h(ma=>{var $=Kn(),$f=Zb(),Yn=vf().ArraySet,FC=mf(),mo=Yb().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=$.parseSourceMapInput(e)),r.sections!=null?new ot(r,t):new ue(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ue.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||U.GENERATED_ORDER,a;switch(o){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=$.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=$.getArg(t,"line"),n={source:$.getArg(t,"source"),originalLine:r,originalColumn:$.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$f.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ma.SourceMapConsumer=U;function ue(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sources"),o=$.getArg(r,"names",[]),a=$.getArg(r,"sourceRoot",null),c=$.getArg(r,"sourcesContent",null),u=$.getArg(r,"mappings"),l=$.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=$.normalize(a)),i=i.map(String).map($.normalize).map(function(f){return a&&$.isAbsolute(a)&&$.isAbsolute(f)?$.relative(a,f):f}),this._names=Yn.fromArray(o.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return $.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}s(ue,"BasicSourceMapConsumer");ue.prototype=Object.create(U.prototype);ue.prototype.consumer=U;ue.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ue.fromSourceMap=s(function(t,r){var n=Object.create(ue.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),o=n._sources=Yn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return $.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new Wb;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=o.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return mo(n.__originalMappings,$.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ue.prototype._version=3;Object.defineProperty(ue.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function Wb(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(Wb,"Mapping");ue.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,v,_,b,P;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new Wb,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(f,b),_=p[v],_)f+=v.length;else{for(_=[];f<b;)FC.decode(t,f,d),P=d.value,f=d.rest,_.push(P);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");p[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=c+_[1],c+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=u+_[4],u+=_[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}mo(g,$.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,mo(m,$.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");ue.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return $f.search(t,r,o,a)},"SourceMapConsumer_findMapping");ue.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");ue.prototype.originalPositionFor=s(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",$.compareByGeneratedPositionsDeflated,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=$.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=$.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=$.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:$.getArg(i,"originalLine",null),column:$.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ue.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ue.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=$.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=$.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");ue.prototype.generatedPositionFor=s(function(t){var r=$.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:$.getArg(t,"line"),originalColumn:$.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:$.getArg(o,"generatedLine",null),column:$.getArg(o,"generatedColumn",null),lastColumn:$.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ma.BasicSourceMapConsumer=ue;function ot(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=$.getArg(a,"offset"),u=$.getArg(c,"line"),l=$.getArg(c,"column");if(u<o.line||u===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new U($.getArg(a,"map"),t)}})}s(ot,"IndexedSourceMapConsumer");ot.prototype=Object.create(U.prototype);ot.prototype.constructor=U;ot.prototype._version=3;Object.defineProperty(ot.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});ot.prototype.originalPositionFor=s(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=$f.search(r,this._sections,function(o,a){var c=o.generatedLine-a.generatedOffset.generatedLine;return c||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");ot.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");ot.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");ot.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex($.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");ot.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[a],u=i.consumer._sources.at(c.source);u=$.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}mo(this.__generatedMappings,$.compareByGeneratedPositionsDeflated),mo(this.__originalMappings,$.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ma.IndexedSourceMapConsumer=ot});var Xb=h(Jb=>{var VC=_f().SourceMapGenerator,ha=Kn(),BC=/(\r?\n)/,HC=10,Wn="$$$isSourceNode$$$";function Ce(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Wn]=!0,n!=null&&this.add(n)}s(Ce,"SourceNode");Ce.fromStringWithSourceMap=s(function(t,r,n){var i=new Ce,o=t.split(BC),a=0,c=s(function(){var d=g(),m=g()||"";return d+m;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=o[a]||"",g=m.substr(0,d.generatedColumn-l);o[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=o[a]||"";i.add(m.substr(0,d.generatedColumn)),o[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<o.length&&(f&&p(f,c()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=ha.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?ha.join(n,d.source):d.source;i.add(new Ce(d.originalLine,d.originalColumn,g,m,d.name))}}s(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ce.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Wn]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Ce.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Wn]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Ce.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Wn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ce.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Ce.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Wn]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Ce.prototype.setSourceContent=s(function(t,r){this.sourceContents[ha.toSetString(t)]=r},"SourceNode_setSourceContent");Ce.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Wn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(ha.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ce.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ce.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new VC(t),i=!1,o=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((o!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),o=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===HC?(r.line++,r.column=0,p+1===d?(o=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");Jb.SourceNode=Ce});var eS=h(ga=>{ga.SourceMapGenerator=_f().SourceMapGenerator;ga.SourceMapConsumer=Qb().SourceMapConsumer;ga.SourceNode=Xb().SourceNode});var iS=h((ya,nS)=>{"use strict";ya.__esModule=!0;var Ef=Oe(),Xr=void 0;try{(typeof define!="function"||!define.amd)&&(tS=eS(),Xr=tS.SourceNode)}catch{}var tS;Xr||(Xr=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Xr.prototype={add:s(function(t){Ef.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){Ef.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function Of(e,t,r){if(Ef.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(Of,"castChunk");function rS(e){this.srcFile=e,this.source=[]}s(rS,"CodeGen");rS.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
59
|
+
`])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Xr(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Xr?t:(t=Of(t,this,r),new Xr(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=Of(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Of(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};ya.default=rS;nS.exports=ya.default});var uS=h((va,cS)=>{"use strict";va.__esModule=!0;function aS(e){return e&&e.__esModule?e:{default:e}}s(aS,"_interopRequireDefault");var oS=Xs(),UC=He(),xf=aS(UC),zC=Oe(),GC=iS(),sS=aS(GC);function Qn(e){this.value=e}s(Qn,"Literal");function Jn(){}s(Jn,"JavaScriptCompiler");Jn.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=oS.COMPILER_REVISION,r=oS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return zC.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var o=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=o.length;u<l;u++)a=o[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new xf.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
60
60
|
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
61
61
|
`),this.decorators.push(`}
|
|
62
|
-
`),this.decorators=this.decorators.merge()));var
|
|
63
|
-
`,
|
|
62
|
+
`),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:s(function(){this.lastContext=0,this.source=new sS.default(this.options.srcName),this.decorators=new sS.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+u,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
63
|
+
`,c,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(o?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
|
|
64
64
|
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
|
|
65
65
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
66
66
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -68,9 +68,9 @@ Expecting `+Zr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":va="Parse error
|
|
|
68
68
|
}
|
|
69
69
|
return undefined
|
|
70
70
|
}
|
|
71
|
-
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(AC(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Gn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof zn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new zn(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new Sp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof zn)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof zn)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof zn)return n.value;if(!r){if(!this.stackSlot)throw new Sp.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof zn?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Gn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Gn.isValidJavaScriptVariableName=function(e){return!Gn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function AC(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(AC,"strictLookup");da.default=Gn;zS.exports=da.default});var WS=m((ha,KS)=>{"use strict";ha.__esModule=!0;function fo(e){return e&&e.__esModule?e:{default:e}}s(fo,"_interopRequireDefault");var IC=Y_(),kC=fo(IC),RC=Qf(),TC=fo(RC),bp=cS(),Pp=dS(),CC=GS(),NC=fo(CC),qC=ia(),jC=fo(qC),MC=Zf(),DC=fo(MC),LC=kC.default.create;function ZS(){var e=LC();return e.compile=function(t,r){return Pp.compile(t,r,e)},e.precompile=function(t,r){return Pp.precompile(t,r,e)},e.AST=TC.default,e.Compiler=Pp.Compiler,e.JavaScriptCompiler=NC.default,e.Parser=bp.parser,e.parse=bp.parse,e.parseWithoutProcessing=bp.parseWithoutProcessing,e}s(ZS,"create");var Zn=ZS();Zn.create=ZS;DC.default(Zn);Zn.Visitor=jC.default;Zn.default=Zn;ha.default=Zn;KS.exports=ha.default});var YS=m(ma=>{"use strict";ma.__esModule=!0;ma.print=HC;ma.PrintVisitor=K;function FC(e){return e&&e.__esModule?e:{default:e}}s(FC,"_interopRequireDefault");var VC=ia(),BC=FC(VC);function HC(e){return new K().accept(e)}s(HC,"print");function K(){this.padding=0}s(K,"PrintVisitor");K.prototype=new BC.default;K.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
72
|
-
`,t};K.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};K.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};K.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};K.prototype.BlockStatement=K.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};K.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};K.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};K.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};K.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};K.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};K.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};K.prototype.StringLiteral=function(e){return'"'+e.value+'"'};K.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};K.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};K.prototype.UndefinedLiteral=function(){return"UNDEFINED"};K.prototype.NullLiteral=function(){return"NULL"};K.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};K.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var zr=m((L6,XS)=>{var ga=WS().default,JS=YS();ga.PrintVisitor=JS.PrintVisitor;ga.print=JS.print;XS.exports=ga;function QS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=ga.compile(n)}s(QS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=QS,require.extensions[".hbs"]=QS)});var lN={};_b(lN,{getGenerateFilesData:()=>cN,getGenerateMetadata:()=>uN});module.exports=Sb(lN);var Ap=Et(iv());var ov="Schema",sv="Enum",av="Body",uv="Param",cv="Response",lv="ErrorResponse",cf="z.void()",vs={bindings:["z"],from:"zod"};var Bi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:ov,enumSuffix:sv,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Te=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var he=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Hi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),_s=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Ie=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),fv=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),lf=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),pv=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),mR=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),ff=s(e=>{let t=e.map(he).map(gR).map(r=>yR(r)).flat();return mR(t)},"getMostCommonAdjacentCombinationSplit"),gR=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),yR=s((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Ss=s(e=>`use${he(Ie(e.operationName))}`,"getQueryName"),pf=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Te(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${he(_s(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),dv=s((e,t)=>{let n=pf(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function tr({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Hi(t)}/`:""}${Hi(t)}.${i}`:i}s(tr,"getTagFileName");var ee=s(({type:e,tag:t,options:r})=>`${he(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var hv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),gt=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Rt=Symbol.for("@ts-pattern/matcher"),vR=Symbol.for("@ts-pattern/isVariadic"),Ps="@ts-pattern/anonymous-select-key",df=s(e=>!!(e&&typeof e=="object"),"r"),bs=s(e=>e&&!!e[Rt],"i"),_t=s((e,t,r)=>{if(bs(e)){let n=e[Rt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(df(e)){if(!df(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];bs(u)&&u[vR]?o.push(u):o.length?i.push(u):n.push(u)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>_t(l,a[p],r))&&i.every((l,p)=>_t(l,u[p],r))&&(o.length===0||_t(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>_t(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||bs(o=i)&&o[Rt]().matcherType==="optional")&&_t(i,t[n],r);var o})}return Object.is(t,e)},"s"),sr=s(e=>{var t,r,n;return df(e)?bs(e)?(t=(r=(n=e[Rt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?zi(e,sr):zi(Object.values(e),sr):[]},"o"),zi=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ve(e){return Object.assign(e,{optional:s(()=>_R(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>SR(e,t),"or"),select:s(t=>t===void 0?mv(e):mv(t,e),"select")})}s(Ve,"u");function _R(e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(sr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:_t(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>sr(e),"getSelectionKeys"),matcherType:"optional"})})}s(_R,"h");function z(...e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>_t(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zi(e,sr),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function SR(...e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return zi(e,sr).forEach(i=>n(i,void 0)),{matched:e.some(i=>_t(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zi(e,sr),"getSelectionKeys"),matcherType:"or"})})}s(SR,"d");function D(e){return{[Rt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function mv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Ve({[Rt]:()=>({match:s(n=>{let i={[t??Ps]:n};return{matched:r===void 0||_t(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Ps].concat(r===void 0?[]:sr(r)),"getSelectionKeys")})})}s(mv,"y");function yt(e){return typeof e=="number"}s(yt,"v");function rr(e){return typeof e=="string"}s(rr,"b");function nr(e){return typeof e=="bigint"}s(nr,"w");var D8=Ve(D(function(e){return!0}));var ir=s(e=>Object.assign(Ve(e),{startsWith:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&!!n.match(r)))));var r},"regex")}),"j"),L8=ir(D(rr)),vt=s(e=>Object.assign(Ve(e),{between:s((t,r)=>vt(z(e,((n,i)=>D(o=>yt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n<r))(t))),"lt"),gt:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n>r))(t))),"gt"),lte:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n<=r))(t))),"lte"),gte:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n>=r))(t))),"gte"),int:s(()=>vt(z(e,D(t=>yt(t)&&Number.isInteger(t)))),"int"),finite:s(()=>vt(z(e,D(t=>yt(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>vt(z(e,D(t=>yt(t)&&t>0))),"positive"),negative:s(()=>vt(z(e,D(t=>yt(t)&&t<0))),"negative")}),"x"),F8=vt(D(yt)),or=s(e=>Object.assign(Ve(e),{between:s((t,r)=>or(z(e,((n,i)=>D(o=>nr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>or(z(e,(r=>D(n=>nr(n)&&n<r))(t))),"lt"),gt:s(t=>or(z(e,(r=>D(n=>nr(n)&&n>r))(t))),"gt"),lte:s(t=>or(z(e,(r=>D(n=>nr(n)&&n<=r))(t))),"lte"),gte:s(t=>or(z(e,(r=>D(n=>nr(n)&&n>=r))(t))),"gte"),positive:s(()=>or(z(e,D(t=>nr(t)&&t>0))),"positive"),negative:s(()=>or(z(e,D(t=>nr(t)&&t<0))),"negative")}),"A"),V8=or(D(nr)),B8=Ve(D(function(e){return typeof e=="boolean"})),H8=Ve(D(function(e){return typeof e=="symbol"})),U8=Ve(D(function(e){return e==null})),z8=Ve(D(function(e){return e!=null}));var yf=class yf extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(yf,"W");var hf=yf,mf={matched:!1,value:void 0};function me(e){return new gf(e,mf)}s(me,"z");var Ui=class Ui{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>_t(l,this.input,u))||i&&!i(this.input)?mf:{matched:!0,value:r(o?Ps in a?a[Ps]:a:this.input,this.input)};return new Ui(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ui(this.input,n?{matched:!0,value:r(this.input,this.input)}:mf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new hf(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Ui,"I");var gf=Ui;var gv=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var vf=2,yv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],vv=["query","header","path"],ar=["get","put","post","delete","options","head","patch","trace"],_v=["string","number","integer","boolean"],$s=["allOf","anyOf","oneOf"];function ur(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(ur,"pick");function St(e){return fv(e)}s(St,"formatTag");function Nr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return St(r??t.defaultTag)}s(Nr,"getOperationTag");function Sv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=ur(i,ar);for(let a in o){let u=o[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Nr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}s(Sv,"getOperationsByTag");var Pv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),qr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Cn=s(e=>qr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(H,"isReferenceObject");function bf(e){let t=bR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Ie(t)}s(bf,"normalizeString");function $v(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s($v,"wrapWithQuotesIfNeeded");function Ov(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(Ov,"unwrapQuotesIfNeeded");function bR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(bR,"prefixStringStartingWithNumberIfNeeded");function Pf(e){let t=e.replaceAll("_","#");return Ie(t.replaceAll("-","_")).replaceAll("#","_")}s(Pf,"pathParamToVariableName");var Tt=s(e=>_v.includes(e),"isPrimitiveType");function Ev(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(Ev,"escapeControlCharacters");function cr(e){return e.includes("application/")&&e.includes("json")||yv.includes(e)||e.includes("text/")}s(cr,"isParamMediaTypeAllowed");function Os(e){return e>=200&&e<300}s(Os,"isMainResponseStatus");function Es(e){return!(e>=200&&e<300)}s(Es,"isErrorStatus");function Nn(e){return e==="application/json"}s(Nn,"isMediaTypeAllowed");function _f({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${$R(e)}`,a=r.operationId?gt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:he(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return gv.includes(a)?o:a}s(_f,"getOperationName");function Gi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Nr(r,i):i.defaultTag,a=_f({path:e,method:t,operation:r,options:i});return n[o].filter(c=>_f({path:e,method:t,operation:c,options:i})===a).length===1?a:_f({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Gi,"getUniqueOperationName");function xv(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=ur(o,ar);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Gi({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}s(xv,"getUniqueOperationNamesWithoutSplitByTags");var bv=/({\w+})/g,PR=/[^\w\-]+/g;function $R(e){e=he(_s(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(bv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(bv,"")}By${he(r.slice(1,-1))}`}return e.replace(PR,"_")}s($R,"pathToVariableName");var Sf=/{(\b\w+(?:-\w+)*\b)}/g;function wv(e){let t=e.match(Sf);return t===null?e.replaceAll(Sf,":$1"):(t.forEach(r=>{let n=Pf(r.replaceAll(Sf,":$1"));e=e.replaceAll(r,n)}),e)}s(wv,"replaceHyphenatedPath");var qn=s(e=>e.method==="get","isQuery"),xs=s(e=>e.method!=="get","isMutation");var Ct=s((e,t)=>lf(he(bf(e)),t),"getZodSchemaName"),Av=s((e,t,r)=>lf(he(bf(e)),`${t}${r}`),"getEnumZodSchemaName"),Se=s(e=>!e.startsWith("z."),"isNamedZodSchema"),jr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),ws=s(e=>Ie(`${e}_${av}`),"getBodyZodSchemaName"),Iv=s((e,t)=>Ie(`${e}_${t}${uv}`),"getParamZodSchemaName"),OR=s(e=>Ie(`${e}${cv}`),"getMainResponseZodSchemaName"),ER=s((e,t)=>Ie(`${e}_${t}_${lv}`),"getErrorResponseZodSchemaName");function As({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=jr(t,r,n);return!Os(i)&&e!=="default"&&Es(i)?ER(o,e):OR(o)}s(As,"getResponseZodSchemaName");var Zi=s((e,t)=>pv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),kv=s((e,t)=>Se(t)?`${e.options.includeNamespaces?`${ee({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Is=s((e,t)=>Se(t)?`${e.options.includeNamespaces?`${ee({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Zi(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function ks(e){return me(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(ks,"primitiveTypeToTsType");function jn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Se(e)?(n=Is(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Tt(t==null?void 0:t.type)&&(n=ks(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:tr({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(jn,"getTsTypeBase");function Mr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of $s){let o=e[i];if(o)if(o.length>1){let a=o.map(u=>{let c=n.resolveObject(u);return Mr({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Rv({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:xR({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Mr,"getSchemaTsMetaType");function Rv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let o=jn({zodSchemaName:n,schema:i,resolver:r}),a=Tv(o,t),u=Mr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...u}}s(Rv,"getArraySchemaTsType");function xR({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=jn({zodSchemaName:u,schema:c,resolver:r}),p=Tv(l,t),f=Mr({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...f}}else if(i.type==="array"){let u=Rv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:u}}else if(Tt(i.type))return{name:n,isRequired:o,type:ks(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(xR,"getSchemaTsProperties");function Tv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Tv,"getIsCircular");var $f={"Content-Type":"application/json",Accept:"application/json"},Cv="data";function bt(e){return!H(e)}s(bt,"isSchemaObject");function Nv(e){return e.type==="array"}s(Nv,"isArraySchemaObject");function qv(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(wR(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(H(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(qv,"inferRequiredSchema");var wR=s(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Ki=s(e=>Hi(Ie(e.operationName)),"getEndpointName");function jv(e,t){return`${t.includeNamespaces?`${ee({type:"endpoints",tag:Wi(e,t),options:t})}.`:""}${Ki(e)}`}s(jv,"getImportedEndpointName");var Mv=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Wi(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return St(r??t.defaultTag)}s(Wi,"getEndpointTag");function Of(e,t){return t.parameters.map(r=>{var i,o,a,u;let n="string";if(Se(r.zodSchema))n=Is(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&bt(r.parameterObject.schema)){let c=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;c&&Tt(c)&&(n=ks(c))}return{name:gt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}s(Of,"mapEndpointParamsToFunctionParams");function Dv(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=hv(i.name)?i.name:`"${i.name}"`,a=gt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==$f["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==$f.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=gt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(Dv,"getEndpointConfig");function Rs(e){return{type:"invalid-schema",message:e}}s(Rs,"getInvalidSchemaError");function Lv(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}s(Lv,"getInvalidOperationIdError");function Fv(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}s(Fv,"getMissingPathParameterError");function Vv(e){return{type:"not-allowed-inline-enum",message:e}}s(Vv,"getNotAllowedInlineEnumError");function Bv(e){return{type:"not-allowed-circular-schema",message:e}}s(Bv,"getNotAllowedCircularSchemaError");function Pt({schema:e,meta:t,options:r}){let n=[];me(e.type).with("string",()=>n.push(kR(e))).with("number","integer",()=>n.push(TR(e))).with("array",()=>n.push(CR(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
71
|
+
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(ZC(this.options.strict&&o,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",o.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Jn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,c=n.length;a<c;a++){i=n[a],o=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Qn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Qn(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new xf.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Qn)n=[a.value],r=["(",n],o=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Qn)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Qn)return n.value;if(!r){if(!this.stackSlot)throw new xf.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Qn?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Jn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Jn.isValidJavaScriptVariableName=function(e){return!Jn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function ZC(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(ZC,"strictLookup");va.default=Jn;cS.exports=va.default});var fS=h((_a,pS)=>{"use strict";_a.__esModule=!0;function ho(e){return e&&e.__esModule?e:{default:e}}s(ho,"_interopRequireDefault");var KC=db(),YC=ho(KC),WC=rf(),QC=ho(WC),wf=xb(),Af=Tb(),JC=uS(),XC=ho(JC),e3=ua(),t3=ho(e3),r3=Jp(),n3=ho(r3),i3=YC.default.create;function lS(){var e=i3();return e.compile=function(t,r){return Af.compile(t,r,e)},e.precompile=function(t,r){return Af.precompile(t,r,e)},e.AST=QC.default,e.Compiler=Af.Compiler,e.JavaScriptCompiler=XC.default,e.Parser=wf.parser,e.parse=wf.parse,e.parseWithoutProcessing=wf.parseWithoutProcessing,e}s(lS,"create");var Xn=lS();Xn.create=lS;n3.default(Xn);Xn.Visitor=t3.default;Xn.default=Xn;_a.default=Xn;pS.exports=_a.default});var dS=h(ba=>{"use strict";ba.__esModule=!0;ba.print=c3;ba.PrintVisitor=Y;function o3(e){return e&&e.__esModule?e:{default:e}}s(o3,"_interopRequireDefault");var s3=ua(),a3=o3(s3);function c3(e){return new Y().accept(e)}s(c3,"print");function Y(){this.padding=0}s(Y,"PrintVisitor");Y.prototype=new a3.default;Y.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
72
|
+
`,t};Y.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Y.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Y.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Y.prototype.BlockStatement=Y.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Y.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Y.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Y.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Y.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Y.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Y.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Y.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Y.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Y.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Y.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Y.prototype.NullLiteral=function(){return"NULL"};Y.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Y.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var gr=h((xF,gS)=>{var Sa=fS().default,hS=dS();Sa.PrintVisitor=hS.PrintVisitor;Sa.print=hS.print;gS.exports=Sa;function mS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Sa.compile(n)}s(mS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=mS,require.extensions[".hbs"]=mS)});var L3={};DS(L3,{getGenerateFilesData:()=>D3,getGenerateMetadata:()=>M3});module.exports=LS(L3);var qf=at(pv());var fv="Schema",dv="Enum",mv="Body",hv="Param",gv="Response",yv="ErrorResponse",fp="z.void()",Ps={bindings:["z"],from:"zod"};var zi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},schemaSuffix:fv,enumSuffix:dv,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Se=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var X=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Br=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),$s=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ce=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),vv=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),dp=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),_v=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Ck=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),mp=s(e=>{let t=e.map(X).map(qk).map(r=>jk(r)).flat();return Ck(t)},"getMostCommonAdjacentCombinationSplit"),qk=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),jk=s((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Os=s(e=>`use${X(ce(e.operationName))}`,"getQueryName"),hp=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Se(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${X($s(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),bv=s((e,t)=>{let n=hp(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function Ct({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Br(t)}/`:""}${Br(t)}.${i}`:i}s(Ct,"getTagFileName");var G=s(({type:e,tag:t,options:r})=>`${X(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Sv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),vt=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var qt=Symbol.for("@ts-pattern/matcher"),Mk=Symbol.for("@ts-pattern/isVariadic"),xs="@ts-pattern/anonymous-select-key",gp=s(e=>!!(e&&typeof e=="object"),"r"),Es=s(e=>e&&!!e[qt],"i"),St=s((e,t,r)=>{if(Es(e)){let n=e[qt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(gp(e)){if(!gp(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];Es(c)&&c[Mk]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,f)=>St(l,a[f],r))&&i.every((l,f)=>St(l,c[f],r))&&(o.length===0||St(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>St(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Es(o=i)&&o[qt]().matcherType==="optional")&&St(i,t[n],r);var o})}return Object.is(t,e)},"s"),lr=s(e=>{var t,r,n;return gp(e)?Es(e)?(t=(r=(n=e[qt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Zi(e,lr):Zi(Object.values(e),lr):[]},"o"),Zi=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Be(e){return Object.assign(e,{optional:s(()=>Dk(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>Lk(e,t),"or"),select:s(t=>t===void 0?Pv(e):Pv(t,e),"select")})}s(Be,"u");function Dk(e){return Be({[qt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(lr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:St(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}s(Dk,"h");function z(...e){return Be({[qt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>St(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Zi(e,lr),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function Lk(...e){return Be({[qt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Zi(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>St(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Zi(e,lr),"getSelectionKeys"),matcherType:"or"})})}s(Lk,"d");function D(e){return{[qt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function Pv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Be({[qt]:()=>({match:s(n=>{let i={[t??xs]:n};return{matched:r===void 0||St(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??xs].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}s(Pv,"y");function _t(e){return typeof e=="number"}s(_t,"v");function sr(e){return typeof e=="string"}s(sr,"b");function ar(e){return typeof e=="bigint"}s(ar,"w");var dD=Be(D(function(e){return!0}));var cr=s(e=>Object.assign(Be(e),{startsWith:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>cr(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>cr(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>cr(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),mD=cr(D(sr)),bt=s(e=>Object.assign(Be(e),{between:s((t,r)=>bt(z(e,((n,i)=>D(o=>_t(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n<r))(t))),"lt"),gt:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n>r))(t))),"gt"),lte:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n<=r))(t))),"lte"),gte:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n>=r))(t))),"gte"),int:s(()=>bt(z(e,D(t=>_t(t)&&Number.isInteger(t)))),"int"),finite:s(()=>bt(z(e,D(t=>_t(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>bt(z(e,D(t=>_t(t)&&t>0))),"positive"),negative:s(()=>bt(z(e,D(t=>_t(t)&&t<0))),"negative")}),"x"),hD=bt(D(_t)),ur=s(e=>Object.assign(Be(e),{between:s((t,r)=>ur(z(e,((n,i)=>D(o=>ar(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:s(()=>ur(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:s(()=>ur(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),gD=ur(D(ar)),yD=Be(D(function(e){return typeof e=="boolean"})),vD=Be(D(function(e){return typeof e=="symbol"})),_D=Be(D(function(e){return e==null})),bD=Be(D(function(e){return e!=null}));var bp=class bp extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(bp,"W");var yp=bp,vp={matched:!1,value:void 0};function ge(e){return new _p(e,vp)}s(ge,"z");var Gi=class Gi{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((l,f)=>{o=!0,a[l]=f},"a"),u=!n.some(l=>St(l,this.input,c))||i&&!i(this.input)?vp:{matched:!0,value:r(o?xs in a?a[xs]:a:this.input,this.input)};return new Gi(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Gi(this.input,n?{matched:!0,value:r(this.input,this.input)}:vp)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new yp(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Gi,"I");var _p=Gi;var $v=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var Sp=2,Ov=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Ev=["query","header","path"],pr=["get","put","post","delete","options","head","patch","trace"],xv=["string","number","integer","boolean"],ws=["allOf","anyOf","oneOf"];function fr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(fr,"pick");function Pt(e){return vv(e)}s(Pt,"formatTag");function Hr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Pt(r??t.defaultTag)}s(Hr,"getOperationTag");function wv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=fr(i,pr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Hr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(wv,"getOperationsByTag");var Iv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ur=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Vn=s(e=>Ur(e).split("/").at(-1),"getSchemaNameByRef");function F(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(F,"isReferenceObject");function Op(e){let t=Fk(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ce(t)}s(Op,"normalizeString");function Tv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Tv,"wrapWithQuotesIfNeeded");function kv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(kv,"unwrapQuotesIfNeeded");function Fk(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(Fk,"prefixStringStartingWithNumberIfNeeded");function Ep(e){let t=e.replaceAll("_","#");return ce(t.replaceAll("-","_")).replaceAll("#","_")}s(Ep,"pathParamToVariableName");var jt=s(e=>xv.includes(e),"isPrimitiveType");function Nv(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(Nv,"escapeControlCharacters");function $t(e){return e.includes("application/")&&e.includes("json")||Ov.includes(e)||e.includes("text/")}s($t,"isParamMediaTypeAllowed");function As(e){return e>=200&&e<300}s(As,"isMainResponseStatus");function Is(e){return!(e>=200&&e<300)}s(Is,"isErrorStatus");function Bn(e){return e==="application/json"}s(Bn,"isMediaTypeAllowed");function Pp({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${Bk(e)}`,a=r.operationId?vt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:X(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return $v.includes(a)?o:a}s(Pp,"getOperationName");function Ki({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Hr(r,i):i.defaultTag,a=Pp({path:e,method:t,operation:r,options:i});return n[o].filter(u=>Pp({path:e,method:t,operation:u,options:i})===a).length===1?a:Pp({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Ki,"getUniqueOperationName");function Rv(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=fr(o,pr);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Ki({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}s(Rv,"getUniqueOperationNamesWithoutSplitByTags");var Av=/({\w+})/g,Vk=/[^\w\-]+/g;function Bk(e){e=X($s(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Av)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Av,"")}By${X(r.slice(1,-1))}`}return e.replace(Vk,"_")}s(Bk,"pathToVariableName");var $p=/{(\b\w+(?:-\w+)*\b)}/g;function Cv(e){let t=e.match($p);return t===null?e.replaceAll($p,":$1"):(t.forEach(r=>{let n=Ep(r.replaceAll($p,":$1"));e=e.replaceAll(r,n)}),e)}s(Cv,"replaceHyphenatedPath");var Ot=s(e=>e.method==="get","isQuery"),Ts=s(e=>e.method!=="get","isMutation");var Mt=s((e,t)=>dp(X(Op(e)),t),"getZodSchemaName"),qv=s((e,t,r)=>dp(X(Op(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=s(e=>!e.startsWith("z."),"isNamedZodSchema"),zr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),ks=s(e=>ce(`${e}_${mv}`),"getBodyZodSchemaName"),jv=s((e,t)=>ce(`${e}_${t}${hv}`),"getParamZodSchemaName"),Hk=s(e=>ce(`${e}${gv}`),"getMainResponseZodSchemaName"),Uk=s((e,t)=>ce(`${e}_${t}_${yv}`),"getErrorResponseZodSchemaName");function Ns({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=zr(t,r,n);return!As(i)&&e!=="default"&&Is(i)?Uk(o,e):Hk(o)}s(Ns,"getResponseZodSchemaName");var Yi=s((e,t)=>_v(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Mv=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${G({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Rs=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${G({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Yi(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Cs(e){return ge(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(Cs,"primitiveTypeToTsType");function Hn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Rs(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&jt(t==null?void 0:t.type)&&(n=Cs(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:Ct({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(Hn,"getTsTypeBase");function Gr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of ws){let o=e[i];if(o)if(o.length>1){let a=o.map(c=>{let u=n.resolveObject(c);return Gr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Dv({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:zk({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Gr,"getSchemaTsMetaType");function Dv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(F(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let o=Hn({zodSchemaName:n,schema:i,resolver:r}),a=Lv(o,t),c=Gr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...c}}s(Dv,"getArraySchemaTsType");function zk({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(F(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=Hn({zodSchemaName:c,schema:u,resolver:r}),f=Lv(l,t),p=Gr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...p}}else if(i.type==="array"){let c=Dv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:c}}else if(jt(i.type))return{name:n,isRequired:o,type:Cs(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(zk,"getSchemaTsProperties");function Lv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Lv,"getIsCircular");var xp={"Content-Type":"application/json",Accept:"application/json"},Fv="data";function Et(e){return!F(e)}s(Et,"isSchemaObject");function Vv(e){return e.type==="array"}s(Vv,"isArraySchemaObject");function Bv(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(Gk(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(F(i)){let a=o(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}s(Bv,"inferRequiredSchema");var Gk=s(e=>!F(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Wi=s(e=>Br(ce(e.operationName)),"getEndpointName");function Hv(e,t){return`${t.includeNamespaces?`${G({type:"endpoints",tag:Qi(e,t),options:t})}.`:""}${Wi(e)}`}s(Hv,"getImportedEndpointName");var Uv=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Qi(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Pt(r??t.defaultTag)}s(Qi,"getEndpointTag");function wp(e,t){return t.parameters.map(r=>{var i,o,a,c;let n="string";if(Pe(r.zodSchema))n=Rs(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Et(r.parameterObject.schema)){let u=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;u&&jt(u)&&(n=Cs(u))}return{name:vt(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}s(wp,"mapEndpointParamsToFunctionParams");function zv(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=Sv(i.name)?i.name:`"${i.name}"`,a=vt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==xp["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==xp.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=vt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(zv,"getEndpointConfig");function qs(e){return{type:"invalid-schema",message:e}}s(qs,"getInvalidSchemaError");function Gv(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}s(Gv,"getInvalidOperationIdError");function Zv(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}s(Zv,"getMissingPathParameterError");function Kv(e){return{type:"not-allowed-inline-enum",message:e}}s(Kv,"getNotAllowedInlineEnumError");function Yv(e){return{type:"not-allowed-circular-schema",message:e}}s(Yv,"getNotAllowedCircularSchemaError");function Wv(e,t){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${t}`}}s(Wv,"getMissingAclConditionPropertyError");function xt({schema:e,meta:t,options:r}){let n=[];ge(e.type).with("string",()=>n.push(Yk(e))).with("number","integer",()=>n.push(Qk(e))).with("array",()=>n.push(Jk(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
73
73
|
`,"\r",`\r
|
|
74
|
-
`].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(
|
|
75
|
-
z.discriminatedUnion("${
|
|
76
|
-
`)}return t.assign(`z.union([${e.oneOf.map(u=>Z({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(qR,"getOneOfZodSchema");function jR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!bt(e)||!Array.isArray(e.type)))return e.type.length===1?Z({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>Z({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(jR,"getArrayZodSchema");function MR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Z({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>Z({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s(MR,"getAnyOfZodSchema");function DR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Z({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:u}=qv(e),c=a.map(f=>{let d=Z({schema:f,resolver:r,meta:n,tag:i});return r&&o(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(Z({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}s(DR,"getAllOfZodSchema");function LR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Tt(o)){if(e.enum){if(o==="string")return FR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(me(o).with("integer",()=>"z.number()").with("string",()=>me(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(LR,"getPrimitiveZodSchema");function FR({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!bt(t))return;let o=xf(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let u=e.options.includeNamespaces&&a.tag!==i?`${ee({type:"models",tag:a.tag,options:e.options})}.`:"";return new Yi(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}s(FR,"getEnumZodSchema");function xf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(xf,"getEnumZodSchemaCode");function Mn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let o=t.getCodeString();if((!Se(o)||t.ref===void 0)&&r){if(t.complexity<vf)return o;let c=Ct(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(o))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,o,i),n.addZodSchemaForCompositeCode(o,t,c,e),c}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return te(0,n.getSchemaByRef(t.ref))<vf?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Mn,"resolveZodSchemaName");function Uv({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let o=e.resolveObject(t.requestBody);if(!o)return;let u=Object.keys(o.content??{}).find(cr);if(!u)return;let c=(g=(h=o.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=Z({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:i}),p=e.resolveObject(c),f=Mn({schema:p,zodSchema:l,fallbackName:ws(jr(r,n,i)),resolver:e,tag:i}),d=Pt({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Cv,type:"Body",description:o.description,zodSchema:f+d,bodyObject:o},requestFormat:u}}s(Uv,"getEndpointBody");function zv({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!vv.includes(o.in))return;let a={};if(o.content){let f=Object.keys(o.content??{}),d=f.find(cr);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${f.join(", ")}`);let h=o.content[d];if(!h)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let u=Z({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),c=e.resolveObject(a),l=Pt({schema:c,meta:u.meta,options:e.options}),p=Mn({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Iv(jr(r,n,i),o.name),resolver:e,tag:i});return{name:me(o.in).with("path",()=>Pf(o.name)).otherwise(()=>o.name),type:me(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:o}}s(zv,"getEndpointParameter");function Zv(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],u=ur(a,ar),c=Gv(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==gt(p.operationId);p.operationId&&f&&e.validationErrors.push(Lv(p.operationId));let d=Object.entries({...c,...Gv(p.parameters??[])}).map(([,S])=>S),h=Gi({path:o,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(S=>S===h).length<=1,y=Nr(p,e.options),v={method:l,path:wv(o),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(St),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let S=Uv({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});S&&(v.parameters.push(S.endpointParameter),v.requestFormat=S.requestFormat)}for(let S of d){let b=zv({resolver:e,param:S,operationName:h,isUniqueOperationName:g,tag:y});b&&v.parameters.push(b)}let _=VR(v);_.forEach(S=>{v.parameters.push(S)}),_.length>0&&e.validationErrors.push(Fv(_,o));for(let S in p.responses){let b=e.resolveObject(p.responses[S]),$=Object.keys(b.content??{}).find(Nn),M,j;if($?(v.responseFormat=$,M=(i=(n=b.content)==null?void 0:n[$])==null?void 0:i.schema):j=cf,M){let re=Z({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),ne=e.resolveObject(M);j=Mn({schema:ne,zodSchema:re,fallbackName:re.ref?void 0:As({statusCode:S,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+Pt({schema:ne,meta:re.meta,options:e.options})}if(j){let re=Number(S);Os(re)?(v.response=j,v.responseObject=b):S!=="default"&&Es(re)&&v.errors.push({zodSchema:j,status:re,description:b.description})}}v.response||(v.response=cf),t.push(v)}}return t}s(Zv,"getEndpointsFromOpenAPIDoc");function Gv(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}s(Gv,"getParameters");function VR(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>BR(r))}s(VR,"getMissingPathParameters");function BR(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(BR,"getPathParameterFromName");function nt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if($s.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;nt(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;nt(o,t)}}s(nt,"iterateSchema");function Kv(e,t){let r=HR(e,t),n=UR(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(Kv,"getOpenAPISchemaDependencyGraph");function HR(e,t){let r={},n={};return e.forEach(i=>zR({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(HR,"getRefsDependencyGraph");function UR(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(UR,"getDeepRefsDependencyGraph");function zR({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,nt(r(u.$ref),{data:{fromRef:u.$ref},onSchema:o})},"onSchema");return nt(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(zR,"getSchemaRefsDependencyGraph");function Ts(e,t,r){let n=[];return nt(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(Rs(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(Rs(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(Rs(`${r} has both reference and composite keyword`)))},"onSchema")}),n}s(Ts,"getSchemaRefObjs");function Wv(e,t){return t.map(i=>qr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(Wv,"getDeepSchemaRefObjs");function Qi({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Yv({schema:e,nameSegments:t,...n}),nt(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),Yv({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(Qi,"updateEnumZodSchemaData");function Yv({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||H(t)||!t.enum)return;let a=xf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(o),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(Vv(r?`schema ${Cn(r)} property ${o[o.length-1]}`:n??o.join("->")))}s(Yv,"handleEnumZodSchemaDataUpdate");function Jv(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=ff(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Av(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Qv(e);)GR(e,t+2),t++;if(!Qv(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(Jv,"resolveEnumZodSchemaNames");function Qv(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(Qv,"allEnumZodSchemaNamesAreUnique");function GR(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&ZR(n,t)})}s(GR,"additionalResolveEnumZodSchemaName");function ZR(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[he(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=ff(n);r.zodSchemaName=[i?he(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(ZR,"suffixWithPreviousSegmentName");function Xv(e){e.enumZodSchemaData.forEach(t=>{let r=Te(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(Xv,"resolveEnumZodSchemaTags");var wf=class wf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Kv(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Sv(t,r),this.operationNames=xv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(Pv)}getSchemaByRef(t){return this.docSchemas[Cn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(qr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return St(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],o=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Te(i,o),u=a.length===1?a[0]:this.options.defaultTag;return St(u??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,o;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((o=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:o.values())??[]).map(a=>{let u=this.getCircularSchemaChain(t,a,n);return u.length>0?[r,...u]:u}).flat()}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(u=>{let c=qr(u),l=Cn(c),p=Ct(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=ur(c,ar);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Nr(f,this.options),h=Gi({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(S=>S===h).length<=1,y=Ie(jr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(S=>{let b=S,E=b.schema,$=`operation ${f.operationId??u} parameter ${b.name}`;v.push(...Ts(this,E,$)),this.options.extractEnums&&Qi({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,b.name],includeSelf:!0})}),f.requestBody){let S=this.resolveObject(f.requestBody),E=Object.keys(S.content??{}).find(cr);if(E){let $=(i=(n=S.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${f.operationId} request body`;v.push(...Ts(this,$,M)),this.options.extractEnums&&Qi({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[ws(y)]})}}for(let S in f.responses){let b=this.resolveObject(f.responses[S]),$=Object.keys(b.content??{}).find(Nn);if($){let M=(a=(o=b.content)==null?void 0:o[$])==null?void 0:a.schema,j=`operation ${f.operationId} response body`;v.push(...Ts(this,M,j)),this.options.extractEnums&&Qi({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[As({statusCode:S,operationName:h,isUniqueOperationName:g,tag:d})]})}}Wv(this,v).forEach(S=>{let b=this.getSchemaDataByRef(S);b&&b.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=qr(u);Qi({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Cn(c)]})}),Jv(this),Xv(this))}};s(wf,"SchemaResolver");var Cs=wf;function e_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=Ct(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=Z({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(e_,"getZodSchemasFromOpenAPIDoc");function t_(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(t_,"topologicalSort");function r_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(r_,"sortObjKeysFromArray");function n_(e,t){let r=t_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return r_(t,r)}s(n_,"sortZodSchemasByTopology");function i_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n);o&&e.isSchemaCircular(o)?(e.validationErrors.push(Bv(e.getCircularSchemaChain(o).join(" -> "))),r[Ct(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Ct(n,e.options.schemaSuffix)]=i}),r}s(i_,"wrapCircularZodSchemas");function Ns(e,t){let r=new Cs(e,t),n=Zv(r),o={...e_(r),...r.getZodSchemas()};return o=i_(r,o),o=n_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:KR({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ns,"getDataFromOpenAPIDoc");function KR({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Wi(o,n);o_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(o_(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(KR,"splitDataByTags");function o_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(o_,"getTagElement");async function s_(e,t){let{resolver:r,data:n}=await Ns(e,t),i=[],o=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=jn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Mr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=St(l);o.push({name:Ss(h),filePath:tr({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?ee({type:g,tag:y,options:t}):void 0,isQuery:qn(h),isMutation:xs(h),params:WR({resolver:r,endpoint:h}),response:YR({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:o}}s(s_,"getMetadataFromOpenAPIDoc");function WR({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(cr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=jn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Mr({schema:n,parentTypes:[i],resolver:e})),{name:gt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...o,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}s(WR,"getQueryMetadataParams");function YR({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Nn);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=jn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Mr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(YR,"getQueryMetadataResponse");var Af="src/data",If="@/data",kf="AppRestClient",a_={bindings:[kf],from:"@/util/rest/clients/app-rest-client"},Ji={query:"AppQueryOptions",mutation:"AppMutationOptions"},u_={bindings:[Ji.query,Ji.mutation],from:"@/types/react-query"};function Dn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(c=>e.getTagByZodSchemaName(c),"getTag"),a=Rf({type:i,tag:t,entities:r,getTag:o,getEntityName:s(c=>c,"getEntityName"),options:e.options}),u=Rf({type:i,tag:t,entities:n,getTag:o,getEntityName:s(c=>Zi(c,e.options),"getEntityName"),options:e.options});return JR(e.options,a,u)}s(Dn,"getModelsImports");function c_({tag:e,endpoints:t,options:r}){return Rf({type:"endpoints",tag:e,entities:t,getTag:s(n=>Wi(n,r),"getTag"),getEntityName:Ki,options:r})}s(c_,"getEndpointsImports");function QR(e){let t=If;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Af}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Af}`,"g"),If)),`${t}/`.replace(/\/\//g,"/")}s(QR,"getImportPath");function Rf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?ee({type:e,tag:c,options:o}):i(u)],from:`${l?"./":QR(o)}${tr({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Rf,"getImports");function JR(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Te(n.bindings)}))}s(JR,"mergeImports");var wp=Et(zr());var $p=Et(require("fs")),eb=Et(require("path"));function Op(e){let t=`src/generators/templates/${e}.hbs`;return $p.default.readFileSync(eb.default.join(__dirname,`../${t}`),"utf-8")}s(Op,"readHbsTemplateSync");function tb({output:e,fileName:t}){return`${e}/${t}.ts`}s(tb,"getOutputFileName");var Ep=Et(zr());function rb(){UC(),zC()}s(rb,"registerCommonHbsHelpers");function UC(){Ep.default.registerHelper("isEqual",(e,t)=>e===t)}s(UC,"registerIsEqualHelper");function zC(){Ep.default.registerHelper("commaSeparated",e=>e.join(", "))}s(zC,"registerCommaSeparatedListHelper");var Gr=Et(zr());function nb(e){GC(),ZC(e.options),YC(e),KC(),WC(),QC(e)}s(nb,"registerEndpointsHbsHelpers");function GC(){Gr.default.registerHelper("endpointName",Ki)}s(GC,"registerEndpointNameHelper");function ZC(e){Gr.default.registerHelper("importedEndpointName",t=>jv(t,e))}s(ZC,"registerImportedEndpointNameHelper");function KC(){Gr.default.registerHelper("endpointPath",Mv)}s(KC,"registerEndpointPathHelper");function WC(){Gr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(WC,"registerEndpointBodyHelper");function YC(e){Gr.default.registerHelper("endpointParams",t=>Of(e,t))}s(YC,"registerEndpointParamsHelper");function QC(e){Gr.default.registerHelper("endpointArgs",t=>Of(e,t).map(r=>r.name).join(", "))}s(QC,"registerEndpointArgsHelper");var Kn=Et(zr());var pr={query:"useQuery",mutation:"useMutation"},ib={bindings:[pr.query,pr.mutation],from:"@tanstack/react-query"};function ob(){JC(),XC(),eN(),tN(),rN()}s(ob,"registerPartialsHbsHelpers");function JC(){Kn.default.registerHelper("genImport",e=>Wn("import")({import:e}))}s(JC,"registerImportHelper");function XC(){Kn.default.registerHelper("genEndpointParams",e=>Wn("endpoint-params")({endpoint:e}))}s(XC,"registerGenerateEndpointParamsHelper");function eN(){Kn.default.registerHelper("genEndpointConfig",e=>{let t=Dv(e);return Object.keys(t).length===0?"":Wn("endpoint-config")({endpointConfig:t})})}s(eN,"registerGenerateEndpointConfigHelper");function tN(){Kn.default.registerHelper("genQueryKeys",e=>e.length===0?"":Wn("query-keys")({endpoints:e}))}s(tN,"registerGenerateQueryKeysHelper");function rN(){Kn.default.registerHelper("genQuery",e=>{let t,r;return qn(e)?(t="query-use-query",r=pr.query):(t="query-use-mutation",r=pr.mutation),Wn(t)({endpoint:e,queryHook:r})})}s(rN,"registerGenerateQueryHelper");var ya=Et(zr());function sb(){nN(),iN(),oN()}s(sb,"registerQueryHbsHelpers");function nN(){ya.default.registerHelper("queryName",Ss)}s(nN,"registerQueryNameHelper");function iN(){ya.default.registerHelper("allQueryKeys",pf)}s(iN,"registerQueryKeysHelper");function oN(){ya.default.registerHelper("endpointPathQueryKeys",dv)}s(oN,"registerEndpointPathQueryKeysHelper");var xp=Et(zr());function ab(e){sN(e.options),aN(e)}s(ab,"registerZodHbsHelpers");function sN(e){xp.default.registerHelper("zodInferedType",t=>Zi(t,e))}s(sN,"registerInferedTypeHelper");function aN(e){xp.default.registerHelper("importedZodSchemaName",t=>kv(e,t))}s(aN,"registerImportedZodSchemaNameHelper");function Yn(e,t){let r=Op(t);return rb(),ab(e),nb(e),sb(),ob(),wp.default.compile(r)}s(Yn,"getHbsTemplateDelegate");function Wn(e){let t=Op(`partials/${e}`);return wp.default.compile(t)}s(Wn,"getHbsPartialTemplateDelegate");function ub({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),o=i.some(p=>!Se(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=Dn({resolver:e,tag:r,zodSchemas:Te(i.filter(Se)),zodSchemasAsTypes:Te(a.map(p=>p.zodSchema).filter(Se))});return Yn(e,"endpoints")({restClientImport:a_,hasZodImport:o,zodImport:vs,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"endpoints",tag:r,options:e.options}),restClientName:kf,endpoints:n})}s(ub,"generateEndpoints");function cb(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),o=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...o]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(lb(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(cb,"getZodSchemaRefs");function lb(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&lb(n).forEach(o=>r.add(o)),r},new Set)}s(lb,"getSchemaRefs");function fb({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...cb(e,p)],[]).filter(l=>!n[l]),o=Dn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Yn(e,"models")({zodImport:vs,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(fb,"generateModels");function pb({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(qn),o=n.filter(xs),a={...ib,bindings:[...i.length>0?[pr.query]:[],...o.length>0?[pr.mutation]:[]]},u={...u_,bindings:[...i.length>0?[Ji.query]:[],...o.length>0?[Ji.mutation]:[]]},c=[...i,...o].reduce((h,g)=>[...h,...g.parameters],[]),l=Dn({resolver:e,tag:r,zodSchemasAsTypes:Te(c.map(h=>h.zodSchema).filter(Se))}),p=c_({tag:r,endpoints:n,options:e.options});return Yn(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(pb,"generateQueries");function db(e,t){let r={...Bi,...t},{resolver:n,data:i}=Ns(e,r),o=[],a=["models","endpoints","queries"],u={models:fb,endpoints:ub,queries:pb};return i.forEach((c,l)=>{r.excludeTags.find(f=>f.toLowerCase()===l.toLowerCase())||a.forEach(f=>{let d=u[f]({resolver:n,data:i,tag:l});if(d){let h=tb({output:r.output,fileName:tr({tag:l,type:f,options:r})});o.push({fileName:h,content:d})}})}),o}s(db,"generateCodeFromOpenAPIDoc");async function uN({input:e,options:t}){let r={...Bi,...t},n=await Ap.default.bundle(e);return await s_(n,r)}s(uN,"getGenerateMetadata");async function cN({input:e,options:t}){let r={...Bi,...t},n=await Ap.default.bundle(e);return db(n,r)}s(cN,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
|
|
74
|
+
`].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Zk(e,t),(r==null?void 0:r.withDefaultValues)!==!1?Kk(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(xt,"getZodChain");function Zk(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(Zk,"getZodChainablePresence");function Kk(e){return e.default!==void 0?`default(${ge(e.type).with("number","integer",()=>kv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(Kk,"getZodChainableDefault");function Yk(e){let t=[];if(e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${Wk(e.pattern)})`),e.format){let r=ge(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(Yk,"getZodChainableStringValidations");function Wk(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Nv(e),`/${e}/`}s(Wk,"formatPatternIfNeeded");function Qk(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(Qk,"getZodChainableNumberValidations");function Jk(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(Jk,"getZodChainableArrayValidations");var Zr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function ne(e,t){if(!t)return e;if(F(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$e("oneOf")+ne(e,{...t,type:t.type[0]}):e+$e("oneOf")+Zr(t.type.map(r=>ne(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?$e("oneOf")+ne(e,t.oneOf[0]):e+$e("oneOf")+Zr(t.oneOf.map(r=>ne(0,r)));if(t.anyOf)return t.anyOf.length===1?$e("anyOf")+ne(e,t.anyOf[0]):e+$e("anyOf")+Zr(t.anyOf.map(r=>ne(0,r)));if(t.allOf)return t.allOf.length===1?$e("allOf")+ne(e,t.allOf[0]):e+$e("allOf")+Zr(t.allOf.map(r=>ne(0,r)));if(!t.type)return e;if(jt(t.type))return t.enum?e+Qv(t)+$e("enum")+Zr(t.enum.map(r=>ne(0,r))):e+Qv(t);if(t.type==="array")return t.items?$e("array")+ne(e,t.items):$e("array")+ne(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$e("record")+ne(e):$e("record")+ne(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+$e("object")+Zr(r.map(n=>ne(0,n)))}return $e("empty-object")+ne(e)}return e}s(ne,"getOpenAPISchemaComplexity");function Qv(e){return ge(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(Qv,"complexityByType");function $e(e){return ge(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s($e,"complexityByComposite");var Ap=class Ap{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;F(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var o,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${G({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ne(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Ap,"ZodSchema");var Ji=Ap;function K({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Ji(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(F(e))return Xk({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let c=tN({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let u=eN({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let l=rN({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let f=nN({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let p=iN({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(Vv(e))return e.items?i.assign(`z.array(${K({...a,schema:e.items}).getCodeString(n,t.options)}${xt({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${K({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+xt({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let b=e.required&&e.required.length>0,P=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([Q,ie])=>{var Ht;let le={...o,isRequired:P?!0:b?(Ht=e.required)==null?void 0:Ht.includes(Q):t.options.withImplicitRequiredProps,name:Q},qe=ie;if(F(ie)&&t&&(qe=t.getSchemaByRef(ie.$ref),!qe))throw new Error(`Schema ${ie.$ref} not found`);let Ee=K({...a,schema:ie,meta:le}).getCodeString(n,t.options)+xt({schema:qe,meta:le,options:t.options});return[Q,Ee]}).map(([Q,ie])=>`${Tv(Q)}: ${ie}`).join(", ")+" }");let S=P?".partial()":"",j=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${S}${j}${_}${d}`)}if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}s(K,"getZodSchema");function Xk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!F(e))return;let o=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(o.length>1&&o.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=K({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}s(Xk,"getReferenceZodSchema");function eN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Et(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=K({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(c=>Et(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!o){let c=e.discriminator.propertyName;return t.assign(`
|
|
75
|
+
z.discriminatedUnion("${c}", [${e.oneOf.map(u=>K({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
|
|
76
|
+
`)}return t.assign(`z.union([${e.oneOf.map(c=>K({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(eN,"getOneOfZodSchema");function tN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Et(e)||!Array.isArray(e.type)))return e.type.length===1?K({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>K({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(tN,"getArrayZodSchema");function rN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Et(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=K({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>K({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s(rN,"getAnyOfZodSchema");function nN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Et(e)||!e.allOf)return;if(e.allOf.length===1){let p=K({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Bv(e),u=a.map(p=>{let d=K({schema:p,resolver:r,meta:n,tag:i});return r&&o(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(K({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}s(nN,"getAllOfZodSchema");function iN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Et(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&jt(o)){if(e.enum){if(o==="string")return oN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ge(o).with("integer",()=>"z.number()").with("string",()=>ge(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(iN,"getPrimitiveZodSchema");function oN({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Et(t))return;let o=Ip(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let c=e.options.includeNamespaces&&a.tag!==i?`${G({type:"models",tag:a.tag,options:e.options})}.`:"";return new Ji(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}s(oN,"getEnumZodSchema");function Ip(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Ip,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let o=t.getCodeString();if((!Pe(o)||t.ref===void 0)&&r){if(t.complexity<Sp)return o;let u=Mt(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(o))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,o,i),n.addZodSchemaForCompositeCode(o,t,u,e),u}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ne(0,n.getSchemaByRef(t.ref))<Sp?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Un,"resolveZodSchemaName");function Jv({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let o=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=sN({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(Wv(c,r.operationId??`${t.method} ${t.path}`)),a)},[]);return{...i,conditionsTypes:o}})}s(Jv,"getEndpointAcl");function sN({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,_,b,P,E;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let o=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:S})=>S===o[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${Br(f.type)} parameter`,l++;else{let S=t.parameters.find(({bodyObject:Q})=>!!Q),N=Object.keys(((y=S==null?void 0:S.bodyObject)==null?void 0:y.content)??{}).find($t);N&&(a=(b=(_=(v=S==null?void 0:S.bodyObject)==null?void 0:v.content)==null?void 0:_[N])==null?void 0:b.schema,u=`${Ot(t)?"query":"mutation"} data`)}for(;a&&l<o.length;){let S=e.resolveObject(a);a=(P=Object.entries(S.properties??{}).find(([N])=>N===o[l]))==null?void 0:P[1],c=((E=S.required)==null?void 0:E.includes(o[l]))??!1,l++}if(a)return{name:n,type:F(a)?void 0:a.type,zodSchemaName:F(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}s(sN,"getEndpointAclConditionPropertyType");function Xv({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let o=e.resolveObject(t.requestBody);if(!o)return;let c=Object.keys(o.content??{}).find($t);if(!c)return;let u=(g=(m=o.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=K({schema:u,resolver:e,meta:{isRequired:o.required??!0},tag:i}),f=e.resolveObject(u),p=Un({schema:f,zodSchema:l,fallbackName:ks(zr(r,n,i)),resolver:e,tag:i}),d=xt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:Fv,type:"Body",description:o.description,zodSchema:p+d,bodyObject:o},requestFormat:c}}s(Xv,"getEndpointBody");function e_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!Ev.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),d=p.find($t);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let m=o.content[d];if(!m)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(m==null?void 0:m.schema)??m}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let c=K({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),u=e.resolveObject(a),l=xt({schema:u,meta:c.meta,options:e.options}),f=Un({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:jv(zr(r,n,i),o.name),resolver:e,tag:i});return{name:ge(o.in).with("path",()=>Ep(o.name)).otherwise(()=>o.name),type:ge(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:o}}s(e_,"getEndpointParameter");function r_(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],c=fr(a,pr),u=t_(a.parameters??[]);for(let l in c){let f=c[l];if(!f||f.deprecated&&!e.options.withDeprecatedEndpoints)continue;let p=f.operationId&&f.operationId!==vt(f.operationId);f.operationId&&p&&e.validationErrors.push(Gv(f.operationId));let d=Object.entries({...u,...t_(f.parameters??[])}).map(([,b])=>b),m=Ki({path:o,method:l,operation:f,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===m).length<=1,y=Hr(f,e.options),v={method:l,path:Cv(o),operationName:m,description:f.description,tags:(r=f.tags)==null?void 0:r.map(Pt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(f.requestBody){let b=Xv({resolver:e,operation:f,operationName:m,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let P=e_({resolver:e,param:b,operationName:m,isUniqueOperationName:g,tag:y});P&&v.parameters.push(P)}let _=aN(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(Zv(_,o));for(let b in f.responses){let P=e.resolveObject(f.responses[b]),S=Object.keys(P.content??{}).find(Bn),j,N;if(S?(v.responseFormat=S,j=(i=(n=P.content)==null?void 0:n[S])==null?void 0:i.schema):N=fp,j){let Q=K({schema:j,resolver:e,meta:{isRequired:!0},tag:y}),ie=e.resolveObject(j);N=Un({schema:ie,zodSchema:Q,fallbackName:Q.ref?void 0:Ns({statusCode:b,operationName:m,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+xt({schema:ie,meta:Q.meta,options:e.options})}if(N){let Q=Number(b);As(Q)?(v.response=N,v.responseObject=P):b!=="default"&&Is(Q)&&v.errors.push({zodSchema:N,status:Q,description:P.description})}}v.response||(v.response=fp),v.acl=Jv({resolver:e,endpoint:v,operation:f}),t.push(v)}}return t}s(r_,"getEndpointsFromOpenAPIDoc");function t_(e){return Object.fromEntries((e??[]).map(t=>[F(t)?t.$ref:t.name,t]))}s(t_,"getParameters");function aN(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>cN(r))}s(aN,"getMissingPathParameters");function cN(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(cN,"getPathParameterFromName");function nt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(F(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(ws.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;nt(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;nt(o,t)}}s(nt,"iterateSchema");function n_(e,t){let r=uN(e,t),n=lN(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(n_,"getOpenAPISchemaDependencyGraph");function uN(e,t){let r={},n={};return e.forEach(i=>pN({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(uN,"getRefsDependencyGraph");function lN(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s(lN,"getDeepRefsDependencyGraph");function pN({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,nt(r(c.$ref),{data:{fromRef:c.$ref},onSchema:o})},"onSchema");return nt(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(pN,"getSchemaRefsDependencyGraph");function js(e,t,r){let n=[];return nt(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):F(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(qs(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(qs(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(qs(`${r} has both reference and composite keyword`)))},"onSchema")}),n}s(js,"getSchemaRefObjs");function i_(e,t){return t.map(i=>Ur(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(i_,"getDeepSchemaRefObjs");function Xi({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&o_({schema:e,nameSegments:t,...n}),nt(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),o_({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(Xi,"updateEnumZodSchemaData");function o_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||F(t)||!t.enum)return;let a=Ip(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(o),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(Kv(r?`schema ${Vn(r)} property ${o[o.length-1]}`:n??o.join("->")))}s(o_,"handleEnumZodSchemaDataUpdate");function a_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=mp(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=qv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!s_(e);)fN(e,t+2),t++;if(!s_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(a_,"resolveEnumZodSchemaNames");function s_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(s_,"allEnumZodSchemaNamesAreUnique");function fN(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&dN(n,t)})}s(fN,"additionalResolveEnumZodSchemaName");function dN(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[X(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=mp(n);r.zodSchemaName=[i?X(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(dN,"suffixWithPreviousSegmentName");function c_(e){e.enumZodSchemaData.forEach(t=>{let r=Se(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(c_,"resolveEnumZodSchemaTags");var Tp=class Tp{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=n_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=wv(t,r),this.operationNames=Rv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(Iv)}getSchemaByRef(t){return this.docSchemas[Vn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Ur(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Pt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],o=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Se(i,o),c=a.length===1?a[0]:this.options.defaultTag;return Pt(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return F(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,o;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((o=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:o.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(c=>{let u=Ur(c),l=Vn(u),f=Mt(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:f,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=fr(u,pr);for(let f in l){let p=l[f];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Hr(p,this.options),m=Ki({path:c,method:f,operation:p,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===m).length<=1,y=ce(zr(m,g,d)),v=[];if((r=p.parameters)==null||r.map(b=>{let P=b,E=P.schema,S=`operation ${p.operationId??c} parameter ${P.name}`;v.push(...js(this,E,S)),this.options.extractEnums&&Xi({resolver:this,schema:E,schemaInfo:S,tags:[d],nameSegments:[y,P.name],includeSelf:!0})}),p.requestBody){let b=this.resolveObject(p.requestBody),E=Object.keys(b.content??{}).find($t);if(E){let S=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,j=`operation ${p.operationId} request body`;v.push(...js(this,S,j)),this.options.extractEnums&&Xi({resolver:this,schema:S,schemaInfo:j,tags:[d],nameSegments:[ks(y)]})}}for(let b in p.responses){let P=this.resolveObject(p.responses[b]),S=Object.keys(P.content??{}).find(Bn);if(S){let j=(a=(o=P.content)==null?void 0:o[S])==null?void 0:a.schema,N=`operation ${p.operationId} response body`;v.push(...js(this,j,N)),this.options.extractEnums&&Xi({resolver:this,schema:j,schemaInfo:N,tags:[d],nameSegments:[Ns({statusCode:b,operationName:m,isUniqueOperationName:g,tag:d})]})}}i_(this,v).forEach(b=>{let P=this.getSchemaDataByRef(b);P&&P.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=Ur(c);Xi({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[Vn(u)]})}),a_(this),c_(this))}};s(Tp,"SchemaResolver");var Ms=Tp;function u_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=Mt(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=K({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(u_,"getZodSchemasFromOpenAPIDoc");function l_(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(l_,"topologicalSort");function p_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(p_,"sortObjKeysFromArray");function f_(e,t){let r=l_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return p_(t,r)}s(f_,"sortZodSchemasByTopology");function d_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n);o&&e.isSchemaCircular(o)?(e.validationErrors.push(Yv(e.getCircularSchemaChain(o).join(" -> "))),r[Mt(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Mt(n,e.options.schemaSuffix)]=i}),r}s(d_,"wrapCircularZodSchemas");function Ds(e,t){let r=new Ms(e,t),n=r_(r),o={...u_(r),...r.getZodSchemas()};return o=d_(r,o),o=f_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:mN({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ds,"getDataFromOpenAPIDoc");function mN({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Qi(o,n);m_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(m_(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(mN,"splitDataByTags");function m_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(m_,"getTagElement");async function h_(e,t){let{resolver:r,data:n}=await Ds(e,t),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(m=>m.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let g=r.getRefByZodSchemaName(m),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(m),v=Hn({zodSchemaName:m,schema:y,resolver:r}),_;y&&(_=Gr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),c.forEach(m=>{let g="queries",y=Pt(l);o.push({name:Os(m),filePath:Ct({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?G({type:g,tag:y,options:t}):void 0,isQuery:Ot(m),isMutation:Ts(m),params:hN({resolver:r,endpoint:m}),response:gN({resolver:r,endpoint:m})})}))}),{openApiDoc:e,models:i,queries:o}}s(h_,"getMetadataFromOpenAPIDoc");function hN({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find($t);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=Hn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Gr({schema:n,parentTypes:[i],resolver:e})),{name:vt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...o,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}s(hN,"getQueryMetadataParams");function gN({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Bn);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=Hn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Gr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(gN,"getQueryMetadataResponse");var g_="acl/app.ability",eo="AllAbilities",it={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},kp={bindings:[it.abilityTuple,it.pureAbility,it.forcedSubject,it.subject],from:"@casl/ability"};var y_=s(e=>`Use${X(ce(e.operationName))}Ability`,"getAbilityTypeName"),v_=s(e=>`canUse${X(ce(e.operationName))}`,"getAbilityFunctionName"),__=s(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),b_=s(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),S_=s(e=>{var t;return!!((t=Np(e))!=null&&t.length)},"hasAbilityConditions"),Np=s(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),Ls=s(e=>`${X(e)}${eo}`,"getTagAllAbilitiesName");var Rp="src/data",Cp="@/data",qp="AppRestClient",P_={bindings:[qp],from:"@/util/rest/clients/app-rest-client"},to={query:"AppQueryOptions",mutation:"AppMutationOptions"},$_={bindings:[to.query,to.mutation],from:"@/types/react-query"};function dr({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(u=>e.getTagByZodSchemaName(u),"getTag"),a=jp({type:i,tag:t,entities:r,getTag:o,getEntityName:s(u=>u,"getEntityName"),options:e.options}),c=jp({type:i,tag:t,entities:n,getTag:o,getEntityName:s(u=>Yi(u,e.options),"getEntityName"),options:e.options});return yN(e.options,a,c)}s(dr,"getModelsImports");function O_({tag:e,endpoints:t,options:r}){return jp({type:"endpoints",tag:e,entities:t,getTag:s(n=>Qi(n,r),"getTag"),getEntityName:Wi,options:r})}s(O_,"getEndpointsImports");function E_({tags:e,entityName:t,getAliasEntityName:r,options:n}){let i=new Map;return e.forEach(o=>{let a=`${t}${r?` as ${r(o)}`:""}`;i.has(o)?n.includeNamespaces||i.get(o).bindings.push(a):i.set(o,{bindings:[n.includeNamespaces?G({type:"acl",tag:o,options:n}):a],from:`${x_(n)}${Ct({type:"acl",tag:o,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}s(E_,"getAclImports");function x_(e){let t=Cp;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Rp}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Rp}`,"g"),Cp)),`${t}/`.replace(/\/\//g,"/")}s(x_,"getImportPath");function jp({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))o.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[o.includeNamespaces?G({type:e,tag:u,options:o}):i(c)],from:`${l?"./":x_(o)}${Ct({type:e,tag:u,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(jp,"getImports");function yN(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Se(n.bindings)}))}s(yN,"mergeImports");var Cf=at(gr());var If=at(require("fs")),yS=at(require("path"));function Tf(e){let t=`src/generators/templates/${e}.hbs`;return If.default.readFileSync(yS.default.join(__dirname,`../${t}`),"utf-8")}s(Tf,"readHbsTemplateSync");function kf({output:e,fileName:t}){return`${e}/${t}.ts`}s(kf,"getOutputFileName");var yr=at(gr());function vS(){u3(),l3(),p3(),f3(),d3(),m3(),h3()}s(vS,"registerAclHbsHelpers");function u3(){yr.default.registerHelper("abilityTypeName",y_)}s(u3,"registerAbilityTypeNameHelper");function l3(){yr.default.registerHelper("abilityFunctionName",v_)}s(l3,"registerAbilityFunctionNameHelper");function p3(){yr.default.registerHelper("ablityAction",__)}s(p3,"registerAbilityActionHelper");function f3(){yr.default.registerHelper("ablitySubject",b_)}s(f3,"registerAbilitySubjectHelper");function d3(){yr.default.registerHelper("hasAbilityConditions",S_)}s(d3,"registerHasAbilityConditionsHelper");function m3(){yr.default.registerHelper("abilityConditionsTypes",Np)}s(m3,"registerAbilityConditionsTypesHelper");function h3(){yr.default.registerHelper("tagAllAbilitiesName",Ls)}s(h3,"registerTagAllAbilitiesNameHelper");var Nf=at(gr());function _S(){g3(),y3()}s(_S,"registerCommonHbsHelpers");function g3(){Nf.default.registerHelper("isEqual",(e,t)=>e===t)}s(g3,"registerIsEqualHelper");function y3(){Nf.default.registerHelper("commaSeparated",e=>e.join(", "))}s(y3,"registerCommaSeparatedListHelper");var en=at(gr());function bS(e){v3(),_3(e.options),P3(e),b3(),S3(),$3(e)}s(bS,"registerEndpointsHbsHelpers");function v3(){en.default.registerHelper("endpointName",Wi)}s(v3,"registerEndpointNameHelper");function _3(e){en.default.registerHelper("importedEndpointName",t=>Hv(t,e))}s(_3,"registerImportedEndpointNameHelper");function b3(){en.default.registerHelper("endpointPath",Uv)}s(b3,"registerEndpointPathHelper");function S3(){en.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(S3,"registerEndpointBodyHelper");function P3(e){en.default.registerHelper("endpointParams",t=>wp(e,t))}s(P3,"registerEndpointParamsHelper");function $3(e){en.default.registerHelper("endpointArgs",t=>wp(e,t).map(r=>r.name).join(", "))}s($3,"registerEndpointArgsHelper");var _r=at(gr());var vr={query:"useQuery",mutation:"useMutation"},SS={bindings:[vr.query,vr.mutation],from:"@tanstack/react-query"};function PS(){O3(),E3(),x3(),w3(),A3(),I3(),T3()}s(PS,"registerPartialsHbsHelpers");function O3(){_r.default.registerHelper("genImport",e=>br("import")({import:e}))}s(O3,"registerImportHelper");function E3(){_r.default.registerHelper("genEndpointParams",e=>br("endpoint-params")({endpoint:e}))}s(E3,"registerGenerateEndpointParamsHelper");function x3(){_r.default.registerHelper("genEndpointConfig",e=>{let t=zv(e);return Object.keys(t).length===0?"":br("endpoint-config")({endpointConfig:t})})}s(x3,"registerGenerateEndpointConfigHelper");function w3(){_r.default.registerHelper("genQueryKeys",e=>e.length===0?"":br("query-keys")({endpoints:e}))}s(w3,"registerGenerateQueryKeysHelper");function A3(){_r.default.registerHelper("genQuery",e=>{let t,r;return Ot(e)?(t="query-use-query",r=vr.query):(t="query-use-mutation",r=vr.mutation),br(t)({endpoint:e,queryHook:r})})}s(A3,"registerGenerateQueryHelper");function I3(){_r.default.registerHelper("genCaslAbilityType",e=>br("casl-ability-type")({endpoint:e,abilityTupleType:it.abilityTuple}))}s(I3,"registerGenerateCaslAbilityTypeHelper");function T3(){_r.default.registerHelper("genCaslAbilityFunction",e=>br("casl-ability-function")({endpoint:e}))}s(T3,"registerGenerateCaslAbilityFunctionHelper");var go=at(gr());function $S(){k3(),N3(),R3(),C3()}s($S,"registerQueryHbsHelpers");function k3(){go.default.registerHelper("queryName",Os)}s(k3,"registerQueryNameHelper");function N3(){go.default.registerHelper("allQueryKeys",hp)}s(N3,"registerQueryKeysHelper");function R3(){go.default.registerHelper("endpointPathQueryKeys",bv)}s(R3,"registerEndpointPathQueryKeysHelper");function C3(){go.default.registerHelper("isQuery",Ot)}s(C3,"registerIsQueryHelper");var Rf=at(gr());function OS(e){q3(e.options),j3(e)}s(OS,"registerZodHbsHelpers");function q3(e){Rf.default.registerHelper("zodInferedType",t=>Yi(t,e))}s(q3,"registerInferedTypeHelper");function j3(e){Rf.default.registerHelper("importedZodSchemaName",t=>Mv(e,t))}s(j3,"registerImportedZodSchemaNameHelper");function Bt(e,t){let r=Tf(t);return _S(),OS(e),bS(e),$S(),vS(),PS(),Cf.default.compile(r)}s(Bt,"getHbsTemplateDelegate");function br(e){let t=Tf(`partials/${e}`);return Cf.default.compile(t)}s(br,"getHbsPartialTemplateDelegate");function ES({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.endpoints.filter(({acl:l})=>l&&l.length>0);if(!n||n.length===0)return;let i={...kp,bindings:[it.abilityTuple,...n.filter(({acl:l})=>l==null?void 0:l[0].conditions)?[it.forcedSubject,it.subject]:[]]},o=n.reduce((l,f)=>{var d,m;let p=(m=(d=f.acl)==null?void 0:d[0].conditionsTypes)==null?void 0:m.reduce((g,y)=>[...g,...y!=null&&y.zodSchemaName?[y.zodSchemaName]:[]],[]);return[...l,...p??[]]},[]),a=dr({resolver:e,tag:r,zodSchemasAsTypes:Se(o)});return Bt(e,"acl")({caslAbilityTupleImport:i,modelsImports:a,includeNamespace:e.options.includeNamespaces,namespace:G({type:"acl",tag:r,options:e.options}),endpoints:n})}s(ES,"generateAcl");function xS(e,t){let r={...kp,bindings:[it.pureAbility]},n=E_({tags:t,entityName:eo,getAliasEntityName:Ls,options:e.options}),i=t.map(a=>G({type:"acl",tag:a,options:e.options}));return Bt(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:eo,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}s(xS,"generateAppAcl");function wS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(f=>f.response),o=i.some(f=>!Pe(f)),a=n.reduce((f,p)=>[...f,...p.parameters],[]),c=dr({resolver:e,tag:r,zodSchemas:Se(i.filter(Pe)),zodSchemasAsTypes:Se(a.map(f=>f.zodSchema).filter(Pe))});return Bt(e,"endpoints")({restClientImport:P_,hasZodImport:o,zodImport:Ps,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:G({type:"endpoints",tag:r,options:e.options}),restClientName:qp,endpoints:n})}s(wS,"generateEndpoints");function AS(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),o=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...o]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(IS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(AS,"getZodSchemaRefs");function IS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&IS(n).forEach(o=>r.add(o)),r},new Set)}s(IS,"getSchemaRefs");function TS({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...AS(e,f)],[]).filter(l=>!n[l]),o=dr({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getRefByZodSchemaName(f);return{...l,[f]:{code:p,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Bt(e,"models")({zodImport:Ps,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:G({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(TS,"generateModels");function kS({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Ot),o=n.filter(Ts),a={...SS,bindings:[...i.length>0?[vr.query]:[],...o.length>0?[vr.mutation]:[]]},c={...$_,bindings:[...i.length>0?[to.query]:[],...o.length>0?[to.mutation]:[]]},u=[...i,...o].reduce((m,g)=>[...m,...g.parameters],[]),l=dr({resolver:e,tag:r,zodSchemasAsTypes:Se(u.map(m=>m.zodSchema).filter(Pe))}),f=O_({tag:r,endpoints:n,options:e.options});return Bt(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:f,includeNamespace:e.options.includeNamespaces,namespace:G({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(kS,"generateQueries");function NS(e,t){let r={...zi,...t},{resolver:n,data:i}=Ds(e,r),o=[],a=[],c=["models","endpoints","queries","acl"],u={models:TS,endpoints:wS,queries:kS,acl:ES};i.forEach((f,p)=>{r.excludeTags.find(m=>m.toLowerCase()===p.toLowerCase())||c.forEach(m=>{let g=u[m]({resolver:n,data:i,tag:p});if(g){let y=kf({output:r.output,fileName:Ct({tag:p,type:m,options:r})});o.push({fileName:y,content:g}),m==="acl"&&a.push(p)}})});let l=xS(n,a);if(l){let f=kf({output:r.output,fileName:g_});o.push({fileName:f,content:l})}return o}s(NS,"generateCodeFromOpenAPIDoc");async function M3({input:e,options:t}){let r={...zi,...t},n=await qf.default.bundle(e);return await h_(n,r)}s(M3,"getGenerateMetadata");async function D3({input:e,options:t}){let r={...zi,...t},n=await qf.default.bundle(e);return NS(n,r)}s(D3,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
|